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