*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: ulog_logout_pseudo | Section: 3 | Source: FreeBSD | File: ulog_logout_pseudo.3.gz
ULOG_LOGIN(3) FreeBSD Library Functions Manual ULOG_LOGIN(3) NAME ulog_login, ulog_login_pseudo, ulog_logout, ulog_logout_pseudo - manage user login records LIBRARY User Login Record Library (libulog, -lulog) SYNOPSIS #include <ulog.h> void ulog_login(const char *line, const char *user, const char *host); void ulog_login_pseudo(int fd, const char *host); void ulog_logout(const char *line); void ulog_logout_pseudo(int fd); DESCRIPTION The ulog_login() and ulog_login_pseudo() functions register a login session on a TTY. The ulog_login() function adds an entry for TTY line and username user. The ulog_login_pseudo() function uses file descriptor to a pseudo-terminal master device fd to determine the TTY name, while using the username belonging to the real user ID of the calling process. The optional host argument denotes a remote hostname, in case the login session is provided by a network service. The ulog_logout() and ulog_logout_pseudo() functions mark the previously registered login session as being terminated. Because the line and user arguments of ulog_login() and ulog_logout() cannot be trusted, these functions require administrative privileges. The ulog_login_pseudo() and ulog_logout_pseudo() functions spawn a privileged process to perform the actual logging. SEE ALSO getuid(2), posix_openpt(2), ptsname(3), pututxline(3) HISTORY These functions appeared in FreeBSD 9.0. FreeBSD 14.1-RELEASE-p8 October 11, 2010 FreeBSD 14.1-RELEASE-p8

Navigation Options