*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> login (3)              
Title
Content
Arch
Section
 

LOGIN(3)

Contents


NAME    [Toc]    [Back]

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

LIBRARY    [Toc]    [Back]

     System Utilities Library (libutil, -lutil)

SYNOPSIS    [Toc]    [Back]

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

     void
     login(struct utmp *ut);

DESCRIPTION    [Toc]    [Back]

     The function login() records the ut entry being passed into the appropriate
 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    [Toc]    [Back]

     None.

SEE ALSO    [Toc]    [Back]

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

BUGS    [Toc]    [Back]

     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.2.1		       December 29, 1996		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
utmp IRIX utmp and wtmp entry formats
wtmp HP-UX utmp, wtmp, btmp entry format
utmpx IRIX utmp and wtmp extended-format entries
utmp HP-UX utmp, wtmp, btmp entry format
btmp HP-UX utmp, wtmp, btmp entry format
logwtmp FreeBSD append a new record to the wtmp file
lockf OpenBSD record locking on files
lockf IRIX record locking on files
lockf NetBSD record locking on files
lockf FreeBSD record locking on files
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service