sys_generic.c (6ea70f76) | sys_generic.c (b09fd398) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 23 unchanged lines hidden (view full) --- 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)sys_generic.c 8.5 (Berkeley) 1/21/94 39 * $FreeBSD: src/sys/kern/sys_generic.c,v 1.55.2.10 2001/03/17 10:39:32 peter Exp $ | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 23 unchanged lines hidden (view full) --- 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)sys_generic.c 8.5 (Berkeley) 1/21/94 39 * $FreeBSD: src/sys/kern/sys_generic.c,v 1.55.2.10 2001/03/17 10:39:32 peter Exp $ |
40 * $DragonFly: src/sys/kern/sys_generic.c,v 1.38 2006/12/23 00:35:04 swildner Exp $ | 40 * $DragonFly: src/sys/kern/sys_generic.c,v 1.39 2007/01/08 21:41:56 dillon Exp $ |
41 */ 42 43#include "opt_ktrace.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/sysproto.h> 48#include <sys/filedesc.h> --- 65 unchanged lines hidden (view full) --- 114} 115 116/* 117 * Positioned (Pread) read system call 118 * 119 * MPSAFE 120 */ 121int | 41 */ 42 43#include "opt_ktrace.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/sysproto.h> 48#include <sys/filedesc.h> --- 65 unchanged lines hidden (view full) --- 114} 115 116/* 117 * Positioned (Pread) read system call 118 * 119 * MPSAFE 120 */ 121int |
122sys___pread(struct __pread_args *uap) | 122sys_extpread(struct extpread_args *uap) |
123{ 124 struct thread *td = curthread; 125 struct uio auio; 126 struct iovec aiov; 127 int error; 128 int flags; 129 130 aiov.iov_base = uap->buf; --- 49 unchanged lines hidden (view full) --- 180 181 182/* 183 * Scatter positioned read system call. 184 * 185 * MPSAFE 186 */ 187int | 123{ 124 struct thread *td = curthread; 125 struct uio auio; 126 struct iovec aiov; 127 int error; 128 int flags; 129 130 aiov.iov_base = uap->buf; --- 49 unchanged lines hidden (view full) --- 180 181 182/* 183 * Scatter positioned read system call. 184 * 185 * MPSAFE 186 */ 187int |
188sys___preadv(struct __preadv_args *uap) | 188sys_extpreadv(struct extpreadv_args *uap) |
189{ 190 struct thread *td = curthread; 191 struct uio auio; 192 struct iovec aiov[UIO_SMALLIOV], *iov = NULL; 193 int error; 194 int flags; 195 196 error = iovec_copyin(uap->iovp, &iov, aiov, uap->iovcnt, --- 131 unchanged lines hidden (view full) --- 328} 329 330/* 331 * Pwrite system call 332 * 333 * MPSAFE 334 */ 335int | 189{ 190 struct thread *td = curthread; 191 struct uio auio; 192 struct iovec aiov[UIO_SMALLIOV], *iov = NULL; 193 int error; 194 int flags; 195 196 error = iovec_copyin(uap->iovp, &iov, aiov, uap->iovcnt, --- 131 unchanged lines hidden (view full) --- 328} 329 330/* 331 * Pwrite system call 332 * 333 * MPSAFE 334 */ 335int |
336sys___pwrite(struct __pwrite_args *uap) | 336sys_extpwrite(struct extpwrite_args *uap) |
337{ 338 struct thread *td = curthread; 339 struct uio auio; 340 struct iovec aiov; 341 int error; 342 int flags; 343 344 aiov.iov_base = (void *)(uintptr_t)uap->buf; --- 48 unchanged lines hidden (view full) --- 393 394 395/* 396 * Gather positioned write system call 397 * 398 * MPSAFE 399 */ 400int | 337{ 338 struct thread *td = curthread; 339 struct uio auio; 340 struct iovec aiov; 341 int error; 342 int flags; 343 344 aiov.iov_base = (void *)(uintptr_t)uap->buf; --- 48 unchanged lines hidden (view full) --- 393 394 395/* 396 * Gather positioned write system call 397 * 398 * MPSAFE 399 */ 400int |
401sys___pwritev(struct __pwritev_args *uap) | 401sys_extpwritev(struct extpwritev_args *uap) |
402{ 403 struct thread *td = curthread; 404 struct uio auio; 405 struct iovec aiov[UIO_SMALLIOV], *iov = NULL; 406 int error; 407 int flags; 408 409 error = iovec_copyin(uap->iovp, &iov, aiov, uap->iovcnt, --- 716 unchanged lines hidden --- | 402{ 403 struct thread *td = curthread; 404 struct uio auio; 405 struct iovec aiov[UIO_SMALLIOV], *iov = NULL; 406 int error; 407 int flags; 408 409 error = iovec_copyin(uap->iovp, &iov, aiov, uap->iovcnt, --- 716 unchanged lines hidden --- |