diff options
Diffstat (limited to 'ace/ace_sys_uio.h')
-rw-r--r-- | ace/ace_sys_uio.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/ace/ace_sys_uio.h b/ace/ace_sys_uio.h new file mode 100644 index 00000000000..d9c6c878bd4 --- /dev/null +++ b/ace/ace_sys_uio.h @@ -0,0 +1,45 @@ +/* -*- C++ -*- */ + +//============================================================================= +/** + * @file ace_sys_uio.h + * + * $Id$ + * + * @author Douglas C. Schmidt (schmidt@cs.wustl.edu) + * @author etc + */ +//============================================================================= + +#ifndef ACE_ACE_SYS_UIO_H +#define ACE_ACE_SYS_UIO_H +#include "ace/pre.h" + +#include "ace/config-all.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include /**/ <sys/uio.h> + +# if defined(__rtems__) +struct iovec { + char *iov_base; // Base address. + size_t iov_len; // Length. +}; +# endif + +# if defined (ACE_HAS_BROKEN_WRITEV) +typedef struct iovec ACE_WRITEV_TYPE; +# else +typedef const struct iovec ACE_WRITEV_TYPE; +# endif /* ACE_HAS_BROKEN_WRITEV */ + +# if defined (ACE_HAS_BROKEN_READV) +typedef const struct iovec ACE_READV_TYPE; +# else +typedef struct iovec ACE_READV_TYPE; +# endif /* ACE_HAS_BROKEN_READV */ + +#endif /* ACE_ACE_SYS_UIO_H */ |