source: trunk/src/emx/include/sys/uio.h@ 213

Last change on this file since 213 was 187, checked in by bird, 23 years ago

TCPV40HDRS function wrappers.

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.1 KB
RevLine 
[18]1/* sys/uio.h (emx+gcc) */
2
3#ifndef _SYS_UIO_H
4#define _SYS_UIO_H
[183]5#define _SYS_UIO_H_ /*toolkit pollution*/
[18]6
7#if defined (__cplusplus)
8extern "C" {
9#endif
10
11struct iovec
12{
13 caddr_t iov_base;
[183]14#if defined(__32BIT__) && !defined(TCPV40HDRS)
15 size_t iov_len;
16#else
[18]17 int iov_len;
[183]18#endif
[18]19};
20
[183]21
[18]22/* needed for sys\socket.h TCPIPV4 now */
[183]23#ifdef TCPV40HDRS
[18]24struct uio {
25 struct iovec *uio_iov;
26 int uio_iovcnt;
27 off_t uio_offset;
28 int uio_segflg;
29 unsigned int uio_resid;
30};
[183]31#ifndef FREAD
[18]32#define FREAD 1
33#define FWRITE 2
34#endif
[183]35#endif
[18]36
[183]37enum uio_rw { UIO_READ, UIO_WRITE };
[18]38
[183]39#ifndef TCPV40HDRS
40/* Segment flag values. */
41enum uio_seg {
42 UIO_USERSPACE, /* from user data space */
43 UIO_SYSSPACE, /* from system space */
44 UIO_USERISPACE /* from user I space */
45};
46#endif
[18]47
[187]48/** @name tcpip40 function mappings.
49 * @{ */
50#define readv tcpip40_readv
51#define writev tcpip40_writev
52/* @} */
53
[183]54int _System readv (int, __const__ struct iovec *, int);
55int _System writev (int, __const__ struct iovec *, int);
56
[18]57#if defined (__cplusplus)
58}
59#endif
60
61#endif /* not _SYS_UIO_H */
Note: See TracBrowser for help on using the repository browser.