1 .\" %%%LICENSE_START(PUBLIC_DOMAIN)
2 .\" This page is in the public domain. - aeb
5 .TH UNLOCKPT 3 2008-06-14 "" "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.