19 |
|
*/ |
20 |
|
|
21 |
|
#include <sys/types.h> |
22 |
– |
#ifdef NETBSD |
23 |
– |
#include <limits.h> |
24 |
– |
#endif |
25 |
– |
#ifdef CYGWIN |
26 |
– |
#include <sys/unistd.h> |
27 |
– |
#endif |
22 |
|
|
23 |
|
typedef struct{ |
24 |
|
long long user; |
54 |
|
double min15; |
55 |
|
}load_stat_t; |
56 |
|
|
63 |
– |
#ifdef SOLARIS |
64 |
– |
#define MAX_LOGIN_NAME_SIZE 8 |
65 |
– |
#endif |
66 |
– |
#if defined(LINUX) || defined(FREEBSD) |
67 |
– |
#if defined(CYGWIN) |
68 |
– |
#define MAX_LOGIN_NAME_SIZE _SC_LOGIN_NAME_MAX |
69 |
– |
#else |
70 |
– |
#define MAX_LOGIN_NAME_SIZE UT_NAMESIZE |
71 |
– |
#endif |
72 |
– |
#endif |
73 |
– |
#ifdef NETBSD |
74 |
– |
#define MAX_LOGIN_NAME_SIZE _POSIX_LOGIN_NAME_MAX |
75 |
– |
#endif |
76 |
– |
|
57 |
|
typedef struct{ |
58 |
|
char *name_list; |
59 |
|
int num_entries; |
141 |
|
page_stat_t *get_page_stats_diff(); |
142 |
|
|
143 |
|
int statgrab_init(void); |
144 |
+ |
int statgrab_drop_privileges(void); |
145 |
+ |
|