Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] getpt.3: Remove mention of O_NOCTTY
@ 2019-12-31 17:01 Samuel Thibault
  2020-01-01  7:27 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Thibault @ 2019-12-31 17:01 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man, libc-alpha

[-- 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

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

* Re: [PATCH] getpt.3: Remove mention of O_NOCTTY
  2019-12-31 17:01 [PATCH] getpt.3: Remove mention of O_NOCTTY Samuel Thibault
@ 2020-01-01  7:27 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-01-01  7:27 UTC (permalink / raw)
  To: Samuel Thibault, linux-man, libc-alpha; +Cc: mtk.manpages

Hello Samuel

On 12/31/19 6:01 PM, Samuel Thibault wrote:
> 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>

(Inline patches preferred.)

Thanks. Patch applied.

Cheers,

Michael




-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-31 17:01 [PATCH] getpt.3: Remove mention of O_NOCTTY Samuel Thibault
2020-01-01  7:27 ` Michael Kerrisk (man-pages)

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git