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