int __fxstat(int vers, int fd, struct stat *buf) { struct stat64 tmp; int res = __fd_fstat(fd, &tmp); __stat64_to_stat(&tmp, buf); return res; }
int fstat(int fd, struct stat *buf) { return __fd_fstat(fd, (struct stat64*) buf); }
__attribute__((weak)) int fstat64(int fd, struct stat64 *buf) { return __fd_fstat(fd, buf); }
int __fxstat(int vers, int fd, struct stat *buf) { return __fd_fstat(fd, (struct stat64*) buf); }