Mail Archives: djgpp-workers/1996/08/27/00:30:07
On Mon, 26 Aug 1996, Oberhumer Markus wrote:
> What about setting d_ino to 1 by default (or using a static counter) ?
>
> We also could add something like __OPENDIR_INODE to __opendir_flags.
> The implementation could temporary change _djstat_flags and then
> just call stat() for inode computation - should not be much work.
If at all needed, call `_invent_inode' and forget about `stat' (it's too
expensive and will invent inode anyway on some platforms), because no
program I've seen uses the value of `d_ino' besides testing if it's zero.
Personally, I think that any program that requires this field is broken
and should be fixed (by providing an appropriate #ifdef). All GNU
programs that need `d_ino' rely on (autoconfigure and) "config.h" to tell
them whether such a feature exists.
- Raw text -