Flesh out description of getlogin() and recommend against using it.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 24 Jul 2002 15:32:25 +0000 (15:32 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 24 Jul 2002 15:32:25 +0000 (15:32 +0000)
Doc/lib/libos.tex

index 4220d6dd6e4d097dd81a2729221ba72139442dbd..7a6389039b6e32a25746d150e892f4b20f89dacc 100644 (file)
@@ -139,8 +139,9 @@ Availability: \UNIX.
 \end{funcdesc}
 
 \begin{funcdesc}{getlogin}{}
-Return the actual login name for the current process, even if there
-are multiple login names which map to the same user id.
+Return the name of the user logged in on the controlling terminal of
+the process.  For most purposes, it is more useful to use the
+environment variable \envvar{LOGNAME} to find out who the user is.
 Availability: \UNIX.
 \end{funcdesc}