08a0c88da5
* include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size' from '_fsize_t' to '__int64' to be consistent with the other ...64 structures and the value set there is 8 bytes not 4. Add guard for both as the are only used by functions available from 6.1 on. * include/malloc.h (_HEAP_MAXREQ): Define. (_aligned_offset_recalloc): Define. (_aligned_recalloc()): Define. * include/math.h: fixed a typo in a comment. (atanhf): Fixed declaration. * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t' to '__int64' to be consistent with the other ...64 structures and the value set there is 8 bytes not 4. Added guard as this function is only used by functions available from 6.1 on. * include/sys/stat.h: some members of 'stat' were declared with types with a prefixed underscore, while the ones without the underscore should have been used. Added guard to '__stat64' as it is only used by functions available from 6.1 on. Added the wide character versions of the exec()/spawn() family for completion (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to '_mode_t' * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member from 'long' to 'time_t' (__timeb64): moved declaration of structure directly before the declaration of the function '_ftime64()', so it is guarded as well * include/sys/utime.h (__utimbuf64): moved declaration of structure directly before the declaration of the functions using it, so it is guarded as well
75 lines
1.3 KiB
C
75 lines
1.3 KiB
C
/*
|
|
* timeb.h
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
* This file is a part of the mingw-runtime package.
|
|
* No warranty is given; refer to the file DISCLAIMER within the package.
|
|
*
|
|
* Support for the UNIX System V ftime system call.
|
|
*
|
|
*/
|
|
|
|
#ifndef _TIMEB_H_
|
|
#define _TIMEB_H_
|
|
|
|
/* All the headers include this file. */
|
|
#include <_mingw.h>
|
|
#include <sys/types.h>
|
|
|
|
#ifndef RC_INVOKED
|
|
|
|
/*
|
|
* TODO: Structure not tested.
|
|
*/
|
|
struct _timeb
|
|
{
|
|
time_t time;
|
|
short millitm;
|
|
short timezone;
|
|
short dstflag;
|
|
};
|
|
|
|
#ifndef _NO_OLDNAMES
|
|
/*
|
|
* TODO: Structure not tested.
|
|
*/
|
|
struct timeb
|
|
{
|
|
time_t time;
|
|
short millitm;
|
|
short timezone;
|
|
short dstflag;
|
|
};
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* TODO: Not tested. */
|
|
_CRTIMP void __cdecl __MINGW_NOTHROW _ftime (struct _timeb*);
|
|
|
|
#ifndef _NO_OLDNAMES
|
|
_CRTIMP void __cdecl __MINGW_NOTHROW ftime (struct timeb*);
|
|
#endif /* Not _NO_OLDNAMES */
|
|
|
|
/* This requires newer versions of msvcrt.dll (6.10 or higher). */
|
|
#if __MSVCRT_VERSION__ >= 0x0601
|
|
struct __timeb64
|
|
{
|
|
__time64_t time;
|
|
short millitm;
|
|
short timezone;
|
|
short dstflag;
|
|
};
|
|
|
|
_CRTIMP void __cdecl __MINGW_NOTHROW _ftime64 (struct __timeb64*);
|
|
#endif /* __MSVCRT_VERSION__ >= 0x0601 */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* Not RC_INVOKED */
|
|
|
|
#endif /* Not _TIMEB_H_ */
|