MinGWify 'depends'
[msysgit.git] / mingw / include / sys / utime.h
blobb4447925656a9168503c4a803a9b0cb77c66b01e
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.
7 * Support for the utime function.
9 */
10 #ifndef _UTIME_H_
11 #define _UTIME_H_
13 /* All the headers include this file. */
14 #include <_mingw.h>
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>
23 #ifndef RC_INVOKED
26 * Structure used by _utime function.
28 struct _utimbuf
30 time_t actime; /* Access time */
31 time_t modtime; /* Modification time */
35 #ifndef _NO_OLDNAMES
36 /* NOTE: Must be the same as _utimbuf above. */
37 struct utimbuf
39 time_t actime;
40 time_t modtime;
42 #endif /* Not _NO_OLDNAMES */
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
48 _CRTIMP int __cdecl __MINGW_NOTHROW _utime (const char*, struct _utimbuf*);
50 #ifndef _NO_OLDNAMES
51 _CRTIMP int __cdecl __MINGW_NOTHROW utime (const char*, struct utimbuf*);
52 #endif /* Not _NO_OLDNAMES */
54 _CRTIMP int __cdecl __MINGW_NOTHROW _futime (int, struct _utimbuf*);
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 */
62 /* These require newer versions of msvcrt.dll (6.10 or higher). */
63 #if __MSVCRT_VERSION__ >= 0x0601
64 struct __utimbuf64
66 __time64_t actime;
67 __time64_t modtime;
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 */
75 #ifdef __cplusplus
77 #endif
79 #endif /* Not RC_INVOKED */
81 #endif /* Not _UTIME_H_ */