Start anew
[msysgit.git] / mingw / include / sys / utime.h
blob75cfeb45a72029098847cc24da7b6859fc663790
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 struct __utimbuf64
46 __time64_t actime;
47 __time64_t modtime;
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
55 _CRTIMP int __cdecl _utime (const char*, struct _utimbuf*);
57 #ifndef _NO_OLDNAMES
58 _CRTIMP int __cdecl utime (const char*, struct utimbuf*);
59 #endif /* Not _NO_OLDNAMES */
61 _CRTIMP int __cdecl _futime (int, struct _utimbuf*);
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 */
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 */
76 #ifdef __cplusplus
78 #endif
80 #endif /* Not RC_INVOKED */
82 #endif /* Not _UTIME_H_ */