aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2021-02-06 10:38:57 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-02-06 10:38:57 +0100
commitb926779b33e6efdd81d7bb559828fff9563f8ed6 (patch)
tree199e04e911e56f369e7f8298cbeb952d480524fa
parentbdd65639ba37af073e97dffbd74c1dbdec70ef35 (diff)
downloadman-pages-b926779b33e6efdd81d7bb559828fff9563f8ed6.tar.gz
getgid.2, getuid.2: Note that these interfaces never modify 'errno'
See https://www.austingroupbugs.net/view.php?id=511 and the POSIX.1-2008 specifications of the interfaces. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/getgid.26
-rw-r--r--man2/getuid.26
2 files changed, 10 insertions, 2 deletions
diff --git a/man2/getgid.2 b/man2/getgid.2
index 713fbfdc98..e0c802e36e 100644
--- a/man2/getgid.2
+++ b/man2/getgid.2
@@ -40,7 +40,11 @@ returns the real group ID of the calling process.
.BR getegid ()
returns the effective group ID of the calling process.
.SH ERRORS
-These functions are always successful.
+These functions are always successful
+and never modify
+.\" https://www.austingroupbugs.net/view.php?id=511
+.\" 0000511: getuid and friends should not modify errno
+.IR errno .
.SH CONFORMING TO
POSIX.1-2001, POSIX.1-2008, 4.3BSD.
.SH NOTES
diff --git a/man2/getuid.2 b/man2/getuid.2
index 76ffe8b60f..6c2768643c 100644
--- a/man2/getuid.2
+++ b/man2/getuid.2
@@ -41,7 +41,11 @@ returns the real user ID of the calling process.
.BR geteuid ()
returns the effective user ID of the calling process.
.SH ERRORS
-These functions are always successful.
+These functions are always successful
+and never modify
+.\" https://www.austingroupbugs.net/view.php?id=511
+.\" 0000511: getuid and friends should not modify errno
+.IR errno .
.SH CONFORMING TO
POSIX.1-2001, POSIX.1-2008, 4.3BSD.
.SH NOTES