File:  [MW Coherent from dump] / coherent / a / usr / man / COHERENT / getlogin
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



getlogin()               General Function              getlogin()




Get login name

cchhaarr *ggeettllooggiinn()

The name  corresponding to the current user id  is not always the
same as the name under which a user logged into the COHERENT sys-
tem.   For example,  the user  may have issued  a su  command, or
there may be several login names associated with a user id.  get-
login returns the login name found in the file /etc/utmp.

In  cases where  getlogin  fails to  produce  a result,  getpwuid
(described in  getpwent) is normally  used to determine  the user
name for a process.

***** Files *****

/eettcc/uuttmmpp  login names

***** See Also *****

general functions,  getpwent(), getuid(), su,  ttyname(), utmp.h,
who

***** Diagnostics *****

getlogin returns NULL if the login name cannot be determined.

***** Notes *****

getlogin  stores  the returned  name  in a  static  area that  is
destroyed by subsequent calls.

























COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.