5 #define MAXHOSTNAMELEN 64
7 #define MAXPATHLEN 4096
18 #define MIN(a,b) (((a)<(b))?(a):(b))
19 #define MAX(a,b) (((a)>(b))?(a):(b))
21 #define __bitop(x,i,o) ((x)[(i)/8] o (1<<(i)%8))
22 #define setbit(x,i) __bitop(x,i,|=)
23 #define clrbit(x,i) __bitop(x,i,&=~)
24 #define isset(x,i) __bitop(x,i,&)
25 #define isclr(x,i) !isset(x,i)
27 #define howmany(n,d) (((n)+((d)-1))/(d))
28 #define roundup(n,d) (howmany(n,d)*(d))
29 #define powerof2(n) !(((n)-1) & (n))
31 #include <sys/resource.h>