1 /** 2 * This file has no copyright assigned and is placed in the Public Domain. 3 * This file is part of the w64 mingw-runtime package. 4 * No warranty is given; refer to the file DISCLAIMER within this package. 5 */ 6 #ifndef _INC_TIMEB 7 #define _INC_TIMEB 8 9 #include <crtdefs.h> 10 11 #ifndef _WIN32 12 #error Only Win32 target is supported! 13 #endif 14 15 #pragma pack(push,_CRT_PACKING) 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 #ifndef _TIMEB_DEFINED 22 #define _TIMEB_DEFINED 23 24 struct _timeb { 25 time_t time; 26 unsigned short millitm; 27 short timezone; 28 short dstflag; 29 }; 30 31 struct __timeb32 { 32 __time32_t time; 33 unsigned short millitm; 34 short timezone; 35 short dstflag; 36 }; 37 38 #ifndef NO_OLDNAMES 39 struct timeb { 40 time_t time; 41 unsigned short millitm; 42 short timezone; 43 short dstflag; 44 }; 45 #endif 46 47 #if _INTEGRAL_MAX_BITS >= 64 48 struct __timeb64 { 49 __time64_t time; 50 unsigned short millitm; 51 short timezone; 52 short dstflag; 53 }; 54 #endif 55 56 #endif /* !_TIMEB_DEFINED */ 57 58 _CRTIMP 59 void 60 __cdecl 61 _ftime( 62 _Out_ struct _timeb *_Time); 63 64 _CRT_INSECURE_DEPRECATE(_ftime32_s) 65 _CRTIMP 66 void 67 __cdecl 68 _ftime32( 69 _Out_ struct __timeb32 *_Time); 70 71 _CRTIMP 72 errno_t 73 __cdecl 74 _ftime32_s( 75 _Out_ struct __timeb32 *_Time); 76 77 #if _INTEGRAL_MAX_BITS >= 64 78 79 _CRT_INSECURE_DEPRECATE(_ftime64_s) 80 _CRTIMP 81 void 82 __cdecl 83 _ftime64( 84 _Out_ struct __timeb64 *_Time); 85 86 _CRTIMP 87 errno_t 88 __cdecl 89 _ftime64_s( 90 _Out_ struct __timeb64 *_Time); 91 92 #endif /* _INTEGRAL_MAX_BITS >= 64 */ 93 94 #ifndef NO_OLDNAMES 95 #if !defined (RC_INVOKED) 96 __CRT_INLINE void __cdecl ftime(struct timeb *_Tmb) { 97 _ftime((struct _timeb *)_Tmb); 98 } 99 #endif 100 #endif 101 102 #ifdef __cplusplus 103 } 104 #endif 105 106 #pragma pack(pop) 107 108 #include <sec_api/sys/timeb_s.h> 109 110 #endif /* !_INC_TIMEB */ 111