1UNLOCKPT(P)                POSIX Programmer's Manual               UNLOCKPT(P)
2
3
4

NAME

6       unlockpt - unlock a pseudo-terminal master/slave pair
7

SYNOPSIS

9       #include <stdlib.h>
10
11       int unlockpt(int fildes);
12
13

DESCRIPTION

15       The  unlockpt()  function shall unlock the slave pseudo-terminal device
16       associated with the master to which fildes refers.
17
18       Conforming applications shall ensure that they call  unlockpt()  before
19       opening the slave side of a pseudo-terminal device.
20

RETURN VALUE

22       Upon  successful  completion,  unlockpt() shall return 0. Otherwise, it
23       shall return -1 and set errno to indicate the error.
24

ERRORS

26       The unlockpt() function may fail if:
27
28       EBADF  The fildes argument is not a file descriptor open for writing.
29
30       EINVAL The fildes argument is not associated with a master  pseudo-ter‐
31              minal device.
32
33
34       The following sections are informative.
35

EXAMPLES

37       None.
38

APPLICATION USAGE

40       None.
41

RATIONALE

43       None.
44

FUTURE DIRECTIONS

46       None.
47

SEE ALSO

49       grantpt()  ,  open()  ,  ptsname()  ,  the  Base  Definitions volume of
50       IEEE Std 1003.1-2001, <stdlib.h>
51
53       Portions of this text are reprinted and reproduced in  electronic  form
54       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
55       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
56       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
57       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
58       event of any discrepancy between this version and the original IEEE and
59       The Open Group Standard, the original IEEE and The Open Group  Standard
60       is  the  referee document. The original Standard can be obtained online
61       at http://www.opengroup.org/unix/online.html .
62
63
64
65IEEE/The Open Group                  2003                          UNLOCKPT(P)
Impressum