1 #ifndef _OSKITFREEBSD_H
2 #define _OSKITFREEBSD_H
5 #include <netinet/in.h>
8 extern void oskittcp_die(const char *file
, int line
);
11 #define DbgPrint printf
12 #define DbgVPrint vprintf
14 #define printf DbgPrint
16 #define ovbcopy(x,y,z) bcopy(x,y,z)
17 void *memset( void *dest
, int c
, size_t count
);
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 DbgPrint ( "oskit PANIC: " );
26 DbgVPrint ( fmt
, arg
);
28 // TODO FIXME - print stack trace...
29 oskittcp_die("<unknown file>",-1);
32 #define panic(...) do { DbgPrint(__VA_ARGS__); \
33 oskittcp_die(__FILE__,__LINE__); } while(0)
35 #define kmem_malloc(x,y,z) malloc(y)
37 #endif//_OSKITFREEBSD_H