/third_party/node/test/parallel/ |
D | test-fs-utimes.js | 48 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 …]
|
D | test-fs-stat-date.mjs | 21 // 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 …]
|
D | test-fs-utimes-y2K38.js | 48 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);
|
D | test-fs-stat.js | 29 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/ |
D | deps_log.h | 74 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
|
D | deps_log.cc | 60 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 …]
|
D | graph.cc | 44 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 …]
|
D | build_log.cc | 121 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()
|
D | build_log.h | 52 TimeStamp mtime = 0); 63 TimeStamp mtime; member 71 mtime == o.mtime;
|
D | build_log_test.cc | 187 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()
|
D | manifest_parser_perftest.cc | 47 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/ |
D | dwarf_filesrc.c | 38 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()
|
D | dwarf_linesrc.c | 38 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/ |
D | unpack.js | 452 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 …]
|
D | write-entry.js | 65 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
|
D | pax.js | 14 this.mtime = obj.mtime || null 51 mtime: this.mtime || null, property
|
/third_party/elfutils/libdwfl/ |
D | dwfl_lineinfo.c | 38 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/ |
D | linecache.py | 68 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
|
D | gzip.py | 135 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/ |
D | APISample_watcher.js | 23 …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/ |
D | APISample_watcher.ts | 26 …ersistent?: boolean; interval?: number; }, listener: (curr: { mtime: Date }, prev: { mtime: Date }… 71 if (+curr.mtime <= +prev.mtime) {
|
/third_party/rust/crates/nix/src/sys/ |
D | stat.rs | 363 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/ |
D | dwfllines.c | 68 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/ |
D | utils.mjs | 107 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/ |
D | pathfix.py | 150 mtime = None 155 mtime = statbuf.st_mtime 178 if atime and mtime: 180 os.utime(filename, (atime, mtime))
|