Query: login_tty
OS: freebsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LOGIN_TTY(3) BSD Library Functions Manual LOGIN_TTY(3)NAMElogin_tty -- prepare a tty for a new login sessionLIBRARYSystem Utilities Library (libutil, -lutil)SYNOPSIS#include <libutil.h> int login_tty(int fd);DESCRIPTIONThe function login_tty() prepares a terminal for a new login session. The file descriptor fd passed to login_tty() must be opened for read- ing and writing on a terminal device. It will be made the controlling terminal for the calling process, after allocating a new session with setsid(2). This terminal device will also be made the standard input, standard output, and standard error output of the calling process.RETURN VALUESThe login_tty() function returns -1 if it could not make the device referenced by fd the controlling terminal of the calling process, and 0 otherwise.SEE ALSOdup2(2), ioctl(2), setsid(2), tty(4)BSDDecember 29, 1996 BSD
Related Man Pages |
---|
forkpty(3) - mojave |
login_tty(3) - redhat |
openpty(3) - redhat |
login_tty(3) - netbsd |
openpty(3) - osx |
Similar Topics in the Unix Linux Community |
---|
Race condition with PTY |
Terminal emulator from scratch. |
Want to find the stdout for the partiuclar user login for past 12 hrs. |
Inittab configuration |