int fstat(int fd, void *st) { #if HAVE___LXSTAT return __fxstat(0, fd, st); #else if (smbw_fd(fd)) { return smbw_fstat(fd, st); } return real_fstat(fd, st); #endif }
int __fxstat(int vers, int fd, struct stat *st) { check_init("__fxstat"); if (smbw_fd(fd)) { struct SMBW_stat statbuf; int ret = smbw_fstat(fd, &statbuf); stat_convert(&statbuf, st); return ret; } return (* smbw_libc.__fxstat)(vers, fd, st); }
int __fxstat(int vers, int fd, void *st) { double xx[32]; int ret; if (smbw_fd(fd)) { return smbw_fstat(fd, st); } ret = real_fstat(fd, xx); xstat_convert(vers, st, xx); return ret; }
int fstat64(int fd, struct stat64 *st64) { check_init("fstat64"); if (smbw_fd(fd)) { struct SMBW_stat statbuf; int ret = smbw_fstat(fd, &statbuf); stat64_convert(&statbuf, st64); return ret; } return (* smbw_libc.fstat64)(fd, st64); }