IPnom Home • Manuals • FreeBSD

 FreeBSD Man Pages

Man Sections:Commands (1)System Calls (2)Library Functions (3)Device Drivers (4)File Formats (5)Miscellaneous (7)System Utilities (8)
Keyword Live Search (10 results max):
 Type in part of a command in the search box.
 


login(3)

NAME

     login -- log a new login record to the utmp and wtmp files


LIBRARY

     System Utilities Library (libutil, -lutil)


SYNOPSIS

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

     void
     login(struct utmp *ut);


DESCRIPTION

     The function login() records the ut entry being passed into the appropri-
     ate slot of the utmp(5) file, and appends it to the wtmp(5) file.	The
     calling process must have permission to write to both files.


RETURN VALUES

     None.


SEE ALSO

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


BUGS

     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.

FreeBSD 5.4		       December 29, 1996		   FreeBSD 5.4

SPONSORED LINKS




Man(1) output converted with man2html , sed , awk