1 /* SPDX-License-Identifier: LGPL-2.1-or-later
2 * This file is generated by src/basic/missing_syscalls.py. Do not edit!
4 * Use 'ninja -C build update-syscall-tables' to download new syscall tables,
5 * and 'ninja -C build update-syscall-header' to regenerate this file.
8 /* Note: if this code looks strange, this is because it is derived from the same
9 * template as the per-syscall blocks below. */
10 # if defined(__aarch64__)
11 # elif defined(__alpha__)
12 # elif defined(__arc__) || defined(__tilegx__)
13 # elif defined(__arm__)
14 # elif defined(__i386__)
15 # elif defined(__ia64__)
16 # elif defined(__m68k__)
17 # elif defined(_MIPS_SIM)
18 # if _MIPS_SIM == _MIPS_SIM_ABI32
19 # elif _MIPS_SIM == _MIPS_SIM_NABI32
20 # elif _MIPS_SIM == _MIPS_SIM_ABI64
22 # error "Unknown MIPS ABI"
24 # elif defined(__powerpc__)
25 # elif defined(__riscv)
26 # if __riscv_xlen == 32
27 # elif __riscv_xlen == 64
29 # error "Unknown RISC-V ABI"
31 # elif defined(__s390__)
32 # elif defined(__sparc__)
33 # elif defined(__x86_64__)
34 # if defined(__ILP32__)
37 # elif !defined(missing_arch_template)
38 # warning "Current architecture is missing from the template"
39 # define missing_arch_template 1
43 # if defined(__aarch64__)
44 # define systemd_NR_bpf 280
45 # elif defined(__alpha__)
46 # define systemd_NR_bpf 515
47 # elif defined(__arc__) || defined(__tilegx__)
48 # define systemd_NR_bpf 280
49 # elif defined(__arm__)
50 # define systemd_NR_bpf 386
51 # elif defined(__i386__)
52 # define systemd_NR_bpf 357
53 # elif defined(__ia64__)
54 # define systemd_NR_bpf 1341
55 # elif defined(__m68k__)
56 # define systemd_NR_bpf 354
57 # elif defined(_MIPS_SIM)
58 # if _MIPS_SIM == _MIPS_SIM_ABI32
59 # define systemd_NR_bpf 4355
60 # elif _MIPS_SIM == _MIPS_SIM_NABI32
61 # define systemd_NR_bpf 6319
62 # elif _MIPS_SIM == _MIPS_SIM_ABI64
63 # define systemd_NR_bpf 5315
65 # error "Unknown MIPS ABI"
67 # elif defined(__powerpc__)
68 # define systemd_NR_bpf 361
69 # elif defined(__riscv)
70 # if __riscv_xlen == 32
71 # define systemd_NR_bpf 280
72 # elif __riscv_xlen == 64
73 # define systemd_NR_bpf 280
75 # error "Unknown RISC-V ABI"
77 # elif defined(__s390__)
78 # define systemd_NR_bpf 351
79 # elif defined(__sparc__)
80 # define systemd_NR_bpf 349
81 # elif defined(__x86_64__)
82 # if defined(__ILP32__)
83 # define systemd_NR_bpf (321 | /* __X32_SYSCALL_BIT */ 0x40000000)
85 # define systemd_NR_bpf 321
87 # elif !defined(missing_arch_template)
88 # warning "bpf() syscall number is unknown for your architecture"
91 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
92 # if defined __NR_bpf && __NR_bpf >= 0
93 # if defined systemd_NR_bpf
94 assert_cc(__NR_bpf
== systemd_NR_bpf
);
100 # if defined systemd_NR_bpf && systemd_NR_bpf >= 0
101 # define __NR_bpf systemd_NR_bpf
106 #ifndef __IGNORE_close_range
107 # if defined(__aarch64__)
108 # define systemd_NR_close_range 436
109 # elif defined(__alpha__)
110 # define systemd_NR_close_range 546
111 # elif defined(__arc__) || defined(__tilegx__)
112 # define systemd_NR_close_range 436
113 # elif defined(__arm__)
114 # define systemd_NR_close_range 436
115 # elif defined(__i386__)
116 # define systemd_NR_close_range 436
117 # elif defined(__ia64__)
118 # define systemd_NR_close_range 1460
119 # elif defined(__m68k__)
120 # define systemd_NR_close_range 436
121 # elif defined(_MIPS_SIM)
122 # if _MIPS_SIM == _MIPS_SIM_ABI32
123 # define systemd_NR_close_range 4436
124 # elif _MIPS_SIM == _MIPS_SIM_NABI32
125 # define systemd_NR_close_range 6436
126 # elif _MIPS_SIM == _MIPS_SIM_ABI64
127 # define systemd_NR_close_range 5436
129 # error "Unknown MIPS ABI"
131 # elif defined(__powerpc__)
132 # define systemd_NR_close_range 436
133 # elif defined(__riscv)
134 # if __riscv_xlen == 32
135 # define systemd_NR_close_range 436
136 # elif __riscv_xlen == 64
137 # define systemd_NR_close_range 436
139 # error "Unknown RISC-V ABI"
141 # elif defined(__s390__)
142 # define systemd_NR_close_range 436
143 # elif defined(__sparc__)
144 # define systemd_NR_close_range 436
145 # elif defined(__x86_64__)
146 # if defined(__ILP32__)
147 # define systemd_NR_close_range (436 | /* __X32_SYSCALL_BIT */ 0x40000000)
149 # define systemd_NR_close_range 436
151 # elif !defined(missing_arch_template)
152 # warning "close_range() syscall number is unknown for your architecture"
155 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
156 # if defined __NR_close_range && __NR_close_range >= 0
157 # if defined systemd_NR_close_range
158 assert_cc(__NR_close_range
== systemd_NR_close_range
);
161 # if defined __NR_close_range
162 # undef __NR_close_range
164 # if defined systemd_NR_close_range && systemd_NR_close_range >= 0
165 # define __NR_close_range systemd_NR_close_range
170 #ifndef __IGNORE_copy_file_range
171 # if defined(__aarch64__)
172 # define systemd_NR_copy_file_range 285
173 # elif defined(__alpha__)
174 # define systemd_NR_copy_file_range 519
175 # elif defined(__arc__) || defined(__tilegx__)
176 # define systemd_NR_copy_file_range 285
177 # elif defined(__arm__)
178 # define systemd_NR_copy_file_range 391
179 # elif defined(__i386__)
180 # define systemd_NR_copy_file_range 377
181 # elif defined(__ia64__)
182 # define systemd_NR_copy_file_range 1347
183 # elif defined(__m68k__)
184 # define systemd_NR_copy_file_range 376
185 # elif defined(_MIPS_SIM)
186 # if _MIPS_SIM == _MIPS_SIM_ABI32
187 # define systemd_NR_copy_file_range 4360
188 # elif _MIPS_SIM == _MIPS_SIM_NABI32
189 # define systemd_NR_copy_file_range 6324
190 # elif _MIPS_SIM == _MIPS_SIM_ABI64
191 # define systemd_NR_copy_file_range 5320
193 # error "Unknown MIPS ABI"
195 # elif defined(__powerpc__)
196 # define systemd_NR_copy_file_range 379
197 # elif defined(__riscv)
198 # if __riscv_xlen == 32
199 # define systemd_NR_copy_file_range 285
200 # elif __riscv_xlen == 64
201 # define systemd_NR_copy_file_range 285
203 # error "Unknown RISC-V ABI"
205 # elif defined(__s390__)
206 # define systemd_NR_copy_file_range 375
207 # elif defined(__sparc__)
208 # define systemd_NR_copy_file_range 357
209 # elif defined(__x86_64__)
210 # if defined(__ILP32__)
211 # define systemd_NR_copy_file_range (326 | /* __X32_SYSCALL_BIT */ 0x40000000)
213 # define systemd_NR_copy_file_range 326
215 # elif !defined(missing_arch_template)
216 # warning "copy_file_range() syscall number is unknown for your architecture"
219 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
220 # if defined __NR_copy_file_range && __NR_copy_file_range >= 0
221 # if defined systemd_NR_copy_file_range
222 assert_cc(__NR_copy_file_range
== systemd_NR_copy_file_range
);
225 # if defined __NR_copy_file_range
226 # undef __NR_copy_file_range
228 # if defined systemd_NR_copy_file_range && systemd_NR_copy_file_range >= 0
229 # define __NR_copy_file_range systemd_NR_copy_file_range
234 #ifndef __IGNORE_epoll_pwait2
235 # if defined(__aarch64__)
236 # define systemd_NR_epoll_pwait2 441
237 # elif defined(__alpha__)
238 # define systemd_NR_epoll_pwait2 551
239 # elif defined(__arc__) || defined(__tilegx__)
240 # define systemd_NR_epoll_pwait2 441
241 # elif defined(__arm__)
242 # define systemd_NR_epoll_pwait2 441
243 # elif defined(__i386__)
244 # define systemd_NR_epoll_pwait2 441
245 # elif defined(__ia64__)
246 # define systemd_NR_epoll_pwait2 1465
247 # elif defined(__m68k__)
248 # define systemd_NR_epoll_pwait2 441
249 # elif defined(_MIPS_SIM)
250 # if _MIPS_SIM == _MIPS_SIM_ABI32
251 # define systemd_NR_epoll_pwait2 4441
252 # elif _MIPS_SIM == _MIPS_SIM_NABI32
253 # define systemd_NR_epoll_pwait2 6441
254 # elif _MIPS_SIM == _MIPS_SIM_ABI64
255 # define systemd_NR_epoll_pwait2 5441
257 # error "Unknown MIPS ABI"
259 # elif defined(__powerpc__)
260 # define systemd_NR_epoll_pwait2 441
261 # elif defined(__riscv)
262 # if __riscv_xlen == 32
263 # define systemd_NR_epoll_pwait2 441
264 # elif __riscv_xlen == 64
265 # define systemd_NR_epoll_pwait2 441
267 # error "Unknown RISC-V ABI"
269 # elif defined(__s390__)
270 # define systemd_NR_epoll_pwait2 441
271 # elif defined(__sparc__)
272 # define systemd_NR_epoll_pwait2 441
273 # elif defined(__x86_64__)
274 # if defined(__ILP32__)
275 # define systemd_NR_epoll_pwait2 (441 | /* __X32_SYSCALL_BIT */ 0x40000000)
277 # define systemd_NR_epoll_pwait2 441
279 # elif !defined(missing_arch_template)
280 # warning "epoll_pwait2() syscall number is unknown for your architecture"
283 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
284 # if defined __NR_epoll_pwait2 && __NR_epoll_pwait2 >= 0
285 # if defined systemd_NR_epoll_pwait2
286 assert_cc(__NR_epoll_pwait2
== systemd_NR_epoll_pwait2
);
289 # if defined __NR_epoll_pwait2
290 # undef __NR_epoll_pwait2
292 # if defined systemd_NR_epoll_pwait2 && systemd_NR_epoll_pwait2 >= 0
293 # define __NR_epoll_pwait2 systemd_NR_epoll_pwait2
298 #ifndef __IGNORE_getrandom
299 # if defined(__aarch64__)
300 # define systemd_NR_getrandom 278
301 # elif defined(__alpha__)
302 # define systemd_NR_getrandom 511
303 # elif defined(__arc__) || defined(__tilegx__)
304 # define systemd_NR_getrandom 278
305 # elif defined(__arm__)
306 # define systemd_NR_getrandom 384
307 # elif defined(__i386__)
308 # define systemd_NR_getrandom 355
309 # elif defined(__ia64__)
310 # define systemd_NR_getrandom 1339
311 # elif defined(__m68k__)
312 # define systemd_NR_getrandom 352
313 # elif defined(_MIPS_SIM)
314 # if _MIPS_SIM == _MIPS_SIM_ABI32
315 # define systemd_NR_getrandom 4353
316 # elif _MIPS_SIM == _MIPS_SIM_NABI32
317 # define systemd_NR_getrandom 6317
318 # elif _MIPS_SIM == _MIPS_SIM_ABI64
319 # define systemd_NR_getrandom 5313
321 # error "Unknown MIPS ABI"
323 # elif defined(__powerpc__)
324 # define systemd_NR_getrandom 359
325 # elif defined(__riscv)
326 # if __riscv_xlen == 32
327 # define systemd_NR_getrandom 278
328 # elif __riscv_xlen == 64
329 # define systemd_NR_getrandom 278
331 # error "Unknown RISC-V ABI"
333 # elif defined(__s390__)
334 # define systemd_NR_getrandom 349
335 # elif defined(__sparc__)
336 # define systemd_NR_getrandom 347
337 # elif defined(__x86_64__)
338 # if defined(__ILP32__)
339 # define systemd_NR_getrandom (318 | /* __X32_SYSCALL_BIT */ 0x40000000)
341 # define systemd_NR_getrandom 318
343 # elif !defined(missing_arch_template)
344 # warning "getrandom() syscall number is unknown for your architecture"
347 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
348 # if defined __NR_getrandom && __NR_getrandom >= 0
349 # if defined systemd_NR_getrandom
350 assert_cc(__NR_getrandom
== systemd_NR_getrandom
);
353 # if defined __NR_getrandom
354 # undef __NR_getrandom
356 # if defined systemd_NR_getrandom && systemd_NR_getrandom >= 0
357 # define __NR_getrandom systemd_NR_getrandom
362 #ifndef __IGNORE_memfd_create
363 # if defined(__aarch64__)
364 # define systemd_NR_memfd_create 279
365 # elif defined(__alpha__)
366 # define systemd_NR_memfd_create 512
367 # elif defined(__arc__) || defined(__tilegx__)
368 # define systemd_NR_memfd_create 279
369 # elif defined(__arm__)
370 # define systemd_NR_memfd_create 385
371 # elif defined(__i386__)
372 # define systemd_NR_memfd_create 356
373 # elif defined(__ia64__)
374 # define systemd_NR_memfd_create 1340
375 # elif defined(__m68k__)
376 # define systemd_NR_memfd_create 353
377 # elif defined(_MIPS_SIM)
378 # if _MIPS_SIM == _MIPS_SIM_ABI32
379 # define systemd_NR_memfd_create 4354
380 # elif _MIPS_SIM == _MIPS_SIM_NABI32
381 # define systemd_NR_memfd_create 6318
382 # elif _MIPS_SIM == _MIPS_SIM_ABI64
383 # define systemd_NR_memfd_create 5314
385 # error "Unknown MIPS ABI"
387 # elif defined(__powerpc__)
388 # define systemd_NR_memfd_create 360
389 # elif defined(__riscv)
390 # if __riscv_xlen == 32
391 # define systemd_NR_memfd_create 279
392 # elif __riscv_xlen == 64
393 # define systemd_NR_memfd_create 279
395 # error "Unknown RISC-V ABI"
397 # elif defined(__s390__)
398 # define systemd_NR_memfd_create 350
399 # elif defined(__sparc__)
400 # define systemd_NR_memfd_create 348
401 # elif defined(__x86_64__)
402 # if defined(__ILP32__)
403 # define systemd_NR_memfd_create (319 | /* __X32_SYSCALL_BIT */ 0x40000000)
405 # define systemd_NR_memfd_create 319
407 # elif !defined(missing_arch_template)
408 # warning "memfd_create() syscall number is unknown for your architecture"
411 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
412 # if defined __NR_memfd_create && __NR_memfd_create >= 0
413 # if defined systemd_NR_memfd_create
414 assert_cc(__NR_memfd_create
== systemd_NR_memfd_create
);
417 # if defined __NR_memfd_create
418 # undef __NR_memfd_create
420 # if defined systemd_NR_memfd_create && systemd_NR_memfd_create >= 0
421 # define __NR_memfd_create systemd_NR_memfd_create
426 #ifndef __IGNORE_mount_setattr
427 # if defined(__aarch64__)
428 # define systemd_NR_mount_setattr 442
429 # elif defined(__alpha__)
430 # define systemd_NR_mount_setattr 552
431 # elif defined(__arc__) || defined(__tilegx__)
432 # define systemd_NR_mount_setattr 442
433 # elif defined(__arm__)
434 # define systemd_NR_mount_setattr 442
435 # elif defined(__i386__)
436 # define systemd_NR_mount_setattr 442
437 # elif defined(__ia64__)
438 # define systemd_NR_mount_setattr 1466
439 # elif defined(__m68k__)
440 # define systemd_NR_mount_setattr 442
441 # elif defined(_MIPS_SIM)
442 # if _MIPS_SIM == _MIPS_SIM_ABI32
443 # define systemd_NR_mount_setattr 4442
444 # elif _MIPS_SIM == _MIPS_SIM_NABI32
445 # define systemd_NR_mount_setattr 6442
446 # elif _MIPS_SIM == _MIPS_SIM_ABI64
447 # define systemd_NR_mount_setattr 5442
449 # error "Unknown MIPS ABI"
451 # elif defined(__powerpc__)
452 # define systemd_NR_mount_setattr 442
453 # elif defined(__riscv)
454 # if __riscv_xlen == 32
455 # define systemd_NR_mount_setattr 442
456 # elif __riscv_xlen == 64
457 # define systemd_NR_mount_setattr 442
459 # error "Unknown RISC-V ABI"
461 # elif defined(__s390__)
462 # define systemd_NR_mount_setattr 442
463 # elif defined(__sparc__)
464 # define systemd_NR_mount_setattr 442
465 # elif defined(__x86_64__)
466 # if defined(__ILP32__)
467 # define systemd_NR_mount_setattr (442 | /* __X32_SYSCALL_BIT */ 0x40000000)
469 # define systemd_NR_mount_setattr 442
471 # elif !defined(missing_arch_template)
472 # warning "mount_setattr() syscall number is unknown for your architecture"
475 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
476 # if defined __NR_mount_setattr && __NR_mount_setattr >= 0
477 # if defined systemd_NR_mount_setattr
478 assert_cc(__NR_mount_setattr
== systemd_NR_mount_setattr
);
481 # if defined __NR_mount_setattr
482 # undef __NR_mount_setattr
484 # if defined systemd_NR_mount_setattr && systemd_NR_mount_setattr >= 0
485 # define __NR_mount_setattr systemd_NR_mount_setattr
490 #ifndef __IGNORE_move_mount
491 # if defined(__aarch64__)
492 # define systemd_NR_move_mount 429
493 # elif defined(__alpha__)
494 # define systemd_NR_move_mount 539
495 # elif defined(__arc__) || defined(__tilegx__)
496 # define systemd_NR_move_mount 429
497 # elif defined(__arm__)
498 # define systemd_NR_move_mount 429
499 # elif defined(__i386__)
500 # define systemd_NR_move_mount 429
501 # elif defined(__ia64__)
502 # define systemd_NR_move_mount 1453
503 # elif defined(__m68k__)
504 # define systemd_NR_move_mount 429
505 # elif defined(_MIPS_SIM)
506 # if _MIPS_SIM == _MIPS_SIM_ABI32
507 # define systemd_NR_move_mount 4429
508 # elif _MIPS_SIM == _MIPS_SIM_NABI32
509 # define systemd_NR_move_mount 6429
510 # elif _MIPS_SIM == _MIPS_SIM_ABI64
511 # define systemd_NR_move_mount 5429
513 # error "Unknown MIPS ABI"
515 # elif defined(__powerpc__)
516 # define systemd_NR_move_mount 429
517 # elif defined(__riscv)
518 # if __riscv_xlen == 32
519 # define systemd_NR_move_mount 429
520 # elif __riscv_xlen == 64
521 # define systemd_NR_move_mount 429
523 # error "Unknown RISC-V ABI"
525 # elif defined(__s390__)
526 # define systemd_NR_move_mount 429
527 # elif defined(__sparc__)
528 # define systemd_NR_move_mount 429
529 # elif defined(__x86_64__)
530 # if defined(__ILP32__)
531 # define systemd_NR_move_mount (429 | /* __X32_SYSCALL_BIT */ 0x40000000)
533 # define systemd_NR_move_mount 429
535 # elif !defined(missing_arch_template)
536 # warning "move_mount() syscall number is unknown for your architecture"
539 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
540 # if defined __NR_move_mount && __NR_move_mount >= 0
541 # if defined systemd_NR_move_mount
542 assert_cc(__NR_move_mount
== systemd_NR_move_mount
);
545 # if defined __NR_move_mount
546 # undef __NR_move_mount
548 # if defined systemd_NR_move_mount && systemd_NR_move_mount >= 0
549 # define __NR_move_mount systemd_NR_move_mount
554 #ifndef __IGNORE_name_to_handle_at
555 # if defined(__aarch64__)
556 # define systemd_NR_name_to_handle_at 264
557 # elif defined(__alpha__)
558 # define systemd_NR_name_to_handle_at 497
559 # elif defined(__arc__) || defined(__tilegx__)
560 # define systemd_NR_name_to_handle_at 264
561 # elif defined(__arm__)
562 # define systemd_NR_name_to_handle_at 370
563 # elif defined(__i386__)
564 # define systemd_NR_name_to_handle_at 341
565 # elif defined(__ia64__)
566 # define systemd_NR_name_to_handle_at 1326
567 # elif defined(__m68k__)
568 # define systemd_NR_name_to_handle_at 340
569 # elif defined(_MIPS_SIM)
570 # if _MIPS_SIM == _MIPS_SIM_ABI32
571 # define systemd_NR_name_to_handle_at 4339
572 # elif _MIPS_SIM == _MIPS_SIM_NABI32
573 # define systemd_NR_name_to_handle_at 6303
574 # elif _MIPS_SIM == _MIPS_SIM_ABI64
575 # define systemd_NR_name_to_handle_at 5298
577 # error "Unknown MIPS ABI"
579 # elif defined(__powerpc__)
580 # define systemd_NR_name_to_handle_at 345
581 # elif defined(__riscv)
582 # if __riscv_xlen == 32
583 # define systemd_NR_name_to_handle_at 264
584 # elif __riscv_xlen == 64
585 # define systemd_NR_name_to_handle_at 264
587 # error "Unknown RISC-V ABI"
589 # elif defined(__s390__)
590 # define systemd_NR_name_to_handle_at 335
591 # elif defined(__sparc__)
592 # define systemd_NR_name_to_handle_at 332
593 # elif defined(__x86_64__)
594 # if defined(__ILP32__)
595 # define systemd_NR_name_to_handle_at (303 | /* __X32_SYSCALL_BIT */ 0x40000000)
597 # define systemd_NR_name_to_handle_at 303
599 # elif !defined(missing_arch_template)
600 # warning "name_to_handle_at() syscall number is unknown for your architecture"
603 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
604 # if defined __NR_name_to_handle_at && __NR_name_to_handle_at >= 0
605 # if defined systemd_NR_name_to_handle_at
606 assert_cc(__NR_name_to_handle_at
== systemd_NR_name_to_handle_at
);
609 # if defined __NR_name_to_handle_at
610 # undef __NR_name_to_handle_at
612 # if defined systemd_NR_name_to_handle_at && systemd_NR_name_to_handle_at >= 0
613 # define __NR_name_to_handle_at systemd_NR_name_to_handle_at
618 #ifndef __IGNORE_open_tree
619 # if defined(__aarch64__)
620 # define systemd_NR_open_tree 428
621 # elif defined(__alpha__)
622 # define systemd_NR_open_tree 538
623 # elif defined(__arc__) || defined(__tilegx__)
624 # define systemd_NR_open_tree 428
625 # elif defined(__arm__)
626 # define systemd_NR_open_tree 428
627 # elif defined(__i386__)
628 # define systemd_NR_open_tree 428
629 # elif defined(__ia64__)
630 # define systemd_NR_open_tree 1452
631 # elif defined(__m68k__)
632 # define systemd_NR_open_tree 428
633 # elif defined(_MIPS_SIM)
634 # if _MIPS_SIM == _MIPS_SIM_ABI32
635 # define systemd_NR_open_tree 4428
636 # elif _MIPS_SIM == _MIPS_SIM_NABI32
637 # define systemd_NR_open_tree 6428
638 # elif _MIPS_SIM == _MIPS_SIM_ABI64
639 # define systemd_NR_open_tree 5428
641 # error "Unknown MIPS ABI"
643 # elif defined(__powerpc__)
644 # define systemd_NR_open_tree 428
645 # elif defined(__riscv)
646 # if __riscv_xlen == 32
647 # define systemd_NR_open_tree 428
648 # elif __riscv_xlen == 64
649 # define systemd_NR_open_tree 428
651 # error "Unknown RISC-V ABI"
653 # elif defined(__s390__)
654 # define systemd_NR_open_tree 428
655 # elif defined(__sparc__)
656 # define systemd_NR_open_tree 428
657 # elif defined(__x86_64__)
658 # if defined(__ILP32__)
659 # define systemd_NR_open_tree (428 | /* __X32_SYSCALL_BIT */ 0x40000000)
661 # define systemd_NR_open_tree 428
663 # elif !defined(missing_arch_template)
664 # warning "open_tree() syscall number is unknown for your architecture"
667 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
668 # if defined __NR_open_tree && __NR_open_tree >= 0
669 # if defined systemd_NR_open_tree
670 assert_cc(__NR_open_tree
== systemd_NR_open_tree
);
673 # if defined __NR_open_tree
674 # undef __NR_open_tree
676 # if defined systemd_NR_open_tree && systemd_NR_open_tree >= 0
677 # define __NR_open_tree systemd_NR_open_tree
682 #ifndef __IGNORE_pidfd_open
683 # if defined(__aarch64__)
684 # define systemd_NR_pidfd_open 434
685 # elif defined(__alpha__)
686 # define systemd_NR_pidfd_open 544
687 # elif defined(__arc__) || defined(__tilegx__)
688 # define systemd_NR_pidfd_open 434
689 # elif defined(__arm__)
690 # define systemd_NR_pidfd_open 434
691 # elif defined(__i386__)
692 # define systemd_NR_pidfd_open 434
693 # elif defined(__ia64__)
694 # define systemd_NR_pidfd_open 1458
695 # elif defined(__m68k__)
696 # define systemd_NR_pidfd_open 434
697 # elif defined(_MIPS_SIM)
698 # if _MIPS_SIM == _MIPS_SIM_ABI32
699 # define systemd_NR_pidfd_open 4434
700 # elif _MIPS_SIM == _MIPS_SIM_NABI32
701 # define systemd_NR_pidfd_open 6434
702 # elif _MIPS_SIM == _MIPS_SIM_ABI64
703 # define systemd_NR_pidfd_open 5434
705 # error "Unknown MIPS ABI"
707 # elif defined(__powerpc__)
708 # define systemd_NR_pidfd_open 434
709 # elif defined(__riscv)
710 # if __riscv_xlen == 32
711 # define systemd_NR_pidfd_open 434
712 # elif __riscv_xlen == 64
713 # define systemd_NR_pidfd_open 434
715 # error "Unknown RISC-V ABI"
717 # elif defined(__s390__)
718 # define systemd_NR_pidfd_open 434
719 # elif defined(__sparc__)
720 # define systemd_NR_pidfd_open 434
721 # elif defined(__x86_64__)
722 # if defined(__ILP32__)
723 # define systemd_NR_pidfd_open (434 | /* __X32_SYSCALL_BIT */ 0x40000000)
725 # define systemd_NR_pidfd_open 434
727 # elif !defined(missing_arch_template)
728 # warning "pidfd_open() syscall number is unknown for your architecture"
731 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
732 # if defined __NR_pidfd_open && __NR_pidfd_open >= 0
733 # if defined systemd_NR_pidfd_open
734 assert_cc(__NR_pidfd_open
== systemd_NR_pidfd_open
);
737 # if defined __NR_pidfd_open
738 # undef __NR_pidfd_open
740 # if defined systemd_NR_pidfd_open && systemd_NR_pidfd_open >= 0
741 # define __NR_pidfd_open systemd_NR_pidfd_open
746 #ifndef __IGNORE_pidfd_send_signal
747 # if defined(__aarch64__)
748 # define systemd_NR_pidfd_send_signal 424
749 # elif defined(__alpha__)
750 # define systemd_NR_pidfd_send_signal 534
751 # elif defined(__arc__) || defined(__tilegx__)
752 # define systemd_NR_pidfd_send_signal 424
753 # elif defined(__arm__)
754 # define systemd_NR_pidfd_send_signal 424
755 # elif defined(__i386__)
756 # define systemd_NR_pidfd_send_signal 424
757 # elif defined(__ia64__)
758 # define systemd_NR_pidfd_send_signal 1448
759 # elif defined(__m68k__)
760 # define systemd_NR_pidfd_send_signal 424
761 # elif defined(_MIPS_SIM)
762 # if _MIPS_SIM == _MIPS_SIM_ABI32
763 # define systemd_NR_pidfd_send_signal 4424
764 # elif _MIPS_SIM == _MIPS_SIM_NABI32
765 # define systemd_NR_pidfd_send_signal 6424
766 # elif _MIPS_SIM == _MIPS_SIM_ABI64
767 # define systemd_NR_pidfd_send_signal 5424
769 # error "Unknown MIPS ABI"
771 # elif defined(__powerpc__)
772 # define systemd_NR_pidfd_send_signal 424
773 # elif defined(__riscv)
774 # if __riscv_xlen == 32
775 # define systemd_NR_pidfd_send_signal 424
776 # elif __riscv_xlen == 64
777 # define systemd_NR_pidfd_send_signal 424
779 # error "Unknown RISC-V ABI"
781 # elif defined(__s390__)
782 # define systemd_NR_pidfd_send_signal 424
783 # elif defined(__sparc__)
784 # define systemd_NR_pidfd_send_signal 424
785 # elif defined(__x86_64__)
786 # if defined(__ILP32__)
787 # define systemd_NR_pidfd_send_signal (424 | /* __X32_SYSCALL_BIT */ 0x40000000)
789 # define systemd_NR_pidfd_send_signal 424
791 # elif !defined(missing_arch_template)
792 # warning "pidfd_send_signal() syscall number is unknown for your architecture"
795 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
796 # if defined __NR_pidfd_send_signal && __NR_pidfd_send_signal >= 0
797 # if defined systemd_NR_pidfd_send_signal
798 assert_cc(__NR_pidfd_send_signal
== systemd_NR_pidfd_send_signal
);
801 # if defined __NR_pidfd_send_signal
802 # undef __NR_pidfd_send_signal
804 # if defined systemd_NR_pidfd_send_signal && systemd_NR_pidfd_send_signal >= 0
805 # define __NR_pidfd_send_signal systemd_NR_pidfd_send_signal
810 #ifndef __IGNORE_pkey_mprotect
811 # if defined(__aarch64__)
812 # define systemd_NR_pkey_mprotect 288
813 # elif defined(__alpha__)
814 # define systemd_NR_pkey_mprotect 524
815 # elif defined(__arc__) || defined(__tilegx__)
816 # define systemd_NR_pkey_mprotect 288
817 # elif defined(__arm__)
818 # define systemd_NR_pkey_mprotect 394
819 # elif defined(__i386__)
820 # define systemd_NR_pkey_mprotect 380
821 # elif defined(__ia64__)
822 # define systemd_NR_pkey_mprotect 1354
823 # elif defined(__m68k__)
824 # define systemd_NR_pkey_mprotect 381
825 # elif defined(_MIPS_SIM)
826 # if _MIPS_SIM == _MIPS_SIM_ABI32
827 # define systemd_NR_pkey_mprotect 4363
828 # elif _MIPS_SIM == _MIPS_SIM_NABI32
829 # define systemd_NR_pkey_mprotect 6327
830 # elif _MIPS_SIM == _MIPS_SIM_ABI64
831 # define systemd_NR_pkey_mprotect 5323
833 # error "Unknown MIPS ABI"
835 # elif defined(__powerpc__)
836 # define systemd_NR_pkey_mprotect 386
837 # elif defined(__riscv)
838 # if __riscv_xlen == 32
839 # define systemd_NR_pkey_mprotect 288
840 # elif __riscv_xlen == 64
841 # define systemd_NR_pkey_mprotect 288
843 # error "Unknown RISC-V ABI"
845 # elif defined(__s390__)
846 # define systemd_NR_pkey_mprotect 384
847 # elif defined(__sparc__)
848 # define systemd_NR_pkey_mprotect 362
849 # elif defined(__x86_64__)
850 # if defined(__ILP32__)
851 # define systemd_NR_pkey_mprotect (329 | /* __X32_SYSCALL_BIT */ 0x40000000)
853 # define systemd_NR_pkey_mprotect 329
855 # elif !defined(missing_arch_template)
856 # warning "pkey_mprotect() syscall number is unknown for your architecture"
859 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
860 # if defined __NR_pkey_mprotect && __NR_pkey_mprotect >= 0
861 # if defined systemd_NR_pkey_mprotect
862 assert_cc(__NR_pkey_mprotect
== systemd_NR_pkey_mprotect
);
865 # if defined __NR_pkey_mprotect
866 # undef __NR_pkey_mprotect
868 # if defined systemd_NR_pkey_mprotect && systemd_NR_pkey_mprotect >= 0
869 # define __NR_pkey_mprotect systemd_NR_pkey_mprotect
874 #ifndef __IGNORE_renameat2
875 # if defined(__aarch64__)
876 # define systemd_NR_renameat2 276
877 # elif defined(__alpha__)
878 # define systemd_NR_renameat2 510
879 # elif defined(__arc__) || defined(__tilegx__)
880 # define systemd_NR_renameat2 276
881 # elif defined(__arm__)
882 # define systemd_NR_renameat2 382
883 # elif defined(__i386__)
884 # define systemd_NR_renameat2 353
885 # elif defined(__ia64__)
886 # define systemd_NR_renameat2 1338
887 # elif defined(__m68k__)
888 # define systemd_NR_renameat2 351
889 # elif defined(_MIPS_SIM)
890 # if _MIPS_SIM == _MIPS_SIM_ABI32
891 # define systemd_NR_renameat2 4351
892 # elif _MIPS_SIM == _MIPS_SIM_NABI32
893 # define systemd_NR_renameat2 6315
894 # elif _MIPS_SIM == _MIPS_SIM_ABI64
895 # define systemd_NR_renameat2 5311
897 # error "Unknown MIPS ABI"
899 # elif defined(__powerpc__)
900 # define systemd_NR_renameat2 357
901 # elif defined(__riscv)
902 # if __riscv_xlen == 32
903 # define systemd_NR_renameat2 276
904 # elif __riscv_xlen == 64
905 # define systemd_NR_renameat2 276
907 # error "Unknown RISC-V ABI"
909 # elif defined(__s390__)
910 # define systemd_NR_renameat2 347
911 # elif defined(__sparc__)
912 # define systemd_NR_renameat2 345
913 # elif defined(__x86_64__)
914 # if defined(__ILP32__)
915 # define systemd_NR_renameat2 (316 | /* __X32_SYSCALL_BIT */ 0x40000000)
917 # define systemd_NR_renameat2 316
919 # elif !defined(missing_arch_template)
920 # warning "renameat2() syscall number is unknown for your architecture"
923 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
924 # if defined __NR_renameat2 && __NR_renameat2 >= 0
925 # if defined systemd_NR_renameat2
926 assert_cc(__NR_renameat2
== systemd_NR_renameat2
);
929 # if defined __NR_renameat2
930 # undef __NR_renameat2
932 # if defined systemd_NR_renameat2 && systemd_NR_renameat2 >= 0
933 # define __NR_renameat2 systemd_NR_renameat2
938 #ifndef __IGNORE_setns
939 # if defined(__aarch64__)
940 # define systemd_NR_setns 268
941 # elif defined(__alpha__)
942 # define systemd_NR_setns 501
943 # elif defined(__arc__) || defined(__tilegx__)
944 # define systemd_NR_setns 268
945 # elif defined(__arm__)
946 # define systemd_NR_setns 375
947 # elif defined(__i386__)
948 # define systemd_NR_setns 346
949 # elif defined(__ia64__)
950 # define systemd_NR_setns 1330
951 # elif defined(__m68k__)
952 # define systemd_NR_setns 344
953 # elif defined(_MIPS_SIM)
954 # if _MIPS_SIM == _MIPS_SIM_ABI32
955 # define systemd_NR_setns 4344
956 # elif _MIPS_SIM == _MIPS_SIM_NABI32
957 # define systemd_NR_setns 6308
958 # elif _MIPS_SIM == _MIPS_SIM_ABI64
959 # define systemd_NR_setns 5303
961 # error "Unknown MIPS ABI"
963 # elif defined(__powerpc__)
964 # define systemd_NR_setns 350
965 # elif defined(__riscv)
966 # if __riscv_xlen == 32
967 # define systemd_NR_setns 268
968 # elif __riscv_xlen == 64
969 # define systemd_NR_setns 268
971 # error "Unknown RISC-V ABI"
973 # elif defined(__s390__)
974 # define systemd_NR_setns 339
975 # elif defined(__sparc__)
976 # define systemd_NR_setns 337
977 # elif defined(__x86_64__)
978 # if defined(__ILP32__)
979 # define systemd_NR_setns (308 | /* __X32_SYSCALL_BIT */ 0x40000000)
981 # define systemd_NR_setns 308
983 # elif !defined(missing_arch_template)
984 # warning "setns() syscall number is unknown for your architecture"
987 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
988 # if defined __NR_setns && __NR_setns >= 0
989 # if defined systemd_NR_setns
990 assert_cc(__NR_setns
== systemd_NR_setns
);
993 # if defined __NR_setns
996 # if defined systemd_NR_setns && systemd_NR_setns >= 0
997 # define __NR_setns systemd_NR_setns
1002 #ifndef __IGNORE_statx
1003 # if defined(__aarch64__)
1004 # define systemd_NR_statx 291
1005 # elif defined(__alpha__)
1006 # define systemd_NR_statx 522
1007 # elif defined(__arc__) || defined(__tilegx__)
1008 # define systemd_NR_statx 291
1009 # elif defined(__arm__)
1010 # define systemd_NR_statx 397
1011 # elif defined(__i386__)
1012 # define systemd_NR_statx 383
1013 # elif defined(__ia64__)
1014 # define systemd_NR_statx 1350
1015 # elif defined(__m68k__)
1016 # define systemd_NR_statx 379
1017 # elif defined(_MIPS_SIM)
1018 # if _MIPS_SIM == _MIPS_SIM_ABI32
1019 # define systemd_NR_statx 4366
1020 # elif _MIPS_SIM == _MIPS_SIM_NABI32
1021 # define systemd_NR_statx 6330
1022 # elif _MIPS_SIM == _MIPS_SIM_ABI64
1023 # define systemd_NR_statx 5326
1025 # error "Unknown MIPS ABI"
1027 # elif defined(__powerpc__)
1028 # define systemd_NR_statx 383
1029 # elif defined(__riscv)
1030 # if __riscv_xlen == 32
1031 # define systemd_NR_statx 291
1032 # elif __riscv_xlen == 64
1033 # define systemd_NR_statx 291
1035 # error "Unknown RISC-V ABI"
1037 # elif defined(__s390__)
1038 # define systemd_NR_statx 379
1039 # elif defined(__sparc__)
1040 # define systemd_NR_statx 360
1041 # elif defined(__x86_64__)
1042 # if defined(__ILP32__)
1043 # define systemd_NR_statx (332 | /* __X32_SYSCALL_BIT */ 0x40000000)
1045 # define systemd_NR_statx 332
1047 # elif !defined(missing_arch_template)
1048 # warning "statx() syscall number is unknown for your architecture"
1051 /* may be an (invalid) negative number due to libseccomp, see PR 13319 */
1052 # if defined __NR_statx && __NR_statx >= 0
1053 # if defined systemd_NR_statx
1054 assert_cc(__NR_statx
== systemd_NR_statx
);
1057 # if defined __NR_statx
1060 # if defined systemd_NR_statx && systemd_NR_statx >= 0
1061 # define __NR_statx systemd_NR_statx