unlock a pseudo-terminal master/slave pair
int unlockpt(int fildes);
clears a lock flag for the slave pseudo-terminal
associated with a master pseudo-terminal, so that the slave can be opened.
fildes is a file descriptor referring to
a master pseudo-terminal device.
Portable applications must call
before opening the slave side of a pseudo-terminal device.
On successful completion, the function
returns 0; otherwise it returns -1 and sets errno.
fildes is not an open file descriptor
or is not associated with a master pseudo-terminal device.
Diagnostic codes for this function are described below.
Either the file descriptor refers to no open file, or
the routine tried to write to a read-only file.
The file descriptor is not associated with a master pseudo-terminal device.
X/Open CAE Specification, System Interfaces and Headers, Issue 4, Version 2.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003