|
|
@ -59,6 +59,8 @@ int main() {
|
|
|
|
#elif defined(__linux__)
|
|
|
|
#elif defined(__linux__)
|
|
|
|
|
|
|
|
|
|
|
|
#define _FILE_OFFSET_BITS 64
|
|
|
|
#define _FILE_OFFSET_BITS 64
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
#if defined(__GLIBC__)
|
|
|
|
#if defined(__GLIBC__)
|
|
|
|
#include <sys/sendfile.h>
|
|
|
|
#include <sys/sendfile.h>
|
|
|
|
#elif defined(__dietlibc__)
|
|
|
|
#elif defined(__dietlibc__)
|
|
|
@ -67,6 +69,7 @@ int main() {
|
|
|
|
#include <linux/unistd.h>
|
|
|
|
#include <linux/unistd.h>
|
|
|
|
_syscall4(int,sendfile,int,out,int,in,long *,offset,unsigned long,count)
|
|
|
|
_syscall4(int,sendfile,int,out,int,in,long *,offset,unsigned long,count)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
int main() {
|
|
|
|
int fd=open("havesendfile.c",0);
|
|
|
|
int fd=open("havesendfile.c",0);
|
|
|
|