/freebsd/contrib/bmake/unit-tests/ |
H A D | varmod-mtime.mk | 1 # $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 …]
|
H A D | varmod-mtime.exp | 1 make: "varmod-mtime.mk" line 46: Invalid argument '123x' for modifier ':mtime' 3 make: "varmod-mtime.mk" line 68: Cannot determine mtime for 'no/such/file1': <ENOENT> 5 make: "varmod-mtime.mk" line 68: Cannot determine mtime for 'no/such/file2': <ENOENT> 7 make: "varmod-mtime.mk" line 78: Invalid argument 'errorhandler-no' for modifier ':mtime' 8 while evaluating variable "MAKEFILE" with value "varmod-mtime.mk" 9 make: "varmod-mtime.mk" line 86: Invalid argument 'warn' for modifier ':mtime' 10 while evaluating variable "MAKEFILE" with value "varmod-mtime.mk" 11 make: "varmod-mtime.mk" line 110: Unknown modifier "mtim"
|
/freebsd/contrib/pjdfstest/tests/open/ |
H A D | 00.t | 57 # Update parent directory ctime/mtime if file didn't exist. 64 mtime=`${fstest} stat ${n0} mtime` 65 test_check $time -lt $mtime 68 mtime=`${fstest} stat . mtime` 69 test_check $time -lt $mtime 74 # Don't update parent directory ctime/mtime if file existed. 76 dmtime=`${fstest} stat . mtime` 80 mtime=`${fstest} stat . mtime` 81 test_check $dmtime -eq $mtime 88 mtime1=`${fstest} stat ${n0} mtime` [all …]
|
/freebsd/contrib/pjdfstest/tests/unlink/ |
H A D | 00.t | 142 mtime=`${fstest} stat ${n0} mtime` 143 test_check $time -lt $mtime 153 mtime=`${fstest} stat ${n0} mtime` 154 test_check $time -lt $mtime 164 mtime=`${fstest} stat ${n0} mtime` 165 test_check $time -lt $mtime 175 mtime=`${fstest} stat ${n0} mtime` 176 test_check $time -lt $mtime 186 mtime=`${fstest} stat ${n0} mtime` 187 test_check $time -lt $mtime [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/nopwrite/ |
H A D | nopwrite_mtime.ksh | 27 # 2. Write to the file in that clone and verify the mtime and ctime change, 61 o_mtime=$(ls -E% all $TESTDIR/clone/file | awk '/mtime/ {print $4}') 72 mtime=$(stat -c %Y $TESTDIR/clone/file) 76 mtime=$(stat -f "%m" $TESTDIR/clone/file) 80 mtime=$(ls -E% all $TESTDIR/clone/file | awk '/mtime/ {print $4}') 85 [[ $o_mtime = $mtime ]] && log_fail "mtime unchanged: $o_mtime $mtime"
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_archive_match_time.c | 51 failure("Both Its mtime and ctime should be excluded"); in test_newer_time() 56 failure("Both Its mtime and ctime should be excluded"); in test_newer_time() 62 failure("Both Its mtime and ctime should not be excluded"); in test_newer_time() 68 failure("Its mtime should be excluded"); in test_newer_time() 108 failure("Both Its mtime and ctime should be excluded"); in test_newer_time_str() 114 failure("Both Its mtime and ctime should be excluded"); in test_newer_time_str() 121 failure("Both Its mtime and ctime should not be excluded"); in test_newer_time_str() 128 failure("Its mtime should be excluded"); in test_newer_time_str() 149 failure("Both Its mtime and ctime should not be excluded"); in test_newer_time_str() 155 failure("Both Its mtime and ctime should be excluded"); in test_newer_time_str() [all …]
|
H A D | test_write_disk_times.c | 44 * Easy case: mtime and atime both specified. in DEFINE_TEST() 59 * mtime specified, but not atime in DEFINE_TEST() 72 * atime specified, but not mtime in DEFINE_TEST() 81 /* Verify: Current mtime and atime as specified. */ in DEFINE_TEST() 86 * Neither atime nor mtime specified. in DEFINE_TEST() 94 /* Verify: Current mtime and atime. */ in DEFINE_TEST() 100 * High-res mtime and atime on FreeBSD. in DEFINE_TEST() 115 * Birthtime, mtime and atime on FreeBSD in DEFINE_TEST() 122 /* mtime must be later than birthtime! */ in DEFINE_TEST() 148 * mtime onl in DEFINE_TEST() [all...] |
H A D | test_write_format_mtree.c | 33 time_t mtime; 53 time_t mtime; 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() 34 time_t mtime; global() member 54 time_t mtime; global() member
|
/freebsd/contrib/netbsd-tests/fs/tmpfs/ |
H A D | t_times.sh | 45 [ ${ost_birthtime} -eq ${ost_mtime} ] || atf_fail "Incorrect mtime" 52 [ ${st_mtime} -eq ${ost_mtime} ] || atf_fail "Incorrect mtime" 60 [ ${st_mtime} -gt ${ost_mtime} ] || atf_fail "Incorrect mtime" 79 [ ${ost_birthtime} -eq ${ost_mtime} ] || atf_fail "Incorrect mtime" 86 [ ${st_mtime} -eq ${ost_mtime} ] || atf_fail "Incorrect mtime" 108 [ ${st_mtime} -eq ${ost_mtime} ] || atf_fail "Incorrect mtime" 130 [ ${st_mtime} -eq ${ost_mtime} ] || atf_fail "Incorrect mtime" 154 [ ${st_mtime} -eq ${ost_mtime} ] || atf_fail "Incorrect mtime" 155 [ ${dst_mtime} -gt ${dost_mtime} ] || atf_fail "Incorrect mtime"
|
/freebsd/contrib/pjdfstest/tests/mknod/ |
H A D | 11.t | 68 mtime=`${fstest} stat ${n0} mtime` 69 test_check $time -lt $mtime 72 mtime=`${fstest} stat . mtime` 73 test_check $time -lt $mtime
|
H A D | 00.t | 63 mtime=`${fstest} stat ${n0} mtime` 64 test_check $time -lt $mtime 67 mtime=`${fstest} stat . mtime` 68 test_check $time -lt $mtime
|
/freebsd/contrib/pjdfstest/tests/mkdir/ |
H A D | 00.t | 63 mtime=`${fstest} stat ${n0} mtime` 64 test_check $time -lt $mtime 67 mtime=`${fstest} stat . mtime` 68 test_check $time -lt $mtime
|
/freebsd/contrib/pjdfstest/tests/mkfifo/ |
H A D | 00.t | 63 mtime=`${fstest} stat ${n0} mtime` 64 test_check $time -lt $mtime 67 mtime=`${fstest} stat . mtime` 68 test_check $time -lt $mtime
|
/freebsd/contrib/bmake/ |
H A D | make.c | 219 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() 259 * The mtime field of the node and the youngestChild field of its parents 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() 367 * have their mtime stay below their children's mtime to keep parents in GNode_IsOODate() 519 time_t mtime; in Make_Recheck() local [all …]
|
/freebsd/contrib/libarchive/cpio/test/ |
H A D | test_option_m.c | 14 * The reference archive has one file with an mtime in 1970, 1 in DEFINE_TEST() 18 /* Restored without -m, the result should have a current mtime. */ in DEFINE_TEST() 29 /* With -m, it should have an mtime in 1970. */ in DEFINE_TEST() 39 * mtime in reference archive is '1' == 1 second after in DEFINE_TEST()
|
H A D | test_option_t.c | 17 time_t mtime; in DEFINE_TEST() local 71 mtime = 1; in DEFINE_TEST() 77 tmptr = localtime_s(&tmbuf, &mtime) ? NULL : &tmbuf; in DEFINE_TEST() 79 tmptr = localtime_r(&mtime, &tmbuf); in DEFINE_TEST() 81 tmptr = localtime(&mtime); in DEFINE_TEST()
|
/freebsd/contrib/pjdfstest/tests/utimensat/ |
H A D | 01.t | 24 old_mtime=`$fstest lstat ${n0} mtime` 29 new_mtime=`$fstest lstat ${n0} mtime` 38 echo "not ok 4 new mtime is implausibly far in the future" 41 echo "not ok 4 mtime was not updated"
|
H A D | 05.t | 35 expect $DATE2 lstat ${n0} mtime 37 expect $DATE4 lstat ${n2} mtime 41 expect $DATE6 lstat ${n0} mtime 47 expect $DATE4 lstat ${n2} mtime
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | mcache.c | 48 time_t mtime; member 99 m->mtime = time(NULL); in mcc_alloc() 165 m->mtime = time(NULL); in mcc_initialize() 261 m->mtime = time(NULL); in mcc_store_cred() 336 m->mtime = time(NULL); in mcc_remove_cred() 443 mto->mtime = mfrom->mtime = time(NULL); in mcc_move() 464 mcc_lastchange(krb5_context context, krb5_ccache id, krb5_timestamp *mtime) in mcc_lastchange() argument 466 *mtime = MCACHE(id)->mtime; in mcc_lastchange()
|
/freebsd/contrib/libarchive/unzip/ |
H A D | bsdunzip.c | 618 struct timespec mtime; in extract_file() local 633 mtime.tv_sec = archive_entry_mtime(e); in extract_file() 634 mtime.tv_nsec = archive_entry_mtime_nsec(e); in extract_file() 643 sb.st_mtimespec.tv_sec > mtime.tv_sec || in extract_file() 644 (sb.st_mtimespec.tv_sec == mtime.tv_sec && in extract_file() 645 sb.st_mtimespec.tv_nsec >= mtime.tv_nsec) in extract_file() 647 sb.st_mtim.tv_sec > mtime.tv_sec || in extract_file() 648 (sb.st_mtim.tv_sec == mtime.tv_sec && in extract_file() 649 sb.st_mtim.tv_nsec >= mtime.tv_nsec) in extract_file() 651 sb.st_mtime > mtime.tv_sec || in extract_file() [all …]
|
/freebsd/usr.sbin/cron/cron/ |
H A D | database.c | 94 /* if spooldir's mtime has not changed, we don't need to fiddle with in load_database() 97 * Note that old_db->mtime is initialized to 0 in main(), and in load_database() 98 * so is guaranteed to be different than the stat() mtime the first in load_database() 101 if (old_db->mtime == maxmtime) { in load_database() 102 Debug(DLOAD, ("[%d] spool dir mtime unch, no load needed.\n", in load_database() 112 new_db.mtime = maxmtime; in load_database() 147 * we fork a lot more often than the mtime of the dir changes. in load_database() 271 if (u->mtime == statbuf->st_mtime) { in process_crontab() 292 u->mtime = statbuf->st_mtime; in process_crontab()
|
/freebsd/sys/fs/smbfs/ |
H A D | smbfs_subr.h | 137 struct timespec *mtime, struct smb_cred *scred); 138 int smbfs_smb_setptime2(struct smbnode *np, struct timespec *mtime, 141 struct timespec *mtime, struct timespec *atime, struct smb_cred *scred); 143 int smbfs_smb_setftime(struct smbnode *np, struct timespec *mtime, 146 struct timespec *mtime, struct timespec *atime, struct smb_cred *scred); 150 struct timespec *mtime, struct smb_cred *scred);
|
/freebsd/contrib/elftoolchain/libelftc/ |
H A D | elftc_set_timestamps.c | 42 #define MTIME st_mtimespec macro 48 #define MTIME st_mtim macro 70 tv[1].tv_sec = sb->MTIME.tv_sec; in elftc_set_timestamps() 71 tv[1].tv_usec = sb->MTIME.tv_nsec / 1000; in elftc_set_timestamps()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/truncate/ |
H A D | truncate_timestamps.ksh | 23 # Ensure both truncate(2)/ftruncate(2) update target file mtime/ctime attributes 28 # 3. Verify both mtime/ctime are updated 47 verify_ne $timestm "$(stat -f "%m" $filename)" "mtime" 55 verify_ne $timestm "$(stat -c %Y $filename)" "mtime"
|
/freebsd/share/doc/smm/03.fsck/ |
H A D | 4.t | 718 .B "UNALLOCATED I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP \fItype\fP=\fIF\fP … 731 .B "DUP/BAD I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP \fItype\fP=\fIF\fP (REM… 745 .B "ZERO LENGTH DIRECTORY I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\… 759 .B "DIRECTORY TOO SHORT I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP… 788 .B "DIRECTORY CORRUPTED I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP… 803 .B "BAD INODE NUMBER FOR `.' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\f… 815 .B "MISSING `.' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)" 826 .B "MISSING `.' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP" 840 .B "MISSING `.' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP" 850 .B "EXTRA `.' ENTRY I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FI… [all …]
|