X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffsusage.c;h=337bf5315d97a2fa1c35b06c6f45300270c820f9;hb=a3a70ebafd7f2fdc069d43e8a26fc246dd7fe5bb;hp=7d84a9ff7469896c69b1c7652759bbddc3f8c318;hpb=2c7110f2230f4bf73f74fe3721958fe16a58e8ba;p=gnulib.git diff --git a/lib/fsusage.c b/lib/fsusage.c index 7d84a9ff7..337bf5315 100644 --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -56,12 +56,17 @@ # include "full-read.h" #endif +/* The results of open() in this file are not used with fchdir, + therefore save some unnecessary work in fchdir.c. */ +#undef open +#undef close + /* Many space usage primitives use all 1 bits to denote a value that is not applicable or unknown. Propagate this information by returning a uintmax_t value that is all 1 bits if X is all 1 bits, even if X is unsigned and narrower than uintmax_t. */ #define PROPAGATE_ALL_ONES(x) \ - ((sizeof (x) != sizeof (uintmax_t) \ + ((sizeof (x) < sizeof (uintmax_t) \ && (~ (x) == (sizeof (x) < sizeof (int) \ ? - (1 << (sizeof (x) * CHAR_BIT)) \ : 0))) \