syscall.sh / mipso32 / ftruncate64
ftruncate64
truncate a file to a specified length
sys_ftruncate64(unsigned int fd, loff_t length)
| number | 4212 (0x1074) |
|---|---|
| abi | o32 |
| entry point | sys_ftruncate64 |
| since | Linux 5.0 |
| man page | ftruncate64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 4212, the syscall number |
a0 | unsigned int fd |
a1 | loff_t length |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x86 194
- arm 194
- ppc 194
- 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/mipso32/ftruncate64