1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\" This page is in the public domain. - aeb
4 .TH UNLOCKPT 3 "2003-01-30" "PTY Control" "Linux Programmer's Manual"
6 unlockpt \- unlock a pseudo-terminal master/slave pair
9 .B #define _XOPEN_SOURCE
11 .B #include <stdlib.h>
13 .BI "int unlockpt(int " fd ");"
18 function unlocks the slave pseudo-terminal device
19 (pty) corresponding to the master pty referred to by
23 should be called before opening the slave side of a pty.
27 returns 0. Otherwise, it returns \-1 and sets
35 argument is not a file descriptor open for writing.
40 argument is not associated with a master pty.