diff options
author | peter <peter@FreeBSD.org> | 2001-09-20 04:56:42 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-09-20 04:56:42 +0000 |
commit | 15d80be8dbb22b90537b4bb24a4f12e9ad4afce4 (patch) | |
tree | 7d45bfd0c6399572d8e2ea72c53509ce40070559 /sys | |
parent | 956cee07ea6657783367609768016a0fe34189fb (diff) | |
download | FreeBSD-src-15d80be8dbb22b90537b4bb24a4f12e9ad4afce4.zip FreeBSD-src-15d80be8dbb22b90537b4bb24a4f12e9ad4afce4.tar.gz |
Pass 1: update for KSE and NFS changes. Somehow this got missed.
osf1_mount.c isn't complete yet.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/alpha/osf1/osf1_ioctl.c | 44 | ||||
-rw-r--r-- | sys/alpha/osf1/osf1_misc.c | 332 | ||||
-rw-r--r-- | sys/alpha/osf1/osf1_mount.c | 30 | ||||
-rw-r--r-- | sys/alpha/osf1/osf1_signal.c | 113 | ||||
-rw-r--r-- | sys/alpha/osf1/osf1_util.h | 2 |
5 files changed, 268 insertions, 253 deletions
diff --git a/sys/alpha/osf1/osf1_ioctl.c b/sys/alpha/osf1/osf1_ioctl.c index 1005a72..5f3ede1 100644 --- a/sys/alpha/osf1/osf1_ioctl.c +++ b/sys/alpha/osf1/osf1_ioctl.c @@ -56,18 +56,18 @@ /*#define IOCTL_DEBUG*/ -int osf1_ioctl_i __P((struct proc *p, struct ioctl_args *nuap, +int osf1_ioctl_i __P((struct thread *td, struct ioctl_args *nuap, int cmd, int dir, int len)); -int osf1_ioctl_t __P((struct proc *p, struct ioctl_args *nuap, +int osf1_ioctl_t __P((struct thread *td, struct ioctl_args *nuap, int cmd, int dir, int len)); -int osf1_ioctl_f __P((struct proc *p, struct ioctl_args *nuap, +int osf1_ioctl_f __P((struct thread *td, struct ioctl_args *nuap, int cmd, int dir, int len)); -int osf1_ioctl_m __P((struct proc *p, struct ioctl_args *nuap, +int osf1_ioctl_m __P((struct thread *td, struct ioctl_args *nuap, int cmd, int dir, int len)); int -osf1_ioctl(p, uap) - struct proc *p; +osf1_ioctl(td, uap) + struct thread *td; struct osf1_ioctl_args *uap; { char *dirstr; @@ -122,13 +122,13 @@ osf1_ioctl(p, uap) a.data = uap->data; switch (group) { case 'i': - return osf1_ioctl_i(p, &a, cmd, dir, len); + return osf1_ioctl_i(td, &a, cmd, dir, len); case 't': - return osf1_ioctl_t(p, &a, cmd, dir, len); + return osf1_ioctl_t(td, &a, cmd, dir, len); case 'f': - return osf1_ioctl_f(p, &a, cmd, dir, len); + return osf1_ioctl_f(td, &a, cmd, dir, len); case 'm': - return osf1_ioctl_m(p, &a, cmd, dir, len); + return osf1_ioctl_m(td, &a, cmd, dir, len); case 'S': /* * XXX SVR4 Streams IOCTLs are all unimpl. @@ -156,8 +156,8 @@ struct osf1_ifdevea { int -osf1_ioctl_i(p, uap, cmd, dir, len) - struct proc *p; +osf1_ioctl_i(td, uap, cmd, dir, len) + struct thread *td; struct ioctl_args /* { syscallarg(int) fd; syscallarg(u_long) com; @@ -185,7 +185,7 @@ osf1_ioctl_i(p, uap, cmd, dir, len) case 35: /* OSF/1 SIOCGIFBRDADDR */ case 37: /* OSF/1 SIOCGIFNETMASK */ /* same as in FreeBSD */ - return ioctl(p, uap); + return ioctl(td, uap); break; case 62: /* OSF/1 SIOCRPHYSADDR */ @@ -249,8 +249,8 @@ struct sgttyb { #endif int -osf1_ioctl_t(p, uap, cmd, dir, len) - struct proc *p; +osf1_ioctl_t(td, uap, cmd, dir, len) + struct thread *td; struct ioctl_args /* { syscallarg(int) fd; syscallarg(u_long) com; @@ -300,7 +300,7 @@ osf1_ioctl_t(p, uap, cmd, dir, len) return (ENOTTY); } - retval = ioctl(p, uap); + retval = ioctl(td, uap); #if 0 if (retval) printf("osf1_ioctl_t: cmd = %d, com = 0x%lx, retval = %d\n", @@ -314,8 +314,8 @@ osf1_ioctl_t(p, uap, cmd, dir, len) */ int -osf1_ioctl_f(p, uap, cmd, dir, len) - struct proc *p; +osf1_ioctl_f(td, uap, cmd, dir, len) + struct thread *td; struct ioctl_args /* { syscallarg(int) fd; syscallarg(int) com; @@ -342,7 +342,7 @@ osf1_ioctl_f(p, uap, cmd, dir, len) return (ENOTTY); } - return ioctl(p, uap); + return ioctl(td, uap); } /* @@ -350,8 +350,8 @@ osf1_ioctl_f(p, uap, cmd, dir, len) */ int -osf1_ioctl_m(p, uap, cmd, dir, len) - struct proc *p; +osf1_ioctl_m(td, uap, cmd, dir, len) + struct thread *td; struct ioctl_args /* { syscallarg(int) fd; syscallarg(int) com; @@ -373,5 +373,5 @@ osf1_ioctl_m(p, uap, cmd, dir, len) return (ENOTTY); } - return ioctl(p, uap); + return ioctl(td, uap); } diff --git a/sys/alpha/osf1/osf1_misc.c b/sys/alpha/osf1/osf1_misc.c index 521e24a..f266685 100644 --- a/sys/alpha/osf1/osf1_misc.c +++ b/sys/alpha/osf1/osf1_misc.c @@ -104,8 +104,8 @@ static const char osf1_emul_path[] = "/compat/osf1"; * be in exists. */ int -osf1_emul_find(p, sgp, prefix, path, pbuf, cflag) - struct proc *p; +osf1_emul_find(td, sgp, prefix, path, pbuf, cflag) + struct thread *td; caddr_t *sgp; /* Pointer to stackgap memory */ const char *prefix; char *path; @@ -115,6 +115,7 @@ osf1_emul_find(p, sgp, prefix, path, pbuf, cflag) int error; size_t len, sz; char *buf, *cp, *ptr; + struct ucred *ucred; struct nameidata nd; struct nameidata ndroot; struct vattr vat; @@ -159,7 +160,7 @@ osf1_emul_find(p, sgp, prefix, path, pbuf, cflag) ; *cp = '\0'; - NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, buf, p); + NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, buf, td); if ((error = namei(&nd)) != 0) { free(buf, M_TEMP); @@ -168,7 +169,7 @@ osf1_emul_find(p, sgp, prefix, path, pbuf, cflag) *cp = '/'; } else { - NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, buf, p); + NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, buf, td); if ((error = namei(&nd)) != 0) { free(buf, M_TEMP); @@ -184,7 +185,7 @@ osf1_emul_find(p, sgp, prefix, path, pbuf, cflag) * to the emulation root directory. This is expensive :-( */ NDINIT(&ndroot, LOOKUP, FOLLOW, UIO_SYSSPACE, osf1_emul_path, - p); + td); if ((error = namei(&ndroot)) != 0) { /* Cannot happen! */ @@ -193,12 +194,13 @@ osf1_emul_find(p, sgp, prefix, path, pbuf, cflag) return error; } - if ((error = VOP_GETATTR(nd.ni_vp, &vat, p->p_ucred, p)) != 0) { + ucred = td->td_proc->p_ucred; + if ((error = VOP_GETATTR(nd.ni_vp, &vat, ucred, td)) != 0) { goto bad; } - if ((error = VOP_GETATTR(ndroot.ni_vp, &vatroot, p->p_ucred, p)) - != 0) { + if ((error = VOP_GETATTR(ndroot.ni_vp, &vatroot, ucred, + td)) != 0) { goto bad; } @@ -233,8 +235,8 @@ bad: int -osf1_open(p, uap) - struct proc *p; +osf1_open(td, uap) + struct thread *td; struct osf1_open_args *uap; { struct open_args /* { @@ -245,20 +247,20 @@ osf1_open(p, uap) caddr_t sg; sg = stackgap_init(); - CHECKALTEXIST(p, &sg, uap->path); + CHECKALTEXIST(td, &sg, uap->path); SCARG(&a, path) = SCARG(uap, path); SCARG(&a, flags) = SCARG(uap, flags); /* XXX translate */ SCARG(&a, mode) = SCARG(uap, mode); - return open(p, &a); + return open(td, &a); } extern int totalphysmem; int -osf1_getsysinfo(p, uap) - struct proc *p; +osf1_getsysinfo(td, uap) + struct thread *td; struct osf1_getsysinfo_args *uap; { int error, retval; @@ -290,8 +292,8 @@ osf1_getsysinfo(p, uap) retval = 1; break; case OSF_GET_IEEE_FP_CONTROL: - error = copyout(&p->p_addr->u_pcb.pcb_fp_control,uap->buffer, - sizeof(p->p_addr->u_pcb.pcb_fp_control)); + error = copyout(&td->td_pcb->pcb_fp_control,uap->buffer, + sizeof(td->td_pcb->pcb_fp_control)); retval = 1; break; case OSF_GET_CPU_INFO: @@ -351,14 +353,14 @@ osf1_getsysinfo(p, uap) printf("osf1_getsysinfo called with unknown op=%ld\n", uap->op); return EINVAL; } - p->p_retval[0] = retval; + td->td_retval[0] = retval; return(error); } int -osf1_setsysinfo(p, uap) - struct proc *p; +osf1_setsysinfo(td, uap) + struct thread *td; struct osf1_setsysinfo_args *uap; { int error; @@ -372,7 +374,7 @@ osf1_setsysinfo(p, uap) if ((error = copyin(uap->buffer, &temp, sizeof(temp)))) break; - fp_control = &p->p_addr->u_pcb.pcb_fp_control; + fp_control = &td->td_pcb->pcb_fp_control; *fp_control = temp & IEEE_TRAP_ENABLE_MASK; break; } @@ -385,8 +387,8 @@ osf1_setsysinfo(p, uap) int -osf1_getrlimit(p, uap) - struct proc *p; +osf1_getrlimit(td, uap) + struct thread *td; struct osf1_getrlimit_args *uap; { struct __getrlimit_args /* { @@ -405,13 +407,13 @@ osf1_getrlimit(p, uap) return (0); SCARG(&a, rlp) = (struct rlimit *)SCARG(uap, rlp); - return getrlimit(p, &a); + return getrlimit(td, &a); } int -osf1_setrlimit(p, uap) - struct proc *p; +osf1_setrlimit(td, uap) + struct thread *td; struct osf1_setrlimit_args *uap; { struct __setrlimit_args /* { @@ -430,7 +432,7 @@ osf1_setrlimit(p, uap) return (0); SCARG(&a, rlp) = (struct rlimit *)SCARG(uap, rlp); - return setrlimit(p, &a); + return setrlimit(td, &a); } @@ -439,11 +441,11 @@ osf1_setrlimit(p, uap) */ int -osf1_set_program_attributes(p, uap) - struct proc *p; +osf1_set_program_attributes(td, uap) + struct thread *td; struct osf1_set_program_attributes_args *uap; { - struct vmspace *vm = p->p_vmspace; + struct vmspace *vm = td->td_proc->p_vmspace; vm->vm_taddr = (caddr_t)uap->text_start; vm->vm_tsize = btoc(round_page(uap->text_len)); @@ -455,8 +457,8 @@ osf1_set_program_attributes(p, uap) int -osf1_mmap(p, uap) - struct proc *p; +osf1_mmap(td, uap) + struct thread *td; struct osf1_mmap_args *uap; { struct mmap_args /* { @@ -501,7 +503,7 @@ osf1_mmap(p, uap) */ addr = round_page((vm_offset_t)0x10000UL); len = (vm_offset_t)SCARG(&a, len); - map = &p->p_vmspace->vm_map; + map = &td->td_proc->p_vmspace->vm_map; if (!vm_map_findspace(map, addr, len, &newaddr)) { SCARG(&a,addr) = (caddr_t) newaddr; SCARG(&a, flags) |= (MAP_FIXED); @@ -542,7 +544,7 @@ osf1_mmap(p, uap) SCARG(&a, prot) |= PROT_READ; - retval = mmap(p, &a); + retval = mmap(td, &a); #ifdef DEBUG uprintf( "\nosf1_mmap: addr=%p (%p), len = 0x%lx, prot=0x%x, fd=%d, pad=0, pos=0x%lx", @@ -554,8 +556,8 @@ osf1_mmap(p, uap) } int -osf1_msync(p, uap) - struct proc *p; +osf1_msync(td, uap) + struct thread *td; struct osf1_msync_args *uap; { struct msync_args a; @@ -569,7 +571,7 @@ osf1_msync(p, uap) SCARG(&a, flags) |= MS_SYNC; if(SCARG(uap, flags) & OSF1_MS_INVALIDATE) SCARG(&a, flags) |= MS_INVALIDATE; - return(msync(p, &a)); + return(msync(td, &a)); } struct osf1_stat { @@ -598,8 +600,8 @@ struct osf1_stat { */ /* ARGSUSED */ int -osf1_stat(p, uap) - struct proc *p; +osf1_stat(td, uap) + struct thread *td; struct osf1_stat_args *uap; { int error; @@ -610,13 +612,13 @@ osf1_stat(p, uap) sg = stackgap_init(); - CHECKALTEXIST(p, &sg, uap->path); + CHECKALTEXIST(td, &sg, uap->path); NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, - SCARG(uap, path), p); + SCARG(uap, path), td); if ((error = namei(&nd))) return (error); - error = vn_stat(nd.ni_vp, &sb, p); + error = vn_stat(nd.ni_vp, &sb, td); vput(nd.ni_vp); if (error) return (error); @@ -631,8 +633,8 @@ osf1_stat(p, uap) */ /* ARGSUSED */ int -osf1_lstat(p, uap) - struct proc *p; +osf1_lstat(td, uap) + struct thread *td; register struct osf1_lstat_args *uap; { struct stat sb; @@ -641,13 +643,13 @@ osf1_lstat(p, uap) struct nameidata nd; caddr_t sg = stackgap_init(); - CHECKALTEXIST(p, &sg, uap->path); + CHECKALTEXIST(td, &sg, uap->path); NDINIT(&nd, LOOKUP, NOFOLLOW | LOCKLEAF, UIO_USERSPACE, - SCARG(uap, path), p); + SCARG(uap, path), td); if ((error = namei(&nd))) return (error); - error = vn_stat(nd.ni_vp, &sb, p); + error = vn_stat(nd.ni_vp, &sb, td); vput(nd.ni_vp); if (error) return (error); @@ -661,21 +663,22 @@ osf1_lstat(p, uap) * Return status information about a file descriptor. */ int -osf1_fstat(p, uap) - struct proc *p; +osf1_fstat(td, uap) + struct thread *td; register struct osf1_fstat_args *uap; { - register struct filedesc *fdp = p->p_fd; + register struct filedesc *fdp; register struct file *fp; struct stat ub; struct osf1_stat oub; int error; + fdp = td->td_proc->p_fd; if ((unsigned)SCARG(uap, fd) >= fdp->fd_nfiles || (fp = fdp->fd_ofiles[SCARG(uap, fd)]) == NULL) return (EBADF); - error = fo_stat(fp, &ub, p); + error = fo_stat(fp, &ub, td); cvtstat2osf1(&ub, &oub); if (error == 0) error = copyout((caddr_t)&oub, (caddr_t)SCARG(uap, sb), @@ -725,8 +728,8 @@ cvtstat2osf1(st, ost) int -osf1_mknod(p, uap) - struct proc *p; +osf1_mknod(td, uap) + struct thread *td; struct osf1_mknod_args *uap; { #if notanymore @@ -734,13 +737,13 @@ osf1_mknod(p, uap) caddr_t sg; sg = stackgap_init(); - CHECKALTEXIST(p, &sg, uap->path); + CHECKALTEXIST(td, &sg, uap->path); SCARG(&a, path) = SCARG(uap, path); SCARG(&a, mode) = SCARG(uap, mode); SCARG(&a, dev) = osf2bsd_dev(SCARG(uap, dev)); - return mknod(p, &a); + return mknod(td, &a); #endif printf("osf1_mknod no longer implemented\n"); return ENOSYS; @@ -748,16 +751,16 @@ osf1_mknod(p, uap) int -osf1_access(p, uap) - struct proc *p; +osf1_access(td, uap) + struct thread *td; struct osf1_access_args *uap; { caddr_t sg; sg = stackgap_init(); - CHECKALTEXIST(p, &sg, uap->path); + CHECKALTEXIST(td, &sg, uap->path); - return access(p, (struct access_args *)uap); + return access(td, (struct access_args *)uap); } @@ -770,8 +773,8 @@ struct osf1_flock { }; int -osf1_fcntl(p, uap) - struct proc *p; +osf1_fcntl(td, uap) + struct thread *td; struct osf1_fcntl_args *uap; { int error; @@ -810,7 +813,7 @@ osf1_fcntl(p, uap) if ((long)SCARG(uap, arg) & OSF1_FSYNC) tmp |= FFSYNC; SCARG(&a, arg) = tmp; - error = fcntl(p, &a); + error = fcntl(td, &a); break; case F_SETLK: @@ -834,7 +837,7 @@ osf1_fcntl(p, uap) return error; oarg = uap->arg; uap->arg = nflock; - error = fcntl(p, (struct fcntl_args *) uap); + error = fcntl(td, (struct fcntl_args *) uap); /* if (error) { printf("fcntl called with cmd=%d, args=0x%lx\n returns %d\n",uap->cmd,(long)uap->arg,error); printf("bsd_flock.l_type = 0x%x\n", bsd_flock.l_type); @@ -852,29 +855,29 @@ osf1_fcntl(p, uap) } break; default: - error = fcntl(p, (struct fcntl_args *) uap); + error = fcntl(td, (struct fcntl_args *) uap); if ((uap->cmd == OSF1_F_GETFL) && !error ) { - tmp = p->p_retval[0] & O_ACCMODE; - if (p->p_retval[0] & FNONBLOCK) + tmp = td->td_retval[0] & O_ACCMODE; + if (td->td_retval[0] & FNONBLOCK) tmp |= OSF1_FNONBLOCK; - if (p->p_retval[0] & FAPPEND) + if (td->td_retval[0] & FAPPEND) tmp |= OSF1_FAPPEND; - if (p->p_retval[0] & FDEFER) + if (td->td_retval[0] & FDEFER) tmp |= OSF1_FDEFER; - if (p->p_retval[0] & FASYNC) + if (td->td_retval[0] & FASYNC) tmp |= OSF1_FASYNC; - if (p->p_retval[0] & O_CREAT) + if (td->td_retval[0] & O_CREAT) tmp |= OSF1_FCREAT; - if (p->p_retval[0] & O_TRUNC) + if (td->td_retval[0] & O_TRUNC) tmp |= OSF1_FTRUNC; - if (p->p_retval[0] & O_EXCL) + if (td->td_retval[0] & O_EXCL) tmp |= OSF1_FEXCL; - if (p->p_retval[0] & FNDELAY) + if (td->td_retval[0] & FNDELAY) tmp |= OSF1_FNDELAY; - if (p->p_retval[0] & FFSYNC) + if (td->td_retval[0] & FFSYNC) tmp |= OSF1_FSYNC; - p->p_retval[0] = tmp; + td->td_retval[0] = tmp; } } @@ -884,8 +887,8 @@ osf1_fcntl(p, uap) #if 0 int -osf1_fcntl(p, uap) - struct proc *p; +osf1_fcntl(td, uap) + struct thread *td; struct osf1_fcntl_args *uap; { struct fcntl_args a; @@ -934,7 +937,7 @@ osf1_fcntl(p, uap) return (EINVAL); } - error = fcntl(p, &a); + error = fcntl(td, &a); if (error) return error; @@ -950,8 +953,8 @@ osf1_fcntl(p, uap) #endif int -osf1_socket(p, uap) - struct proc *p; +osf1_socket(td, uap) + struct thread *td; struct osf1_socket_args *uap; { struct socket_args a; @@ -963,13 +966,13 @@ osf1_socket(p, uap) SCARG(&a, type) = SCARG(uap, type); SCARG(&a, protocol) = SCARG(uap, protocol); - return socket(p, &a); + return socket(td, &a); } int -osf1_sendto(p, uap) - struct proc *p; +osf1_sendto(td, uap) + struct thread *td; register struct osf1_sendto_args *uap; { struct sendto_args a; @@ -984,13 +987,13 @@ osf1_sendto(p, uap) SCARG(&a, to) = (caddr_t)SCARG(uap, to); SCARG(&a, tolen) = SCARG(uap, tolen); - return sendto(p, &a); + return sendto(td, &a); } int -osf1_reboot(p, uap) - struct proc *p; +osf1_reboot(td, uap) + struct thread *td; struct osf1_reboot_args *uap; { struct reboot_args a; @@ -1014,13 +1017,13 @@ osf1_reboot(p, uap) if (SCARG(uap, opt) & OSF1_RB_DFLTROOT) SCARG(&a, opt) |= RB_DFLTROOT; - return reboot(p, &a); + return reboot(td, &a); } int -osf1_lseek(p, uap) - struct proc *p; +osf1_lseek(td, uap) + struct thread *td; struct osf1_lseek_args *uap; { struct lseek_args a; @@ -1030,7 +1033,7 @@ osf1_lseek(p, uap) SCARG(&a, offset) = SCARG(uap, offset); SCARG(&a, whence) = SCARG(uap, whence); - return lseek(p, &a); + return lseek(td, &a); } @@ -1049,14 +1052,16 @@ osf1_lseek(p, uap) * this function call. */ int -osf1_setuid(p, uap) - struct proc *p; +osf1_setuid(td, uap) + struct thread *td; struct osf1_setuid_args *uap; { + struct proc *p; int error; uid_t uid; struct ucred *newcred, *oldcred; + p = td->td_proc; uid = SCARG(uap, uid); oldcred = p->p_ucred; @@ -1093,14 +1098,16 @@ osf1_setuid(p, uap) * setuid(), you'll get a correct description of setgid(). */ int -osf1_setgid(p, uap) - struct proc *p; +osf1_setgid(td, uap) + struct thread *td; struct osf1_setgid_args *uap; { + struct proc *p; int error; gid_t gid; struct ucred *newcred, *oldcred; + p = td->td_proc; gid = SCARG(uap, gid); oldcred = p->p_ucred; @@ -1139,8 +1146,8 @@ struct osf1_iovec { }; #define STACKGAPLEN 400 int -osf1_readv(p, uap) - struct proc *p; +osf1_readv(td, uap) + struct thread *td; struct osf1_readv_args *uap; { int error, osize, nsize, i; @@ -1178,7 +1185,7 @@ osf1_readv(p, uap) if ((error = copyout(nio, (caddr_t)SCARG(&a, iovp), nsize))) goto punt; - error = readv(p, &a); + error = readv(td, &a); punt: free(oio, M_TEMP); @@ -1188,8 +1195,8 @@ punt: int -osf1_writev(p, uap) - struct proc *p; +osf1_writev(td, uap) + struct thread *td; struct osf1_writev_args *uap; { int error, i, nsize, osize; @@ -1227,7 +1234,7 @@ osf1_writev(p, uap) if ((error = copyout(nio, (caddr_t)SCARG(&a, iovp), nsize))) goto punt; - error = writev(p, &a); + error = writev(td, &a); punt: free(oio, M_TEMP); @@ -1240,27 +1247,27 @@ punt: * More of the stupid off_t padding! */ int -osf1_truncate(p, uap) - struct proc *p; +osf1_truncate(td, uap) + struct thread *td; struct osf1_truncate_args *uap; { caddr_t sg; struct truncate_args a; sg = stackgap_init(); - CHECKALTEXIST(p, &sg, uap->path); + CHECKALTEXIST(td, &sg, uap->path); SCARG(&a, path) = SCARG(uap, path); SCARG(&a, pad) = 0; SCARG(&a, length) = SCARG(uap, length); - return truncate(p, &a); + return truncate(td, &a); } int -osf1_ftruncate(p, uap) - struct proc *p; +osf1_ftruncate(td, uap) + struct thread *td; struct osf1_ftruncate_args *uap; { struct ftruncate_args a; @@ -1269,7 +1276,7 @@ osf1_ftruncate(p, uap) SCARG(&a, pad) = 0; SCARG(&a, length) = SCARG(uap, length); - return ftruncate(p, &a); + return ftruncate(td, &a); } @@ -1310,39 +1317,41 @@ osf2bsd_pathconf(name) int -osf1_pathconf(p, uap) - struct proc *p; +osf1_pathconf(td, uap) + struct thread *td; struct osf1_pathconf_args *uap; { if (osf2bsd_pathconf(&uap->name)) return (EINVAL); else - return (pathconf(p, (void *)uap)); + return (pathconf(td, (void *)uap)); } int -osf1_fpathconf(p, uap) - struct proc *p; +osf1_fpathconf(td, uap) + struct thread *td; struct osf1_fpathconf_args *uap; { if (osf2bsd_pathconf(&uap->name)) return (EINVAL); else - return (fpathconf(p, (void *)uap)); + return (fpathconf(td, (void *)uap)); } int -osf1_getrusage(p, uap) - struct proc *p; +osf1_getrusage(td, uap) + struct thread *td; struct osf1_getrusage_args *uap; { + struct proc *p; struct rusage *rup; struct osf1_rusage oru; + p = td->td_proc; switch (uap->who) { case RUSAGE_SELF: rup = &p->p_stats->p_ru; @@ -1369,8 +1378,8 @@ osf1_getrusage(p, uap) int -osf1_wait4(p, uap) - struct proc *p; +osf1_wait4(td, uap) + struct thread *td; struct osf1_wait4_args *uap; { int error; @@ -1384,7 +1393,7 @@ osf1_wait4(p, uap) rusage = stackgap_alloc(&sg, sizeof(struct rusage)); SCARG(uap, rusage) = (struct osf1_rusage *)rusage; } - if ((error = wait4(p, (struct wait_args *)uap))) + if ((error = wait4(td, (struct wait_args *)uap))) return error; if (orusage && (error = copyin(rusage, &ru, sizeof(ru)) == 0)){ TV_CP(ru.ru_utime, oru.ru_utime); @@ -1398,8 +1407,8 @@ osf1_wait4(p, uap) int -osf1_madvise(p, uap) - struct proc *p; +osf1_madvise(td, uap) + struct thread *td; struct osf1_madvise_args *uap; { @@ -1409,27 +1418,27 @@ osf1_madvise(p, uap) int -osf1_execve(p, uap) - struct proc *p; +osf1_execve(td, uap) + struct thread *td; struct osf1_execve_args *uap; { caddr_t sg; struct execve_args ap; sg = stackgap_init(); - CHECKALTEXIST(p, &sg, SCARG(uap, path)); + CHECKALTEXIST(td, &sg, SCARG(uap, path)); SCARG(&ap, fname) = SCARG(uap, path); SCARG(&ap, argv) = SCARG(uap, argp); SCARG(&ap, envv) = SCARG(uap, envp); - return execve(p, &ap); + return execve(td, &ap); } int -osf1_usleep_thread(p, uap) - struct proc *p; +osf1_usleep_thread(td, uap) + struct thread *td; struct osf1_usleep_thread_args *uap; { int error, s, timo; @@ -1454,7 +1463,7 @@ osf1_usleep_thread(p, uap) microtime(&tv); splx(s); - tsleep(p, PUSER|PCATCH, "OSF/1", timo); + tsleep(td, PUSER|PCATCH, "OSF/1", timo); if (SCARG(uap, slept) != NULL) { s = splclock(); @@ -1470,8 +1479,8 @@ osf1_usleep_thread(p, uap) } -int osf1_gettimeofday(p, uap) - struct proc *p; +int osf1_gettimeofday(td, uap) + struct thread *td; register struct osf1_gettimeofday_args *uap; { int error; @@ -1494,8 +1503,8 @@ int osf1_gettimeofday(p, uap) } -int osf1_select(p, uap) - struct proc *p; +int osf1_select(td, uap) + struct thread *td; register struct osf1_select_args *uap; { if (uap->tv) { @@ -1513,13 +1522,13 @@ int osf1_select(p, uap) if ((error=copyout((caddr_t)&tv, (caddr_t)uap->tv,sizeof(tv)))) return(error); } - return(select(p, (struct select_args *)uap)); + return(select(td, (struct select_args *)uap)); } int -osf1_setitimer(p, uap) - struct proc *p; +osf1_setitimer(td, uap) + struct thread *td; struct osf1_setitimer_args *uap; { @@ -1544,7 +1553,7 @@ osf1_setitimer(p, uap) return error; } uap->oitv = stackgap_alloc(&sg, sizeof(struct itimerval)); - if ((error = setitimer(p, (struct setitimer_args *)uap))) { + if ((error = setitimer(td, (struct setitimer_args *)uap))) { printf("%s(%d): error = %d\n", __FILE__, __LINE__, error); return error; } @@ -1563,8 +1572,8 @@ osf1_setitimer(p, uap) int -osf1_getitimer(p, uap) - struct proc *p; +osf1_getitimer(td, uap) + struct thread *td; struct osf1_getitimer_args *uap; { int error; @@ -1577,7 +1586,7 @@ osf1_getitimer(p, uap) sg = stackgap_init(); uap->itv = stackgap_alloc(&sg, sizeof(struct itimerval)); - if ((error = getitimer(p, (struct getitimer_args *)uap))) { + if ((error = getitimer(td, (struct getitimer_args *)uap))) { printf("%s(%d): error = %d\n", __FILE__, __LINE__, error); return error; } @@ -1595,8 +1604,8 @@ osf1_getitimer(p, uap) int -osf1_proplist_syscall(p, uap) - struct proc *p; +osf1_proplist_syscall(td, uap) + struct thread *td; struct osf1_proplist_syscall_args *uap; { @@ -1605,8 +1614,8 @@ osf1_proplist_syscall(p, uap) int -osf1_ntpgettime(p, uap) - struct proc *p; +osf1_ntpgettime(td, uap) + struct thread *td; struct osf1_ntpgettime_args *uap; { @@ -1615,8 +1624,8 @@ osf1_ntpgettime(p, uap) int -osf1_ntpadjtime(p, uap) - struct proc *p; +osf1_ntpadjtime(td, uap) + struct thread *td; struct osf1_ntpadjtime_args *uap; { @@ -1625,33 +1634,34 @@ osf1_ntpadjtime(p, uap) int -osf1_setpgrp(p, uap) - struct proc *p; +osf1_setpgrp(td, uap) + struct thread *td; struct osf1_setpgrp_args *uap; { - return(setpgid(p, (struct setpgid_args *)uap)); + return(setpgid(td, (struct setpgid_args *)uap)); } int -osf1_uswitch(p, uap) - struct proc *p; +osf1_uswitch(td, uap) + struct thread *td; struct osf1_uswitch_args *uap; { + struct proc *p; int rv; vm_map_entry_t entry; vm_offset_t zero; GIANT_REQUIRED; - + p = td->td_proc; zero = 0; if (uap->cmd == OSF1_USC_GET) { - if (vm_map_lookup_entry(&(p->p_vmspace->vm_map),0, &entry)) - p->p_retval[0] = OSF1_USW_NULLP; + if (vm_map_lookup_entry(&(p->p_vmspace->vm_map), 0, &entry)) + td->td_retval[0] = OSF1_USW_NULLP; else - p->p_retval[0] = 0; + td->td_retval[0] = 0; return(KERN_SUCCESS); } else if (uap->cmd == OSF1_USC_SET) if (uap->mask & OSF1_USW_NULLP) { @@ -1672,8 +1682,8 @@ osf1_uswitch(p, uap) int -osf1_classcntl(p, uap) - struct proc *p; +osf1_classcntl(td, uap) + struct thread *td; struct osf1_classcntl_args *uap; { @@ -1706,8 +1716,8 @@ struct osf1_tbl_sysinfo { #define TBL_SYSINFO 12 int -osf1_table(p, uap) - struct proc *p; +osf1_table(td, uap) + struct thread *td; struct osf1_table_args /*{ long id; long index; @@ -1756,8 +1766,8 @@ osf1_table(p, uap) int -osf1_sysinfo(p, uap) - struct proc *p; +osf1_sysinfo(td, uap) + struct thread *td; struct osf1_sysinfo_args /*{ int cmd; char *buf; @@ -1778,9 +1788,9 @@ osf1_sysinfo(p, uap) len = uap->count; name[0] = CTL_KERN; name[1] = KERN_HOSTNAME; - retval = userland_sysctl(p, name, 2, uap->buf, &len, + retval = userland_sysctl(td, name, 2, uap->buf, &len, 1, 0, 0, &bytes); - p->p_retval[0] = bytes; + td->td_retval[0] = bytes; return(retval); break; case 3: /* release of osf1 */ @@ -1807,6 +1817,6 @@ osf1_sysinfo(p, uap) } bytes = min(uap->count, strlen(string)+1); copyout(string, uap->buf, bytes); - p->p_retval[0] = bytes; + td->td_retval[0] = bytes; return(0); } diff --git a/sys/alpha/osf1/osf1_mount.c b/sys/alpha/osf1/osf1_mount.c index 867db38..7c0730c 100644 --- a/sys/alpha/osf1/osf1_mount.c +++ b/sys/alpha/osf1/osf1_mount.c @@ -56,13 +56,9 @@ #include <nfs/xdr_subs.h> #include <nfs/rpcv2.h> #include <nfs/nfsproto.h> -#include <nfs/nfs.h> -#include <nfs/nfsm_subs.h> -#include <nfs/nfsrvcache.h> -#include <nfs/nfsmount.h> -#include <nfs/nfsnode.h> -#include <nfs/nqnfs.h> -#include <nfs/nfsrtt.h> +#include <nfsclient/nfs.h> +#include <nfsclient/nfsmount.h> +#include <nfsclient/nfsargs.h> #include <sys/sysent.h> #include <alpha/osf1/osf1_signal.h> @@ -73,9 +69,9 @@ void bsd2osf_statfs __P((struct statfs *, struct osf1_statfs *)); -int osf1_mount_mfs __P((struct proc *, struct osf1_mount_args *, +int osf1_mount_mfs __P((struct thread *, struct osf1_mount_args *, struct mount_args *)); -int osf1_mount_nfs __P((struct proc *, struct osf1_mount_args *, +int osf1_mount_nfs __P((struct thread *, struct osf1_mount_args *, struct mount_args *)); #ifdef notanymore @@ -119,8 +115,8 @@ bzero(osfs, sizeof (struct osf1_statfs)); } int -osf1_statfs(p, uap) - struct proc *p; +osf1_statfs(td, uap) + struct thread *td; struct osf1_statfs_args *uap; { int error; @@ -129,13 +125,13 @@ osf1_statfs(p, uap) struct osf1_statfs osfs; struct nameidata nd; - NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, SCARG(uap, path), p); + NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, SCARG(uap, path), td); if ((error = namei(&nd))) return (error); mp = nd.ni_vp->v_mount; sp = &mp->mnt_stat; vrele(nd.ni_vp); - if ((error = VFS_STATFS(mp, sp, p))) + if ((error = VFS_STATFS(mp, sp, td))) return (error); sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK; bsd2osf_statfs(sp, &osfs); @@ -144,8 +140,8 @@ osf1_statfs(p, uap) } int -osf1_fstatfs(p, uap) - struct proc *p; +osf1_fstatfs(td, uap) + struct thread *td; struct osf1_fstatfs_args *uap; { int error; @@ -205,9 +201,9 @@ osf1_getfsstat(p, uap) count++; } if (osf_sfsp && count > maxcount) - p->p_retval[0] = maxcount; + td->td_retval[0] = maxcount; else - p->p_retval[0] = count; + td->td_retval[0] = count; return (0); } diff --git a/sys/alpha/osf1/osf1_signal.c b/sys/alpha/osf1/osf1_signal.c index b35acad..41f7f0d 100644 --- a/sys/alpha/osf1/osf1_signal.c +++ b/sys/alpha/osf1/osf1_signal.c @@ -210,8 +210,8 @@ bsd_to_osf1_sigaltstack(bss, oss) } int -osf1_sigaction(p, uap) - struct proc *p; +osf1_sigaction(td, uap) + struct thread *td; struct osf1_sigaction_args *uap; { int error; @@ -226,7 +226,7 @@ osf1_sigaction(p, uap) if (osf1_sigdbg && uap->sigtramp) uprintf("osf1_sigaction: trampoline handler at %p\n", uap->sigtramp); - p->p_md.osf_sigtramp = uap->sigtramp; + td->td_md.osf_sigtramp = uap->sigtramp; if (oosa != NULL) obsa = stackgap_alloc(&sg, sizeof(struct sigaction)); else @@ -245,7 +245,7 @@ osf1_sigaction(p, uap) SCARG(&sa, act) = nbsa; SCARG(&sa, oact) = obsa; - if ((error = sigaction(p, &sa)) != 0) + if ((error = sigaction(td, &sa)) != 0) return error; if (oosa != NULL) { @@ -260,8 +260,8 @@ osf1_sigaction(p, uap) } int -osf1_sigaltstack(p, uap) - register struct proc *p; +osf1_sigaltstack(td, uap) + register struct thread *td; struct osf1_sigaltstack_args *uap; { int error; @@ -292,7 +292,7 @@ osf1_sigaltstack(p, uap) SCARG(&sa, ss) = nbss; SCARG(&sa, oss) = obss; - if ((error = sigaltstack(p, &sa)) != 0) + if ((error = sigaltstack(td, &sa)) != 0) return error; if (obss != NULL) { @@ -307,20 +307,22 @@ osf1_sigaltstack(p, uap) } int -osf1_signal(p, uap) - register struct proc *p; +osf1_signal(td, uap) + register struct thread *td; struct osf1_signal_args *uap; { + struct proc *p; int error, signum; caddr_t sg; + p = td->td_proc; sg = stackgap_init(); signum = OSF1_SIGNO(SCARG(uap, signum)); if (signum <= 0 || signum > OSF1_NSIG) { if (OSF1_SIGCALL(SCARG(uap, signum)) == OSF1_SIGNAL_MASK || OSF1_SIGCALL(SCARG(uap, signum)) == OSF1_SIGDEFER_MASK) - p->p_retval[0] = -1; + td->td_retval[0] = -1; return EINVAL; } @@ -344,7 +346,7 @@ osf1_signal(p, uap) SCARG(&sa, oset) = NULL; if ((error = copyout(&mask, bmask, sizeof(mask))) != 0) return (error); - return sigprocmask(p, &sa); + return sigprocmask(td, &sa); } /* FALLTHROUGH */ @@ -368,15 +370,15 @@ osf1_signal(p, uap) #endif if ((error = copyout(&sa, nbsa, sizeof(sa))) != 0) return error; - if ((error = sigaction(p, &sa_args)) != 0) { + if ((error = sigaction(td, &sa_args)) != 0) { DPRINTF("signal: sigaction failed: %d\n", error); - p->p_retval[0] = -1; + td->td_retval[0] = -1; return error; } if ((error = copyin(obsa, &sa, sizeof(sa))) != 0) return error; - p->p_retval[0] = (long)sa.sa_handler; + td->td_retval[0] = (long)sa.sa_handler; return 0; } @@ -394,7 +396,7 @@ osf1_signal(p, uap) SCARG(&sa, oset) = NULL; if ((error = copyout(&set, bset, sizeof(set))) != 0) return (error); - return sigprocmask(p, &sa); + return sigprocmask(td, &sa); } case OSF1_SIGRELSE_MASK: @@ -411,7 +413,7 @@ osf1_signal(p, uap) SCARG(&sa, oset) = NULL; if ((error = copyout(&set, bset, sizeof(set))) != 0) return (error); - return sigprocmask(p, &sa); + return sigprocmask(td, &sa); } @@ -430,7 +432,7 @@ osf1_signal(p, uap) sa.sa_flags = 0; if ((error = copyout(&sa, bsa, sizeof(sa))) != 0) return error; - if ((error = sigaction(p, &sa_args)) != 0) { + if ((error = sigaction(td, &sa_args)) != 0) { DPRINTF(("sigignore: sigaction failed\n")); return error; } @@ -451,7 +453,7 @@ osf1_signal(p, uap) SCARG(&sa, sigmask) = bmask; if ((error = copyout(&set, bmask, sizeof(set))) != 0) return (error); - return sigsuspend(p, &sa); + return sigsuspend(td, &sa); } default: @@ -460,21 +462,23 @@ osf1_signal(p, uap) } int -osf1_sigprocmask(p, uap) - register struct proc *p; +osf1_sigprocmask(td, uap) + register struct thread *td; struct osf1_sigprocmask_args /* { syscallarg(int) how; syscallarg(osf1_sigset_t *) set; } */ *uap; { + struct proc *p; int error; osf1_sigset_t oss; sigset_t bss; + p = td->td_proc; error = 0; /* Fix the return value first if needed */ bsd_to_osf1_sigset(&p->p_sigmask, &oss); - p->p_retval[0] = oss; + td->td_retval[0] = oss; osf1_to_bsd_sigset(&uap->mask, &bss); @@ -506,15 +510,17 @@ osf1_sigprocmask(p, uap) } int -osf1_sigpending(p, uap) - register struct proc *p; +osf1_sigpending(td, uap) + register struct thread *td; struct osf1_sigpending_args /* { syscallarg(osf1_sigset_t *) mask; } */ *uap; { + struct proc *p; osf1_sigset_t oss; sigset_t bss; + p = td->td_proc; PROC_LOCK(p); bss = p->p_siglist; SIGSETAND(bss, p->p_sigmask); @@ -525,8 +531,8 @@ osf1_sigpending(p, uap) } int -osf1_sigsuspend(p, uap) - register struct proc *p; +osf1_sigsuspend(td, uap) + register struct thread *td; struct osf1_sigsuspend_args /* { syscallarg(osf1_sigset_t *) ss; } */ *uap; @@ -544,15 +550,14 @@ osf1_sigsuspend(p, uap) oss = SCARG(uap, ss); osf1_to_bsd_sigset(&oss, &bss); SCARG(&sa, sigmask) = bmask; - if ((error = copyout(&bss, bmask, sizeof(bss))) != 0){ + if ((error = copyout(&bss, bmask, sizeof(bss))) != 0) return (error); - } - return sigsuspend(p, &sa); + return sigsuspend(td, &sa); } int -osf1_kill(p, uap) - register struct proc *p; +osf1_kill(td, uap) + register struct thread *td; struct osf1_kill_args /* { syscallarg(int) pid; syscallarg(int) signum; @@ -562,7 +567,7 @@ osf1_kill(p, uap) SCARG(&ka, pid) = SCARG(uap, pid); SCARG(&ka, signum) = SCARG(uap, signum); - return kill(p, &ka); + return kill(td, &ka); } @@ -579,16 +584,18 @@ void osf1_sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) { int fsize, oonstack, rndfsize; + struct thread *td; struct proc *p; osiginfo_t *sip, ksi; struct trapframe *frame; struct sigacts *psp; - p = curproc; - PROC_LOCK_ASSERT(p, MA_OWNED); + td = curthread; + p = td->td_proc; + PROC_LOCK_ASSERT(td, MA_OWNED); psp = p->p_sigacts; - frame = p->p_frame; + frame = td->td_frame; oonstack = sigonstack(alpha_pal_rdusp()); fsize = sizeof ksi; rndfsize = ((fsize + 15) / 16) * 16; @@ -632,16 +639,16 @@ osf1_sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) ksi.si_sc.sc_ps = frame->tf_regs[FRAME_PS]; /* copy the registers. */ - fill_regs(p, (struct reg *)ksi.si_sc.sc_regs); + fill_regs(td, (struct reg *)ksi.si_sc.sc_regs); ksi.si_sc.sc_regs[R_ZERO] = 0xACEDBADE; /* magic number */ ksi.si_sc.sc_regs[R_SP] = alpha_pal_rdusp(); /* save the floating-point state, if necessary, then copy it. */ - alpha_fpstate_save(p, 1); /* XXX maybe write=0 */ - ksi.si_sc.sc_ownedfp = p->p_md.md_flags & MDP_FPUSED; - bcopy(&p->p_addr->u_pcb.pcb_fp, (struct fpreg *)ksi.si_sc.sc_fpregs, + alpha_fpstate_save(td, 1); /* XXX maybe write=0 */ + ksi.si_sc.sc_ownedfp = td->td_md.md_flags & MDP_FPUSED; + bcopy(&td->td_pcb->pcb_fp, (struct fpreg *)ksi.si_sc.sc_fpregs, sizeof(struct fpreg)); - ksi.si_sc.sc_fp_control = p->p_addr->u_pcb.pcb_fp_control; + ksi.si_sc.sc_fp_control = td->td_pcb->pcb_fp_control; bzero(ksi.si_sc.sc_reserved, sizeof ksi.si_sc.sc_reserved); /* XXX */ ksi.si_sc.sc_xxx1[0] = 0; /* XXX */ ksi.si_sc.sc_xxx1[1] = 0; /* XXX */ @@ -666,7 +673,7 @@ osf1_sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) */ if (osf1_sigdbg) uprintf("attempting to call osf1 sigtramp\n"); - frame->tf_regs[FRAME_PC] = (u_int64_t)p->p_md.osf_sigtramp; + frame->tf_regs[FRAME_PC] = (u_int64_t)td->td_md.osf_sigtramp; frame->tf_regs[FRAME_A0] = sig; frame->tf_regs[FRAME_A1] = code; frame->tf_regs[FRAME_A2] = (u_int64_t)sip; @@ -685,13 +692,15 @@ osf1_sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) * improper privileges. */ int -osf1_sigreturn(struct proc *p, +osf1_sigreturn(struct thread *td, struct osf1_sigreturn_args /* { struct osigcontext *sigcntxp; } */ *uap) { struct osigcontext ksc, *scp; + struct proc *p; + p = td->td_proc; scp = uap->sigcntxp; if (useracc((caddr_t)scp, sizeof (*scp), VM_PROT_READ) == 0 ) { uprintf("uac fails\n"); @@ -723,28 +732,28 @@ osf1_sigreturn(struct proc *p, SIG_CANTMASK(p->p_sigmask); PROC_UNLOCK(p); - set_regs(p, (struct reg *)ksc.sc_regs); - p->p_frame->tf_regs[FRAME_PC] = ksc.sc_pc; - p->p_frame->tf_regs[FRAME_PS] = + set_regs(td, (struct reg *)ksc.sc_regs); + td->td_frame->tf_regs[FRAME_PC] = ksc.sc_pc; + td->td_frame->tf_regs[FRAME_PS] = (ksc.sc_ps | ALPHA_PSL_USERSET) & ~ALPHA_PSL_USERCLR; - p->p_frame->tf_regs[FRAME_FLAGS] = 0; /* full restore */ + td->td_frame->tf_regs[FRAME_FLAGS] = 0; /* full restore */ alpha_pal_wrusp(ksc.sc_regs[R_SP]); /* XXX ksc.sc_ownedfp ? */ - alpha_fpstate_drop(p); - bcopy((struct fpreg *)ksc.sc_fpregs, &p->p_addr->u_pcb.pcb_fp, + alpha_fpstate_drop(td); + bcopy((struct fpreg *)ksc.sc_fpregs, &td->td_pcb->pcb_fp, sizeof(struct fpreg)); - p->p_addr->u_pcb.pcb_fp_control = ksc.sc_fp_control; + td->td_pcb->pcb_fp_control = ksc.sc_fp_control; return (EJUSTRETURN); } extern int -osigstack(struct proc *p, struct osf1_osigstack_args *uap); +osigstack(struct thread *td, struct osf1_osigstack_args *uap); int -osf1_osigstack(p, uap) - register struct proc *p; +osf1_osigstack(td, uap) + register struct thread *td; struct osf1_osigstack_args /* { struct sigstack *nss; struct sigstack *oss; @@ -753,5 +762,5 @@ osf1_osigstack(p, uap) /* uprintf("osf1_osigstack: oss = %p, nss = %p",uap->oss, uap->nss); uprintf(" stack ptr = %p\n",p->p_sigacts->ps_sigstk.ss_sp);*/ - return(osigstack(p, uap)); + return(osigstack(td, uap)); } diff --git a/sys/alpha/osf1/osf1_util.h b/sys/alpha/osf1/osf1_util.h index 11eeade..1df4fbc 100644 --- a/sys/alpha/osf1/osf1_util.h +++ b/sys/alpha/osf1/osf1_util.h @@ -66,7 +66,7 @@ stackgap_alloc(sgp, sz) extern const char osf1_emul_path[]; -int osf1_emul_find __P((struct proc *, caddr_t *, const char *, char *, +int osf1_emul_find __P((struct thread *, caddr_t *, const char *, char *, char **, int)); #define CHECKALT(p, sgp, path, i) \ |