Date: Tue, 27 Aug 1996 07:26:05 +0200 (IST) From: Eli Zaretskii To: Oberhumer Markus Cc: djgpp-workers Subject: Re: d_ino in struct dirent ? In-Reply-To: <199608262057.WAA24058@c210.edvz.uni-linz.ac.at> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.