home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c045 / 2.ddi / INCLUDE / SYS / UTIME.H$ / UTIME.bin
Encoding:
Text File  |  1992-01-01  |  1.5 KB  |  78 lines

  1. /***
  2. *sys\utime.h - definitions/declarations for utime()
  3. *
  4. *    Copyright (c) 1985-1991, 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. #ifndef _INC_UTIME
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. #if defined(_DLL) && !defined(_MT)
  22. #error Cannot define _DLL without _MT
  23. #endif
  24.  
  25. #ifdef _MT
  26. #define _FAR_ __far
  27. #else
  28. #define _FAR_
  29. #endif
  30.  
  31. #if (_MSC_VER <= 600)
  32. #define __cdecl     _cdecl
  33. #define __far       _far
  34. #define __loadds    _loadds
  35. #endif
  36.  
  37. #ifndef _TIME_T_DEFINED
  38. typedef unsigned long time_t;
  39. #define _TIME_T_DEFINED
  40. #endif
  41.  
  42. /* define struct used by utime() function */
  43.  
  44. #ifndef _UTIMBUF_DEFINED
  45.  
  46. struct _utimbuf {
  47.     time_t actime;        /* access time */
  48.     time_t modtime;     /* modification time */
  49.     };
  50.  
  51. #ifndef __STDC__
  52. /* Non-ANSI name for compatibility */
  53. struct utimbuf {
  54.     time_t actime;        /* access time */
  55.     time_t modtime;     /* modification time */
  56.     };
  57. #endif
  58.  
  59. #define _UTIMBUF_DEFINED
  60. #endif
  61.  
  62.  
  63. /* function prototypes */
  64.  
  65. int _FAR_ __cdecl _utime(char _FAR_ *, struct _utimbuf _FAR_ *);
  66.  
  67. #ifndef __STDC__
  68. /* Non-ANSI name for compatibility */
  69. int _FAR_ __cdecl utime(char _FAR_ *, struct utimbuf _FAR_ *);
  70. #endif
  71.  
  72. #ifdef __cplusplus
  73. }
  74. #endif
  75.  
  76. #define _INC_UTIME
  77. #endif    /* _INC_UTIME */
  78.