Move #define up.

This commit is contained in:
Poul-Henning Kamp 2004-11-14 09:21:01 +00:00
parent 03afb27c83
commit 2e4fed7c56
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137686

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