bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] fsusage.m4 statvfs-testing for glibc (merge from coreut


From: Bruno Haible
Subject: Re: [Bug-gnulib] fsusage.m4 statvfs-testing for glibc (merge from coreutils)
Date: Sun, 17 Aug 2003 16:25:57 +0200
User-agent: KMail/1.5

Paul Eggert wrote:

> +#ifdef __GLIBC__
> +Do not use statvfs on systems with GNU libc, because that function stats
> +all preceding entries in /proc/mounts, and that makes df hang if even
> +one of the corresponding file systems is hard-mounted, but not available.
> +#endif

Only on Linux does glibc's statvfs() function scan /proc/mounts. It doesn't
on GNU/Hurd and GNU/FreeBSD. Therefore I believe the correct
conditionalization should be

#if defined __GLIBC__ && defined __linux__


Bruno





reply via email to

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