123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef _SYS_PARAM_H
- #define _SYS_PARAM_H 1
- #include <limits.h>
- #include <linux/limits.h>
- #include <linux/param.h>
- #define NBBY CHAR_BIT
- #ifndef NGROUPS
- # define NGROUPS NGROUPS_MAX
- #endif
- #define MAXSYMLINKS 20
- #define CANBSIZ MAX_CANON
- #define NCARGS ARG_MAX
- #define MAXPATHLEN PATH_MAX
- #define NOFILE 256
- #include <sys/types.h>
- #define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY))
- #define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))
- #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY)))
- #define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
- #ifndef howmany
- # define howmany(x, y) (((x)+((y)-1))/(y))
- #endif
- #define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
- #define powerof2(x) ((((x)-1)&(x))==0)
- #define MIN(a,b) (((a)<(b))?(a):(b))
- #define MAX(a,b) (((a)>(b))?(a):(b))
- #define DEV_BSIZE 512
- #endif
|