commit:     9d7875e5c6d7f772918f0dad077c7a582a2647e8
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Tue Jul  9 11:12:16 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jul  9 11:12:16 2024 +0000
URL:        
https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=9d7875e5

Mention that _SC_NPROCESSORS_ONLN is now standard

https://austingroupbugs.net/view.php?id=339

Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>

 functions.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/functions.sh b/functions.sh
index 7f4bc25..660e697 100644
--- a/functions.sh
+++ b/functions.sh
@@ -349,8 +349,8 @@ get_nprocs()
                # advantage of acknowledging the effect of sched_setaffinity(2).
                true
        elif getconf _NPROCESSORS_ONLN 2>/dev/null; then
-               # This is a non-standard extension. Nevertheless, it works for
-               # glibc, musl-utils, macOS, FreeBSD, NetBSD and OpenBSD.
+               # This constant is standard as of POSIX-1.2024 and was already
+               # supported by glibc, musl-utils, macOS, FreeBSD, NetBSD and 
OpenBSD.
                true
        else
                warn "get_nprocs: failed to determine the number of processors"

Reply via email to