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>
This commit is contained in:
Mohamed Akram 2024-05-30 18:05:50 +04:00 committed by Arjun Shankar
parent 92c270d32c
commit 2f7246015c

View File

@ -121,7 +121,9 @@ static const struct conf vars[] =
{ "WORD_BIT", _SC_WORD_BIT, SYSCONF }, { "WORD_BIT", _SC_WORD_BIT, SYSCONF },
{ "_AVPHYS_PAGES", _SC_AVPHYS_PAGES, SYSCONF }, { "_AVPHYS_PAGES", _SC_AVPHYS_PAGES, SYSCONF },
{ "_NPROCESSORS_CONF", _SC_NPROCESSORS_CONF, 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 },
{ "NPROCESSORS_ONLN", _SC_NPROCESSORS_ONLN, SYSCONF },
{ "_PHYS_PAGES", _SC_PHYS_PAGES, SYSCONF }, { "_PHYS_PAGES", _SC_PHYS_PAGES, SYSCONF },
{ "_POSIX_ARG_MAX", _SC_ARG_MAX, SYSCONF }, { "_POSIX_ARG_MAX", _SC_ARG_MAX, SYSCONF },
{ "_POSIX_ASYNCHRONOUS_IO", _SC_ASYNCHRONOUS_IO, SYSCONF }, { "_POSIX_ASYNCHRONOUS_IO", _SC_ASYNCHRONOUS_IO, SYSCONF },