syscall.sh / sparc / lseek

lseek

reposition read/write file offset

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

Registers

registervalue
g119, the syscall number
o0unsigned int fd
o1off_t offset
o2unsigned int whence
o0the return value

Then run t 0x10 to enter the kernel.

Same syscall on other architectures

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