18 |
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 |
|
*/ |
20 |
|
|
21 |
– |
#include <sys/types.h> |
22 |
– |
#ifdef NETBSD |
23 |
– |
#include <limits.h> |
24 |
– |
#endif |
25 |
– |
|
21 |
|
typedef struct{ |
22 |
|
long long user; |
23 |
|
long long kernel; |
52 |
|
double min15; |
53 |
|
}load_stat_t; |
54 |
|
|
60 |
– |
#ifdef SOLARIS |
61 |
– |
#define MAX_LOGIN_NAME_SIZE 8 |
62 |
– |
#endif |
63 |
– |
#if defined(LINUX) || defined(FREEBSD) |
64 |
– |
#define MAX_LOGIN_NAME_SIZE UT_NAMESIZE |
65 |
– |
#endif |
66 |
– |
#ifdef NETBSD |
67 |
– |
#define MAX_LOGIN_NAME_SIZE _POSIX_LOGIN_NAME_MAX |
68 |
– |
#endif |
69 |
– |
|
55 |
|
typedef struct{ |
56 |
|
char *name_list; |
57 |
|
int num_entries; |
139 |
|
page_stat_t *get_page_stats_diff(); |
140 |
|
|
141 |
|
int statgrab_init(void); |
142 |
+ |
int statgrab_drop_privileges(void); |
143 |
+ |
|