Module Name: src Committed By: dsl Date: Wed Feb 19 20:21:22 UTC 2014
Modified Files: src/lib/libkvm: kvm.c kvm_alpha.c kvm_file.c kvm_hppa.c kvm_i386.c kvm_i386pae.c kvm_mips.c kvm_proc.c kvm_sh3.c kvm_sparc.c kvm_sparc64.c kvm_vax.c kvm_x86_64.c Log Message: Remove the #include <sys/user.h> from all of libkvm. sys/user.h is a stub that just #includes sys/pcb.h. There are no 'struct pcb' anywhere in here, so I'm extremely doubtful any of the builds will fail. OTOH it might be relying on a header that pcb.h includes. In any case i386 and amd64 build. To generate a diff of this commit: cvs rdiff -u -r1.100 -r1.101 src/lib/libkvm/kvm.c cvs rdiff -u -r1.26 -r1.27 src/lib/libkvm/kvm_alpha.c cvs rdiff -u -r1.28 -r1.29 src/lib/libkvm/kvm_file.c cvs rdiff -u -r1.6 -r1.7 src/lib/libkvm/kvm_hppa.c cvs rdiff -u -r1.29 -r1.30 src/lib/libkvm/kvm_i386.c cvs rdiff -u -r1.1 -r1.2 src/lib/libkvm/kvm_i386pae.c cvs rdiff -u -r1.21 -r1.22 src/lib/libkvm/kvm_mips.c cvs rdiff -u -r1.89 -r1.90 src/lib/libkvm/kvm_proc.c cvs rdiff -u -r1.8 -r1.9 src/lib/libkvm/kvm_sh3.c cvs rdiff -u -r1.32 -r1.33 src/lib/libkvm/kvm_sparc.c cvs rdiff -u -r1.15 -r1.16 src/lib/libkvm/kvm_sparc64.c cvs rdiff -u -r1.19 -r1.20 src/lib/libkvm/kvm_vax.c cvs rdiff -u -r1.9 -r1.10 src/lib/libkvm/kvm_x86_64.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libkvm/kvm.c diff -u src/lib/libkvm/kvm.c:1.100 src/lib/libkvm/kvm.c:1.101 --- src/lib/libkvm/kvm.c:1.100 Sun Aug 26 23:09:42 2012 +++ src/lib/libkvm/kvm.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm.c,v 1.100 2012/08/26 23:09:42 martin Exp $ */ +/* $NetBSD: kvm.c,v 1.101 2014/02/19 20:21:22 dsl Exp $ */ /*- * Copyright (c) 1989, 1992, 1993 @@ -38,12 +38,11 @@ #if 0 static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94"; #else -__RCSID("$NetBSD: kvm.c,v 1.100 2012/08/26 23:09:42 martin Exp $"); +__RCSID("$NetBSD: kvm.c,v 1.101 2014/02/19 20:21:22 dsl Exp $"); #endif #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> -#include <sys/user.h> #include <sys/lwp.h> #include <sys/proc.h> #include <sys/ioctl.h> Index: src/lib/libkvm/kvm_alpha.c diff -u src/lib/libkvm/kvm_alpha.c:1.26 src/lib/libkvm/kvm_alpha.c:1.27 --- src/lib/libkvm/kvm_alpha.c:1.26 Mon Jan 27 21:00:01 2014 +++ src/lib/libkvm/kvm_alpha.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_alpha.c,v 1.26 2014/01/27 21:00:01 matt Exp $ */ +/* $NetBSD: kvm_alpha.c,v 1.27 2014/02/19 20:21:22 dsl Exp $ */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -30,7 +30,6 @@ #define __KVM_ALPHA_PRIVATE /* see <machine/pte.h> */ #include <sys/param.h> -#include <sys/user.h> #include <sys/proc.h> #include <sys/stat.h> #include <sys/kcore.h> @@ -51,7 +50,7 @@ #include "kvm_private.h" -__RCSID("$NetBSD: kvm_alpha.c,v 1.26 2014/01/27 21:00:01 matt Exp $"); +__RCSID("$NetBSD: kvm_alpha.c,v 1.27 2014/02/19 20:21:22 dsl Exp $"); /*ARGSUSED*/ void Index: src/lib/libkvm/kvm_file.c diff -u src/lib/libkvm/kvm_file.c:1.28 src/lib/libkvm/kvm_file.c:1.29 --- src/lib/libkvm/kvm_file.c:1.28 Sun Sep 26 22:28:05 2010 +++ src/lib/libkvm/kvm_file.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_file.c,v 1.28 2010/09/26 22:28:05 jym Exp $ */ +/* $NetBSD: kvm_file.c,v 1.29 2014/02/19 20:21:22 dsl Exp $ */ /*- * Copyright (c) 1989, 1992, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)kvm_file.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: kvm_file.c,v 1.28 2010/09/26 22:28:05 jym Exp $"); +__RCSID("$NetBSD: kvm_file.c,v 1.29 2014/02/19 20:21:22 dsl Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -49,7 +49,6 @@ __RCSID("$NetBSD: kvm_file.c,v 1.28 2010 #include <sys/types.h> #undef _KERNEL #include <sys/param.h> -#include <sys/user.h> #include <sys/lwp.h> #include <sys/proc.h> #include <sys/exec.h> Index: src/lib/libkvm/kvm_hppa.c diff -u src/lib/libkvm/kvm_hppa.c:1.6 src/lib/libkvm/kvm_hppa.c:1.7 --- src/lib/libkvm/kvm_hppa.c:1.6 Mon Sep 20 23:23:16 2010 +++ src/lib/libkvm/kvm_hppa.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_hppa.c,v 1.6 2010/09/20 23:23:16 jym Exp $ */ +/* $NetBSD: kvm_hppa.c,v 1.7 2014/02/19 20:21:22 dsl Exp $ */ /*- * Copyright (c) 1989, 1992, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: kvm_hppa.c,v 1.6 2010/09/20 23:23:16 jym Exp $"); +__RCSID("$NetBSD: kvm_hppa.c,v 1.7 2014/02/19 20:21:22 dsl Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -49,7 +49,6 @@ __RCSID("$NetBSD: kvm_hppa.c,v 1.6 2010/ */ #include <sys/param.h> -#include <sys/user.h> #include <sys/proc.h> #include <sys/stat.h> #include <sys/kcore.h> Index: src/lib/libkvm/kvm_i386.c diff -u src/lib/libkvm/kvm_i386.c:1.29 src/lib/libkvm/kvm_i386.c:1.30 --- src/lib/libkvm/kvm_i386.c:1.29 Tue Oct 5 23:48:16 2010 +++ src/lib/libkvm/kvm_i386.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_i386.c,v 1.29 2010/10/05 23:48:16 jym Exp $ */ +/* $NetBSD: kvm_i386.c,v 1.30 2014/02/19 20:21:22 dsl Exp $ */ /*- * Copyright (c) 1989, 1992, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: kvm_i386.c,v 1.29 2010/10/05 23:48:16 jym Exp $"); +__RCSID("$NetBSD: kvm_i386.c,v 1.30 2014/02/19 20:21:22 dsl Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -47,7 +47,6 @@ __RCSID("$NetBSD: kvm_i386.c,v 1.29 2010 */ #include <sys/param.h> -#include <sys/user.h> #include <sys/stat.h> #include <sys/kcore.h> #include <sys/types.h> Index: src/lib/libkvm/kvm_i386pae.c diff -u src/lib/libkvm/kvm_i386pae.c:1.1 src/lib/libkvm/kvm_i386pae.c:1.2 --- src/lib/libkvm/kvm_i386pae.c:1.1 Tue Oct 5 23:48:16 2010 +++ src/lib/libkvm/kvm_i386pae.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_i386pae.c,v 1.1 2010/10/05 23:48:16 jym Exp $ */ +/* $NetBSD: kvm_i386pae.c,v 1.2 2014/02/19 20:21:22 dsl Exp $ */ /* * Copyright (c) 2010 Jean-Yves Migeon. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: kvm_i386pae.c,v 1.1 2010/10/05 23:48:16 jym Exp $"); +__RCSID("$NetBSD: kvm_i386pae.c,v 1.2 2014/02/19 20:21:22 dsl Exp $"); /* * This will expose PAE functions, macros, definitions and constants. @@ -36,7 +36,6 @@ __RCSID("$NetBSD: kvm_i386pae.c,v 1.1 20 #define PAE #include <sys/param.h> -#include <sys/user.h> #include <sys/stat.h> #include <sys/kcore.h> #include <sys/types.h> Index: src/lib/libkvm/kvm_mips.c diff -u src/lib/libkvm/kvm_mips.c:1.21 src/lib/libkvm/kvm_mips.c:1.22 --- src/lib/libkvm/kvm_mips.c:1.21 Sun Jan 23 06:28:52 2011 +++ src/lib/libkvm/kvm_mips.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_mips.c,v 1.21 2011/01/23 06:28:52 matt Exp $ */ +/* $NetBSD: kvm_mips.c,v 1.22 2014/02/19 20:21:22 dsl Exp $ */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -34,7 +34,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: kvm_mips.c,v 1.21 2011/01/23 06:28:52 matt Exp $"); +__RCSID("$NetBSD: kvm_mips.c,v 1.22 2014/02/19 20:21:22 dsl Exp $"); #endif /* LIBC_SCCS and not lint */ /* @@ -42,7 +42,6 @@ __RCSID("$NetBSD: kvm_mips.c,v 1.21 2011 */ #include <sys/param.h> -#include <sys/user.h> #include <sys/proc.h> #include <sys/stat.h> #include <sys/kcore.h> Index: src/lib/libkvm/kvm_proc.c diff -u src/lib/libkvm/kvm_proc.c:1.89 src/lib/libkvm/kvm_proc.c:1.90 --- src/lib/libkvm/kvm_proc.c:1.89 Tue Jun 5 08:23:06 2012 +++ src/lib/libkvm/kvm_proc.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_proc.c,v 1.89 2012/06/05 08:23:06 martin Exp $ */ +/* $NetBSD: kvm_proc.c,v 1.90 2014/02/19 20:21:22 dsl Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ #if 0 static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93"; #else -__RCSID("$NetBSD: kvm_proc.c,v 1.89 2012/06/05 08:23:06 martin Exp $"); +__RCSID("$NetBSD: kvm_proc.c,v 1.90 2014/02/19 20:21:22 dsl Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -79,7 +79,6 @@ __RCSID("$NetBSD: kvm_proc.c,v 1.89 2012 */ #include <sys/param.h> -#include <sys/user.h> #include <sys/lwp.h> #include <sys/proc.h> #include <sys/exec.h> Index: src/lib/libkvm/kvm_sh3.c diff -u src/lib/libkvm/kvm_sh3.c:1.8 src/lib/libkvm/kvm_sh3.c:1.9 --- src/lib/libkvm/kvm_sh3.c:1.8 Mon Sep 20 23:23:16 2010 +++ src/lib/libkvm/kvm_sh3.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_sh3.c,v 1.8 2010/09/20 23:23:16 jym Exp $ */ +/* $NetBSD: kvm_sh3.c,v 1.9 2014/02/19 20:21:22 dsl Exp $ */ /*- * Copyright (c) 1989, 1992, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: kvm_sh3.c,v 1.8 2010/09/20 23:23:16 jym Exp $"); +__RCSID("$NetBSD: kvm_sh3.c,v 1.9 2014/02/19 20:21:22 dsl Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -47,7 +47,6 @@ __RCSID("$NetBSD: kvm_sh3.c,v 1.8 2010/0 */ #include <sys/param.h> -#include <sys/user.h> #include <sys/proc.h> #include <sys/stat.h> #include <sys/kcore.h> Index: src/lib/libkvm/kvm_sparc.c diff -u src/lib/libkvm/kvm_sparc.c:1.32 src/lib/libkvm/kvm_sparc.c:1.33 --- src/lib/libkvm/kvm_sparc.c:1.32 Mon Sep 20 23:23:16 2010 +++ src/lib/libkvm/kvm_sparc.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_sparc.c,v 1.32 2010/09/20 23:23:16 jym Exp $ */ +/* $NetBSD: kvm_sparc.c,v 1.33 2014/02/19 20:21:22 dsl Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)kvm_sparc.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: kvm_sparc.c,v 1.32 2010/09/20 23:23:16 jym Exp $"); +__RCSID("$NetBSD: kvm_sparc.c,v 1.33 2014/02/19 20:21:22 dsl Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -49,7 +49,6 @@ __RCSID("$NetBSD: kvm_sparc.c,v 1.32 201 #include <sys/param.h> #include <sys/exec.h> -#include <sys/user.h> #include <sys/proc.h> #include <sys/stat.h> #include <sys/core.h> Index: src/lib/libkvm/kvm_sparc64.c diff -u src/lib/libkvm/kvm_sparc64.c:1.15 src/lib/libkvm/kvm_sparc64.c:1.16 --- src/lib/libkvm/kvm_sparc64.c:1.15 Mon Sep 20 23:23:16 2010 +++ src/lib/libkvm/kvm_sparc64.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_sparc64.c,v 1.15 2010/09/20 23:23:16 jym Exp $ */ +/* $NetBSD: kvm_sparc64.c,v 1.16 2014/02/19 20:21:22 dsl Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)kvm_sparc.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: kvm_sparc64.c,v 1.15 2010/09/20 23:23:16 jym Exp $"); +__RCSID("$NetBSD: kvm_sparc64.c,v 1.16 2014/02/19 20:21:22 dsl Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -49,7 +49,6 @@ __RCSID("$NetBSD: kvm_sparc64.c,v 1.15 2 #include <sys/param.h> #include <sys/exec.h> -#include <sys/user.h> #include <sys/proc.h> #include <sys/stat.h> #include <sys/core.h> Index: src/lib/libkvm/kvm_vax.c diff -u src/lib/libkvm/kvm_vax.c:1.19 src/lib/libkvm/kvm_vax.c:1.20 --- src/lib/libkvm/kvm_vax.c:1.19 Mon Jan 27 21:00:01 2014 +++ src/lib/libkvm/kvm_vax.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_vax.c,v 1.19 2014/01/27 21:00:01 matt Exp $ */ +/* $NetBSD: kvm_vax.c,v 1.20 2014/02/19 20:21:22 dsl Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -41,7 +41,6 @@ */ #include <sys/param.h> -#include <sys/user.h> #include <sys/proc.h> #include <sys/stat.h> #include <sys/types.h> @@ -60,7 +59,7 @@ #include "kvm_private.h" -__RCSID("$NetBSD: kvm_vax.c,v 1.19 2014/01/27 21:00:01 matt Exp $"); +__RCSID("$NetBSD: kvm_vax.c,v 1.20 2014/02/19 20:21:22 dsl Exp $"); struct vmstate { u_long end; Index: src/lib/libkvm/kvm_x86_64.c diff -u src/lib/libkvm/kvm_x86_64.c:1.9 src/lib/libkvm/kvm_x86_64.c:1.10 --- src/lib/libkvm/kvm_x86_64.c:1.9 Tue Jan 10 16:01:16 2012 +++ src/lib/libkvm/kvm_x86_64.c Wed Feb 19 20:21:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: kvm_x86_64.c,v 1.9 2012/01/10 16:01:16 chs Exp $ */ +/* $NetBSD: kvm_x86_64.c,v 1.10 2014/02/19 20:21:22 dsl Exp $ */ /*- * Copyright (c) 1989, 1992, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: kvm_x86_64.c,v 1.9 2012/01/10 16:01:16 chs Exp $"); +__RCSID("$NetBSD: kvm_x86_64.c,v 1.10 2014/02/19 20:21:22 dsl Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -47,7 +47,6 @@ __RCSID("$NetBSD: kvm_x86_64.c,v 1.9 201 */ #include <sys/param.h> -#include <sys/user.h> #include <sys/proc.h> #include <sys/stat.h> #include <sys/kcore.h>