summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c
diff options
context:
space:
mode:
authorDan McDonald <danmcd@joyent.com>2022-01-19 10:55:52 -0500
committerDan McDonald <danmcd@joyent.com>2022-01-19 10:55:52 -0500
commite6a9d81fcec6b169859244133a26be6cd74b9a03 (patch)
treebb003d84cab6fa6e63f5fbaead18bd092f78d144 /usr/src/man/man3c
parentdaf61a2ba69d236f9da41f1a991cf8af3f3ff72c (diff)
parent1aff3eee7740231f158365739d74142c5cf1947a (diff)
downloadillumos-joyent-e6a9d81fcec6b169859244133a26be6cd74b9a03.tar.gz
[illumos-gate merge]
commit 1aff3eee7740231f158365739d74142c5cf1947a 14416 Typos in getgrouplist.3c commit 186c806e1377410853ef84873c5f064d8e980262 10565 man -w segfaults on .IX macro commit ceb6b962688367d471aede9d55551e6b57bd9adc 14408 Remove usbgem GLDv2 bits
Diffstat (limited to 'usr/src/man/man3c')
-rw-r--r--usr/src/man/man3c/getgrouplist.3c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/man/man3c/getgrouplist.3c b/usr/src/man/man3c/getgrouplist.3c
index 18906886c2..4c39ed8fbb 100644
--- a/usr/src/man/man3c/getgrouplist.3c
+++ b/usr/src/man/man3c/getgrouplist.3c
@@ -11,7 +11,7 @@
.\"
.\" Copyright 2020 Joyent, Inc.
.\"
-.Dd August 28, 2021
+.Dd January 17, 2022
.Dt GETGROUPLIST 3C
.Os
.Sh NAME
@@ -112,7 +112,7 @@ upon return to determine the number of entries in
.Pp
On Linux, both glibc and musl return the number of groups
.Fa user
-belongs to on success and returns -1 on failure.
+belongs to on success and return -1 on failure.
.Pp
None of these other implementations document any
.Va errno
@@ -145,7 +145,7 @@ printgroups(const char *user)
err(EXIT_FAILURE, "calloc");
if ((pw = getpwnam(user)) == NULL)
- err(EXIT_FAILURE, "getpwname");
+ err(EXIT_FAILURE, "getpwnam");
ngroups = NGROUPS_MAX;
ret = getgrouplist(user, pw->pw_gid, groups, &ngroups);
@@ -165,7 +165,7 @@ printgroups(const char *user)
.Sh ERRORS
On failure,
.Fn getgrouplist
-returns -1, and will set errno to one one of the following values:
+returns -1, and will set errno to one of the following values:
.Bl -tag -width Dv
.It Er ENOMEM
Not enough memory to complete the request.