Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ logname(3X) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

profile(4)

environ(5)

cuserid(3S)

getlogin(3C)

getpwuid(3C)

env(1)

login(1)



logname(3X)                    DG/UX R4.11MU05                   logname(3X)


NAME
       logname - return login name of user

SYNOPSIS
       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), cuserid(3S), getlogin(3C), getpwuid(3C).
       env(1), login(1)

CAVEATS
       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.

       This routine will cease to exist in the future.  Use cuserid, or a
       combination of getlogin and getpwuid instead.


Licensed material--property of copyright holder(s)

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