1 .\" %%%LICENSE_START(PUBLIC_DOMAIN)
2 .\" This page is in the public domain. - aeb
5 .TH UNLOCKPT 3 2013-12-09 "" "Linux Programmer's Manual"
7 unlockpt \- unlock a pseudoterminal master/slave pair
10 .BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
12 .B #include <stdlib.h>
14 .BI "int unlockpt(int " fd ");"
19 function unlocks the slave pseudoterminal device
20 corresponding to the master pseudoterminal referred to by
24 should be called before opening the slave side of a pseudoterminal.
29 Otherwise, it returns \-1 and sets
37 argument is not a file descriptor open for writing.
42 argument is not associated with a master pseudoterminal.
45 is provided in glibc since version 2.1.
47 .SS Multithreading (see pthreads(7))
50 function is thread-safe.
60 This page is part of release 3.67 of the Linux
63 A description of the project,
64 information about reporting bugs,
65 and the latest version of this page,
67 \%http://www.kernel.org/doc/man\-pages/.