Move #define up.
This commit is contained in:
parent
05757f7ee0
commit
c61620e47e
@ -116,6 +116,11 @@ static void fdunused(struct filedesc *fdp, int fd);
|
||||
#define NDBIT(x) ((NDSLOTTYPE)1 << ((x) % NDENTRIES))
|
||||
#define NDSLOTS(x) (((x) + NDENTRIES - 1) / NDENTRIES)
|
||||
|
||||
/*
|
||||
* Storage required per open file descriptor.
|
||||
*/
|
||||
#define OFILESIZE (sizeof(struct file *) + sizeof(char))
|
||||
|
||||
/*
|
||||
* Basic allocation of descriptors:
|
||||
* one of the above, plus arrays for NDFILE descriptors.
|
||||
@ -131,11 +136,6 @@ struct filedesc0 {
|
||||
NDSLOTTYPE fd_dmap[NDSLOTS(NDFILE)];
|
||||
};
|
||||
|
||||
/*
|
||||
* Storage required per open file descriptor.
|
||||
*/
|
||||
#define OFILESIZE (sizeof(struct file *) + sizeof(char))
|
||||
|
||||
/*
|
||||
* Descriptor management.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user