This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Fix -save-temps from clobbering input file@apple.com


Zack Weinberg wrote:
> 
> On Sat, Nov 03, 2001 at 01:33:26PM -0800, Richard Henderson wrote:
> >
> > My thought was use fstat and compare st_dev+st_ino numbers, but
> > I don't know how reliable that is on various non-POSIX filesystems.
> 
> st_dev/st_ino are generally always zero on anything other than a Unix.
> Dunno if OSX is Unix-y enough to give you useful inode numbers, but
> HFS does have an equivalent concept internally.

Yup, OS X (or more accurately Darwin) has real inodes.  In fact, I've
been using them to fix a #import problem for which I'll be submitting
a patch soon.

Stan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]