options/linux: add memfd_create to mman.h
#include <bits/off_t.h>
#include <bits/size_t.h>
+#ifdef __MLIBC_LINUX_OPTION
+#include <linux/memfd.h>
+#endif
+
#define MAP_FAILED ((void *)(-1))
#define MAP_FILE 0
@@ -51,6 +55,10 @@ int shm_unlink(const char *);
void *mremap(void *, size_t, size_t, int, ...);
int remap_file_pages(void *, size_t, int, size_t, int);
+#ifdef __MLIBC_LINUX_OPTION
+int memfd_create(const char *, unsigned int);
+#endif
+
#ifdef __cplusplus
}
#endif
