Skip to contentSkip to conversation

ioctl_tty.2: TIOCGSID is equivalent to tcgetsid()

PATCH In review Pali Rohár 2 participants 2 messages Aug 30, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ioctl_tty.2: TIOCGSID is equivalent to tcgetsid()

---
 man2/ioctl_tty.2 | 3 +++
 1 file changed, 3 insertions(+)
man2/ioctl_tty.2 +3 -0
index c7a8aad7b395..6ba18f337e8f 100644
@@ -401,6 +401,9 @@ Set the foreground process group ID of this terminal.
 Argument:
 .BI "pid_t *" argp
 .IP
+When successful, equivalent to
+.IR "*argp = tcgetsid(fd)" .
+.IP
 Get the session ID of the given terminal.
 This fails with the error
 .B ENOTTY
Signature · 1 line
2.20.1
#1 lore raw

Hello Pali,

Quoted 1 line · Pali Rohár

Thanks. Patch applied.

Cheers,

Michael

Quoted 19 lines
---
 man2/ioctl_tty.2 | 3 +++
 1 file changed, 3 insertions(+)
man2/ioctl_tty.2 +3 -0
index c7a8aad7b395..6ba18f337e8f 100644
@@ -401,6 +401,9 @@ Set the foreground process group ID of this terminal.
 Argument:
 .BI "pid_t *" argp
 .IP
+When successful, equivalent to
+.IR "*argp = tcgetsid(fd)" .
+.IP
 Get the session ID of the given terminal.
 This fails with the error
 .B ENOTTY
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/