[v5,13/35] dup.2: SYNOPSIS: Use consistent comments through pages

Message ID 20210404115847.78166-14-alx.manpages@gmail.com
State New
Headers show
Series
  • Untitled series #36396
Related show

Commit Message

Noah Goldstein via Libc-alpha April 4, 2021, 11:58 a.m.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>

---
 man2/dup.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.31.0

Comments

Noah Goldstein via Libc-alpha April 5, 2021, 11:32 a.m. | #1
Hi Alex,

On 4/4/21 1:58 PM, Alejandro Colomar wrote:
> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>

> ---

>  man2/dup.2 | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)


Patch applied.

Thanks,

Michael


> diff --git a/man2/dup.2 b/man2/dup.2

> index 725b9d7d5..b9e0828b0 100644

> --- a/man2/dup.2

> +++ b/man2/dup.2

> @@ -45,7 +45,7 @@ dup, dup2, dup3 \- duplicate a file descriptor

>  .BI "int dup2(int " oldfd ", int " newfd );

>  .PP

>  .BR "#define _GNU_SOURCE" "             /* See feature_test_macros(7) */"

> -.BR "#include <fcntl.h>" "              /* Obtain O_* constant definitions */"

> +.BR "#include <fcntl.h>" "              /* Definition of " O_* " constants */"

>  .B #include <unistd.h>

>  .PP

>  .BI "int dup3(int " oldfd ", int " newfd ", int " flags );

> 



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

Patch

diff --git a/man2/dup.2 b/man2/dup.2
index 725b9d7d5..b9e0828b0 100644
--- a/man2/dup.2
+++ b/man2/dup.2
@@ -45,7 +45,7 @@  dup, dup2, dup3 \- duplicate a file descriptor
 .BI "int dup2(int " oldfd ", int " newfd );
 .PP
 .BR "#define _GNU_SOURCE" "             /* See feature_test_macros(7) */"
-.BR "#include <fcntl.h>" "              /* Obtain O_* constant definitions */"
+.BR "#include <fcntl.h>" "              /* Definition of " O_* " constants */"
 .B #include <unistd.h>
 .PP
 .BI "int dup3(int " oldfd ", int " newfd ", int " flags );