This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix -save-temps from clobbering input file@apple.com
- To: Zack Weinberg <zack at codesourcery dot com>
- Subject: Re: [PATCH] Fix -save-temps from clobbering input file@apple.com
- From: Stan Shebs <shebs at apple dot com>
- Date: Sat, 03 Nov 2001 14:19:20 -0800
- CC: Richard Henderson <rth at redhat dot com>, Ira Ruben <ira at apple dot com>, gcc-patches at gcc dot gnu dot org
- References: <p05100300b80370dcbd9d@[17.202.44.152]> <20011103133326.B11575@redhat.com> <20011103134729.A4993@codesourcery.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