Files
oldlinux-files/Minix/1.7.5/MANUALS/CAT3/LOGNAME.3
2024-02-19 00:21:39 -05:00

23 lines
551 B
Groff

NAME
logname - return login name of user
SYNTAX
char *logname( )
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
profile(4), environ(5).
env(1), login(1) in the UNIX System V User Reference Manual.
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.