xref: /freebsd/sbin/ipf/libipf/kmem.h (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1 
2 /*
3  * Copyright (C) 2012 by Darren Reed.
4  *
5  * See the IPFILTER.LICENCE file for details on licencing.
6  * $Id$
7  */
8 
9 #ifndef	__KMEM_H__
10 #define	__KMEM_H__
11 
12 #ifndef	__P
13 #  define	__P(x)	x
14 #endif
15 extern	int	openkmem(char *, char *);
16 extern	int	kmemcpy(char *, long, int);
17 extern	int	kstrncpy(char *, long, int);
18 
19 #if defined(__NetBSD__)
20 # include <paths.h>
21 #endif
22 
23 #ifdef _PATH_KMEM
24 # define	KMEM	_PATH_KMEM
25 #else
26 # define	KMEM	"/dev/kmem"
27 #endif
28 
29 #endif /* __KMEM_H__ */
30