Section: Linux Programmer's Manual (3)
Return to Main Contents
getpt - open the pseudoterminal master (PTM)
#define _GNU_SOURCE /* See feature_test_macros(7) */
opens a pseudoterminal master and returns its file descriptor.
It is equivalent to
open(/dev/ptmx, O_RDWR | O_NOCTTY);
on Linux systems, though the pseudoterminal 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.54 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: 09:46:54 GMT, January 23, 2018