musl/include/sys/sysinfo.h

37 lines
634 B
C
Raw Normal View History

2011-02-12 05:22:29 +00:00
#ifndef _SYS_SYSINFO_H
#define _SYS_SYSINFO_H
#ifdef __cplusplus
extern "C" {
#endif
2011-02-12 05:22:29 +00:00
#define SI_LOAD_SHIFT 16
struct sysinfo {
unsigned long uptime;
2011-02-12 05:22:29 +00:00
unsigned long loads[3];
unsigned long totalram;
unsigned long freeram;
unsigned long sharedram;
unsigned long bufferram;
unsigned long totalswap;
unsigned long freeswap;
unsigned short procs, pad;
unsigned long totalhigh;
unsigned long freehigh;
unsigned mem_unit;
2011-02-12 05:22:29 +00:00
char __reserved[256];
};
int sysinfo (struct sysinfo *);
int get_nprocs_conf (void);
int get_nprocs (void);
long get_phys_pages (void);
long get_avphys_pages (void);
2011-02-12 05:22:29 +00:00
#ifdef __cplusplus
}
#endif
2011-02-12 05:22:29 +00:00
#endif