syscall.sh / x86 / sendfile64
sendfile64
transfer data between file descriptors
sys_sendfile64(int out_fd, int in_fd, loff_t *offset, size_t count)
| number | 239 (0xef) |
|---|---|
| abi | i386 |
| entry point | sys_sendfile64 |
| since | Linux 3.3 |
| man page | sendfile64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 239, the syscall number |
ebx | int out_fd |
ecx | int in_fd |
edx | loff_t *offset |
esi | size_t count |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- arm 239
- ppc 226
- mipsn32 6219
- mipso32 4237
- arc 71
- csky 71
- hexagon 71
- m68k 236
- microblaze 239
- nios2 71
- openrisc 71
- parisc 209
- sh 239
- sparc 140
- sparc64 140
- xtensa 114
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/sendfile64