function allocates a new pseudo-terminal and establishes a connection
with its master device.
A slave device shall be created 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 description
shall be set according to the value of
are constructed by a bitwise-inclusive OR of flags from the following
list, defined in
Open for reading and writing.
shall not cause the terminal device to become the controlling terminal
for the process.
Set the close-on-exec flag for the new file descriptor.
function shall fail when
contains other values.