xref: /plan9/sys/include/ape/sys/uio.h (revision 219b2ee8daee37f4aad58d63f21287faa8e4ffdc)
1 #ifndef __SYS_UIO_H__
2 #define __SYS_UIO_H__
3 
4 #ifndef _BSD_EXTENSION
5     This header file is an extension to ANSI/POSIX
6 #endif
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #pragma lib "/$M/lib/ape/libbsd.a"
13 
14 /*
15  * Copyright (c) 1982, 1986 Regents of the University of California.
16  * All rights reserved.  The Berkeley software License Agreement
17  * specifies the terms and conditions for redistribution.
18  *
19  *	@(#)uio.h	7.1 (Berkeley) 6/4/86
20  */
21 
22 struct iovec {
23 	char	*iov_base;
24 	int	iov_len;
25 };
26 
27 extern int writev(int, struct iovec*, int);
28 extern int readv(int, struct iovec*, int);
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif /* !__SYS_UIO_H__ */
35