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:
@ -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
|
||||
|
Reference in New Issue
Block a user