posix_openpt
¶POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_openpt.html
Portability problems fixed by Gnulib:
ENOSYS
or ENOENT
on
some platforms.
Portability problems not fixed by Gnulib:
Note that when using this function to open the master side of a
pseudo-terminal, you still need platform dependent code to open the
corresponding slave side.
The Gnulib module openpty
provides
an easy-to-use API that does both at once.