Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ logname(3x) — Ultrix-11 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

login(1)

printenv(1)

environ(5)

profile(5)

logname(3x)

NAME

logname − return login name of user

SYNTAX

char *logname()

DESCRIPTION

The logname subroutine returns a pointer to the null-terminated login name.  It extracts the $LOGNAME variable from the user’s environment. 

RESTRICTIONS

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. 

FILES

/etc/profile

SEE ALSO

login(1), printenv(1), environ(5), profile(5)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026