mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
musl: Fix __NR_fstatat syscall name for riscv
(From OE-Core rev: 3bd71e31ea535c5ad480c2d97110ff0b4b290555) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -0,0 +1,32 @@
|
|||||||
|
From 40732d03990632049d5ba63dd736269a81756b16 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Wed, 19 May 2021 00:30:05 -0700
|
||||||
|
Subject: [PATCH] riscv: Rename __NR_fstatat __NR_newfstatat
|
||||||
|
|
||||||
|
on riscv64 this syscall is called __NR_newfstatat
|
||||||
|
this helps the name match kernel UAPI for external
|
||||||
|
programs
|
||||||
|
|
||||||
|
Upstream-Status: Submitted [https://www.openwall.com/lists/musl/2021/05/19/3]
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Cc: zabolcs Nagy <nsz@port70.net>
|
||||||
|
---
|
||||||
|
arch/riscv64/bits/syscall.h.in | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/arch/riscv64/bits/syscall.h.in b/arch/riscv64/bits/syscall.h.in
|
||||||
|
index f9c421d0..39c0d650 100644
|
||||||
|
--- a/arch/riscv64/bits/syscall.h.in
|
||||||
|
+++ b/arch/riscv64/bits/syscall.h.in
|
||||||
|
@@ -76,7 +76,7 @@
|
||||||
|
#define __NR_splice 76
|
||||||
|
#define __NR_tee 77
|
||||||
|
#define __NR_readlinkat 78
|
||||||
|
-#define __NR_fstatat 79
|
||||||
|
+#define __NR_newfstatat 79
|
||||||
|
#define __NR_fstat 80
|
||||||
|
#define __NR_sync 81
|
||||||
|
#define __NR_fsync 82
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
||||||
@@ -15,6 +15,7 @@ PV = "${BASEVER}+git${SRCPV}"
|
|||||||
SRC_URI = "git://git.musl-libc.org/musl \
|
SRC_URI = "git://git.musl-libc.org/musl \
|
||||||
file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \
|
file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \
|
||||||
file://0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch \
|
file://0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch \
|
||||||
|
file://0001-riscv-Rename-__NR_fstatat-__NR_newfstatat.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|||||||
Reference in New Issue
Block a user