3 * @copy 2012 MinGW.org project
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice (including the next
13 * paragraph) shall be included in all copies or substantial portions of the
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
27 /* All the headers include this file. */
30 #define __need_wchar_t
34 #endif /* Not RC_INVOKED */
35 #include <sys/types.h>
40 * Structure used by _utime function.
44 time_t actime; /* Access time */
45 time_t modtime; /* Modification time */
47 #if __MSVCRT_VERSION__ >= 0x0800
53 #endif /* __MSVCRT_VERSION__ >= 0x0800 */
57 /* NOTE: Must be the same as _utimbuf above. */
63 #endif /* Not _NO_OLDNAMES */
69 #if __MSVCRT_VERSION__ < 0x0800
70 _CRTIMP int __cdecl __MINGW_NOTHROW _utime (const char*, struct _utimbuf*);
74 /* FIXME for __MSVCRT_VERSION__ >= 0x0800 */
75 _CRTIMP int __cdecl __MINGW_NOTHROW utime (const char*, struct utimbuf*);
76 #endif /* Not _NO_OLDNAMES */
78 #if __MSVCRT_VERSION__ < 0x0800
79 _CRTIMP int __cdecl __MINGW_NOTHROW _futime (int, struct _utimbuf*);
82 /* The wide character version, only available for MSVCRT versions of the
83 * C runtime library. */
84 #if __MSVCRT_VERSION__ < 0x0800
85 _CRTIMP int __cdecl __MINGW_NOTHROW _wutime (const wchar_t*, struct _utimbuf*);
88 /* These require newer versions of msvcrt.dll (6.10 or higher). */
89 #if __MSVCRT_VERSION__ >= 0x0601
96 _CRTIMP int __cdecl __MINGW_NOTHROW _utime64 (const char*, struct __utimbuf64*);
97 _CRTIMP int __cdecl __MINGW_NOTHROW _wutime64 (const wchar_t*, struct __utimbuf64*);
98 _CRTIMP int __cdecl __MINGW_NOTHROW _futime64 (int, struct __utimbuf64*);
99 #endif /* __MSVCRT_VERSION__ >= 0x0601 */
101 #if __MSVCRT_VERSION__ >= 0x0800
102 _CRTIMP int __cdecl __MINGW_NOTHROW _utime32 (const char*, struct __utimbuf32*);
103 _CRTIMP int __cdecl __MINGW_NOTHROW _wutime32 (const wchar_t*, struct __utimbuf32*);
104 _CRTIMP int __cdecl __MINGW_NOTHROW _futime32 (int, struct __utimbuf32*);
105 #ifndef _USE_32BIT_TIME_T
106 _CRTALIAS int __cdecl __MINGW_NOTHROW _utime (const char* _v1, struct _utimbuf* _v2) { return(_utime64 (_v1,(struct __utimbuf64*)_v2)); }
107 _CRTALIAS int __cdecl __MINGW_NOTHROW _wutime (const wchar_t* _v1, struct _utimbuf* _v2) { return(_wutime64 (_v1,(struct __utimbuf64*)_v2)); }
108 _CRTALIAS int __cdecl __MINGW_NOTHROW _futime (int _v1, struct _utimbuf* _v2) { return(_futime64 (_v1,(struct __utimbuf64*)_v2)); }
110 _CRTALIAS int __cdecl __MINGW_NOTHROW _utime (const char* _v1, struct _utimbuf* _v2) { return(_utime32 (_v1,(struct __utimbuf32*)_v2)); }
111 _CRTALIAS int __cdecl __MINGW_NOTHROW _wutime (const wchar_t* _v1, struct _utimbuf* _v2) { return(_wutime32 (_v1,(struct __utimbuf32*)_v2)); }
112 _CRTALIAS int __cdecl __MINGW_NOTHROW _futime (int _v1, struct _utimbuf* _v2) { return(_futime32 (_v1,(struct __utimbuf32*)_v2)); }
114 #endif /* __MSVCRT_VERSION__ >= 0x0800 */
120 #endif /* Not RC_INVOKED */
122 #endif /* Not _UTIME_H_ */