summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/statvfs64.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/statvfs64.c')
-rw-r--r--sysdeps/unix/sysv/linux/statvfs64.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/sysdeps/unix/sysv/linux/statvfs64.c b/sysdeps/unix/sysv/linux/statvfs64.c
index e33e923a05..d92f0d638d 100644
--- a/sysdeps/unix/sysv/linux/statvfs64.c
+++ b/sysdeps/unix/sysv/linux/statvfs64.c
@@ -1,5 +1,5 @@
/* Return information about the filesystem on which FILE resides.
- Copyright (C) 1998-2014 Free Software Foundation, Inc.
+ Copyright (C) 1998-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -26,7 +26,7 @@
extern void __internal_statvfs64 (const char *name, struct statvfs64 *buf,
- struct statfs64 *fsbuf, struct stat64 *st);
+ struct statfs64 *fsbuf, int fd);
/* Return information about the filesystem on which FILE resides. */
@@ -61,12 +61,8 @@ __statvfs64 (const char *file, struct statvfs64 *buf)
#endif
if (res == 0)
- {
- /* Convert the result. */
- struct stat64 st;
- __internal_statvfs64 (file, buf, &fsbuf,
- stat64 (file, &st) == -1 ? NULL : &st);
- }
+ /* Convert the result. */
+ __internal_statvfs64 (file, buf, &fsbuf, -1);
return res;
}