posix_openpt(2) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

posix_openpt(2)

The  function  allocates  a new pseudo-terminal and establishes a
connection with its master device.  A slave device shall be  cre‐
ated  in  After the pseudo-terminal has been allocated, the slave
device should have the proper permissions before it can  be  used
(see  The  name  of the slave device can be determined by calling
The file status flags and file access modes of the open file  de‐
scription  shall  be set according to the value of Values for are
constructed by a bitwise-inclusive OR of flags from the following
list, defined in Open for reading and writing.  If set shall  not
cause  the terminal device to become the controlling terminal for
the process.  Set the close-on-exec flag for  the  new  file  de‐
scriptor.   The  function  shall fail when contains other values.
Upon successful completion, the function  shall  allocate  a  new
pseudo-terminal  device  and return a non-negative integer repre‐
senting a file descriptor, which is connected to its  master  de‐
vice.   Otherwise, -1 shall be returned and errno set to indicate
the error.  The function shall fail if: The system file table  is
full.   The  value  of  is not valid.  Out of pseudo-terminal re‐
sources.  The function conforms to The ability to use is  an  ex‐
tension  to the standard.  The function appeared in In this func‐
tion was changed to a system call.  The flag is included for com‐
patibility; in opening a terminal does not cause it to  become  a
process's controlling terminal.











































맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3