-/* $OpenBSD: kvm_alpha.c,v 1.16 2015/12/19 18:40:30 mmcc Exp $ */
+/* $OpenBSD: kvm_alpha.c,v 1.17 2021/12/01 16:53:28 deraadt Exp $ */
/* $NetBSD: kvm_alpha.c,v 1.5 1996/10/01 21:12:05 cgd Exp $ */
/*
#define __KVM_ALPHA_PRIVATE /* see <machine/pte.h> */
-#include <sys/param.h>
+#include <sys/types.h>
+#include <sys/signal.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <sys/kcore.h>
int i;
cpu_kh = kd->cpu_data;
- ramsegs = (phys_ram_seg_t *)((char *)cpu_kh + ALIGN(sizeof *cpu_kh));
+ ramsegs = (phys_ram_seg_t *)((char *)cpu_kh + _ALIGN(sizeof *cpu_kh));
off = 0;
for (i = 0; i < cpu_kh->nmemsegs; i++) {
-/* $OpenBSD: kvm_amd64.c,v 1.14 2021/09/10 00:02:43 deraadt Exp $ */
+/* $OpenBSD: kvm_amd64.c,v 1.15 2021/12/01 16:53:28 deraadt Exp $ */
/* $NetBSD: kvm_x86_64.c,v 1.3 2002/06/05 22:01:55 fvdl Exp $ */
/*-
* x86-64 machine dependent routines for kvm.
*/
-#include <sys/param.h> /* MAXCOMLEN ALIGN */
#include <sys/types.h>
#include <sys/signal.h>
#include <sys/proc.h>
int i;
cpu_kh = kd->cpu_data;
- ramsegs = (void *)((char *)(void *)cpu_kh + ALIGN(sizeof *cpu_kh));
+ ramsegs = (void *)((char *)(void *)cpu_kh + _ALIGN(sizeof *cpu_kh));
off = 0;
for (i = 0; i < cpu_kh->nmemsegs; i++) {
-/* $OpenBSD: kvm_arm.c,v 1.10 2018/05/15 10:04:44 otto Exp $ */
+/* $OpenBSD: kvm_arm.c,v 1.11 2021/12/01 16:53:28 deraadt Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
* ARM machine dependent routines for kvm.
*/
-#include <sys/param.h>
+#include <sys/param.h> /* MAXCOMLEN */
+#include <sys/types.h>
#include <sys/core.h>
#include <sys/kcore.h>
-#include <sys/vnode.h>
#include <unistd.h>
#include <stdlib.h>
-/* $OpenBSD: kvm_arm64.c,v 1.1 2017/01/11 14:32:36 patrick Exp $ */
+/* $OpenBSD: kvm_arm64.c,v 1.2 2021/12/01 16:53:28 deraadt Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
* ARM64 machine dependent routines for kvm.
*/
-#include <sys/param.h>
+#include <sys/param.h> /* MAXCOMLEN for sys/core.h */
+#include <sys/types.h>
#include <sys/core.h>
#include <sys/kcore.h>
-#include <sys/vnode.h>
#include <unistd.h>
#include <stdlib.h>
-/* $OpenBSD: kvm_hppa.c,v 1.10 2015/12/19 18:40:30 mmcc Exp $ */
+/* $OpenBSD: kvm_hppa.c,v 1.11 2021/12/01 16:53:28 deraadt Exp $ */
/*
* Copyright (c) 2002, Miodrag Vallat.
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <sys/param.h>
+#include <sys/types.h>
+#include <sys/signal.h>
#include <sys/proc.h>
#include <sys/stat.h>
-/* $OpenBSD: kvm_i386.c,v 1.27 2015/12/19 18:40:30 mmcc Exp $ */
+/* $OpenBSD: kvm_i386.c,v 1.28 2021/12/01 16:53:28 deraadt Exp $ */
/* $NetBSD: kvm_i386.c,v 1.9 1996/03/18 22:33:38 thorpej Exp $ */
/*-
* vm code will one day obsolete this module.
*/
-#include <sys/param.h>
+#include <sys/types.h>
+#include <sys/signal.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <kvm.h>
#include <uvm/uvm_extern.h>
+#include <machine/param.h>
#include <machine/vmparam.h>
#include <machine/pmap.h>
-/* $OpenBSD: kvm_m88k.c,v 1.6 2015/12/19 18:40:30 mmcc Exp $ */
+/* $OpenBSD: kvm_m88k.c,v 1.7 2021/12/01 16:53:28 deraadt Exp $ */
/* $NetBSD: kvm_alpha.c,v 1.2 1995/09/29 03:57:48 cgd Exp $ */
/*
* rights to redistribute these changes.
*/
-#include <sys/param.h>
+#include <sys/param.h> /* MAXCOMLEN */
+#include <sys/types.h>
+#include <sys/signal.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <unistd.h>
-/* $OpenBSD: kvm_mips64.c,v 1.16 2018/05/03 16:42:07 zhuk Exp $ */
+/* $OpenBSD: kvm_mips64.c,v 1.17 2021/12/01 16:53:28 deraadt Exp $ */
/* $NetBSD: kvm_mips.c,v 1.3 1996/03/18 22:33:44 thorpej Exp $ */
/*-
* vm code will one day obsolete this module.
*/
-#include <sys/param.h>
+#include <sys/types.h>
+#include <sys/signal.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <sys/sysctl.h>
-/* $OpenBSD: kvm_powerpc.c,v 1.10 2015/12/19 18:40:30 mmcc Exp $ */
+/* $OpenBSD: kvm_powerpc.c,v 1.11 2021/12/01 16:53:28 deraadt Exp $ */
/*-
* Copyright (C) 1996 Wolfgang Solfrank.
* PowerPC machine dependent routines for kvm.
*/
-#include <sys/param.h>
-#include <sys/exec.h>
+#include <sys/param.h> /* MAXCOMLEN */
+#include <sys/types.h>
+#include <sys/signal.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <sys/core.h>
-/* $OpenBSD: kvm_powerpc64.c,v 1.1 2020/06/28 09:46:58 kettenis Exp $ */
+/* $OpenBSD: kvm_powerpc64.c,v 1.2 2021/12/01 16:53:28 deraadt Exp $ */
/*
* Copyright (c) 2007 Miodrag Vallat.
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/param.h>
+#include <sys/param.h> /* MAXCOMLEN */
+#include <sys/types.h>
#include <sys/core.h>
#include <sys/kcore.h>
-#include <sys/vnode.h>
#include <unistd.h>
#include <stdlib.h>
-/* $OpenBSD: kvm_riscv64.c,v 1.1 2021/04/29 20:00:18 drahn Exp $ */
+/* $OpenBSD: kvm_riscv64.c,v 1.2 2021/12/01 16:53:28 deraadt Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
* RISCV machine dependent routines for kvm.
*/
-#include <sys/param.h>
+#include <sys/param.h> /* MAXCOMLEN */
+#include <sys/types.h>
#include <sys/core.h>
#include <sys/kcore.h>
-#include <sys/vnode.h>
#include <unistd.h>
#include <stdlib.h>
-/* $OpenBSD: kvm_sh.c,v 1.7 2020/06/28 09:45:12 kettenis Exp $ */
+/* $OpenBSD: kvm_sh.c,v 1.8 2021/12/01 16:53:28 deraadt Exp $ */
/*
* Copyright (c) 2007 Miodrag Vallat.
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/param.h>
+#include <sys/param.h> /* MAXCOMLEN */
+#include <sys/types.h>
#include <sys/core.h>
#include <sys/kcore.h>
-#include <sys/vnode.h>
#include <unistd.h>
#include <stdlib.h>
-/* $OpenBSD: kvm_sparc64.c,v 1.11 2021/10/06 00:42:47 deraadt Exp $ */
+/* $OpenBSD: kvm_sparc64.c,v 1.12 2021/12/01 16:53:28 deraadt Exp $ */
/* $NetBSD: kvm_sparc64.c,v 1.7 2001/08/05 03:33:15 matt Exp $ */
/*-
* vm code will one day obsolete this module.
*/
-#include <sys/param.h> /* MAXCOMLEN PAGE_SIZE */
+#include <sys/param.h> /* MAXCOMLEN */
#include <sys/types.h>
#include <sys/signal.h>
#include <sys/exec.h>
#include <uvm/uvm_extern.h>
+#include <machine/param.h>
#include <machine/vmparam.h>
#include <machine/pmap.h>
#include <machine/kcore.h>