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