syscall.sh / riscv64 / newfstatat

newfstatat

get file status

sys_newfstatat(int dfd, const char *filename, struct stat *statbuf, int flag)
number79 (0x4f)
abi64
entry pointsys_newfstatat
sinceLinux 4.15
man pagenewfstatat(2)
sourceelixir.bootlin.com

Registers

registervalue
a779, the syscall number
a0int dfd
a1const char *filename
a2struct stat *statbuf
a3int flag
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/newfstatat