GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ULOG_LOGIN(3) FreeBSD Library Functions Manual ULOG_LOGIN(3)

ulog_login, ulog_login_pseudo, ulog_logout, ulog_logout_pseudo
manage user login records

User Login Record Library (libulog, -lulog)

#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);

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.

getuid(2), posix_openpt(2), ptsname(3), pututxline(3)

These functions appeared in FreeBSD 9.0.
October 11, 2010 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.