public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 2/2] man3/getgrnam: clarify error behavior when entry is not found
  2025-11-27 13:22 [PATCH v2 1/2] man3/getgrnam: fix ATTRIBUTES table after adding R-functions Simon Essien
@ 2025-11-27 13:22 ` Simon Essien
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Essien @ 2025-11-27 13:22 UTC (permalink / raw)
  To: alex, linux-man; +Cc: Simon Essien

---
 man/man3/getgrnam.3 | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/man/man3/getgrnam.3 b/man/man3/getgrnam.3
index 87eaf39d5..1a2143d47 100644
--- a/man/man3/getgrnam.3
+++ b/man/man3/getgrnam.3
@@ -156,12 +156,15 @@ In case of error, an error number is returned, and NULL is stored in
 .IR *result .
 .SH ERRORS
 .TP
-.BR 0 " or " ENOENT " or " ESRCH " or " EBADF " or " EPERM " or ..."
+.BR 0
+No matching group record was found, or no error occurred (POSIX behavior).
+.TP
+.B ENOENT ", " ESRCH ", " EBADF ", " EPERM ", or other values"
 The given
 .I name
 or
 .I gid
-was not found.
+was not found. (Some UNIX implementations set errno in this case.)
 .TP
 .B EINTR
 A signal was caught;
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2 1/2] man3/getgrnam: fix ATTRIBUTES table after adding R-functions
@ 2025-11-27 15:25 Simon Essien
  2025-11-27 15:25 ` [PATCH v2 2/2] man3/getgrnam: clarify error behavior when entry is not found Simon Essien
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Essien @ 2025-11-27 15:25 UTC (permalink / raw)
  To: linux-man, alx; +Cc: Simon Essien

---
 man/man3/getgrnam.3 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/man/man3/getgrnam.3 b/man/man3/getgrnam.3
index 7d6365caa..87eaf39d5 100644
--- a/man/man3/getgrnam.3
+++ b/man/man3/getgrnam.3
@@ -1,4 +1,3 @@
-'\" t
 .\" Copyright, the authors of the Linux man-pages project
 .\"
 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2 2/2] man3/getgrnam: clarify error behavior when entry is not found
  2025-11-27 15:25 [PATCH v2 1/2] man3/getgrnam: fix ATTRIBUTES table after adding R-functions Simon Essien
@ 2025-11-27 15:25 ` Simon Essien
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Essien @ 2025-11-27 15:25 UTC (permalink / raw)
  To: linux-man, alx; +Cc: Simon Essien

---
 man/man3/getgrnam.3 | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/man/man3/getgrnam.3 b/man/man3/getgrnam.3
index 87eaf39d5..1a2143d47 100644
--- a/man/man3/getgrnam.3
+++ b/man/man3/getgrnam.3
@@ -156,12 +156,15 @@ In case of error, an error number is returned, and NULL is stored in
 .IR *result .
 .SH ERRORS
 .TP
-.BR 0 " or " ENOENT " or " ESRCH " or " EBADF " or " EPERM " or ..."
+.BR 0
+No matching group record was found, or no error occurred (POSIX behavior).
+.TP
+.B ENOENT ", " ESRCH ", " EBADF ", " EPERM ", or other values"
 The given
 .I name
 or
 .I gid
-was not found.
+was not found. (Some UNIX implementations set errno in this case.)
 .TP
 .B EINTR
 A signal was caught;
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-27 15:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-27 15:25 [PATCH v2 1/2] man3/getgrnam: fix ATTRIBUTES table after adding R-functions Simon Essien
2025-11-27 15:25 ` [PATCH v2 2/2] man3/getgrnam: clarify error behavior when entry is not found Simon Essien
  -- strict thread matches above, loose matches on Subject: below --
2025-11-27 13:22 [PATCH v2 1/2] man3/getgrnam: fix ATTRIBUTES table after adding R-functions Simon Essien
2025-11-27 13:22 ` [PATCH v2 2/2] man3/getgrnam: clarify error behavior when entry is not found Simon Essien

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox