[aae1b3]: include / sys / utime.h  Maximize  Restore  History

Download this file

159 lines (136 with data), 4.7 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/**
* @file utime.h
* Copyright 2012, 2013 MinGW.org project
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
#ifndef _UTIME_H_
#define _UTIME_H_
#pragma GCC system_header
#include <_mingw.h>
#define __need_wchar_t
#define __need_size_t
#include <sys/types.h>
#ifndef RC_INVOKED
#include <stddef.h>
/*
* Structure used by _utime function.
*/
#ifndef _UTIMBUF_DEFINED
struct _utimbuf
{
time_t actime; /* Access time */
time_t modtime; /* Modification time */
};
struct __utimbuf32
{
__time32_t actime;
__time32_t modtime;
};
struct __utimbuf64
{
__time64_t actime;
__time64_t modtime;
};
#ifndef _NO_OLDNAMES
/* NOTE: Must be the same as _utimbuf above. */
struct utimbuf
{
time_t actime;
time_t modtime;
};
struct utimbuf32
{
__time32_t actime;
__time32_t modtime;
};
#endif /* Not _NO_OLDNAMES */
#define _UTIMBUF_DEFINED
#endif /* ndef _UTIMBUF_DEFINED */
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _NO_OLDNAMES
#ifdef _USE_32BIT_TIME_T
_CRTIMP int __cdecl __MINGW_NOTHROW utime (const char*, struct utimbuf*);
#else
#define utime _utime
#endif
#endif /* Not _NO_OLDNAMES */
_CRTIMP int __cdecl __MINGW_NOTHROW _utime64 (const char*, struct __utimbuf64*);
_CRTIMP int __cdecl __MINGW_NOTHROW _futime64 (int, struct __utimbuf64*);
#if MSVCRT_VERSION >= 800
_CRTIMP int __cdecl __MINGW_NOTHROW _utime32 (const char*, struct __utimbuf32*);
_CRTIMP int __cdecl __MINGW_NOTHROW _futime32 (int, struct __utimbuf32*);
#else
_CRTIMP int __cdecl __MINGW_NOTHROW _utime (const char*, struct _utimbuf*);
_CRTALIAS int __cdecl __MINGW_NOTHROW _utime32 (const char* _v1, struct __utimbuf32* _v2) {
return _utime(_v1, _v2);
}
_CRTIMP int __cdecl __MINGW_NOTHROW _futime (int, struct _utimbuf*);
_CRTALIAS int __cdecl __MINGW_NOTHROW _futime32 (int _v1, struct __utimbuf32* _v2) {
return _futime(_v1, _v2);
}
#endif
#ifndef _USE_32BIT_TIME_T
_CRTALIAS int __cdecl __MINGW_NOTHROW _utime (const char* _v1, struct _utimbuf* _v2) {
return(_utime64 (_v1,(struct __utimbuf64*)_v2));
}
_CRTALIAS int __cdecl __MINGW_NOTHROW _futime (int _v1, struct _utimbuf* _v2) {
return(_futime64 (_v1,(struct __utimbuf64*)_v2));
}
#else /* def _USE_32BIT_TIME_T */
#if MSVCRT_VERSION >= 800
_CRTALIAS int __cdecl __MINGW_NOTHROW _utime (const char* _v1, struct _utimbuf* _v2) {
return(_utime32 (_v1,(struct __utimbuf32*)_v2));
}
_CRTALIAS int __cdecl __MINGW_NOTHROW _futime (int _v1, struct _utimbuf* _v2) {
return(_futime32 (_v1,(struct __utimbuf32*)_v2));
}
#endif /* MSVCRT_VERSION >= 800 */
#endif /* ndef _USE_32BIT_TIME_T */
#ifndef _WUTIME_DEFINED
_CRTIMP int __cdecl __MINGW_NOTHROW _wutime64 (const wchar_t*, struct __utimbuf64*);
#if MSVCRT_VERSION >= 800
_CRTIMP int __cdecl __MINGW_NOTHROW _wutime32 (const wchar_t*, struct __utimbuf32*);
#else /* MSVCRT_VERSION < 800 */
_CRTIMP int __cdecl __MINGW_NOTHROW _wutime (const wchar_t*, struct _utimbuf*);
_CRTALIAS int __cdecl __MINGW_NOTHROW _wutime32 (const wchar_t* _v1, struct __utimbuf32* _v2) {
return _wutime(_v1, _v2);
}
#endif /* MSVCRT_VERSION >= 800 */
#ifdef _USE_32BIT_TIME_T
#if MSVCRT_VERSION >= 800
_CRTALIAS int __cdecl __MINGW_NOTHROW _wutime (const wchar_t* _v1, struct _utimbuf* _v2) {
return(_wutime32 (_v1,(struct __utimbuf32*)_v2));
}
#endif /* MSVCRT_VERSION >= 800 */
#else /* ndef _USE_32BIT_TIME_T */
_CRTALIAS int __cdecl __MINGW_NOTHROW _wutime (const wchar_t* _v1, struct _utimbuf* _v2) {
return(_wutime64 (_v1,(struct __utimbuf64*)_v2));
}
#endif /* def _USE_32BIT_TIME_T */
#define _WUTIME_DEFINED
#endif /* ndef _WUTIME_DEFINED */
#ifdef __cplusplus
}
#endif
#endif /* Not RC_INVOKED */
#endif /* Not _UTIME_H_ */

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks