lib: Expose errno through new API guestfs_last_errno.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 3 Nov 2010 15:49:36 +0000 (15:49 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 3 Nov 2010 18:48:56 +0000 (18:48 +0000)
commit2066805a5d93b62beaf6653324715f0b62b06a05
tree393ec11feb514069cf5cfb102b24a4d3a75d7e40
parentd859c283c469b9d9124d90d0ac32024671372ed5
lib: Expose errno through new API guestfs_last_errno.

If either the daemon sends back an errno, or a system call
fails in the library, save the errno in the handle and then
make it available to callers through the guestfs_last_errno
function.
14 files changed:
.gitignore
README
configure.ac
daemon/Makefile.am
daemon/configure.ac
generator/generator_c.ml
generator/generator_errnostring.ml
generator/generator_main.ml
po/POTFILES.in
src/Makefile.am
src/guestfs-internal.h
src/guestfs.c
src/guestfs.h
src/guestfs.pod