Unlock a pseudo-terminal master/slave pair
#include <stdlib.h> int unlockpt( int fildes );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The unlockpt() function unlocks the slave pseudo-terminal device associated with the master to which fildes refers. Call unlockpt() before you open the slave side of a pseudo-terminal device.
0, or -1 if an error occurred (errno is set).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |