Thread (60 messages) 60 messages, 5 authors, 2021-10-17

Re: [PATCH 14/23] ioctl_tty.2: Update DTR example

From: Michael Kerrisk (man-pages) <hidden>
Date: 2021-08-08 20:12:59

Hello Pali and Alex,

On 8/8/21 10:41 AM, Alejandro Colomar wrote:
From: Pali Rohár <pali@kernel.org>

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>
Signed-off-by: Alejandro Colomar <redacted>
Thanks. Patch applied.

Cheers,

Michael

quoted hunk ↗ jump to hunk
---
 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 967b5c4c7..519e4606f 100644
--- a/man2/ioctl_tty.2
+++ b/man2/ioctl_tty.2
@@ -730,7 +730,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>
 

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help