ReactOS  0.4.14-dev-337-gf981a68
time_s.h
Go to the documentation of this file.
1 
7 #ifndef _TIME_H__S
8 #define _TIME_H__S
9 
10 #include <time.h>
11 
12 #if defined(MINGW_HAS_SECURE_API)
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18  _Success_(return == 0)
19  _CRTIMP
20  errno_t
21  __cdecl
22  _ctime32_s(
24  _In_ size_t _SizeInBytes,
26 
28  _CRTIMP
29  errno_t
30  __cdecl
32  _In_ struct tm *_Tm,
34 
35  _CRTIMP
36  errno_t
37  __cdecl
39  _Out_ struct tm *_Tm,
41 
43  _CRTIMP
44  errno_t
45  __cdecl
46  _strdate_s(
48  _In_range_(>= , 9) size_t _SizeInBytes);
49 
51  _CRTIMP
52  errno_t
53  __cdecl
54  _strtime_s(
56  _In_range_(>= , 9) size_t _SizeInBytes);
57 
58  _CRTIMP
59  errno_t
60  __cdecl
61  _ctime64_s(
62  _Out_writes_z_(_SizeInBytes) char *_Buf,
63  _In_ size_t _SizeInBytes,
65 
66  _CRTIMP
67  errno_t
68  __cdecl
70  _Out_ struct tm *_Tm,
72 
73  _CRTIMP
74  errno_t
75  __cdecl
77  _Out_ struct tm *_Tm,
79 
80 #ifndef _WTIME_S_DEFINED
81 #define _WTIME_S_DEFINED
82 
83  _CRTIMP
84  errno_t
85  __cdecl
88  _In_range_(>= , 26) size_t _SizeInWords,
89  _In_ const struct tm *_Tm);
90 
91  _Success_(return == 0)
92  _CRTIMP
93  errno_t
94  __cdecl
97  _In_ size_t _SizeInWords,
99 
100  _CRTIMP
101  errno_t
102  __cdecl
103  _wstrdate_s(
105  _In_ size_t _SizeInWords);
106 
107  _CRTIMP
108  errno_t
109  __cdecl
110  _wstrtime_s(
112  _In_range_(>= , 9) size_t _SizeInWords);
113 
114  _Success_(return == 0)
115  _CRTIMP
116  errno_t
117  __cdecl
118  _wctime64_s(
120  _In_ size_t _SizeInWords,
122 
123 #if !defined (RC_INVOKED) && !defined (_INC_WTIME_S_INL)
124 #define _INC_WTIME_S_INL
125  errno_t __cdecl _wctime_s(wchar_t *, size_t, const time_t *);
126 #ifndef _USE_32BIT_TIME_T
127 __CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer,size_t _SizeInWords,const time_t *_Time) { return _wctime64_s(_Buffer,_SizeInWords,_Time); }
128 #endif
129 #endif
130 
131 #endif /* _WTIME_S_DEFINED */
132 
133 #ifndef RC_INVOKED
134 #ifdef _USE_32BIT_TIME_T
135 __CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime32_s(_Tm,_Time); }
136 #else
137 __CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime64_s(_Tm,_Time); }
138 #endif
139 #endif
140 
141 #ifdef __cplusplus
142 }
143 #endif
144 
145 #endif /* MINGW_HAS_SECURE_API */
146 
147 #endif /* _TIME_H__S */
_CRTIMP errno_t __cdecl _wctime64_s(_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf, _In_ size_t _SizeInWords, _In_ const __time64_t *_Time)
_Check_return_wat_ _CRTIMP errno_t __cdecl _gmtime32_s(_In_ struct tm *_Tm, _In_ const __time32_t *_Time)
return
Definition: dirsup.c:529
#define __cdecl
Definition: accygwin.h:79
#define _CRTIMP
Definition: crtdefs.h:60
_CRTIMP errno_t __cdecl _localtime64_s(_Out_ struct tm *_Tm, _In_ const __time64_t *_Time)
long __time32_t
Definition: crtdefs.h:358
#define _Post_readable_size_(size)
Definition: no_sal2.h:464
#define _Out_writes_z_(size)
Definition: no_sal2.h:384
#define _Out_writes_(size)
Definition: no_sal2.h:367
_Check_return_wat_ _CRTIMP errno_t __cdecl _strtime_s(_Out_writes_(_SizeInBytes) _Post_readable_size_(9) char *_Buf, _In_range_(>=, 9) size_t _SizeInBytes)
#define _Out_
Definition: no_sal2.h:323
_CRTIMP errno_t __cdecl _wasctime_s(_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf, _In_range_(>=, 26) size_t _SizeInWords, _In_ const struct tm *_Tm)
int errno_t
Definition: crtdefs.h:353
_In_ size_t _SizeInWords
Definition: time.h:317
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm * _Tm
Definition: time.h:156
#define _Success_(expr)
Definition: no_sal2.h:635
_CRTIMP errno_t __cdecl _wstrtime_s(_Out_writes_(_SizeInWords) _Post_readable_size_(9) wchar_t *_Buf, _In_range_(>=, 9) size_t _SizeInWords)
_Check_return_wat_ _CRTIMP errno_t __cdecl _strdate_s(_Out_writes_(_SizeInBytes) _Post_readable_size_(9) char *_Buf, _In_range_(>=, 9) size_t _SizeInBytes)
Definition: time.h:76
_CRTIMP errno_t __cdecl _localtime32_s(_Out_ struct tm *_Tm, _In_ const __time32_t *_Time)
#define _In_
Definition: no_sal2.h:204
#define _Check_return_wat_
Definition: specstrings.h:74
__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm, const time_t *_Time)
Definition: time.h:425
__kernel_time_t time_t
Definition: linux.h:252
_In_ size_t _In_ const __time32_t * _Time
Definition: time.h:199
_CRTIMP errno_t __cdecl _wstrdate_s(_Out_writes_(_SizeInWords) _Post_readable_size_(9) wchar_t *_Buf, _In_ size_t _SizeInWords)
#define const
Definition: zconf.h:230
_In_ size_t _SizeInBytes
Definition: time.h:154
_CRTIMP errno_t __cdecl _gmtime64_s(_Out_ struct tm *_Tm, _In_ const __time64_t *_Time)
#define _In_range_(lb, ub)
Definition: no_sal2.h:227
__MINGW_EXTENSION typedef __int64 __time64_t
Definition: crtdefs.h:364
_CRTIMP errno_t __cdecl _ctime64_s(_Out_writes_z_(_SizeInBytes) char *_Buf, _In_ size_t _SizeInBytes, _In_ const __time64_t *_Time)
_CRTIMP errno_t __cdecl _wctime32_s(_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf, _In_ size_t _SizeInWords, _In_ const __time32_t *_Time)