summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-10-27 22:23:18 +0000
committerRoland McGrath <roland@redhat.com>1993-10-27 22:23:18 +0000
commit960650331a33256112c27b4b8bc982a85e389018 (patch)
tree82eab705218e53df15e7c22f69cbd3f317d1cb5a /file.h
parent462e1759704912a245d0b88729e2ec858a480953 (diff)
downloadgunmake-960650331a33256112c27b4b8bc982a85e389018.tar.gz
Formerly file.h.~6~
Diffstat (limited to 'file.h')
-rw-r--r--file.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/file.h b/file.h
index 235b0b0..fc24731 100644
--- a/file.h
+++ b/file.h
@@ -90,6 +90,17 @@ extern time_t f_mtime ();
#define file_mtime(f) file_mtime_1 ((f), 1)
#define file_mtime_no_search(f) file_mtime_1 ((f), 0)
+/* Modtime value to use for `infinitely new'. We used to get the current time
+ from the system and use that whenever we wanted `new'. But that causes
+ trouble when the machine running make and the machine holding a file have
+ different ideas about what time it is; and can also lose for `force'
+ targets, which need to be considered newer than anything that depends on
+ them, even if said dependents' modtimes are in the future.
+
+ NOTE: This assumes 32-bit `time_t's, but I cannot think of a portable way
+ to produce the largest representable integer of a given signed type. */
+#define NEW_MTIME ((time_t) 0x7fffffff)
+
#define check_renamed(file) \
while ((file)->renamed != 0) (file) = (file)->renamed /* No ; here. */