syscall.sh / ppc / ftruncate64
ftruncate64
truncate a file to a specified length
sys_ppc_ftruncate64(unsigned int fd, u32 reg4, unsigned long len1, unsigned long len2)
| number | 194 (0xc2) |
|---|---|
| abi | 32 |
| entry point | sys_ppc_ftruncate64 |
| since | Linux 5.0 |
| man page | ftruncate64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 194, the syscall number |
r3 | unsigned int fd |
r4 | u32 reg4 |
r5 | unsigned long len1 |
r6 | unsigned long len2 |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
- x86 194
- arm 194
- mipso32 4212
- arc 46
- csky 46
- hexagon 46
- m68k 194
- microblaze 194
- nios2 46
- openrisc 46
- parisc 200
- sh 194
- sparc 84
- xtensa 29
Get this as JSON: https://api.syscall.sh/v2/syscalls/ppc/ftruncate64