Thread (2 messages) 2 messages, 2 authors, 2021-08-30

[PATCH] ioctl_tty.2: TIOCGSID is equivalent to tcgetsid()

flat view
STALE1865d

From: Pali Rohár <pali@kernel.org>
Date: 2021-08-30 16:09:27
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 man2/ioctl_tty.2 | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2
index c7a8aad7b395..6ba18f337e8f 100644
--- a/man2/ioctl_tty.2
+++ b/man2/ioctl_tty.2
@@ -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
-- 
2.20.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help