Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 403e351

Browse files
committed
Flesh out description of getlogin() and recommend against using it.
1 parent 77f6ccd commit 403e351

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/lib/libos.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ \subsection{Process Parameters \label{os-procinfo}}
139139
\end{funcdesc}
140140

141141
\begin{funcdesc}{getlogin}{}
142-
Return the actual login name for the current process, even if there
143-
are multiple login names which map to the same user id.
142+
Return the name of the user logged in on the controlling terminal of
143+
the process. For most purposes, it is more useful to use the
144+
environment variable \envvar{LOGNAME} to find out who the user is.
144145
Availability: \UNIX.
145146
\end{funcdesc}
146147

0 commit comments

Comments
 (0)