unlock a pseudo-terminal master/slave pair
int unlockpt(int fildes);
The function unlockpt clears a lock flag associated with the
slave pseudo-terminal device associated with its master pseudo-terminal
counterpart so that the slave pseudo-terminal device
can be opened.
fildes is a file descriptor returned from a successful open
of a master pseudo-terminal device.
Upon successful completion, the function unlockpt returns
0; otherwise it returns -1.
A failure may occur if fildes is not an open file descriptor
or is not associated with a master pseudo-terminal device.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004