Update syscall lists for Linux 5.6

Message ID alpine.DEB.2.21.2004011707520.3007@digraph.polyomino.org.uk
State New
Headers show
Series
  • Update syscall lists for Linux 5.6
Related show

Commit Message

Joseph Myers April 1, 2020, 5:08 p.m.
Linux 5.6 has new openat2 and pidfd_getfd syscalls.  This patch adds
them to syscall-names.list and regenerates the arch-syscall.h files.

Tested with build-many-glibcs.py.


-- 
Joseph S. Myers
joseph@codesourcery.com

Comments

Dmitry V. Levin April 3, 2020, 4:30 p.m. | #1
On Wed, Apr 01, 2020 at 05:08:11PM +0000, Joseph Myers wrote:
> Linux 5.6 has new openat2 and pidfd_getfd syscalls.  This patch adds

> them to syscall-names.list and regenerates the arch-syscall.h files.


LGTM, thanks,


-- 
ldv

Patch

diff --git a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h
index c847194..81767d6 100644
--- a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h
@@ -154,8 +154,10 @@ 
 #define __NR_open_by_handle_at 265
 #define __NR_open_tree 428
 #define __NR_openat 56
+#define __NR_openat2 437
 #define __NR_perf_event_open 241
 #define __NR_personality 92
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe2 59
diff --git a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h
index 5c8f92c..97db195 100644
--- a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h
@@ -188,6 +188,7 @@ 
 #define __NR_open_by_handle_at 498
 #define __NR_open_tree 538
 #define __NR_openat 450
+#define __NR_openat2 547
 #define __NR_osf_adjtime 140
 #define __NR_osf_afs_syscall 258
 #define __NR_osf_alt_plock 181
@@ -303,6 +304,7 @@ 
 #define __NR_pciconfig_write 346
 #define __NR_perf_event_open 493
 #define __NR_personality 324
+#define __NR_pidfd_getfd 548
 #define __NR_pidfd_open 544
 #define __NR_pidfd_send_signal 534
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/arm/arch-syscall.h b/sysdeps/unix/sysv/linux/arm/arch-syscall.h
index c6554a8..d13eeed 100644
--- a/sysdeps/unix/sysv/linux/arm/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/arm/arch-syscall.h
@@ -203,12 +203,14 @@ 
 #define __NR_open_by_handle_at 371
 #define __NR_open_tree 428
 #define __NR_openat 322
+#define __NR_openat2 437
 #define __NR_pause 29
 #define __NR_pciconfig_iobase 271
 #define __NR_pciconfig_read 272
 #define __NR_pciconfig_write 273
 #define __NR_perf_event_open 364
 #define __NR_personality 136
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/csky/arch-syscall.h b/sysdeps/unix/sysv/linux/csky/arch-syscall.h
index 610c008..6273d1b 100644
--- a/sysdeps/unix/sysv/linux/csky/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/csky/arch-syscall.h
@@ -23,6 +23,7 @@ 
 #define __NR_clock_settime 112
 #define __NR_clock_settime64 404
 #define __NR_clone 220
+#define __NR_clone3 435
 #define __NR_close 57
 #define __NR_connect 203
 #define __NR_copy_file_range 285
@@ -59,6 +60,8 @@ 
 #define __NR_fsmount 432
 #define __NR_fsopen 430
 #define __NR_fspick 433
+#define __NR_fstat64 80
+#define __NR_fstatat64 79
 #define __NR_fstatfs64 44
 #define __NR_fsync 82
 #define __NR_ftruncate64 46
@@ -161,8 +164,10 @@ 
 #define __NR_open_by_handle_at 265
 #define __NR_open_tree 428
 #define __NR_openat 56
+#define __NR_openat2 437
 #define __NR_perf_event_open 241
 #define __NR_personality 92
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe2 59
diff --git a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h
index 175f641..80b7278 100644
--- a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h
@@ -193,9 +193,11 @@ 
 #define __NR_open_by_handle_at 326
 #define __NR_open_tree 428
 #define __NR_openat 275
+#define __NR_openat2 437
 #define __NR_pause 29
 #define __NR_perf_event_open 318
 #define __NR_personality 136
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/i386/arch-syscall.h b/sysdeps/unix/sysv/linux/i386/arch-syscall.h
index ece8bf0..6669c1b 100644
--- a/sysdeps/unix/sysv/linux/i386/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/i386/arch-syscall.h
@@ -224,9 +224,11 @@ 
 #define __NR_open_by_handle_at 342
 #define __NR_open_tree 428
 #define __NR_openat 295
