| OLD | NEW |
| 1 #ifndef _SYS_SYSINFO_H | 1 #ifndef _SYS_SYSINFO_H |
| 2 #define _SYS_SYSINFO_H | 2 #define _SYS_SYSINFO_H |
| 3 | 3 |
| 4 #ifdef __cplusplus | 4 #ifdef __cplusplus |
| 5 extern "C" { | 5 extern "C" { |
| 6 #endif | 6 #endif |
| 7 | 7 |
| 8 #define SI_LOAD_SHIFT 16 | 8 #define SI_LOAD_SHIFT 16 |
| 9 | 9 |
| 10 struct sysinfo { | 10 struct sysinfo { |
| 11 » unsigned long uptime; | 11 unsigned long uptime; |
| 12 » unsigned long loads[3]; | 12 unsigned long loads[3]; |
| 13 » unsigned long totalram; | 13 unsigned long totalram; |
| 14 » unsigned long freeram; | 14 unsigned long freeram; |
| 15 » unsigned long sharedram; | 15 unsigned long sharedram; |
| 16 » unsigned long bufferram; | 16 unsigned long bufferram; |
| 17 » unsigned long totalswap; | 17 unsigned long totalswap; |
| 18 » unsigned long freeswap; | 18 unsigned long freeswap; |
| 19 » unsigned short procs, pad; | 19 unsigned short procs, pad; |
| 20 » unsigned long totalhigh; | 20 unsigned long totalhigh; |
| 21 » unsigned long freehigh; | 21 unsigned long freehigh; |
| 22 » unsigned mem_unit; | 22 unsigned mem_unit; |
| 23 » char __reserved[256]; | 23 char __reserved[256]; |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 int sysinfo (struct sysinfo *); | 26 int sysinfo(struct sysinfo*); |
| 27 int get_nprocs_conf (void); | 27 int get_nprocs_conf(void); |
| 28 int get_nprocs (void); | 28 int get_nprocs(void); |
| 29 long get_phys_pages (void); | 29 long get_phys_pages(void); |
| 30 long get_avphys_pages (void); | 30 long get_avphys_pages(void); |
| 31 | 31 |
| 32 #ifdef __cplusplus | 32 #ifdef __cplusplus |
| 33 } | 33 } |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 #endif | 36 #endif |
| OLD | NEW |