root / lab4 / .minix-src / include / ppath / ppath_impl.h @ 14
History | View | Annotate | Download (690 Bytes)
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 |
|
17 |
void *ppath_alloc(size_t);
|
18 |
void ppath_free(void *, size_t); |
19 |
void ppath_component_extant_inc(void); |
20 |
void ppath_component_extant_dec(void); |
21 |
void ppath_extant_inc(void); |
22 |
void ppath_extant_dec(void); |
23 |
|