setlogin () -- what does it do?

Chris Torek torek at elf.ee.lbl.gov
Wed Jun 19 05:50:27 AEST 1991


In article <1991Jun17.224939.1459 at hotmomma.UUCP> sdb%hotmomma at uunet.uu.net
(Scott Ballantyne) writes:
>... setlogin (username). Can someone tell me what this is
>supposed to do, or aim me at the man page?

setlogin is a privileged system call that sets the string to be
returned by getlogin(), another new system call.  This solves the
problem of describing the login of someone who does not have a `tty
slot' and thus cannot have an /etc/utmp entry.
-- 
In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427)
Berkeley, CA		Domain:	torek at ee.lbl.gov



More information about the Comp.unix.questions mailing list