posix_openpt vs getpt??
Samuel Thibault
samuel.thibault@gnu.org
Mon Dec 30 21:35:00 GMT 2019
Hello,
In sysdeps/unix/bsd/getpt.c we can read:
/* We cannot define posix_openpt in general for BSD systems. */
I do not see why posix_openpt can't be defined like getpt is. Is there
a semantic difference between them beyond the open flags that could be
just passed to the open() call? Notably, Linux' getpt() is actually
implemented as __posix_openpt (O_RDWR)...
Samuel
More information about the Libc-alpha
mailing list