Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
#define _XOPEN_SOURCE_EXTENDED 1
#include <stdlib.h>
int unlockpt(int fildes);
The unlockpt() function unlocks the slave pseudoterminal device associated with the master to which fildes refers.
Portable applications must call unlockpt() before opening the slave side of a pseudoterminal device.
If successful, unlockpt() returns 0.