21 |
|
* $Id$ |
22 |
|
*/ |
23 |
|
|
24 |
+ |
#ifndef STATGRAB_H |
25 |
+ |
#define STATGRAB_H |
26 |
+ |
|
27 |
|
#include <sys/types.h> |
28 |
|
|
29 |
|
/* FIXME typedefs for 32/64-bit types */ |
63 |
|
SG_ERROR_SYSCTLNAMETOMIB, |
64 |
|
SG_ERROR_UNAME, |
65 |
|
SG_ERROR_UNSUPPORTED, |
66 |
< |
SG_ERROR_XSW_VER_MISMATCH |
66 |
> |
SG_ERROR_XSW_VER_MISMATCH, |
67 |
> |
SG_ERROR_PSTAT |
68 |
|
} sg_error; |
69 |
|
|
70 |
|
void sg_set_error(sg_error code, const char *arg); |
71 |
+ |
void sg_set_error_with_errno(sg_error code, const char *arg); |
72 |
|
sg_error sg_get_error(); |
73 |
|
const char *sg_get_error_arg(); |
74 |
+ |
int sg_get_error_errno(); |
75 |
|
const char *sg_str_error(sg_error code); |
76 |
|
|
77 |
|
typedef struct { |
269 |
|
#include <statgrab_deprecated.h> |
270 |
|
#endif |
271 |
|
|
272 |
+ |
#endif |