xref: /freebsd/sbin/ipf/common/kmem.h (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
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__) || defined(__OpenBSD)
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