Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 21 Sep 2002 05:54:00 +0000 (05:54 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 21 Sep 2002 05:54:00 +0000 (05:54 +0000)
* sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
* sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
* sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.

ChangeLog
sysdeps/unix/sysv/linux/fstatvfs.c
sysdeps/unix/sysv/linux/internal_statvfs.c
sysdeps/unix/sysv/linux/statvfs.c

index 7cd3e9c..aaa28bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
 
        * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
        locking when using mount tab file.
+       * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
+       * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
+       * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
 
        * elf/dl-init.c (_dl_init): Fix test of the size of the
        preinit_array section.
index 4452e50..0bfce16 100644 (file)
@@ -20,6 +20,7 @@
 #include <errno.h>
 #include <mntent.h>
 #include <paths.h>
+#include <stdio_ext.h>
 #include <string.h>
 #include <sys/mount.h>
 #include <sys/stat.h>
index ed9dbaa..744c8d9 100644 (file)
@@ -64,6 +64,9 @@
        {
          char tmpbuf[1024];
 
+         /* No locking needed.  */
+         (void) __fsetlocking (mtab, FSETLOCKING_BYCALLER);
+
          while (__getmntent_r (mtab, &mntbuf, tmpbuf, sizeof (tmpbuf)))
            {
              struct stat64 fsst;
index 9992d77..5eef62c 100644 (file)
@@ -20,6 +20,7 @@
 #include <errno.h>
 #include <mntent.h>
 #include <paths.h>
+#include <stdio_ext.h>
 #include <string.h>
 #include <sys/mount.h>
 #include <sys/stat.h>