home *** CD-ROM | disk | FTP | other *** search
/ Beginning C++ Through Gam…rogramming (2nd Edition) / BCGP2E.ISO / bloodshed / devcpp-4.9.9.2_setup.exe / utime.h < prev    next >
C/C++ Source or Header  |  2005-01-29  |  2KB  |  83 lines

  1. /*
  2.  * utime.h
  3.  * This file has no copyright assigned and is placed in the Public Domain.
  4.  * This file is a part of the mingw-runtime package.
  5.  * No warranty is given; refer to the file DISCLAIMER within the package.
  6.  *
  7.  * Support for the utime function.
  8.  *
  9.  */
  10. #ifndef    _UTIME_H_
  11. #define    _UTIME_H_
  12.  
  13. /* All the headers include this file. */
  14. #include <_mingw.h>
  15.  
  16. #define __need_wchar_t
  17. #define __need_size_t
  18. #ifndef RC_INVOKED
  19. #include <stddef.h>
  20. #endif    /* Not RC_INVOKED */
  21. #include <sys/types.h>
  22.  
  23. #ifndef    RC_INVOKED
  24.  
  25. /*
  26.  * Structure used by _utime function.
  27.  */
  28. struct _utimbuf
  29. {
  30.     time_t    actime;        /* Access time */
  31.     time_t    modtime;    /* Modification time */
  32. };
  33.  
  34.  
  35. #ifndef    _NO_OLDNAMES
  36. /* NOTE: Must be the same as _utimbuf above. */
  37. struct utimbuf
  38. {
  39.     time_t    actime;
  40.     time_t    modtime;
  41. };
  42. #endif    /* Not _NO_OLDNAMES */
  43.  
  44. struct __utimbuf64
  45. {
  46.     __time64_t actime;
  47.     __time64_t modtime;
  48. };
  49.  
  50.  
  51. #ifdef    __cplusplus
  52. extern "C" {
  53. #endif
  54.  
  55. _CRTIMP int __cdecl    _utime (const char*, struct _utimbuf*);
  56.  
  57. #ifndef    _NO_OLDNAMES
  58. _CRTIMP int __cdecl    utime (const char*, struct utimbuf*);
  59. #endif    /* Not _NO_OLDNAMES */
  60.  
  61. _CRTIMP int __cdecl    _futime (int, struct _utimbuf*);
  62.  
  63. /* The wide character version, only available for MSVCRT versions of the
  64.  * C runtime library. */
  65. #ifdef __MSVCRT__
  66. _CRTIMP int __cdecl    _wutime (const wchar_t*, struct _utimbuf*);
  67. #endif /* MSVCRT runtime */
  68.  
  69. /* These require newer versions of msvcrt.dll (6.10 or higher).  */ 
  70. #if __MSVCRT_VERSION__ >= 0x0601
  71. _CRTIMP int __cdecl    _utime64 (const char*, struct __utimbuf64*);
  72. _CRTIMP int __cdecl    _wutime64 (const wchar_t*, struct __utimbuf64*);
  73. _CRTIMP int __cdecl    _futime64 (int, struct __utimbuf64*);
  74. #endif /* __MSVCRT_VERSION__ >= 0x0601 */
  75.  
  76. #ifdef    __cplusplus
  77. }
  78. #endif
  79.  
  80. #endif    /* Not RC_INVOKED */
  81.  
  82. #endif    /* Not _UTIME_H_ */
  83.