Flesh out description of getlogin() and recommend against using it.

This commit is contained in:
Jeremy Hylton 2002-07-24 15:32:25 +00:00
parent 77f6ccd1f7
commit 403e351dfc
1 changed files with 3 additions and 2 deletions

View 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}