git: c36a44e1cdab - main - initgroups.3: Clarify that ENOMEM is a possible value for 'errno'

From: Olivier Certner <olce_at_FreeBSD.org>
Date: Thu, 09 Oct 2025 14:12:43 UTC
The branch main has been updated by olce:

URL: https://cgit.FreeBSD.org/src/commit/?id=c36a44e1cdab1c67a98132676818f473cc4e5c03

commit c36a44e1cdab1c67a98132676818f473cc4e5c03
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2025-10-09 14:04:44 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-10-09 14:12:24 +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
---
 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