/* Copyright (c) 1993 Regents of the University of California */ #ifndef lint static char SCCSid[] = "$SunId$ LBL"; #endif /* * Return file date (UNIX seconds as returned by time(2) call) */ #include #include long fdate(fname) /* get file date */ char *fname; { struct stat sbuf; if (stat(fname, &sbuf) == -1) return(-1); return(sbuf.st_mtime); }