home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK4 / INCLUDE / SYS / UTIME.H$ / UTIME
Encoding:
Text File  |  1991-12-11  |  1.3 KB  |  67 lines

  1. /***
  2. *sys\utime.h - definitions/declarations for utime()
  3. *
  4. *    Copyright (c) 1985-1992, 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 (_MSC_VER <= 600)
  22. #define __cdecl     _cdecl
  23. #define __far       _far
  24. #endif
  25.  
  26. #ifndef _TIME_T_DEFINED
  27. typedef unsigned long time_t;
  28. #define _TIME_T_DEFINED
  29. #endif
  30.  
  31. /* define struct used by utime() function */
  32.  
  33. #ifndef _UTIMBUF_DEFINED
  34.  
  35. struct _utimbuf {
  36.     time_t actime;        /* access time */
  37.     time_t modtime;     /* modification time */
  38.     };
  39.  
  40. #ifndef __STDC__
  41. /* Non-ANSI name for compatibility */
  42. struct utimbuf {
  43.     time_t actime;        /* access time */
  44.     time_t modtime;     /* modification time */
  45.     };
  46. #endif
  47.  
  48. #define _UTIMBUF_DEFINED
  49. #endif
  50.  
  51.  
  52. /* function prototypes */
  53.  
  54. int __cdecl _utime(const char *, struct _utimbuf *);
  55.  
  56. #ifndef __STDC__
  57. /* Non-ANSI name for compatibility */
  58. int __cdecl utime(const char *, struct utimbuf *);
  59. #endif
  60.  
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64.  
  65. #define _INC_UTIME
  66. #endif    /* _INC_UTIME */
  67.