|
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)
|
|---|
| 7 | extern "C" {
|
|---|
| 8 | #endif
|
|---|
| 9 |
|
|---|
| 10 | struct iovec
|
|---|
| 11 | {
|
|---|
| 12 | caddr_t iov_base;
|
|---|
| 13 | int iov_len;
|
|---|
| 14 | };
|
|---|
| 15 |
|
|---|
| 16 | /* needed for sys\socket.h TCPIPV4 now */
|
|---|
| 17 | #ifdef TCPIPV4
|
|---|
| 18 | struct 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 | };
|
|---|
| 25 | enum uio_rw { UIO_READ, UIO_WRITE };
|
|---|
| 26 | #define FREAD 1
|
|---|
| 27 | #define FWRITE 2
|
|---|
| 28 | #endif
|
|---|
| 29 |
|
|---|
| 30 | int readv (int, __const__ struct iovec *, int);
|
|---|
| 31 | int writev (int, __const__ struct iovec *, int);
|
|---|
| 32 |
|
|---|
| 33 | int _readv (int, __const__ struct iovec *, int);
|
|---|
| 34 | int _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.