summaryrefslogtreecommitdiff
path: root/src/basic/missing_syscall.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-12-08 14:59:45 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-12-08 15:32:25 +0900
commit6451baba82fa297b0042e3bcec0cb055ec7a0b5a (patch)
treed92ed788e2311b399de676b12edb051de8de7298 /src/basic/missing_syscall.h
parentae32a94efe1c1936322ce21c6f90a9a1a5af77a5 (diff)
downloadsystemd-6451baba82fa297b0042e3bcec0cb055ec7a0b5a.tar.gz
missing: add missing syscalls for ia64, m68k, sparc, arc, and tilegx
These are not tested, but several syscalls are defined for these architectures. Let's add syscalls comprehensively.
Diffstat (limited to 'src/basic/missing_syscall.h')
-rw-r--r--src/basic/missing_syscall.h66
1 files changed, 58 insertions, 8 deletions
diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
index 44fca18f02..3911ccb983 100644
--- a/src/basic/missing_syscall.h
+++ b/src/basic/missing_syscall.h
@@ -57,12 +57,16 @@ static inline int missing_pivot_root(const char *new_root, const char *put_old)
# define systemd_NR_memfd_create 279
#elif defined(__alpha__)
# define systemd_NR_memfd_create 512
-#elif defined(__arc__)
+#elif defined(__arc__) || defined(__tilegx__)
# define systemd_NR_memfd_create 279
#elif defined(__arm__)
# define systemd_NR_memfd_create 385
#elif defined(__i386__)
# define systemd_NR_memfd_create 356
+#elif defined(__ia64__)
+# define systemd_NR_memfd_create systemd_SC_arch_bias(316)
+#elif defined(__m68k__)
+# define systemd_NR_memfd_create 353
#elif defined(_MIPS_SIM)
# if _MIPS_SIM == _MIPS_SIM_ABI32
# define systemd_NR_memfd_create systemd_SC_arch_bias(354)
@@ -75,6 +79,8 @@ static inline int missing_pivot_root(const char *new_root, const char *put_old)
# define systemd_NR_memfd_create 360
#elif defined(__s390__)
# define systemd_NR_memfd_create 350
+#elif defined(__sparc__)
+# define systemd_NR_memfd_create 348
#elif defined(__x86_64__)
# define systemd_NR_memfd_create systemd_SC_arch_bias(319)
#else
@@ -114,7 +120,7 @@ static inline int missing_memfd_create(const char *name, unsigned int flags) {
# define systemd_NR_getrandom 278
#elif defined(__alpha__)
# define systemd_NR_getrandom 511
-#elif defined(__arc__)
+#elif defined(__arc__) || defined(__tilegx__)
# define systemd_NR_getrandom 278
#elif defined(__arm__)
# define systemd_NR_getrandom 384
@@ -136,6 +142,8 @@ static inline int missing_memfd_create(const char *name, unsigned int flags) {
# define systemd_NR_getrandom 359
#elif defined(__s390__)
# define systemd_NR_getrandom 349
+#elif defined(__sparc__)
+# define systemd_NR_getrandom 347
#elif defined(__x86_64__)
# define systemd_NR_getrandom systemd_SC_arch_bias(318)
#else
@@ -190,12 +198,16 @@ static inline pid_t missing_gettid(void) {
# define systemd_NR_name_to_handle_at 264
#elif defined(__alpha__)
# define systemd_NR_name_to_handle_at 497
-#elif defined(__arc__)
+#elif defined(__arc__) || defined(__tilegx__)
# define systemd_NR_name_to_handle_at 264
#elif defined(__arm__)
# define systemd_NR_name_to_handle_at 370
#elif defined(__i386__)
# define systemd_NR_name_to_handle_at 341
+#elif defined(__ia64__)
+# define systemd_NR_name_to_handle_at systemd_SC_arch_bias(302)
+#elif defined(__m68k__)
+# define systemd_NR_name_to_handle_at 340
#elif defined(_MIPS_SIM)
# if _MIPS_SIM == _MIPS_SIM_ABI32
# define systemd_NR_name_to_handle_at systemd_SC_arch_bias(339)
@@ -208,6 +220,8 @@ static inline pid_t missing_gettid(void) {
# define systemd_NR_name_to_handle_at 345
#elif defined(__s390__)
# define systemd_NR_name_to_handle_at 335
+#elif defined(__sparc__)
+# define systemd_NR_name_to_handle_at 332
#elif defined(__x86_64__)
# define systemd_NR_name_to_handle_at systemd_SC_arch_bias(303)
#else
@@ -253,12 +267,16 @@ static inline int missing_name_to_handle_at(int fd, const char *name, struct fil
# define systemd_NR_setns 268
#elif defined(__alpha__)
# define systemd_NR_setns 501
-#elif defined(__arc__)
+#elif defined(__arc__) || defined(__tilegx__)
# define systemd_NR_setns 268
#elif defined(__arm__)
# define systemd_NR_setns 375
#elif defined(__i386__)
# define systemd_NR_setns 346
+#elif defined(__ia64__)
+# define systemd_NR_setns systemd_SC_arch_bias(306)
+#elif defined(__m68k__)
+# define systemd_NR_setns 344
#elif defined(_MIPS_SIM)
# if _MIPS_SIM == _MIPS_SIM_ABI32
# define systemd_NR_setns systemd_SC_arch_bias(344)
@@ -271,6 +289,8 @@ static inline int missing_name_to_handle_at(int fd, const char *name, struct fil
# define systemd_NR_setns 350
#elif defined(__s390__)
# define systemd_NR_setns 339
+#elif defined(__sparc__)
+# define systemd_NR_setns 337
#elif defined(__x86_64__)
# define systemd_NR_setns systemd_SC_arch_bias(308)
#else
@@ -320,12 +340,16 @@ static inline pid_t raw_getpid(void) {
# define systemd_NR_renameat2 276
#elif defined(__alpha__)
# define systemd_NR_renameat2 510
-#elif defined(__arc__)
+#elif defined(__arc__) || defined(__tilegx__)
# define systemd_NR_renameat2 276
#elif defined(__arm__)
# define systemd_NR_renameat2 382
#elif defined(__i386__)
# define systemd_NR_renameat2 353
+#elif defined(__ia64__)
+# define systemd_NR_renameat2 systemd_SC_arch_bias(314)
+#elif defined(__m68k__)
+# define systemd_NR_renameat2 351
#elif defined(_MIPS_SIM)
# if _MIPS_SIM == _MIPS_SIM_ABI32
# define systemd_NR_renameat2 systemd_SC_arch_bias(351)
@@ -338,6 +362,8 @@ static inline pid_t raw_getpid(void) {
# define systemd_NR_renameat2 357
#elif defined(__s390__)
# define systemd_NR_renameat2 347
+#elif defined(__sparc__)
+# define systemd_NR_renameat2 345
#elif defined(__x86_64__)
# define systemd_NR_renameat2 systemd_SC_arch_bias(316)
#else
@@ -429,12 +455,16 @@ static inline key_serial_t missing_request_key(const char *type, const char *des
# define systemd_NR_copy_file_range 285
#elif defined(__alpha__)
# define systemd_NR_copy_file_range 519
-#elif defined(__arc__)
+#elif defined(__arc__) || defined(__tilegx__)
# define systemd_NR_copy_file_range 285
#elif defined(__arm__)
# define systemd_NR_copy_file_range 391
#elif defined(__i386__)
# define systemd_NR_copy_file_range 377
+#elif defined(__ia64__)
+# define systemd_NR_copy_file_range systemd_SC_arch_bias(323)
+#elif defined(__m68k__)
+# define systemd_NR_copy_file_range 376
#elif defined(_MIPS_SIM)
# if _MIPS_SIM == _MIPS_SIM_ABI32
# define systemd_NR_copy_file_range systemd_SC_arch_bias(360)
@@ -447,6 +477,8 @@ static inline key_serial_t missing_request_key(const char *type, const char *des
# define systemd_NR_copy_file_range 379
#elif defined(__s390__)
# define systemd_NR_copy_file_range 375
+#elif defined(__sparc__)
+# define systemd_NR_copy_file_range 357
#elif defined(__x86_64__)
# define systemd_NR_copy_file_range systemd_SC_arch_bias(326)
#else
@@ -489,10 +521,16 @@ static inline ssize_t missing_copy_file_range(int fd_in, loff_t *off_in,
# define systemd_NR_bpf 280
#elif defined(__alpha__)
# define systemd_NR_bpf 515
+#elif defined(__arc__) || defined(__tilegx__)
+# define systemd_NR_bpf 280
#elif defined(__arm__)
# define systemd_NR_bpf 386
#elif defined(__i386__)
# define systemd_NR_bpf 357
+#elif defined(__ia64__)
+# define systemd_NR_bpf systemd_SC_arch_bias(317)
+#elif defined(__m68k__)
+# define systemd_NR_bpf 354
#elif defined(_MIPS_SIM)
# if _MIPS_SIM == _MIPS_SIM_ABI32
# define systemd_NR_bpf systemd_SC_arch_bias(355)
@@ -507,8 +545,6 @@ static inline ssize_t missing_copy_file_range(int fd_in, loff_t *off_in,
# define systemd_NR_bpf 351
#elif defined(__sparc__)
# define systemd_NR_bpf 349
-#elif defined(__tilegx__)
-# define systemd_NR_bpf 280
#elif defined(__x86_64__)
# define systemd_NR_bpf systemd_SC_arch_bias(321)
#else
@@ -551,10 +587,16 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) {
# define systemd_NR_pkey_mprotect 288
# elif defined(__alpha__)
# define systemd_NR_pkey_mprotect 524
+# elif defined(__arc__) || defined(__tilegx__)
+# define systemd_NR_pkey_mprotect 226
# elif defined(__arm__)
# define systemd_NR_pkey_mprotect 394
# elif defined(__i386__)
# define systemd_NR_pkey_mprotect 380
+# elif defined(__ia64__)
+# define systemd_NR_pkey_mprotect systemd_SC_arch_bias(330)
+# elif defined(__m68k__)
+# define systemd_NR_pkey_mprotect 381
# elif defined(_MIPS_SIM)
# if _MIPS_SIM == _MIPS_SIM_ABI32
# define systemd_NR_pkey_mprotect systemd_SC_arch_bias(363)
@@ -567,6 +609,8 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) {
# define systemd_NR_pkey_mprotect 386
# elif defined(__s390__)
# define systemd_NR_pkey_mprotect 384
+# elif defined(__sparc__)
+# define systemd_NR_pkey_mprotect 362
# elif defined(__x86_64__)
# define systemd_NR_pkey_mprotect systemd_SC_arch_bias(329)
# else
@@ -594,10 +638,16 @@ assert_cc(__NR_pkey_mprotect == systemd_NR_pkey_mprotect);
# define systemd_NR_statx 291
#elif defined(__alpha__)
# define systemd_NR_statx 522
+#elif defined(__arc__) || defined(__tilegx__)
+# define systemd_NR_statx 291
#elif defined(__arm__)
# define systemd_NR_statx 397
#elif defined(__i386__)
# define systemd_NR_statx 383
+#elif defined(__ia64__)
+# define systemd_NR_statx systemd_SC_arch_bias(326)
+#elif defined(__m68k__)
+# define systemd_NR_statx 379
#elif defined(_MIPS_SIM)
# if _MIPS_SIM == _MIPS_SIM_ABI32
# define systemd_NR_statx systemd_SC_arch_bias(366)