summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2010-06-29 20:48:51 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2010-06-29 20:48:51 +0000
commit693db3ff2f0749d778f813ec7d133c71706a5fa9 (patch)
treeee8e4dd8d697650f7880be634c89c9ac5b407cf6 /sys
parentf52e852de8347e3de8fc7a856ea7139c09e9733b (diff)
Strip out ancient bits in struct user that were still used only by
the now-removed HPUX compat code. ok and build testing deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_sig.c5
-rw-r--r--sys/sys/user.h26
2 files changed, 2 insertions, 29 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index a6cbb2ec8e3..5bdcfcc2bf2 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sig.c,v 1.111 2010/06/29 02:46:43 tedu Exp $ */
+/* $OpenBSD: kern_sig.c,v 1.112 2010/06/29 20:48:50 guenther Exp $ */
/* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */
/*
@@ -68,7 +68,6 @@
#include <machine/cpu.h>
#include <uvm/uvm_extern.h>
-#include <sys/user.h> /* for coredump */
int filt_sigattach(struct knote *kn);
void filt_sigdetach(struct knote *kn);
@@ -1441,8 +1440,6 @@ coredump(struct proc *p)
vattr.va_size = 0;
VOP_SETATTR(vp, &vattr, cred, p);
p->p_acflag |= ACORE;
- bcopy(p, &p->p_addr->u_kproc.kp_proc, sizeof(struct proc));
- fill_eproc(p, &p->p_addr->u_kproc.kp_eproc);
io.io_proc = p;
io.io_vp = vp;
diff --git a/sys/sys/user.h b/sys/sys/user.h
index 39abab0110b..aebafb72943 100644
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: user.h,v 1.6 2003/06/02 23:28:22 millert Exp $ */
+/* $OpenBSD: user.h,v 1.7 2010/06/29 20:48:50 guenther Exp $ */
/* $NetBSD: user.h,v 1.10 1996/04/09 20:55:49 cgd Exp $ */
/*
@@ -57,28 +57,4 @@ struct user {
struct pcb u_pcb;
struct pstats u_stats; /* p_stats points here (use it!) */
-
- /*
- * Remaining fields only for core dump and/or ptrace--
- * not valid at other times!
- */
- struct kinfo_proc u_kproc; /* proc + eproc */
- struct md_coredump u_md; /* machine dependent glop */
};
-
-/*
- * Redefinitions to make the debuggers happy for now... This subterfuge
- * brought to you by coredump() and trace_req(). These fields are *only*
- * valid at those times!
- */
-#define U_ar0 u_kproc.kp_proc.p_md.md_regs /* copy of curproc->p_md.md_regs */
-#define U_tsize u_kproc.kp_eproc.e_vm.vm_tsize
-#define U_dsize u_kproc.kp_eproc.e_vm.vm_dsize
-#define U_ssize u_kproc.kp_eproc.e_vm.vm_ssize
-
-#ifndef _KERNEL
-#define u_ar0 U_ar0
-#define u_tsize U_tsize
-#define u_dsize U_dsize
-#define u_ssize U_ssize
-#endif /* _KERNEL */