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

   Interface   Attribute      Value                    
   updwtmp(),  Thread safety  MT-Unsafe sig:ALRM timer 


   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

wrefresh(3ncurses) - refresh curses windows and lines.......
The refresh and wrefresh routines (or wnoutrefresh and doupdate) must be called to get actual output to the terminal, as other routines merely manipulate data s

Mail::SPF::Base(3pm) - Base class for Mail::SPF classes.....
Mail::SPF::Base is a common base class for all Mail::SPF classes. Constructor The following constructor is provided: new(%options): returns Mail::SPF::Base Crea

Compose(5) - X client mappings for multi-key input sequences
The X library, libX11, provides a simple input method for characters beyond those represented on typical keyboards using sequences of key strokes that are combi

java-functions(7) - Functions library for Java applications.
This is a library of generic shell functions which should be used on jpackage.org compatible distributions. FILES /use/share/java-utils/java-functions shell scr

gnutls_rsa_params_generate2(3) - API function (Man Page)....
This function will generate new temporary RSA parameters for use in RSA-EXPORT ciphersuites. This function is normally slow. Note that if the parameters are to

sasl_getsimple_t(3) - The SASL callback for username/authnam
sasl_getsimple_t is used to retrieve simple things from the application. In practice this is authentication name, authorization name, and realm. The id paramete

pam_xauth_data(3) - structure containing X authentication da
The pam_xauth_data structure contains X authentication data used to make a connection to an X display. Using this mechanism, an application can communicate X au

slk_set_sp(3ncurses) - curses screen-pointer extension......
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

xon(1) - start an X program on a remote machine (Man Page)
Xon runs the specified command (default xterm -ls) on the remote machine using rsh, remsh, or rcmd. Xon passes the DISPLAY, XAUTHORITY and XUSERFILESEARCHPATH e

iso_8859_15(7) - ISO 8859-15 character set encoded in octal,
The ISO 8859 standard includes several 8-bit extensions to the ASCII character set (also known as ISO 646-IRV). Especially important is ISO 8859-1, the Latin Al

pvs(8) - report information about physical volumes (ManPage)
pvs produces formatted output about physical volumes. OPTIONS See lvm(8) for common options. --all Include information in the output about devices that have not

pdb2mdb(1) - Program Database to Mono Debugging Symbol conve
This tool is used to convert debugging symbols generated by Microsofts compilers into debugging symbols that can be consumed by Monos runtime. Program Database

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