public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] getconf: Add NPROCESSORS_{CONF,ONLN} [BZ #31661]
@ 2024-06-05 13:02 Arjun Shankar
  0 siblings, 0 replies; only message in thread
From: Arjun Shankar @ 2024-06-05 13:02 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2f7246015c0d0760ab4529c4b13b2816337bed35

commit 2f7246015c0d0760ab4529c4b13b2816337bed35
Author: Mohamed Akram <mohd.akram@outlook.com>
Date:   Thu May 30 18:05:50 2024 +0400

    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>

Diff:
---
 posix/getconf.c | 2 ++
 1 file changed, 2 insertions(+)

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 },

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-05 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-05 13:02 [glibc] getconf: Add NPROCESSORS_{CONF,ONLN} [BZ #31661] Arjun Shankar

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 read-only IMAP folder(s) and NNTP newsgroup(s).