Home
last modified time | relevance | path

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

12345678910>>...16

/netbsd-src/usr.bin/make/unit-tests/
H A Dvarmod-mtime.mk1 # $NetBSD: varmod-mtime.mk,v 1.14 2025/01/11 20:54:46 rillig Exp $
3 # Tests for the ':mtime' variable modifier, which maps each word of the
12 # didn't exist, the ':mtime' modifier would return the current time.
13 .if ${MAKEFILE:mtime} >= ${start}
18 # For a file that doesn't exist, the ':mtime' modifier returns the current
23 not_found_mtime:= ${no/such/file:L:mtime}
29 # The ':mtime' modifier accepts a timestamp in seconds as an optional
32 .if ${no/such/file:L:mtime=0} != "0"
39 .if ${no/such/file:L:mtime=00042} != "42"
45 # expect+1: Invalid argument '123x' for modifier ':mtime'
[all...]
/netbsd-src/external/gpl2/gmake/dist/
H A Dremake.c183 FILE_TIMESTAMP mtime = MTIME (file); in update_goal_chain() local
187 mtime != file->mtime_before_update) in update_goal_chain()
473 FILE_TIMESTAMP mtime; in update_file_1() local
479 mtime = file_mtime (d->file); in update_file_1()
540 d->changed = ((file_mtime (d->file) != mtime) in update_file_1()
557 FILE_TIMESTAMP mtime = file_mtime (d->file); in update_file_1() local
595 || file_mtime (d->file) != mtime); in update_file_1()
946 FILE_TIMESTAMP mtime; in check_dep() local
949 mtime = file_mtime (file); in check_dep()
951 if (mtime == NONEXISTENT_MTIME || mtime > this_mtime) in check_dep()
[all …]
/netbsd-src/external/bsd/nsd/dist/
H A Ddbaccess.c80 zone->mtime.tv_sec = 0; in namedb_zone_create()
81 zone->mtime.tv_nsec = 0; in namedb_zone_create()
171 file_get_mtime(const char* file, struct timespec* mtime, int* nonexist) in file_get_mtime() argument
175 mtime->tv_sec = 0; in file_get_mtime()
176 mtime->tv_nsec = 0; in file_get_mtime()
181 mtime->tv_sec = s.st_mtime; in file_get_mtime()
183 mtime->tv_nsec = s.st_mtimensec; in file_get_mtime()
185 mtime->tv_nsec = s.st_mtim.tv_nsec; in file_get_mtime()
187 mtime->tv_nsec = 0; in file_get_mtime()
196 struct timespec mtime; in namedb_read_zonefile() local
[all …]
H A Ddbcreate.c239 struct timespec mtime; in namedb_write_zonefile() local
261 if(!file_get_mtime(zfile, &mtime, &notexist)) { in namedb_write_zonefile()
262 get_time(&mtime); in namedb_write_zonefile()
264 zone->mtime = mtime; in namedb_write_zonefile()
/netbsd-src/usr.bin/make/
H A Dmake.c219 if (gn->youngestChild == NULL || cgn->mtime > gn->youngestChild->mtime) in GNode_UpdateYoungestChild()
229 if (gn->mtime < gn->youngestChild->mtime) { in IsOODateRegular()
237 if (gn->mtime == 0 && !(gn->type & OP_OPTIONAL)) { in IsOODateRegular()
274 if (gn->mtime != 0) in GNode_IsOODate()
276 Targ_FmtTime(gn->mtime)); in GNode_IsOODate()
307 } else if ((gn->type & OP_LIB) && (gn->mtime == 0 || Arch_IsLib(gn))) { in GNode_IsOODate()
314 oodate = (gn->mtime == 0 || Arch_LibOODate(gn) || in GNode_IsOODate()
519 time_t mtime; in Make_Recheck() local
522 mtime = gn->mtime; in Make_Recheck()
548 gn->mtime = now; in Make_Recheck()
[all …]
H A Darch.c673 DEBUG5(ARCH, "Reading archive %s member %.*s mtime %.*s\n", in ArchFindMember()
794 * Update the mtime of the GNode with the mtime from the archive member on
804 gn->mtime = (time_t)strtol(arh->ar_date, NULL, 10); in Arch_UpdateMTime()
806 gn->mtime = 0; in Arch_UpdateMTime()
810 * Given a nonexistent archive member's node, update gn->mtime from its
837 gn->mtime = pgn->mtime; in Arch_UpdateMemberMTime()
844 gn->mtime = 0; in Arch_UpdateMemberMTime()
894 gn->youngestChild->mtime > tocModTim in RanlibOODate()
[all...]
/netbsd-src/external/mpl/bind/dist/bin/tests/system/cds/
H A Dcheckmtime.pl16 my $mtime = time - (stat $file)[9];
17 die "bad mtime $mtime"
18 unless ($mtime - $target >= 0 && $mtime - $target < 60);
/netbsd-src/external/gpl3/autoconf/dist/lib/Autom4te/
H A DFileUtils.pm49 &find_file &mtime
135 sub mtime ($) subroutine
145 return $stat->mtime;
221 my $mtime = mtime ($file);
225 if ($mtime < mtime ($dep))
/netbsd-src/external/mpl/bind/dist/bin/tests/system/statschannel/
H A Dgeneric.py32 # Wait for the secondary zone files to appear to extract their mtime
77 mtime = datetime.utcfromtimestamp(si.st_mtime).replace(microsecond=0)
79 return mtime
91 mtime = zone_mtime(zonedir, name)
92 check_zone_timers(loaded, expires, refresh, mtime)
107 mtime = zone_mtime(zonedir, name)
108 if (mtime != dayzero) or (tries == 0):
109 # mtime was either retrieved successfully or no tries were
111 check_zone_timers(loaded, expires, refresh, mtime)
/netbsd-src/external/gpl2/xcvs/dist/src/
H A Dvers_ts.c404 time_t mtime; in unix_time_stamp() local
409 mtime = sb.st_mtime; in unix_time_stamp()
416 if (mtime < sb.st_mtime) in unix_time_stamp()
417 mtime = sb.st_mtime; in unix_time_stamp()
420 return mtime; in unix_time_stamp()
432 time_t mtime = unix_time_stamp (file); in time_stamp() local
433 return mtime ? entries_time (mtime) : NULL; in time_stamp()
/netbsd-src/external/bsd/libarchive/dist/libarchive/test/
H A Dtest_write_format_mtree.c33 time_t mtime; member
53 time_t mtime; member
91 archive_entry_set_mtime(ae, entries[i].mtime, 0); in test_write_format_mtree_sub()
92 assert(entries[i].mtime == archive_entry_mtime(ae)); in test_write_format_mtree_sub()
146 assertEqualInt(entries[i].mtime, archive_entry_mtime(ae)); in test_write_format_mtree_sub()
179 archive_entry_set_mtime(ae, entries2[i].mtime, 0); in test_write_format_mtree_sub2()
180 assert(entries2[i].mtime == archive_entry_mtime(ae)); in test_write_format_mtree_sub2()
236 assertEqualInt(entries2[i].mtime, archive_entry_mtime(ae)); in test_write_format_mtree_sub2()
H A Dtest_write_format_mtree_classic_indent.c34 time_t mtime; member
133 archive_entry_set_mtime(ae, entries[i].mtime, 0); in test_write_format_mtree_sub()
134 assertEqualInt(entries[i].mtime, archive_entry_mtime(ae)); in test_write_format_mtree_sub()
172 assertEqualInt(entries[i].mtime, archive_entry_mtime(ae)); in test_write_format_mtree_sub()
H A Dtest_write_format_mtree_classic.c34 time_t mtime; member
131 archive_entry_set_mtime(ae, entries[i].mtime, 0); in test_write_format_mtree_sub()
132 assertEqualInt(entries[i].mtime, archive_entry_mtime(ae)); in test_write_format_mtree_sub()
170 assertEqualInt(entries[i].mtime, archive_entry_mtime(ae)); in test_write_format_mtree_sub()
/netbsd-src/bin/pax/
H A Dtables.c436 if (arcn->sb.st_mtime > pt->mtime) { in chk_ftime()
440 pt->mtime = arcn->sb.st_mtime; in chk_ftime()
460 pt->mtime = arcn->sb.st_mtime; in chk_ftime()
955 set_ftime(pt->name, pt->mtime, pt->atime, 1, 0); in atdir_end()
966 add_atdir(char *fname, dev_t dev, ino_t ino, time_t mtime, time_t atime) in add_atdir() argument
1003 pt->mtime = mtime; in add_atdir()
1028 get_atdir(dev_t dev, ino_t ino, time_t *mtime, time_t *atime) in get_atdir() argument
1064 *mtime = pt->mtime; in get_atdir()
1182 dblk.mtime = psb->st_mtime; in add_dir()
1211 dblk->mtime = psb->st_mtime; in add_dir()
[all …]
H A Dtables.h79 time_t mtime; /* files last modification time */ member
147 time_t mtime; /* access and mod time to reset to */ member
172 time_t mtime; /* mtime to set */ member
/netbsd-src/usr.sbin/puffs/mount_9p/
H A Dnineproto.c127 uint32_t rdev, mode, atime, mtime; in proto_getstat() local
145 GETFIELD(p9pbuf_get_4, &mtime, 4); in proto_getstat()
154 vap->va_mtime.tv_sec = mtime; in proto_getstat()
155 vap->va_ctime.tv_sec = mtime; in proto_getstat()
327 uint32_t mode, atime, mtime; in proto_make_stat() local
349 mtime = vap->va_mtime.tv_sec; in proto_make_stat()
351 mtime = P9PROTO_STAT_NOVAL4; in proto_make_stat()
372 p9pbuf_put_4(pb, mtime); in proto_make_stat()
/netbsd-src/sys/nfs/
H A Dnfs_clntsubs.c157 struct timespec mtime; in nfs_loadattrcache() local
170 fxdr_nfsv3time(&fp->fa3_mtime, &mtime); in nfs_loadattrcache()
178 fxdr_nfsv2time(&fp->fa2_mtime, &mtime); in nfs_loadattrcache()
211 np->n_mtime = mtime; in nfs_loadattrcache()
228 vap->va_mtime = mtime; in nfs_loadattrcache()
384 struct timespec *mtime, bool docheck) in nfs_check_wccdata() argument
398 if (timespeccmp(omtime, mtime, <=)) { in nfs_check_wccdata()
439 (unsigned int)mtime->tv_sec, in nfs_check_wccdata()
440 (unsigned int)mtime->tv_nsec); in nfs_check_wccdata()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dmcache.c50 time_t mtime; member
102 m->mtime = time(NULL); in mcc_alloc()
208 m->mtime = time(NULL); in mcc_initialize()
311 m->mtime = time(NULL); in mcc_store_cred()
404 m->mtime = time(NULL); in mcc_remove_cred()
519 mto->mtime = mfrom->mtime = time(NULL); in mcc_move()
539 mcc_lastchange(krb5_context context, krb5_ccache id, krb5_timestamp *mtime) in mcc_lastchange() argument
543 *mtime = m->mtime; in mcc_lastchange()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dsftp-common.c66 a->mtime = 0; in attrib_clear()
84 a->mtime = st->st_mtime; in stat_to_attrib()
103 st->st_mtime = a->mtime; in attrib_to_stat()
131 (r = sshbuf_get_u32(b, &a->mtime)) != 0) in decode_attrib()
181 (r = sshbuf_put_u32(b, a->mtime)) != 0) in encode_attrib()
/netbsd-src/usr.bin/rdist/
H A Dserver.c613 time_t mtime; in update() local
677 mtime = 0; in update()
679 mtime = mtime * 10 + (*s++ - '0'); in update()
688 if (st->st_mtime == mtime) in update()
690 if (st->st_mtime < mtime) { in update()
695 } else if (st->st_mtime == mtime && st->st_size == size) in update()
755 time_t mtime; in recvf() local
781 mtime = 0; in recvf()
783 mtime = mtime * 10 + (*cp++ - '0'); in recvf()
840 if (fchtogm(-1, target, mtime, owner, group, mode) == 0) in recvf()
[all …]
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Dzfs_dir.c503 uint64_t mtime[2], ctime[2]; in zfs_link_create() local
542 zfs_tstamp_update_setup(zp, STATE_CHANGED, mtime, in zfs_link_create()
556 mtime, sizeof (mtime)); in zfs_link_create()
561 zfs_tstamp_update_setup(dzp, CONTENT_MODIFIED, mtime, ctime, B_TRUE); in zfs_link_create()
610 uint64_t mtime[2], ctime[2]; in zfs_link_destroy() local
653 zfs_tstamp_update_setup(zp, STATE_CHANGED, mtime, ctime, in zfs_link_destroy()
677 NULL, mtime, sizeof (mtime)); in zfs_link_destroy()
680 zfs_tstamp_update_setup(dzp, CONTENT_MODIFIED, mtime, ctime, B_TRUE); in zfs_link_destroy()
/netbsd-src/external/gpl2/rcs/dist/src/
H A Dci.c300 time_t mtime, wtime; variable
777 mtime = mtimeflag ? wtime : (time_t)-1;
780 if (changework || (r=fixwork(newworkmode,mtime)) != 0) {
803 if ((r=fixwork(newworkmode,mtime)) == 0)
811 workname, 1, newworkmode, mtime
1173 fixwork(mode_t newworkmode, time_t mtime) in fixwork() argument
1176 fixwork(newworkmode, mtime) in fixwork()
1178 time_t mtime;
1184 || setmtime(workname, mtime) != 0
/netbsd-src/external/bsd/cron/dist/
H A Dstructs.h53 time_t mtime; /* last modtime of crontab */ member
59 time_t mtime; /* last modtime on spooldir */ member
/netbsd-src/external/gpl3/autoconf/dist/bin/
H A Dautom4te.in882 my $tmtime = mtime ($tfile);
883 my $omtime = mtime ($ofile);
884 my ($file, $mtime) = ($tmtime < $omtime
990 if -f $icache && mtime ($icache) > mtime ($0);
1050 if $force || mtime ($output) < mtime ($ocache . $req->id);
/netbsd-src/external/mit/libuv/dist/test/
H A Dtest-fs.c59 double mtime; member
808 double mtime, in check_utime() argument
834 ASSERT_DOUBLE_EQ(mtime, (long) atime); in check_utime()
838 if (mtime > 0 || (long) mtime == mtime) in check_utime()
839 ASSERT_EQ(s->st_mtim.tv_sec, (long) mtime); in check_utime()
841 ASSERT_GE(s->st_mtim.tv_sec, (long) mtime - 1); in check_utime()
843 ASSERT_LE(s->st_mtim.tv_sec, (long) mtime); in check_utime()
860 ASSERT_DOUBLE_EQ(st_mtim, mtime); in check_utime()
875 check_utime(c->path, c->atime, c->mtime, /* test_lutime */ 0); in utime_cb()
890 check_utime(c->path, c->atime, c->mtime, /* test_lutime */ 0); in futime_cb()
[all …]

12345678910>>...16