diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-02-06 11:26:28 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-02-11 08:00:41 -0300 |
commit | 52f527d6f1e880027e37c422b3ce4f2b12c8ef7d (patch) | |
tree | e03e5a5173f79d02dca6fe35a48c4b71c05b8a4e /sysdeps/unix/sysv/linux/statvfs.c | |
parent | 6ea1603d65881348a81af8dd93860d02443bdf61 (diff) | |
download | glibc-52f527d6f1e880027e37c422b3ce4f2b12c8ef7d.tar.gz glibc-52f527d6f1e880027e37c422b3ce4f2b12c8ef7d.tar.xz glibc-52f527d6f1e880027e37c422b3ce4f2b12c8ef7d.zip |
linux: Consolidate statvfs implementations
There is no need to handle ENOSYS on fstatfs64 call, required only for alpha (where is already fallbacks to fstatfs). Checked on x86_64-linux-gnu. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/statvfs.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/statvfs.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/statvfs.c b/sysdeps/unix/sysv/linux/statvfs.c index 8895694e5d..f165899711 100644 --- a/sysdeps/unix/sysv/linux/statvfs.c +++ b/sysdeps/unix/sysv/linux/statvfs.c @@ -16,11 +16,13 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ -#include <stddef.h> -#include <sys/stat.h> +#include <sys/statvfs.h> #include <sys/statfs.h> -#include "internal_statvfs.h" +#include <internal_statvfs.h> +#include <time.h> +#include <kernel_stat.h> +#if !STATFS_IS_STATFS64 int __statvfs (const char *file, struct statvfs *buf) { @@ -38,3 +40,4 @@ __statvfs (const char *file, struct statvfs *buf) } weak_alias (__statvfs, statvfs) libc_hidden_weak (statvfs) +#endif |