Annotation of coherent/a/usr/man/COHERENT/getlogin, revision 1.1.1.1

1.1       root        1: 
                      2: 
                      3: getlogin()               General Function              getlogin()
                      4: 
                      5: 
                      6: 
                      7: 
                      8: Get login name
                      9: 
                     10: cchhaarr *ggeettllooggiinn()
                     11: 
                     12: The name  corresponding to the current user id  is not always the
                     13: same as the name under which a user logged into the COHERENT sys-
                     14: tem.   For example,  the user  may have issued  a su  command, or
                     15: there may be several login names associated with a user id.  get-
                     16: login returns the login name found in the file /etc/utmp.
                     17: 
                     18: In  cases where  getlogin  fails to  produce  a result,  getpwuid
                     19: (described in  getpwent) is normally  used to determine  the user
                     20: name for a process.
                     21: 
                     22: ***** Files *****
                     23: 
                     24: /eettcc/uuttmmpp  login names
                     25: 
                     26: ***** See Also *****
                     27: 
                     28: general functions,  getpwent(), getuid(), su,  ttyname(), utmp.h,
                     29: who
                     30: 
                     31: ***** Diagnostics *****
                     32: 
                     33: getlogin returns NULL if the login name cannot be determined.
                     34: 
                     35: ***** Notes *****
                     36: 
                     37: getlogin  stores  the returned  name  in a  static  area that  is
                     38: destroyed by subsequent calls.
                     39: 
                     40: 
                     41: 
                     42: 
                     43: 
                     44: 
                     45: 
                     46: 
                     47: 
                     48: 
                     49: 
                     50: 
                     51: 
                     52: 
                     53: 
                     54: 
                     55: 
                     56: 
                     57: 
                     58: 
                     59: 
                     60: 
                     61: 
                     62: 
                     63: 
                     64: COHERENT Lexicon                                           Page 1
                     65: 
                     66: 

unix.superglobalmegacorp.com

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