Section: Linux Programmer's Manual (3) Updated: 2010-09-10 Local index
getpt - open the pseudo-terminal master (PTM)
#define _GNU_SOURCE /* See feature_test_macros(7) */
opens a pseudo-terminal master and returns its file descriptor.
It is equivalent to
open(/dev/ptmx, O_RDWR | O_NOCTTY);
on Linux systems, though the pseudo-terminal master is located
elsewhere on some systems that use GNU Libc.
returns an open file descriptor upon successful completion.
returns -1 and sets
to indicate the error.
can fail with various errors described in
is provided in glibc since version 2.1.
This page is part of release 3.27 of the Linux
A description of the project,
and information about reporting bugs,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 21:46:45 GMT, April 16, 2011