delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/21/12:27:38

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 <rich AT phekda DOT freeserve DOT co DOT uk>
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 <djgpp-workers AT delorie DOT com>
Subject: Moving _invent_inode() to a libc/*.h header file
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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019