diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-07-22 06:13:09 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-07-22 06:13:09 +0000 |
commit | bf90844ed23846d32bd82f2b60ef39dd83175904 (patch) | |
tree | c44161b84cd9b79a95a4e96271835c0dbae7d619 /sys/kern/uipc_syscalls.c | |
parent | e5314494f334ef0f61a3c90f45fcc1e3cdef3da0 (diff) |
remove p arg from fdplock
Diffstat (limited to 'sys/kern/uipc_syscalls.c')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 9639c3b7e5c..41430a82df5 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_syscalls.c,v 1.59 2004/04/12 23:58:10 tedu Exp $ */ +/* $OpenBSD: uipc_syscalls.c,v 1.60 2004/07/22 06:13:08 tedu Exp $ */ /* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */ /* @@ -75,7 +75,7 @@ sys_socket(p, v, retval) struct file *fp; int fd, error; - fdplock(fdp, p); + fdplock(fdp); if ((error = falloc(p, &fp, &fd)) != 0) goto out; @@ -210,7 +210,7 @@ sys_accept(p, v, retval) /* Take note if socket was non-blocking. */ nflag = (fp->f_flag & FNONBLOCK); - fdplock(p->p_fd, p); + fdplock(p->p_fd); if ((error = falloc(p, &fp, &tmpfd)) != 0) { /* * Probably ran out of file descriptors. Put the @@ -344,7 +344,7 @@ sys_socketpair(p, v, retval) if (error) goto free1; - fdplock(fdp, p); + fdplock(fdp); if ((error = falloc(p, &fp1, &fd)) != 0) goto free2; sv[0] = fd; @@ -941,7 +941,7 @@ sys_pipe(struct proc *p, void *v, register_t *retval) error = copyout((caddr_t)fds, (caddr_t)SCARG(uap, fdp), 2 * sizeof (int)); if (error) { - fdplock(p->p_fd, p); + fdplock(p->p_fd); fdrelease(p, fds[0]); fdrelease(p, fds[1]); fdpunlock(p->p_fd); |