add memfd_create syscall wrapper
memfd_create was added in linux v3.17 and glibc has api for it.
This commit is contained in:
committed by
Rich Felker
parent
b64d66d0b0
commit
38f2fa3d02
@@ -0,0 +1,8 @@
|
||||
#define _GNU_SOURCE 1
|
||||
#include <sys/mman.h>
|
||||
#include "syscall.h"
|
||||
|
||||
int memfd_create(const char *name, unsigned flags)
|
||||
{
|
||||
return syscall(SYS_memfd_create, name, flags);
|
||||
}
|
||||
Reference in New Issue
Block a user