Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / include / sys / timeb.h
blob4cb4b2e379bb9ed5fad1f5b71a4855b5506773e4
1 /*
2 * timeb.h
3 * This file has no copyright assigned and is placed in the Public Domain.
4 * This file is a part of the mingw-runtime package.
5 * No warranty is given; refer to the file DISCLAIMER within the package.
7 * Support for the UNIX System V ftime system call.
9 */
11 #ifndef _TIMEB_H_
12 #define _TIMEB_H_
14 /* All the headers include this file. */
15 #include <_mingw.h>
16 #include <sys/types.h>
18 #ifndef RC_INVOKED
21 * TODO: Structure not tested.
23 struct _timeb
25 long time;
26 short millitm;
27 short timezone;
28 short dstflag;
31 #ifndef _NO_OLDNAMES
33 * TODO: Structure not tested.
35 struct timeb
37 long time;
38 short millitm;
39 short timezone;
40 short dstflag;
42 #endif
44 struct __timeb64
46 __time64_t time;
47 short millitm;
48 short timezone;
49 short dstflag;
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
56 /* TODO: Not tested. */
57 _CRTIMP void __cdecl _ftime (struct _timeb*);
59 #ifndef _NO_OLDNAMES
60 _CRTIMP void __cdecl ftime (struct timeb*);
61 #endif /* Not _NO_OLDNAMES */
63 /* This requires newer versions of msvcrt.dll (6.10 or higher). */
64 #if __MSVCRT_VERSION__ >= 0x0601
65 _CRTIMP void __cdecl _ftime64 (struct __timeb64*);
66 #endif /* __MSVCRT_VERSION__ >= 0x0601 */
68 #ifdef __cplusplus
70 #endif
72 #endif /* Not RC_INVOKED */
74 #endif /* Not _TIMEB_H_ */