From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4183C159C9B for ; Fri, 2 Aug 2024 23:14:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 892A5E2A49; Fri, 2 Aug 2024 23:14:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6B81BE2A49 for ; Fri, 2 Aug 2024 23:14:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 667F534300C for ; Fri, 2 Aug 2024 23:14:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CDDD21E9B for ; Fri, 2 Aug 2024 23:14:11 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1720523536.9d7875e5c6d7f772918f0dad077c7a582a2647e8.sam@gentoo> Subject: [gentoo-commits] proj/gentoo-functions:master commit in: / X-VCS-Repository: proj/gentoo-functions X-VCS-Files: functions.sh X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 9d7875e5c6d7f772918f0dad077c7a582a2647e8 X-VCS-Branch: master Date: Fri, 2 Aug 2024 23:14:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 842dedd2-91ad-4ff8-aae1-9c366831cbb4 X-Archives-Hash: ea0184d61e04fb88cd38c034b68516ac commit: 9d7875e5c6d7f772918f0dad077c7a582a2647e8 Author: Kerin Millar plushkava net> AuthorDate: Tue Jul 9 11:12:16 2024 +0000 Commit: Sam James gentoo 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 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"