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