93dc2d
commit 705f1e4606aa78f4e861b4e3346725bf5f083a56
93dc2d
Author: Joseph Myers <joseph@codesourcery.com>
93dc2d
Date:   Thu Jan 13 22:18:13 2022 +0000
93dc2d
93dc2d
    Update syscall lists for Linux 5.16
93dc2d
    
93dc2d
    Linux 5.16 has one new syscall, futex_waitv.  Update
93dc2d
    syscall-names.list and regenerate the arch-syscall.h headers with
93dc2d
    build-many-glibcs.py update-syscalls.
93dc2d
    
93dc2d
    Tested with build-many-glibcs.py.
93dc2d
    
93dc2d
    (cherry picked from commit 4997a533ae4b51ef66a6b68862b7578a7acb82df)
93dc2d
93dc2d
diff --git a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h
93dc2d
index 74a809561a45edc4..9905ebedf298954c 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h
93dc2d
@@ -62,6 +62,7 @@
93dc2d
 #define __NR_fsync 82
93dc2d
 #define __NR_ftruncate 46
93dc2d
 #define __NR_futex 98
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_get_mempolicy 236
93dc2d
 #define __NR_get_robust_list 100
93dc2d
 #define __NR_getcpu 168
93dc2d
diff --git a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h
93dc2d
index 6fc0a23504c3b53d..ee8085be69958b25 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h
93dc2d
@@ -78,6 +78,7 @@
93dc2d
 #define __NR_fsync 95
93dc2d
 #define __NR_ftruncate 130
93dc2d
 #define __NR_futex 394
93dc2d
+#define __NR_futex_waitv 559
93dc2d
 #define __NR_futimesat 454
93dc2d
 #define __NR_get_kernel_syms 309
93dc2d
 #define __NR_get_mempolicy 430
93dc2d
diff --git a/sysdeps/unix/sysv/linux/arc/arch-syscall.h b/sysdeps/unix/sysv/linux/arc/arch-syscall.h
93dc2d
index 0c66762bf868a992..1b626d97705d545a 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/arc/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/arc/arch-syscall.h
93dc2d
@@ -65,6 +65,7 @@
93dc2d
 #define __NR_fsync 82
93dc2d
 #define __NR_ftruncate64 46
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_get_mempolicy 236
93dc2d
 #define __NR_get_robust_list 100
93dc2d
 #define __NR_getcpu 168
93dc2d
diff --git a/sysdeps/unix/sysv/linux/arm/arch-syscall.h b/sysdeps/unix/sysv/linux/arm/arch-syscall.h
93dc2d
index c41a864c6d530eb0..96ef8db9368e7de4 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/arm/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/arm/arch-syscall.h
93dc2d
@@ -90,6 +90,7 @@
93dc2d
 #define __NR_ftruncate64 194
93dc2d
 #define __NR_futex 240
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 326
93dc2d
 #define __NR_get_mempolicy 320
93dc2d
 #define __NR_get_robust_list 339
93dc2d
diff --git a/sysdeps/unix/sysv/linux/csky/arch-syscall.h b/sysdeps/unix/sysv/linux/csky/arch-syscall.h
93dc2d
index 863ffa3e0cd34d3e..96910154ed6a5c1b 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/csky/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/csky/arch-syscall.h
93dc2d
@@ -70,6 +70,7 @@
93dc2d
 #define __NR_ftruncate64 46
93dc2d
 #define __NR_futex 98
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_get_mempolicy 236
93dc2d
 #define __NR_get_robust_list 100
93dc2d
 #define __NR_getcpu 168
93dc2d
diff --git a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h
93dc2d
index 6cf27cd17c1ad0c0..36675fd48e6f50c5 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h
93dc2d
@@ -87,6 +87,7 @@
93dc2d
 #define __NR_ftruncate64 200
93dc2d
 #define __NR_futex 210
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 279
93dc2d
 #define __NR_get_mempolicy 261
93dc2d
 #define __NR_get_robust_list 290
93dc2d
diff --git a/sysdeps/unix/sysv/linux/i386/arch-syscall.h b/sysdeps/unix/sysv/linux/i386/arch-syscall.h
93dc2d
index 2512508b7daa8ed2..c86ccbda4681066c 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/i386/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/i386/arch-syscall.h
93dc2d
@@ -94,6 +94,7 @@
93dc2d
 #define __NR_ftruncate64 194
93dc2d
 #define __NR_futex 240
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 299
93dc2d
 #define __NR_get_kernel_syms 130
93dc2d
 #define __NR_get_mempolicy 275
93dc2d
diff --git a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h
93dc2d
index 4a0c737369217367..d898bce404955ef0 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h
93dc2d
@@ -74,6 +74,7 @@
93dc2d
 #define __NR_fsync 1051
