ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/statgrab.h
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/statgrab.h (file contents):
Revision 1.11 by pajs, Fri Mar 7 14:44:38 2003 UTC vs.
Revision 1.18 by ats, Mon Jan 5 17:20:29 2004 UTC

# Line 1 | Line 1
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
# Line 19 | Line 19
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;
# Line 57 | Line 63 | typedef struct{
63   #ifdef SOLARIS
64   #define MAX_LOGIN_NAME_SIZE 8
65   #endif
66 < #ifdef LINUX
66 > #if defined(LINUX) || defined(FREEBSD)
67   #define MAX_LOGIN_NAME_SIZE UT_NAMESIZE
68   #endif
69 + #ifdef NETBSD
70 + #define MAX_LOGIN_NAME_SIZE _POSIX_LOGIN_NAME_MAX
71 + #endif
72 + #if defined(CYGWIN)
73 + #define MAX_LOGIN_NAME_SIZE _SC_LOGIN_NAME_MAX
74 + #endif
75  
76   typedef struct{
77          char *name_list;
# Line 146 | Line 158 | network_stat_t *get_network_stats_diff(int *entries);
158  
159   page_stat_t *get_page_stats();
160   page_stat_t *get_page_stats_diff();
161 +
162 + int statgrab_init(void);
163 + int statgrab_drop_privileges(void);
164 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines