From patchwork Thu Oct 22 21:46:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 40825 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B1A02398747D; Thu, 22 Oct 2020 21:47:00 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 4ADD4384400A for ; Thu, 22 Oct 2020 21:46:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4ADD4384400A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joseph_myers@mentor.com IronPort-SDR: QWLaEA7zCN28MtmJOFOfM/gIcREXH9R0QOGiHRhdAjY4d0uiXCSxFnQf+aypkLUld7FVyy6/4j 6ijB7MLA0YDGDk+CgjYuZVPZdt0U3r9wQ6MGi/hMDA/7Qsmfwu3tACAyH2phgDZrZrgxKlNHco +EF0ns+/DSXe9PoxYx1lfeGhAbuxewqwEGKwkq0DhZeCGwPe2ce9WHbI6mn6CHLsCt9L5IhvlY 9E1U0quQMN1qlOUWiL5uow9bEfeizXORw4m0IVnNkJI6hPDrlvGYxr1uXFB3Fv/oAD1J9Zugt2 lQE= X-IronPort-AV: E=Sophos;i="5.77,404,1596528000"; d="scan'208";a="54379121" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 22 Oct 2020 13:46:56 -0800 IronPort-SDR: JsLbCaT0WgVmT7DcCcOxavJBK8NiyjZgPWWqm6/W2v3iHpvM4nWyInQOLlEGj2YerYUGcIHoA4 vNpbLS/g9a38NxAejglMoBEI1wInJEpe+CnIfQeEQXwxvzTj56sZiXX8mK5bFPaXiorl+1h7Ew 7wctvcFXy6kQHEgAwcV29eR9KkEFhR+kh4y22IG1Whv+JASSytxlifMrXzeob1H0fzJnpdSuCM xXloZO6E22cuWssBN+94X2y6UYLbnngQNaWcoFIf/wBZbiSTymwtB14iDXTVrm2YUQRyx2oCko mZY= Date: Thu, 22 Oct 2020 21:46:50 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Subject: Update syscall lists for Linux 5.9 Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-06.mgc.mentorg.com (139.181.222.6) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3131.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Linux 5.9 has one new syscall, close_range. Update syscall-names.list and regenerate the arch-syscall.h headers with build-many-glibcs.py update-syscalls. Tested with build-many-glibcs.py. diff --git a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h index ebbb5e1..91964b4 100644 --- a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h @@ -19,6 +19,7 @@ #define __NR_clone 220 #define __NR_clone3 435 #define __NR_close 57 +#define __NR_close_range 436 #define __NR_connect 203 #define __NR_copy_file_range 285 #define __NR_delete_module 106 diff --git a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h index f0744f2..5ed2913 100644 --- a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h @@ -24,6 +24,7 @@ #define __NR_clock_settime 419 #define __NR_clone 312 #define __NR_close 6 +#define __NR_close_range 546 #define __NR_connect 98 #define __NR_copy_file_range 519 #define __NR_create_module 306 diff --git a/sysdeps/unix/sysv/linux/arc/arch-syscall.h b/sysdeps/unix/sysv/linux/arc/arch-syscall.h index 591ff88..60aa943 100644 --- a/sysdeps/unix/sysv/linux/arc/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/arc/arch-syscall.h @@ -23,6 +23,7 @@ #define __NR_clone 220 #define __NR_clone3 435 #define __NR_close 57 +#define __NR_close_range 436 #define __NR_connect 203 #define __NR_copy_file_range 285 #define __NR_delete_module 106 diff --git a/sysdeps/unix/sysv/linux/arm/arch-syscall.h b/sysdeps/unix/sysv/linux/arm/arch-syscall.h index 42ea0fd..2a959fb 100644 --- a/sysdeps/unix/sysv/linux/arm/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/arm/arch-syscall.h @@ -35,6 +35,7 @@ #define __NR_clone 120 #define __NR_clone3 435 #define __NR_close 6 +#define __NR_close_range 436 #define __NR_connect 283 #define __NR_copy_file_range 391 #define __NR_creat 8 diff --git a/sysdeps/unix/sysv/linux/csky/arch-syscall.h b/sysdeps/unix/sysv/linux/csky/arch-syscall.h index 64dc411..d0eca62 100644 --- a/sysdeps/unix/sysv/linux/csky/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/csky/arch-syscall.h @@ -25,6 +25,7 @@ #define __NR_clone 220 #define __NR_clone3 435 #define __NR_close 57 +#define __NR_close_range 436 #define __NR_connect 203 #define __NR_copy_file_range 285 #define __NR_delete_module 106 diff --git a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h index 56e3bad..7a63870 100644 --- a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h @@ -32,6 +32,7 @@ #define __NR_clone 120 #define __NR_clone3 435 #define __NR_close 6 +#define __NR_close_range 436 #define __NR_connect 31 #define __NR_copy_file_range 346 #define __NR_creat 8 diff --git a/sysdeps/unix/sysv/linux/i386/arch-syscall.h b/sysdeps/unix/sysv/linux/i386/arch-syscall.h index cc554ca..31b3378 100644 --- a/sysdeps/unix/sysv/linux/i386/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/i386/arch-syscall.h @@ -35,6 +35,7 @@ #define __NR_clone 120 #define __NR_clone3 435 #define __NR_close 6 +#define __NR_close_range 436 #define __NR_connect 362 #define __NR_copy_file_range 377 #define __NR_creat 8 diff --git a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h index 50405e4..39d115d 100644 --- a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h @@ -25,6 +25,7 @@ #define __NR_clone 1128 #define __NR_clone2 1213 #define __NR_close 1029 +#define __NR_close_range 1460 #define __NR_connect 1192 #define __NR_copy_file_range 1347 #define __NR_creat 1030 diff --git a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h index 49ceaa8..c5536d2 100644 --- a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h @@ -35,6 +35,7 @@ #define __NR_clone 120 #define __NR_clone3 435 #define __NR_close 6 +#define __NR_close_range 436 #define __NR_connect 359 #define __NR_copy_file_range 376 #define __NR_creat 8 diff --git a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h index 2bc15c6..f684836 100644 --- a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h @@ -35,6 +35,7 @@ #define __NR_clone 120 #define __NR_clone3 435 #define __NR_close 6 +#define __NR_close_range 436 #define __NR_connect 350 #define __NR_copy_file_range 392 #define __NR_creat 8 diff --git a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h index 57e0fe0..c2baedf 100644 --- a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h @@ -36,6 +36,7 @@ #define __NR_clone 4120 #define __NR_clone3 4435 #define __NR_close 4006 +#define __NR_close_range 4436 #define __NR_connect 4170 #define __NR_copy_file_range 4360 #define __NR_creat 4008 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 2023297..48621c1 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h @@ -33,6 +33,7 @@ #define __NR_clone 6055 #define __NR_clone3 6435 #define __NR_close 6003 +#define __NR_close_range 6436 #define __NR_connect 6041 #define __NR_copy_file_range 6324 #define __NR_creat 6083 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 8e1dd0c..8455cc6 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h @@ -28,6 +28,7 @@ #define __NR_clone 5055 #define __NR_clone3 5435 #define __NR_close 5003 +#define __NR_close_range 5436 #define __NR_connect 5041 #define __NR_copy_file_range 5320 #define __NR_creat 5083 diff --git a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h index d107c5e..3818418 100644 --- a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h @@ -24,6 +24,7 @@ #define __NR_clock_settime64 404 #define __NR_clone 220 #define __NR_close 57 +#define __NR_close_range 436 #define __NR_connect 203 #define __NR_copy_file_range 285 #define __NR_delete_module 106 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h index 2ef6c88..6922d78 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h @@ -34,6 +34,7 @@ #define __NR_clone 120 #define __NR_clone3 435 #define __NR_close 6 +#define __NR_close_range 436 #define __NR_connect 328 #define __NR_copy_file_range 379 #define __NR_creat 8 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h index 130e235..72779ef 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h @@ -29,6 +29,7 @@ #define __NR_clone 120 #define __NR_clone3 435 #define __NR_close 6 +#define __NR_close_range 436 #define __NR_connect 328 #define __NR_copy_file_range 379 #define __NR_creat 8 diff --git a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h index c397bf3..3ad0b98 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h @@ -17,6 +17,7 @@ #define __NR_clock_settime64 404 #define __NR_clone 220 #define __NR_close 57 +#define __NR_close_range 436 #define __NR_connect 203 #define __NR_copy_file_range 285 #define __NR_delete_module 106 diff --git a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h index 385722c..cd13dd1 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h @@ -19,6 +19,7 @@ #define __NR_clone 220 #define __NR_clone3 435 #define __NR_close 57 +#define __NR_close_range 436 #define __NR_connect 203 #define __NR_copy_file_range 285 #define __NR_delete_module 106 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 18a8ed1..a4bdf3c 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h @@ -33,6 +33,7 @@ #define __NR_clone 120 #define __NR_clone3 435 #define __NR_close 6 +#define __NR_close_range 436 #define __NR_connect 362 #define __NR_copy_file_range 375 #define __NR_creat 8 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 d59248e..3cbbc9c 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h @@ -25,6 +25,7 @@ #define __NR_clone 120 #define __NR_clone3 435 #define __NR_close 6 +#define __NR_close_range 436 #define __NR_connect 362 #define __NR_copy_file_range 375 #define __NR_creat 8 diff --git a/sysdeps/unix/sysv/linux/sh/arch-syscall.h b/sysdeps/unix/sysv/linux/sh/arch-syscall.h index e69906c..3fe779b 100644 --- a/sysdeps/unix/sysv/linux/sh/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sh/arch-syscall.h @@ -33,6 +33,7 @@ #define __NR_clock_settime64 404 #define __NR_clone 120 #define __NR_close 6 +#define __NR_close_range 436 #define __NR_connect 342 #define __NR_copy_file_range 380 #define __NR_creat 8 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h index ee186fa..3bd20e1 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h @@ -33,6 +33,7 @@ #define __NR_clock_settime64 404 #define __NR_clone 217 #define __NR_close 6 +#define __NR_close_range 436 #define __NR_connect 98 #define __NR_copy_file_range 357 #define __NR_creat 8 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h index 7ce4150..41bb83f 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h @@ -27,6 +27,7 @@ #define __NR_clock_settime 256 #define __NR_clone 217 #define __NR_close 6 +#define __NR_close_range 436 #define __NR_connect 98 #define __NR_copy_file_range 357 #define __NR_creat 8 diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list index a462318..2d42aaf 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.8. -kernel 5.8 +# The list of system calls is current as of Linux 5.9. +kernel 5.9 FAST_atomic_update FAST_cmpxchg @@ -79,6 +79,7 @@ clone clone2 clone3 close +close_range cmpxchg_badaddr connect copy_file_range 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 8dc0062..ec5863e 100644 --- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h @@ -26,6 +26,7 @@ #define __NR_clone 56 #define __NR_clone3 435 #define __NR_close 3 +#define __NR_close_range 436 #define __NR_connect 42 #define __NR_copy_file_range 326 #define __NR_creat 85 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 7b64b1f..b1f45a4 100644 --- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h @@ -25,6 +25,7 @@ #define __NR_clone 1073741880 #define __NR_clone3 1073742259 #define __NR_close 1073741827 +#define __NR_close_range 1073742260 #define __NR_connect 1073741866 #define __NR_copy_file_range 1073742150 #define __NR_creat 1073741909