tools/nolibc: Add statx() and make stat() rely on statx() if necessary
authorFeiyang Chen <chenfeiyang@loongson.cn>
Sat, 4 Mar 2023 14:28:44 +0000 (15:28 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 20 Mar 2023 15:45:22 +0000 (08:45 -0700)
commitb551cb7dc347d0d142f4b65b5fa0d052e09e559a
treec744759218713d492fb9541b7d1ea5595ef47b75
parenta438e528b68fe81c10833538bd454e9f59d092a2
tools/nolibc: Add statx() and make stat() rely on statx() if necessary

LoongArch and RISC-V 32-bit only have statx(). ARC, Hexagon, Nios2 and
OpenRISC have statx() and stat64() but not stat() or newstat(). Add
statx() and make stat() rely on statx() if necessary to make them happy.
We may just use statx() for all architectures in the future.

Signed-off-by: Feiyang Chen <chenfeiyang@loongson.cn>
Acked-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/sys.h