Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ACE_OS_NS_SYS_SENDFILE_H
00014 #define ACE_OS_NS_SYS_SENDFILE_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "ace/ACE_export.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "ace/Basic_Types.h"
00025 #include "ace/config-all.h"
00026
00027 #if defined (ACE_EXPORT_MACRO)
00028 # undef ACE_EXPORT_MACRO
00029 #endif
00030 #define ACE_EXPORT_MACRO ACE_Export
00031
00032
00033 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00034
00035 namespace ACE_OS
00036 {
00037
00038 ACE_NAMESPACE_INLINE_FUNCTION
00039 ssize_t sendfile (ACE_HANDLE out_fd,
00040 ACE_HANDLE in_fd,
00041 off_t * offset,
00042 size_t count);
00043
00044 #if defined ACE_HAS_SENDFILE && ACE_HAS_SENDFILE == 0
00045 extern ACE_Export
00046 ssize_t sendfile_emulation (ACE_HANDLE out_fd,
00047 ACE_HANDLE in_fd,
00048 off_t * offset,
00049 size_t count);
00050 #endif
00051
00052 }
00053
00054 ACE_END_VERSIONED_NAMESPACE_DECL
00055
00056 # if defined (ACE_HAS_INLINED_OSCALLS)
00057 # if defined (ACE_INLINE)
00058 # undef ACE_INLINE
00059 # endif
00060 # define ACE_INLINE inline
00061 # include "ace/OS_NS_sys_sendfile.inl"
00062 # endif
00063
00064 #include "ace/post.h"
00065
00066 #endif