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>
This commit is contained in:
Michael Kerrisk 2021-02-06 10:38:57 +01:00
parent bdd65639ba
commit b926779b33
2 changed files with 10 additions and 2 deletions

View 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

View 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