LOGNAME(3x,L) AIX Technical Reference LOGNAME(3x,L) ------------------------------------------------------------------------------- logname PURPOSE Returns the login name of the user. LIBRARY Programmers Workbench Library (libPW.a) SYNTAX char *logname ( ) DESCRIPTION The logname subroutine returns a pointer to the null-terminated login name. The logname subroutine extracts the LOGNAME variable from the user's environment. Note: The return value points to static data whose content is overwritten by each call. This method of determining a login name is subject to forgery. For better methods, see "cuserid," "getlogin," and "getpwent, getpwuid, getpwnam, setpwent, endpwent." FILE /etc/profile RELATED INFORMATION In this book: "profile" and "environment." The env and login commands in AIX Operating System Commands Reference. Processed November 7, 1990 LOGNAME(3x,L) 1