mailing list of musl libc
 help / color / mirror / Atom feed
From: Arnd Bergmann <>
Cc: Khem Raj <>, zabolcs Nagy <>
Subject: Re: [musl] [PATCH] riscv: Rename __NR_fstatat __NR_newfstatat
Date: Wed, 19 May 2021 09:54:00 +0200
Message-ID: <> (raw)
In-Reply-To: <>

On Wed, May 19, 2021 at 9:34 AM Khem Raj <> wrote:
> on riscv64 this syscall is called __NR_newfstatat
> this helps the name match kernel UAPI for external
> programs
> Signed-off-by: Khem Raj <>
> Cc: zabolcs Nagy <>

This looks correct to me. Unfortunately the kernel's definitions for the stat
family are inconsistent in a lot of different ways, and the naming between
fstat and newfstatat is just one more instance of this. In theory, the 'new'
macros refer to the kernel's "struct stat", while the non-prefixed ones
refer to the syscalls taking "struct __kernel_old_stat".

Comparing the riscv64 file to the aarch64 version shows that the aarch64
version matches what the kernel defines, no idea why the riscv64 version
is different.


  reply	other threads:[~2021-05-19  7:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-19  7:34 Khem Raj
2021-05-19  7:54 ` Arnd Bergmann [this message]
2021-06-05  5:05 ` [musl] " Khem Raj
2021-06-05  8:47   ` Szabolcs Nagy
2021-06-05 15:47     ` Rich Felker

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:

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

  git send-email \
    --in-reply-to='' \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ \
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:

code repositories for the project(s) associated with this inbox:

AGPL code for this site: git clone