1/* $Id: ppath_impl.h,v 1.1 2011/08/25 16:15:29 dyoung Exp $ */
2
3/* Copyright (c) 2010 David Young. All rights reserved. */
4
5#if defined(__NetBSD__) && (defined(_KERNEL) || defined(_STANDALONE))
6#include <lib/libkern/libkern.h>
7#include <sys/errno.h>
8#define ppath_assert(__x) KASSERT(__x)
9#else
10#include <assert.h>
11#include <errno.h>
12#include <stdlib.h>
13#include <string.h>
14#define ppath_assert(__x) assert(__x)
15#endif /* defined(__NetBSD__) && (defined(_KERNEL) || defined(_STANDALONE)) */
16
17void *ppath_alloc(size_t);
18void ppath_free(void *, size_t);
19void ppath_component_extant_inc(void);
20void ppath_component_extant_dec(void);
21void ppath_extant_inc(void);
22void ppath_extant_dec(void);
23
24