From nobody Fri Nov 13 02:38:00 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jQhJ83NYGz6y7kJ for ; Fri, 13 Nov 2026 02:38:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4jQhJ82RY1z4vN9 for ; Fri, 13 Nov 2026 02:38:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794537480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8I+2zPyq8jgnevZIKnVPhfcfYZTIyIKDMFtTt75/F0E=; b=pqdHsn0wjtM2VLdVKBs3q2FDPoBNEtz0YFiXPbJAfu3i+VeSTID+BnZpsJ4TKzWfoxbrqR DI25hWv03oFQP6SzffWDfJUZOPyd2hmNCUV6MDvMCjfChMsejrR8WSydA+uUMzN0U34pRk nUiiDBKPBKK9dYDGXwQOwNWNoQRU6Neg8oWj2IoSEoikKz1SCHEo2pm7Kshl9zxcC7ocak NC/QHxtRC8/WCTStRcC4KQ0rZov9Q2oBhJNezox2MaJpZqCm1xYSK9taFSqKRvdm/uMGwX K/rNWH7nQolfn5zW9VEJWuIXvomjVufQAXUENUe8MUjMRQiTY3/+y6m8XswD8A== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794537480; b=e0nvJoEaLEJNs9yAHitbLPFR/HHheuuOr3q/Lf2yODZWwvzbjOB2xmuuhlRhLvtVYPyv4z oBR1bs9Nm9DIrXiIDba8EsQZtaAd/gqKX7/LZXASd5W17a71waqJMWnOsC+/dqYr7MI06P NEotrMoaUIu4Po97I7ykqBFXTQJKHOBXtWySVfxANPWHZW1Fk9hnEhqfP342gxoJEKsGcw zXA4DpdhNyeXIdog4Y1dDquaUsJuQ65ScmA2sYJtQZ/s8oKtJOoDEId9UU6VymiryUjgYg u9KNlC9H8A5sAkCvakSdfwSk6caxP+64Mg34wtA9yUQEyFM444OXxDQAR1HePQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794537480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8I+2zPyq8jgnevZIKnVPhfcfYZTIyIKDMFtTt75/F0E=; b=L1NGjb0o49wv8X56BdOHr9VRNcNwQkW6GBZmUlj6eBVFQ39Yh3YtrZ3jhyHkgs+guDtbJL 6Ku0ShEJhhVvqhk8xOdiVALyyNxf0ujXhQaPPSW64D172CLxw978lBBz8QpadTRmdo6F+/ YcFctWyvR1zhPiaWbiIzlKpD+q9zFGKVWR6VpFm/MEPAWD86rmtgh1amE4+5a2iRbyby9e h8ewcCcqR2/0+htlro7gHgaWYOWaHZKoAJMxLnDUhC99S+9zTy5NqeDrgZ7jssRz5yzgAM 0PgpxQfOHTDWAy8mQ/TV51WcJAVMufBfeBmvnC2TfMokz3/dUUmgCXddpxYZ2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jQhJ8265KzF0H for ; Fri, 13 Nov 2026 02:38:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 22b82 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 13 Nov 2026 02:38:00 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 343afa2118ba - main - unistd.h: sort sysconf(3) arguments List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 343afa2118ba8aaa17da00e34868544018d9f33a Auto-Submitted: auto-generated Date: Fri, 13 Nov 2026 02:38:00 +0000 Message-Id: <6af67808.22b82.225e9bf9@gitrepo.freebsd.org> The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=343afa2118ba8aaa17da00e34868544018d9f33a commit 343afa2118ba8aaa17da00e34868544018d9f33a Author: Gleb Smirnoff AuthorDate: 2026-11-13 02:37:17 +0000 Commit: Gleb Smirnoff CommitDate: 2026-11-13 02:37:17 +0000 unistd.h: sort sysconf(3) arguments No functional change. Keeping it sorted reduces chance of a collision. Reviewed by: kfv, imp Differential Revision: https://reviews.freebsd.org/D61345 --- include/unistd.h | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/include/unistd.h b/include/unistd.h index 290bcce6a0b3..0bf0bc395161 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -161,6 +161,7 @@ typedef __useconds_t useconds_t; * Those that are marked `user' are implemented entirely in the C * library and never query the kernel. pathconf() is implemented * directly by the kernel so those are not defined here. + * Please keep this list sorted by numeric value. */ #define _SC_ARG_MAX 1 #define _SC_CHILD_MAX 2 @@ -218,6 +219,15 @@ typedef __useconds_t useconds_t; #define _SC_TIMER_MAX 52 #endif +#if __XSI_VISIBLE +#define _SC_IOV_MAX 56 +#endif + +#if __BSD_VISIBLE +#define _SC_NPROCESSORS_CONF 57 +#define _SC_NPROCESSORS_ONLN 58 +#endif + #if __POSIX_VISIBLE >= 200112 #define _SC_2_PBS 59 /* user */ #define _SC_2_PBS_ACCOUNTING 60 /* user */ @@ -267,14 +277,10 @@ typedef __useconds_t useconds_t; #define _SC_V6_ILP32_OFFBIG 104 /* user */ #define _SC_V6_LP64_OFF64 105 /* user */ #define _SC_V6_LPBIG_OFFBIG 106 /* user */ -#define _SC_IPV6 118 -#define _SC_RAW_SOCKETS 119 -#define _SC_SYMLOOP_MAX 120 #endif #if __XSI_VISIBLE #define _SC_ATEXIT_MAX 107 /* user */ -#define _SC_IOV_MAX 56 #define _SC_PAGE_SIZE _SC_PAGESIZE #define _SC_XOPEN_CRYPT 108 /* user */ #define _SC_XOPEN_ENH_I18N 109 /* user */ @@ -288,9 +294,16 @@ typedef __useconds_t useconds_t; #define _SC_XOPEN_XCU_VERSION 117 /* user */ #endif +#if __POSIX_VISIBLE >= 200112 +#define _SC_IPV6 118 +#define _SC_RAW_SOCKETS 119 +#define _SC_SYMLOOP_MAX 120 +#endif + +/* Extensions found in Solaris and Linux. */ +#define _SC_PHYS_PAGES 121 + #if __BSD_VISIBLE -#define _SC_NPROCESSORS_CONF 57 -#define _SC_NPROCESSORS_ONLN 58 #define _SC_CPUSET_SIZE 122 #define _SC_UEXTERR_MAXLEN 123 /* user */ #endif @@ -299,9 +312,6 @@ typedef __useconds_t useconds_t; #define _SC_NSIG 124 #endif -/* Extensions found in Solaris and Linux. */ -#define _SC_PHYS_PAGES 121 - /* Keys for the confstr(3) function. */ #if __POSIX_VISIBLE >= 199209 #define _CS_PATH 1 /* default value of PATH */