syscall.sh / m68k / ftruncate64
ftruncate64
truncate a file to a specified length
sys_ftruncate64(unsigned int fd, loff_t length)
| number | 194 (0xc2) |
|---|---|
| abi | common |
| entry point | sys_ftruncate64 |
| since | Linux 5.0 |
| man page | ftruncate64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
d0 | 194, the syscall number |
d1 | unsigned int fd |
d2 | loff_t length |
d0 | the return value |
Then run trap #0 to enter the kernel.
Same syscall on other architectures
- x86 194
- arm 194
- ppc 194
- mipso32 4212
- arc 46
- csky 46
- hexagon 46
- microblaze 194
- nios2 46
- openrisc 46
- parisc 200
- sh 194
- sparc 84
- xtensa 29
Get this as JSON: https://api.syscall.sh/v2/syscalls/m68k/ftruncate64