ReactOS 0.4.15-dev-7693-gd0e2924
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
15extern "C" {
16#endif
17
18 _Success_(return == 0)
22 _ctime32_s(
24 _In_ size_t _SizeInBytes,
26
34
41
48 _In_range_(>= , 9) size_t _SizeInBytes);
49
56 _In_range_(>= , 9) size_t _SizeInBytes);
57
61 _ctime64_s(
62 _Out_writes_z_(_SizeInBytes) char *_Buf,
63 _In_ size_t _SizeInBytes,
64 _In_ const __time64_t *_Time);
65
71 _In_ const __time64_t *_Time);
72
76 _localtime64_s(
78 _In_ const __time64_t *_Time);
79
80#ifndef _WTIME_S_DEFINED
81#define _WTIME_S_DEFINED
82
88 _In_range_(>= , 26) size_t _SizeInWords,
89 _In_ const struct tm *_Tm);
90
91 _Success_(return == 0)
97 _In_ size_t _SizeInWords,
99
100 _CRTIMP
101 errno_t
102 __cdecl
105 _In_ size_t _SizeInWords);
106
107 _CRTIMP
108 errno_t
109 __cdecl
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,
121 _In_ const __time64_t *_Time);
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 */
#define __cdecl
Definition: accygwin.h:79
return
Definition: dirsup.c:529
#define _Check_return_wat_
Definition: crtdefs.h:459
#define _CRTIMP
Definition: crtdefs.h:72
long __time32_t
Definition: crtdefs.h:379
int errno_t
Definition: crtdefs.h:374
__kernel_time_t time_t
Definition: linux.h:252
errno_t _gmtime64_s(struct tm *ptm, const __time64_t *ptime)
Definition: gmtime.c:122
_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)
#define _Success_(expr)
Definition: ms_sal.h:259
#define _Out_writes_z_(size)
Definition: ms_sal.h:352
#define _Out_writes_(size)
Definition: ms_sal.h:348
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _Post_readable_size_(size)
Definition: ms_sal.h:649
#define _In_range_(lb, ub)
Definition: ms_sal.h:571
_Check_return_wat_ _CRTIMP errno_t __cdecl _strdate_s(_Out_writes_(_SizeInBytes) _Post_readable_size_(9) char *_Buf, _In_range_(>=, 9) size_t _SizeInBytes)
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm * _Tm
Definition: time.h:148
_CRTIMP errno_t __cdecl _wstrdate_s(_Out_writes_(_SizeInWords) _Post_readable_size_(9) wchar_t *_Buf, _In_ size_t _SizeInWords)
_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)
_In_ size_t _In_ const __time32_t * _Time
Definition: time.h:192
_In_ size_t _SizeInBytes
Definition: time.h:146
_CRTIMP errno_t __cdecl _wstrtime_s(_Out_writes_(_SizeInWords) _Post_readable_size_(9) wchar_t *_Buf, _In_range_(>=, 9) size_t _SizeInWords)
__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm, const time_t *_Time)
Definition: time.h:417
_Check_return_wat_ _CRTIMP errno_t __cdecl _strtime_s(_Out_writes_(_SizeInBytes) _Post_readable_size_(9) char *_Buf, _In_range_(>=, 9) size_t _SizeInBytes)
_In_ size_t _SizeInWords
Definition: time.h:309
_Check_return_wat_ _CRTIMP errno_t __cdecl _gmtime32_s(_In_ struct tm *_Tm, _In_ const __time32_t *_Time)
_CRTIMP errno_t __cdecl _localtime32_s(_Out_ struct tm *_Tm, _In_ const __time32_t *_Time)
Definition: time.h:68
#define const
Definition: zconf.h:233