add a missing section header table index conversion
[tangerine.git] / compiler / clib / include / sys / uio.h
blobc9f4a022ca28a1d0f76db7b772fe49e39dceaf38
1 #ifndef _SYS_UIO_H_
2 #define _SYS_UIO_H_
3 /*
4 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
5 $Id$
7 POSIX/BSD header <sys/uio.h>
8 */
10 #include <aros/systypes.h>
11 #include <sys/cdefs.h>
12 #include <sys/_iovec.h>
14 #ifdef _AROS_SSIZE_T_
15 #define _AROS_SSIZE_T_ ssize_t;
16 #undef _AROS_SSIZE_T_
17 #endif
19 #if __BSD_VISIBILE
20 enum uio_rw
22 UIO_READ,
23 UIO_WRITE
26 enum uio_seg
28 UIO_USERSPACE,
29 UIO_SYSSPACE,
30 UIO_NOCOPY
33 /* XXX This really doesn't belong here... */
34 struct Task;
36 struct uio
38 struct iovec *uio_iov;
39 int uio_iovcnt;
40 off_t uio_offset;
41 int uio_resid;
42 enum uio_seg uio_segflg;
43 enum uio_rw uio_rw;
44 struct Task *uio_task;
46 #endif /* __BSD_VISIBLE */
48 __BEGIN_DECLS
49 ssize_t readv(int fd, const struct iovec *iovec, int count);
50 ssize_t writev(int fd, const struct iovec *iovec, int count);
51 __END_DECLS
53 #endif /* _SYS_UIO_H_ */