Files
xen/tools/libxl
Stefano Stabellini 965936bc90 More consistent error handling in libxl
Lots of places in libxl return -1 as an error which is inconsistent with
libxl error codes since that is ERROR_VERSION. Also in other places the
xc_* function to implement a command is called but the return value is
either never checked or not passed on.

This patch introduces a new internal function libxl_xc_error() which
maps xc error codes to xl error codes. Callers of libxc functions are
converted to use this when returning error codes back to libxl callers.

Also a bug is fixed where a caller depends on errno being set but is
cleared by cleanup code which calls in to library functions which modify
errno as a side-effect.

Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
2010-07-19 18:40:09 +01:00
..
2010-06-07 07:12:20 +01:00
2010-06-07 07:12:20 +01:00
2010-07-19 15:33:38 +01:00
2010-07-19 15:33:38 +01:00
2010-07-19 15:33:38 +01:00
2010-06-18 14:09:29 +01:00
2010-07-19 15:33:38 +01:00