return __stat (dir, &buf) == 0 && S_ISDIR (buf.st_mode);
return __xstat (_STAT_VER, dir, &buf) == 0 && S_ISDIR (buf.st_mode);
direxists (const char *dir){  struct stat buf;  return __stat (dir, &buf) == 0 && S_ISDIR (buf.st_mode);}