syscall.sh / parisc / ftruncate64
ftruncate64
truncate a file to a specified length
parisc_ftruncate64(unsigned int fd, loff_t length)
| number | 200 (0xc8) |
|---|---|
| abi | 32 |
| entry point | parisc_ftruncate64 |
| since | Linux 5.0 |
| man page | ftruncate64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 200, the syscall number |
r26 | unsigned int fd |
r25 | loff_t length |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x86 194
- arm 194
- ppc 194
- mipso32 4212
- arc 46
- csky 46
- hexagon 46
- m68k 194
- microblaze 194
- nios2 46
- openrisc 46
- sh 194
- sparc 84
- xtensa 29
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/ftruncate64