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