diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-10-30 06:32:05 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-10-30 06:32:05 +0000 |
| commit | 02c58685a4354c39fd2387a4b20e00c3f5d26096 (patch) | |
| tree | 3c9df194f59066cf56f290cfea6886eefc551a5e /sys/pc98 | |
| parent | 1c6972cf901bc9353c445d55f23bbe92d54e3dfe (diff) | |
Notes
Diffstat (limited to 'sys/pc98')
| -rw-r--r-- | sys/pc98/i386/machdep.c | 8 | ||||
| -rw-r--r-- | sys/pc98/pc98/machdep.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 95025ea1a527..ed1e1a260288 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -514,7 +514,7 @@ osendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) * if access is denied. */ if (grow_stack(p, (int)fp) == FALSE || - useracc((caddr_t)fp, sizeof(struct osigframe), B_WRITE) == FALSE) { + !useracc((caddr_t)fp, sizeof(struct osigframe), VM_PROT_WRITE)) { /* * Process has trashed its stack; give it an illegal * instruction to halt it in its tracks. @@ -661,7 +661,7 @@ sendsig(catcher, sig, mask, code) * access is denied. */ if (grow_stack(p, (int)sfp) == FALSE || - useracc((caddr_t)sfp, sizeof(struct sigframe), B_WRITE) == FALSE) { + !useracc((caddr_t)sfp, sizeof(struct sigframe), VM_PROT_WRITE)) { /* * Process has trashed its stack; give it an illegal * instruction to halt it in its tracks. @@ -782,7 +782,7 @@ osigreturn(p, uap) scp = uap->sigcntxp; - if (useracc((caddr_t)scp, sizeof (struct osigcontext), B_WRITE) == 0) + if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_WRITE)) return(EFAULT); eflags = scp->sc_ps; @@ -893,7 +893,7 @@ sigreturn(p, uap) ucp = uap->sigcntxp; eflags = ucp->uc_mcontext.mc_eflags; - if (useracc((caddr_t)ucp, sizeof(ucontext_t), B_WRITE) == 0) + if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_WRITE)) return(EFAULT); if (eflags & PSL_VM) { diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 95025ea1a527..ed1e1a260288 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -514,7 +514,7 @@ osendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) * if access is denied. */ if (grow_stack(p, (int)fp) == FALSE || - useracc((caddr_t)fp, sizeof(struct osigframe), B_WRITE) == FALSE) { + !useracc((caddr_t)fp, sizeof(struct osigframe), VM_PROT_WRITE)) { /* * Process has trashed its stack; give it an illegal * instruction to halt it in its tracks. @@ -661,7 +661,7 @@ sendsig(catcher, sig, mask, code) * access is denied. */ if (grow_stack(p, (int)sfp) == FALSE || - useracc((caddr_t)sfp, sizeof(struct sigframe), B_WRITE) == FALSE) { + !useracc((caddr_t)sfp, sizeof(struct sigframe), VM_PROT_WRITE)) { /* * Process has trashed its stack; give it an illegal * instruction to halt it in its tracks. @@ -782,7 +782,7 @@ osigreturn(p, uap) scp = uap->sigcntxp; - if (useracc((caddr_t)scp, sizeof (struct osigcontext), B_WRITE) == 0) + if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_WRITE)) return(EFAULT); eflags = scp->sc_ps; @@ -893,7 +893,7 @@ sigreturn(p, uap) ucp = uap->sigcntxp; eflags = ucp->uc_mcontext.mc_eflags; - if (useracc((caddr_t)ucp, sizeof(ucontext_t), B_WRITE) == 0) + if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_WRITE)) return(EFAULT); if (eflags & PSL_VM) { |
