Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3A6B1BCF.FDCB78E7@phekda.freeserve.co.uk> Date: Sun, 21 Jan 2001 17:26:39 +0000 From: Richard Dawe X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.17 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: DJGPP workers Subject: Moving _invent_inode() to a libc/*.h header file Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com 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 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 http://www.bigfoot.com/~richdawe/ "The soul is the mirror of an indestructible universe." --- Gottfried W. Leibniz