repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
preserve errno across free
[musl.git]
/
src
/
conf
/
legacy.c
blob
f1d9e3253cf640fa30a5560d8b9913296eccb6d0
1
#include <sys/sysinfo.h>
2
#include <unistd.h>
3
4
int
get_nprocs_conf
()
5
{
6
return
sysconf
(
_SC_NPROCESSORS_CONF
);
7
}
8
9
int
get_nprocs
()
10
{
11
return
sysconf
(
_SC_NPROCESSORS_ONLN
);
12
}
13
14
long
get_phys_pages
()
15
{
16
return
sysconf
(
_SC_PHYS_PAGES
);
17
}
18
19
long
get_avphys_pages
()
20
{
21
return
sysconf
(
_SC_AVPHYS_PAGES
);
22
}