posix_openpt(3) Library Functions Manual posix_openpt(3) posix_openpt - (libc -lc) #include #include int posix_openpt(int flags); glibc ( feature_test_macros(7)): posix_openpt(): _XOPEN_SOURCE >= 600 posix_openpt() . flags OR : O_RDWR . . O_NOCTTY . posix_openpt() ( ) . -1 errno . open(2). attributes(7). +------------+------------------------------------+--------------------+ || | | +------------+------------------------------------+--------------------+ |posix_openpt()| | MT-Safe | | | | | +------------+------------------------------------+--------------------+ POSIX.1-2008. glibc 2.2.1. POSIX.1-2001. UNIX 98 ( pts(4)). UNIX System V ( UNIX 98) : int posix_openpt(int flags) { return open("/dev/ptmx", flags); } posix_openpt() . ptsname(3). . open(2), getpt(3), grantpt(3), ptsname(3), unlockpt(3), pts(4), pty(7) 3 . . : . 6.18 8 2026 posix_openpt(3)