diff options
author | 2000-04-19 08:34:50 +0000 | |
---|---|---|
committer | 2000-04-19 08:34:50 +0000 | |
commit | dc974da36d3f296eb33395633fd9f640eee3a239 (patch) | |
tree | 4829ea79bf0ffba7256f94bda11dc6e7bf005d32 /sys/kern/sys_pipe.c | |
parent | indent. (diff) | |
download | wireguard-openbsd-dc974da36d3f296eb33395633fd9f640eee3a239.tar.xz wireguard-openbsd-dc974da36d3f296eb33395633fd9f640eee3a239.zip |
Change struct file interface methods read and write to pass file offset in
and out.
Make pread/pwrite in netbsd & linux thread safe - which is the whole point
anyway.
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 431e1d29170..497d716288b 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_pipe.c,v 1.23 2000/01/27 18:56:13 art Exp $ */ +/* $OpenBSD: sys_pipe.c,v 1.24 2000/04/19 08:34:54 csapuntz Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -62,8 +62,8 @@ /* * interfaces to the outside world */ -int pipe_read __P((struct file *, struct uio *, struct ucred *)); -int pipe_write __P((struct file *, struct uio *, struct ucred *)); +int pipe_read __P((struct file *, off_t *, struct uio *, struct ucred *)); +int pipe_write __P((struct file *, off_t *, struct uio *, struct ucred *)); int pipe_close __P((struct file *, struct proc *)); int pipe_select __P((struct file *, int which, struct proc *)); int pipe_ioctl __P((struct file *, u_long, caddr_t, struct proc *)); @@ -264,8 +264,9 @@ pipeselwakeup(cpipe) /* ARGSUSED */ int -pipe_read(fp, uio, cred) +pipe_read(fp, poff, uio, cred) struct file *fp; + off_t *poff; struct uio *uio; struct ucred *cred; { @@ -390,8 +391,9 @@ pipe_read(fp, uio, cred) } int -pipe_write(fp, uio, cred) +pipe_write(fp, poff, uio, cred) struct file *fp; + off_t *poff; struct uio *uio; struct ucred *cred; { |