syscall.sh / x86 / lseek

lseek

reposition read/write file offset

sys_lseek(unsigned int fd, off_t offset, unsigned int whence)
number19 (0x13)
abii386
entry pointsys_lseek
sinceLinux 3.3
man pagelseek(2)
sourceelixir.bootlin.com

Registers

registervalue
eax19, the syscall number
ebxunsigned int fd
ecxoff_t offset
edxunsigned int whence
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/lseek