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 void *memset( void *dest
, int c
, size_t count
);
16 #define bzero(x,y) memset(x,0,y)
17 #define bcopy(src,dst,n) memcpy(dst,src,n)
19 static __inline
void panic ( const char* fmt
, ... )
23 printf ( "oskit PANIC: " );
26 // TODO FIXME - print stack trace...
27 oskittcp_die("<unknown file>",-1);
30 #define panic(...) do { printf(__VA_ARGS__); \
31 oskittcp_die(__FILE__,__LINE__); } while(0)
33 #define kmem_malloc(x,y,z) malloc(y)
35 #endif//_OSKITFREEBSD_H