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.
This commit is contained in:
parent
47e600b575
commit
623089f4ee
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user