syscall.sh / x32 / fstat

fstat

get file status

sys_newfstat(unsigned int fd, struct stat *statbuf)
number1073741829 (0x40000005)
abicommon
entry pointsys_newfstat
sinceLinux 3.4
man pagefstat(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741829, the syscall number
rdiunsigned int fd
rsistruct stat *statbuf
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/fstat