|
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 #ifdef __cplusplus |
|
45 extern "C" { |
|
46 #endif |
|
47 |
|
48 _CRTIMP int __cdecl __MINGW_NOTHROW _utime (const char*, struct _utimbuf*); |
|
49 |
|
50 #ifndef _NO_OLDNAMES |
|
51 _CRTIMP int __cdecl __MINGW_NOTHROW utime (const char*, struct utimbuf*); |
|
52 #endif /* Not _NO_OLDNAMES */ |
|
53 |
|
54 _CRTIMP int __cdecl __MINGW_NOTHROW _futime (int, struct _utimbuf*); |
|
55 |
|
56 /* The wide character version, only available for MSVCRT versions of the |
|
57 * C runtime library. */ |
|
58 #ifdef __MSVCRT__ |
|
59 _CRTIMP int __cdecl __MINGW_NOTHROW _wutime (const wchar_t*, struct _utimbuf*); |
|
60 #endif /* MSVCRT runtime */ |
|
61 |
|
62 /* These require newer versions of msvcrt.dll (6.10 or higher). */ |
|
63 #if __MSVCRT_VERSION__ >= 0x0601 |
|
64 struct __utimbuf64 |
|
65 { |
|
66 __time64_t actime; |
|
67 __time64_t modtime; |
|
68 }; |
|
69 |
|
70 _CRTIMP int __cdecl __MINGW_NOTHROW _utime64 (const char*, struct __utimbuf64*); |
|
71 _CRTIMP int __cdecl __MINGW_NOTHROW _wutime64 (const wchar_t*, struct __utimbuf64*); |
|
72 _CRTIMP int __cdecl __MINGW_NOTHROW _futime64 (int, struct __utimbuf64*); |
|
73 #endif /* __MSVCRT_VERSION__ >= 0x0601 */ |
|
74 |
|
75 #ifdef __cplusplus |
|
76 } |
|
77 #endif |
|
78 |
|
79 #endif /* Not RC_INVOKED */ |
|
80 |
|
81 #endif /* Not _UTIME_H_ */ |