mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user