getlogin man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

getlogin(3)							   getlogin(3)

Name
       getlogin - get login name

Syntax
       char *getlogin()

Description
       The  subroutine	returns a pointer to the login name as found in It may
       be used in conjunction with to locate the correct password  file	 entry
       when the same userid is shared by several login names.

       If  is called within a process that is not attached to a typewriter, it
       returns NULL.  The correct procedure for determining the login name  is
       to first call and if it fails, to call ( ).

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

Return Values
       Returns NULL (0) if name not found.

Files
       /etc/utmp

See Also
       getgrent(3), getpw(3), getpwent(3), utmp(5)

								   getlogin(3)
[top]

List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
...................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net