diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2008-03-04 14:51:23 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2008-03-04 14:51:23 +0000 |
commit | 99aa8c60282c7b8072eb35eb9ac815702f5bf586 (patch) | |
tree | bda96bf8c3a4c2875a083d7b16720533c8ffeaf4 /ACE/ace/OS_NS_sys_sendfile.inl | |
parent | c4078c377d74290ebe4e66da0b4975da91732376 (diff) | |
download | ATCD-99aa8c60282c7b8072eb35eb9ac815702f5bf586.tar.gz |
undoing accidental deletion
Diffstat (limited to 'ACE/ace/OS_NS_sys_sendfile.inl')
-rw-r--r-- | ACE/ace/OS_NS_sys_sendfile.inl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_sys_sendfile.inl b/ACE/ace/OS_NS_sys_sendfile.inl new file mode 100644 index 00000000000..1c468354b3e --- /dev/null +++ b/ACE/ace/OS_NS_sys_sendfile.inl @@ -0,0 +1,24 @@ +// -*- C++ -*- +// +// $Id$ + +#ifdef ACE_HAS_SENDFILE +# include <sys/sendfile.h> +#endif /* ACE_HAS_SENDFILE */ + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_INLINE ssize_t +ACE_OS::sendfile (ACE_HANDLE out_fd, + ACE_HANDLE in_fd, + off_t * offset, + size_t count) +{ +#ifdef ACE_HAS_SENDFILE + return ::sendfile (out_fd, in_fd, offset, count); +#else + return ACE_OS::sendfile_emulation (out_fd, in_fd, offset, count); +#endif /* ACE_HAS_SENDFILE */ +} + +ACE_END_VERSIONED_NAMESPACE_DECL |