syscall.sh / x86 / stat

stat

get file status

sys_newstat(const char *filename, struct stat *statbuf)
number106 (0x6a)
abii386
entry pointsys_newstat
sinceLinux 3.3
man pagestat(2)
sourceelixir.bootlin.com

Registers

registervalue
eax106, the syscall number
ebxconst char *filename
ecxstruct stat *statbuf
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/stat