uio.h (189816) | uio.h (194990) |
---|---|
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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)uio.h 8.5 (Berkeley) 2/22/94 |
30 * $FreeBSD: head/sys/sys/uio.h 189816 2009-03-14 19:07:58Z das $ | 30 * $FreeBSD: head/sys/sys/uio.h 194990 2009-06-25 18:46:30Z kib $ |
31 */ 32 33#ifndef _SYS_UIO_H_ 34#define _SYS_UIO_H_ 35 36#include <sys/cdefs.h> 37#include <sys/_types.h> 38#include <sys/_iovec.h> --- 20 unchanged lines hidden (view full) --- 59#endif 60 61#ifdef _KERNEL 62 63struct uio { 64 struct iovec *uio_iov; /* scatter/gather list */ 65 int uio_iovcnt; /* length of scatter/gather list */ 66 off_t uio_offset; /* offset in target object */ | 31 */ 32 33#ifndef _SYS_UIO_H_ 34#define _SYS_UIO_H_ 35 36#include <sys/cdefs.h> 37#include <sys/_types.h> 38#include <sys/_iovec.h> --- 20 unchanged lines hidden (view full) --- 59#endif 60 61#ifdef _KERNEL 62 63struct uio { 64 struct iovec *uio_iov; /* scatter/gather list */ 65 int uio_iovcnt; /* length of scatter/gather list */ 66 off_t uio_offset; /* offset in target object */ |
67 int uio_resid; /* remaining bytes to process */ | 67 ssize_t uio_resid; /* remaining bytes to process */ |
68 enum uio_seg uio_segflg; /* address space */ 69 enum uio_rw uio_rw; /* operation */ 70 struct thread *uio_td; /* owner */ 71}; 72 73/* 74 * Limits 75 * --- 42 unchanged lines hidden --- | 68 enum uio_seg uio_segflg; /* address space */ 69 enum uio_rw uio_rw; /* operation */ 70 struct thread *uio_td; /* owner */ 71}; 72 73/* 74 * Limits 75 * --- 42 unchanged lines hidden --- |