sys/memfd.h doesn't exist. memfd_create() is declared in
sys/mman.h and some flags are available only in linux/memfd.h.
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
.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
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
.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>
.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>