1 .\" %%%LICENSE_START(PUBLIC_DOMAIN)
2 .\" This page is in the public domain. - aeb
5 .TH UNLOCKPT 3 2017-07-13 "" "Linux Programmer's Manual"
7 unlockpt \- unlock a pseudoterminal master/slave pair
9 .B #define _XOPEN_SOURCE
11 .B #include <stdlib.h>
13 .BI "int unlockpt(int " fd ");"
16 Feature Test Macro Requirements for glibc (see
17 .BR feature_test_macros (7)):
25 _XOPEN_SOURCE\ >=\ 500 ||
26 (_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED)
28 Glibc 2.23 and earlier:
35 function unlocks the slave pseudoterminal device
36 corresponding to the master pseudoterminal referred to by
40 should be called before opening the slave side of a pseudoterminal.
45 Otherwise, it returns \-1 and sets
53 argument is not a file descriptor open for writing.
58 argument is not associated with a master pseudoterminal.
61 is provided in glibc since version 2.1.
63 For an explanation of the terms used in this section, see
69 Interface Attribute Value
72 T} Thread safety MT-Safe
75 POSIX.1-2001, POSIX.1-2008.