LOGNAME(3X)
NAME
logname − return login name of user
SYNOPSIS
char ∗logname( )
HP-UX COMPATIBILITY
Level: HP-UX/RUN ONLY
Origin: System V
DESCRIPTION
Logname returns a pointer to the null-terminated login name; it extracts the $LOGNAME variable from the user’s environment.
This routine is kept in /lib/libPW.a.
FILES
/etc/profile
SEE ALSO
env(1), login(1), profile(5), environ(7).
BUGS
The return values point to static data whose content is overwritten by each call.
This method of determining a login name is subject to forgery.
Hewlett-Packard — last mod. May 11, 2021