unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@gnu.org>
To: libc-alpha@sourceware.org
Subject: posix_openpt vs getpt??
Date: Mon, 30 Dec 2019 22:35:50 +0100	[thread overview]
Message-ID: <20191230213550.icqt2er7dwnxcrrb@function> (raw)

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

             reply	other threads:[~2019-12-30 21:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-30 21:35 Samuel Thibault [this message]
2019-12-31 13:25 ` posix_openpt vs getpt?? Florian Weimer
2019-12-31 16:38   ` Samuel Thibault
2019-12-31 16:45     ` Samuel Thibault
2019-12-31 16:53       ` Florian Weimer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191230213550.icqt2er7dwnxcrrb@function \
    --to=samuel.thibault@gnu.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).