]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/ipfilter/lib/kmem.h
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / ipfilter / lib / kmem.h
1 /*      $FreeBSD$       */
2
3 /*
4  * Copyright (C) 2002 by Darren Reed.
5  *
6  * See the IPFILTER.LICENCE file for details on licencing.
7  * $Id: kmem.h,v 1.2.4.1 2006/06/16 17:21:04 darrenr Exp $
8  */
9
10 #ifndef __KMEM_H__
11 #define __KMEM_H__
12
13 #ifndef __P
14 # ifdef __STDC__
15 #  define       __P(x)  x
16 # else
17 #  define       __P(x)  ()
18 # endif
19 #endif
20 extern  int     openkmem __P((char *, char *));
21 extern  int     kmemcpy __P((char *, long, int));
22 extern  int     kstrncpy __P((char *, long, int));
23
24 #if defined(__NetBSD__) || defined(__OpenBSD)
25 # include <paths.h>
26 #endif
27
28 #ifdef _PATH_KMEM
29 # define        KMEM    _PATH_KMEM
30 #else
31 # define        KMEM    "/dev/kmem"
32 #endif
33
34 #endif /* __KMEM_H__ */