| 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 | 
 #if __MSVCRT_VERSION__ >= 0x0800 | 
 
 
 
 
 
 | 34 | 
 struct __utimbuf32 | 
 
 
 
 
 
 | 35 | 
 { | 
 
 
 
 
 
 | 36 | 
         __time32_t actime; | 
 
 
 
 
 
 | 37 | 
         __time32_t modtime; | 
 
 
 
 
 
 | 38 | 
 }; | 
 
 
 
 
 
 | 39 | 
 #endif /* __MSVCRT_VERSION__ >= 0x0800 */ | 
 
 
 
 
 
 | 40 | 
  | 
 
 
 
 
 
 | 41 | 
  | 
 
 
 
 
 
 | 42 | 
 #ifndef _NO_OLDNAMES | 
 
 
 
 
 
 | 43 | 
 /* NOTE: Must be the same as _utimbuf above. */ | 
 
 
 
 
 
 | 44 | 
 struct utimbuf | 
 
 
 
 
 
 | 45 | 
 { | 
 
 
 
 
 
 | 46 | 
         time_t  actime; | 
 
 
 
 
 
 | 47 | 
         time_t  modtime; | 
 
 
 
 
 
 | 48 | 
 }; | 
 
 
 
 
 
 | 49 | 
 #endif  /* Not _NO_OLDNAMES */ | 
 
 
 
 
 
 | 50 | 
  | 
 
 
 
 
 
 | 51 | 
 #ifdef  __cplusplus | 
 
 
 
 
 
 | 52 | 
 extern "C" { | 
 
 
 
 
 
 | 53 | 
 #endif | 
 
 
 
 
 
 | 54 | 
  | 
 
 
 
 
 
 | 55 | 
 #if __MSVCRT_VERSION__ < 0x0800 | 
 
 
 
 
 
 | 56 | 
 _CRTIMP int __cdecl __MINGW_NOTHROW     _utime (const char*, struct _utimbuf*); | 
 
 
 
 
 
 | 57 | 
 #endif | 
 
 
 
 
 
 | 58 | 
  | 
 
 
 
 
 
 | 59 | 
 #ifndef _NO_OLDNAMES | 
 
 
 
 
 
 | 60 | 
 /* FIXME for __MSVCRT_VERSION__ >= 0x0800 */ | 
 
 
 
 
 
 | 61 | 
 _CRTIMP int __cdecl __MINGW_NOTHROW     utime (const char*, struct utimbuf*); | 
 
 
 
 
 
 | 62 | 
 #endif  /* Not _NO_OLDNAMES */ | 
 
 
 
 
 
 | 63 | 
  | 
 
 
 
 
 
 | 64 | 
 #if __MSVCRT_VERSION__ < 0x0800 | 
 
 
 
 
 
 | 65 | 
 _CRTIMP int __cdecl __MINGW_NOTHROW     _futime (int, struct _utimbuf*); | 
 
 
 
 
 
 | 66 | 
 #endif | 
 
 
 
 
 
 | 67 | 
  | 
 
 
 
 
 
 | 68 | 
 /* The wide character version, only available for MSVCRT versions of the | 
 
 
 
 
 
 | 69 | 
  * C runtime library. */ | 
 
 
 
 
 
 | 70 | 
 #ifdef __MSVCRT__ | 
 
 
 
 
 
 | 71 | 
 #if __MSVCRT_VERSION__ < 0x0800 | 
 
 
 
 
 
 | 72 | 
 _CRTIMP int __cdecl __MINGW_NOTHROW     _wutime (const wchar_t*, struct _utimbuf*); | 
 
 
 
 
 
 | 73 | 
 #endif | 
 
 
 
 
 
 | 74 | 
 #endif /* MSVCRT runtime */ | 
 
 
 
 
 
 | 75 | 
  | 
 
 
 
 
 
 | 76 | 
 /* These require newer versions of msvcrt.dll (6.10 or higher).  */ | 
 
 
 
 
 
 | 77 | 
 #if __MSVCRT_VERSION__ >= 0x0601 | 
 
 
 
 
 
 | 78 | 
 struct __utimbuf64 | 
 
 
 
 
 
 | 79 | 
 { | 
 
 
 
 
 
 | 80 | 
         __time64_t actime; | 
 
 
 
 
 
 | 81 | 
         __time64_t modtime; | 
 
 
 
 
 
 | 82 | 
 }; | 
 
 
 
 
 
 | 83 | 
  | 
 
 
 
 
 
 | 84 | 
 _CRTIMP int __cdecl __MINGW_NOTHROW     _utime64 (const char*, struct __utimbuf64*); | 
 
 
 
 
 
 | 85 | 
 _CRTIMP int __cdecl __MINGW_NOTHROW     _wutime64 (const wchar_t*, struct __utimbuf64*); | 
 
 
 
 
 
 | 86 | 
 _CRTIMP int __cdecl __MINGW_NOTHROW     _futime64 (int, struct __utimbuf64*); | 
 
 
 
 
 
 | 87 | 
 #endif /* __MSVCRT_VERSION__ >= 0x0601 */ | 
 
 
 
 
 
 | 88 | 
  | 
 
 
 
 
 
 | 89 | 
 #if __MSVCRT_VERSION__ >= 0x0800 | 
 
 
 
 
 
 | 90 | 
 _CRTIMP int __cdecl __MINGW_NOTHROW     _utime32 (const char*, struct __utimbuf32*); | 
 
 
 
 
 
 | 91 | 
 _CRTIMP int __cdecl __MINGW_NOTHROW     _wutime32 (const wchar_t*, struct __utimbuf32*); | 
 
 
 
 
 
 | 92 | 
 _CRTIMP int __cdecl __MINGW_NOTHROW     _futime32 (int, struct __utimbuf32*); | 
 
 
 
 
 
 | 93 | 
 #ifndef _USE_32BIT_TIME_T | 
 
 
 
 
 
 | 94 | 
 _CRTALIAS int __cdecl __MINGW_NOTHROW   _utime (const char* _v1, struct _utimbuf* _v2)     { return(_utime64  (_v1,(struct __utimbuf64*)_v2)); } | 
 
 
 
 
 
 | 95 | 
 _CRTALIAS int __cdecl __MINGW_NOTHROW   _wutime (const wchar_t* _v1, struct _utimbuf* _v2) { return(_wutime64 (_v1,(struct __utimbuf64*)_v2)); } | 
 
 
 
 
 
 | 96 | 
 _CRTALIAS int __cdecl __MINGW_NOTHROW   _futime (int _v1, struct _utimbuf* _v2)            { return(_futime64 (_v1,(struct __utimbuf64*)_v2)); } | 
 
 
 
 
 
 | 97 | 
 #else | 
 
 
 
 
 
 | 98 | 
 _CRTALIAS int __cdecl __MINGW_NOTHROW   _utime (const char* _v1, struct _utimbuf* _v2)     { return(_utime32  (_v1,(struct __utimbuf32*)_v2)); } | 
 
 
 
 
 
 | 99 | 
 _CRTALIAS int __cdecl __MINGW_NOTHROW   _wutime (const wchar_t* _v1, struct _utimbuf* _v2) { return(_wutime32 (_v1,(struct __utimbuf32*)_v2)); } | 
 
 
 
 
 
 | 100 | 
 _CRTALIAS int __cdecl __MINGW_NOTHROW   _futime (int _v1, struct _utimbuf* _v2)            { return(_futime32 (_v1,(struct __utimbuf32*)_v2)); } | 
 
 
 
 
 
 | 101 | 
 #endif | 
 
 
 
 
 
 | 102 | 
 #endif /* __MSVCRT_VERSION__ >= 0x0800 */ | 
 
 
 
 
 
 | 103 | 
  | 
 
 
 
 
 
 | 104 | 
 #ifdef  __cplusplus | 
 
 
 
 
 
 | 105 | 
 } | 
 
 
 
 
 
 | 106 | 
 #endif | 
 
 
 
 
 
 | 107 | 
  | 
 
 
 
 
 
 | 108 | 
 #endif  /* Not RC_INVOKED */ | 
 
 
 
 
 
 | 109 | 
  | 
 
 
 
 
 
 | 110 | 
 #endif  /* Not _UTIME_H_ */ |