diff options
author | dt <dt@FreeBSD.org> | 1999-04-04 21:41:28 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1999-04-04 21:41:28 +0000 |
commit | f13dd5fa6d2de09245e582c2792228f2653fd2a8 (patch) | |
tree | de22c23c16202f9effaeaa5beeebcf5a281a09e9 /sys/kern/sys_pipe.c | |
parent | bd8e7f40fbb5601af9da0bd9915ae4985da59b00 (diff) | |
download | FreeBSD-src-f13dd5fa6d2de09245e582c2792228f2653fd2a8.zip FreeBSD-src-f13dd5fa6d2de09245e582c2792228f2653fd2a8.tar.gz |
Add standard padding argument to pread and pwrite syscall. That should make them
NetBSD compatible.
Add parameter to fo_read and fo_write. (The only flag FOF_OFFSET mean that
the offset is set in the struct uio).
Factor out some common code from read/pread/write/pwrite syscalls.
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r-- | sys/kern/sys_pipe.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 396538a..cb1cd30 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -16,7 +16,7 @@ * 4. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: sys_pipe.c,v 1.49 1999/01/28 00:57:47 dillon Exp $ + * $Id: sys_pipe.c,v 1.50 1999/02/04 23:50:49 dillon Exp $ */ /* @@ -88,9 +88,9 @@ * interfaces to the outside world */ static int pipe_read __P((struct file *fp, struct uio *uio, - struct ucred *cred)); + struct ucred *cred, int flags)); static int pipe_write __P((struct file *fp, struct uio *uio, - struct ucred *cred)); + struct ucred *cred, int flags)); static int pipe_close __P((struct file *fp, struct proc *p)); static int pipe_poll __P((struct file *fp, int events, struct ucred *cred, struct proc *p)); @@ -319,10 +319,11 @@ pipeselwakeup(cpipe) /* ARGSUSED */ static int -pipe_read(fp, uio, cred) +pipe_read(fp, uio, cred, flags) struct file *fp; struct uio *uio; struct ucred *cred; + int flags; { struct pipe *rpipe = (struct pipe *) fp->f_data; @@ -702,10 +703,11 @@ error1: #endif static int -pipe_write(fp, uio, cred) +pipe_write(fp, uio, cred, flags) struct file *fp; struct uio *uio; struct ucred *cred; + int flags; { int error = 0; int orig_resid; |