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