3 //=============================================================================
5 * @file OS_NS_sys_sendfile.h
7 * @author Ossama Othman <ossama@dre.vanderbilt.edu>
9 //=============================================================================
11 #ifndef ACE_OS_NS_SYS_SENDFILE_H
12 #define ACE_OS_NS_SYS_SENDFILE_H
14 #include /**/ "ace/pre.h"
16 #include /**/ "ace/ACE_export.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "ace/Basic_Types.h" /* For ssize_t and off_t. */
23 #include "ace/config-all.h"
25 #if defined (ACE_EXPORT_MACRO)
26 # undef ACE_EXPORT_MACRO
28 #define ACE_EXPORT_MACRO ACE_Export
31 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
35 /// Wrapper for sendfile to transfer data between file descriptor
36 ACE_NAMESPACE_INLINE_FUNCTION
37 ssize_t
sendfile (ACE_HANDLE out_fd
,
42 #if defined ACE_HAS_SENDFILE && ACE_HAS_SENDFILE == 0
44 ssize_t
sendfile_emulation (ACE_HANDLE out_fd
,
48 #endif /* ACE_HAS_SENDFILE==0 */
52 ACE_END_VERSIONED_NAMESPACE_DECL
54 # if defined (ACE_HAS_INLINED_OSCALLS)
55 # if defined (ACE_INLINE)
57 # endif /* ACE_INLINE */
58 # define ACE_INLINE inline
59 # include "ace/OS_NS_sys_sendfile.inl"
60 # endif /* ACE_HAS_INLINED_OSCALLS */
62 #include /**/ "ace/post.h"
64 #endif /* ACE_OS_NS_SYS_SENDFILE_H */