* [PATCH] ioctl_tty.2: Update DTR example
@ 2021-07-30 10:54 Pali Rohár
2021-07-30 18:22 ` Alejandro Colomar (man-pages)
0 siblings, 1 reply; 2+ messages in thread
From: Pali Rohár @ 2021-07-30 10:54 UTC (permalink / raw)
To: linux-man, Alejandro Colomar, Michael Kerrisk
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ioctl_tty.2: Update DTR example
2021-07-30 10:54 [PATCH] ioctl_tty.2: Update DTR example Pali Rohár
@ 2021-07-30 18:22 ` Alejandro Colomar (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-07-30 18:22 UTC (permalink / raw)
To: Pali Rohár, linux-man, Michael Kerrisk
Hi Pali,
On 7/30/21 12:54 PM, Pali Rohár wrote:
> 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>
Patch applied. Thanks,
Alex
> ---
> 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>
>
>
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-30 18:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30 10:54 [PATCH] ioctl_tty.2: Update DTR example Pali Rohár
2021-07-30 18:22 ` Alejandro Colomar (man-pages)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.