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 
00026 #if defined (ACE_EXPORT_MACRO)
00027 #  undef ACE_EXPORT_MACRO
00028 #endif
00029 #define ACE_EXPORT_MACRO ACE_Export
00030 
00031 
00032 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00033 
00034 namespace ACE_OS
00035 {
00036 
00037   ACE_NAMESPACE_INLINE_FUNCTION
00038   ssize_t sendfile (ACE_HANDLE out_fd,
00039                     ACE_HANDLE in_fd,
00040                     off_t * offset,
00041                     size_t count);
00042 
00043 #ifndef ACE_HAS_SENDFILE
00044   extern ACE_Export
00045   ssize_t sendfile_emulation (ACE_HANDLE out_fd,
00046                               ACE_HANDLE in_fd,
00047                               off_t * offset,
00048                               size_t count);
00049 #endif  
00050 
00051 }
00052 
00053 ACE_END_VERSIONED_NAMESPACE_DECL
00054 
00055 # if defined (ACE_HAS_INLINED_OSCALLS)
00056 #   if defined (ACE_INLINE)
00057 #     undef ACE_INLINE
00058 #   endif 
00059 #   define ACE_INLINE inline
00060 #   include "ace/OS_NS_sys_sendfile.inl"
00061 # endif 
00062 
00063 #include  "ace/post.h"
00064 
00065 #endif