uio.h (98477) | uio.h (98849) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)uio.h 8.5 (Berkeley) 2/22/94 | 1/* 2 * Copyright (c) 1982, 1986, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)uio.h 8.5 (Berkeley) 2/22/94 |
34 * $FreeBSD: head/sys/sys/uio.h 98477 2002-06-20 07:08:43Z peter $ | 34 * $FreeBSD: head/sys/sys/uio.h 98849 2002-06-26 03:37:47Z ken $ |
35 */ 36 37#ifndef _SYS_UIO_H_ 38#define _SYS_UIO_H_ 39 40/* 41 * XXX 42 * iov_base should be a void *. --- 37 unchanged lines hidden (view full) --- 80 */ 81#define UIO_MAXIOV 1024 /* max 1K of iov's */ 82#define UIO_SMALLIOV 8 /* 8 on stack, else malloc */ 83 84struct vm_object; 85 86void uio_yield(void); 87int uiomove(caddr_t, int, struct uio *); | 35 */ 36 37#ifndef _SYS_UIO_H_ 38#define _SYS_UIO_H_ 39 40/* 41 * XXX 42 * iov_base should be a void *. --- 37 unchanged lines hidden (view full) --- 80 */ 81#define UIO_MAXIOV 1024 /* max 1K of iov's */ 82#define UIO_SMALLIOV 8 /* 8 on stack, else malloc */ 83 84struct vm_object; 85 86void uio_yield(void); 87int uiomove(caddr_t, int, struct uio *); |
88int uiomoveco(caddr_t, int, struct uio *, struct vm_object *); | 88int uiomoveco(caddr_t, int, struct uio *, struct vm_object *, int); |
89int uioread(int, struct uio *, struct vm_object *, int *); 90int copyinfrom(const void *src, void *dst, size_t len, int seg); 91int copyinstrfrom(const void *src, void *dst, size_t len, 92 size_t *copied, int seg); 93 94#else /* !_KERNEL */ 95 96#include <sys/cdefs.h> 97 98__BEGIN_DECLS 99ssize_t readv(int, const struct iovec *, int); 100ssize_t writev(int, const struct iovec *, int); 101__END_DECLS 102 103#endif /* _KERNEL */ 104 105#endif /* !_SYS_UIO_H_ */ | 89int uioread(int, struct uio *, struct vm_object *, int *); 90int copyinfrom(const void *src, void *dst, size_t len, int seg); 91int copyinstrfrom(const void *src, void *dst, size_t len, 92 size_t *copied, int seg); 93 94#else /* !_KERNEL */ 95 96#include <sys/cdefs.h> 97 98__BEGIN_DECLS 99ssize_t readv(int, const struct iovec *, int); 100ssize_t writev(int, const struct iovec *, int); 101__END_DECLS 102 103#endif /* _KERNEL */ 104 105#endif /* !_SYS_UIO_H_ */ |