updwtmpx(3)


NAME

   updwtmp, logwtmp - append an entry to the wtmp file

SYNOPSIS

   #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.

DESCRIPTION

   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.

FILES

   /var/log/wtmp
          database of past user logins

ATTRIBUTES

   For   an   explanation   of   the  terms  used  in  this  section,  see
   attributes(7).

   ┌───────────┬───────────────┬──────────────────────────┐
   │InterfaceAttributeValue                    │
   ├───────────┼───────────────┼──────────────────────────┤
   │updwtmp(), │ Thread safety │ MT-Unsafe sig:ALRM timer │
   │logwtmp()  │               │                          │
   └───────────┴───────────────┴──────────────────────────┘

CONFORMING TO

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

NOTES

   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.

SEE ALSO

   getutxent(3), wtmp(5)

COLOPHON

   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
   https://www.kernel.org/doc/man-pages/.


More Linux Commands

manpages/http.n.html
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.

manpages/vncviewer-tigervnc.1.html
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

manpages/setlogcons.8.html
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

manpages/XDirectionalDependentDrawing.3.html
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

manpages/slk_attr_set.3ncurses.html
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

manpages/MIME::Entity.3pm.html
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

manpages/mkfontdir.1.html
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

manpages/xtrapstats.1x.html
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

manpages/FcPatternDel.3.html
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

manpages/factor.1.html
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

manpages/sasl_server_step.3.html
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

manpages/SDL_GetAppState.3.html
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.