sysinfo.h 892 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _SYS_SYSINFO_H
  2. #include_next <sys/sysinfo.h>
  3. # ifndef _ISOMAC
  4. /* Now we define the internal interface. */
  5. /* Return number of configured processors. */
  6. extern int __get_nprocs_conf (void);
  7. libc_hidden_proto (__get_nprocs_conf)
  8. /* Return number of available processors (not all of them will be
  9. available to the caller process). */
  10. extern int __get_nprocs (void);
  11. libc_hidden_proto (__get_nprocs)
  12. /* Return number of physical pages of memory in the system. */
  13. extern long int __get_phys_pages (void);
  14. libc_hidden_proto (__get_phys_pages)
  15. /* Return number of available physical pages of memory in the system. */
  16. extern long int __get_avphys_pages (void);
  17. libc_hidden_proto (__get_avphys_pages)
  18. /* Return maximum number of processes this real user ID can have. */
  19. extern long int __get_child_max (void) attribute_hidden;
  20. # endif /* !_ISOMAC */
  21. #endif /* sys/sysinfo.h */