Home
last modified time | relevance | path

Searched refs:st (Results 1 – 15 of 15) sorted by relevance

/build/kati/
Dfile.cc36 struct stat st; in Makefile() local
37 if (fstat(fd, &st) < 0) { in Makefile()
41 size_t len = st.st_size; in Makefile()
42 mtime_ = st.st_mtime; in Makefile()
Dfileutil.cc39 struct stat st; in Exists() local
40 if (stat(filename.as_string().c_str(), &st) < 0) { in Exists()
46 double GetTimestampFromStat(const struct stat& st) { in GetTimestampFromStat() argument
48 return st.st_mtime + st.st_mtim.tv_nsec * 0.001 * 0.001 * 0.001; in GetTimestampFromStat()
50 return st.st_mtime; in GetTimestampFromStat()
56 struct stat st; in GetTimestamp() local
57 if (stat(filename.as_string().c_str(), &st) < 0) { in GetTimestamp()
60 return GetTimestampFromStat(st); in GetTimestamp()
Dstats.cc65 ScopedStatsRecorder::ScopedStatsRecorder(Stats* st, const char* msg) in ScopedStatsRecorder() argument
66 : st_(st), msg_(msg) { in ScopedStatsRecorder()
84 for (Stats* st : *g_stats) { in ReportAllStats()
85 LOG_STAT("%s", st->String().c_str()); in ReportAllStats()
Dparser.cc141 void set_state(ParserState st) { state_ = st; } in set_state() argument
325 IfState* st = new IfState(); in EnterIf() local
326 st->stmt = stmt; in EnterIf()
327 st->is_in_else = false; in EnterIf()
328 st->num_nest = num_if_nest_; in EnterIf()
329 if_stack_.push(st); in EnterIf()
400 IfState* st = if_stack_.top(); in ParseElse() local
401 if (st->is_in_else) { in ParseElse()
405 st->is_in_else = true; in ParseElse()
406 out_stmts_ = &st->stmt->false_stmts; in ParseElse()
[all …]
Dfind.cc890 static unsigned char GetDtTypeFromStat(const struct stat& st) { in GetDtTypeFromStat() argument
891 if (S_ISREG(st.st_mode)) { in GetDtTypeFromStat()
893 } else if (S_ISDIR(st.st_mode)) { in GetDtTypeFromStat()
895 } else if (S_ISCHR(st.st_mode)) { in GetDtTypeFromStat()
897 } else if (S_ISBLK(st.st_mode)) { in GetDtTypeFromStat()
899 } else if (S_ISFIFO(st.st_mode)) { in GetDtTypeFromStat()
901 } else if (S_ISLNK(st.st_mode)) { in GetDtTypeFromStat()
903 } else if (S_ISSOCK(st.st_mode)) { in GetDtTypeFromStat()
911 struct stat st; in GetDtType() local
912 if (lstat(path.c_str(), &st)) { in GetDtType()
[all …]
Dfileutil.h30 double GetTimestampFromStat(const struct stat& st);
Dstats.h43 explicit ScopedStatsRecorder(Stats* st, const char* msg = 0);
Dregen.cc324 struct stat st; in ShouldRunCommand() local
325 if (lstat(dir.c_str(), &st) != 0) { in ShouldRunCommand()
328 double ts = GetTimestampFromStat(st); in ShouldRunCommand()
332 if (S_ISLNK(st.st_mode)) { in ShouldRunCommand()
Deval.go55 func (ac *accessCache) update(fn string, hash [sha1.Size]byte, st fileState) string {
65 if st != fileExists {
73 if st != fileNotExists {
85 State: st,
Dworker.go125 st, err := os.Stat(filename)
129 return st.ModTime().Unix()
Dfunc.cc326 ScopedTerminator st(tok); in WildcardFunc() local
408 ScopedTerminator st(tok); in RealpathFunc() local
710 struct stat st; in FileReadFunc() local
711 if (fstat(fd, &st) < 0) { in FileReadFunc()
715 size_t len = st.st_size; in FileReadFunc()
Deval.cc297 ScopedTerminator st(pat); in EvalInclude() local
/build/make/tools/atree/
Dfiles.cpp346 struct stat st; in locate() local
347 err = stat(full.c_str(), &st); in locate()
351 rec->sourceMod = st.st_mtime; in locate()
352 rec->sourceSize = st.st_size; in locate()
353 rec->sourceIsDir = S_ISDIR(st.st_mode); in locate()
369 struct stat st; in stat_out() local
370 err = stat(rec->outPath.c_str(), &st); in stat_out()
372 rec->outMod = st.st_mtime; in stat_out()
373 rec->outSize = st.st_size; in stat_out()
374 rec->outIsDir = S_ISDIR(st.st_mode); in stat_out()
[all …]
Dfs.cpp24 struct stat st; in is_dir() local
25 err = stat(path.c_str(), &st); in is_dir()
26 return err != 0 || S_ISDIR(st.st_mode); in is_dir()
113 struct stat st; in mkdir_recursively() local
114 err = stat(p.c_str(), &st); in mkdir_recursively()
123 else if (!S_ISDIR(st.st_mode)) { in mkdir_recursively()
/build/make/tools/
Dfindleaves.py60 st = os.stat(os.path.join(root, dirs[i]))
61 key = (st.st_dev, st.st_ino)