mailing list of musl libc
 help / color / mirror / code / Atom feed
891f6dbbd6d366300d6d06cc3a79ee0462b5fba0 blob 296 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
#include <sys/sysinfo.h>
#include <unistd.h>

int get_nprocs_conf()
{
	return sysconf(_SC_NPROCESSORS_CONF);
}

int get_nprocs()
{
	return sysconf(_SC_NPROCESSORS_ONLN);
}

long get_phys_pages()
{
	return sysconf(_SC_PHYS_PAGES);
}

long get_avphys_pages()
{
	return sysconf(_SC_AVPHYS_PAGES);
}
debug log:

solving 891f6dbb ...
found 891f6dbb in https://inbox.vuxu.org/musl/20220503155655.11222-2-jmaselbas@kalray.eu/ ||
	https://inbox.vuxu.org/musl/20220504122426.11529-2-jmaselbas@kalray.eu/
found f1d9e325 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 f1d9e3253cf640fa30a5560d8b9913296eccb6d0	src/conf/legacy.c

applying [1/2] https://inbox.vuxu.org/musl/20220503155655.11222-2-jmaselbas@kalray.eu/
diff --git a/src/conf/legacy.c b/src/conf/legacy.c
index f1d9e325..891f6dbb 100644

Checking patch src/conf/legacy.c...
Applied patch src/conf/legacy.c cleanly.

skipping https://inbox.vuxu.org/musl/20220504122426.11529-2-jmaselbas@kalray.eu/ for 891f6dbb
index at:
100644 891f6dbbd6d366300d6d06cc3a79ee0462b5fba0	src/conf/legacy.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).