Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp3609234rwp; Sat, 15 Jul 2023 06:14:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlHT7FxmM/DEoZQUWCCuN8ELTgiC1FAhXK1neOHpBl048xZgqtRsO0Rlj5gKqsGVs6u3Dq8w X-Received: by 2002:a17:906:5e51:b0:973:ca9c:3e43 with SMTP id b17-20020a1709065e5100b00973ca9c3e43mr6543138eju.45.1689426896985; Sat, 15 Jul 2023 06:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689426896; cv=none; d=google.com; s=arc-20160816; b=AmzliAQwYSLT9fYTmbELOWbjSnifjmmE8EGfj2DY27LaumlbbmzESjlqYu836svw+F 3dtSysFldA1vTp3+Odbo0Cb7L/otjunx55yABKucMvkptcq8UJuV5PvsrH8lW+c3NMst N3NvP2/zy/AjnuQrOy5Rr8q43/FhOqwOpvqgI7FVw8ZKyPCGmx1A00FFQvwrH26PQPl+ tdnwaEguR/Fb0xE6G8x/tUPgZZCYy16nEkn+BMYO9qPEjGuUiU768VhPRgI5REgxToJW VnjhnJb9aoLo67cXkZlBCR4rjj1CsUvFBeK5hUTj0XYr4BStswKvXnLX0iENk0rLfcHy zH5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=AIlkk/ySrMMqJkGsS0SeUBxBuWYNp2hkhUToXaIxcpc=; fh=tcl19X2u8PtEELiqC9wF/fi8DNcGozPCtYGeW6FgzSg=; b=R8uhKgzJqT+c8/j5CBatWpHdNnniNT4usefb3Mr5GlCXVBbTdYyEbtg94aGQ68AzL5 7xQPKejJhrbYfEmbrl90U7P4zPwKuL/HyrtWuvTEbVLeVOKAblNC2NNtpGX3vpFNtwCo GAj7C1JtLef5H4QbOJNziN2u22pe7ZjI0WnsP62oU04l2iIXokSzACJmgNImAE07shwl Rl0VIN5UYjOr1FGcfmB7SurEMyqXBUSKZ/UyHdhPj/tBA5YeHPR6Ve5wbONdd9UDNzPo 8B5/zjdr6+VwJTZSARVybpw/fZ/lzg4SqDZs4mCbpLqG8NnJvaleUX5HQXbI8j9ok9Jm nZXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a17090624ce00b00992ae4db3c9si10219531ejb.15.2023.07.15.06.14.26; Sat, 15 Jul 2023 06:14:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229761AbjGOLpw (ORCPT + 99 others); Sat, 15 Jul 2023 07:45:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbjGOLpv (ORCPT ); Sat, 15 Jul 2023 07:45:51 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6B9B135B7; Sat, 15 Jul 2023 04:45:48 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 36FBjSYx025959; Sat, 15 Jul 2023 13:45:28 +0200 Date: Sat, 15 Jul 2023 13:45:28 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: Re: [PATCH v3 01/11] tools/nolibc: remove the old sys_stat support Message-ID: <20230715114528.GA25953@1wt.eu> References: <20230715085942.GB24086@1wt.eu> <20230715103941.341262-1-falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230715103941.341262-1-falcon@tinylab.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 15, 2023 at 06:39:41PM +0800, Zhangjin Wu wrote: > Just read the statx manpage again: > > https://man7.org/linux/man-pages/man2/statx.2.html > > It shows something about "Linux 4.11, glibc 2.28. > > And 'git grep' shows it is true: > > $ git grep -r statx v4.11 arch/ include/uapi/asm-generic/unistd.h | grep -E "aarch64|arm|mips|s390|x86|:include/uapi" > v4.11:arch/arm/tools/syscall.tbl:397 common statx sys_statx > v4.11:arch/arm64/include/asm/unistd32.h:#define __NR_statx 397 > v4.11:arch/arm64/include/asm/unistd32.h:__SYSCALL(__NR_statx, sys_statx) > v4.11:arch/mips/include/uapi/asm/unistd.h:#define __NR_statx (__NR_Linux + 366) > v4.11:arch/mips/include/uapi/asm/unistd.h:#define __NR_statx (__NR_Linux + 326) > v4.11:arch/mips/include/uapi/asm/unistd.h:#define __NR_statx (__NR_Linux + 330) > v4.11:arch/mips/kernel/scall32-o32.S: PTR sys_statx > v4.11:arch/mips/kernel/scall64-64.S: PTR sys_statx > v4.11:arch/mips/kernel/scall64-n32.S: PTR sys_statx /* 6330 */ > v4.11:arch/mips/kernel/scall64-o32.S: PTR sys_statx > v4.11:arch/s390/include/uapi/asm/unistd.h:#define __NR_statx 379 > v4.11:arch/s390/kernel/compat_wrapper.c:COMPAT_SYSCALL_WRAP5(statx, int, dfd, const char __user *, path, unsigned, flags, unsigned, mask, struct statx __user *, buffer); > v4.11:arch/s390/kernel/syscalls.S:SYSCALL(sys_statx,compat_sys_statx) > v4.11:arch/x86/entry/syscalls/syscall_32.tbl:383 i386 statx sys_statx > v4.11:arch/x86/entry/syscalls/syscall_64.tbl:332 common statx sys_statx > v4.11:include/uapi/asm-generic/unistd.h:#define __NR_statx 291 > v4.11:include/uapi/asm-generic/unistd.h:__SYSCALL(__NR_statx, sys_statx) > > both riscv and loongarch use the generic unistd.h, so, all of our > supported archs should work as-is. riscv itself is added from v4.15, > loongarch itself is added from v5.19. So that's perfect, thank you! Willy