1 |
|
/* |
2 |
|
* i-scream central monitoring system |
3 |
< |
* http://www.i-scream.org.uk |
4 |
< |
* Copyright (C) 2000-2002 i-scream |
3 |
> |
* http://www.i-scream.org |
4 |
> |
* Copyright (C) 2000-2003 i-scream |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or |
7 |
|
* modify it under the terms of the GNU General Public License |
18 |
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 |
|
*/ |
20 |
|
|
21 |
– |
#include <sys/types.h> |
22 |
– |
|
21 |
|
typedef struct{ |
22 |
|
long long user; |
23 |
|
long long kernel; |
52 |
|
double min15; |
53 |
|
}load_stat_t; |
54 |
|
|
57 |
– |
#ifdef SOLARIS |
58 |
– |
#define MAX_LOGIN_NAME_SIZE 8 |
59 |
– |
#endif |
60 |
– |
#ifdef LINUX |
61 |
– |
#define MAX_LOGIN_NAME_SIZE UT_NAMESIZE |
62 |
– |
#endif |
63 |
– |
|
55 |
|
typedef struct{ |
56 |
|
char *name_list; |
57 |
|
int num_entries; |
137 |
|
|
138 |
|
page_stat_t *get_page_stats(); |
139 |
|
page_stat_t *get_page_stats_diff(); |
140 |
+ |
|
141 |
+ |
int statgrab_init(void); |
142 |
+ |
int statgrab_drop_privileges(void); |
143 |
+ |
|