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

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

LOGOUT(3)

Contents


NAME    [Toc]    [Back]

     logout -- remove an entry from the utmp file

LIBRARY    [Toc]    [Back]

     System Utilities Library (libutil, -lutil)

SYNOPSIS    [Toc]    [Back]

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

     int
     logout(const char *line);

DESCRIPTION    [Toc]    [Back]

     The function logout() searches the utmp(5) file for the slot described by
     line (usually a tty name).  If such a slot could be found, it will be
     updated with a record where the name and host fields are empty, and the
     time stamp field is updated to the current time.

RETURN VALUES    [Toc]    [Back]

     The logout() function returns 1 if the slot described by line has been
     found and updated, 0 otherwise.

SEE ALSO    [Toc]    [Back]

      
      
     login(3), utmp(5), wtmp(5)

BUGS    [Toc]    [Back]

     The calling interface of logout() is inconsistent with that of login(3).


FreeBSD 5.2.1		       December 29, 1996		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
rmfstabentry IRIX remove a filesystem entry from the /etc/fstab file.
unlink HP-UX remove directory entry; delete file
delmntent IRIX remove entry from mounted filesystem description file
utmp IRIX utmp and wtmp entry formats
btmp HP-UX utmp, wtmp, btmp entry format
wtmp HP-UX utmp, wtmp, btmp entry format
utmp HP-UX utmp, wtmp, btmp entry format
setutent Tru64 Access utmp file entries
getutid_r Tru64 Access utmp file entries
endutent_r Tru64 Access utmp file entries
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service