Unlock a pseudo-terminal master/slave pair
#include <stdlib.h> int unlockpt( int fildes );
- The file descriptor for the master pseudo-terminal.
Use the -l c option to qcc to link against this library. This library is usually included automatically.
This function is in libc.a, but not in libc.so (in order to save space).
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).
- The fildes argument isn't a file descriptor open for writing.
- The fildes argument isn't associated with a master pseudo-terminal device.
Last modified: 2013-12-23