diff options
author | Mohamed Akram <mohd.akram@outlook.com> | 2024-05-30 18:05:50 +0400 |
---|---|---|
committer | Arjun Shankar <arjun@redhat.com> | 2024-06-05 14:57:54 +0200 |
commit | 2f7246015c0d0760ab4529c4b13b2816337bed35 (patch) | |
tree | 5de6bd31c75b27ff22155b622f4b09a5b0001470 | |
parent | 92c270d32caf3f8d5a02b8e46c7ec5d9d0315158 (diff) | |
download | glibc-2f7246015c0d0760ab4529c4b13b2816337bed35.tar.gz glibc-2f7246015c0d0760ab4529c4b13b2816337bed35.tar.xz glibc-2f7246015c0d0760ab4529c4b13b2816337bed35.zip |
getconf: Add NPROCESSORS_{CONF,ONLN} [BZ #31661]
These are required by the upcoming POSIX standard and are available on other platforms. Link: https://austingroupbugs.net/view.php?id=339 Signed-off-by: Mohamed Akram <mohd.akram@outlook.com> Reviewed-by: Arjun Shankar <arjun@redhat.com>
-rw-r--r-- | posix/getconf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/posix/getconf.c b/posix/getconf.c index 6a2127b3ee..b35d55a341 100644 --- a/posix/getconf.c +++ b/posix/getconf.c @@ -121,7 +121,9 @@ static const struct conf vars[] = { "WORD_BIT", _SC_WORD_BIT, SYSCONF }, { "_AVPHYS_PAGES", _SC_AVPHYS_PAGES, SYSCONF }, { "_NPROCESSORS_CONF", _SC_NPROCESSORS_CONF, SYSCONF }, + { "NPROCESSORS_CONF", _SC_NPROCESSORS_CONF, SYSCONF }, { "_NPROCESSORS_ONLN", _SC_NPROCESSORS_ONLN, SYSCONF }, + { "NPROCESSORS_ONLN", _SC_NPROCESSORS_ONLN, SYSCONF }, { "_PHYS_PAGES", _SC_PHYS_PAGES, SYSCONF }, { "_POSIX_ARG_MAX", _SC_ARG_MAX, SYSCONF }, { "_POSIX_ASYNCHRONOUS_IO", _SC_ASYNCHRONOUS_IO, SYSCONF }, |