All of lore.kernel.org
 help / color / mirror / Atom feed
From: Willy Tarreau <w@1wt.eu>
To: Zhangjin Wu <falcon@tinylab.org>
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
Date: Sat, 15 Jul 2023 13:45:28 +0200	[thread overview]
Message-ID: <20230715114528.GA25953@1wt.eu> (raw)
In-Reply-To: <20230715103941.341262-1-falcon@tinylab.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

  reply	other threads:[~2023-07-15 11:45 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-12  9:15 [PATCH v3 00/11] tools/nolibc: shrink arch support Zhangjin Wu
2023-07-12  9:16 ` [PATCH v3 01/11] tools/nolibc: remove the old sys_stat support Zhangjin Wu
2023-07-15  8:59   ` Willy Tarreau
2023-07-15 10:39     ` Zhangjin Wu
2023-07-15 11:45       ` Willy Tarreau [this message]
2023-07-12  9:17 ` [PATCH v3 02/11] tools/nolibc: add new crt.h with _start_c Zhangjin Wu
2023-07-12 20:39   ` Thomas Weißschuh
2023-07-13  6:12     ` Zhangjin Wu
2023-07-13  6:23       ` Zhangjin Wu
2023-07-13  6:24       ` Thomas Weißschuh
2023-07-13  6:34       ` Willy Tarreau
2023-07-14  5:58         ` Zhangjin Wu
2023-07-14  6:34           ` Thomas Weißschuh
2023-07-14  9:47             ` Zhangjin Wu
2023-07-15  7:24               ` Thomas Weißschuh
2023-07-15  9:23                 ` Zhangjin Wu
2023-07-15  9:57           ` Willy Tarreau
2023-07-12  9:18 ` [PATCH v3 03/11] tools/nolibc: arm: shrink _start " Zhangjin Wu
2023-07-12  9:19 ` [PATCH v3 04/11] tools/nolibc: aarch64: " Zhangjin Wu
2023-07-12  9:20 ` [PATCH v3 05/11] tools/nolibc: i386: " Zhangjin Wu
2023-07-12  9:22 ` [PATCH v3 06/11] tools/nolibc: x86_64: " Zhangjin Wu
2023-07-12  9:23 ` [PATCH v3 07/11] tools/nolibc: mips: " Zhangjin Wu
2023-07-12  9:24 ` [PATCH v3 08/11] tools/nolibc: loongarch: " Zhangjin Wu
2023-07-12  9:25 ` [PATCH v3 09/11] tools/nolibc: riscv: " Zhangjin Wu
2023-07-12  9:26 ` [PATCH v3 10/11] tools/nolibc: s390: " Zhangjin Wu
2023-07-12  9:27 ` [PATCH v3 11/11] tools/nolibc: arch-*.h: add missing space after ',' Zhangjin Wu
2023-07-15 10:01 ` [PATCH v3 00/11] tools/nolibc: shrink arch support Willy Tarreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230715114528.GA25953@1wt.eu \
    --to=w@1wt.eu \
    --cc=arnd@arndb.de \
    --cc=falcon@tinylab.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=thomas@t-8ch.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.