From 85741f7eba716db09f586bc94aaa9a6b5dc2347f Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 11 Nov 2020 22:47:13 +0000 Subject: hurd: Move {,f,l}xstat{,at} and xmknod{at} to compat symbols We do not actually need them, so we can move their implementations into the standard {,f,l}stat{,at} variants and only keep compatibility wrappers. --- sysdeps/mach/hurd/xstat.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'sysdeps/mach/hurd/xstat.c') diff --git a/sysdeps/mach/hurd/xstat.c b/sysdeps/mach/hurd/xstat.c index e7ab244cb8..8d56fe3c44 100644 --- a/sysdeps/mach/hurd/xstat.c +++ b/sysdeps/mach/hurd/xstat.c @@ -17,15 +17,20 @@ #include #include +#include +#include -#include "xstatconv.c" +#if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_33) /* Get file information about FILE in BUF. */ int __xstat (int vers, const char *file, struct stat *buf) { - struct stat64 buf64; - return __xstat64 (vers, file, &buf64) ?: xstat64_conv (buf, &buf64); + if (vers != _STAT_VER) + return __hurd_fail (EINVAL); + + return __stat (file, buf); } -hidden_def (__xstat) weak_alias (__xstat, _xstat) + +#endif -- cgit 1.4.1