mingw-5.1.4/win32/include/sys/timeb.h
changeset 0 76b1f169d9fe
equal deleted inserted replaced
-1:000000000000 0:76b1f169d9fe
       
     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.
       
     6  *
       
     7  * Support for the UNIX System V ftime system call.
       
     8  *
       
     9  */
       
    10 
       
    11 #ifndef	_TIMEB_H_
       
    12 #define	_TIMEB_H_
       
    13 
       
    14 /* All the headers include this file. */
       
    15 #include <_mingw.h>
       
    16 #include <sys/types.h>
       
    17 
       
    18 #ifndef	RC_INVOKED
       
    19 
       
    20 /*
       
    21  * TODO: Structure not tested.
       
    22  */
       
    23 struct _timeb
       
    24 {
       
    25 	time_t	time;
       
    26 	short	millitm;
       
    27 	short	timezone;
       
    28 	short	dstflag;
       
    29 };
       
    30 
       
    31 #ifndef	_NO_OLDNAMES
       
    32 /*
       
    33  * TODO: Structure not tested.
       
    34  */
       
    35 struct timeb
       
    36 {
       
    37 	time_t	time;
       
    38 	short	millitm;
       
    39 	short	timezone;
       
    40 	short	dstflag;
       
    41 };
       
    42 #endif
       
    43 
       
    44 #ifdef	__cplusplus
       
    45 extern "C" {
       
    46 #endif
       
    47 
       
    48 /* TODO: Not tested. */
       
    49 _CRTIMP void __cdecl __MINGW_NOTHROW	_ftime (struct _timeb*);
       
    50 
       
    51 #ifndef	_NO_OLDNAMES
       
    52 _CRTIMP void __cdecl __MINGW_NOTHROW	ftime (struct timeb*);
       
    53 #endif	/* Not _NO_OLDNAMES */
       
    54 
       
    55 /* This requires newer versions of msvcrt.dll (6.10 or higher).  */ 
       
    56 #if __MSVCRT_VERSION__ >= 0x0601
       
    57 struct __timeb64
       
    58 {
       
    59   __time64_t time;
       
    60   short millitm;
       
    61   short timezone;
       
    62   short dstflag;
       
    63 };
       
    64 
       
    65 _CRTIMP void __cdecl __MINGW_NOTHROW	_ftime64 (struct __timeb64*);
       
    66 #endif /* __MSVCRT_VERSION__ >= 0x0601 */
       
    67 
       
    68 #ifdef	__cplusplus
       
    69 }
       
    70 #endif
       
    71 
       
    72 #endif	/* Not RC_INVOKED */
       
    73 
       
    74 #endif	/* Not _TIMEB_H_ */