]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
userfaultfd.2: Remove unused includes
authorAlejandro Colomar <alx.manpages@gmail.com>
Sat, 12 Jun 2021 08:31:39 +0000 (10:31 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 20 Jun 2021 02:43:43 +0000 (14:43 +1200)
<sys/types.h> makes no sense for a function that only uses 'int'.
The flags used by this function are provided by <fcntl.h>
(or others), but not by <linux/userfaultfd.h>.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/userfaultfd.2

index 593c189d8e14f44bde6c50996d2c124dbd526575..e1a18a9d921ffaca009bce978ebcfdccdc32e651 100644 (file)
@@ -29,8 +29,6 @@
 userfaultfd \- create a file descriptor for handling page faults in user space
 .SH SYNOPSIS
 .nf
-.B #include <sys/types.h>
-.B #include <linux/userfaultfd.h>
 .PP
 .BI "int userfaultfd(int " flags );
 .fi