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 |
28 |
|
|
29 |
|
typedef struct{ |
30 |
|
long long user; |
60 |
|
double min15; |
61 |
|
}load_stat_t; |
62 |
|
|
57 |
– |
#ifdef SOLARIS |
58 |
– |
#define MAX_LOGIN_NAME_SIZE 8 |
59 |
– |
#endif |
60 |
– |
#if defined(LINUX) || defined(FREEBSD) |
61 |
– |
#define MAX_LOGIN_NAME_SIZE UT_NAMESIZE |
62 |
– |
#endif |
63 |
– |
|
63 |
|
typedef struct{ |
64 |
|
char *name_list; |
65 |
|
int num_entries; |
147 |
|
page_stat_t *get_page_stats_diff(); |
148 |
|
|
149 |
|
int statgrab_init(void); |
150 |
+ |
int statgrab_drop_privileges(void); |
151 |
+ |
|