ReactOS 0.4.16-dev-753-g705a985
timeb.h
Go to the documentation of this file.
1//
2// sys/timeb.h
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// The _ftime() family of functions
7//
8#pragma once
9
10#include <corecrt.h>
11
12#pragma warning(push)
13#pragma warning(disable: _UCRT_DISABLED_WARNINGS)
15
17
18//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
19//
20// Types
21//
22//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
23struct __timeb32
24{
26 unsigned short millitm;
27 short timezone;
28 short dstflag;
29};
30
32{
34 unsigned short millitm;
35 short timezone;
36 short dstflag;
37};
38
39#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES && !defined _CRT_NO_TIME_T
40 struct timeb
41 {
43 unsigned short millitm;
44 short timezone;
45 short dstflag;
46 };
47#endif
48
49
50
51//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
52//
53// Functions
54//
55//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
56#ifdef _USE_32BIT_TIME_T
57 #define _timeb __timeb32
58 #define _ftime _ftime32
59 #define _ftime_s _ftime32_s
60#else
61 #define _timeb __timeb64
62 #define _ftime _ftime64
63 #define _ftime_s _ftime64_s
64#endif
65
66
67
71 );
72
75 );
76
80 );
81
84 );
85
86
87
88#if !defined RC_INVOKED && !defined __midl && defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES && !defined _CRT_NO_TIME_T
89
90 #ifdef _USE_32BIT_TIME_T
91
92 static __inline void __CRTDECL ftime(struct timeb* const _Tmb)
93 {
94 _STATIC_ASSERT(sizeof(struct timeb) == sizeof(struct __timeb32));
95 _ftime32((struct __timeb32*)_Tmb);
96 }
97
98 #else
99
100 static __inline void __CRTDECL ftime(struct timeb* const _Tmb)
101 {
102 _STATIC_ASSERT(sizeof(struct timeb) == sizeof(struct __timeb64));
103 _ftime64((struct __timeb64*)_Tmb);
104 }
105
106 #endif
107
108#endif
109
112#pragma warning(pop) // _UCRT_DISABLED_WARNINGS
#define __inline
Definition: _wctype.cpp:15
#define __cdecl
Definition: accygwin.h:79
__CRT_INLINE void __cdecl ftime(struct timeb *_Tmb)
Definition: timeb.h:96
_CRTIMP errno_t __cdecl _ftime32_s(_Out_ struct __timeb32 *_Time)
_CRTIMP void __cdecl _ftime32(_Out_ struct __timeb32 *_Time)
__kernel_time_t time_t
Definition: linux.h:252
#define _Out_
Definition: no_sal2.h:160
_In_ size_t _In_ const __time32_t * _Time
Definition: time.h:192
long __time32_t
Definition: time.h:24
short timezone
Definition: timeb.h:34
__time32_t time
Definition: timeb.h:32
short dstflag
Definition: timeb.h:35
unsigned short millitm
Definition: timeb.h:33
short timezone
Definition: timeb.h:35
short dstflag
Definition: timeb.h:36
__time64_t time
Definition: timeb.h:33
unsigned short millitm
Definition: timeb.h:34
Definition: timeb.h:39
time_t time
Definition: timeb.h:40
short dstflag
Definition: timeb.h:43
short timezone
Definition: timeb.h:42
unsigned short millitm
Definition: timeb.h:41
#define _STATIC_ASSERT(expr)
Definition: corecrt.h:305
__int64 __time64_t
Definition: corecrt.h:619
#define _ACRTIMP
Definition: corecrt.h:138
#define _UCRT_DISABLE_CLANG_WARNINGS
Definition: corecrt.h:109
#define _UCRT_RESTORE_CLANG_WARNINGS
Definition: corecrt.h:117
int errno_t
Definition: corecrt.h:615
_ACRTIMP errno_t __cdecl _ftime64_s(_Out_ struct __timeb64 *_Time)
_ACRTIMP void __cdecl _ftime64(_Out_ struct __timeb64 *_Time)
#define _CRT_END_C_HEADER
Definition: vcruntime.h:42
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:40
#define _CRT_INSECURE_DEPRECATE(_Replacement)
Definition: vcruntime.h:99
#define __CRTDECL
Definition: yvals.h:17