Section: Linux Programmer's Manual (3)
Return to Main Contents
unlockpt - unlock a pseudoterminal master/slave pair
#define _XOPEN_SOURCE /* See feature_test_macros(7) */
int unlockpt(int fd);
function unlocks the slave pseudoterminal device
corresponding to the master pseudoterminal referred to by
should be called before opening the slave side of a pseudoterminal.
Otherwise, it returns -1 and sets
argument is not a file descriptor open for writing.
argument is not associated with a master pseudoterminal.
is provided in glibc since version 2.1.
This page is part of release 3.54 of the Linux
A description of the project,
and information about reporting bugs,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 03:27:55 GMT, January 20, 2018