141edb306SCy Schubert 241edb306SCy Schubert /* 341edb306SCy Schubert * Copyright (C) 2012 by Darren Reed. 441edb306SCy Schubert * 541edb306SCy Schubert * See the IPFILTER.LICENCE file for details on licencing. 641edb306SCy Schubert * $Id$ 741edb306SCy Schubert */ 841edb306SCy Schubert 941edb306SCy Schubert #ifndef __KMEM_H__ 1041edb306SCy Schubert #define __KMEM_H__ 1141edb306SCy Schubert 1241edb306SCy Schubert #ifndef __P 1341edb306SCy Schubert # define __P(x) x 1441edb306SCy Schubert #endif 1541edb306SCy Schubert extern int openkmem(char *, char *); 1641edb306SCy Schubert extern int kmemcpy(char *, long, int); 1741edb306SCy Schubert extern int kstrncpy(char *, long, int); 1841edb306SCy Schubert 1941edb306SCy Schubert #if defined(__NetBSD__) || defined(__OpenBSD) 2041edb306SCy Schubert # include <paths.h> 2141edb306SCy Schubert #endif 2241edb306SCy Schubert 2341edb306SCy Schubert #ifdef _PATH_KMEM 2441edb306SCy Schubert # define KMEM _PATH_KMEM 2541edb306SCy Schubert #else 2641edb306SCy Schubert # define KMEM "/dev/kmem" 2741edb306SCy Schubert #endif 2841edb306SCy Schubert 2941edb306SCy Schubert #endif /* __KMEM_H__ */ 30