syscall.sh / x86 / sendfile
sendfile
transfer data between file descriptors
sys_sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
| number | 187 (0xbb) |
|---|---|
| abi | i386 |
| entry point | sys_sendfile |
| since | Linux 3.3 |
| man page | sendfile(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 187, the syscall number |
ebx | int out_fd |
ecx | int in_fd |
edx | off_t *offset |
esi | size_t count |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 40
- arm64 71
- arm 187
- riscv64 71
- x32 1073741864
- loongarch64 71
- ppc64 186
- ppc 186
- s390x 187
- mips64 5039
- mipsn32 6039
- mipso32 4207
- alpha 370
- m68k 187
- microblaze 187
- parisc 122
- sh 187
- sparc 39
- sparc64 39
- xtensa 113
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/sendfile