This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
posix_openpt vs getpt??
- From: Samuel Thibault <samuel dot thibault at gnu dot org>
- To: libc-alpha at sourceware dot org
- Date: Mon, 30 Dec 2019 22:35:50 +0100
- Subject: posix_openpt vs getpt??
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