bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] stat and lstat should define their replacements


From: Paul Eggert
Subject: Re: [bug-gnulib] stat and lstat should define their replacements
Date: Wed, 25 May 2005 01:07:38 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Derek Price <address@hidden> writes:

> +/* Get the system versions when something else was defined by config.h.  */
> +#undef lstat
> +#undef stat

A big worry here is hosts that use something like "#define stat
stat64" when compiled in large-file mode.  On such hosts, you can't
#undef 'stat' and 'lstat' as you'll then get the small-file functions.
This may help to explain the infelicity in this area of gnulib.

An example of such a system would be Solaris 10 compiled with GCC 3.

GCC 4 fixes the problem on Solaris 10 -- at least, that's how I read
the GCC source code and Solaris headers; I haven't tested it.  Support
for this was added on 2004-06-20 by Zack Weinberg, if you want to
peruse GCC's ChangeLog entries.

However, obviously we'd still need to support older Solaris
installations, , and I suspect that the problem persists on some
non-Solaris hosts.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]