From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: mtk.manpages@gmail.com
Cc: linux-man@vger.kernel.org, libc-alpha@sourceware.org
Subject: [PATCH] getpt.3: Remove mention of O_NOCTTY
Date: Tue, 31 Dec 2019 18:01:35 +0100 [thread overview]
Message-ID: <20191231170135.gqbv35jdlqfmomee@function> (raw)
[-- Attachment #1: Type: text/plain, Size: 174 bytes --]
The glibc implementation of getpt has actually never been setting
O_NOCTTY when opening /dev/ptmx or BSD ptys.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 234 bytes --]
--- ./man3/getpt.3.orig 2019-12-31 17:58:50.046714199 +0100
+++ ./man3/getpt.3 2019-12-31 17:59:00.706722831 +0100
@@ -21,7 +21,7 @@
.PP
.in +4n
.EX
-open("/dev/ptmx", O_RDWR | O_NOCTTY);
+open("/dev/ptmx", O_RDWR);
.EE
.in
.PP
next reply other threads:[~2019-12-31 17:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-31 17:01 Samuel Thibault [this message]
2020-01-01 7:27 ` [PATCH] getpt.3: Remove mention of O_NOCTTY Michael Kerrisk (man-pages)
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191231170135.gqbv35jdlqfmomee@function \
--to=samuel.thibault@ens-lyon.org \
--cc=libc-alpha@sourceware.org \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
/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