*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> login_tty (3)              
Title
Content
Arch
Section
 

LOGIN_TTY(3)

Contents


NAME    [Toc]    [Back]

     login_tty -- prepare a tty for a new login session

LIBRARY    [Toc]    [Back]

     System Utilities Library (libutil, -lutil)

SYNOPSIS    [Toc]    [Back]

     #include <libutil.h>

     int
     login_tty(int fd);

DESCRIPTION    [Toc]    [Back]

     The function login_tty() prepares a terminal for a new login session.
     The file descriptor fd passed to login_tty() must be opened for reading
     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 VALUES    [Toc]    [Back]

     The 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 ALSO    [Toc]    [Back]

      
      
     dup2(2), ioctl(2), setsid(2), tty(4)


FreeBSD 5.2.1		       December 29, 1996		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
endsession IRIX terminates a login session
reaper IRIX manages a login session
CSSM_CSP_Logout Tru64 Terminate the login session (CDSA)
CSSM_CSP_ChangeLoginAcl Tru64 Edit a stored CSP ACL login session (CDSA)
auth_timeok FreeBSD functions for checking login class based login restrictions
login_ok FreeBSD functions for checking login class based login restrictions
auth_hostok FreeBSD functions for checking login class based login restrictions
auth_ttyok FreeBSD functions for checking login class based login restrictions
vgone OpenBSD prepare a vnode for reuse
vgonel OpenBSD prepare a vnode for reuse
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service