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 fd
() should be called before opening the slave side of a
When successful, unlockpt
() returns 0. Otherwise, it returns -1 and sets
- The fd argument is not a file descriptor open for writing.
- The fd argument is not associated with a master
() is provided in glibc since version 2.1.
Multithreading (see pthreads(7))¶
() function is thread-safe.
This page is part of release 3.74 of the Linux man-pages
description of the project, information about reporting bugs, and the latest
version of this page, can be found at