home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / CPMOD / HP700 / CPMOD. next >
Encoding:
Text File  |  1998-07-24  |  530 b   |  29 lines

  1. *** cpmod.c.orig    Mon Oct 19 14:42:50 1992
  2. --- cpmod.c    Mon Oct 19 14:46:25 1992
  3. ***************
  4. *** 11,16 ****
  5. --- 11,33 ----
  6.   #include <sys/stat.h>
  7.   #include <sys/time.h>
  8.   
  9. + #ifdef hpux
  10. + /* SCO has timevals, but uses sys V utime */
  11. + #include <utime.h>
  12. + utimes (name, tvp)
  13. +      char *name;
  14. +      struct timeval tvp[];
  15. + {
  16. +   struct utimbuf utb;
  17. +   utb.actime  = tvp[0].tv_sec;
  18. +   utb.modtime = tvp[1].tv_sec;
  19. +   utime (name, &utb);
  20. + }
  21. + #endif /* hpux */
  22.   main (argc, argv)
  23.       int argc;
  24.       char **argv;
  25.