aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/memfd_create.c
blob: 6805d807d6eb1904f428dc46b1a4dc14e47eeb94 (plain) (blame)
1
2
3
4
5
6
7
8
9
#define _GNU_SOURCE 1
#include <sys/mman.h>
#include "syscall.h"
#include <linux/unistd.h>

int memfd_create(const char *name, unsigned flags)
{
	return syscall(__NR_memfd_create, name, flags);
}