Mail Archives: djgpp-workers/2001/01/21/12:27:38
Hello.
The /dev/zero and /dev/full code needs to use _invent_inode() from
src/libc/posix/sys/stat/xstat.c, to ensure that stat() or fstat() on
either of these devices returns a unique inode. Currently I have a
declaration in src/libc/fsext/fse_zero.c for the function, but I want to
use a header. Now I could use a line like:
#include "../sys/stat/xstat.h"
but these sort of includes always give me a bad feeling. I'd much rather
do:
#include <libc/something.h>
I'm not proposing to make src/libc/posix/sys/stat/xstat.h a header, but
perhaps there should be a header of things useful to file system
extensions - e.g. libc/fsext.h. What do you think?
Bye, Rich =]
--
Richard Dawe <richdawe AT bigfoot DOT com> http://www.bigfoot.com/~richdawe/
"The soul is the mirror of an indestructible universe."
--- Gottfried W. Leibniz
- Raw text -