logwtmp(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).

   
   Interface   Attribute      Value                    
   
   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/wrefresh.3ncurses.html
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

manpages/Mail::SPF::Base.3pm.html
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

manpages/Compose.5.html
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

manpages/java-functions.7.html
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

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

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

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

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

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

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

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

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