diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/getconf.c | 7 | ||||
-rw-r--r-- | posix/unistd.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/posix/getconf.c b/posix/getconf.c index 4ee1446341..5a7b9b1de0 100644 --- a/posix/getconf.c +++ b/posix/getconf.c @@ -99,6 +99,13 @@ static struct conf vars[] = { "_POSIX_THREAD_PRIO_INHERIT", _SC_THREAD_PRIO_INHERIT, SYSCONF }, { "_POSIX_THREAD_PRIO_PROTECT", _SC_THREAD_PRIO_PROTECT, SYSCONF }, { "_POSIX_THREAD_PROCESS_SHARED", _SC_THREAD_PROCESS_SHARED, SYSCONF }, + { "_NPROCESSORS_CONF", _SC_NPROCESSORS_CONF, SYSCONF }, + { "_NPROCESSORS_ONLN", _SC_NPROCESSORS_ONLN, SYSCONF }, + { "ATEXIT_MAX", _SC_ATEXIT_MAX, SYSCONF }, + { "PASS_MAX", _SC_PASS_MAX, SYSCONF }, + { "_PHYS_PAGES", _SC_PHYS_PAGES, SYSCONF }, + { "_AVPHYS_PAGES", _SC_AVPHYS_PAGES, SYSCONF }, + { "_XOPEN_VERSION", _SC_XOPEN_VERSION }, /* POSIX.2 */ { "BC_BASE_MAX", _SC_BC_BASE_MAX, SYSCONF }, { "BC_DIM_MAX", _SC_BC_DIM_MAX, SYSCONF }, diff --git a/posix/unistd.h b/posix/unistd.h index 526832ad4e..3b7cb0a0fb 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -55,6 +55,9 @@ __BEGIN_DECLS creation of locales with the localedef utility. */ #define _POSIX2_LOCALEDEF 1 +/* Library is conformant to X/Open version 4. */ +#define _XOPEN_VERSION 4 + /* Get values of POSIX options: |