public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* posix_openpt vs getpt??
@ 2019-12-30 21:35 Samuel Thibault
  2019-12-31 13:26 ` Florian Weimer
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Thibault @ 2019-12-30 21:35 UTC (permalink / raw)
  To: libc-alpha

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-12-31 16:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-30 21:35 posix_openpt vs getpt?? Samuel Thibault
2019-12-31 13:26 ` Florian Weimer
2019-12-31 16:38   ` Samuel Thibault
2019-12-31 16:45     ` Samuel Thibault
2019-12-31 16:54       ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).