--- ray/src/common/fdate.c 1993/11/22 09:31:59 2.3 +++ ray/src/common/fdate.c 1994/10/24 13:47:25 2.4 @@ -1,4 +1,4 @@ -/* Copyright (c) 1993 Regents of the University of California */ +/* Copyright (c) 1994 Regents of the University of California */ #ifndef lint static char SCCSid[] = "$SunId$ LBL"; @@ -22,4 +22,17 @@ char *fname; return(0); return(sbuf.st_mtime); +} + + +int +setfdate(fname, ftim) /* set file date */ +char *fname; +long ftim; +{ + time_t ftm[2]; + + ftm[0] = ftm[1] = ftim; + + return(utime(fname, ftm)); }