Gnulib module: posix_openpt
Portability problems fixed by Gnulib:
ENOENTon 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
an easy-to-use API that does both at once.