|author||Peter Seebach <email@example.com>||2012-08-02 18:09:17 -0500|
|committer||Peter Seebach <firstname.lastname@example.org>||2012-08-02 18:33:53 -0500|
Remove the _plain thing, use PSEUDO_STATBUF everywhere.
The _plain thing was added because of clashes between Linux ("struct stat64 for 64-bit file sizes") and Darwin ("struct stat is already 64 bits"). But it turns out not to be enough, because stat will *fail* if it cannot represent a file size, so when something like unlinkat() calls a non-64-bit stat in order to determine whether a file exists, it gets the wrong answer if the file is over 2GB in size. Solution: Continue using PSEUDO_STATBUF, and also provide defines for base_stat() which can be either real_stat() or real_stat64(), etcetera. This eliminates any reason to need the _plain functions. It also suggests that the other real___fxstatat() calls should someday go away because that is an ugly, ugly, implementation detail. As part of testing this, fix up some bitrot which affected Darwin (such as the continue outside of a loop, but inside an #ifdef; that was left over from the conversion of init_one_wrapper to a separate function).
Diffstat (limited to 'Makefile.in')
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index d49e879..83fc89f 100644
@@ -26,7 +26,7 @@ BITS=@BITS@