Home
last modified time | relevance | path

Searched refs:mtime (Results 1 – 25 of 208) sorted by relevance

123456789

/third_party/node/test/parallel/
Dtest-fs-utimes.js48 function check_mtime(resource, mtime, statSync) { argument
49 mtime = fs._toUnixTimestamp(mtime);
51 const real_mtime = fs._toUnixTimestamp(stats.mtime);
52 return mtime - real_mtime;
62 function expect_ok(syscall, resource, err, atime, mtime, statSync) { argument
63 const mtime_diff = check_mtime(resource, mtime, statSync);
82 [asPath, stats.mtime],
95 const [pathType, atime, mtime = atime] = value;
101 fs.utimes(pathType(tmpdir.path), atime, mtime, common.mustCall((err) => {
102 expect_ok('utimes', tmpdir.path, err, atime, mtime);
[all …]
Dtest-fs-stat-date.mjs21 // and retrieving atime and mtime. If it doesn't, skip the test.
25 common.skip(`Unsupported filesystem (atime=${atimeMs}, mtime=${mtimeMs})`);
46 async function runTest(atime, mtime, margin = 0) { argument
49 await fsPromises.utimes(filepath, new Date(atime), new Date(mtime));
57 closeEnough(stats.mtimeMs, mtime, margin);
59 closeEnough(stats.mtime.getTime(), new Date(mtime).getTime(), margin);
63 closeEnough(statsBigint.mtimeMs, BigInt(mtime), margin);
65 closeEnough(statsBigint.mtime.getTime(), new Date(mtime).getTime(), margin);
69 closeEnough(statsSync.mtimeMs, mtime, margin);
71 closeEnough(statsSync.mtime.getTime(), new Date(mtime).getTime(), margin);
[all …]
Dtest-fs-utimes-y2K38.js48 assert.strictEqual(Y2K38_stats.mtime.getTime() / 1000, Y2K38_mtime);
55 assert.strictEqual(truncate_stats.mtime.getTime(), truncate_mtime);
65 assert.strictEqual(overflow_stats.mtime.getTime(), overflow_mtime);
Dtest-fs-stat.js29 assert.ok(stats.mtime instanceof Date);
39 assert.ok(stats.mtime instanceof Date);
53 assert.ok(stats.mtime instanceof Date);
70 assert.ok(stats.mtime instanceof Date);
/third_party/ninja/src/
Ddeps_log.h74 bool RecordDeps(Node* node, TimeStamp mtime, const std::vector<Node*>& nodes);
75 bool RecordDeps(Node* node, TimeStamp mtime, int node_count, Node** nodes);
80 Deps(int64_t mtime, int node_count) in Deps()
81 : mtime(mtime), node_count(node_count), nodes(new Node*[node_count]) {} in Deps()
83 TimeStamp mtime; member
Ddeps_log.cc60 bool DepsLog::RecordDeps(Node* node, TimeStamp mtime, in RecordDeps() argument
62 return RecordDeps(node, mtime, nodes.size(), in RecordDeps()
66 bool DepsLog::RecordDeps(Node* node, TimeStamp mtime, in RecordDeps() argument
89 deps->mtime != mtime || in RecordDeps()
122 uint32_t mtime_part = static_cast<uint32_t>(mtime & 0xffffffff); in RecordDeps()
125 mtime_part = static_cast<uint32_t>((mtime >> 32) & 0xffffffff); in RecordDeps()
137 Deps* deps = new Deps(mtime, node_count); in RecordDeps()
209 TimeStamp mtime; in Load() local
210 mtime = (TimeStamp)(((uint64_t)(unsigned int)deps_data[2] << 32) | in Load()
215 Deps* deps = new Deps(mtime, deps_count); in Load()
[all …]
Dgraph.cc44 void Node::UpdatePhonyMtime(TimeStamp mtime) { in UpdatePhonyMtime() argument
46 mtime_ = std::max(mtime_, mtime); in UpdatePhonyMtime()
189 if (!most_recent_input || (*i)->mtime() > most_recent_input->mtime()) { in RecomputeNodeDirty()
294 output->UpdatePhonyMtime(most_recent_input->mtime()); in RecomputeOutputDirty()
310 if (most_recent_input && output->mtime() < most_recent_input->mtime()) { in RecomputeOutputDirty()
311 TimeStamp output_mtime = output->mtime(); in RecomputeOutputDirty()
320 output_mtime = entry->mtime; in RecomputeOutputDirty()
324 if (output_mtime < most_recent_input->mtime()) { in RecomputeOutputDirty()
329 output_mtime, most_recent_input->mtime()); in RecomputeOutputDirty()
345 if (most_recent_input && entry->mtime < most_recent_input->mtime()) { in RecomputeOutputDirty()
[all …]
Dbuild_log.cc121 start_time(start_time), end_time(end_time), mtime(restat_mtime) in LogEntry()
145 TimeStamp mtime) { in RecordCommand() argument
162 log_entry->mtime = mtime; in RecordCommand()
346 entry->mtime = restat_mtime; in Load()
386 entry.start_time, entry.end_time, entry.mtime, in WriteEntry()
467 const TimeStamp mtime = disk_interface.Stat(i->second->output, err); in Restat() local
468 if (mtime == -1) { in Restat()
472 i->second->mtime = mtime; in Restat()
Dbuild_log.h52 TimeStamp mtime = 0);
63 TimeStamp mtime; member
71 mtime == o.mtime;
Dbuild_log_test.cc187 ASSERT_EQ(456, e->mtime); in TEST_F()
211 ASSERT_EQ(456, e->mtime); in TEST_F()
218 ASSERT_EQ(789, e->mtime); in TEST_F()
254 ASSERT_EQ(3, e->mtime); in TEST_F()
262 ASSERT_EQ(3, e->mtime); // unchanged, since the filter doesn't match in TEST_F()
267 ASSERT_EQ(4, e->mtime); in TEST_F()
294 ASSERT_EQ(789, e->mtime); in TEST_F()
Dmanifest_parser_perftest.cc47 TimeStamp mtime = disk_interface.Stat(dir + "/build.ninja", err); in WriteFakeManifests() local
48 if (mtime != 0) // 0 means that the file doesn't exist yet. in WriteFakeManifests()
49 return mtime != -1; in WriteFakeManifests()
/third_party/elfutils/libdw/
Ddwarf_filesrc.c38 dwarf_filesrc (Dwarf_Files *file, size_t idx, Dwarf_Word *mtime, in dwarf_filesrc() argument
44 if (mtime != NULL) in dwarf_filesrc()
45 *mtime = file->info[idx].mtime; in dwarf_filesrc()
Ddwarf_linesrc.c38 dwarf_linesrc (Dwarf_Line *line, Dwarf_Word *mtime, Dwarf_Word *length) in dwarf_linesrc() argument
49 if (mtime != NULL) in dwarf_linesrc()
50 *mtime = line->files->info[line->file].mtime; in dwarf_linesrc()
/third_party/node/deps/npm/node_modules/tar/lib/
Dunpack.js452 if (entry.mtime && !this.noMtime) {
455 const mtime = entry.mtime
456 fs.futimes(fd, atime, mtime, er =>
457 er ? fs.utimes(abs, atime, mtime, er2 => done(er2 && er))
502 if (entry.mtime && !this.noMtime) {
504 fs.utimes(entry.absolute, entry.atime || new Date(), entry.mtime, done)
624 if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
750 if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
820 if (entry.mtime && !this.noMtime) {
822 const mtime = entry.mtime
[all …]
Dwrite-entry.js65 this.mtime = opt.mtime || null
445 this.mtime = this.noMtime ? null : opt.mtime || readEntry.mtime
476 mtime: this.noMtime ? null : this.mtime, property
495 mtime: this.noMtime ? null : this.mtime, property
Dpax.js14 this.mtime = obj.mtime || null
51 mtime: this.mtime || null, property
/third_party/elfutils/libdwfl/
Ddwfl_lineinfo.c38 Dwarf_Word *mtime, Dwarf_Word *length) in dwfl_lineinfo() argument
60 if (mtime != NULL) in dwfl_lineinfo()
61 *mtime = file->mtime; in dwfl_lineinfo()
/third_party/python/Lib/
Dlinecache.py68 size, mtime, lines, fullname = entry
69 if mtime is None:
76 if size != stat.st_size or mtime != stat.st_mtime:
142 size, mtime = stat.st_size, stat.st_mtime
143 cache[filename] = size, mtime, lines, fullname
Dgzip.py135 compresslevel=_COMPRESS_LEVEL_BEST, fileobj=None, mtime=None): argument
206 self._write_mtime = mtime
224 def mtime(self): member in GzipFile
257 mtime = self._write_mtime
258 if mtime is None:
259 mtime = time.time()
260 write32u(self.fileobj, int(mtime))
543 def compress(data, compresslevel=_COMPRESS_LEVEL_BEST, *, mtime=None): argument
548 with GzipFile(fileobj=buf, mode='wb', compresslevel=compresslevel, mtime=mtime) as f:
/third_party/typescript/tests/baselines/reference/
DAPISample_watcher.js23 …ersistent?: boolean; interval?: number; }, listener: (curr: { mtime: Date }, prev: { mtime: Date }… property
68 if (+curr.mtime <= +prev.mtime) {
162 if (+curr.mtime <= +prev.mtime) {
/third_party/typescript/tests/cases/compiler/
DAPISample_watcher.ts26 …ersistent?: boolean; interval?: number; }, listener: (curr: { mtime: Date }, prev: { mtime: Date }…
71 if (+curr.mtime <= +prev.mtime) {
/third_party/rust/crates/nix/src/sys/
Dstat.rs363 mtime: &TimeVal, in utimes()
365 let times: [libc::timeval; 2] = [*atime.as_ref(), *mtime.as_ref()]; in utimes()
395 mtime: &TimeVal, in lutimes()
397 let times: [libc::timeval; 2] = [*atime.as_ref(), *mtime.as_ref()]; in lutimes()
411 pub fn futimens(fd: RawFd, atime: &TimeSpec, mtime: &TimeSpec) -> Result<()> { in futimens()
412 let times: [libc::timespec; 2] = [*atime.as_ref(), *mtime.as_ref()]; in futimens()
448 mtime: &TimeSpec, in utimensat()
455 let times: [libc::timespec; 2] = [*atime.as_ref(), *mtime.as_ref()]; in utimensat()
/third_party/elfutils/tests/
Ddwfllines.c68 Dwarf_Word mtime; in main() local
71 &mtime, &length); in main()
140 assert (mtime == dw_mtime); in main()
148 i, addr, src, lineno, colno, mtime, length, in main()
/third_party/typescript/scripts/build/
Dutils.mjs107 const {mtime: outTime} = fs.statSync(dest);
108 const {mtime: inTime} = fs.statSync(source);
115 const {mtime: inTime} = fs.statSync(source);
118 const {mtime: outTime} = fs.statSync(filepath);
131 const {mtime: outTime} = fs.statSync(dest);
134 const {mtime: inTime} = fs.statSync(filepath);
152 const {mtime: outTime} = fs.statSync(dest[i]);
153 const {mtime: inTime} = fs.statSync(source[i]);
/third_party/python/Tools/scripts/
Dpathfix.py150 mtime = None
155 mtime = statbuf.st_mtime
178 if atime and mtime:
180 os.utime(filename, (atime, mtime))

123456789