int stat(const char *path, struct stat *buf) { struct stat64 tmp; int res = __fd_stat(path, &tmp); __stat64_to_stat(&tmp, buf); return res; }
int stat(const char *path, struct stat *buf) { return __fd_stat(path, (struct stat64*) buf); }
__attribute__((weak)) int stat64(const char *path, struct stat64 *buf) { return __fd_stat(path, buf); }
int __xstat(int vers, const char *path, struct stat *buf) { return __fd_stat(path, (struct stat64*) buf); }