From 4d97cc8cf3da925fd06fc37d4daebafce3247719 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 23 Oct 2020 16:40:06 -0300 Subject: io: Remove xstat implementations With xstat wrapper functions removed (8ed005daf0), the stat functions are now properly exported, and version is done using symbols versioning instead of the extra _STAT_* argument. Reviewed-by: Lukasz Majewski --- io/fstatat64.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'io/fstatat64.c') diff --git a/io/fstatat64.c b/io/fstatat64.c index 0e0312fd19..3b5a7528b7 100644 --- a/io/fstatat64.c +++ b/io/fstatat64.c @@ -16,12 +16,26 @@ . */ #include +#include -#undef __fstatat64 int __fstatat64 (int fd, const char *file, struct stat64 *buf, int flag) { - return __fxstatat64 (_STAT_VER, fd, file, buf, flag); + if (fd < 0 && fd != AT_FDCWD) + { + __set_errno (EBADF); + return -1; + } + if (buf == NULL || (flag & ~AT_SYMLINK_NOFOLLOW) != 0) + { + __set_errno (EINVAL); + return -1; + } + + __set_errno (ENOSYS); + return -1; } hidden_def (__fstatat64) weak_alias (__fstatat64, fstatat64) + +stub_warning (fstatat64) -- cgit v1.2.1