syscall.sh / ppc / truncate64
truncate64
truncate a file to a specified length
sys_ppc_truncate64(const char *path, u32 reg4, unsigned long len1, unsigned long len2)
| number | 193 (0xc1) |
|---|---|
| abi | 32 |
| entry point | sys_ppc_truncate64 |
| since | Linux 5.0 |
| man page | truncate64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 193, the syscall number |
r3 | const char *path |
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 193
- arm 193
- mipso32 4211
- arc 45
- csky 45
- hexagon 45
- m68k 193
- microblaze 193
- nios2 45
- openrisc 45
- parisc 199
- sh 193
- sparc 77
- xtensa 28
Get this as JSON: https://api.syscall.sh/v2/syscalls/ppc/truncate64