fix all missing instances of __cplusplus checks/extern "C" in headers
[musl] / include / sys / sysinfo.h
1 #ifndef _SYS_SYSINFO_H
2 #define _SYS_SYSINFO_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /* ?? */
9 #define SI_LOAD_SHIFT 16
10
11 struct sysinfo {
12         unsigned long long uptime;
13         unsigned long loads[3];
14         unsigned long procs;
15         unsigned long long totalram;
16         unsigned long long freeram;
17         unsigned long long sharedram;
18         unsigned long long bufferram;
19         unsigned long long totalswap;
20         unsigned long long freeswap;
21         unsigned long long totalhigh;
22         unsigned long long freehigh;
23         unsigned long mem_unit;
24         char __reserved[256];
25 };
26
27 int sysinfo (struct sysinfo *);
28 int get_nprocs_conf (void);
29 int get_nprocs (void);
30 long long get_phys_pages (void);
31 long long get_avphys_pages (void);
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif