Deleted Added
full compact
34c34
< * $FreeBSD: head/sys/kern/uipc_usrreq.c 81907 2001-08-19 04:30:13Z julian $
---
> * $FreeBSD: head/sys/kern/uipc_usrreq.c 83366 2001-09-12 08:38:13Z julian $
83c83
< static int unp_bind __P((struct unpcb *,struct sockaddr *, struct proc *));
---
> static int unp_bind __P((struct unpcb *,struct sockaddr *, struct thread *));
85c85
< struct proc *));
---
> struct thread *));
93c93
< static int unp_internalize __P((struct mbuf *, struct proc *));
---
> static int unp_internalize __P((struct mbuf *, struct thread *));
130c130
< uipc_attach(struct socket *so, int proto, struct proc *p)
---
> uipc_attach(struct socket *so, int proto, struct thread *td)
140c140
< uipc_bind(struct socket *so, struct sockaddr *nam, struct proc *p)
---
> uipc_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
147c147
< return unp_bind(unp, nam, p);
---
> return unp_bind(unp, nam, td);
151c151
< uipc_connect(struct socket *so, struct sockaddr *nam, struct proc *p)
---
> uipc_connect(struct socket *so, struct sockaddr *nam, struct thread *td)
157c157
< return unp_connect(so, nam, curproc);
---
> return unp_connect(so, nam, curthread);
197c197
< uipc_listen(struct socket *so, struct proc *p)
---
> uipc_listen(struct socket *so, struct thread *td)
203c203
< return unp_listen(unp, p);
---
> return unp_listen(unp, td->td_proc);
261c261
< struct mbuf *control, struct proc *p)
---
> struct mbuf *control, struct thread *td)
277c277
< if (control && (error = unp_internalize(control, p)))
---
> if (control && (error = unp_internalize(control, td)))
290c290
< error = unp_connect(so, nam, p);
---
> error = unp_connect(so, nam, td);
323c323
< error = unp_connect(so, nam, p);
---
> error = unp_connect(so, nam, td);
537c537
< unp->unp_rvnode = curproc->p_fd->fd_rdir;
---
> unp->unp_rvnode = curthread->td_proc->p_fd->fd_rdir;
579c579
< unp_bind(unp, nam, p)
---
> unp_bind(unp, nam, td)
582c582
< struct proc *p;
---
> struct thread *td;
602c602
< buf, p);
---
> buf, td);
630,631c630,631
< vattr.va_mode = (ACCESSPERMS & ~p->p_fd->fd_cmask);
< VOP_LEASE(nd.ni_dvp, p, p->p_ucred, LEASE_WRITE);
---
> vattr.va_mode = (ACCESSPERMS & ~td->td_proc->p_fd->fd_cmask);
> VOP_LEASE(nd.ni_dvp, td, td->td_proc->p_ucred, LEASE_WRITE);
643c643
< VOP_UNLOCK(vp, 0, p);
---
> VOP_UNLOCK(vp, 0, td);
650c650
< unp_connect(so, nam, p)
---
> unp_connect(so, nam, td)
653c653
< struct proc *p;
---
> struct thread *td;
669c669
< NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, buf, p);
---
> NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, buf, td);
679c679
< error = VOP_ACCESS(vp, VWRITE, p->p_ucred, p);
---
> error = VOP_ACCESS(vp, VWRITE, td->td_proc->p_ucred, td);
693c693
< (so3 = sonewconn3(so2, 0, p)) == 0) {
---
> (so3 = sonewconn3(so2, 0, td)) == 0) {
713,715c713,715
< unp3->unp_peercred.cr_uid = p->p_ucred->cr_uid;
< unp3->unp_peercred.cr_ngroups = p->p_ucred->cr_ngroups;
< memcpy(unp3->unp_peercred.cr_groups, p->p_ucred->cr_groups,
---
> unp3->unp_peercred.cr_uid = td->td_proc->p_ucred->cr_uid;
> unp3->unp_peercred.cr_ngroups = td->td_proc->p_ucred->cr_ngroups;
> memcpy(unp3->unp_peercred.cr_groups, td->td_proc->p_ucred->cr_groups,
959c959
< struct proc *p = curproc; /* XXX */
---
> struct thread *td = curthread; /* XXX */
972c972
< if (!fdavail(p, newfds)) {
---
> if (!fdavail(td, newfds)) {
1000c1000
< if (fdalloc(p, 0, &f))
---
> if (fdalloc(td, 0, &f))
1003c1003
< p->p_fd->fd_ofiles[f] = fp;
---
> td->td_proc->p_fd->fd_ofiles[f] = fp;
1012c1012
< if (fdalloc(p, 0, &f))
---
> if (fdalloc(td, 0, &f))
1015c1015
< p->p_fd->fd_ofiles[f] = fp;
---
> td->td_proc->p_fd->fd_ofiles[f] = fp;
1046c1046
< unp_internalize(control, p)
---
> unp_internalize(control, td)
1048c1048
< struct proc *p;
---
> struct thread *td;
1049a1050
> struct proc *p = td->td_proc;
1311c1312
< closef(*fpp, (struct proc *) NULL);
---
> closef(*fpp, (struct thread *) NULL);
1389c1390
< (void) closef(fp, (struct proc *)NULL);
---
> (void) closef(fp, (struct thread *)NULL);