updwtmp, logwtmp - append an entry to the wtmp file


   #include <utmp.h>

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

   For logwtmp(), link with -lutil.


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

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


          database of past user logins


   For   an   explanation   of   the  terms  used  in  this  section,  see

   │InterfaceAttributeValue                    │
   │updwtmp(), │ Thread safety │ MT-Unsafe sig:ALRM timer │
   │logwtmp()  │               │                          │


   Not in POSIX.1.  Present on Solaris, NetBSD, and perhaps other systems.


   For consistency with the other "utmpx"  functions  (see  getutxent(3)),
   glibc provides (since version 2.1):

   #include <utmpx.h>

   void updwtmpx (const char *wtmpx_file, const struct utmpx *utx);

   This  function performs the same task as updwtmp(), but differs in that
   it takes a utmpx structure as its last argument.


   getutxent(3), wtmp(5)


   This page is part of release 4.09 of the Linux  man-pages  project.   A
   description  of  the project, information about reporting bugs, and the
   latest    version    of    this    page,    can     be     found     at

More Linux Commands

http(n) - Client-side implementation of the HTTP/1.1 protoco
The http package provides the client side of the HTTP/1.1 protocol, as defined in RFC 2616. The package implements the GET, POST, and HEAD operations of HTTP/1.

vncviewer-tigervnc(1) VNC viewer for X - Linux manual page
vncviewer is a viewer (client) for Virtual Network Computing. This manual page documents version 4 for the X window system. If you run the viewer with no argume

setlogcons(8) - Send kernel messages to console N (ManPage)
The command setlogcons N sets all kernel messges to the console specified as N. By default kernel messages are sent to the current console. To change the level

XDirectionalDependentDrawing(3) - obtain fontset information
The XFontsOfFontSet function returns a list of one or more XFontStructs and font names for the fonts used by the Xmb and Xwc layers for the given font set. A li

slk_attr_set(3ncurses) - curses soft label routines.........
The slk* functions manipulate the set of soft function-key labels that exist on many terminals. For those terminals that do not have soft labels, curses takes o

MIME::Entity(3pm) - class for parsed-and-decoded MIME messag
A subclass of Mail::Internet. This package provides a class for representing MIME message entities, as specified in RFCs 2045, 2046, 2047, 2048 and 2049. EXAMPL

mkfontdir(1) - create an index of X font files in a director
For each directory argument, mkfontdir reads all of the font files in the directory searching for properties named FONT, or (failing that) the name of the file

xtrapstats(1x) - XTrap sample clients - Linux manual page...
These commands are SAMPLE CLIENTS provided with the XTrap X Server Extension Sources, Version 3.3. XTrap is an X Server extension which facilitates the capturin

FcPatternDel(3) - Delete a property from a pattern (ManPage)
Deletes all values associated with the property object, returning whether the property existed or not. VERSION Fontconfig version 2.8.0 FcPatternDel.3 (Library

factor(1) - factor numbers (Commands - Linux manual page)...
Print the prime factors of each specified integer NUMBER. If none are specified on the command line, read them from standard input. --help display this help and

sasl_server_step(3) - Perform a step in the authentication n
sasl_server_step() performs a step in the authentication negotiation. It returns SASL_OK if the whole negotiation is successful and SASL_CONTINUE if this step i

SDL_GetAppState(3) - Get the state of the application.......
This function returns the current state of the application. The value returned is a bitwise combination of: SDL_APPMOUSEFOCUS The application has mouse focus. S

We can't live, work or learn in freedom unless the software we use is free.