[PATCH 6.1 137/183] tools/nolibc: fix the O_* fcntl/open macro definitions for riscv