diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-15 11:43:14 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-15 11:43:14 +0000 |
commit | 728f4224a361f7b3edf9598dfe126a56af36eee8 (patch) | |
tree | 47299835c26dea3af958a80c3f5acdd7484bf1cb /sys | |
parent | 3fcbb9c740612e7de0b3978b1d05394fb940567a (diff) |
Make this code build.
This could have never worked.
XXX - do we need this at all now that we have native p{read,write}{,v}?
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/netbsd/netbsd_pos_io.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/compat/netbsd/netbsd_pos_io.c b/sys/compat/netbsd/netbsd_pos_io.c index 28ed9a38814..00def668211 100644 --- a/sys/compat/netbsd/netbsd_pos_io.c +++ b/sys/compat/netbsd/netbsd_pos_io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_pos_io.c,v 1.6 2000/11/10 18:15:45 art Exp $ */ +/* $OpenBSD: netbsd_pos_io.c,v 1.7 2001/01/15 11:43:13 art Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ @@ -65,7 +65,7 @@ static int netbsd_check_set_pos __P((struct proc *, int, off_t)); * sys_lseek trimmed down */ static int -netbsd_check_set_pos(p, fd) +netbsd_check_set_pos(p, fd, offset) struct proc *p; int fd; off_t offset; @@ -124,7 +124,7 @@ netbsd_sys_pread(p, v, retval) offset = SCARG(uap, offset); - if ((error = netbsd_check_set_pos(p, SCARG(uap, fd), offset) != 0) + if ((error = netbsd_check_set_pos(p, SCARG(uap, fd), offset)) != 0) return (error); fp = fdp->fd_ofiles[SCARG(uap, fd)]; aiov.iov_base = (caddr_t)SCARG(uap, buf); @@ -192,7 +192,7 @@ netbsd_sys_preadv(p, v, retval) offset = SCARG(uap, offset); - if ((error = netbsd_check_set_pos(p, SCARG(uap, fd), offset) != 0) + if ((error = netbsd_check_set_pos(p, SCARG(uap, fd), offset)) != 0) return (error); fp = fdp->fd_ofiles[SCARG(uap, fd)]; /* note: can't use iovlen until iovcnt is validated */ @@ -287,7 +287,7 @@ netbsd_sys_pwrite(p, v, retval) offset = SCARG(uap, offset); - if ((error = netbsd_check_set_pos(p, SCARG(uap, fd), offset) != 0) + if ((error = netbsd_check_set_pos(p, SCARG(uap, fd), offset)) != 0) return (error); fp = fdp->fd_ofiles[SCARG(uap, fd)]; if ((fp->f_flag & FWRITE) == 0) @@ -361,7 +361,7 @@ netbsd_sys_pwritev(p, v, retval) offset = SCARG(uap, offset); - if ((error = netbsd_check_set_pos(p, SCARG(uap, fd), offset) != 0) + if ((error = netbsd_check_set_pos(p, SCARG(uap, fd), offset)) != 0) return (error); fp = fdp->fd_ofiles[SCARG(uap, fd)]; if ((fp->f_flag & FWRITE) == 0) { |