source: vendor/emx/current/include/sys/uio.h

Last change on this file was 18, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 692 bytes
Line 
1/* sys/uio.h (emx+gcc) */
2
3#ifndef _SYS_UIO_H
4#define _SYS_UIO_H
5
6#if defined (__cplusplus)
7extern "C" {
8#endif
9
10struct iovec
11{
12 caddr_t iov_base;
13 int iov_len;
14};
15
16/* needed for sys\socket.h TCPIPV4 now */
17#ifdef TCPIPV4
18struct uio {
19 struct iovec *uio_iov;
20 int uio_iovcnt;
21 off_t uio_offset;
22 int uio_segflg;
23 unsigned int uio_resid;
24};
25enum uio_rw { UIO_READ, UIO_WRITE };
26#define FREAD 1
27#define FWRITE 2
28#endif
29
30int readv (int, __const__ struct iovec *, int);
31int writev (int, __const__ struct iovec *, int);
32
33int _readv (int, __const__ struct iovec *, int);
34int _writev (int, __const__ struct iovec *, int);
35
36#if defined (__cplusplus)
37}
38#endif
39
40#endif /* not _SYS_UIO_H */
Note: See TracBrowser for help on using the repository browser.