home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / compat / time / utimes.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-27  |  285 b   |  13 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <sys/time.h>
  3. #include <utime.h>
  4.  
  5. int
  6. utimes(const char *file, struct timeval tvp[2])
  7. {
  8.   struct utimbuf utb;
  9.   utb.actime = tvp[0].tv_sec;
  10.   utb.modtime = tvp[1].tv_sec;
  11.   return utime(file, &utb);
  12. }
  13.