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_socket.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_socket.c')
| -rw-r--r-- | sys/compat/linux/linux_socket.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 3a9f77fc1be..caab7b4fbcf 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_socket.c,v 1.48 2014/02/13 13:10:34 mpi Exp $ */ +/* $OpenBSD: linux_socket.c,v 1.49 2014/03/26 05:23:42 guenther Exp $ */ /* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */ /* @@ -308,7 +308,7 @@ linux_bind(p, v, retval) namlen = lba.namelen; if (lba.name) { struct sockaddr *sa; - caddr_t sg = stackgap_init(p->p_emul); + caddr_t sg = stackgap_init(p); error = linux_sa_get(p, &sg, &sa, lba.name, &namlen); if (error) @@ -335,7 +335,7 @@ linux_connect(p, v, retval) struct linux_connect_args lca; struct sys_connect_args bca; struct sockaddr *sa; - caddr_t sg = stackgap_init(p->p_emul); + caddr_t sg = stackgap_init(p); int namlen; int error; @@ -816,7 +816,7 @@ linux_sendto(p, v, retval) struct sys_sendto_args bsa; int error; int tolen; - caddr_t sg = stackgap_init(p->p_emul); + caddr_t sg = stackgap_init(p); if ((error = copyin((caddr_t) uap, (caddr_t) &lsa, sizeof lsa))) return error; @@ -1224,7 +1224,7 @@ linux_sendmsg(p, v, retval) if (msg.msg_name) { struct sockaddr *sa; - caddr_t sg = stackgap_init(p->p_emul); + caddr_t sg = stackgap_init(p); nmsg = (struct msghdr *)stackgap_alloc(&sg, sizeof(struct msghdr)); |
