logwtmp man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

LOGWTMP(3)		 BSD Library Functions Manual		    LOGWTMP(3)

NAME
     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)

BSD			       December 29, 1996			   BSD
[top]

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
...................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net