Skip to contentSkip to conversation

getpt.3: Remove mention of O_NOCTTY

PATCH In review Samuel Thibault 2 participants 2 messages Dec 31, 2019 – Jan 1, 2020 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 getpt.3: Remove mention of O_NOCTTY

The glibc implementation of getpt has actually never been setting O_NOCTTY when opening /dev/ptmx or BSD ptys.

man3/getpt.3 renamed from man3/getpt.3.orig +1 -1
@@ -21,7 +21,7 @@
 .PP
 .in +4n
 .EX
-open("/dev/ptmx", O_RDWR | O_NOCTTY);
+open("/dev/ptmx", O_RDWR);
 .EE
 .in
 .PP
#1 lore raw

Hello Samuel

Quoted 4 lines · Samuel Thibault

The glibc implementation of getpt has actually never been setting O_NOCTTY when opening /dev/ptmx or BSD ptys.

(Inline patches preferred.)

Thanks. Patch applied.

Cheers,

Michael

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