Unlocks a pseudo-terminal device.
Standard C Library (libc.a)
int unlockpt ( FileDescriptor)
The unlockpt subroutine unlocks the slave peudo-terminal device associated with the master peudo-terminal device defined by the FileDescriptor parameter. This subroutine has no effect if the environment variable XPG_SUS_ENV is not set equal to the string "ON", or if the BSD PTY driver is used.
|FileDescriptor||Specifies the file descriptor of the master pseudo-terminal device.|
Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and the errno global variable is set to indicate the error.
This subroutine is part of Base Operating System (BOS) Runtime.
The grantpt subroutine.
The Input and Output Handling Programmer's Overview in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.