From 811cd361e144dd7bdf75bcad8b4572ec786af5c7 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 11 Aug 2024 20:22:48 +0200 Subject: add memfd_create syscall wrapper --- libc/sysdeps/linux/common/memfd_create.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 libc/sysdeps/linux/common/memfd_create.c (limited to 'libc/sysdeps/linux/common/memfd_create.c') diff --git a/libc/sysdeps/linux/common/memfd_create.c b/libc/sysdeps/linux/common/memfd_create.c new file mode 100644 index 000000000..7165f3278 --- /dev/null +++ b/libc/sysdeps/linux/common/memfd_create.c @@ -0,0 +1,13 @@ +/* + * memfd_create() for uClibc-ng + * + * Copyright (C) 2024 Waldemar Brodkorb + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#include +#include +#if defined(__NR_memfd_create) +_syscall2(int, memfd_create, const char *, name, unsigned int, flags) +#endif -- cgit v1.2.3