syscall.sh / x86 / oldfstat

oldfstat

get file status

sys_fstat(unsigned int fd, struct __old_kernel_stat *statbuf)
number28 (0x1c)
abii386
entry pointsys_fstat
sinceLinux 3.3
man pageoldfstat(2)
sourceelixir.bootlin.com

Registers

registervalue
eax28, the syscall number
ebxunsigned int fd
ecxstruct __old_kernel_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/oldfstat