1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\" This page is in the public domain. - aeb
4 .TH UNLOCKPT 3 2008-06-14 "" "Linux Programmer's Manual"
6 unlockpt \- unlock a psuedoterminal master/slave pair
9 .B #define _XOPEN_SOURCE
11 .B #include <stdlib.h>
13 .BI "int unlockpt(int " fd ");"
18 function unlocks the slave psuedoterminal device
19 corresponding to the master psuedoterminal referred to by
23 should be called before opening the slave side of a psuedoterminal.
28 Otherwise, it returns \-1 and sets
36 argument is not a file descriptor open for writing.
41 argument is not associated with a master psuedoterminal.
44 is provided in glibc since version 2.1.
52 .BR feature_test_macros (7),