man.bsd.lv manual page server

Manual Page Search Parameters

LOGIN(3) Library Functions Manual LOGIN(3)

loginlog a new login record to the utmp and wtmp files

library “libutil”

#include <sys/types.h>
#include <utmp.h>
#include <libutil.h>

void
login(struct utmp *ut);

The function () records the ut entry being passed into the appropriate slot of the utmp(5) file (according to the controlling terminal of the calling process), and appends it to the wtmp(5) file. The calling process must have permission to write to both files.

None.

logout(3), ttyslot(3), utmp(5), wtmp(5)

The interface provided by login() is rather crude. The caller must know about the details of a struct utmp. Some better abstraction needs to be worked out.

December 29, 1996 DragonFly-5.6.1