2 #include "ace/os_include/os_errno.h"
4 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
7 ACE_OS::readv (ACE_HANDLE handle,
11 ACE_OS_TRACE ("ACE_OS::readv");
12 #if defined (ACE_LACKS_READV)
13 return ACE_OS::readv_emulation (handle, iov, iovlen);
14 #else /* ACE_LACKS_READV */
15 #if defined (ACE_HAS_NONCONST_READV)
16 return ::readv (handle, const_cast<iovec *>(iov), iovlen);
18 return ::readv (handle, iov, iovlen);
19 #endif /* ACE_HAS_NONCONST_READV */
20 #endif /* ACE_LACKS_READV */
24 ACE_OS::writev (ACE_HANDLE handle,
28 ACE_OS_TRACE ("ACE_OS::writev");
29 #if defined (ACE_LACKS_WRITEV)
30 return ACE_OS::writev_emulation (handle, iov, iovcnt);
31 #else /* ACE_LACKS_WRITEV */
32 #if defined (ACE_HAS_NONCONST_WRITEV)
33 return ::writev (handle, const_cast<iovec *>(iov), iovcnt);
35 return ::writev (handle, iov, iovcnt);
36 #endif /* ACE_HAS_NONCONST_WRITEV */
37 #endif /* ACE_LACKS_WRITEV */
40 ACE_END_VERSIONED_NAMESPACE_DECL