Re: [PATCH] memfd_create.2: fix header for memfd_create()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Lucas,

On 07/20/2018 03:14 AM, Lucas De Marchi wrote:
sys/memfd.h doesn't exist. memfd_create() is declared in sys/mman.h and
some flags only available in linux/memfd.h.

Thanks. Patch applied.

Cheers,

Michael

Signed-off-by: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>
---
  man2/memfd_create.2 | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/man2/memfd_create.2 b/man2/memfd_create.2
index 678814285..2c73c27b2 100644
--- a/man2/memfd_create.2
+++ b/man2/memfd_create.2
@@ -22,7 +22,7 @@
  .SH NAME
  memfd_create \- create an anonymous file
  .SH SYNOPSIS
-.B #include <sys/memfd.h>
+.B #include <sys/mman.h>
  .PP
  .BI "int memfd_create(const char *" name ", unsigned int " flags ");"
  .SH DESCRIPTION
@@ -121,7 +121,7 @@ to select alternative hugetlb page sizes (respectively, 2\ MB, 1\ GB, ...)
  on systems that support multiple hugetlb page sizes.
  Definitions for known
  huge page sizes are included in the header file
-.I <sys/memfd.h>.
+.I <linux/memfd.h>.
  .IP
  For details on encoding huge page sizes not included in the header file,
  see the discussion of the similarly named constants in
@@ -396,7 +396,7 @@ Existing seals: WRITE SHRINK
  .SS Program source: t_memfd_create.c
  \&
  .EX
-#include <sys/memfd.h>
+#include <sys/mman.h>
  #include <fcntl.h>
  #include <stdlib.h>
  #include <unistd.h>
@@ -478,7 +478,7 @@ main(int argc, char *argv[])
  .SS Program source: t_get_seals.c
  \&
  .EX
-#include <sys/memfd.h>
+#include <sys/mman.h>
  #include <fcntl.h>
  #include <unistd.h>
  #include <stdlib.h>

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux