Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / OS_NS_sys_sendfile.h
bloba6ddefe0c4d37ddf62b7225cf250b069698e200a
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file OS_NS_sys_sendfile.h
7 * @author Ossama Othman <ossama@dre.vanderbilt.edu>
8 */
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)
19 # 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
27 #endif
28 #define ACE_EXPORT_MACRO ACE_Export
31 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
33 namespace ACE_OS
35 /// Wrapper for sendfile to transfer data between file descriptor
36 ACE_NAMESPACE_INLINE_FUNCTION
37 ssize_t sendfile (ACE_HANDLE out_fd,
38 ACE_HANDLE in_fd,
39 off_t * offset,
40 size_t count);
42 #if defined ACE_HAS_SENDFILE && ACE_HAS_SENDFILE == 0
43 extern ACE_Export
44 ssize_t sendfile_emulation (ACE_HANDLE out_fd,
45 ACE_HANDLE in_fd,
46 off_t * offset,
47 size_t count);
48 #endif /* ACE_HAS_SENDFILE==0 */
52 ACE_END_VERSIONED_NAMESPACE_DECL
54 # if defined (ACE_HAS_INLINED_OSCALLS)
55 # if defined (ACE_INLINE)
56 # undef 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 */