ioctl_tty.2: Update DTR example
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.
Signed-off-by Pali Rohár <[email protected]>
--- man2/ioctl_tty.2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
man2/ioctl_tty.2 +2 -1
@@ -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
Hi Pali,
Quoted 4 lines · Pali Rohár
Do not include unused (and incompatible) header file
termios.hand include required header files forputs()andclose()functions.Signed-off-by Pali Rohár <[email protected]>
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@@ -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/