xref: /titanic_51/usr/src/cmd/ipf/tools/kmem.h (revision 45818ee124adeaaf947698996b4f4c722afc6d1f)
1 /*
2  * Copyright (C) 1993-2001 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  * $Id: kmem.h,v 2.5 2002/08/21 22:57:36 darrenr Exp $
6  */
7 
8 #ifndef	__KMEM_H__
9 #define	__KMEM_H__
10 
11 #ifndef	__P
12 # ifdef	__STDC__
13 #  define	__P(x)	x
14 # else
15 #  define	__P(x)	()
16 # endif
17 #endif
18 extern	int	openkmem __P((char *, char *));
19 extern	int	kmemcpy __P((char *, long, int));
20 extern	int	kstrncpy __P((char *, long, int));
21 
22 #if defined(__NetBSD__) || defined(__OpenBSD)
23 # include <paths.h>
24 #endif
25 
26 #ifdef _PATH_KMEM
27 # define	KMEM	_PATH_KMEM
28 #else
29 # define	KMEM	"/dev/kmem"
30 #endif
31 
32 #endif /* __KMEM_H__ */
33