Move #define up.

This commit is contained in:
phk 2004-11-14 09:21:01 +00:00
parent 05757f7ee0
commit c61620e47e

View File

@ -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.
*/