diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2006-08-03 13:57:30 +0000 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2006-08-03 13:57:30 +0000 |
commit | 68e1685c25cab6c29e4250f592c39f47996776af (patch) | |
tree | 7d83ff852ff8dd6c7ca2fcaa610ab933590eba72 /man3/getlogin.3 | |
parent | 97c1eac86f435d7feeef158417941751e7bd7a15 (diff) |
Updated CONFORMING TO section
Diffstat (limited to 'man3/getlogin.3')
-rw-r--r-- | man3/getlogin.3 | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/man3/getlogin.3 b/man3/getlogin.3 index 0ac600c7..0c7d9ef8 100644 --- a/man3/getlogin.3 +++ b/man3/getlogin.3 @@ -107,9 +107,17 @@ Insufficient memory to allocate passwd structure. some libc versions used \fI/var/adm/utmp\fP) .fi .SH "CONFORMING TO" -POSIX.1. System V has a \fBcuserid\fP() function which uses the real -user ID rather than the effective user ID. The \fBcuserid\fP() function -was included in the 1988 version of POSIX, but removed from the 1990 version. +.BR getlogin () +and +.BR getlogin_r () +specified in POSIX.1-2001. + +System V has a \fBcuserid\fP() function which uses the real +user ID rather than the effective user ID. +The \fBcuserid\fP() function +was included in the 1988 version of POSIX, +but removed from the 1990 version. +It was present in SUSv2, but removed in POSIX.1-2001. .LP OpenBSD has \fBgetlogin\fP() and \fBsetlogin\fP(), and a username associated with a session, even if it has no controlling tty. @@ -124,11 +132,14 @@ Avoid .BR getlogin () for security-related purposes. .LP -Note that glibc does not follow the POSIX spec and uses stdin +Note that glibc does not follow the POSIX spec and uses +.I stdin instead of .IR /dev/tty . -A bug. (Other recent systems, like SunOS 5.8 and HPUX 11.11 and FreeBSD 4.8 -all return the login name also when stdin is redirected.) +A bug. (Other recent systems, like SunOS 5.8 and HP-UX 11.11 and FreeBSD 4.8 +all return the login name also when +.I stdin +is redirected.) .LP Nobody knows precisely what .BR cuserid () |