HP-UX Reference (11i v1 05/09) - 3 Library Functions A-M (vol 6)

g
getlogin(3C) getlogin(3C)
FILES
/etc/utmpx Database that maps user logins to terminals.
WARNINGS
Users of getlogin_r() should note getlogin_r() now conforms with the POSIX.1c Threads stan-
dard. The old prototype of getlogin_r() is supported for compatibility with existing DCE applications
only.
SEE ALSO
getuid(2), getgrent(3C), getpwent(3C), utmpx(4), thread_safety(5).
STANDARDS CONFORMANCE
getlogin() : AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1
getlogin_r() :POSIX.1c
HP-UX 11i Version 1: September 2005 2 Hewlett-Packard Company Section 3339