getlogin man page on Xenix

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



     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)

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

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