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.4 by pajs, Wed Feb 19 17:13:24 2003 UTC vs.
Revision 1.20 by pajs, Fri Jan 9 16:31:55 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 18 | Line 18
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 <        uint_t user;
23 <        uint_t kernel;
24 <        uint_t idle;
25 <        uint_t iowait;
26 <        uint_t swap;
27 <        uint_t nice;
28 <        uint_t total;
22 >        long long user;
23 >        long long kernel;
24 >        long long idle;
25 >        long long iowait;
26 >        long long swap;
27 >        long long nice;
28 >        long long total;
29          time_t systime;
30   }cpu_states_t;
31  
# Line 54 | Line 52 | typedef struct{
52          double min15;
53   }load_stat_t;
54  
57 #ifdef SOLARIS
58 #define MAX_LOGIN_NAME_SIZE 8
59 #endif
60
61 typedef char name[MAX_LOGIN_NAME_SIZE+1];
62
55   typedef struct{
56 <        name *name_list;
56 >        char *name_list;
57          int num_entries;
58   }user_stat_t;
59  
# Line 115 | Line 107 | typedef struct{
107   }network_stat_t;
108  
109   typedef struct{
118        long long num_pagein;
119        long long num_pageout;
110          long long pages_pagein;
111          long long pages_pageout;
112          time_t systime;
# Line 137 | Line 127 | swap_stat_t *get_swap_stats();
127   general_stat_t *get_general_stats();
128  
129   disk_stat_t *get_disk_stats(int *entries);
130 + diskio_stat_t *get_diskio_stats(int *entries);
131 + diskio_stat_t *get_diskio_stats_diff(int *entries);
132  
133   process_stat_t *get_process_stats();
134  
# Line 145 | Line 137 | network_stat_t *get_network_stats_diff(int *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 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines