1 #ifndef _OSKITFREEBSD_H
2 #define _OSKITFREEBSD_H
7 #include <netinet/in.h>
10 extern void oskittcp_die(const char *file
, int line
);
12 #define printf DbgPrint
13 #define vprintf DbgVPrint
14 #define ovbcopy(x,y,z) bcopy(x,y,z)
15 #define bzero(x,y) memset(x,0,y)
16 #define bcopy(src,dst,n) memcpy(dst,src,n)
18 static __inline
void panic ( const char* fmt
, ... )
22 printf ( "oskit PANIC: " );
25 // TODO FIXME - print stack trace...
26 oskittcp_die("<unknown file>",-1);
29 #define panic(...) do { printf(__VA_ARGS__); \
30 oskittcp_die(__FILE__,__LINE__); } while(0)
32 #define kmem_malloc(x,y,z) malloc(y,0,0)
34 #endif//_OSKITFREEBSD_H