[BACK]Return to timestamp.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/timestamp.h between version 1.11 and 1.12

version 1.11, 2023/08/19 04:21:06 version 1.12, 2024/04/09 15:08:21
Line 39 
Line 39 
  * ts_set_from_time_t(d, t):    create timestamp from time_t.   * ts_set_from_time_t(d, t):    create timestamp from time_t.
  */   */
   
 /* sysresult = set_times(name): set modification times on a file.  
  *                              system call results.  
  */  
   
 #define Init_Timestamp()        clock_gettime(CLOCK_REALTIME, &starttime)  #define Init_Timestamp()        clock_gettime(CLOCK_REALTIME, &starttime)
   
 #define TMIN (sizeof(time_t) == sizeof(int32_t) ? INT32_MIN : INT64_MIN)  #define TMIN (sizeof(time_t) == sizeof(int32_t) ? INT32_MIN : INT64_MIN)
Line 63 
Line 59 
         if (is_out_of_date(t)) \          if (is_out_of_date(t)) \
                 (t).tv_nsec++; \                  (t).tv_nsec++; \
 } while (0)  } while (0)
   
 extern int set_times(const char *);  
   
 extern struct timespec starttime;       /* The time at the start  extern struct timespec starttime;       /* The time at the start
                                          * of this whole process */                                           * of this whole process */

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12