X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffsusage.c;h=337bf5315d97a2fa1c35b06c6f45300270c820f9;hb=a3a70ebafd7f2fdc069d43e8a26fc246dd7fe5bb;hp=c9721ca7ee3037c2dbcd8316f587480770e8fbf2;hpb=44df621bcd3c8d7682ccf81793117939e954fbf4;p=gnulib.git diff --git a/lib/fsusage.c b/lib/fsusage.c index c9721ca7e..337bf5315 100644 --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -56,6 +56,11 @@ # 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 @@ -65,7 +70,7 @@ && (~ (x) == (sizeof (x) < sizeof (int) \ ? - (1 << (sizeof (x) * CHAR_BIT)) \ : 0))) \ - ? UINTMAX_MAX : (x)) + ? UINTMAX_MAX : (uintmax_t) (x)) /* Extract the top bit of X as an uintmax_t value. */ #define EXTRACT_TOP_BIT(x) ((x) \