OS_NS_sys_sendfile.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    OS_NS_sys_sendfile.h
00006  *
00007  *  OS_NS_sys_sendfile.h,v 1.5 2006/05/03 08:13:33 jwillemsen Exp
00008  *
00009  *  @author Ossama Othman <ossama@dre.vanderbilt.edu>
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 /* ACE_LACKS_PRAGMA_ONCE */
00023 
00024 #include "ace/Basic_Types.h"  /* For ssize_t and off_t. */
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   /// Finds the length of a string (char version).
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  /* !ACE_HAS_SENDFILE */
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 /* ACE_INLINE */
00059 #   define ACE_INLINE inline
00060 #   include "ace/OS_NS_sys_sendfile.inl"
00061 # endif /* ACE_HAS_INLINED_OSCALLS */
00062 
00063 #include /**/ "ace/post.h"
00064 
00065 #endif  /* ACE_OS_NS_SYS_SENDFILE_H */

Generated on Thu Nov 9 09:41:58 2006 for ACE by doxygen 1.3.6