Skip to contentSkip to conversation

ioctl_tty.2: Update DTR example

PATCH In review Pali Rohár 2 participants 2 messages Jul 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: Update DTR example

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

---
 man2/ioctl_tty.2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
man2/ioctl_tty.2 +2 -1
index 91aceddb7828..b5356738d4bb 100644
@@ -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>
 
Signature · 1 line
2.20.1
#1 lore raw

Hi Pali,

Quoted 4 lines · Pali Rohár

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

Patch applied. Thanks,

Alex

Quoted 19 lines
---
  man2/ioctl_tty.2 | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
man2/ioctl_tty.2 +2 -1
index 91aceddb7828..b5356738d4bb 100644
@@ -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>
 
Signature · 3 lines
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/