DataMuseum.dk

Presents historical artifacts from the history of:

ICL Comet 32

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about ICL Comet 32

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦ae5d97a12⟧ TextFile

    Length: 846 (0x34e)
    Types: TextFile
    Notes: UNIX file
    Names: »getlogin.3«

Derivation

└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
    └─⟦28c352965⟧ »/a« UNIX Filesystem
        └─⟦this⟧ »usr/man/man3/getlogin.3« 

TextFile

.ig
	@(#)getlogin.3	2.1	7/1/84
	@(#)Copyright (C) 1983 by National Semiconductor Corp.
..
.TH GETLOGIN 3 
.SH NAME
getlogin \- get login name
.SH SYNOPSIS
.B char *getlogin()
.SH DESCRIPTION
.I Getlogin
returns a pointer to
the login name
as found in
.IR /etc/utmp .
It may be used
in conjunction
with
.I getpwnam
to locate the correct
password file entry
when the same userid
is shared by several
login names.
.PP
If
.I getlogin
is called within a process
that is not attached to a
typewriter, it returns NULL.
The correct procedure
for determining the login name
is to first call
.I getlogin
and if it fails,
to call
.IR getpwuid .
.SH FILES
/etc/utmp
.SH "SEE ALSO"
getpwent(3), getgrent(3), utmp(5)
.SH DIAGNOSTICS
Returns NULL (0) if name not found.
.SH BUGS
The return values point to static data
whose content is overwritten by each call.