[v5,31/35] ioctl_ficlonerange.2: Make clear why is each header exactly needed.

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

Commit Message

Vitaly Buka via Libc-alpha April 4, 2021, 11:58 a.m.
Only the one that provides the prototype doesn't need a comment.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>

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

-- 
2.31.0

Comments

Vitaly Buka via Libc-alpha April 5, 2021, 11:13 a.m. | #1
Hi Alex,

On 4/4/21 1:58 PM, Alejandro Colomar wrote:
> Only the one that provides the prototype doesn't need a comment.

> 

> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>


Patch applied.

Thanks,

Michael


> ---

>  man2/ioctl_ficlonerange.2 | 2 +-

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

> 

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

> index 34c171941..75ab14bc4 100644

> --- a/man2/ioctl_ficlonerange.2

> +++ b/man2/ioctl_ficlonerange.2

> @@ -25,8 +25,8 @@

>  ioctl_ficlonerange, ioctl_ficlone \- share some the data of one file with another file

>  .SH SYNOPSIS

>  .nf

> +.BR "#include <linux/fs.h>" "        /* Definition of " FICLONE* " constants */"

>  .B #include <sys/ioctl.h>

> -.B #include <linux/fs.h>

>  .PP

>  .BI "int ioctl(int " dest_fd ", FICLONERANGE, struct file_clone_range *" arg );

>  .BI "int ioctl(int " dest_fd ", FICLONE, int " src_fd );

> 



-- 
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/ioctl_ficlonerange.2 b/man2/ioctl_ficlonerange.2
index 34c171941..75ab14bc4 100644
--- a/man2/ioctl_ficlonerange.2
+++ b/man2/ioctl_ficlonerange.2
@@ -25,8 +25,8 @@ 
 ioctl_ficlonerange, ioctl_ficlone \- share some the data of one file with another file
 .SH SYNOPSIS
 .nf
+.BR "#include <linux/fs.h>" "        /* Definition of " FICLONE* " constants */"
 .B #include <sys/ioctl.h>
-.B #include <linux/fs.h>
 .PP
 .BI "int ioctl(int " dest_fd ", FICLONERANGE, struct file_clone_range *" arg );
 .BI "int ioctl(int " dest_fd ", FICLONE, int " src_fd );