Menu

#339 fixes to some headers in /include and /include/sys

closed-accepted
2007-10-03
2007-08-05
No

include/io.h
changed '__finddata64_t' member 'size' from '_fsize_t' to '__int64';
this would be consistent with the other ...64 structures and the
value set there is 8 bytes not 4.
[source: MinGW headers, MSDN]

changed '\_\_wfinddata64\_t' member 'size' from '\_fsize\_t' to '\_\_int64';
this would be consistent with the other ...64 structures and the
value set there is 8 bytes not 4.
    \[source: MinGW headers, MSDN\]

added '\#if \_\_MSVCRT\_VERSION\_\_ >= 0x0601' guards to '\_\_finddata64\_t'
and '\_\_wfinddata64\_t' as both are only used by functions available
from 6.1 on.
    \[source: MinGW headers\]

include/malloc.h
added #define for '_HEAP_MAXREQ'
[source:MSDN]

added declaration of '\_aligned\_offset\_recalloc\(\)'
    \[source:MSDN\]

added declaration of '\_aligned\_recalloc\(\)'
    \[source:MSDN\]

include/math.h
fixed a typo in a comment; trucation -> truncation

the declaration of 'atanhf\(\)' was missing the 'h' and therefore
'atanf\(\)' was declared twice.

include/wchar.h
changed '__wfinddata64_t' member 'size' from '_fsize_t' to '__int64';
this would be consistent with the other ...64 structures and the
value set there is 8 bytes not 4.
[source: MinGW headers, MSDN]

added '\#if \_\_MSVCRT\_VERSION\_\_ >= 0x0601' guard to '\_\_wfinddata64\_t'
as it is only used by functions available from 6.1 on.
    \[source: MinGW headers\]

some members of 'stat' were declared with types with a prefixed
underscore, while the ones without the underscore should have been
used
    \[source: MinGW headers\]

added '\#if \_\_MSVCRT\_VERSION\_\_ >= 0x0601' guard to '\_\_stat64'
as it is only used by functions available from 6.1 on.
    \[source: MinGW headers\]

added the wide character versions of the exec\(\)/spawn\(\) family for
completion
    \[source: MSDN\]

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
[source: MinGW headers]

changed the type of the 'st\_mode' member of '\_stati64' from
'unsigned int' to '\_mode\_t'
    \[source: MinGW headers\]

added '\#if \_\_MSVCRT\_VERSION\_\_ >= 0x0601' guard to '\_\_stat64'
as it is only used by functions available from 6.1 on.
    \[source: MinGW headers\]

include/sys/timeb.h
changed the type of the 'time' member of '_timeb' and 'timeb' from
'long' to 'time_t'
[source: libc.info]

moved declaration of structure '\_\_timeb64' directly before the
declaration of the function '\_ftime64\(\)', so it is guarded by
'\#if \_\_MSVCRT\_VERSION\_\_ >= 0x0601' as well
    \[source: MinGW headers\]

include/sys/utime.h
moved declaration of structure '__utimbuf64' directly before the
declaration of the functions using it, so it is guarded by
'#if __MSVCRT_VERSION__ >= 0x0601' as well
[source: MinGW headers]

Discussion

  • Bernd Becker

    Bernd Becker - 2007-08-05

    mingw runtime 3.13 header patches

     
  • Danny Smith

    Danny Smith - 2007-08-06
    • assigned_to: nobody --> dannysmith
     
  • Chris Sutcliffe

    Chris Sutcliffe - 2007-10-03
    • assigned_to: dannysmith --> ir0nh34d
     
  • Chris Sutcliffe

    Chris Sutcliffe - 2007-10-03
    • status: open --> closed-accepted
     
MongoDB Logo MongoDB