1999-07-31 14:11:24 +08:00
|
|
|
#ifndef _SYS_SYSINFO_H
|
|
|
|
#include_next <sys/sysinfo.h>
|
|
|
|
|
|
|
|
/* Now we define the internal interface. */
|
|
|
|
|
|
|
|
/* Return number of configured processors. */
|
1999-11-24 01:22:17 +08:00
|
|
|
extern int __get_nprocs_conf (void);
|
1999-07-31 14:11:24 +08:00
|
|
|
|
|
|
|
/* Return number of available processors. */
|
1999-11-24 01:22:17 +08:00
|
|
|
extern int __get_nprocs (void);
|
1999-07-31 14:11:24 +08:00
|
|
|
|
|
|
|
/* Return number of physical pages of memory in the system. */
|
2001-02-12 03:15:00 +08:00
|
|
|
extern long int __get_phys_pages (void);
|
1999-07-31 14:11:24 +08:00
|
|
|
|
|
|
|
/* Return number of available physical pages of memory in the system. */
|
2001-02-12 03:15:00 +08:00
|
|
|
extern long int __get_avphys_pages (void);
|
1999-07-31 14:11:24 +08:00
|
|
|
|
2006-01-08 17:39:29 +08:00
|
|
|
/* Return maximum number of processes this real user ID can have. */
|
|
|
|
extern long int __get_child_max (void);
|
|
|
|
|
1999-07-31 14:11:24 +08:00
|
|
|
#endif /* sys/sysinfo.h */
|