Home
last modified time | relevance | path

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

/build/kati/
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()
Dfile.cc35 struct stat st; in Makefile() local
36 if (fstat(fd, &st) < 0) { in Makefile()
40 size_t len = st.st_size; in Makefile()
41 mtime_ = st.st_mtime; in Makefile()
Dparser.cc132 void set_state(ParserState st) { state_ = st; } in set_state() argument
310 IfState* st = new IfState(); in EnterIf() local
311 st->stmt = stmt; in EnterIf()
312 st->is_in_else = false; in EnterIf()
313 st->num_nest = num_if_nest_; in EnterIf()
314 if_stack_.push(st); in EnterIf()
385 IfState* st = if_stack_.top(); in ParseElse() local
386 if (st->is_in_else) { in ParseElse()
390 st->is_in_else = true; in ParseElse()
391 out_stmts_ = &st->stmt->false_stmts; in ParseElse()
[all …]
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()
Dfind.cc817 static unsigned char GetDtTypeFromStat(const struct stat& st) { in GetDtTypeFromStat() argument
818 if (S_ISREG(st.st_mode)) { in GetDtTypeFromStat()
820 } else if (S_ISDIR(st.st_mode)) { in GetDtTypeFromStat()
822 } else if (S_ISCHR(st.st_mode)) { in GetDtTypeFromStat()
824 } else if (S_ISBLK(st.st_mode)) { in GetDtTypeFromStat()
826 } else if (S_ISFIFO(st.st_mode)) { in GetDtTypeFromStat()
828 } else if (S_ISLNK(st.st_mode)) { in GetDtTypeFromStat()
830 } else if (S_ISSOCK(st.st_mode)) { in GetDtTypeFromStat()
838 struct stat st; in GetDtType() local
839 if (lstat(path.c_str(), &st)) { in GetDtType()
[all …]
Dregen.cc308 struct stat st; in ShouldRunCommand() local
309 if (lstat(dir.c_str(), &st) != 0) { in ShouldRunCommand()
312 double ts = GetTimestampFromStat(st); in ShouldRunCommand()
316 if (S_ISLNK(st.st_mode)) { in ShouldRunCommand()
Dfileutil.h28 double GetTimestampFromStat(const struct stat& st);
Dstats.h43 explicit ScopedStatsRecorder(Stats* st, const char* msg = 0);
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()
Deval.cc241 ScopedTerminator st(pat); in EvalInclude() local
Dfunc.cc319 ScopedTerminator st(tok); in WildcardFunc() local
402 ScopedTerminator st(tok); in RealpathFunc() local
/build/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/tools/
Dfileslist.py21 st = os.lstat(path)
22 return st.st_size;