/freebsd/contrib/bmake/unit-tests/ |
H A D | varmod-mtime.mk | 1 # $NetBSD: varmod-mtime.mk,v 1.17 2025/06/28 22:39:29 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:46: Invalid argument "123x" for modifier ":mtime" 3 make: varmod-mtime.mk:68: Cannot determine mtime for "no/such/file1": <ENOENT> 5 make: varmod-mtime.mk:68: Cannot determine mtime for "no/such/file2": <ENOENT> 7 make: varmod-mtime.mk:78: Invalid argument "errorhandler-no" for modifier ":mtime" 8 while evaluating variable "MAKEFILE" with value "varmod-mtime.mk" 9 make: varmod-mtime.mk:86: Invalid argument "warn" for modifier ":mtime" 10 while evaluating variable "MAKEFILE" with value "varmod-mtime.mk" 11 make: varmod-mtime.mk: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 | 28 # 2. Write to the file in that clone and verify the mtime and ctime change, 62 o_mtime=$(ls -E% all $TESTDIR/clone/file | awk '/mtime/ {print $4}') 73 mtime=$(stat -c %Y $TESTDIR/clone/file) 77 mtime=$(stat -f "%m" $TESTDIR/clone/file) 81 mtime=$(ls -E% all $TESTDIR/clone/file | awk '/mtime/ {print $4}') 86 [[ $o_mtime = $mtime ]] && log_fail "mtime unchanged: $o_mtime $mtime"
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_archive_match_time.c | 50 failure("Both Its mtime and ctime should be excluded"); in test_newer_time() 55 failure("Both Its mtime and ctime should be excluded"); in test_newer_time() 61 failure("Both Its mtime and ctime should not be excluded"); in test_newer_time() 67 failure("Its mtime should be excluded"); in test_newer_time() 107 failure("Both Its mtime and ctime should be excluded"); in test_newer_time_str() 113 failure("Both Its mtime and ctime should be excluded"); in test_newer_time_str() 120 failure("Both Its mtime and ctime should not be excluded"); in test_newer_time_str() 127 failure("Its mtime should be excluded"); in test_newer_time_str() 148 failure("Both Its mtime and ctime should not be excluded"); in test_newer_time_str() 154 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...] |
/freebsd/contrib/libarchive/tar/test/ |
H A D | test_option_mtime.c | 39 /* Archive with --mtime 86400 */ in DEFINE_TEST() 42 "--mtime \"1970/1/2 0:0:0 UTC\" .", in DEFINE_TEST() 54 /* Archive with --mtime 86400 --clamp-mtime */ in DEFINE_TEST() 58 "--mtime \"1970/1/2 0:0:0 UTC\" --clamp-mtime .", in DEFINE_TEST() 70 /* Archive-to-archive copy with --mtime 0 */ in DEFINE_TEST() 73 "--mtime \"1970/1/1 0:0:0 UTC\" @noclamp.tar", in DEFINE_TEST()
|
/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 | 222 if (gn->youngestChild == NULL || cgn->mtime > gn->youngestChild->mtime) in GNode_UpdateYoungestChild() 232 if (gn->mtime < gn->youngestChild->mtime) { in IsOODateRegular() 240 if (gn->mtime == 0 && !(gn->type & OP_OPTIONAL)) { in IsOODateRegular() 262 * The mtime field of the node and the youngestChild field of its parents 277 if (gn->mtime != 0) in GNode_IsOODate() 279 Targ_FmtTime(gn->mtime)); in GNode_IsOODate() 310 } else if ((gn->type & OP_LIB) && (gn->mtime == 0 || Arch_IsLib(gn))) { in GNode_IsOODate() 317 oodate = (gn->mtime == 0 || Arch_LibOODate(gn) || in GNode_IsOODate() 370 * have their mtime stay below their children's mtime to keep parents in GNode_IsOODate() 515 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 | 619 struct timespec mtime; in extract_file() local 634 mtime.tv_sec = archive_entry_mtime(e); in extract_file() 635 mtime.tv_nsec = archive_entry_mtime_nsec(e); in extract_file() 644 sb.st_mtimespec.tv_sec > mtime.tv_sec || in extract_file() 645 (sb.st_mtimespec.tv_sec == mtime.tv_sec && in extract_file() 646 sb.st_mtimespec.tv_nsec >= mtime.tv_nsec) in extract_file() 648 sb.st_mtim.tv_sec > mtime.tv_sec || in extract_file() 649 (sb.st_mtim.tv_sec == mtime.tv_sec && in extract_file() 650 sb.st_mtim.tv_nsec >= mtime.tv_nsec) in extract_file() 652 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 | 24 # Ensure both truncate(2)/ftruncate(2) update target file mtime/ctime attributes 29 # 3. Verify both mtime/ctime are updated 48 verify_ne $timestm "$(stat -f "%m" $filename)" "mtime" 56 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 …]
|