IPnom Home • Manuals • FreeBSD

 FreeBSD Man Pages

Man Sections:Commands (1)System Calls (2)Library Functions (3)Device Drivers (4)File Formats (5)Miscellaneous (7)System Utilities (8)
Keyword Live Search (10 results max):
 Type in part of a command in the search box.
 


logwtmp(3)

logwtmp -- append a new record to the wtmp file

LIBRARY

     System Utilities Library (libutil, -lutil)


SYNOPSIS

     #include <sys/types.h>
     #include <libutil.h>

     void
     logwtmp(const char *line, const char *name, const char *host);


DESCRIPTION

     The function logwtmp() tries to append a new record to the wtmp(5) file,
     using the provided arguments line, name, and host, and the current time.

     If the length of the hostname string host is longer than what would fit
     into the hostname field of the wtmp(5) file, it will first be attempted
     to convert it into a numerical IP address using gethostbyname(3).	Fail-
     ing this, the hostname will be recorded as "invalid hostname".

     The calling process must have permission to write to the wtmp(5) file.


RETURN VALUES

     None.


SEE ALSO

     gethostbyname(3), login(3), wtmp(5)

FreeBSD 5.4		       December 29, 1996		   FreeBSD 5.4

SPONSORED LINKS




Man(1) output converted with man2html , sed , awk