From nobody Thu Oct 9 20:41:23 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 4cjMGq5JJTz6C5sn; Thu, 09 Oct 2025 20:41:23 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cjMGq3Jw5z3Zf9; Thu, 09 Oct 2025 20:41:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760042483; 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=QptP/xqO0bq/re2OhzJUG0VENZwNG+a41b5yZFC0mtk=; b=XCEsdmW3zllKDdKx+MPF6GH5FQbz/xhIKU4/XmuyQpOgw3k9so6WHzegfRUGsVXkW2u6mV VVdF/97r06wzecBF2yzncJxoadNvpMeWfDPPBLZkE7ZGvUsBFsi6KKPIAdBVkZ2IHE37UJ Q02xVJ5xVrwfzfq31/13FGXgwhCyqfoonPSUE6hcqoenuzKBNgf0Kp9kkPml2MQw4Gm7rR tT1N2w82UhMIbAc+3DL0Qtyllfm5S3t0E/u6NG4AMf0G2ldOOwWnhFMRC7d3IDcdL8RvxO aiYcAYWfIX5pxrTUD6thMdvRFhAL4NAre0wiC4xqLMOShqDkqH4aw4Jc53F/Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760042483; 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=QptP/xqO0bq/re2OhzJUG0VENZwNG+a41b5yZFC0mtk=; b=drPR5jk28jq1Vf3EtK17T38ob75EZFVSMUA7wur7/JFCN90vLPgM546Qmbsqx7xftRgSva z8Ec6JgniucwQJY1lSY+/HSmrpa+44ufJ1IZnyd6t5tnUosF6t4XOS8fr0oVkbt9Pq7U/F ajw50++edlEOerEOLW9mZ2bZ4pp69i0Kyx4iC91G4I5jFeXxcTp4jEdpkpcp2pf3kqjR3f /Suyjq7JSEctuaD5xtR5Eo4flIo7W/riJjD0QA7MuugjA4vtVqsDtBpTI0LeCP2JIh7YIX jVwgv0Glxpc/7FcLslSsZo8a3AXfV/fdEpPCtJ31CgYqCscCdZ+3LaGphCN6Qg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760042483; a=rsa-sha256; cv=none; b=jQYqP+oSUYqU1KsYJqy3LxbYbCdNG25gQgXtgNjVW5IBQcQbAkQ3YBGlASgr2yfBqh4E1f oZVhAg/E4cnb4cKG5td6ZjXdQJP2VKM7QFu8R57ixs0pUCZdhMDi9ZaRrR8UbuiOG4BE+y /YQ8VuDl93D90eHu5HA7CiGpcgreitatv3LmsBpIl6csKcAut+EfBZl8+gKPnI0Rww71Y8 9/XGda00WQJbtnI79h4L7Z5BhONdS5QTDYXL5os5CZC7Mf/D8BI7wYVakXftSo39Qx0OV7 k/3RC2fBvXJ2CrNggsmjN5qr9Opz0b5D1Wgns+NoKHGDtCXt8c2muNq3+QhsSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cjMGq2w75zZJj; Thu, 09 Oct 2025 20:41:23 +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 599KfNZU089853; Thu, 9 Oct 2025 20:41:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 599KfNFL089850; Thu, 9 Oct 2025 20:41:23 GMT (envelope-from git) Date: Thu, 9 Oct 2025 20:41:23 GMT Message-Id: <202510092041.599KfNFL089850@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: baf1210fa2e5 - stable/15 - initgroups.3: Clarify that ENOMEM is a possible value for 'errno' 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: olce X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: baf1210fa2e57b587193e81ff57fbce13f315cba Auto-Submitted: auto-generated The branch stable/15 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=baf1210fa2e57b587193e81ff57fbce13f315cba commit baf1210fa2e57b587193e81ff57fbce13f315cba Author: Olivier Certner AuthorDate: 2025-10-09 14:04:44 +0000 Commit: Olivier Certner CommitDate: 2025-10-09 20:40:43 +0000 initgroups.3: Clarify that ENOMEM is a possible value for 'errno' The current phrasing could be interpreted as meaning that initgroups(3) could return ENOMEM instead of -1, which it actually did until I fixed it in commit 0b018cfd81d8 ("initgroups(3): Fix return value on allocation failure"). While here, mention setgroups(2) as a system call rather than a library function. MFC with: 0b018cfd81d8 ("initgroups(3): Fix return value on allocation failure") Sponsored by: The FreeBSD Foundation (cherry picked from commit c36a44e1cdab1c67a98132676818f473cc4e5c03) --- lib/libc/gen/initgroups.3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libc/gen/initgroups.3 b/lib/libc/gen/initgroups.3 index 4f538fb180ec..74133e7d7048 100644 --- a/lib/libc/gen/initgroups.3 +++ b/lib/libc/gen/initgroups.3 @@ -33,7 +33,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd September 17, 2025 +.Dd October 9, 2025 .Dt INITGROUPS 3 .Os .Sh NAME @@ -67,9 +67,9 @@ The .Fn initgroups function may fail and set .Va errno -to any of the errors specified for the library function -.Xr setgroups 2 . -It may also return: +to any of the errors specified for the +.Xr setgroups 2 +system call, or to: .Bl -tag -width Er .It Bq Er ENOMEM The