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