]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
getgid.2, getuid.2: Note that these interfaces never modify 'errno'
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 6 Feb 2021 09:38:57 +0000 (10:38 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 6 Feb 2021 09:38:57 +0000 (10:38 +0100)
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>
man2/getgid.2
man2/getuid.2

index 713fbfdc98ebf72db16edc9a3ec3b015477024cd..e0c802e36e10865cf3b086f3d69b0e676c14daf2 100644 (file)
@@ -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
index 76ffe8b60f4aaf726e6591d6b7edec987309d5f4..6c2768643cf7ab2490d23c4d618d12392e77d800 100644 (file)
@@ -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