93dc2d
 #define __NR_ftruncate 1098
93dc2d
 #define __NR_futex 1230
93dc2d
+#define __NR_futex_waitv 1473
93dc2d
 #define __NR_futimesat 1285
93dc2d
 #define __NR_get_mempolicy 1260
93dc2d
 #define __NR_get_robust_list 1299
93dc2d
diff --git a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h
93dc2d
index e310eb5075fb22d8..fe721b809076abeb 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h
93dc2d
@@ -93,6 +93,7 @@
93dc2d
 #define __NR_ftruncate64 194
93dc2d
 #define __NR_futex 235
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 292
93dc2d
 #define __NR_get_kernel_syms 130
93dc2d
 #define __NR_get_mempolicy 269
93dc2d
diff --git a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h
93dc2d
index b4ecad010c2a6abf..6e10c3661db96a1e 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h
93dc2d
@@ -94,6 +94,7 @@
93dc2d
 #define __NR_ftruncate64 194
93dc2d
 #define __NR_futex 240
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 299
93dc2d
 #define __NR_get_kernel_syms 130
93dc2d
 #define __NR_get_mempolicy 275
93dc2d
diff --git a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h
93dc2d
index 7e3d138ba969c57b..26a6d594a2222f15 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h
93dc2d
@@ -93,6 +93,7 @@
93dc2d
 #define __NR_ftruncate64 4212
93dc2d
 #define __NR_futex 4238
93dc2d
 #define __NR_futex_time64 4422
93dc2d
+#define __NR_futex_waitv 4449
93dc2d
 #define __NR_futimesat 4292
93dc2d
 #define __NR_get_kernel_syms 4130
93dc2d
 #define __NR_get_mempolicy 4269
93dc2d
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h
93dc2d
index 7e9e232e5256bc89..83e0d49c5e3ca1bc 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h
93dc2d
@@ -86,6 +86,7 @@
93dc2d
 #define __NR_ftruncate 6075
93dc2d
 #define __NR_futex 6194
93dc2d
 #define __NR_futex_time64 6422
93dc2d
+#define __NR_futex_waitv 6449
93dc2d
 #define __NR_futimesat 6255
93dc2d
 #define __NR_get_kernel_syms 6170
93dc2d
 #define __NR_get_mempolicy 6232
93dc2d
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h
93dc2d
index f9e7ef72b0aa1749..d6747c542f63202b 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h
93dc2d
@@ -78,6 +78,7 @@
93dc2d
 #define __NR_fsync 5072
93dc2d
 #define __NR_ftruncate 5075
93dc2d
 #define __NR_futex 5194
93dc2d
+#define __NR_futex_waitv 5449
93dc2d
 #define __NR_futimesat 5251
93dc2d
 #define __NR_get_kernel_syms 5170
93dc2d
 #define __NR_get_mempolicy 5228
93dc2d
diff --git a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
93dc2d
index afd73fc1daca1fb4..4ee209bc4475ea7d 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
93dc2d
@@ -69,6 +69,7 @@
93dc2d
 #define __NR_ftruncate64 46
93dc2d
 #define __NR_futex 98
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_get_mempolicy 236
93dc2d
 #define __NR_get_robust_list 100
93dc2d
 #define __NR_getcpu 168
93dc2d
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h
93dc2d
index 0ac2992028eda27e..497299fbc47a708c 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h
93dc2d
@@ -92,6 +92,7 @@
93dc2d
 #define __NR_ftruncate64 194
93dc2d
 #define __NR_futex 221
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 290
93dc2d
 #define __NR_get_kernel_syms 130
93dc2d
 #define __NR_get_mempolicy 260
93dc2d
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h
93dc2d
index c890bc644e14fe06..e840279f171b10b9 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h
93dc2d
@@ -81,6 +81,7 @@
93dc2d
 #define __NR_ftime 35
93dc2d
 #define __NR_ftruncate 93
93dc2d
 #define __NR_futex 221
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 290
93dc2d
 #define __NR_get_kernel_syms 130
93dc2d
 #define __NR_get_mempolicy 260
93dc2d
diff --git a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h
93dc2d
index cd336d755a42598a..73ef74c005e5a2bb 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h
93dc2d
@@ -60,6 +60,7 @@
93dc2d
 #define __NR_fsync 82
93dc2d
 #define __NR_ftruncate64 46
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_get_mempolicy 236
93dc2d
 #define __NR_get_robust_list 100
93dc2d
 #define __NR_getcpu 168
93dc2d
diff --git a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h
93dc2d
index 8edd21620bb4ef64..919a79ee91177459 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h
93dc2d
@@ -62,6 +62,7 @@
93dc2d
 #define __NR_fsync 82
93dc2d
 #define __NR_ftruncate 46
