[v4,32/35] ioctl_fideduperange.2: Make clear why exactly is each header needed

Message ID 20210403194026.102818-33-alx.manpages@gmail.com
State Not applicable
Headers
Series SYNOPSIS: Use syscall(SYS_...); and fix '#include's |

Commit Message

Alejandro Colomar April 3, 2021, 7:40 p.m. UTC
  Only the include that provides the prototype doesn't need a comment.

Also sort the includes alphabetically.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man2/ioctl_fideduperange.2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/man2/ioctl_fideduperange.2 b/man2/ioctl_fideduperange.2
index 1df0628d0..e924ed248 100644
--- a/man2/ioctl_fideduperange.2
+++ b/man2/ioctl_fideduperange.2
@@ -25,8 +25,9 @@ 
 ioctl_fideduperange \- share some the data of one file with another file
 .SH SYNOPSIS
 .nf
+.BR "#include <linux/fs.h>" "         /* Definition of " FIDEDUPERANGE
+.RB    "                               * and " FILE_DEDUPE_* " constants */"
 .B #include <sys/ioctl.h>
-.B #include <linux/fs.h>
 .PP
 .BI "int ioctl(int " src_fd ", FIDEDUPERANGE, struct file_dedupe_range *" arg );
 .fi