Browse Source

add pidfd_getfd and openat2 syscall numbers from linux v5.6

also added clone3 on sh and m68k, on sh it's still missing (not
yet wired up), but reserved so safe to add.

see

  linux commit fddb5d430ad9fa91b49b1d34d0202ffe2fa0e179
  open: introduce openat2(2) syscall

  linux commit 9a2cef09c801de54feecd912303ace5c27237f12
  arch: wire up pidfd_getfd syscall

  linux commit 8649c322f75c96e7ced2fec201e123b2b073bf09
  pid: Implement pidfd_getfd syscall

  linux commit e8bb2a2a1d51511e6b3f7e08125d52ec73c11139
  m68k: Wire up clone3() syscall
Szabolcs Nagy 5 years ago
parent
commit
d990090384

+ 2 - 0
arch/aarch64/bits/syscall.h.in

@@ -289,4 +289,6 @@
 #define __NR_fspick		433
 #define __NR_pidfd_open		434
 #define __NR_clone3		435
+#define __NR_openat2		437
+#define __NR_pidfd_getfd	438
 

+ 2 - 0
arch/arm/bits/syscall.h.in

@@ -389,6 +389,8 @@
 #define __NR_fspick		433
 #define __NR_pidfd_open		434
 #define __NR_clone3		435
+#define __NR_openat2		437
+#define __NR_pidfd_getfd	438
 
 #define __ARM_NR_breakpoint	0x0f0001
 #define __ARM_NR_cacheflush	0x0f0002

+ 2 - 0
arch/i386/bits/syscall.h.in

@@ -426,4 +426,6 @@
 #define __NR_fspick		433
 #define __NR_pidfd_open		434
 #define __NR_clone3		435
+#define __NR_openat2		437
+#define __NR_pidfd_getfd	438
 

+ 3 - 0
arch/m68k/bits/syscall.h.in

@@ -405,3 +405,6 @@
 #define __NR_fsmount		432
 #define __NR_fspick		433
 #define __NR_pidfd_open		434
+#define __NR_clone3		435
+#define __NR_openat2		437
+#define __NR_pidfd_getfd	438

+ 2 - 0
arch/microblaze/bits/syscall.h.in

@@ -427,4 +427,6 @@
 #define __NR_fspick		433
 #define __NR_pidfd_open		434
 #define __NR_clone3		435
+#define __NR_openat2		437
+#define __NR_pidfd_getfd	438
 

+ 2 - 0
arch/mips/bits/syscall.h.in

@@ -408,4 +408,6 @@
 #define __NR_fspick		4433
 #define __NR_pidfd_open		4434
 #define __NR_clone3		4435
+#define __NR_openat2		4437
+#define __NR_pidfd_getfd	4438
 

+ 2 - 0
arch/mips64/bits/syscall.h.in

@@ -338,4 +338,6 @@
 #define __NR_fspick		5433
 #define __NR_pidfd_open		5434
 #define __NR_clone3		5435
+#define __NR_openat2		5437
+#define __NR_pidfd_getfd	5438
 

+ 2 - 0
arch/mipsn32/bits/syscall.h.in

@@ -362,4 +362,6 @@
 #define __NR_fspick		6433
 #define __NR_pidfd_open		6434
 #define __NR_clone3		6435
+#define __NR_openat2		6437
+#define __NR_pidfd_getfd	6438
 

+ 2 - 0
arch/or1k/bits/syscall.h.in

@@ -311,4 +311,6 @@
 #define __NR_fspick		433
 #define __NR_pidfd_open		434
 #define __NR_clone3		435
+#define __NR_openat2		437
+#define __NR_pidfd_getfd	438
 

+ 2 - 0
arch/powerpc/bits/syscall.h.in

@@ -415,4 +415,6 @@
 #define __NR_fspick		433
 #define __NR_pidfd_open		434
 #define __NR_clone3		435
+#define __NR_openat2		437
+#define __NR_pidfd_getfd	438
 

+ 2 - 0
arch/powerpc64/bits/syscall.h.in

@@ -387,4 +387,6 @@
 #define __NR_fspick		433
 #define __NR_pidfd_open		434
 #define __NR_clone3		435
+#define __NR_openat2		437
+#define __NR_pidfd_getfd	438
 

+ 2 - 0
arch/riscv64/bits/syscall.h.in

@@ -289,6 +289,8 @@
 #define __NR_fspick		433
 #define __NR_pidfd_open		434
 #define __NR_clone3		435
+#define __NR_openat2		437
+#define __NR_pidfd_getfd	438
 
 #define __NR_sysriscv __NR_arch_specific_syscall
 #define __NR_riscv_flush_icache (__NR_sysriscv + 15)

+ 2 - 0
arch/s390x/bits/syscall.h.in

@@ -352,4 +352,6 @@
 #define __NR_fspick		433
 #define __NR_pidfd_open		434
 #define __NR_clone3		435
+#define __NR_openat2		437
+#define __NR_pidfd_getfd	438
 

+ 3 - 0
arch/sh/bits/syscall.h.in

@@ -398,4 +398,7 @@
 #define __NR_fsmount		432
 #define __NR_fspick		433
 #define __NR_pidfd_open		434
+#define __NR_clone3		435
+#define __NR_openat2		437
+#define __NR_pidfd_getfd	438
 

+ 2 - 0
arch/x32/bits/syscall.h.in

@@ -298,6 +298,8 @@
 #define __NR_fspick		(0x40000000 + 433)
 #define __NR_pidfd_open		(0x40000000 + 434)
 #define __NR_clone3		(0x40000000 + 435)
+#define __NR_openat2		(0x40000000 + 437)
+#define __NR_pidfd_getfd	(0x40000000 + 438)
 
 
 #define __NR_rt_sigaction (0x40000000 + 512)

+ 2 - 0
arch/x86_64/bits/syscall.h.in

@@ -345,4 +345,6 @@
 #define __NR_fspick		433
 #define __NR_pidfd_open		434
 #define __NR_clone3		435
+#define __NR_openat2		437
+#define __NR_pidfd_getfd	438