summaryrefslogtreecommitdiff
path: root/arch/or1k/bits
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014-10-01 21:41:47 +0200
committerRich Felker <dalias@aerifal.cx>2014-10-08 10:25:04 -0400
commit4ffc39c65448b04685946dffa68745cf0f6bf9f7 (patch)
tree1c05cecb9264217d36279a224a79d0ca6e9dc569 /arch/or1k/bits
parent0539e6dad39c1b3b204a14c403da68b587b1b3da (diff)
downloadmusl-4ffc39c65448b04685946dffa68745cf0f6bf9f7.tar.gz
add new syscall numbers for seccomp, getrandom, memfd_create
these syscalls are new in linux v3.17 and present on all supported archs except sh. seccomp was added in commit 48dc92b9fc3926844257316e75ba11eb5c742b2c it has operation, flags and pointer arguments (if flags==0 then it is the same as prctl(PR_SET_SECCOMP,...)), the uapi header for flag definitions is linux/seccomp.h getrandom was added in commit c6e9d6f38894798696f23c8084ca7edbf16ee895 it provides an entropy source when open("/dev/urandom",..) would fail, the uapi header for flags is linux/random.h memfd_create was added in commit 9183df25fe7b194563db3fec6dc3202a5855839c it allows anon mmap to have an fd, that can be shared, sealed and needs no mount point, the uapi header for flags is linux/memfd.h
Diffstat (limited to 'arch/or1k/bits')
-rw-r--r--arch/or1k/bits/syscall.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/or1k/bits/syscall.h b/arch/or1k/bits/syscall.h
index dfb1a8bc..4e3b5c98 100644
--- a/arch/or1k/bits/syscall.h
+++ b/arch/or1k/bits/syscall.h
@@ -260,6 +260,9 @@
#define __NR_sched_setattr 274
#define __NR_sched_getattr 275
#define __NR_renameat2 276
+#define __NR_seccomp 277
+#define __NR_getrandom 278
+#define __NR_memfd_create 279
#define SYS_io_setup __NR_io_setup
#define SYS_io_destroy __NR_io_destroy
@@ -523,3 +526,6 @@
#define SYS_sched_setattr __NR_sched_setattr
#define SYS_sched_getattr __NR_sched_getattr
#define SYS_renameat2 __NR_renameat2
+#define SYS_seccomp __NR_seccomp
+#define SYS_getrandom __NR_getrandom
+#define SYS_memfd_create __NR_memfd_create