diff options
| author | 2014-03-26 05:23:41 +0000 | |
|---|---|---|
| committer | 2014-03-26 05:23:41 +0000 | |
| commit | 8f76f5add34ff13fa8a804c10695e708224e99b4 (patch) | |
| tree | 89d3b1dd1cb5e145e1de975c5db86c74df5912e4 /sys/compat/linux/linux_misc.c | |
| parent | Drop Apollo Domain keyboard support, now that hp300 has bitten the dust. (diff) | |
| download | wireguard-openbsd-8f76f5add34ff13fa8a804c10695e708224e99b4.tar.xz wireguard-openbsd-8f76f5add34ff13fa8a804c10695e708224e99b4.zip | |
Move p_emul and p_sigcode from proc to process.
Tweak the handling of ktrace EMUL when changing ktracing: only
generate one per process (not one per thread) and pass the correct
proc pointer down to the VFS layer. Permit generating of NAMI and
CSW records inside ktrace(2) itself.
ok deraadt@ millert@
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
| -rw-r--r-- | sys/compat/linux/linux_misc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 0a1b4d74355..f372f573ffc 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.c,v 1.87 2014/03/24 03:48:00 guenther Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.88 2014/03/26 05:23:42 guenther Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /*- @@ -463,7 +463,7 @@ linux_sys_statfs(p, v, retval) caddr_t sg; int error; - sg = stackgap_init(p->p_emul); + sg = stackgap_init(p); bsp = (struct statfs *) stackgap_alloc(&sg, sizeof (struct statfs)); LINUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path)); @@ -539,7 +539,7 @@ linux_sys_statfs64(struct proc *p, void *v, register_t *retval) caddr_t sg; int error; - sg = stackgap_init(p->p_emul); + sg = stackgap_init(p); bsp = (struct statfs *) stackgap_alloc(&sg, sizeof (struct statfs)); LINUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path)); @@ -574,7 +574,7 @@ linux_sys_fstatfs(p, v, retval) caddr_t sg; int error; - sg = stackgap_init(p->p_emul); + sg = stackgap_init(p); bsp = (struct statfs *) stackgap_alloc(&sg, sizeof (struct statfs)); SCARG(&bsa, fd) = SCARG(uap, fd); @@ -604,7 +604,7 @@ linux_sys_fstatfs64(struct proc *p, void *v, register_t *retval) caddr_t sg; int error; - sg = stackgap_init(p->p_emul); + sg = stackgap_init(p); bsp = (struct statfs *) stackgap_alloc(&sg, sizeof (struct statfs)); SCARG(&bsa, fd) = SCARG(uap, fd); @@ -1022,7 +1022,7 @@ linux_sys_utime(p, v, retval) struct timeval tv[2], *tvp; struct linux_utimbuf lut; - sg = stackgap_init(p->p_emul); + sg = stackgap_init(p); tvp = (struct timeval *) stackgap_alloc(&sg, sizeof(tv)); LINUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path)); @@ -1308,7 +1308,7 @@ linux_select1(struct proc *p, register_t *retval, int nfds, fd_set *readfds, timerclear(&utv); } - sg = stackgap_init(p->p_emul); + sg = stackgap_init(p); tvp = stackgap_alloc(&sg, sizeof(utv)); if ((error = copyout(&utv, tvp, sizeof(utv)))) return error; |
