2 * <sys/sendfile.h> wrapper functions.
5 * Jonathan Pryor (jonpryor@vt.edu)
7 * Copyright (C) 2004 Jonathan Pryor
12 #include <sys/types.h>
18 #ifdef HAVE_SYS_SENDFILE_H
19 #include <sys/sendfile.h>
20 #endif /* ndef HAVE_SYS_SENDFILE_H */
26 Mono_Posix_Syscall_sendfile (int out_fd
, int in_fd
, mph_off_t
*offset
, mph_size_t count
)
30 mph_return_if_off_t_overflow (*offset
);
34 #if defined(PLATFORM_MACOSX) || defined(PLATFORM_BSD)
35 /* The BSD version has 6 arguments */
36 g_assert_not_reached ();
38 r
= sendfile (out_fd
, in_fd
, &_offset
, (size_t) count
);
45 #endif /* ndef HAVE_SENDFILE */