tools/nolibc: fix the O_* fcntl/open macro definitions for riscv
authorWilly Tarreau <w@1wt.eu>
Mon, 9 Jan 2023 07:54:42 +0000 (08:54 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 9 Jan 2023 17:36:05 +0000 (09:36 -0800)
commit00b18da4089330196906b9fe075c581c17eb726c
tree714492c58b2620703afee8b4299e11965ad0d5f2
parent1bfbe1f3e96720daf185f03d101f072d69753f88
tools/nolibc: fix the O_* fcntl/open macro definitions for riscv

When RISCV port was imported in 5.2, the O_* macros were taken with
their octal value and written as-is in hex, resulting in the getdents64()
to fail in nolibc-test.

Fixes: 582e84f7b779 ("tool headers nolibc: add RISCV support") #5.2
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/arch-riscv.h