summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-03-04 11:35:30 +0000
committerbde <bde@FreeBSD.org>2004-03-04 11:35:30 +0000
commit08a220972ac2e84c4679a658c0d8488d04be6500 (patch)
treeb6a82db5a8652e90d3cb9833eac8ef3cfbe809f9 /sys
parent553ee2ccd0d578f07e91e02819531ac34761a5bd (diff)
downloadFreeBSD-src-08a220972ac2e84c4679a658c0d8488d04be6500.zip
FreeBSD-src-08a220972ac2e84c4679a658c0d8488d04be6500.tar.gz
Fixed the XXX'ed namespace pollution in rev.1.54 by using
<machine/limits.h> and __CHAR_BIT instead of <sys/limits.h> and CHAR_BIT. some reason I didn't use the BSD spelling NBBY.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/filedesc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h
index 4ee0399..5f1d1a5 100644
--- a/sys/sys/filedesc.h
+++ b/sys/sys/filedesc.h
@@ -40,7 +40,8 @@
#include <sys/queue.h>
#include <sys/_lock.h>
#include <sys/_mutex.h>
-#include <sys/limits.h> /* XXX for CHAR_BIT */
+
+#include <machine/_limits.h>
/*
* This structure is used for the management of descriptors. It may be
@@ -56,7 +57,7 @@
#define NDFILE 20
#define NDSLOTTYPE u_long
#define NDSLOTSIZE sizeof(NDSLOTTYPE)
-#define NDENTRIES (NDSLOTSIZE * CHAR_BIT)
+#define NDENTRIES (NDSLOTSIZE * __CHAR_BIT)
#define NDSLOT(x) ((x) / NDENTRIES)
#define NDBIT(x) ((NDSLOTTYPE)1 << ((x) % NDENTRIES))
#define NDSLOTS(x) (((x) + NDENTRIES - 1) / NDENTRIES)
OpenPOWER on IntegriCloud