Lines Matching refs:st
900 static unsigned char GetDtTypeFromStat(const struct stat& st) { in GetDtTypeFromStat() argument
901 if (S_ISREG(st.st_mode)) { in GetDtTypeFromStat()
903 } else if (S_ISDIR(st.st_mode)) { in GetDtTypeFromStat()
905 } else if (S_ISCHR(st.st_mode)) { in GetDtTypeFromStat()
907 } else if (S_ISBLK(st.st_mode)) { in GetDtTypeFromStat()
909 } else if (S_ISFIFO(st.st_mode)) { in GetDtTypeFromStat()
911 } else if (S_ISLNK(st.st_mode)) { in GetDtTypeFromStat()
913 } else if (S_ISSOCK(st.st_mode)) { in GetDtTypeFromStat()
921 struct stat st; in GetDtType() local
922 if (lstat(path.c_str(), &st)) { in GetDtType()
925 return GetDtTypeFromStat(st); in GetDtType()
994 struct stat st; in ResolveSymlinks() local
996 if (stat(path.c_str(), &st) == 0) { in ResolveSymlinks()
997 type = GetDtTypeFromStat(st); in ResolveSymlinks()