Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getlogin(S) — Xenix 2.3.4g

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cuserid(S)

getgrent(S)

getpwent(S)

utmp(M)



     GETLOGIN(S)              XENIX System V               GETLOGIN(S)



     Name
          getlogin - Gets login name.

     Syntax
          char *getlogin ( );

     Description
          getlogin returns a pointer to the login name as found in
          /etc/utmp.  It may be used in conjunction with getpwnam to
          locate the correct password file entry when the same user ID
          is shared by several login names.

          If getlogin is called within a process that is not attached
          to a terminal device, it returns NULL.  The correct
          procedure for determining the login name is to call cuserid,
          or to call getlogin and if it fails, to call getpwuid.

     Files
          /etc/utmp

     See Also
          cuserid(S), getgrent(S), getpwent(S), utmp(M)

     Diagnostics
          Returns NULL if name not found.

     Notes
          The return values point to static data whose content is
          overwritten by each call.


























     Page 1                                           (printed 8/7/87)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026