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