The OpenNET Project / Index page

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

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

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

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

    NAME

    ptsname - get name of the slave pseudo-terminal device
     
    

    SYNOPSIS

    #include <stdlib.h>
    
    char *ptsname(int fildes);
    

     

    DESCRIPTION

    The ptsname() function returns the name of the slave pseudo-terminal device associated with a master pseudo-terminal device. fildes is a file descriptor returned from a successful open of the master device. ptsname() returns a pointer to a string containing the null-terminated path name of the slave device of the form /dev/pts/N, where N is a non-negative integer.  

    RETURN VALUES

    Upon successful completion, the function ptsname() returns a pointer to a string which is the name of the pseudo-terminal slave device. This value points to a static data area that is overwritten by each call to ptsname(). Upon failure, ptsname() returns NULL. This could occur if fildes is an invalid file descriptor or if the slave device name does not exist in the file system.  

    ATTRIBUTES

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPEATTRIBUTE VALUE

    Interface StabilityStandard

    MT-Level

     

    SEE ALSO

    open(2), grantpt(3C), ttyname(3C), unlockpt(3C), attributes(5), standards(5)

    STREAMS Programming Guide


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ATTRIBUTES
    SEE ALSO


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




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

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