int lstat64(const char *pathname, struct stat64 *buf) { static int (*real_lstat64)(const char *pathname, struct stat64 *buf) = NULL; const char *p; int ret; GET_PATH(lstat64); if (p) { ret = real_lstat64(p, buf); PUT_PATH(-1); } return real_lstat64(pathname, buf); }
int lstat64(char *name, void *st64) { if (smbw_path(name)) { double xx[32]; int ret = lstat(name, xx); stat64_convert(xx, st64); return ret; } return real_lstat64(name, st64); }