home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c034 / 4.ddi / INCLUDE / SYS / UTIME.H$ / UTIME.bin
Encoding:
Text File  |  1989-09-27  |  968 b   |  44 lines

  1. /***
  2. *sys\utime.h - definitions/declarations for utime()
  3. *
  4. *    Copyright (c) 1985-1990, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *    This file defines the structure used by the utime routine to set
  8. *    new file access and modification times.  NOTE - MS-DOS
  9. *    does not recognize access time, so this field will
  10. *    always be ignored and the modification time field will be
  11. *    used to set the new time.
  12. *
  13. ****/
  14.  
  15. #if defined(_DLL) && !defined(_MT)
  16. #error Cannot define _DLL without _MT
  17. #endif
  18.  
  19. #ifdef _MT
  20. #define _FAR_ _far
  21. #else
  22. #define _FAR_
  23. #endif
  24.  
  25. #ifndef _TIME_T_DEFINED
  26. typedef long time_t;
  27. #define _TIME_T_DEFINED
  28. #endif
  29.  
  30. /* define struct used by utime() function */
  31.  
  32. #ifndef _UTIMBUF_DEFINED
  33. struct utimbuf {
  34.     time_t actime;        /* access time */
  35.     time_t modtime;     /* modification time */
  36.     };
  37. #define _UTIMBUF_DEFINED
  38. #endif
  39.  
  40.  
  41. /* function prototypes */
  42.  
  43. int _FAR_ _cdecl utime(char _FAR_ *, struct utimbuf _FAR_ *);
  44.