1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

linux: Consolidate fstatvfs implementations

There is no need to handle ENOSYS on fstatfs64 call, required only
for alpha (where is already fallbacks to fstatfs).  The wordsize
internal_statvfs64.c is removed, since how the LFS support is
provided by fstatvfs64.c (used on 64-bit architectures as well).

Checked on x86_64-linux-gnu.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Adhemerval Zanella
2021-02-06 11:32:57 +00:00
parent f6e616435d
commit 6ea1603d65
7 changed files with 25 additions and 46 deletions

View File

@ -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
__fstatvfs (int fd, struct statvfs *buf)
{
@ -38,3 +40,4 @@ __fstatvfs (int fd, struct statvfs *buf)
}
weak_alias (__fstatvfs, fstatvfs)
libc_hidden_weak (fstatvfs)
#endif