bug-gnulib
[Top][All Lists]
Advanced

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

statvfs on glibc platforms


From: Bruno Haible
Subject: statvfs on glibc platforms
Date: Tue, 23 Dec 2008 01:07:22 +0100
User-agent: KMail/1.9.9

Hi Jim,

The Haiku port prompted me to look at this comment. Looking at the sources of
statvfs() for the various glibc platforms, I found that it's not BeOS which
is special, but Linux: It's only the Linux specific implementation which looks
at /proc/mounts. OK to commit this update?


2008-12-22  Bruno Haible  <address@hidden>

        * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.

--- m4/fsusage.m4.orig  2008-12-23 01:02:55.000000000 +0100
+++ m4/fsusage.m4       2008-12-23 00:38:43.000000000 +0100
@@ -1,7 +1,7 @@
 #serial 23
 # Obtaining file system usage information.
 
-# Copyright (C) 1997, 1998, 2000, 2001, 2003-2007 Free Software Foundation, 
Inc.
+# Copyright (C) 1997, 1998, 2000, 2001, 2003-2008 Free Software Foundation, 
Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -47,12 +47,12 @@
   # SVR4
   AC_CACHE_CHECK([for statvfs function (SVR4)], fu_cv_sys_stat_statvfs,
                 [AC_TRY_LINK([#include <sys/types.h>
-#if defined __GLIBC__ && !defined __BEOS__
-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
+#if defined __GLIBC__ && defined __linux__
+Do not use statvfs on systems with GNU libc on Linux, 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.
-statvfs in GNU libc on BeOS operates differently: it only makes a system
-call.
+statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
+a system call.
 #endif
 
 #ifdef __osf__




reply via email to

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