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

  man pages->Linux man pages -> updwtmp (3)              



NAME    [Toc]    [Back]

       updwtmp, logwtmp - append an entry to the wtmp file

SYNOPSIS    [Toc]    [Back]

       #include <utmp.h>

       void updwtmp(const char *wtmp_file, const struct utmp *ut);
       void logwtmp(const char *line, const char *name, const char *host);

DESCRIPTION    [Toc]    [Back]

       updwtmp() appends the utmp structure ut to the wtmp file.

       logwtmp()  constructs an utmp structure using line, name, host, current
       time and current process id.  Then it calls  updwtmp()  to  append  the
       structure to the utmp file.

AVAILABILITY    [Toc]    [Back]

       Both  functions	are available under glibc2, but not under libc5.  However,
 logwtmp occurs in the old libbsd.

FILES    [Toc]    [Back]

	      database of past user logins

SEE ALSO    [Toc]    [Back]


GNU				  1997-07-02			    UPDWTMP(3)
[ Back ]
 Similar pages
Name OS Title
logwtmp FreeBSD append a new record to the wtmp file
utmp IRIX utmp and wtmp entry formats
wtmp HP-UX utmp, wtmp, btmp entry format
utmp HP-UX utmp, wtmp, btmp entry format
btmp HP-UX utmp, wtmp, btmp entry format
DtEditorAppendFromFile HP-UX append data from a file into a DtEditor widget
login FreeBSD log a new login record to the utmp and wtmp files
utmpx IRIX utmp and wtmp extended-format entries
append IRIX Append to variable
lsearch FreeBSD linear search and append
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service