libvirt/qemud
Jim Meyering a178a4e7bf Move safewrite and saferead to a separate file.
We currently use safewrite from inside libvirt and don't want to publish
any such function name.  However, we do want to use it in applications
like virsh, libvirtd and libvirt_proxy that link with libvirt.  To that
end, this change moves that function definition (along with the nearly
identical saferead) into a new file, util-lib.c.  To avoid maintaining
separate copies of even such small functions, we simply include that new
file from util.c.  Then, the separate applications that need to use
safewrite simply compile and link with util-lib.c.

Of course, this does mean that each of those applications will
containing two copies of these functions.  However, the functions
are so small that it's not worth worrying about that.

* src/util.c (saferead, safewrite): Move function definitions to
util-lib.c and include that .c file.
* src/util-lib.c (saferead, safewrite): New file.  Functions from src/util.c
with slight change (s/int r =/ssize_t r =/) to reflect read/write return type.
* src/util-lib.h: Declare the two moved functions.
* src/util.h: Remove declarations.  Include src/util-lib.h.
* proxy/Makefile.am (libvirt_proxy_SOURCES): Add src/util-lib.c.
* qemud/Makefile.am (libvirtd_SOURCES): Likewise.
* src/Makefile.am (virsh_SOURCES): Add util-lib.c.  Remove some SP-before-TAB.
2008-02-22 15:53:13 +00:00
..
.cvsignore Ignore libvirtd.init, Daniel 2007-07-06 07:11:24 +00:00
default-network.xml Improve support for virtual networking 2007-03-13 22:43:22 +00:00
event.c Enable the <config.h>-requiring test; fix violations 2008-01-29 18:15:54 +00:00
event.h Allow updating of existing timers & file handle event watches 2007-09-19 01:27:32 +00:00
internal.h Portability improvements for Mac OS X. 2008-01-23 14:54:41 +00:00
libvirtd.conf Added PolicyKit authentication support 2007-12-05 18:21:27 +00:00
libvirtd.init.in Initial integration of SASL authentication, working for Kerberos only 2007-12-05 15:24:15 +00:00
libvirtd.policy Added PolicyKit authentication support 2007-12-05 18:21:27 +00:00
libvirtd.sasl Remove all trailing blanks; turn on the rule to detect them. 2008-02-05 19:27:37 +00:00
libvirtd.sysconf Initial integration of SASL authentication, working for Kerberos only 2007-12-05 15:24:15 +00:00
Makefile.am Move safewrite and saferead to a separate file. 2008-02-22 15:53:13 +00:00
mdns.c Enable another syntax-check rule. 2008-02-07 19:20:36 +00:00
mdns.h Remove all trailing blanks; turn on the rule to detect them. 2008-02-05 19:27:37 +00:00
qemud.c Set close-on-exec flag for signal pipe 2008-02-20 15:47:06 +00:00
remote_dispatch_localvars.h Add remote daemon support for storage APIs 2008-02-20 15:22:35 +00:00
remote_dispatch_proc_switch.h Add remote daemon support for storage APIs 2008-02-20 15:22:35 +00:00
remote_dispatch_prototypes.h Add remote daemon support for storage APIs 2008-02-20 15:22:35 +00:00
remote_generate_stubs.pl Add whitelisting of users. Remove IP whitelisting. Make auth schemes configurable 2007-12-05 15:34:05 +00:00
remote_protocol.c Add remote daemon support for storage APIs 2008-02-20 15:22:35 +00:00
remote_protocol.h Add remote daemon support for storage APIs 2008-02-20 15:22:35 +00:00
remote_protocol.x Add remote daemon support for storage APIs 2008-02-20 15:22:35 +00:00
remote.c Update to work with new policy kit APIs 2008-02-20 16:54:35 +00:00
rpcgen_fix.pl Mon Jun 11 12:34:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> 2007-06-11 11:36:17 +00:00