Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libkvm Remove the #include <sys/user.h> from all of libkvm.
details: https://anonhg.NetBSD.org/src/rev/ad3287dc9dbc
branches: trunk
changeset: 326820:ad3287dc9dbc
user: dsl <dsl%NetBSD.org@localhost>
date: Wed Feb 19 20:21:22 2014 +0000
description:
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.
diffstat:
lib/libkvm/kvm.c | 5 ++---
lib/libkvm/kvm_alpha.c | 5 ++---
lib/libkvm/kvm_file.c | 5 ++---
lib/libkvm/kvm_hppa.c | 5 ++---
lib/libkvm/kvm_i386.c | 5 ++---
lib/libkvm/kvm_i386pae.c | 5 ++---
lib/libkvm/kvm_mips.c | 5 ++---
lib/libkvm/kvm_proc.c | 5 ++---
lib/libkvm/kvm_sh3.c | 5 ++---
lib/libkvm/kvm_sparc.c | 5 ++---
lib/libkvm/kvm_sparc64.c | 5 ++---
lib/libkvm/kvm_vax.c | 5 ++---
lib/libkvm/kvm_x86_64.c | 5 ++---
13 files changed, 26 insertions(+), 39 deletions(-)
diffs (truncated from 335 to 300 lines):
diff -r 42f39638f5fb -r ad3287dc9dbc lib/libkvm/kvm.c
--- a/lib/libkvm/kvm.c Wed Feb 19 19:29:33 2014 +0000
+++ b/lib/libkvm/kvm.c Wed Feb 19 20:21:22 2014 +0000
@@ -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>
diff -r 42f39638f5fb -r ad3287dc9dbc lib/libkvm/kvm_alpha.c
--- a/lib/libkvm/kvm_alpha.c Wed Feb 19 19:29:33 2014 +0000
+++ b/lib/libkvm/kvm_alpha.c Wed Feb 19 20:21:22 2014 +0000
@@ -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
diff -r 42f39638f5fb -r ad3287dc9dbc lib/libkvm/kvm_file.c
--- a/lib/libkvm/kvm_file.c Wed Feb 19 19:29:33 2014 +0000
+++ b/lib/libkvm/kvm_file.c Wed Feb 19 20:21:22 2014 +0000
@@ -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 @@
#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>
diff -r 42f39638f5fb -r ad3287dc9dbc lib/libkvm/kvm_hppa.c
--- a/lib/libkvm/kvm_hppa.c Wed Feb 19 19:29:33 2014 +0000
+++ b/lib/libkvm/kvm_hppa.c Wed Feb 19 20:21:22 2014 +0000
@@ -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 @@
*/
#include <sys/param.h>
-#include <sys/user.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <sys/kcore.h>
diff -r 42f39638f5fb -r ad3287dc9dbc lib/libkvm/kvm_i386.c
--- a/lib/libkvm/kvm_i386.c Wed Feb 19 19:29:33 2014 +0000
+++ b/lib/libkvm/kvm_i386.c Wed Feb 19 20:21:22 2014 +0000
@@ -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 @@
*/
#include <sys/param.h>
-#include <sys/user.h>
#include <sys/stat.h>
#include <sys/kcore.h>
#include <sys/types.h>
diff -r 42f39638f5fb -r ad3287dc9dbc lib/libkvm/kvm_i386pae.c
--- a/lib/libkvm/kvm_i386pae.c Wed Feb 19 19:29:33 2014 +0000
+++ b/lib/libkvm/kvm_i386pae.c Wed Feb 19 20:21:22 2014 +0000
@@ -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 @@
#define PAE
#include <sys/param.h>
-#include <sys/user.h>
#include <sys/stat.h>
#include <sys/kcore.h>
#include <sys/types.h>
diff -r 42f39638f5fb -r ad3287dc9dbc lib/libkvm/kvm_mips.c
--- a/lib/libkvm/kvm_mips.c Wed Feb 19 19:29:33 2014 +0000
+++ b/lib/libkvm/kvm_mips.c Wed Feb 19 20:21:22 2014 +0000
@@ -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 @@
*/
#include <sys/param.h>
-#include <sys/user.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <sys/kcore.h>
diff -r 42f39638f5fb -r ad3287dc9dbc lib/libkvm/kvm_proc.c
--- a/lib/libkvm/kvm_proc.c Wed Feb 19 19:29:33 2014 +0000
+++ b/lib/libkvm/kvm_proc.c Wed Feb 19 20:21:22 2014 +0000
@@ -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 @@
*/
#include <sys/param.h>
-#include <sys/user.h>
#include <sys/lwp.h>
#include <sys/proc.h>
#include <sys/exec.h>
diff -r 42f39638f5fb -r ad3287dc9dbc lib/libkvm/kvm_sh3.c
--- a/lib/libkvm/kvm_sh3.c Wed Feb 19 19:29:33 2014 +0000
+++ b/lib/libkvm/kvm_sh3.c Wed Feb 19 20:21:22 2014 +0000
@@ -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 @@
*/
#include <sys/param.h>
-#include <sys/user.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <sys/kcore.h>
diff -r 42f39638f5fb -r ad3287dc9dbc lib/libkvm/kvm_sparc.c
--- a/lib/libkvm/kvm_sparc.c Wed Feb 19 19:29:33 2014 +0000
+++ b/lib/libkvm/kvm_sparc.c Wed Feb 19 20:21:22 2014 +0000
@@ -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 @@
#include <sys/param.h>
#include <sys/exec.h>
-#include <sys/user.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <sys/core.h>
diff -r 42f39638f5fb -r ad3287dc9dbc lib/libkvm/kvm_sparc64.c
--- a/lib/libkvm/kvm_sparc64.c Wed Feb 19 19:29:33 2014 +0000
+++ b/lib/libkvm/kvm_sparc64.c Wed Feb 19 20:21:22 2014 +0000
@@ -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 @@
#include <sys/param.h>
#include <sys/exec.h>
-#include <sys/user.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <sys/core.h>
diff -r 42f39638f5fb -r ad3287dc9dbc lib/libkvm/kvm_vax.c
--- a/lib/libkvm/kvm_vax.c Wed Feb 19 19:29:33 2014 +0000
+++ b/lib/libkvm/kvm_vax.c Wed Feb 19 20:21:22 2014 +0000
@@ -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>
Home |
Main Index |
Thread Index |
Old Index