syscall.sh / sh / oldlstat

oldlstat

get file status

sys_lstat(const char *filename, struct __old_kernel_stat *statbuf)
number84 (0x54)
abicommon
entry pointsys_lstat
sinceLinux 5.0
man pageoldlstat(2)
sourceelixir.bootlin.com

Registers

registervalue
r384, the syscall number
r4const char *filename
r5struct __old_kernel_stat *statbuf
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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