summaryrefslogtreecommitdiff
path: root/include/sys/param.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-06-28 19:15:35 +0000
committerEric Andersen <andersen@codepoet.org>2000-06-28 19:15:35 +0000
commit7186f9a670f0342266e6ce601fdbb404647d8988 (patch)
tree3920330bb624d9c4b573948308fa45598aa8b1a3 /include/sys/param.h
parent38b20649403f2cbffc4581211f1b61868e3b358f (diff)
More GPL vs LGPL fixes (sysdeps/getpagesize.c), and some header
cleanups. -Erik
Diffstat (limited to 'include/sys/param.h')
-rw-r--r--include/sys/param.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sys/param.h b/include/sys/param.h
index 906a0a230..511c2ae1e 100644
--- a/include/sys/param.h
+++ b/include/sys/param.h
@@ -22,6 +22,9 @@
#define NR_FILE 32
#endif
+/* Number of Bits per BYte */
+#define NBBY CHAR_BIT
+
/* Bit map related macros. */
#define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY))
#define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))