+#define __NR_openat2 437
 #define __NR_pause 29
 #define __NR_perf_event_open 336
 #define __NR_personality 136
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h
index eb31b3b..60ec095 100644
--- a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h
@@ -179,11 +179,13 @@ 
 #define __NR_open_by_handle_at 1327
 #define __NR_open_tree 1452
 #define __NR_openat 1281
+#define __NR_openat2 1461
 #define __NR_pciconfig_read 1173
 #define __NR_pciconfig_write 1174
 #define __NR_perf_event_open 1352
 #define __NR_perfmonctl 1175
 #define __NR_personality 1140
+#define __NR_pidfd_getfd 1462
 #define __NR_pidfd_open 1458
 #define __NR_pidfd_send_signal 1448
 #define __NR_pipe 1058
diff --git a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h
index 5cbfdbf..2edecb1 100644
--- a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h
@@ -33,6 +33,7 @@ 
 #define __NR_clock_settime 259
 #define __NR_clock_settime64 404
 #define __NR_clone 120
+#define __NR_clone3 435
 #define __NR_close 6
 #define __NR_connect 359
 #define __NR_copy_file_range 376
@@ -213,9 +214,11 @@ 
 #define __NR_open_by_handle_at 341
 #define __NR_open_tree 428
 #define __NR_openat 288
+#define __NR_openat2 437
 #define __NR_pause 29
 #define __NR_perf_event_open 332
 #define __NR_personality 136
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h
index e7ab554..d72845c 100644
--- a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h
@@ -224,9 +224,11 @@ 
 #define __NR_open_by_handle_at 372
 #define __NR_open_tree 428
 #define __NR_openat 295
+#define __NR_openat2 437
 #define __NR_pause 29
 #define __NR_perf_event_open 366
 #define __NR_personality 136
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h
index 53c6621..29217a1 100644
--- a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h
@@ -209,9 +209,11 @@ 
 #define __NR_open_by_handle_at 4340
 #define __NR_open_tree 4428
 #define __NR_openat 4288
+#define __NR_openat2 4437
 #define __NR_pause 4029
 #define __NR_perf_event_open 4333
 #define __NR_personality 4136
+#define __NR_pidfd_getfd 4438
 #define __NR_pidfd_open 4434
 #define __NR_pidfd_send_signal 4424
 #define __NR_pipe 4042
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h
index 4faaabb..26996a6 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h
@@ -192,9 +192,11 @@ 
 #define __NR_open_by_handle_at 6304
 #define __NR_open_tree 6428
 #define __NR_openat 6251
+#define __NR_openat2 6437
 #define __NR_pause 6033
 #define __NR_perf_event_open 6296
 #define __NR_personality 6132
+#define __NR_pidfd_getfd 6438
 #define __NR_pidfd_open 6434
 #define __NR_pidfd_send_signal 6424
 #define __NR_pipe 6021
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h
index ba20185..f046a77 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h
@@ -181,9 +181,11 @@ 
 #define __NR_open_by_handle_at 5299
 #define __NR_open_tree 5428
 #define __NR_openat 5247
+#define __NR_openat2 5437
 #define __NR_pause 5033
 #define __NR_perf_event_open 5292
 #define __NR_personality 5132
+#define __NR_pidfd_getfd 5438
 #define __NR_pidfd_open 5434
 #define __NR_pidfd_send_signal 5424
 #define __NR_pipe 5021
diff --git a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
index 6c2ae7f..cf85d11 100644
--- a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
@@ -163,8 +163,10 @@ 
 #define __NR_open_by_handle_at 265
 #define __NR_open_tree 428
 #define __NR_openat 56
+#define __NR_openat2 437
 #define __NR_perf_event_open 241
 #define __NR_personality 92
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe2 59
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h
index 49f0948..90ff02b 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h
@@ -215,12 +215,14 @@ 
 #define __NR_open_by_handle_at 346
 #define __NR_open_tree 428
 #define __NR_openat 286
+#define __NR_openat2 437
 #define __NR_pause 29
 #define __NR_pciconfig_iobase 200
 #define __NR_pciconfig_read 198
 #define __NR_pciconfig_write 199
 #define __NR_perf_event_open 319
 #define __NR_personality 136
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h
index 2de2374..311a560 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h
@@ -200,12 +200,14 @@ 
 #define __NR_open_by_handle_at 346
 #define __NR_open_tree 428
 #define __NR_openat 286
