2 .\" %%%LICENSE_START(PUBLIC_DOMAIN)
3 .\" This page is in the public domain. - aeb
6 .TH unlockpt 3 (date) "Linux man-pages (unreleased)"
8 unlockpt \- unlock a pseudoterminal master/slave pair
11 .RI ( libc ", " \-lc )
14 .B #define _XOPEN_SOURCE
15 .B #include <stdlib.h>
17 .BI "int unlockpt(int " fd );
21 Feature Test Macro Requirements for glibc (see
22 .BR feature_test_macros (7)):
29 .\" || (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
30 glibc 2.23 and earlier:
36 function unlocks the slave pseudoterminal device
37 corresponding to the master pseudoterminal referred to by the file descriptor
41 should be called before opening the slave side of a pseudoterminal.
46 Otherwise, it returns \-1 and sets
48 to indicate the error.
54 argument is not a file descriptor open for writing.
59 argument is not associated with a master pseudoterminal.
61 For an explanation of the terms used in this section, see
69 Interface Attribute Value
72 T} Thread safety MT-Safe