syscall.sh / x86 / ftruncate64
ftruncate64
truncate a file to a specified length
sys_ia32_ftruncate64(unsigned int fd, loff_t length)
| number | 194 (0xc2) |
|---|---|
| abi | i386 |
| entry point | sys_ia32_ftruncate64 |
| since | Linux 3.3 |
| man page | ftruncate64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 194, the syscall number |
ebx | unsigned int fd |
ecx | loff_t length |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- arm 194
- ppc 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/x86/ftruncate64