--- projects/libstatgrab/docs/statgrab.xml 2004/05/04 19:28:06 1.9 +++ projects/libstatgrab/docs/statgrab.xml 2004/07/18 20:48:57 1.12 @@ -6,8 +6,8 @@ - $Date: 2004/05/04 19:28:06 $ - $Id: statgrab.xml,v 1.9 2004/05/04 19:28:06 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 @@ -70,6 +74,11 @@ + sg_fs_stats *sg_get_fs_stats + + + + sg_host_info *sg_get_host_info @@ -156,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 @@ -183,6 +197,10 @@ sg_get_disk_io_stats + 3 + + + sg_get_fs_stats 3