From nobody Wed Jun 11 23:16:31 2025 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 4bHhPC5FPSz5ydXY; Wed, 11 Jun 2025 23:16:31 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bHhPC4dzzz3Kvb; Wed, 11 Jun 2025 23:16:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749683791; 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=tcXKf9+XYfC/TsmfHMYYmxv78m+7+aHRI7IxODrwcAE=; b=vKfEKkTfRsCjvjxsUqGOSxsI3bvbelkkWfha/V+QkBcWSNuGxsd6QaxdtgVXvuivHe31pT M3+iAHsGAI9c7Qc7qXoZC9rJlopLsiG5KfxS7AngTyQz+M9O69JqZUj9UcgqNYsKEvoegK 0kesAkCu02LXb2TvuXqVZmbCHpJXpKwAaIlAO1bsYoX1qPoLT8dciBr3lmRkQ/U2r9hZD2 hGcGrjUdT4cdoG29tebpGqXc3Xx7Xs8ZcLPAyhKD4w0v0Yf8euD3hJmCadYc+ydhFRd8AD kOUy+7FSEMWX2gLsEBpEJl3HF7RJvclsGt/yXEoecFUQEsMGP0cyqdJ3HDrJbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749683791; 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=tcXKf9+XYfC/TsmfHMYYmxv78m+7+aHRI7IxODrwcAE=; b=hiaQaOR4+AqaE/O7wmpM0EMCEU+Hv0r03lZ0eiaKs+ZFAU1J2GUGorX9x6MY4Vx5xT4drI DB7k5Zi/pTJbk1IRHiG7zeWK9Bv4pW7NMmrKQMU6e8MaGqKEpMX+eyhtOfXoVXLGOhQClK 7q1fvMV0CE2nOgXdsJEUwef4wgAtCcFZNtDDZu+elZZCN4PyHwk10ke6V5jrZN12cFyDKc Ehi6WxjdeSHqus5OWyHaNSH9HrF9lIc9CZGKgqFOUIWPMc2J/sfQErFM+FwwgwejGXNSVn TuZbQWE8Ls2+SxWoyGI+IgPflBddLHndVC/limDcXrcFiqg+KnewRe/H1ubKFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1749683791; a=rsa-sha256; cv=none; b=LcuR9orcwIMFx/Pf/wWUNGIfr9pqhmoVkYhIJQjHzuWTi8IVItpLLyYJnmH8AiRLSUIJsE WSbqFryGOOh+MvGqZRFpFMKIqfXpHttUU2cQnZXH4aiFDv1VFBa0tMqqvSBZh1ryFZwB6s YZAevT63w994la8CTUYaV5gFCZXK9x/bg6FPoW10sGYNFE2XRRR5w0Jvyx0zKQE/bxsd3h CviVwyvWZgzOo0muJfjlkvU0aY45UZp2dnlsfuS82tmiKfwz3OrXtGICMsfpbNWpWUrcIz 5xZ70aUliV33fYzgqsZA6UWypedbwz5/iWm9jEVWThVBscJo5o1x/C+uDs8rbA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bHhPC3z87znG1; Wed, 11 Jun 2025 23:16:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 55BNGVT4045922; Wed, 11 Jun 2025 23:16:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55BNGVcb045919; Wed, 11 Jun 2025 23:16:31 GMT (envelope-from git) Date: Wed, 11 Jun 2025 23:16:31 GMT Message-Id: <202506112316.55BNGVcb045919@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 86f06e612b36 - main - Add POSIX NSIG_MAX & _SC_NSIG List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 86f06e612b368e0e25080f1967a2e014e3891035 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=86f06e612b368e0e25080f1967a2e014e3891035 commit 86f06e612b368e0e25080f1967a2e014e3891035 Author: Ricardo Branco AuthorDate: 2025-05-25 09:48:04 +0000 Commit: Warner Losh CommitDate: 2025-06-11 23:16:20 +0000 Add POSIX NSIG_MAX & _SC_NSIG Signed-off-by: Ricardo Branco Reviewed by: imp, kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1710 Closes: https://github.com/freebsd/freebsd-src/pull/1710 --- include/limits.h | 1 + include/unistd.h | 4 ++++ lib/libc/gen/sysconf.c | 2 ++ 3 files changed, 7 insertions(+) diff --git a/include/limits.h b/include/limits.h index ed8844e65642..2b75b94cb513 100644 --- a/include/limits.h +++ b/include/limits.h @@ -139,6 +139,7 @@ #if __POSIX_VISIBLE >= 202405 #define GETENTROPY_MAX 256 +#define NSIG_MAX 128 /* _SIG_MAXSIG from */ #endif #include diff --git a/include/unistd.h b/include/unistd.h index 33dd983eb11a..21e3a7740607 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -295,6 +295,10 @@ typedef __useconds_t useconds_t; #define _SC_UEXTERR_MAXLEN 123 /* user */ #endif +#if __POSIX_VISIBLE >= 202405 +#define _SC_NSIG 124 +#endif + /* Extensions found in Solaris and Linux. */ #define _SC_PHYS_PAGES 121 diff --git a/lib/libc/gen/sysconf.c b/lib/libc/gen/sysconf.c index d20b70590fb6..66562d0e29f0 100644 --- a/lib/libc/gen/sysconf.c +++ b/lib/libc/gen/sysconf.c @@ -287,6 +287,8 @@ do_NAME_MAX: mib[0] = CTL_P1003_1B; mib[1] = CTL_P1003_1B_MQ_OPEN_MAX; goto yesno; + case _SC_NSIG: + return (_SIG_MAXSIG); case _SC_PAGESIZE: return (getpagesize()); case _SC_RTSIG_MAX: