From d0ad0a80a68654e0dbe15977db4b5d447106f5fa Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 21 Sep 2002 05:54:00 +0000 Subject: Update. * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise. * sysdeps/unix/sysv/linux/statvfs.c: Include . * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise. --- ChangeLog | 3 +++ sysdeps/unix/sysv/linux/fstatvfs.c | 1 + sysdeps/unix/sysv/linux/internal_statvfs.c | 3 +++ sysdeps/unix/sysv/linux/statvfs.c | 1 + 4 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7cd3e9c17f..aaa28bbd21 100644 --- 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 . + * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise. * elf/dl-init.c (_dl_init): Fix test of the size of the preinit_array section. diff --git a/sysdeps/unix/sysv/linux/fstatvfs.c b/sysdeps/unix/sysv/linux/fstatvfs.c index 4452e50f81..0bfce16309 100644 --- a/sysdeps/unix/sysv/linux/fstatvfs.c +++ b/sysdeps/unix/sysv/linux/fstatvfs.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include diff --git a/sysdeps/unix/sysv/linux/internal_statvfs.c b/sysdeps/unix/sysv/linux/internal_statvfs.c index ed9dbaaa0e..744c8d9fd6 100644 --- a/sysdeps/unix/sysv/linux/internal_statvfs.c +++ b/sysdeps/unix/sysv/linux/internal_statvfs.c @@ -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; diff --git a/sysdeps/unix/sysv/linux/statvfs.c b/sysdeps/unix/sysv/linux/statvfs.c index 9992d7757f..5eef62c5f6 100644 --- a/sysdeps/unix/sysv/linux/statvfs.c +++ b/sysdeps/unix/sysv/linux/statvfs.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3