ReactOS 0.4.16-dev-2122-g1628f5e
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
31struct __timeb64
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
__msvcrt_long __time32_t
Definition: corecrt.h:209
int errno_t
Definition: corecrt.h:249
#define __cdecl
Definition: corecrt.h:121
#define _ACRTIMP
Definition: corecrt.h:153
__time32_t time_t
Definition: corecrt.h:228
_ACRTIMP void __cdecl _ftime32(struct __timeb32 *)
Definition: time.c:756
_ACRTIMP void __cdecl _ftime64(struct __timeb64 *)
Definition: time.c:725
static void ftime(struct _timeb *ptr)
Definition: timeb.h:72
int CDECL _ftime64_s(struct __timeb64 *buf)
Definition: time.c:746
__u16 time
Definition: mkdosfs.c:8
#define _Out_
Definition: no_sal2.h:160
_CRTIMP errno_t __cdecl _ftime32_s(_Out_ struct __timeb32 *_Time)
_In_ size_t _In_ const __time32_t * _Time
Definition: time.h:192
#define _STATIC_ASSERT(expr)
Definition: corecrt.h:305
__int64 __time64_t
Definition: corecrt.h:619
#define _UCRT_DISABLE_CLANG_WARNINGS
Definition: corecrt.h:109
#define _UCRT_RESTORE_CLANG_WARNINGS
Definition: corecrt.h:117
short timezone
Definition: timeb.h:40
__time32_t time
Definition: timeb.h:38
short dstflag
Definition: timeb.h:41
unsigned short millitm
Definition: timeb.h:39
short timezone
Definition: timeb.h:47
short dstflag
Definition: timeb.h:48
__time64_t time
Definition: timeb.h:45
unsigned short millitm
Definition: timeb.h:46
Definition: timeb.h:39
short dstflag
Definition: timeb.h:43
unsigned short millitm
Definition: timeb.h:41
Definition: fake.h:14
#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