From nobody Fri Oct 10 17:16:39 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 4cjth801ZCz6BchR; Fri, 10 Oct 2025 17:16:40 +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 4cjth74w68z3gmZ; Fri, 10 Oct 2025 17:16:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760116599; 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=vBNG86MHFtxNfYhb+SX481dYAuR3ytTUMoRB7U0/Vh0=; b=If02x1DctTq5RZFivMeXxzA8OJk11V9p0nSZxiTXqiE03ZbxWq+yg9gMGhS9PEYbVUci3R tFPi+D2no0PUy6d1EIG/ICG1bBfaBU7YrxId7CkK+hZ1cz9w30fYcXR6AJ+Z5akp+VhN8j uI9JjDWm1uB9dYvjwHFizRB0q+djDBvBXlXEM9oRlzskUMBlFMDP50btp6HQ8mN9QW7KHf rNjjoN0WCtjUK7/3GXbIpWBcY1rseerS8yc+pXUqO8TF7eLHA7FXcK+beJNSRK2uCPgIHJ hteX8psM7NzMvgI3RW2LaNWgFtXkwLQrFVnIyFoYVQDo6Lt9s2tRUZ61zIV4lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760116599; 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=vBNG86MHFtxNfYhb+SX481dYAuR3ytTUMoRB7U0/Vh0=; b=A9YeBV3Ua5eZOpYfbPu3LBuCDOGqB/a/Vi21ZsK6Ny+q6CmqYs4y5wRZQ6IeRaH/lgPjOc yjBiDLv6MFSE5wb+3VR/hYgjDfEnUG0JcO892paw29xl/wi+41ax+VjRi0ria+wCCEubdq cctn0iWjLSY14hKmZQuvprxtDvjxHr0rmZF+d/8oFh6Vzt9+B9GrVBVV30+eSgbom1H+GG uPkJT7/m76bDjxv9FnQ2gUvs5rs8yusE3XKzOXlvilTSrzGeIQ1cqI1+oN9bIQ66eCeilX Tkrj+D8FTlT1tQs6YrRFJPsnRUB3//2bHM97xCYdbisb7rIzldP0BrbJDtARVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760116599; a=rsa-sha256; cv=none; b=pNUHMKB/and4sNVV9G7gpJniEsq3vOEhObD1edEbW1y1N3YKNvL1hQ8Tk1V+52WYcwzzpB CKxpMkC7PbHjn/dZ5YSSOWDNv/DHxKbMUSC0qgCOL7PodqSpvCT8gQW9vTQQpYA9YdRSYW bnb2g52SpJX0bo2fjPnio0yT7EfY5B3fVMB24VgSu+MMqU32IrYIq67WJa6yz80FgQnSic fP94l8Ui1jq/yqVzkM+qbYbbXenh0+QWd7kVO9cxwGynCtbXZp3Ox1xxazC039JdSYG0X6 oczX4z7vA4TrPVAeQHrgBOMJugrenLO3mdY0/nVwlRQQ3C1hb/wHPqGExsm5uQ== 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 4cjth74Rpjz1Bng; Fri, 10 Oct 2025 17:16:39 +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 59AHGdvk009815; Fri, 10 Oct 2025 17:16:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59AHGdo3009812; Fri, 10 Oct 2025 17:16:39 GMT (envelope-from git) Date: Fri, 10 Oct 2025 17:16:39 GMT Message-Id: <202510101716.59AHGdo3009812@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: 25624850a77b - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 25624850a77babddc9e288639a3ced0f032a6ff2 Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=25624850a77babddc9e288639a3ced0f032a6ff2 commit 25624850a77babddc9e288639a3ced0f032a6ff2 Author: Olivier Certner AuthorDate: 2025-10-09 14:04:44 +0000 Commit: Olivier Certner CommitDate: 2025-10-10 17:16:02 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc/gen/initgroups.3 b/lib/libc/gen/initgroups.3 index 4bf598db5666..90167bed7bb2 100644 --- a/lib/libc/gen/initgroups.3 +++ b/lib/libc/gen/initgroups.3 @@ -70,9 +70,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