Naveen Neel / shedskin
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers timeb.h Source File

timeb.h

00001 /*
00002  * timeb.h
00003  * This file has no copyright assigned and is placed in the Public Domain.
00004  * This file is a part of the mingw-runtime package.
00005  * No warranty is given; refer to the file DISCLAIMER within the package.
00006  *
00007  * Support for the UNIX System V ftime system call.
00008  *
00009  */
00010 
00011 #ifndef _TIMEB_H_
00012 #define _TIMEB_H_
00013 
00014 /* All the headers include this file. */
00015 #include <_mingw.h>
00016 #include <sys/types.h>
00017 
00018 #ifndef RC_INVOKED
00019 
00020 /*
00021  * TODO: Structure not tested.
00022  */
00023 struct _timeb
00024 {
00025     time_t  time;
00026     short   millitm;
00027     short   timezone;
00028     short   dstflag;
00029 };
00030 
00031 #if __MSVCRT_VERSION__ >= 0x0800
00032 /*
00033  * TODO: Structure not tested.
00034  */
00035 struct __timeb32
00036 {
00037     __time32_t  time;
00038     short   millitm;
00039     short   timezone;
00040     short   dstflag;
00041 };
00042 #endif /* __MSVCRT_VERSION__ >= 0x0800 */
00043 
00044 #ifndef _NO_OLDNAMES
00045 /*
00046  * TODO: Structure not tested.
00047  */
00048 struct timeb
00049 {
00050     time_t  time;
00051     short   millitm;
00052     short   timezone;
00053     short   dstflag;
00054 };
00055 #endif
00056 
00057 #ifdef  __cplusplus
00058 extern "C" {
00059 #endif
00060 
00061 /* TODO: Not tested. */
00062 _CRTIMP void __cdecl __MINGW_NOTHROW    _ftime (struct _timeb*);
00063 
00064 #ifndef _NO_OLDNAMES
00065 /* FIXME for __MSVCRT_VERSION__ >= 0x0800 */
00066 _CRTIMP void __cdecl __MINGW_NOTHROW    ftime (struct timeb*);
00067 #endif  /* Not _NO_OLDNAMES */
00068 
00069 /* This requires newer versions of msvcrt.dll (6.10 or higher).  */ 
00070 #if __MSVCRT_VERSION__ >= 0x0601
00071 struct __timeb64
00072 {
00073   __time64_t time;
00074   short millitm;
00075   short timezone;
00076   short dstflag;
00077 };
00078 
00079 _CRTIMP void __cdecl __MINGW_NOTHROW    _ftime64 (struct __timeb64*);
00080 #endif /* __MSVCRT_VERSION__ >= 0x0601 */
00081 
00082 #if __MSVCRT_VERSION__ >= 0x0800
00083 _CRTIMP void __cdecl __MINGW_NOTHROW    _ftime32 (struct __timeb32*);
00084 #ifndef _USE_32BIT_TIME_T
00085 _CRTALIAS void __cdecl __MINGW_NOTHROW  _ftime (struct _timeb* _v) { return(_ftime64 ((struct __timeb64*)_v)); }
00086 #else
00087 _CRTALIAS void __cdecl __MINGW_NOTHROW  _ftime (struct _timeb* _v) { return(_ftime32 ((struct __timeb32*)_v)); }
00088 #endif
00089 #endif /* __MSVCRT_VERSION__ >= 0x0800 */
00090 
00091 #ifdef  __cplusplus
00092 }
00093 #endif
00094 
00095 #endif  /* Not RC_INVOKED */
00096 
00097 #endif  /* Not _TIMEB_H_ */