This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: posix_openpt vs getpt??
- From: Samuel Thibault <samuel dot thibault at gnu dot org>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 31 Dec 2019 17:38:03 +0100
- Subject: Re: posix_openpt vs getpt??
- References: <20191230213550.icqt2er7dwnxcrrb@function> <87a778mxta.fsf@mid.deneb.enyo.de>
Hello,
Florian Weimer, le mar. 31 déc. 2019 14:25:37 +0100, a ecrit:
> > 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)...
>
> We don't have an in-tree BSD port, and the BSD at the time was
> probably quite different from what we have today. I suggest to ignore
> the comment and rearrange things in the way that make the most sense
> for Linux and Hurd.
Ok, thanks, I guess that'll to wait for 2.32, though.
And best wishes for the new year!
Samuel