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

[PATCH] ioctl_tty.2: Update DTR example

STALE1893d

From: Pali Rohár <pali@kernel.org>
Date: 2021-07-30 10:55:01
Subsystem: the rest · Maintainer: Linus Torvalds

Do not include unused (and incompatible) header file termios.h and include
required header files for puts() and close() functions.

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 man2/ioctl_tty.2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2
index 91aceddb7828..b5356738d4bb 100644
--- a/man2/ioctl_tty.2
+++ b/man2/ioctl_tty.2
@@ -743,7 +743,8 @@ Insufficient permission.
 Check the condition of DTR on the serial port.
 .PP
 .EX
-#include <termios.h>
+#include <stdio.h>
+#include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
 
-- 
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