93dc2d
 #define __NR_futex 98
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_get_mempolicy 236
93dc2d
 #define __NR_get_robust_list 100
93dc2d
 #define __NR_getcpu 168
93dc2d
diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h b/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h
93dc2d
index 1a4873f505765617..005c0ada7aab85a1 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h
93dc2d
@@ -91,6 +91,7 @@
93dc2d
 #define __NR_ftruncate64 194
93dc2d
 #define __NR_futex 238
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 292
93dc2d
 #define __NR_get_kernel_syms 130
93dc2d
 #define __NR_get_mempolicy 269
93dc2d
diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h b/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h
93dc2d
index 2af4607c1d36d173..9131fddcc16116e4 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h
93dc2d
@@ -76,6 +76,7 @@
93dc2d
 #define __NR_fsync 118
93dc2d
 #define __NR_ftruncate 93
93dc2d
 #define __NR_futex 238
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 292
93dc2d
 #define __NR_get_kernel_syms 130
93dc2d
 #define __NR_get_mempolicy 269
93dc2d
diff --git a/sysdeps/unix/sysv/linux/sh/arch-syscall.h b/sysdeps/unix/sysv/linux/sh/arch-syscall.h
93dc2d
index 7b422ce268ba14d0..d8fb041568ecb4da 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/sh/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/sh/arch-syscall.h
93dc2d
@@ -90,6 +90,7 @@
93dc2d
 #define __NR_ftruncate64 194
93dc2d
 #define __NR_futex 240
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 299
93dc2d
 #define __NR_get_mempolicy 275
93dc2d
 #define __NR_get_robust_list 312
93dc2d
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h
93dc2d
index 77c3cc64f95ea7f3..2bc014fe6a1a1f4a 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h
93dc2d
@@ -92,6 +92,7 @@
93dc2d
 #define __NR_ftruncate64 84
93dc2d
 #define __NR_futex 142
93dc2d
 #define __NR_futex_time64 422
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 288
93dc2d
 #define __NR_get_kernel_syms 223
93dc2d
 #define __NR_get_mempolicy 304
93dc2d
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h
93dc2d
index 7ad50bc4ad6cef04..76dbbe595ffe868f 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h
93dc2d
@@ -82,6 +82,7 @@
93dc2d
 #define __NR_fsync 95
93dc2d
 #define __NR_ftruncate 130
93dc2d
 #define __NR_futex 142
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 288
93dc2d
 #define __NR_get_kernel_syms 223
93dc2d
 #define __NR_get_mempolicy 304
93dc2d
diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list
93dc2d
index 1a74d090b72f4d61..0bc2af37dfa1eeb5 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/syscall-names.list
93dc2d
+++ b/sysdeps/unix/sysv/linux/syscall-names.list
93dc2d
@@ -21,8 +21,8 @@
93dc2d
 # This file can list all potential system calls.  The names are only
93dc2d
 # used if the installed kernel headers also provide them.
93dc2d
 
93dc2d
-# The list of system calls is current as of Linux 5.15.
93dc2d
-kernel 5.15
93dc2d
+# The list of system calls is current as of Linux 5.16.
93dc2d
+kernel 5.16
93dc2d
 
93dc2d
 FAST_atomic_update
93dc2d
 FAST_cmpxchg
93dc2d
@@ -146,6 +146,7 @@ ftruncate
93dc2d
 ftruncate64
93dc2d
 futex
93dc2d
 futex_time64
93dc2d
+futex_waitv
93dc2d
 futimesat
93dc2d
 get_kernel_syms
93dc2d
 get_mempolicy
93dc2d
diff --git a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
93dc2d
index 3ce2a1fcfc1c15f2..28558279b48a1ef4 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
93dc2d
@@ -78,6 +78,7 @@
93dc2d
 #define __NR_fsync 74
93dc2d
 #define __NR_ftruncate 77
93dc2d
 #define __NR_futex 202
93dc2d
+#define __NR_futex_waitv 449
93dc2d
 #define __NR_futimesat 261
93dc2d
 #define __NR_get_kernel_syms 177
93dc2d
 #define __NR_get_mempolicy 239
93dc2d
diff --git a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
93dc2d
index 9e87e89baccc397c..c1ab8ec45e8b8fd3 100644
93dc2d
--- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
93dc2d
+++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
93dc2d
@@ -74,6 +74,7 @@
93dc2d
 #define __NR_fsync 1073741898
93dc2d
 #define __NR_ftruncate 1073741901
93dc2d
 #define __NR_futex 1073742026
93dc2d
+#define __NR_futex_waitv 1073742273
93dc2d
 #define __NR_futimesat 1073742085
93dc2d
 #define __NR_get_mempolicy 1073742063
93dc2d
 #define __NR_get_robust_list 1073742355