diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-01-09 22:27:13 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-01-09 22:27:13 +0000 |
commit | 332a483dedd5c976b45635d3ef8337dfdd377f08 (patch) | |
tree | bcd0800a8732b7099fd64ce366155836b0f6e6ce /sys/compat/hpux | |
parent | c88cb37963768d4ddbf78335478986b31599e25a (diff) |
Remove fetch(9) and store(9) functions from the kernel, and replace the few
remaining instances of them with appropriate copy(9) usage.
ok art@, tested on all arches unless my memory is non-ECC
Diffstat (limited to 'sys/compat/hpux')
-rw-r--r-- | sys/compat/hpux/hpux_compat.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/compat/hpux/hpux_compat.c b/sys/compat/hpux/hpux_compat.c index cb30435c0d2..ff660181c51 100644 --- a/sys/compat/hpux/hpux_compat.c +++ b/sys/compat/hpux/hpux_compat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_compat.c,v 1.21 2002/10/30 20:10:48 millert Exp $ */ +/* $OpenBSD: hpux_compat.c,v 1.22 2003/01/09 22:27:11 miod Exp $ */ /* $NetBSD: hpux_compat.c,v 1.35 1997/05/08 16:19:48 mycroft Exp $ */ /* @@ -256,7 +256,10 @@ hpux_sys_waitpid(p, v, retval) * pull it back, change the signal portion, and write * it back out. */ - rv = fuword((caddr_t)SCARG(uap, status)); + if ((error = copyin((caddr_t)SCARG(uap, status), &rv, + sizeof(int))) != 0) + return error; + if (WIFSTOPPED(rv)) { sig = WSTOPSIG(rv); rv = W_STOPCODE(bsdtohpuxsig(sig)); @@ -266,7 +269,7 @@ hpux_sys_waitpid(p, v, retval) rv = W_EXITCODE(xstat, bsdtohpuxsig(sig)) | WCOREDUMP(rv); } - (void)suword((caddr_t)SCARG(uap, status), rv); + error = copyout(&rv, (caddr_t)SCARG(uap, status), sizeof(int)); } return (error); } |