+#define __NR_openat2 437
 #define __NR_pause 29
 #define __NR_pciconfig_iobase 200
 #define __NR_pciconfig_read 198
 #define __NR_pciconfig_write 199
 #define __NR_perf_event_open 319
 #define __NR_personality 136
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h
index 73eff81..1f90f25 100644
--- a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h
@@ -154,8 +154,10 @@ 
 #define __NR_open_by_handle_at 265
 #define __NR_open_tree 428
 #define __NR_openat 56
+#define __NR_openat2 437
 #define __NR_perf_event_open 241
 #define __NR_personality 92
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe2 59
diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h b/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h
index 1498037..92210b6 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h
@@ -211,9 +211,11 @@ 
 #define __NR_open_by_handle_at 336
 #define __NR_open_tree 428
 #define __NR_openat 288
+#define __NR_openat2 437
 #define __NR_pause 29
 #define __NR_perf_event_open 331
 #define __NR_personality 136
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h b/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h
index 96de394..af031e9 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h
@@ -183,9 +183,11 @@ 
 #define __NR_open_by_handle_at 336
 #define __NR_open_tree 428
 #define __NR_openat 288
+#define __NR_openat2 437
 #define __NR_pause 29
 #define __NR_perf_event_open 331
 #define __NR_personality 136
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/sh/arch-syscall.h b/sysdeps/unix/sysv/linux/sh/arch-syscall.h
index f1e5b8f..e554ad2 100644
--- a/sysdeps/unix/sysv/linux/sh/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/sh/arch-syscall.h
@@ -208,9 +208,11 @@ 
 #define __NR_open_by_handle_at 360
 #define __NR_open_tree 428
 #define __NR_openat 295
+#define __NR_openat2 437
 #define __NR_pause 29
 #define __NR_perf_event_open 336
 #define __NR_personality 136
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h
index 0c31011..cb93f94 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h
@@ -210,12 +210,14 @@ 
 #define __NR_open_by_handle_at 333
 #define __NR_open_tree 428
 #define __NR_openat 284
+#define __NR_openat2 437
 #define __NR_pause 29
 #define __NR_pciconfig_read 148
 #define __NR_pciconfig_write 149
 #define __NR_perf_event_open 327
 #define __NR_perfctr 18
 #define __NR_personality 191
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h
index 71df71f..6f108ff 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h
@@ -191,12 +191,14 @@ 
 #define __NR_open_by_handle_at 333
 #define __NR_open_tree 428
 #define __NR_openat 284
+#define __NR_openat2 437
 #define __NR_pause 29
 #define __NR_pciconfig_read 148
 #define __NR_pciconfig_write 149
 #define __NR_perf_event_open 327
 #define __NR_perfctr 18
 #define __NR_personality 191
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 42
diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list
index 3d89814..314a653 100644
--- a/sysdeps/unix/sysv/linux/syscall-names.list
+++ b/sysdeps/unix/sysv/linux/syscall-names.list
@@ -21,8 +21,8 @@ 
 # This file can list all potential system calls.  The names are only
 # used if the installed kernel headers also provide them.
 
-# The list of system calls is current as of Linux 5.5.
-kernel 5.5
+# The list of system calls is current as of Linux 5.6.
+kernel 5.6
 
 FAST_atomic_update
 FAST_cmpxchg
@@ -292,6 +292,7 @@  open
 open_by_handle_at
 open_tree
 openat
+openat2
 osf_adjtime
 osf_afs_syscall
 osf_alt_plock
@@ -410,6 +411,7 @@  perf_event_open
 perfctr
 perfmonctl
 personality
+pidfd_getfd
 pidfd_open
 pidfd_send_signal
 pipe
diff --git a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
index 80e7160..d22e5b2 100644
--- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
@@ -186,9 +186,11 @@ 
 #define __NR_open_by_handle_at 304
 #define __NR_open_tree 428
 #define __NR_openat 257
+#define __NR_openat2 437
 #define __NR_pause 34
 #define __NR_perf_event_open 298
 #define __NR_personality 135
+#define __NR_pidfd_getfd 438
 #define __NR_pidfd_open 434
 #define __NR_pidfd_send_signal 424
 #define __NR_pipe 22
diff --git a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
index b26d0de..9a6f4f1 100644
--- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
@@ -179,9 +179,11 @@ 
 #define __NR_open_by_handle_at 1073742128
 #define __NR_open_tree 1073742252
 #define __NR_openat 1073742081
+#define __NR_openat2 1073742261
 #define __NR_pause 1073741858
 #define __NR_perf_event_open 1073742122
 #define __NR_personality 1073741959
+#define __NR_pidfd_getfd 1073742262
 #define __NR_pidfd_open 1073742258
 #define __NR_pidfd_send_signal 1073742248
 #define __NR_pipe 1073741846