--- projects/libstatgrab/docs/libstatgrab/statgrab.xml 2004/05/05 10:41:42 1.11 +++ projects/libstatgrab/docs/libstatgrab/statgrab.xml 2004/07/18 20:48:57 1.12 @@ -6,8 +6,8 @@ - $Date: 2004/05/05 10:41:42 $ - $Id: statgrab.xml,v 1.11 2004/05/05 10:41:42 tdb Exp $ + $Date: 2004/07/18 20:48:57 $ + $Id: statgrab.xml,v 1.12 2004/07/18 20:48:57 ats Exp $ @@ -43,6 +43,10 @@ + intsg_get_error_errno + + + const char *sg_str_error sg_error code @@ -161,9 +165,14 @@ The first, sg_get_error returns an sg_error code which relates to the last error generated by libstatgrab. This can be converted to a string by calling sg_str_error - giving the sg_error code as an argument. Finally, an optional + giving the sg_error code as an argument. An optional argument may be set when the error was generated. This can be - accessed by calling sg_get_error_arg. + accessed by calling sg_get_error_arg; + NULL will be returned if no argument has + been set. Some errors will also record the value of the system + errno variable when the error occurred; this can be retrieved by + calling sg_get_error_errno, which will + return 0 if no valid errno has been recorded. It is the intended practice that whenever a libstatgrab function is