sys_generic.c (278930) | sys_generic.c (281714) |
---|---|
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. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)sys_generic.c 8.5 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> | 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. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)sys_generic.c 8.5 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/sys_generic.c 278930 2015-02-17 23:54:06Z mjg $"); | 38__FBSDID("$FreeBSD: head/sys/kern/sys_generic.c 281714 2015-04-18 21:50:13Z kib $"); |
39 40#include "opt_capsicum.h" 41#include "opt_compat.h" 42#include "opt_ktrace.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/sysproto.h> --- 167 unchanged lines hidden (view full) --- 214 auio.uio_iov = &aiov; 215 auio.uio_iovcnt = 1; 216 auio.uio_resid = uap->nbyte; 217 auio.uio_segflg = UIO_USERSPACE; 218 error = kern_preadv(td, uap->fd, &auio, uap->offset); 219 return(error); 220} 221 | 39 40#include "opt_capsicum.h" 41#include "opt_compat.h" 42#include "opt_ktrace.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/sysproto.h> --- 167 unchanged lines hidden (view full) --- 214 auio.uio_iov = &aiov; 215 auio.uio_iovcnt = 1; 216 auio.uio_resid = uap->nbyte; 217 auio.uio_segflg = UIO_USERSPACE; 218 error = kern_preadv(td, uap->fd, &auio, uap->offset); 219 return(error); 220} 221 |
222#if defined(COMPAT_FREEBSD6) |
|
222int 223freebsd6_pread(td, uap) 224 struct thread *td; 225 struct freebsd6_pread_args *uap; 226{ 227 struct pread_args oargs; 228 229 oargs.fd = uap->fd; 230 oargs.buf = uap->buf; 231 oargs.nbyte = uap->nbyte; 232 oargs.offset = uap->offset; 233 return (sys_pread(td, &oargs)); 234} | 223int 224freebsd6_pread(td, uap) 225 struct thread *td; 226 struct freebsd6_pread_args *uap; 227{ 228 struct pread_args oargs; 229 230 oargs.fd = uap->fd; 231 oargs.buf = uap->buf; 232 oargs.nbyte = uap->nbyte; 233 oargs.offset = uap->offset; 234 return (sys_pread(td, &oargs)); 235} |
236#endif |
|
235 236/* 237 * Scatter read system call. 238 */ 239#ifndef _SYS_SYSPROTO_H_ 240struct readv_args { 241 int fd; 242 struct iovec *iovp; --- 182 unchanged lines hidden (view full) --- 425 auio.uio_iov = &aiov; 426 auio.uio_iovcnt = 1; 427 auio.uio_resid = uap->nbyte; 428 auio.uio_segflg = UIO_USERSPACE; 429 error = kern_pwritev(td, uap->fd, &auio, uap->offset); 430 return(error); 431} 432 | 237 238/* 239 * Scatter read system call. 240 */ 241#ifndef _SYS_SYSPROTO_H_ 242struct readv_args { 243 int fd; 244 struct iovec *iovp; --- 182 unchanged lines hidden (view full) --- 427 auio.uio_iov = &aiov; 428 auio.uio_iovcnt = 1; 429 auio.uio_resid = uap->nbyte; 430 auio.uio_segflg = UIO_USERSPACE; 431 error = kern_pwritev(td, uap->fd, &auio, uap->offset); 432 return(error); 433} 434 |
435#if defined(COMPAT_FREEBSD6) |
|
433int 434freebsd6_pwrite(td, uap) 435 struct thread *td; 436 struct freebsd6_pwrite_args *uap; 437{ 438 struct pwrite_args oargs; 439 440 oargs.fd = uap->fd; 441 oargs.buf = uap->buf; 442 oargs.nbyte = uap->nbyte; 443 oargs.offset = uap->offset; 444 return (sys_pwrite(td, &oargs)); 445} | 436int 437freebsd6_pwrite(td, uap) 438 struct thread *td; 439 struct freebsd6_pwrite_args *uap; 440{ 441 struct pwrite_args oargs; 442 443 oargs.fd = uap->fd; 444 oargs.buf = uap->buf; 445 oargs.nbyte = uap->nbyte; 446 oargs.offset = uap->offset; 447 return (sys_pwrite(td, &oargs)); 448} |
449#endif |
|
446 447/* 448 * Gather write system call. 449 */ 450#ifndef _SYS_SYSPROTO_H_ 451struct writev_args { 452 int fd; 453 struct iovec *iovp; --- 1448 unchanged lines hidden --- | 450 451/* 452 * Gather write system call. 453 */ 454#ifndef _SYS_SYSPROTO_H_ 455struct writev_args { 456 int fd; 457 struct iovec *iovp; --- 1448 unchanged lines hidden --- |