Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 30) sorted by relevance

12

/build/soong/ui/terminal/
Dstatus_test.go30 calls func(stat status.StatusOutput)
97 stat := NewStatusOutput(smart, "", false, false)
98 tt.calls(stat)
99 stat.Flush()
108 stat := NewStatusOutput(simple, "", false, false)
109 tt.calls(stat)
110 stat.Flush()
119 stat := NewStatusOutput(smart, "", true, false)
120 tt.calls(stat)
121 stat.Flush()
[all …]
/build/soong/finder/fs/
Dfs_test.go33 …assertStat := func(t *testing.T, stat os.FileInfo, err error, wantName string, wantMode os.FileMod…
39 if g, w := stat.Name(), wantName; g != w {
42 if g, w := stat.Mode(), wantMode; g != w {
53 stat, err := filesystem.Lstat("/tmp/links/dir")
54 assertStat(t, stat, err, "dir", os.ModeSymlink)
56 stat, err = filesystem.Stat("/tmp/links/dir")
57 assertStat(t, stat, err, "realdir", os.ModeDir)
59 stat, err = filesystem.Lstat("/tmp/links/file")
60 assertStat(t, stat, err, "file", os.ModeSymlink)
62 stat, err = filesystem.Stat("/tmp/links/file")
[all …]
Dreaddir.go174 stat, err := os.Lstat(name)
179 return stat.Mode() & (os.ModeType | os.ModeCharDevice), nil
/build/soong/cmd/fileslist/
Dfileslist.go55 stat os.FileInfo member
58 func newNode(hostPath string, devicePath string, stat os.FileInfo) Node {
59 return Node{Name: devicePath, path: hostPath, stat: stat}
64 n.Size = n.stat.Size()
68 if n.stat.Mode()&os.ModeSymlink == 0 {
128 err = filepath.Walk(dir, func(path string, stat os.FileInfo, err error) error {
132 if stat.IsDir() {
144 ch <- newNode(absPath, devicePath, stat)
/build/make/tools/libhost/
DCopyFile.c31 # define lstat stat
58 static bool isSourceNewer(const struct stat* pSrcStat, const struct stat* pDstStat) in isSourceNewer()
68 static bool isHiresMtime(const struct stat* pSrcStat) in isHiresMtime()
84 static bool isSameFile(const struct stat* pSrcStat, const struct stat* pDstStat) in isSameFile()
160 static int setPermissions(const char* dst, const struct stat* pSrcStat, unsigned int options) in setPermissions()
209 static int copyRegular(const char* src, const char* dst, const struct stat* pSrcStat, unsigned int … in copyRegular()
211 struct stat dstStat; in copyRegular()
216 statResult = stat(dst, &dstStat); in copyRegular()
303 struct stat rsrcStat; in copyRegular()
313 if (stat(srcRsrcName, &rsrcStat) == 0 && rsrcStat.st_size > 0) { in copyRegular()
[all …]
/build/soong/cuj/
Dcuj.go63 stat := &status.Status{}
64 defer stat.Finish()
65 stat.AddOutput(output)
66 stat.AddOutput(trace.StatusTracer())
71 stat.Finish()
80 Status: stat,
93 stat.AddOutput(status.NewVerboseLog(log, filepath.Join(logsDir, "verbose.log")))
94 stat.AddOutput(status.NewErrorLog(log, filepath.Join(logsDir, "error.log")))
95 stat.AddOutput(status.NewProtoErrorLog(log, filepath.Join(logsDir, "build_error")))
96 stat.AddOutput(status.NewCriticalPath(log))
/build/soong/tests/
Dbootstrap_test.sh18 local bootstrap_mtime1=$(stat -c "%y" out/soong/.bootstrap/build.ninja)
19 local output_mtime1=$(stat -c "%y" out/soong/build.ninja)
21 local bootstrap_mtime2=$(stat -c "%y" out/soong/.bootstrap/build.ninja)
22 local output_mtime2=$(stat -c "%y" out/soong/build.ninja)
37 local mtime1=$(stat -c "%y" out/soong/.bootstrap/build.ninja)
42 local mtime2=$(stat -c "%y" out/soong/.bootstrap/build.ninja)
80 local mtime1=$(stat -c "%y" out/soong/build.ninja)
92 local mtime2=$(stat -c "%y" out/soong/build.ninja)
143 local ninja_mtime1=$(stat -c "%y" out/soong/build.ninja)
152 local ninja_mtime2=$(stat -c "%y" out/soong/build.ninja)
[all …]
/build/soong/ui/status/
Dninja_test.go35 stat := &Status{}
36 nr := NewNinjaReader(logger.New(ioutil.Discard), stat.StartTool(), filepath.Join(tempDir, "fifo"))
/build/make/tools/atree/
Dfs.cpp24 struct stat st; in is_dir()
25 err = stat(path.c_str(), &st); in is_dir()
113 struct stat st; in mkdir_recursively()
114 err = stat(p.c_str(), &st); in mkdir_recursively()
Dfiles.cpp346 struct stat st; in locate()
347 err = stat(full.c_str(), &st); in locate()
369 struct stat st; in stat_out()
370 err = stat(rec->outPath.c_str(), &st); in stat_out()
401 struct stat st; in add_more()
402 int err = stat(r.sourcePath.c_str(), &st); in add_more()
/build/soong/cmd/soong_ui/
Dmain.go186 stat := &status.Status{}
187 defer stat.Finish()
189 stat.AddOutput(output)
190 stat.AddOutput(trace.StatusTracer())
196 stat.Finish()
205 Status: stat,
234 stat.AddOutput(status.NewVerboseLog(log, filepath.Join(logsDir, c.logsPrefix+"verbose.log")))
235 stat.AddOutput(status.NewErrorLog(log, filepath.Join(logsDir, c.logsPrefix+"error.log")))
236 stat.AddOutput(status.NewProtoErrorLog(log, buildErrorFile))
237 stat.AddOutput(status.NewCriticalPath(log))
[all …]
/build/make/tools/rbcrun/cmd/
Drbcrun.go64 if stat, err := os.Stat(*rootdir); os.IsNotExist(err) || !stat.IsDir() {
/build/blueprint/microfactory/
Dmicrofactory_test.go145 if stat, err := os.Stat(out); err == nil {
146 firstTime = stat.ModTime()
188 if stat, err := os.Stat(out); err == nil {
190 if stat.ModTime() == firstTime {
194 if stat.ModTime() != firstTime {
197 t.Error("second:", stat.ModTime())
/build/soong/cmd/multiproduct_kati/
Dmain.go185 stat := &status.Status{}
186 defer stat.Finish()
187 stat.AddOutput(output)
190 stat.AddOutput(&failures)
195 stat.Finish()
203 Status: stat,
/build/make/tools/
Dcompare_builds.py124 import stat
454 st = os.stat(filename, follow_symlinks=False)
519 first_stat = os.stat(first_filename, follow_symlinks=False)
520 second_stat = os.stat(first_filename, follow_symlinks=False)
531 if stat.S_ISLNK(first_stat.st_mode):
534 elif stat.S_ISREG(first_stat.st_mode):
Dgenerate-self-extracting-archive.py131 input_archive_size = os.stat(input_archive_filename).st_size
Dfindleaves.py60 st = os.stat(os.path.join(root, dirs[i]))
/build/make/tools/acp/
Dacp.c48 struct stat sb; in process()
79 if (stat(stripDest, &sb) < 0) { in process()
/build/blueprint/tests/
Dtest_tree_tests.sh4 stat -c %Y $1
/build/make/tools/rbcrun/
Dhost.go121 if stat, err := os.Stat(path); err != nil || stat.IsDir() {
/build/make/tools/releasetools/
Dadd_img_to_target_files.py54 import stat
298 os.chmod(img.name, os.stat(img.name).st_mode | stat.S_IWUSR)
334 os.chmod(img.name, os.stat(img.name).st_mode | stat.S_IWUSR)
Dadd_img_to_target_files54 import stat
298 os.chmod(img.name, os.stat(img.name).st_mode | stat.S_IWUSR)
334 os.chmod(img.name, os.stat(img.name).st_mode | stat.S_IWUSR)
Dsign_target_files_apks158 import stat
597 if stat.S_ISLNK(info.external_attr >> 16):
/build/soong/cmd/sbox/
Dsbox.go395 stat, err := os.Stat(from)
403 perm := stat.Mode()
/build/blueprint/pathtools/
Dfs.go171 stat, err := os.Stat(fs.toAbs(name))
173 return true, stat.IsDir(), nil

12