The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

login_tty (3)
  • >> login_tty (3) ( FreeBSD man: Библиотечные вызовы )
  • login_tty (3) ( Русские man: Библиотечные вызовы )
  • login_tty (3) ( Linux man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    login_tty
    
     - prepare a tty for a new login session
    
     
    

    LIBRARY

    Lb libutil
    
     
    

    SYNOPSIS

       #include <libutil.h>
    int login_tty (int fd);
     

    DESCRIPTION

    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

    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

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


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    SEE ALSO


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру