syscall.sh / x32 / lseek
lseek
reposition read/write file offset
sys_lseek(unsigned int fd, off_t offset, unsigned int whence)
| number | 1073741832 (0x40000008) |
|---|---|
| abi | common |
| entry point | sys_lseek |
| since | Linux 3.4 |
| man page | lseek(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741832, the syscall number |
rdi | unsigned int fd |
rsi | off_t offset |
rdx | unsigned int whence |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 8
- x86 19
- arm64 62
- arm 19
- riscv64 62
- loongarch64 62
- ppc64 19
- ppc 19
- s390x 19
- mips64 5008
- mipsn32 6008
- mipso32 4019
- alpha 19
- m68k 19
- microblaze 19
- parisc 19
- sh 19
- sparc 19
- sparc64 19
- xtensa 15
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/lseek