preserve errno across free
[musl.git] / src / conf / legacy.c
blobf1d9e3253cf640fa30a5560d8b9913296eccb6d0
1 #include <sys/sysinfo.h>
2 #include <unistd.h>
4 int get_nprocs_conf()
6 return sysconf(_SC_NPROCESSORS_CONF);
9 int get_nprocs()
11 return sysconf(_SC_NPROCESSORS_ONLN);
14 long get_phys_pages()
16 return sysconf(_SC_PHYS_PAGES);
19 long get_avphys_pages()
21 return sysconf(_SC_AVPHYS_PAGES);