3
void *xmalloc(size_t sz);
4
void *xrealloc(void *p, size_t sz);
6
#define new(p) ((p) = xmalloc(sizeof(*(p))))
9
int kernel_version(void);
10
#define KRELEASE(maj,min,patch) ((maj) * 10000 + (min)*1000 + (patch))
13
int nstrcmp(const char *, const char *);
15
char *safe_strncpy(char *dst, const char *src, size_t size);
18
#define netmin(a,b) ((a)<(b) ? (a) : (b))
19
#define netmax(a,b) ((a)>(b) ? (a) : (b))