syscall.sh / mipso32 / truncate64
truncate64
truncate a file to a specified length
sys_truncate64(const char *path, loff_t length)
| number | 4211 (0x1073) |
|---|---|
| abi | o32 |
| entry point | sys_truncate64 |
| since | Linux 5.0 |
| man page | truncate64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 4211, the syscall number |
a0 | const char *path |
a1 | loff_t length |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x86 193
- arm 193
- ppc 193
- 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/mipso32/truncate64