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