UNLOCKPT(3) Library Functions Manual UNLOCKPT(3)
NAME
unlockpt — unlock
a pseudo-terminal master/slave pair
SYNOPSIS
#include <stdlib.h> int unlockpt(int fildes);
DESCRIPTION
The unlockpt() function unlocks the slave pseudo-terminal device associated with the master to which fildes refers.
Portable applications must call unlockpt() before opening the slave side of a pseudo-terminal device.
RETURN VALUE
Upon successful completion, unlockpt() returns 0. Otherwise, it returns -1 and sets errno to indicate the error.
ERRORS
The unlockpt() function may fail if:
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
grantpt(3) , open(3) , ptsname(3) , <stdlib.h> .
February 1997 posix.fail