mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 14:23:55 +00:00
Move #define up.
This commit is contained in:
parent
03afb27c83
commit
2e4fed7c56
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137686
|
@ -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…
Reference in a new issue