| OLD | NEW |
| 1 #ifndef _SYS_PARAM_H | 1 #ifndef _SYS_PARAM_H |
| 2 #define _SYS_PARAM_H | 2 #define _SYS_PARAM_H |
| 3 | 3 |
| 4 #define MAXSYMLINKS 20 | 4 #define MAXSYMLINKS 20 |
| 5 #define MAXHOSTNAMELEN 64 | 5 #define MAXHOSTNAMELEN 64 |
| 6 #define MAXNAMLEN 255 | 6 #define MAXNAMLEN 255 |
| 7 #define MAXPATHLEN 4096 | 7 #define MAXPATHLEN 4096 |
| 8 #define NBBY 8 | 8 #define NBBY 8 |
| 9 #define NGROUPS 32 | 9 #define NGROUPS 32 |
| 10 #define CANBSIZE 255 | 10 #define CANBSIZE 255 |
| 11 #define NOFILE 256 | 11 #define NOFILE 256 |
| 12 #define NCARGS 131072 | 12 #define NCARGS 131072 |
| 13 #define DEV_BSIZE 512 | 13 #define DEV_BSIZE 512 |
| 14 #define NOGROUP (-1) | 14 #define NOGROUP (-1) |
| 15 | 15 |
| 16 #undef MIN | 16 #undef MIN |
| 17 #undef MAX | 17 #undef MAX |
| 18 #define MIN(a,b) (((a)<(b))?(a):(b)) | 18 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) |
| 19 #define MAX(a,b) (((a)>(b))?(a):(b)) | 19 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| 20 | 20 |
| 21 #define __bitop(x,i,o) ((x)[(i)/8] o (1<<(i)%8)) | 21 #define __bitop(x, i, o) ((x)[(i) / 8] o(1 << (i) % 8)) |
| 22 #define setbit(x,i) __bitop(x,i,|=) | 22 #define setbit(x, i) __bitop(x, i, |=) |
| 23 #define clrbit(x,i) __bitop(x,i,&=~) | 23 #define clrbit(x, i) __bitop(x, i, &= ~) |
| 24 #define isset(x,i) __bitop(x,i,&) | 24 #define isset(x, i) __bitop(x, i, &) |
| 25 #define isclr(x,i) !isset(x,i) | 25 #define isclr(x, i) !isset(x, i) |
| 26 | 26 |
| 27 #define howmany(n,d) (((n)+((d)-1))/(d)) | 27 #define howmany(n, d) (((n) + ((d)-1)) / (d)) |
| 28 #define roundup(n,d) (howmany(n,d)*(d)) | 28 #define roundup(n, d) (howmany(n, d) * (d)) |
| 29 #define powerof2(n) !(((n)-1) & (n)) | 29 #define powerof2(n) !(((n)-1) & (n)) |
| 30 | 30 |
| 31 #include <sys/resource.h> | 31 #include <sys/resource.h> |
| 32 #include <endian.h> | 32 #include <endian.h> |
| 33 #include <limits.h> | 33 #include <limits.h> |
| 34 | 34 |
| 35 #endif | 35 #endif |
| OLD | NEW |