1*13885a66Sdarrenr /* $NetBSD: kmem.h,v 1.2 2012/07/22 14:27:36 darrenr Exp $ */ 2bc4097aaSchristos 3bc4097aaSchristos /* 4c9d5dc6cSdarrenr * Copyright (C) 2012 by Darren Reed. 5bc4097aaSchristos * 6bc4097aaSchristos * See the IPFILTER.LICENCE file for details on licencing. 7*13885a66Sdarrenr * Id: kmem.h,v 1.1.1.2 2012/07/22 13:44:39 darrenr Exp $ 8bc4097aaSchristos */ 9bc4097aaSchristos 10bc4097aaSchristos #ifndef __KMEM_H__ 11bc4097aaSchristos #define __KMEM_H__ 12bc4097aaSchristos 13bc4097aaSchristos #ifndef __P 14bc4097aaSchristos # ifdef __STDC__ 15bc4097aaSchristos # define __P(x) x 16bc4097aaSchristos # else 17bc4097aaSchristos # define __P(x) () 18bc4097aaSchristos # endif 19bc4097aaSchristos #endif 20bc4097aaSchristos extern int openkmem __P((char *, char *)); 21bc4097aaSchristos extern int kmemcpy __P((char *, long, int)); 22bc4097aaSchristos extern int kstrncpy __P((char *, long, int)); 23bc4097aaSchristos 24bc4097aaSchristos #if defined(__NetBSD__) || defined(__OpenBSD) 25bc4097aaSchristos # include <paths.h> 26bc4097aaSchristos #endif 27bc4097aaSchristos 28bc4097aaSchristos #ifdef _PATH_KMEM 29bc4097aaSchristos # define KMEM _PATH_KMEM 30bc4097aaSchristos #else 31bc4097aaSchristos # define KMEM "/dev/kmem" 32bc4097aaSchristos #endif 33bc4097aaSchristos 34bc4097aaSchristos #endif /* __KMEM_H__ */ 35