2 * <sys/sendfile.h> wrapper functions.
5 * Jonathan Pryor (jonpryor@vt.edu)
7 * Copyright (C) 2004 Jonathan Pryor
10 #include <sys/types.h>
16 #ifdef HAVE_SYS_SENDFILE_H
17 #include <sys/sendfile.h>
18 #endif /* ndef HAVE_SYS_SENDFILE_H */
24 Mono_Posix_Syscall_sendfile (int out_fd
, int in_fd
, mph_off_t
*offset
, mph_size_t count
)
28 mph_return_if_off_t_overflow (*offset
);
32 r
= sendfile (out_fd
, in_fd
, &_offset
, (size_t) count
);
38 #endif /* ndef HAVE_SENDFILE */