X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..94ff46dc2849db4d43eaaf144872decc522aafb4:/bsd/dev/dtrace/blist.c diff --git a/bsd/dev/dtrace/blist.c b/bsd/dev/dtrace/blist.c index 180d30ffb..6d219f95d 100644 --- a/bsd/dev/dtrace/blist.c +++ b/bsd/dev/dtrace/blist.c @@ -62,59 +62,12 @@ * $FreeBSD: src/sys/kern/subr_blist.c,v 1.5.2.1 2000/03/17 10:47:29 ps Exp $ */ -#if !defined(__APPLE__) -#ifdef _KERNEL - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#else - -#ifndef BLIST_NO_DEBUG -#define BLIST_DEBUG -#endif - -#define SWAPBLK_NONE ((daddr_t)-1) - -#include -#include -#include -#include -#include - -#define malloc(a, b, c) malloc(a) -#define free(a, b) free(a) - -typedef unsigned int u_daddr_t; - -#include - -void panic(const char *ctl, ...); - -#endif -#else /* is MacOS X */ -#ifdef KERNEL -#ifndef _KERNEL -#define _KERNEL /* Solaris vs. Darwin */ -#endif -#endif - typedef unsigned int u_daddr_t; #include #include #include #include -/* #include */ #include "blist.h" #include @@ -123,8 +76,6 @@ typedef unsigned int u_daddr_t; #define free _FREE #define M_SWAP M_TEMP -#endif /* __APPLE__ */ - /* * static support functions */ @@ -139,16 +90,6 @@ static void blst_copy(blmeta_t *scan, daddr_t blk, daddr_t radix, daddr_t skip, blist_t dest, daddr_t count); static daddr_t blst_radix_init(blmeta_t *scan, daddr_t radix, int skip, daddr_t count); -#ifndef _KERNEL -static void blst_radix_print(blmeta_t *scan, daddr_t blk, - daddr_t radix, int skip, int tab); -#endif - -#if !defined(__APPLE__) -#ifdef _KERNEL -static MALLOC_DEFINE(M_SWAP, "SWAP", "Swap space"); -#endif -#endif /* __APPLE__ */ /* * blist_create() - create a blist capable of handling up to the specified