typedef unsigned long ulong; typedef unsigned int uint; typedef unsigned char uchar; #define _XOPEN_SOURCE 600 #define IXP_P9_STRUCTS #define IXP_NO_P9_ #include #include #include #include #include #include #include #include #define strdup my_strdup static int getlong(const char*, long*); static uint tokenize(char*[], uint, char*, char); static char* smprint(const char*, ...); static char* vsmprint(const char*, va_list); static char* strdup(const char*); #define nil ((void*)0) #define nelem(ary) (sizeof(ary) / sizeof(*ary))