summaryrefslogtreecommitdiff
path: root/usr/src/boot/lib/libstand/zalloc_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/boot/lib/libstand/zalloc_defs.h')
-rw-r--r--usr/src/boot/lib/libstand/zalloc_defs.h31
1 files changed, 17 insertions, 14 deletions
diff --git a/usr/src/boot/lib/libstand/zalloc_defs.h b/usr/src/boot/lib/libstand/zalloc_defs.h
index 7f2cc1202c..f0de227529 100644
--- a/usr/src/boot/lib/libstand/zalloc_defs.h
+++ b/usr/src/boot/lib/libstand/zalloc_defs.h
@@ -1,5 +1,5 @@
/*
- * This module derived from code donated to the FreeBSD Project by
+ * This module derived from code donated to the FreeBSD Project by
* Matthew Dillon <dillon@backplane.com>
*
* Copyright (c) 1998 The FreeBSD Project
@@ -25,31 +25,32 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $FreeBSD$
*/
/*
* DEFS.H
*/
-#define USEGUARD /* use stard/end guard bytes */
-#define USEENDGUARD
-#define DMALLOCDEBUG /* add debugging code to gather stats */
-#define ZALLOCDEBUG
+#ifndef _ZALLOC_DEFS_H
+#define _ZALLOC_DEFS_H
+
+#define USEGUARD /* use stard/end guard bytes */
+#define USEENDGUARD
+#define DMALLOCDEBUG /* add debugging code to gather stats */
+#define ZALLOCDEBUG
#include <sys/stdint.h>
#include "stand.h"
#include "zalloc_mem.h"
-#define Library extern
+#define Library extern
/*
* block extension for sbrk()
*/
-#define BLKEXTEND (4 * 1024)
-#define BLKEXTENDMASK (BLKEXTEND - 1)
+#define BLKEXTEND (4 * 1024)
+#define BLKEXTENDMASK (BLKEXTEND - 1)
/*
* Required malloc alignment.
@@ -68,11 +69,13 @@
#define MALLOCALIGN_MASK (MALLOCALIGN - 1)
typedef struct Guard {
- size_t ga_Bytes;
- size_t ga_Magic; /* must be at least 32 bits */
+ size_t ga_Bytes;
+ size_t ga_Magic; /* must be at least 32 bits */
} Guard;
-#define GAMAGIC 0x55FF44FD
-#define GAFREE 0x5F54F4DF
+#define GAMAGIC 0x55FF44FD
+#define GAFREE 0x5F54F4DF
#include "zalloc_protos.h"
+
+#endif /* _ZALLOC_DEFS_H */