syscall.sh / parisc / ftruncate
ftruncate
truncate a file to a specified length
sys_ftruncate(unsigned int fd, off_t length)
| number | 93 (0x5d) |
|---|---|
| abi | common |
| entry point | sys_ftruncate |
| since | Linux 5.0 |
| man page | ftruncate(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 93, the syscall number |
r26 | unsigned int fd |
r25 | off_t length |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 77
- x86 93
- arm64 46
- arm 93
- riscv64 46
- x32 1073741901
- loongarch64 46
- ppc64 93
- ppc 93
- s390x 93
- mips64 5075
- mipsn32 6075
- mipso32 4093
- alpha 130
- m68k 93
- microblaze 93
- sh 93
- sparc 130
- sparc64 130
- xtensa 23
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/ftruncate