* $DragonFly: src/lib/libkcore/kcore.c,v 1.6 2005/02/03 17:28:40 joerg Exp $
*/
+#include <sys/kinfo.h>
#include <sys/param.h>
#include <sys/fcntl.h>
* $DragonFly: src/lib/libkcore/kcore_sched.c,v 1.5 2006/08/03 16:40:46 swildner Exp $
*/
+#include <sys/kinfo.h>
#include <sys/param.h>
#include <assert.h>
* $DragonFly: src/lib/libkcore/kcore_tty.c,v 1.1 2004/12/22 11:01:49 joerg Exp $
*/
+#include <sys/kinfo.h>
#include <sys/param.h>
#include <err.h>
* $DragonFly: src/lib/libkcore/kcore_vfs.c,v 1.2 2004/12/22 11:01:49 joerg Exp $
*/
+#include <sys/kinfo.h>
#include <sys/param.h>
#include <err.h>
* $DragonFly: src/lib/libkinfo/kinfo_file.c,v 1.4 2004/12/21 15:07:42 joerg Exp $
*/
+#include <sys/kinfo.h>
#include <sys/param.h>
#include <sys/sysctl.h>
* $DragonFly: src/lib/libkinfo/kinfo_net.c,v 1.1 2005/05/01 04:05:35 hmp Exp $
*/
+#include <sys/kinfo.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
* $DragonFly: src/lib/libkinfo/kinfo_pcpu.c,v 1.3 2005/05/01 04:05:35 hmp Exp $
*/
+#include <sys/kinfo.h>
#include <sys/param.h>
#include <sys/socket.h>
* $DragonFly: src/lib/libkinfo/kinfo_sched.c,v 1.3 2005/04/27 16:16:30 hmp Exp $
*/
+#include <sys/kinfo.h>
#include <sys/param.h>
#include <sys/sysctl.h>
* $DragonFly: src/lib/libkinfo/kinfo_tty.c,v 1.1 2004/12/22 11:01:49 joerg Exp $
*/
+#include <sys/kinfo.h>
#include <sys/param.h>
#include <sys/sysctl.h>
* $DragonFly: src/lib/libkinfo/kinfo_vfs.c,v 1.4 2005/01/31 16:51:09 joerg Exp $
*/
+#include <sys/kinfo.h>
#include <sys/param.h>
#include <sys/sysctl.h>
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-
/*
* AMD64 machine dependent routines for kvm and minidumps.
*/
+#include <sys/user.h> /* MUST BE FIRST */
#include <sys/param.h>
-#include <sys/user.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <sys/mman.h>
#ifndef _SYS_KINFO_H_
#define _SYS_KINFO_H_
+#ifndef _KERNEL_STRUCTURES
+#define _KERNEL_STRUCTURES
+#endif
+
#ifndef _SYS_TYPES_H_
#include <sys/types.h>
#endif
#endif
#include <sys/resource.h>
#include <sys/rtprio.h>
-#ifndef _KERNEL_STRUCTURES
-#define _KERNEL_STRUCTURES
-#endif
#include <sys/proc.h>
struct kinfo_file {
u_long pr_ticks; /* temp storage for ticks until AST */
};
+#if defined(_KERNEL) || defined(_KERNEL_STRUCTURES)
+
/*
* Kernel shareable process resource limits. Because this structure
* is moderately large but changes infrequently, it is normally
struct varsymset ui_varsymset; /* variant symlinks */
};
+#endif
+
#ifdef _KERNEL
struct proc;
#define TIMER_ABSTIME 0x1 /* absolute timer */
#endif
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_KERNEL_STRUCTURES)
/*
* For krateprintf()
#endif
#ifdef _KERNEL
+
extern time_t time_second;
extern int64_t ntp_tick_permanent;
extern int64_t ntp_tick_acc;