1 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Resolve some "implicit function declaration" warnings.
5 * setargv.c (isspace): Include <ctype.h> for declaration.
6 * cpu_features.h (__cpu_features_init): Declare function prototype.
7 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
9 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
11 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
13 * include/stdlib.h [__WCHAR_H_SOURCED__]
14 (_STDLIB_H): Do not define it; restrict visible declarations to...
15 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
16 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
17 of regular <stdlib.h> content; full content is declared only when...
18 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
19 (_WSTDLIB_DEFINED): Do not define it; delete all references.
20 (pragma GCC system_header): Declare it; tidy layout.
22 * include/wchar.h: Delete duplicated declarations for...
23 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
24 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
25 include <stdlib.h> selectively, to maintain their visibility.
26 (_WSTDLIB_DEFINED): Delete all references.
28 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
30 Relocate misplaced umask() function prototypes.
32 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
33 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
34 here, but leave them for backward, or Microsoft, compatibility.
36 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
38 Correct another _BEGIN_C_DECLS imbalance error.
40 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
41 unbalanced instance deleted; one correctly balanced instance remains.
43 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
45 Support installation of headers with empty parts directory.
47 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
48 (install-mingwrt-headers): ...invoke it; if false, do not perform...
49 (INSTALL_SUB_HEADERS): ...this.
51 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
53 Reinstate typedef for non-standard off64_t.
55 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
56 (__off64_t): ...typedef derived from this; although non-standard, it
57 is gratuitously required when building GCC's libgfortran.a
59 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
61 Correct conditional compilation block nesting errors.
63 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
64 them balanced within, and around, conditional compilation blocks.
66 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
68 Feature test _MINGW32_EXTENDED_SOURCE renamed.
70 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
71 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
72 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
73 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
74 users should enable any conventional feature test which implies it.
76 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
77 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
79 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
81 Correct atexit() and _onexit() export declaration regression.
83 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
84 as DATA; declare them accordingly.
86 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
88 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
90 * include/string.h: Tidy layout.
91 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
92 (_stricmp, _strnicmp): Include their prototypes, selectively from...
93 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
94 * include/parts/strings.h: ...from here; file is obsolete; delete it.
96 * include/string.h (_wcscmpi): Define alias.
97 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
98 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
99 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
100 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
101 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
102 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
103 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
104 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
106 * include/strings.h (_STRINGS_H): Do not define it, when...
107 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
108 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
110 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
112 Refactor to make <parts/time.h> redundant.
114 * include/sys/types.h (time_t, __time32_t, __time32_t)
115 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
116 * include/parts/time.h: ...from here; preserve selective exposure.
118 * include/time.h (time_t, __time32_t, __time32_t): Get them...
119 * include/sys/types.h: ...from here, by selective inclusion.
121 * include/time.h (struct timespec, struct __mingw_extended_timespec)
122 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
123 * include/parts/time.h: ...from here; preserve selective exposure.
125 * include/parts/time.h: Delete file; it is no longer required.
127 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
129 Declare the nanosleep() function where POSIX expects it.
131 * include/time.h (__mingw_sleep): Declare function prototype.
132 (nanosleep): Declare prototype, and provide in-line implementation;
133 this is a reproduction of the original implementation, relocated...
134 * include/unistd.h (nanosleep): ...from here; remove it; hence...
135 (struct timespec): ...this need not be declared here, and there is
136 no need to include <parts/time.h>; remove reference.
138 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
140 Refactor <time.h> vs. <wchar.h> to avoid duplication.
142 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
143 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
144 (struct tm): Delete definition; delegate it, together with each of...
145 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
146 (wcsftime): ...these function prototypes; delete them, but note in
147 comments, that they remain declared, via delegation to...
148 * include/time.h: ...this; include it selectively, subject to...
149 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
150 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
151 [_TIME_H]: Process all definitions and declarations; otherwise...
152 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
153 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
154 (_WTIME_DEFINED): Obsolete macro; delete all references.
156 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
158 Implement support for POSIX "%n$*m$" printf() format control.
160 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
161 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
162 (__pformat_inline__): New macro; define, and use it where appropriate.
163 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
164 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
165 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
166 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
167 (__pformat_argmap_t): ...this new union data type; define it.
168 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
169 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
170 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
171 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
172 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
173 (__pformat_length_modifier, __pformat_check_length_modifier): New
174 locally defined static and/or inline functions; implement, and...
175 (__pformat): ...use them.
177 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
179 Add prototypes for Microsoft's _printf_p() family of functions.
181 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
182 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
183 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
184 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
185 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
186 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
187 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
188 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
189 available for selective inclusion by both <stdio.h> and <wchar.h>...
190 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
192 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
194 Adapt msvcrt-xref to become msvcrt.def.in provider.
196 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
197 filter value assignment; scale it upwards, by a factor of 0x10000.
198 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
199 (%.def) [msvcr*]: Do not preserve comments; define...
200 (__DLLNAME__): ...this preprocessor symbol.
202 * msvcrt.def.in: Content is obsolete; delete file and replace with...
203 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
204 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
205 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
206 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
207 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
209 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
211 Import msvcrt-xref documentation resources.
213 * msvcrt-xref: New directory.
214 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
215 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
216 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
217 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
219 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
221 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
223 * include/wchar.h: Some minor layout adjustments.
224 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
225 within the scope of reading <wchar.h>; undefine it at end of file.
226 (struct tm): Do not define; it is sufficient to keep it opaque.
227 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
228 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
229 directly; delegate to indirect definition by including <stdio.h>.
230 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
231 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
232 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
233 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
234 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
235 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
236 indirectly, by selective inclusion from <stdio.h>; hence include it.
238 * include/stdio.h: Assert copyright; tidy layout.
239 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
240 (_STDIO_H): ...this, but defined conditionally, subject to...
241 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
242 entities which are required by <wchar.h>; do not define...
243 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
244 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
245 are normally specified within <stdio.h>, INCLUDING those specifically
246 itemised above, as selectively required by <wchar.h>.
248 * pseudo-reloc.c: Some minor layout adjustments.
249 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
250 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
251 include <stddef.h> to guarantee it.
253 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
255 Enable selective definition of POSIX system types.
257 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
258 any specific __need_TYPE selector having been set prior to inclusion;
259 DO define it when no such selector is present, and undefine all such
260 selectors as may have been set, after evaluation of their effects.
261 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
262 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
263 accommodates reorganization of the file, to achieve a tidier layout.
264 (__have_typedef_off_t): New repeat definition guard; define it for
265 compilers which may choke on any repeated typedef for either of...
266 (off_t, _off_t): ...these; make them selectively defineable for...
267 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
268 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
269 in either case, redefine them in terms of...
270 (__off32_t): ...this new internal type, for consistency with...
271 (__off64_t): ...this previously defined non-standard type; also make
272 it selectively defineable, either by...
273 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
274 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
275 (__have_typedef___off64_t): New repeat definition guard; define it.
276 (ssize_t, _ssize_t): Also make them selectively defineable, on...
277 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
278 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
279 (__have_typedef_ssize_t): New repeat definition guard; define it.
281 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
283 Avoid user namespace pollution by non-standard type 'off64_t'.
285 * include/sys/types.h (off64_t): Rename it as...
286 (__off64_t): ...this implementation-private alternative name, so
287 eliminating the potential for user namespace pollution.
289 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
290 return type, and type of offset argument, in both prototype and inline
291 implementation; note that this addresses the issue of pollution in the
292 user namespace, while avoiding the issue of MinGW-Bug [#2024].
294 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
295 instead of 'off64_t', as offset argument type in function prototypes.
296 (ftello64): Likewise, for return type of inline function.
298 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
299 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
300 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
302 * mingwex/stdio/fseeko64.c: Assert copyright.
303 (fseeko64): Use '__off64_t' per modified function prototype.
305 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
307 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
309 * mingwex/ofmtctl.c: New file; it implements...
310 (_mingw_output_format_control): ...this new function; it provides
311 additional MinGW specific printf() format processing options.
313 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
315 * include/stdio.h (_mingw_output_format_control): Declare it.
316 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
317 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
318 manifest constant expressions; define them.
320 * mingwex/stdio/pformat.c: Revise licensing terms.
321 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
322 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
323 modifier; this matches the behaviour specified by ISO-C99, else...
324 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
325 previous MSVC compatible behaviour, treating it as an `L' modifier.
326 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
328 * mingwex/ofmt.c (ARGLIST): Subsume references to...
329 (ARGTYPE): ...this now obsolete macro; delete it throughout.
330 (update_output_format_flag): New inline function; it restricts flag
331 operations to affect only Microsoft's exponent digit bits.
332 [FUNCTION == _set_output_format]: Use it.
333 [FUNCTION == _get_output_format]: Likewise.
335 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
337 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
339 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
340 defined, when implied by any STDC or POSIX version selection, viz. ...
341 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
343 * include/stdlib.h: Assert copyright; tidy layout.
344 (_STDLIB_H_): Multiple inclusion guard macro renamed...
345 (_STDLIB_H): ...to this, preferring no trailing underscore.
346 [!defined __NO_ISOCEXT]: Delete double negative references; use...
347 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
348 (lldiv_t): ...defining this C99 specific aggregate data type, and...
349 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
350 (wcstold, _Exit): ...declaring these C99 function prototypes.
351 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
352 future removal; not in MSVCRT.DLL, these conform to no known standard.
353 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
354 (__strtod): ...this libmingwex.a provided function; it handles string
355 representations of hexadecimal-floats, infinities and NaNs, whereas...
356 (strtod): ...this MSVCRT.DLL implementation does not.
357 (__MSVCRT_VERSION__): Prefer symbolic comparison...
358 [>= __MSVCR80_DLL]: ...for this requirement.
360 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
362 Rationalize definition of struct timespec.
364 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
365 tv_sec field, in place of anonymous union, thus avoiding missing brace
366 warnings when initializing; leave a copy of the previous definition...
367 (struct __mingw32_expanded_timespec): ...named thus.
369 * include/unistd.h (nanosleep): Adjust inline implementation, to match
370 altered specification of tv_sec field in struct timespec.
372 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
373 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
375 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
376 convenience function; defined as inline, with __LIBIMPL__ equivalent,
377 it facilitates interpretation of an instance of struct timespec as if
378 it were defined as struct __mingw32_expanded_timespec.
380 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
382 Make strings.h mostly POSIX.1-2008 compliant.
384 * include/strings.h: Rewritten. Do not include...
385 (string.h): ...this; mandated by POSIX.1, it now defines...
386 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
387 prototypes, possible in-line implementations, and JMPSTUB references
388 to corresponding external implementations, which will now become
389 automatically created within libmingwex.a
391 * include/parts/strings.h: New file; it declares prototypes for...
392 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
393 string.h, but we also require them in strings.h
395 * include/parts/wchar.h: New file; it declares prototypes for all wide
396 character functions which MSVC specifies in both wchar.h and string.h
398 * include/string.h: Miscellaneous layout adjustments.
399 (strcasecmp, strncasecmp): Delete; they belong in strings.h
400 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
401 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
402 include them from parts/wchar.h instead.
404 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
405 prototypes; include them from parts/wchar.h instead, so making this
406 guard macro redundant; delete it.
408 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
409 (wcscmpi.$OBJEXT): Implementations are now automatically generated
410 from header file, for inclusion in libmingwex.a; remove free-standing
411 implementations from the entire family of liboldname libraries, and...
412 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
413 files; they are no longer required.
415 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
417 Incorporate build system updates from w32api package.
419 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
420 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
421 (install-strip, uninstall): New make command goals; implement them.
422 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
423 (devdist, dlldist): ...these have no need to strip explicitly.
424 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
425 (install-mingwrt-headers): ...here.
427 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
429 Adapt platform feature checks to NTDDI_VERSION conventions.
431 * include/_mingw.h: Assert copyright; include w32api.h
432 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
433 to w32api/include/w32api.h, whence they remain in effect.
434 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
436 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
438 Correct mismatched #if/#endif from preceding commit.
440 * include/_mingw.h (#pragma GCC system_header)
441 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
442 correcting for inadvertent removal of matching #endif introduced by
443 preceding 2015-06-19 commit.
445 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
447 Define symbolic names for alternative Microsoft runtime DLLs.
449 * include/msvcrtver.h: New file; it assigns a value for...
450 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
451 (__MSVCR60_DLL): ...this new manifest constant, with each of...
452 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
453 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
454 ...these also defined, as user assignable alternatives.
456 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
457 to establish its default value.
459 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
461 Track dependencies on modified system header files.
463 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
465 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
467 Correct an anomaly in stage 1 only build procedure.
469 * Makefile.in (all-gcc): New goal; it is an alias for...
470 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
471 (all-mingwrt-stage-1-only): ...this; upate all references.
472 (active-goals): Adjusted accordingly; it now reguires...
473 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
474 (install): Adjusted, as directed by...
475 (DEFAULT_MAKECMDGOALS): ...this.
477 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
479 Prefer our hypot() implementation in complex maths operations.
481 * mingwex/complex/cabs_generic.c: New file; it replaces...
482 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
483 * mingwex/complex/cabsl.c: ...these.
485 * mingwex/complex/catan_generic.c: New file; it replaces...
486 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
487 * mingwex/complex/catanl.c: ...these.
489 * mingwex/complex/clog_generic.c: New file; it replaces...
490 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
491 * mingwex/complex/clogl.c: ...these.
493 * mingwex/complex/cpow_generic.c: New file; it replaces...
494 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
495 * mingwex/complex/cpowl.c: ...these.
497 * mingwex/complex/csqrt_generic.c: Do not use...
498 (_hypot): ...this Microsoft form of function reference; use...
499 (hypot): ...this ANSI standard form instead.
501 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
503 Correct C++ compilation anomaly with hypotf() in cmath header.
505 * include/math.h: Add copyright notice; generally tidy layout.
506 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
507 (hypotf): Delete inline implementation; it did not properly handle
508 range errors, and was uncompilable with optimization when any g++
509 option implying __STRICT_ANSI__ conformity was specified.
510 (_MATH_H_): Rename this multiple inclusion guard...
511 (_MATH_H): ...to this.
513 * mingwex/math/hypot_generic.c: New file; it implements...
514 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
515 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
517 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
519 Prepare and tag all files for release of mingwrt-3.21.1.
521 * configure.ac (AC_INIT): Adjust package version argument.
522 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
523 (__MINGW32_VERSION): ...increment this to match.
525 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
527 Refactor to avoid possible time_t conflicts across headers.
529 * include/parts/time.h (struct timespec): Make it more descriptive of,
530 and better able to accommodate, potential ambiguity relating to...
531 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
532 whence they may be identically imported into each of...
533 * include/sys/types.h include/time.h include/wchar.h: these; delete
534 duplicate typedefs, and import accordingly.
536 * include/sys/types.h: Add licence; general comment additions.
537 (_TYPES_H_): Rename multiple inclusion guard macro...
538 (_SYS_TYPES_H): ...to this.
540 * include/time.h: Add licence; general comment/layout adjustments.
541 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
542 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
543 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
544 (_TIME_H_): Rename multiple inclusion guard macro...
545 (_TIME_H): ...to this.
547 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
548 (struct timespec): ...of this.
550 * include/wchar.h: Add licence; general comment/layout adjustments.
551 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
552 [GCC] (system_header): Add pragma, identifying header as such.
553 (_WCHAR_H_): Rename multiple inclusion guard macro...
554 (_WCHAR_H): ...to this.
556 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
558 Remove obsolete varargs.h header file.
560 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
561 a GCC header which is no longer supported, and was always intended for
562 ultimate removal; now is the long overdue time to do so.
564 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
566 Correct improper unistd.h function attribute declarations.
568 * include/unistd.h (_cdecl): Correct usage throughout; should be...
571 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
573 Fix GLOB_DOOFFS initialization bug.
575 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
576 (gl_data->gl_offs): ...this is properly initialized to zero.
578 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
580 Tag all files for release of mingwrt-3.21.
582 * include/_mingw.h: Adjust version accordingly.
584 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
586 Improve usage notes in stdlib.h, for mkstemp() function.
588 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
589 an original comment, explaining the need to use _O_TEMPORARY, from...
590 * mingwex/mkstemp.c: ...here; delete trailing white space.
592 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
594 Eliminate some potential definition inconsistencies.
596 * include/stdio.h: Cosmetic formatting change, relating to...
597 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
598 unconditionally; this allows the compiler to check for consistency
599 with their primary definitions in stdio.h
601 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
603 Suppress expected warning diagnostics in LIBIMPL builds.
605 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
606 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
607 GCC flag to supress warnings relating to deprecated declarations.
609 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
611 Provide more POSIX conforming sleep() functions.
613 * include/sys/types.h (useconds_t): Make it explicitly long; int may
614 be okay, but doesn't guarantee enough bits; mark as deprecated, since
615 POSIX has declared it "obsolete", and no longer specifies it.
617 * mingwex/usleep.c: Delete file; it provided an implementation of...
618 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
619 its error handling was hopelessly broken; replace it with...
620 * mingwex/nsleep.c: ...this new file; it implements...
621 (__mingw_sleep): ...this generic helper function; it supports sleep
622 capability with interval specification to nanosecond precision.
624 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
625 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
626 (sleep, nanosleep): ...these current POSIX functions, and also...
627 (usleep): ...this obsolete one; mark it as deprecated.
629 * include/parts: New directory; it is intended to host partial header
630 implementations, for content which must be shared among arbitrary sets
631 of multiple standard header files.
633 * include/parts/time.h: New file; nominally declaring time.h content.
634 (struct timespec): Declare it; it is currently used within unistd.h,
635 to facilitate the __CRT_INLINE implementation of nanosleep().
637 * Makefile.in (libmingwex.a): Remove reference to...
638 (usleep.$OBJEXT): ...this; replace it with a reference to...
639 (nsleep.$OBJEXT): ...this alternative.
640 (mingwrt-includedirs): Add prerequisite to create...
641 ($includedir/parts): ...this new directory; it is populated by...
642 (install-mingwrt-headers): ...this rule; add requisite command.
644 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
646 Delete an unnecessary Unicode wrapper file.
648 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
649 UTF-16LE API from dirent.c, without any need for this wrapper.
651 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
653 Some further inline function rationalization.
655 * include/io.h (_CRTALIAS): Replace all references...
656 (__CRT_ALIAS): ...using this syntactically preferred form.
657 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
658 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
660 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
661 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
663 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
664 * mingwex/ftruncate.c: Likewise.
666 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
667 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
669 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
671 Some POSIX feature test adjustments.
673 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
674 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
675 (mkdtemp): This didn't become available until SUSv4, so requires...
676 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
678 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
680 Another CRT_INLINE function implementation rationalization.
682 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
683 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
684 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
686 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
687 (libmingwex.a): Delete obsolete dependency on...
688 (imaxabs.$OBJEXT): ...this.
690 * mingwex/imaxabs.c: File is now redundant; delete it.
692 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
694 More rationalization of CRT_INLINE function implementations.
696 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
697 (ftello64): Add __LIBIMPL__ specification for extern implementation.
698 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
700 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
701 * mingwex/stdio/ftell064.c: Likewise.
703 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
704 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
706 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
708 Don't implicitly define _POSIX_C_SOURCE too early.
710 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
711 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
712 that it is not accidentally activated by implied _POSIX_C_SOURCE.
714 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
716 Correct complex arcsin computation per issue [#2245].
718 * mingwex/complex/casin_generic.c: New file; it replaces...
719 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
720 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
722 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
724 Correct complex square root computation per issue [#2246].
726 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
727 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
728 (hypot): ...this libmoldname.a indirection.
730 * mingwex/complex/csqrt_generic.c: New file; it replaces...
731 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
732 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
734 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
736 Adjust header guards to resolve issue [#2244].
738 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
739 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
740 ...when any of these prevail, or as appropriate to correspond with...
741 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
743 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
744 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
745 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
746 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
748 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
750 Add implementation of mkstemp() and mkdtemp() functions.
752 * mingwex/cryptnam.c: New file; it implements...
753 (__mingw_crypto_tmpname): ...this helper function; it generates a
754 cryptographically secure sequence of characters, used as the random
755 component in temporary file and directory names.
757 * mingwex/mkstemp.c: New file; it implements...
758 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
760 * mingwex/mkdtemp.c: New file; it implements...
761 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
763 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
764 function implementation, with LIBIMPL extern semantics, in terms of...
765 (__mingw_mkstemp): ...this; also declare prototype, and define...
766 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
767 (_MKSTEMP_SETMODE): New macro; define it, also providing...
768 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
769 (mkdtemp): Declare prototype; provide inline implementation, with
770 JMPSTUB extern semantics, in terms of...
771 (__mingw_mkdtemp): ...this; declare prototype.
773 * Makefile.in (libmingwex.a): Add dependency rule, to include...
774 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
776 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
778 More JMPSTUB rationalization of inline functions.
780 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
781 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
782 appropriate MSVCRT.DLL equivalent entry point.
784 * mingwex/_Exit.c: File is now redundant; delete it.
785 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
786 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
788 * Makefile.in (jmpstub_awk_script): Add support for...
789 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
790 (libmingwex.a): Remove dependencies on deleted files, namely...
791 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
792 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
794 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
796 Correct omission of complex conjugate functions from libmingwex.a
798 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
799 (creal, crealf, creall): Likewise, for consistency of implementation.
800 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
802 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
803 declarations; they should be interpreted analogously to __CRT_ALIAS.
804 (libmingwex.a): Remove object file references for functions which are
805 now declared as LIBIMPL, and sort the remainder in ASCII collating
806 order; deleted function references comprise the set consisting of...
807 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
808 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
809 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
811 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
812 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
813 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
814 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
815 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
817 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
819 Back-port improved asinh() implementation from 4.0-dev branch.
821 * mingwex/math/asinh_generic.c: New file; it replaces...
822 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
823 ...all of these; delete them.
825 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
827 Enable remake of lost LIBIMPL object files.
829 * Makefile.in (libimpl_remake): New macro; define it, and...
830 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
832 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
834 Implement more robust _get_output_format fallback handling.
836 * mingwex/ofmt.c: New file; it implements...
837 (__mingw_output_format_flag): ...backing store, used by...
838 (__mingw_get_output_format, __mingw_set_output_format): ...these
839 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
840 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
841 version specific Microsoft APIs, which are also supported by some
842 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
843 (__mingw_get_output_format_fallback): Implement; it is aliased to...
844 (__mingw_set_output_format_fallback): ...this; together they provide
845 the emulation support for the preceding pair of functions, when they
846 are not available within the run-time platform MSVCRT.DLL
847 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
848 Implement them; they wrap, and if necessary emulate...
849 (_get_printf_count_output, _set_printf_count_output): ...these.
850 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
851 (__mingw_set_printf_count_output_fallback): ...this; together they are
852 required to support emulation of the preceding pair of functions, when
853 they are not available within the run-time platform MSVCRT.DLL
855 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
856 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
857 (__mingw_get_output_format, __mingw_set_output_format)
858 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
859 Unconditionally declare their prototypes, for subsequent inline use.
860 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
861 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
862 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
863 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
864 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
865 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
866 represent a compilable token.
868 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
869 _get_output_format; consult __mingw_output_format_flag directly.
871 * ofmt_stub.s: No longer required; delete it.
873 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
874 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
875 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
876 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
877 all are compiled from ofmt.c
879 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
881 Do some more essential build tree clean up.
883 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
884 in the way of a successful rebuild from clean.
886 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
888 Implement wrappers for emulation of POSIX dlfcn API.
890 * include/dlfcn.h: New file; it declares the API.
891 * mingwex/dlfcn.c: New file; implement it, with access via...
892 (__mingw_dlfcn): ...this publicly addressable vector table.
894 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
895 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
896 (__LIBIMPL__): ...this automatic interface generator; implement it.
897 (libstub_refnames): New macro; it is adapted from and replaces...
898 (jmpstub_refs): ...this; when it is then invoked twice to build...
899 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
900 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
901 (libimpl_awk_script): New inline script; it handles automated builds
902 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
903 (libimpl_sed_script): New inline script; it prepares intermediate C
904 source code for LIBIMPL interfaces, as required to satisfy these...
905 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
906 (LIBIMPL_CFLAGS): New macro; define it.
908 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
910 Move libgen functions to __mingw_ pseudo-namespace.
912 * mingwex/dirname.c (dirname): Rename function, as implemented...
913 (__mingwex_dirname): ...to this.
915 * mingwex/basename.c (basename): Rename function, as implemented...
916 (__mingwex_basename): ...to this.
918 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
919 prototypes, matching and augmenting original declarations for...
920 (dirname, basename): ...these; reimplement as inline aliases, with
921 __JMPSTUB__ references to the renamed implementation entry points.
923 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
925 Implement new command line argument globbing strategy.
927 * include/_mingw.h: Backport feature defines from master...
928 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
929 constants; define them. They select the preferred globbing algorithm.
930 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
931 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
932 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
933 they enable optional additional features supported by this algorithm.
934 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
936 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
938 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
939 * setargv.c: ...new file; it implements the initialization mechanism
940 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
941 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
942 it invokes the algorithm via an API similar to that described by MSDN,
943 while continuing to support our original _CRT_glob interpretation.
944 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
945 algorithm, via the MSDN-alike API, by calling back to...
947 * crt1.c (_mingw32_init_mainargs): ...this original function, now
948 relocated to here, as a publicly addressable function; formerly...
949 (__mingw_CRTStartup): ...called directly from here, we now redirect
950 the call through _setargv(), whence it may be called indirectly.
952 * init.c: Redundant file; delete it. It originally provided...
953 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
954 original static attribute removed, to allow global addressing.
956 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
958 Backport glob implementation from master to legacy.
960 * include/glob.h: New file; copy it from master branch.
961 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
962 (glob, globfree): ...each of these, respectively.
964 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
965 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
966 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
967 (accept_glob_nocheck_match): New static function; it adds support for
968 avoidance of globbing on patterns with no globbing token, so avoiding
969 the case transliteration effect reported as MinGW-Bug #2106.
970 (glob_match): Use it.
972 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
974 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
976 Implement conventionally named dirent function trampolines.
978 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
979 which redirects a conventionally named function call to its __mingw_
980 pseudo-namespace implementation.
982 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
983 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
984 appropriate protocol for compiling *.sx files, (supported natively by
985 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
987 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
988 yet provide it, so we define it ourselves; deploy it for *.sx files.
989 (Makefile.stub): New sinclude file; create it dynamically, using...
990 (jmpstub_awk_script): ...this new inline script, which is based on...
991 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
992 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
993 (mostlyclean-local): Remove Makefile.stub; do likewise...
994 (Makefile): ...when remaking this, to ensure that both will be
997 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
999 Make dirent implementation namespace and time_t clean.
1001 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1002 macros; define them. They facilitate identification of symbols which
1003 must be compiled with `extern "C"' binding, when compiling C++ code.
1004 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1005 (_CRTALIAS): ...this, which is to be considered as deprecated.
1006 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1007 __CRT_ALIAS build hints, while remaining transparent to GCC.
1008 (UNICODE, _UNICODE) [user defined]: Define consistently.
1010 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1011 4.0-dev branch, with additional ABI changes to improve stability).
1012 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1013 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1014 Add `__mingw_' prefix to all publicly exposed symbol names.
1015 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1016 implemented functions; they replace Microsoft's ambiguously defined
1017 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1018 resulting from the ambiguous size of Microsoft's time_t.
1020 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1021 removing unnecessary time_t and file size fields; (our replacements
1022 for _findfirst, and _findnext do not require them to be present).
1023 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1024 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1025 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1026 Adjust prototypes, making them inline aliases for public symbols which
1027 are now qualified by the `__mingw_' prefix; add build hints to support
1028 compilation of addressable stubs, with the original symbol names.
1029 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1030 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1031 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1032 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1033 New macros; define them. (These show availability of optional fields
1034 within the dirent struct, which client code may wish to access).
1036 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1038 Correct improper naming of assembly language source files.
1040 * mingwex/math/*.S: Rename all files with this extension...
1041 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1042 not extended `assembler-with-cpp' as implied by the former extension);
1043 adjust all internal `.file <name>' references accordingly.
1045 * Makefile.in (vpath %.S): Adjust reference to locate files....
1046 (vpath %.s): ...now renamed thus.
1048 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1050 Streamline the build system infrastructure.
1052 * configure.ac: New file; it replaces...
1053 * configure.in: ...this; (name is obsolete); delete it.
1055 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1056 make invocations, when processing subdirectories, and add automatic
1057 dependency tracking for all generated files.
1059 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1061 * mingwex/Makefile.in: No longer required; delete it.
1062 * profile/Makefile.in: Likewise.
1064 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1065 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1067 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1068 longer relevant, and I have no desire to maintain it.
1070 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1072 * include/_mingw.h: Increment version to 3.20.
1074 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1076 * tlsmthread.c: Update to reflect changes in tlssup.c.
1077 * tlssup.c: code clean-up.
1079 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1081 * include/_mingw.h: Increment version to 3.19.
1083 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1085 * include/float.h: Modify guard to accomodate CLang.
1087 Thanks to Ruben Van Boxem for the report.
1089 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1091 * tlssup.c: Remove mingwm10.dll fallback.
1093 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1095 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1097 Thanks to bvassche for the report.
1099 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1101 Correct checking for short option matches in getopt_long_only().
1103 * mingwex/getopt.c (getopt_verify): New static inline function.
1104 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1105 possible short option match after failing to match, or ambiguously
1106 matching as a long option.
1108 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1110 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1112 Thanks to cgf for the report.
1114 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1116 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1117 compiles with __STRICT_ANSI__.
1119 Thanks to Felipe Contreras for the report.
1121 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1123 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1126 Thanks to Tobias Burnus for the report.
1128 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1130 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1131 by wrapping the functions in brackets.
1133 Thanks to Kai Tietz for the report.
1135 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1137 * Makefile.in: Add support for msvcr100.dll.
1138 * msvcrt.def.in: Ditto.
1140 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1142 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1143 not always available, go the long way and use the explicit named union
1144 members, which are also declared in winnt.h.
1146 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1148 * mingwex/isblank.c: Fix typo in declaration.
1150 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1152 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1153 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1154 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1155 is included before <ctype.h>.
1157 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1159 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1161 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1163 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1165 Correct hexadecimal formatting of double and long double values.
1167 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1168 (__pformat) [A format]: Cast double values to long double, and use...
1169 (__pformat_xldouble): ...this instead, with corrected adjustment of
1170 exponent and alignment of mantissa, when formatting subnormals.
1172 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1174 * include/dirent.h (dd_handle): Define as intptr_t.
1176 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1178 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1181 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1183 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1184 semantically identical MAX_PATH; correct value is 260.
1186 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1188 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1189 system include search path; (issue reported by Mark Brand).
1191 * include/float.h: Add multiple inclusion guard around...
1192 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1193 only when this define does not indicate that it has already been seen;
1194 update comments to document rationale; move it within the scope of...
1195 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1196 GCC's float.h, after an appropriate complementary modification, need
1197 not perform a further include path search when this implementation
1198 specific extension has already been processed.
1200 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1202 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1203 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1204 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1205 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1206 _findnexti64): Correct definition.
1208 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1210 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1212 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1214 * include/_mingw.h: Increment version to 3.18.
1216 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1218 * include/stdio.h: (_vscprintf, _vscwprintf)
1219 * include/tchar.h: (_vsctprintf)
1221 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1223 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1224 (initial implementation)
1226 * new type: __time32_t
1228 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1229 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1230 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1232 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1233 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1234 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1235 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1236 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1237 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1238 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1239 _wstat32i64, _wstat64i32,_wutime32
1241 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1242 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1243 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1244 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1245 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1247 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1249 Implement TLS Callback.
1251 * tlsmcrt.c: New file.
1252 * tlsmthread.c: Ditto.
1255 * Makefile.in: Include new files.
1256 * crt1.c: Implement TLS Callback.
1258 * mthr_stub.c: Remove.
1260 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1262 * include/_mingw.h: Increment version to 3.17.
1264 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1266 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1267 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1269 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1271 * include/io.h (_open_osfhandle): Correct definition.
1273 Thanks to Alexander Shaduri for the information.
1275 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1277 Final sync of pseudo-reloc.c with mingw64 and cygwin
1278 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1279 regarding error messages.
1281 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1283 Honor DESTDIR for winsup/mingw and winsup/w32api.
1284 Detect and report error if installation paths are win32
1285 format, but DESTDIR is non-empty.
1287 * Makefile.in (DESTDIR): Honor per convention.
1288 (need-DESTDIR-compatibility): New macro; define it and a
1290 (fail-DESTDIR-compatibility): New dependency goal.
1291 (install-dirs): Require need-DESTDIR-compatibility.
1292 * mingwex/Makefile.in (DESTDIR): Honor per convention.
1293 (need-DESTDIR-compatibility): New macro; define it and a
1295 (fail-DESTDIR-compatibility): New dependency goal.
1296 (install): Require need-DESTDIR-compatibility.
1297 * profile/Makefile.in: Ditto.
1299 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1301 Sync pseudo-reloc.c with mingw64
1302 * psuedo-reloc.c: Remove unnecessary includes.
1303 Forward declare _pei386_runtime_relocator.
1304 Decorate _image_base__ symbol with macro for
1305 mingw64 compatibility. Whitespace changes.
1306 (__print_reloc_error): Renamed to...
1307 (__report_error): This. "Returns" void, and
1308 always aborts. Now used on all platforms.
1309 (__write_memory): Remove special case error handling
1310 for different platforms - always call __report_error.
1311 (do_pseudo_reloc): Remove special case error handling
1312 for different platforms - always call __report_error.
1313 (_pei386_runtime_relocator): Decorate _image_base__
1314 symbol with mingw64 compatibility macro.
1316 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1318 Sync pseudo-reloc.c with cygwin/lib/
1319 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1320 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1321 for fatal error handling that is consistent with cygwin process
1322 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1323 is unique to each address space, across fork().
1324 [CYGWIN] (__print_reloc_error): New function for reporting
1325 errors in a manner supported by cygwin at this early stage of
1326 the process life-cycle.
1327 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1328 performed only once for each address space, but are repeated
1329 after fork() in the new address space.
1330 [MINGW] (__write_memory): Ensure that b is always initialized
1331 by call to VirtualQuery, even if -DNDEBUG.
1333 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1335 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1336 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1338 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1339 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1340 specified format qualifiers, except in special case...
1341 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1342 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1343 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1346 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1348 Avoid multiple link time definitions of _printf() for C++;
1349 (problem reported by Alexander Shaduri, via MinGW-users ML).
1351 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
1352 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
1354 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1356 * include/_mingw.h: Increment version to 3.16.
1358 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
1360 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
1361 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
1362 __fp_unordered_compare): Add prototypes.
1363 * include/stdio.h (vsnwprintf): Add prototype.
1364 * include/wchar.h (vsnwprintf): Add prototype.
1365 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
1366 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
1368 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1370 Correct disposition of wchar_t output in printf().
1372 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
1373 (argval): ...this, in inner scope, with singular type `wchar_t'; use
1374 it to pass one wchar to __pformat_wputchars(), for output.
1376 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1378 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
1380 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1382 Convert to monolithic configuration procedure.
1384 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
1385 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
1386 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
1387 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
1388 (CRT0S): Relocate from `profile'; define it as appropriate.
1389 (LIBM_A): Define and AC_SUBST it unconditionally.
1390 (AC_CONFIG_SUBDIRS): Remove; none to configure.
1391 (AC_OUTPUT_FILES): Add `Makefile' for each of...
1392 (mingwex, profile): ...these subdirectories.
1394 * configure: Regenerated.
1396 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
1397 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
1398 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
1399 (SUBDIRS): Define explicitly, to run recursive `make' in...
1400 (mingwex, profile): ...these; simplify build commands...
1401 (rootme, rootsrc): ...without these shell variables.
1402 (all, subdirs): Delete redundant build commands.
1403 (FIXME): Flag various issues for follow up.
1405 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
1406 (top_srcdir): ...this new macro; let AC_SUBST define it.
1407 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1408 (Makefile): Make it depend on...
1409 (top_builddir/config.status): ...this, itself depending on...
1410 (top_srcdir/configure): ...this.
1411 (FIXME): Flag various issues for follow up.
1413 * mingwex/aclocal.m4: File no longer required; delete it.
1414 * mingwex/configure mingwex/configure.in: Likewise.
1416 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
1417 (top_srcdir): ...this new macro; let AC_SUBST define it.
1418 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1419 (Makefile): Make it depend on...
1420 (top_builddir/config.status): ...this, itself depending on...
1421 (top_srcdir/configure): ...this.
1422 (FIXME): Flag various issues for follow up.
1424 * profile/aclocal.m4: File no longer required; delete it.
1425 * profile/configure profile/configure.in: Likewise.
1427 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1429 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
1430 to complaints that it causes issues.
1432 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
1434 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
1436 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1438 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
1439 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
1440 to all inline functions.
1442 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1444 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
1445 * CRT_fp10.c: Ditto.
1447 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1449 * cpu_features.c: replace gcc-specific construct with portable alternative
1450 and match the code a few lines above.
1451 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
1453 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1455 * include/_mingw.h: Changes required for PCC compiler.
1457 2009-07-18 Jeff Lu <jll544@yahoo.com>
1459 * mingwex/usleep.c: round up to next ms
1461 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1463 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
1464 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
1465 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
1466 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
1468 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1470 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
1472 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
1474 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
1475 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
1476 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
1477 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
1478 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
1479 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
1480 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
1481 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
1482 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
1483 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
1484 sources as of Apr. 20, 2009. Update further to match the sources in
1485 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
1486 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
1487 double/ulong union from U to dbl_union for better grepping and white-
1490 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1492 * include/stdlib.h (_wtof): Define.
1494 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
1496 * include/stdint.h (int_fast8_t): Specify as signed char.
1497 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
1498 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1500 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1502 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1504 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1506 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1507 (Requested by Robert Riebisch)
1509 * mingwex/getopt.c (getopt_parse): Track external increments of...
1510 (optind): ...this global variable.
1512 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1514 * include/_mingw.h: Increment version to 3.15.2.
1516 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1518 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1519 Also add tentative support for BSD specific `optreset' feature.
1521 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1522 (__mingw_optreset): ...this new global variable.
1524 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1525 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1528 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1530 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1531 Correct mishandling of invalid characters in printf() format specs.
1533 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1534 (backtrack): ...this new automatic variable, at start of each format
1535 conversion specification substring; use it to backtrack, and print the
1536 substring literally, if any invalid character is encountered.
1538 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1540 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1541 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1542 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1543 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1544 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1545 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1546 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1547 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1548 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1549 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1550 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1551 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1552 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1553 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1555 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1557 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1559 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1561 Correct some binary distribution packaging defects.
1563 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1564 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1565 intermediate goals; they make packages of files, as specified by...
1566 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1567 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1569 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1571 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1572 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1574 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1575 of radix point conditional on precision != 0 or `#' flag specified.
1577 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1579 Fix MinGW-Bug [2160227]
1580 Eliminate conflicting declarations and implementations of scalb().
1582 * moldname.def.in (scalb): Comment out of EXPORTS list.
1583 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1584 with GCC's built-in declaration.
1586 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1588 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1590 * mingwex/Makefile.in: Ditto.
1591 * profile/Makefile.in: Ditto.
1592 * configure.in: Record mingw front-end for building under Cygwin.
1593 * mingwex/configure.in: Ditto.
1594 * profile/configure.in: Ditto.
1595 * configure: Regenerate.
1596 * mingwex/configure: Ditto.
1597 * profile/configure: Ditto.
1599 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1601 Use de-facto standard Makefile goals to invoke test suite.
1603 * Makefile.in: Some minor formatting adjustments.
1604 (test_headers): Unconventionally named goal renamed to...
1605 (check-headers): ...this; make it a prerequisite of...
1606 (check): ...this new conventionally named goal.
1608 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1610 Make strtod() inline definition C89 compliant.
1611 (Issue reported by Ilya Shestopalov and Ian Puleston)
1612 (Correction identified by Danny Smith)
1614 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1615 reformat inline function definition.
1617 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1619 * include/_mingw.h: Increment version to 3.15.1 and introduce
1620 __MINGW32_PATCHLEVEL variable.
1622 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1624 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1625 (Reported by Christian Franke)
1627 * mingwex/getopt.c (optind): Make global variable value conform to
1628 behaviour specified by POSIX; do not use it for internal state in...
1629 (getopt_parse): ...this static function; use...
1630 (optbase): ...this new static local variable instead.
1631 (getopt_resolved): Update `optind' as required.
1633 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1635 Improve package identification in configure script.
1637 * configure.ac (AC_INIT): Redefine parameters...
1638 (PACKAGE_NAME): Set to `MinGW Runtime'.
1639 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
1640 (PACKAGE_TARNAME): Set to `mingwrt'.
1641 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
1642 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
1643 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
1645 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
1646 (PACKAGE_TARNAME): ...this.
1648 * configure: Regenerated.
1650 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1652 Fix MinGW-Bug [2125708].
1653 (Reported by Alexandr Zamaraev).
1655 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
1656 not wanted here; remove it; replace it by...
1657 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
1658 (_invalid_parameter_handler): ...this function typedef.
1660 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
1662 * Makefile.in: Don't include host_os as part of snapshot filename.
1664 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1666 Fix MinGW-Bug [2119504].
1667 (Reported by Peiyuan Song).
1669 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
1670 (*retindex): ...this already correctly assigned return variable...
1671 (opt[index].val): ...with this; this should have been assigned to...
1672 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
1674 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1676 Fix MinGW-Bug [2117379].
1677 (Reported by Peiyuan Song).
1679 * include/stdio.h (__argv): Replace all references in function
1680 prototype argument lists and inline function local variables, with ...
1681 (__local_argv): ...this, to avoid potential conflict with ...
1682 * include/stdlib (__argv): ...this #defined macro.
1684 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1686 * include/_mingw.h: Increment version to 3.15.
1688 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1690 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
1691 naming standard for Cygwin.
1693 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1695 Reimplement getopt.c to add getopt_long_only() function.
1697 (N.B. this reimplementation removes support for BSD/Mac-OS-X
1698 `optreset' nonsense; user code should set `optind = 0' instead,
1699 to reinitialise option scanning).
1701 * mingwex/getopt.c: Delete all content; reimplement it.
1702 * include/getopt.h: Likewise.
1704 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
1705 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
1707 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1709 Implement conditional replacement for printf() family functions.
1711 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
1712 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
1713 flag for use in user specified __MINGW_FEATURES__ attribute.
1714 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
1715 currently unused: reserved as components of...
1716 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
1717 a __MINGW_FEATURES__ enhancement to setlocale().
1719 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
1720 (__mingw_fprintf, __mingw_vfprintf): Likewise.
1721 (__mingw_sprintf, __mingw_vsprintf): Likewise.
1722 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
1723 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
1724 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
1725 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
1726 usage; link to DLL import stub, importing from MSVCRT.
1727 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1728 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1729 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
1730 locally defined static stub implementation.
1731 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1732 __mingw_fprintf and __mingw_sprintf respectively.
1733 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
1734 static inline implementation for C++ and GNU C, or locally defined
1735 static stub otherwise.
1736 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1737 __mingw_vfprintf and __mingw_vsprintf respectively.
1739 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1741 Avoid access violations, passing NULL to printf( "...%s..." );
1742 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
1744 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
1745 for argument value, if caller passes a NULL pointer.
1746 (__pformat_wcputs): Likewise, substitute L"(null)".
1748 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1750 Add missing dependencies for building libmingwex.a.
1752 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
1753 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
1754 (pformat.h): ...this.
1756 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1758 Add replacements for remaining members of printf() family.
1760 * mingwex/stdio/printf.c: New file.
1761 * mingwex/stdio/fprintf.c: New file.
1762 * mingwex/stdio/sprintf.c: New file.
1763 * mingwex/stdio/vprintf.c: New file.
1764 * mingwex/stdio/vfprintf.c: New file.
1765 * mingwex/stdio/vsprintf.c: New file.
1767 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1768 (STDIO_OBJS): Add their corresponding object files.
1770 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1772 Replace __mingw_snprintf() with new generic family implementation;
1773 likewise, replace __mingw_vsnprintf().
1775 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
1776 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
1777 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1778 (GDTOA_DISTFILES): Remove mingw_snprintf.c
1779 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
1780 (GDTOA_OBJS): Remove mingw_snprintf.o
1781 (PFORMAT_CFLAGS): New macro; define it, as required by...
1782 (pformat.o): ...this new explicit build target.
1783 (snprintf.o, vsnprintf.o): Declare prerequisites.
1785 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
1787 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1789 Lay foundations for new printf() function family implementation.
1791 * ofmt_stub.s: New file; implement forward compatibility stub for...
1792 (_get_output_format): ...this MSVCR80.DLL and later function.
1794 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
1795 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
1796 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
1797 (lib%.a): Include ofmt_stub.o when import library does not already
1798 advertise availability of the _get_output_format() function;
1799 Add alias stubs for MINGW_REPL_FUNCS, such that...
1800 (__msvcrt_printf): ...is an alias for Microsoft's printf().
1801 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
1802 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
1803 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
1804 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
1805 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
1806 (clean): Add msvcr*.def.
1808 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
1809 * configure: Regenerated.
1811 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1813 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
1814 (_imp____mb_cur_max_dll): Likewise.
1816 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
1818 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
1819 * include/wchar.h (swprintf, vswprintf): Likewise.
1821 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1823 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
1824 (_get_output_format, _set_output_format): Add references.
1826 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
1827 (_get_output_format, _set_output_format): Declare prototypes.
1828 (_TWO_DIGIT_EXPONENT): Define.
1829 Some other minor formatting adjustments.
1831 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1833 [mingw-Bugs-1801641]
1834 * include/wchar.h (_wfdopen): Const-ify second arg.
1835 * include/stdio.h (_wfdopen): Likewise.
1836 Thanks to <tdragon at users dot sourceforge net>
1838 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1840 Avoid precision errors in round(), lround() and llround() functions.
1842 * mingwex/math/round_generic.c: New file; it replaces...
1843 * mingwex/math/round.c: ...this; delete it.
1844 * mingwex/math/roundf.c: ...and this; ditto.
1845 * mingwex/math/roundl.c: ...and this; ditto.
1847 * mingwex/math/lround_generic.c: New file; it replaces...
1848 * mingwex/math/lround.c: ...this; delete it.
1849 * mingwex/math/lroundf.c: ...and this; ditto.
1850 * mingwex/math/lroundl.c: ...and this; ditto.
1851 * mingwex/math/llround.c: ...and this; ditto.
1852 * mingwex/math/llroundf.c: ...and this; ditto.
1853 * mingwex/math/llroundl.c: ...and this; ditto.
1855 * mingwex/math/round_internal.h: New file; it provides generic common
1856 code, which is shared by `round_generic.c' and `lround_generic.c'; the
1857 implementation is based on techniques suggested by Danny Smith and
1860 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
1861 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
1862 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
1863 `round_generic.c' and `lround_generic.c'.
1864 (MATH_OBJS): Factor out files listed in...
1865 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
1866 macros; define them; specify dependencies and build rules; add to...
1867 (LIB_OBJS): ...this list.
1869 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
1871 [ mingw-Bugs-1961893 ]
1872 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
1873 mode to 2 for E format.
1875 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
1877 * include/stdlib.h: Fix strtod under C++.
1879 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
1881 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
1882 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
1884 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
1886 * include/sys/types.h (useconds_t): typedef.
1887 * include/unistd.h (usleep): Add prototype.
1888 * mingwex/usleep.c: New file.
1889 * mingwex/makefile.in: Add usleep source and object.
1891 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
1893 Make strtod() conform to C99.
1895 * include/stdlib.h (strtod): Declare this mingwex function, and...
1896 (_strtod): rename this MSVCRT counterpart.
1898 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
1900 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
1902 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
1904 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1906 * include/process.h: Include stdint.h for intptr_t definition.
1907 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
1908 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
1909 _spawnvpe): Return intptr_t.
1910 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
1911 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
1913 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
1915 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
1916 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
1917 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
1918 _wspawnvp, _wspawnvpe): Return intptr_t.
1920 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1922 * include/wchar.h (fwide): Return success code rather than failure in inline
1924 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
1925 code rather than failure.
1927 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
1929 * include/math.h (float_t, double_t): Define.
1931 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
1933 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
1934 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
1935 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
1937 2008-02-28 Joseph Myers <joseph@codesourcery.com>
1939 * include/complex.h: Don't condition contents on C99 or not
1942 2008-02-01 Brian Dessent <brian@dessent.net>
1944 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
1945 the different runtime versions.
1947 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
1949 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
1950 (mbsinit): Likewise.
1952 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1954 * include/_mingw.h: Increment version to 3.14.
1956 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1958 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
1959 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
1960 * mingwex/math/log10f.S: Correct issue with comments.
1961 * mingwex/math/log10l.S: Ditto.
1962 * mingwex/math/log1p.S: Ditto.
1963 * mingwex/math/log1pf.S: Ditto.
1964 * mingwex/math/log1pl.S: Ditto.
1965 * mingwex/math/log2.S: Ditto.
1966 * mingwex/math/log2f.S: Ditto.
1967 * mingwex/math/log2l.S: Ditto.
1968 * mingwex/math/logf.S: Ditto.
1969 * mingwex/math/logl.S: Ditto.
1971 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
1973 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
1975 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
1977 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
1978 from '_fsize_t' to '__int64' to be consistent with the other ...64
1979 structures and the value set there is 8 bytes not 4. Add guard for both
1980 as the are only used by functions available from 6.1 on.
1982 * include/malloc.h (_HEAP_MAXREQ): Define.
1983 (_aligned_offset_recalloc): Define.
1984 (_aligned_recalloc()): Define.
1986 * include/math.h: fixed a typo in a comment.
1987 (atanhf): Fixed declaration.
1989 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
1990 to '__int64' to be consistent with the other ...64 structures and the value
1991 set there is 8 bytes not 4. Added guard as this function is only used by
1992 functions available from 6.1 on.
1994 * include/sys/stat.h: some members of 'stat' were declared with types with
1995 a prefixed underscore, while the ones without the underscore should have
1996 been used. Added guard to '__stat64' as it is only used by functions
1997 available from 6.1 on. Added the wide character versions of the
1998 exec()/spawn() family for completion
1999 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
2002 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
2003 from 'long' to 'time_t'
2004 (__timeb64): moved declaration of structure directly before the declaration
2005 of the function '_ftime64()', so it is guarded as well
2007 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
2008 before the declaration of the functions using it, so it is guarded as well
2010 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
2012 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
2013 case. Add missing break in 's'/LEN_S case.
2015 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2017 Make snprintf() and vsnprintf() conform to C99.
2019 * include/stdio.h: Add note about incompatibility between...
2020 (snprintf, vsnprintf): These two mingwex functions, and...
2021 (_snprintf, _vsnprintf): these MSVCRT counterparts.
2023 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
2024 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
2026 * mingwex/stdio/snprintf.c: Delete.
2027 * mingwex/stdio/vsnprintf.c: Delete.
2029 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
2030 (vsnprintf): Alias to __mingw_vsnprintf.
2032 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2034 * include/_mingw.h: Increment version to 3.13.
2035 * Makefile.in: Reset CYGRELEASE to 1
2037 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2039 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
2040 resulting from incomplete removal of enclosing `for ...; do ...; done'
2041 loop from compound command; (reported by Greg Chicares).
2043 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2045 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2048 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2050 [mingw-Bugs-1734142]
2051 * include/wchar.h (_wsystem) Declare.
2053 (_wgetenv): Declare.
2054 (_wsearchenv): Declare.
2055 (_wmakepath): Declare.
2056 (_wsplitpath): Declare.
2057 (_wfullpath): Declare.
2058 * include/stdlib.h (_wsystem) Declare.
2059 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
2060 _wfullpath): Move into _WSTDLIB_DEFINED guard.
2061 * include/tchar.h (_tsystem): New UNICODE mapping define.
2063 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
2065 * mingwex/gdtoa/mingw_snprintf.c: New file.
2066 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
2067 (GDTOA_OBJS): Add mingw_snprintf.o.
2069 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
2071 * msvcrt.def.in: Update comment.
2072 Exclude _ctype stub if using msvcr71.dll or newer.
2073 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
2074 * include/wctype.h: Likewise.
2076 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2078 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
2079 *include/dirent.h: Likewise.
2081 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2083 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
2084 * include/conio.h: Likewise.
2085 * include/ctype.h: Likewise.
2086 * include/direct.h: Likewise.
2087 * include/dos.h: Likewise.
2088 * include/errno.h: Likewise.
2089 * include/fenv.h: Likewise.
2090 * include/float.h: Likewise.
2091 * include/inttypes.h: Likewise.
2092 * include/io.h: Likewise.
2093 * include/libgen.h: Likewise.
2094 * include/locale.h: Likewise.
2095 * include/malloc.h: Likewise.
2096 * include/mbctype.h: Likewise.
2097 * include/mbstring.h: Likewise.
2098 * include/process.h: Likewise.
2099 * include/search.h: Likewise.
2100 * include/setjmp.h: Likewise.
2101 * include/signal.h: Likewise.
2102 * include/stdio.h: Likewise.
2103 * include/stdlib.h: Likewise.
2104 * include/string.h: Likewise.
2105 * include/time.h: Likewise.
2106 * include/wchar.h: Likewise.
2107 * include/sys/stat.h: Likewise.
2108 * include/sys/time.h: Likewise.
2109 * include/sys/timeb.h: Likewise.
2110 * include/sys/utime.h: Likewise.
2112 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2114 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2116 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2118 Add POSIX binary tree search API.
2120 * mingwex/tfind.c: New file.
2121 * mingwex/tdelete.c: New file.
2122 * mingwex/tsearch.c: New file.
2123 * mingwex/twalk.c: New file.
2124 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2125 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2126 * include/search.h (tfind): Declare.
2133 (node_t): Define, on condition of _SEARCH_PRIVATE.
2135 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2137 * include/_mingw.h (__MINGW_NOTHROW): Define.
2139 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2141 * include/stdio.h (vsnprintf): Remove inline definition.
2144 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2146 * CRTfmode.c: Nit-pick comment fix.
2148 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2150 * CRTfmode.c: Fix nested comment.
2152 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2154 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2156 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2158 * include/io.h (lseek64) : Add prototype.
2160 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2162 * include/string.h (strcasecmp): Add prototype.
2163 (strncasecmp): Add prototype.
2165 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2167 * Makefile.in (CRT0S): Revert last change.
2168 * CRTfmode.c. Correct comment.
2170 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2172 * Makefile.in (CRT0S): Add back CRTfmode.o.
2174 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2176 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2177 * include/io.h: Likewise.
2179 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2181 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2183 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2185 * include/stdint.h (intptr_t): Fix typo.
2186 Thanks to Charles Wilson for report.
2188 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2190 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2191 Condition on _WIN64.
2192 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2193 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2194 (PTRDIFF_MIN): Define as INTPTR_MIN.
2195 (PTRDIFF_MAX): Define as INTPTR_MAX.
2196 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2197 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2199 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2201 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2202 Cygwin man page location.
2204 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2206 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2207 support Cygwin man page location.
2209 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2211 * Include/_mingw.h: Increment version to 3.12.
2213 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2215 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2217 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2219 * Makefile.in: Tweak srcdist to fix build issue.
2221 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2223 Add --enable-mingw-manpage-transform configure option.
2225 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2226 * configure.in, Makefile.in: Use it.
2227 * configure: Regenerated.
2229 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2231 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2233 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2235 Add manpages for dirname and basename functions.
2237 * man: New directory.
2238 * man/dirname.man: New file; it sources both manpages.
2239 * Makefile.in: Add provisional rules to distribute them.
2241 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2243 * mingwex/basename.c: Make it work with path names containing
2244 multibyte character strings.
2245 * mingwex/dirname.c: Likewise.
2247 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2249 * include/io.h (__mingw_access): New static inline wrapper to restore
2250 pre-Vista 'access (fname, X_OK)' behaviour.
2251 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2253 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2255 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2257 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2259 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2261 * include/stdio.h (_unlink, unlink): Add prototypes.
2263 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2265 * include/excpt.h: Replace "_try1" in comments with "__try1".
2267 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2269 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2270 (ALL_CXXFLAGS): Likewise.
2271 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2272 (ALL_CXXFLAGS): Likewise.
2273 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2274 (ALL_CXXFLAGS): Likewise.
2276 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2278 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2280 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2282 Expose some more msvcr80.dll functions.
2283 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2284 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2285 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2286 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2288 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2290 Expose some msvcr80.dll functions.
2291 * include/stdlib.h (_set_abort_behavior): Add prototype.
2292 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2293 _set_abort_behavior mask argument.
2294 (_invalid_parameter_handler): Add typedef.
2295 (_set_invalid_parameter_handler): Add prototype.
2296 * include/stdio.h (_get_printf_count_output): Add prototype.
2297 (_set_printf_count_output): Add prototype.
2298 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2299 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2301 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2303 * include/_mingw.h (CRT_INLINE): Correct typo.
2305 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2307 * include/io.h (X_OK): Define to F_OK.
2309 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2311 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2312 unconditionally. Change comment.
2313 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2315 * include/io.h (rename): Declare.
2318 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2320 * include/libgen.h: New file; required by...
2321 * mingwex/basename.c, mingwex/dirname.c: New files.
2322 * mingwex/Makefile.in (DISTFILES): Add them...
2323 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2324 (Dependencies): Typo; s/Dependancies/Dependencies/
2326 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2328 * Makefile.in (VERSION): Let configure define it.
2330 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2331 * configure.in: Use it.
2332 Correct quoting of autoconf macro arguments throughout.
2333 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2334 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2335 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2336 (AC_CONFIG_FILES): Add, to generate Makefile.
2338 * configure: Regenerated.
2340 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2342 * Makefile.in: Add aclocal.m4 to source release.
2343 * mingwex/Makefile.in: Ditto.
2344 * profile/Makefile.in: Ditto.
2346 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2348 * Include/_mingw.h: Increment version to 3.11.
2349 * Makefile.in: Ditto.
2351 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
2353 [ mingw-Bugs-1590623 ]
2354 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
2357 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
2359 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
2360 correctly parenthesized.
2362 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2364 * mingwex/mb_wc_common.h (get_codepage): Get it
2367 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2369 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
2371 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
2373 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
2376 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
2378 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
2381 2006-09-11 Christopher Faylor <cgf@timesys.com>
2383 * Makefile.in: Semi-revert 2006-08-30 change.
2385 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2387 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
2388 (__MINGW_IMPORT): Ansify.
2389 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
2390 __MINGW_ATTRIB_DEPRECATED.
2392 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2394 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
2395 Redundant macros; deleted.
2397 * configure.in (LIB_AC_PROG_CC): Replaced by...
2398 (AC_PROG_CC): ...this.
2400 * configure: Regenerated.
2402 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
2404 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
2405 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
2406 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
2408 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
2410 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
2411 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
2412 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
2413 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
2415 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
2416 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
2417 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
2418 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
2419 * mingwex/wcstold.c: Avoid using strtold internals.
2420 * mingwex/wcstof.c: Rewrite.
2421 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
2422 (GDTOA_OBJS): Add to library.
2423 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
2424 (STDLIB_OBJS): Remove.
2425 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
2426 (Q8_OBJS): Add wcstof.o wcstold.o.
2427 * include/stdlib.h (strtof): Remove inline definition.
2429 * include/wchar.h (wcstof): Remove inline definition.
2431 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
2433 * Makefile.in: Add with_cross_host to allow more granular checks.
2434 Set installation directories accordingly. Override CC setting only
2435 if building a Cygwin target.
2436 * aclocal.m4: Regenerate.
2437 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
2438 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
2439 Test AC_ALLOCA only if building on a native system.
2440 * configure: Regenerate.
2442 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2444 * include/ctype.h: Fix typo.
2446 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2448 * include/ctype.h: Expose iswblank if __cplusplus.
2449 * include/wctype.h: Expose iswblank if __cplusplus.
2451 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2453 * include/ctype.h: Remove stray ')';
2455 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2457 * include/ctype.h (_BLANK): Expand comment.
2458 (isblank): Add prototype and inline definition.
2459 (iswblank): Add prototype and inline definition.
2460 * include/wctype.h (iswblank): Add prototype and inline definition.
2461 * mingwex/isblank.c: New file.
2462 * mingwex/iswblank.c: New file.
2463 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2465 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
2467 * include/math.h (__INFF,__INFL): Remove '#'.
2469 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2471 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2473 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
2475 Support SSE float environment in fenv.h functions.
2476 * cpu_features.c: New file.
2477 * cpu_features.h: New file.
2478 * crt1.c: Include "cpu_features.h".
2479 (__mingw_CRTStartup): Call cpu_features_init().
2480 * Makefile.in (MING_OBJS): Add cpu_features.c.
2481 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
2482 * include/fenv,h ( fenv_t;): Append __mxcsr field.
2483 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
2484 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
2485 (__MXCSR_ROUND_FLAG_SHIFT): New define.
2486 * mingwex/feclearexcept.c: Include "cpu_features.h".
2487 Handle SSE environment.
2488 * mingwex/fegetenv.c: Likewise.
2489 * mingwex/feholdexcept.c: Likewise.
2490 * mingwex/fesetenv.c: Likewise.
2491 * mingwex/fesetexceptflag.c: Likewise.
2492 * mingwex/fesetround.c: Likewise.
2493 * mingwex/fetestexcept.c: Likewise.
2494 * mingwex/feupdateenv.c: Likewise.
2495 * mingwex/fegetround.c: Add comment.
2497 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2499 * Include/_mingw.h: Increment version to 3.10.
2500 * Makefile.in: Ditto.
2502 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2504 * mingwex/math/tgamma.c (SQTPI): Add braces.
2506 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2508 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2509 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2511 * mingwex/math/sf_erf.c (erff): Initialize z.
2513 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2515 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2517 * Include/_mingw.h: Increment version to 3.10.
2518 * Makefile.in: Ditto.
2520 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2522 * include/sys/time.h (struct timezone): Define.
2523 * include/time.h: Correct comment about timezone.
2525 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2527 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2528 * configure: Regenerate.
2530 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2532 * configure: add srcdir as a possible location for install-sh.
2534 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2536 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2537 (_topendir): Use it.
2539 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2541 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2543 (gettimeofday): Add prototype.
2544 * mingwex/gettimeofday.c: New file.
2545 * mingwex/makefile.in: Add gettimeofday source and object.
2547 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2549 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2550 else global library variable.
2551 (HUGEVALF): Likewise.
2552 (HUGEVALL): Likewise.
2553 (INFINITY): Likewise.
2556 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2558 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2560 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2562 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2564 2006-05-24 Christopher Faylor <cgf@timesys.com>
2566 * configure.in: Update to newer autoconf.
2567 (thanks to Steve Ellcey)
2568 * mingwex/configure.in: Ditto.
2569 * profile/configure.in: Ditto.
2570 * configure: Regenerate.
2571 * mingwex/configure: Ditto.
2572 * profile/configure: Ditto.
2573 * aclocal.m4: New file.
2574 * mingwex/aclocal.m4: Ditto.
2575 * profile/aclocal.m4: Ditto.
2577 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2579 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2580 Use supplied codepage as arg to WideCharToMultiByte.
2582 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2584 * Makefile.in (libmsvcr80.a): Add import lib.
2585 (libmsvcr80d.a): Ditto.
2587 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2589 * Makefile.in: Bump cygwin build number.
2591 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2593 * Include/_mingw.h: Increment version to 3.9.
2594 * Makefile.in: Ditto.
2596 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2598 * include/limits.h (SSIZE_MAX): Define.
2599 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2601 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2603 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2604 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2606 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2608 * include/stddef.h: Remove.
2609 * include/stdarg.h: Remove.
2611 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2613 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2614 of result is positive when real part of arg == 0;
2615 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2616 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2618 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2620 * include/time.h (_time64): Correct prototype.
2622 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2624 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2625 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2626 to non-stop. Use "fnclex" to clear exception flags.
2628 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
2630 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
2631 Avoid raising FP exceptions.
2633 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2635 * include/stdlib.h (strtof): Add prototype. Uglify
2636 parameter names in inline definition.
2638 (_Exit): Uglify parameter names in inline definition.
2639 (llabs): Add prototype.
2640 (_set_error_mode): Add prototype and input defines.
2642 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2644 * mingwex/fe*.c: Revert previous changes.
2645 * include/fenv.h: Revert previous changes.
2647 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2649 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
2650 Do not return a value.
2651 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
2652 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
2653 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
2654 * mingwex/fegetenv.c (fegetenv): Likewise.
2655 * mingwex/fesetenv.c (fesetenv): Likewise.
2656 * mingwex/feupdateenv.c (feupdateenv): Likewise.
2657 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
2658 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
2661 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2663 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
2664 getting filelength for SEEK_END.
2666 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2668 * Include/_mingw.h: Increment version to 3.8.
2669 * Makefile.in: Ditto.
2671 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2673 * include/wctype.h (towupper, towlower): Change arg and return value
2675 * include/ctype.h (towupper, towlower): Likewise.
2677 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2679 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
2680 a diagnostic, guarded by #ifdef DEBUG.
2681 (__mingwthr_remove_key_dtor): Likewise.
2683 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2685 * moldname.def.in (sleep, beep, seterrormode): Remove.
2687 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2689 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
2690 (_MCOUNT_DECL): Use it.
2691 (MCOUNT): Save and restore eax, ecx, edx registers.
2692 * profile/mcount.c (_mcount): ANSI-fy.
2694 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2696 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
2697 guard __MINGW_ATTRIB macro definitions.
2698 * include/math.h (logb[fl]): Don't define inlines for
2699 GCC-4.0+ && __FAST_MATH__.
2700 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
2701 line-continuation backslashes.
2703 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
2705 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
2706 in GNUC version guard.
2708 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
2710 * crt1.c (_gnu_exception_handler): Handle illegal instruction
2711 OS exception as a signal if user has defined a SIGILL handler.
2713 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
2715 * mingwex/math/nexttoward.c: New file.
2716 * mingwex/math/nexttowardf.c: New file.
2717 * mingwex/math/nextafterl.c: Add nexttowardl alias.
2718 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
2720 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
2721 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
2724 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
2726 * mingwex/math/nextafterf.c (nextafterf): Correct
2728 * mingwex/math/nextafterl.c: New file.
2729 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
2730 (MATH_OBJS): Add nextafterl.o.
2731 * include/math.h (nextafterl): Uncomment prototype.
2733 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2735 * mingwex/math/erfl.c: New file.
2736 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
2737 (MATH_OBJS): Add erfl.o.
2738 * include/math.h (erfl, erfcl): Uncomment prototypes.
2740 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
2742 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
2743 #if (WCHAR_MAX <= WCHAR_MIN) is false.
2744 * include/stdint.h (WCHAR_MAX): Likwise.
2745 (WINT_MAX): Likewise.
2747 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
2749 * mingwex/math/signbit.c (__signbit): Make return value
2750 consistent with GCC's __builtin_signbit.
2751 * mingwex/math/signbitf.c (__signbitf): Likewise.
2752 * mingwex/math/signbitf.c (__signbitl): Likewise.
2753 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
2756 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
2758 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
2760 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
2761 Remove unused MBTOWC_FLAGS define.
2763 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
2765 * mingwex/mbrtowc.c: New file.
2766 * mingwex/wcrtomb.c: New file.
2767 * mingwex/btowc.c: New file.
2768 * mingwex/wctob.c: New file.
2769 * mingwex/mb_wc_common.h: New file.
2770 * mingwex/Makefile.in (DISTFILES): Add new files.
2771 (Q8_OBJS): Add new objects.
2772 * include/wchar.h: Adjust comment about mbrtowc() and related
2773 funcions. Add __restrict__ to pointer params in prototypes.
2774 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
2775 arg names from protototypes.
2777 2005-04-23 Wu Yongwei <adah@sh163.net>
2779 * mingwex/dirent.c: Formatting changes.
2780 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
2783 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
2785 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
2787 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
2789 * include/stdio.h (__mingw_fwrite): Change return value to
2791 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
2793 2005-03-15 Hans Leidekker <hans@it.vu.nl>
2795 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
2797 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2799 * include/wctype.h (wctrans): Remove _CRTIMP.
2800 (towctrans): Likewise.
2803 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2805 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
2807 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2809 * mingwex/wctype.c: New file.
2810 * mingwex/wctrans.c: New file.
2811 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
2812 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
2814 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2816 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
2818 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2820 * include/assert.h: Remove header guard. #undef assert macro.
2821 (_assert): Use __MINGW_ATTRIB_NORETURN define.
2823 2005-02-11 Gregory W. Chicares <chicares@cox.net>
2825 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
2826 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
2828 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
2829 * mingwex/math/expm1.c: New file.
2830 * mingwex/math/expm1f.c: New file.
2831 * mingwex/math/expm1l.c: New file.
2833 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
2835 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
2836 * include/wchar.h (struct stat): Likwwise.
2837 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
2839 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
2841 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
2843 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
2844 string is not valid.
2846 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
2848 * include/malloc.h: Add missing return code defines for
2851 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
2853 * include/sys/stat.h (struct __stat64): Change st_size type to
2855 * include/wchar.h (struct __stat64): Change st_size type to __int64.
2857 2005-01-13 Earnie Boyd <earnie@users.sf.net>
2859 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2861 * include/errno.h (ELOOP): Ditto.
2862 * include/_mingw.h: Increment version to 3.7.
2863 * Makefile.in: Ditto.
2865 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
2867 * include/tchar.h (_tfreopen): Add UNICODE mappings.
2869 2005-01-11 Earnie Boyd <earnie@users.sf.net>
2871 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2872 lstat): Conditionalize defines for __STRICT_ANSI__.
2874 2005-01-10 Earnie Boyd <earnie@users.sf.net>
2876 * include/errno.h (ELOOP): Add definition.
2878 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
2880 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
2881 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
2882 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
2883 ctanl.c ctanhl.c): New files.
2884 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2885 (COMPLEX_OBJS): Adjust.
2886 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
2887 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
2888 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
2891 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2893 * include/_mingw.h (__int16): Define as short.
2894 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
2896 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2898 * include/stdio.h (P_tmpdir): Add define.
2900 2005-01-03 Earnie Boyd <earnie@users.sf.net>
2902 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
2904 2005-01-02 Earnie Boyd <earnie@users.sf.net>
2906 * include/_mingw.h: Increment version to 3.6
2907 * Makefile.in: Ditto
2909 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
2911 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
2912 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
2913 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
2914 ctanf.c ctanhf.c): New files.
2915 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2916 (COMPLEX_OBJS): Adjust.
2917 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
2918 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
2919 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
2922 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
2924 * include/wchar.h (wcsdup): Correct prototype.
2925 * include/string.h (wcsdup): Correct prototype.
2927 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2929 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
2931 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2933 * mingwex/math/fastmath.h: New file.
2934 * mingwex/math/asinh.c: New file.
2935 * mingwex/math/asinhf.c: New file.
2936 * mingwex/math/asinhl.c: New file.
2937 * mingwex/math/acosh.c: New file.
2938 * mingwex/math/acoshf.c: New file.
2939 * mingwex/math/acoshl.c: New file.
2940 * mingwex/math/atanh.c: New file.
2941 * mingwex/math/atanhf.c: New file.
2942 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
2943 atanh, atanhf, atanhl): Add prototypes.
2944 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
2945 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
2946 Specify dependency on fastmath.h for new objects.
2948 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2950 * include/sys/stat.h (_S_IFLNK): Add definition.
2957 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2959 * include/sys/stat.h (_S_ISLNK): Add definition.
2962 2004-09-05 Earnie Boyd <earnie@users.sf.net>
2964 * include/_mingw.h: Increment minor version for 3.5 release.
2965 * Makefile.in: Ditto.
2966 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
2968 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2970 * include/malloc.h (__mingw_aligned_offset_malloc,
2971 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
2972 __mingw_aligned_realloc, __mingw_aligned_free): Add
2974 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
2975 tst-aligned-malloc.c.
2976 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
2978 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
2980 * mingwex/mingw-aligned-malloc.c: New file.
2981 * mingwex/tst-aligned-malloc.c: New file.
2983 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2985 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
2986 noreturn attribute. Align stack to 16 bytes before passing args
2988 (mainCRTStartup): Change return to void.
2989 (WinMainCRTStartup): Likewise.
2991 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2993 * profile/COPYING: New file.
2994 * profile/CYGWIN_LICENSE: New file.
2995 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
2997 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2999 * mingwex/fopen64.c: Move.
3000 * mingwex/fseeko64.c: Move.
3001 * mingwex/ftello64.c: Move.
3002 * mingwex/lseek64.c: Move.
3003 * mingwex/stdio/fopen64.c: To here.
3004 * mingwex/stdio/fseeko64.c: To here.
3005 * mingwex/stdio/ftello64.c: To here.
3006 * mingwex/stdio/lseek64.c: To here.
3008 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3010 * profile/gmon.c [__MINGW32__]: Include string.h for
3013 2004-08-08 Christopher Faylor <cgf@timesys.com>
3015 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
3017 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3019 * include/complex.h: Remove __attribute__ ((const)) from
3020 transcendantal and trig functions. Replace __attribute__ ((const))
3021 with __MINGW_ATTRIB_CONST on other declarations.
3023 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3025 * include/wchar.h: Reorganize, avoid including other headers.
3027 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3029 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
3030 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
3033 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3035 * include/dirent.h (struct _wdirent): Remove obsolete comment.
3037 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3039 * include/string.h: Revert 2004-07-26 additions of
3042 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3044 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3045 (__convert_inf_to_maxnum): New.static inline.
3046 (reducl): Use it to protect against Inf - Inf.
3047 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3049 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3051 * mingwex/math/expl.c (expl): Move body of code to new static
3052 function __expl, removing tests for +/-Inf. Extern function
3053 expl calls __expl after testing for max, min log thresholds.
3055 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3057 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
3058 * mingwex/stdio/vfscanf.c: Likewise.
3059 * mingwex/stdio/vswscanf.c: Likewise.
3060 * mingwex/stdio/vfwscanf.c: Likewise.
3062 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3064 * include/_mingw.h: Use only two underscores to uglify
3065 __MINGW_ATTRIB_* macros.
3066 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
3067 * include/setjmp.h: Likewise.
3069 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
3071 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
3073 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3075 * include/string.h: Group wide string functions together,
3076 and protect with _WSTRING_DEFINED.
3078 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3080 * include/_mingw.h (__MINGW_ATTR_*): Replace with
3082 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
3083 __MINGW_ATTRIB_NORETURN, throughout.
3084 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3086 (abs): Declare with __MINGW_ATTRIB_CONST.
3095 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3097 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3099 * include/_mingw.h: Undefine __attribute__.
3100 (__MINGW_ATTR_NORETURN): New define.
3101 (__MINGW_ATTR_CONST): New define.
3102 (__MINGW_ATTR_MALLOC): New define.
3103 (__MINGW_ATTR_PURE): New define.
3104 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3107 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3109 * include/time.h (__time64_t): Add missing ';'.
3111 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3113 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3114 (struct tm): Protect with _TM_DEFINED.
3116 2004-07-17 Christopher Faylor <cgf@timesys.com>
3118 * Makefile.in (CC): Strip inappropriate include file settings from any
3121 2004-07-15 "dgun" <dgun@umpire.com>
3123 * include/complex.h (conj): Correct typo in prototype.
3125 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3127 * include/math.h: Add pragma GCC system_header.
3129 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3131 * mingwex/complex/carg.c: New file.
3132 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3134 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3136 * Makefile.in (INCLUDES): Temporarily revert previous change.
3137 * mingwex/Makefile,in (INCLUDES): Ditto.
3138 * profile/Makefile,in (INCLUDES): Ditto.
3139 * mingwex/Makefile,in: Drop carg.o dependency.
3141 2004-07-14 Christopher Faylor <cgf@timesys.com>
3143 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3145 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3147 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3149 * mingwex/Makefile,in (INCLUDES): Ditto.
3150 * profile/Makefile,in (INCLUDES): Ditto.
3152 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3154 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3156 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3158 * mingwex/Makefile.in: Ditto.
3159 * profile/Makefile.in: Ditto.
3160 * include/limits.h: Change to new file header preamble.
3161 * include/_mingw.h: Increment minor version for 3.4 release.
3162 * Makefile.in: Ditto.
3164 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3166 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3168 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3170 * include/unistd.h (ftruncate): Add inline definition.
3171 * mingwex/ftruncate.c: New file.
3172 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3174 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3176 * include/time.h: Do not include sys/types.h.
3178 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3180 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3181 (MATH_OBJS): Remove pow,o.
3182 * include/math.h (pow): Declare with _CRTIMP.
3183 Add comment on how to avoid excess precision problems.
3185 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3187 * include/stdio.h (__mingw_fseeko64): Add prototype.
3188 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3189 (__mingw_fwrite): Handle huge files.
3191 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3192 Danny Smith <dannysmith@users.sourceforge.net>
3194 * include/stdio.h (fopen64): Add inline function.
3195 (fseeko64): Add prototype.
3196 (ftello64): Add inline function.
3197 * include/io.h (lseek64): Add inline function.
3198 * include/sys/types (off64_t): Add typedef.
3199 (fpos64_t): Add typedef.
3200 * mingwex/fopen64.c: New file.
3201 * mingwex/fseeko64.c: New file.
3202 * mingwex/ftello64.c: New file.
3203 * mingwex/lseek64.c: New file.
3204 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3205 fseeko.64.c, ftello64.c, lseek64.c.
3206 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3208 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3210 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3212 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3214 * DISCLAIMER: Add words about "free to use".
3215 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3216 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3217 (inst_docdir): New variable.
3219 (FLAGS_TO_PASS): Include inst_docdir.
3220 (install-dirs): Add inst_docdir.
3221 (install): Add loop for INSTDOCS.
3222 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3223 section to CONTRIBUTORS file. Remove RCS tags.
3225 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3227 * mingwex/math/lround.c: Rewrite.
3228 * mingwex/math/lroundf.c: Rewrite.
3229 * mingwex/math/lroundl.c: Rewrite.
3230 * mingwex/math/llround.c: Rewrite.
3231 * mingwex/math/llroundf.c: Rewrite.
3232 * mingwex/math/llroundl.c: Rewrite.
3234 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3236 * CONTRIBUTORS: New file.
3237 * DISCLAIMER: Ditto.
3238 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3239 section to CONTRIBUTORS file. Remove RCS tags.
3240 * CRTFmode.c: Ditto.
3244 * crtdll.dev: Ditto.
3254 * msvcrt.def.in: Ditto.
3255 * strcasecmp.c: Ditto.
3258 * include/assert.h: Ditto.
3259 * include/conio.h: Ditto.
3260 * include/ctype.h: Ditto.
3261 * include/direct.h: Ditto.
3262 * include/dirent.h: Ditto.
3263 * include/dos.h: Ditto.
3264 * include/errno.h: Ditto.
3265 * include/excpt.h: Ditto.
3266 * include/fcntl.h: Ditto.
3267 * include/float.h: Ditto.
3268 * include/io.h: Ditto.
3269 * include/locale.h: Ditto.
3270 * include/malloc.h: Ditto.
3271 * include/math.h: Ditto.
3272 * include/process.h: Ditto.
3273 * include/setjmp.h: Ditto.
3274 * include/share.h: Ditto.
3275 * include/signal.h: Ditto.
3276 * include/stdio.h: Ditto.
3277 * include/stdlib.h: Ditto.
3278 * include/string.h: Ditto.
3279 * include/tchar.h: Ditto.
3280 * include/time.h: Ditto.
3281 * include/wchar.h: Ditto.
3282 * include/sys/locking.h: Ditto.
3283 * include/sys/param.h: Ditto.
3284 * include/sys/stat.h: Ditto.
3285 * include/sys/timeb.h: Ditto.
3286 * include/sys/types.h: Ditto.
3287 * include/sys/utime.h: Ditto.
3288 * mingwex/dirent.c: Ditto.
3290 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3292 * include/_mingw.h: Revert to primary release 3 and increment minor
3294 * Makefile.in (VERSION): Ditto.
3296 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3298 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3299 _fmode if not __MSVCRT__.
3301 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3303 * include/io.h: (_findfirst): Correct prototype.
3305 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3307 * include/io.h: (_findnext, _findclose): Correct prototype.
3309 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3311 * include/math.h (FP_*): Add defines.
3313 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3315 * mingwex/math/round.c: Rewrite.
3316 * mingwex/math/roundf.c: Rewrite.
3317 * mingwex/math/roundl.c: Rewrite.
3319 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3321 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3322 * include/time.h (__time64_t): Add typedef.
3323 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3324 (_ctime64): Likewise.
3325 (_wctime64): Likewise.
3326 (_gmtime64): Likewise.
3327 (_localtime64): Likewise.
3328 (wcsftime): Move into _WTIME_DEFINED block.
3329 Regroup non-ANSI prototypes.
3330 * include/io.h: Include <stdint.h>.
3331 (__finddata64_t): Add struct definition.
3332 (__wfinddata64_t): Likewise.
3333 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3334 (_findnext64): Likewise.
3335 (_wfindfirst64): Likewise.
3336 (_wfindnext64): Likewise.
3337 * include/sys/timeb.h (__timeb64): Add struct definition.
3338 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3339 * include/sys/utime.h (__utimbuf64): Add struct definition.
3340 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3341 (_futime64): Likewise.
3342 (_wutime64): Likewise.
3343 * include/sys/stat.h (__stat64): Add struct definition.
3344 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3345 (_stat64): Likewise.
3346 (_wstat64): Likwise.
3347 * include/sys/types.h (__time64_t): Add typedef.
3348 * include/wchar.h (__wfinddata64_t): Add structure definition.
3349 (__stat64): Likewise.
3350 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3351 (_wfindfirst64): Likewise.
3352 (_wfindnext64): Likewise.
3353 (_wutime64): Likewise.
3354 (_wstat64): Likwise.
3355 * include/malloc.h (_aligned_free): Add prototype for
3356 __MSVCRT_VERSION__ >= 0x0700.
3357 (_aligned_malloc): Likewise.
3358 (_aligned_offset_malloc): Likewise.
3359 (_aligned_offset_realloc): Likewise.
3360 (_aligned_realloc): Likewise.
3361 * include/string.h (_wcserror): Add prototype for
3362 __MSVCRT_VERSION__ >= 0x0700.
3363 (__wcserror): Likewise.
3364 * include/math.h (_set_SSE2_enable): Add prototype for
3365 __MSVCRT_VERSION__ >= 0x0701.
3367 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3369 * include/stdio.h (_fsopen): Add prototype.
3370 * include/tchar.h (_tfsopen): Add defines.
3371 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
3373 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3375 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
3376 msvcr70.dll, and msvcr71.dll.
3377 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
3378 using basename of output def file.
3380 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3382 * include/malloc.h: Remove __STRICT_ANSI__ guard.
3384 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
3386 * include/process.h: Remove the #endif associated with removal of
3387 __STRICT_ANSI__ guard from non-ANSI header.
3389 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3391 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
3392 * include/direct.h: Ditto.
3393 * include/dirent.h: Ditto.
3394 * include/dos.h: Ditto.
3395 * include/excpt.h: Ditto.
3397 * include/io.h: Ditto.
3398 * inlude/mem.h: Ditto.
3399 * include/memory.h: Ditto.
3400 * include/process.h: Ditto.
3401 * inlude/search.h: Ditto.
3402 * include/share.h: Ditto.
3403 * include/unistd.h: Ditto.
3404 * include/sys/fcntl.h: Ditto.
3405 * include/file.h: Ditto.
3406 * include/sys/locking.h: Ditto.
3407 * include/sys/param.h: Ditto.
3408 * include/sys/stat,h
3409 * include/sys/time.h: Ditto.
3410 * include/sys/timeb.h: Ditto.
3411 * include/sys/types.h: Ditto.
3412 * include/sys/unistd.h: Ditto.
3413 * include/sys/utime.h: Ditto.
3415 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
3417 * include/_mingw.h (__UNUSED_PARAM): Define macro.
3418 * include/wchar.h (fwide): Use it.
3421 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3423 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
3424 NetBSD getopt_long.c.
3426 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3428 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
3429 codes and handling of special chars.
3431 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
3433 * include/stdio.h (feof): Add inlined definition.
3436 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3438 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
3439 directly, rather than via scabnl.
3441 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3443 * mingwex/math/powl.c (powl): Return infinity if
3444 extended precision multiplication of x by log2(y)
3447 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3449 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
3450 (__enan_NI16): Fix another one.
3451 (__enan_NBITS): Tidy.
3453 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3455 * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
3456 types. (Thanks to John Maddock for report.)
3458 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
3460 * include/tchar.h (_puttchar): Define.
3462 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
3464 * include/stdio.h:(_fileno): Define macro version after both
3465 fileno and _fileno functions declared.
3467 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
3468 * moldnames.def.in (rmtmp) Add stub.
3470 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
3472 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
3474 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
3476 * include/math.h: Guard ISO C99 additions with __cplusplus
3479 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3481 * include/_mingw.h: Define __attribute__((x)) to nothing
3484 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3486 * include/complex.h: New file.
3487 * mingwex/complex: New directory.
3488 * mingwex/complex/cabs.c: New file.
3489 * mingwex/complex/cacos.c: New file.
3490 * mingwex/complex/cacosh.c: New file.
3491 * mingwex/complex/casin.c: New file.
3492 * mingwex/complex/casinh.c: New file.
3493 * mingwex/complex/catan.c: New file.
3494 * mingwex/complex/catanh.c: New file.
3495 * mingwex/complex/ccos.c: New file.
3496 * mingwex/complex/ccosh.c: New file.
3497 * mingwex/complex/cexp.c: New file.
3498 * mingwex/complex/cimag.c: New file.
3499 * mingwex/complex/clog.c: New file.
3500 * mingwex/complex/cpow.c: New file.
3501 * mingwex/complex/cproj.c: New file.
3502 * mingwex/complex/creal.c: New file.
3503 * mingwex/complex/csin.c: New file.
3504 * mingwex/complex/csinh.c: New file.
3505 * mingwex/complex/csqrt.c: New file.
3506 * mingwex/complex/ctan.c: New file.
3507 * mingwex/complex/ctanh.c: New file.
3508 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3511 (COMPLEX_OBJS): New list of objects.
3512 (LIB_OBJS): Include it in the library.
3514 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3516 * include/math.h (cabs): Remove non-ISO prototype.
3518 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3520 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3521 Use GCC __builtin's if available.
3522 (INFINITY, INFINITYF, INFINITYL): Likewise.
3524 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3526 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3527 beyond approximation limit.
3528 * mingwex/math/sf_erf.c (erff): Likewise.
3530 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3532 * include/stdio.h (getc): Cast result to unsigned char before
3535 (getchar): Likewise.
3536 (putchar): Likewise.
3537 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3539 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3541 * include/_mingw.h: Increment version to 3.2.
3542 * Makefile.in: Ditto.
3544 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3546 * include/sys/types.h: Revert last change.
3548 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3550 * include/sys/types.h (ssize_t): Correct the definition.
3552 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3554 * include/stdio.h (_filbuf): Add prototype.
3555 (_flsbuf): Add prototype.
3556 (getc): Add inline version.
3558 (getchar): Likewise.
3559 (putchar): Likewise.
3561 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3563 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3566 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3568 * include/stdlib.h: Guard non-ISO functions with
3569 !__STRICT_ANSI__, throughout.
3571 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3573 * include/io.h (_fileno): Remove prototype.
3575 (FILENAME_MAX): Define, if needed.
3576 Don't include <stdio.h>.
3577 * include/stdio.h (FILENAME_MAX): Protect against
3579 (_fileno): Define macro implementation.
3582 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3584 * include/inttypes.h: Include _mingw.h.
3586 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3588 * include/_mingw.h (__CRT_INLINE): Define.
3589 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3591 * include/inttypes.h: Likewise.
3592 * include/math.h: Likewise.
3593 * include/stdio.h: Likewise.
3594 * include/stdlib.h: Likewise.
3595 * include/string.h: Likewise.
3596 * include/wchar.h: Likewise.
3597 * include/wctype.h: Likewise.
3599 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3601 * mingwex/dirent.c (_topendir): Allocate enough memory for
3602 DIR struct in UNICODE case too.
3604 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3606 * include/_mingw.h: Increment version to 3.2.
3607 * Makefile.in: Ditto.
3609 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3611 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3613 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3615 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3616 * mingwex/math/truncf.c (truncf): Likewise.
3617 * mingwex/math/truncl.c (truncl): Likewise.
3618 * mingwex/math/modff.c (modff): Likewise.
3619 * mingwex/math/modfl.c (modfl): Likewise.
3621 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3623 * include/search.h: New file.
3624 * include/stdlib.h: Add comment about qsort, bsearch in
3626 * test_headers.c: Include search.h.
3627 * moldname.def.in (lfind, lsearch): Add.
3629 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3631 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
3632 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
3633 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
3635 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3637 * include/_mingw.h (small, hyper): Change to __small and __hyper to
3638 avoid user space name conflicts.
3640 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3642 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
3643 Note: Also added to w32api/include/basetyps.h.
3644 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
3645 Rename to Small (case difference).
3647 2003-06-18 Earnie Boyd <earnie@users.sf.net>
3649 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
3650 * mingwex/dirent.c: Modifications througout to fill d_name array.
3651 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
3652 libmsvcr71, including debug versions.
3653 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
3655 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
3657 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
3658 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
3660 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
3662 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
3664 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
3666 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
3668 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
3669 but still protect inline definition with __STRICT_ANSI__.
3671 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
3673 * string_old.c: Remove, splitting into...
3674 * strcasecmp.c: New file.
3675 * strncasecmp.c: New file.
3676 * wscmpi.c : New file.
3677 * ctype_old.c: Remove, splitting into...
3678 * isascii.c: New file.
3679 * iscsym.c: New file.
3680 * iscsymf.c: New file.
3681 * toascii.c: New file.
3682 * Makefile.in (MOLD_OBJS): Adjust.
3683 (SRCDIST_FILES): Adjust.
3685 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
3687 * include/math.h (fabs) : Remove inline definition.
3691 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3693 * include/_mingw.h: Change version to 3.0
3694 * Makefile.in: Ditto.
3696 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3698 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
3699 * mingwex/configure.in (W32API_INCLUDE): Ditto.
3700 * profile/configure.in (W32API_INCLUDE): Ditto.
3702 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3704 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
3705 of multiply defined symbols if the symbols is defined locally. E.G.:
3706 A local definition of malloc causes this problem.
3707 * configure: Regenerate.
3708 * profile/Makefile.in (W32API_INCLUDE): New variable.
3709 (ALL_CFLAGS): Use W32API_INCLUDE value.
3710 (ALL_CXXFLAGS): Ditto.
3711 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
3712 Thanks to Jeff Bonggren <jbon@users.sf.net>.
3713 * profile/configure.in (W32API_INCLUDE): Set default value.
3714 * profile/configure: Regenerate.
3715 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
3716 (ALL_CFLAGS): Use W32API-INCLUDE value.
3717 (ALL_CXXFLAGS): Ditto.
3718 * mingwex/configure.in (W32API_INCLUDE): Set default value.
3719 * mingwex/configure: Regenerate.
3721 2003-05-05 Earnie Boyd <earnie@users.sf.net>
3723 * Makefile.in (W32API_INCLUDE): New variable.
3724 (ALL_CFLAGS): Use W32API_INCLUDE value.
3725 (ALL_CXXFLAGS): Ditto.
3726 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
3727 (W32API_INCLUDE): Set default value.
3728 * configure: Regenerate.
3730 2003-04-11 Earnie Boyd <earnie@users.sf.net>
3732 * configure.in (LIBM_A): Define for cygwin target.
3733 * configure (LIBM_A): Ditto.
3735 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
3737 * include/time.h (strftime): Remove duplicate declaration.
3739 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3741 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
3743 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3745 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
3746 * mingwex/strtoimax.c (strtoimax): Likewise.
3747 * mingwex/wcstoimax.c (wcstoimax): Likewise.
3748 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
3749 * mingwex/fesentenv.c: Include float.h.
3750 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
3752 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
3754 * mingwex/math/tgammal.c: Likewise.
3756 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3758 * include/utime.h: New file, forwarding to sys/utime.h.
3760 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3762 * include/sys/param.h (MAXPATHLEN): Define.
3764 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3766 * include/tchar.h: Ansi-fy a comment.
3768 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3770 * profile/profile.h (mcount): Use __builtin_return_address
3771 rather than inline __asm statements.
3772 * profile/Makefile.in: Remove special rule for mcount.o
3773 Specify dependencies for mcount.o profil.o gmon.o.
3775 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3777 * include/stdlib.h (qsort): Remove const from first parm.
3778 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
3780 2003-03-03 Christopher Faylor <cgf@redhat.com>
3782 * mingwex/getopt.c: Refresh from NetBSD sources.
3784 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
3786 * mingwex/getopt.c: New file, copied from cygwin srcs.
3787 * include/getopt.h: New file, copied from cygwin srcs.
3788 * include/unistd.h: Include getopt.h.
3789 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
3790 (POSIX_OBJS): Add getopt.o.
3792 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
3794 * include/stdio.h (vscanf): Add prototype.
3800 * include/wchar.h (vwscanf): Add prototype.
3803 * mingwex/snprintf.c: Move to mingwex/stdio.
3804 * mingwex/vsnprintf.c: Ditto.
3805 * mingwex/snwprintf.c: Ditto.
3806 * mingwex/vsnwprintf.c: Ditto.
3807 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
3808 (STDIO_DISTFILES): Add.
3809 (DISTFILES): Adjust.
3810 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
3814 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
3816 * mingwex/stdio: New directory
3817 * mingwex/stdio/vfscanf.c: New file.
3818 * mingwex/stdio/vfwscanf.c: New file.
3819 * mingwex/stdio/vscanf.c: New file.
3820 * mingwex/stdio/vsscanf.c: New file.
3821 * mingwex/stdio/vswscanf.c: New file.
3822 * mingwex/stdio/vwscanf.c: New file.
3824 2003-02-25 Earnie Boyd <earnie@users.sf.net>
3826 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
3827 (libmsvcrt40.a): Ditto.
3829 2003-02-21 Earnie Boyd <earnie@users.sf.net>
3831 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
3833 * Makefile.in (libmsvcrtd.a): Add target library.
3834 (libmoldnamed.a): Ditto.
3835 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
3837 ($(srcdir)): Remove explicit reference for depencies of object targets.
3838 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
3839 msvcrt20.def, msvcrt40.def: Remove.
3840 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
3842 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
3844 * Makefile.in: Make sure libmingwex.a from current build tree is used.
3846 2003-02-14 Christopher Faylor <cgf@redhat.com>
3848 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
3849 ensure -mno-cygwin where appropriate. Filter out -O2.
3851 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
3853 * profile/Makefile.in (mcount.o): Use -O1 optimization
3856 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3858 * include/math.h: Remove _CRTIMP from pow() prototype,
3859 unless __NO_ISOCEXT.
3861 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3863 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
3865 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3867 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
3868 __declspec(dllimport) supported.
3869 (__cdecl): Define if not already defined.
3870 (__stdcall): Likewise.
3871 * include/dirent.h: Qualify fuctions with __cdecl.
3872 * include/fenv.h: Likewise.
3873 * include/inttypes.h: Likewise.
3874 * include/assert.h: Qualify fuctions with __cdecl. Qualify
3875 CRT dll imports with _CRTIMP.
3876 * include/conio.h: Likewise.
3877 * include/ctype.h: Likewise.
3878 * include/direct.h: Likewise.
3879 * include/dos.h: Likewise.
3880 * include/errno.h: Likewise.
3881 * include/float.h: Likewise.
3882 * include/io.h: Likewise.
3883 * include/locale.h: Likewise.
3884 * include/malloc.h: Likewise.
3885 * include/math.h: Likewise.
3886 * include/mbctype.h: Likewise.
3887 * include/mbstring.h: Likewise.
3888 * include/process.h: Likewise.
3889 * include/setjmp.h: Likewise.
3890 * include/signal.h: Likewise.
3891 * include/stdio.h: Likewise.
3892 * include/stdlib.h: Likewise.
3893 * include/string.h: Likewise.
3894 * include/time.h: Likewise.
3895 * include/wchar.h: Likewise.
3896 * include/wctype.h: Likewise.
3897 * include/sys/stat.h: Likewise.
3898 * include/sys/timeb.h: Likewise.
3899 * include/sys/utime.h: Likewise.
3901 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
3902 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
3904 * include/stdio.h (__VALIST): Guard against prior definition.
3906 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3908 * include/_mingw.h: Change version to 3.0
3909 * Makefile.in: Ditto.
3911 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3913 * include/stdlib.h: Make words after #endif a comment.
3915 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3917 * include/locale.h: Include stddef.h for definition of NULL.
3919 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3921 * include/math.h (tgamma): Correct typo in comment.
3923 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3925 * mingwex/mingw-fseek.c (INLINE): Remove define.
3926 (__mingw_is_win9x): Remove static inline function.
3927 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
3929 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3931 * mingwex/math/llround.c: Correct function name and
3932 change return value to long long.
3934 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
3936 * include/ctype.h (__isascii): Don't cast arg to unsigned.
3937 (iswascii): Likewise. Correct mask.
3938 * include/wctype.h (iswascii): Don't cast arg to unsigned.
3941 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
3943 * include/stdlib.h (_osver, _winver, _winmajor,
3944 _winminor): Declare as direct imports from dll if
3945 __DECLSPEC_SUPPORTED.
3947 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
3949 * pseudo-reloc.c (do_pseudo_reloc): Make static.
3950 * pseudo-reloc-list.c: New file.
3951 * crt1.c (_pei386_runtime_relocator): Declare.
3952 (__mingw_CRTStartup): Call it.
3953 * dllcrt1.c (_pei386_runtime_relocator): Declare.
3954 (DllMainCRTStartup): Call it.
3955 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
3958 2003-01-01 Egor Duda <deo@logos-m.ru>
3960 * pseudo-reloc.c: New file.
3962 2002-12-20 Earnie Boyd <earnie@users.sf.net>
3964 * include/_mingw.h: Increment version to 2.4.
3967 2002-12-12 Earnie Boyd <earnie@users.sf.net>
3969 * include/malloc.h (_alloca): Add definition.
3972 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
3974 * mingwex/math/s_erf.c: New file.
3975 * mingwex/math/sf_erf.c: New file.
3976 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3977 (MATH_OBJS): Add new objects.
3978 * include/math.h (erf[f]): Add prototypes.
3979 (erfc[f]): Add prototypes.
3981 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
3983 * include/math.h: Add traditional/XOPEN math constants.
3985 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
3987 * mingwex/math/lgamma.c: New file.
3988 * mingwex/math/lgammaf.c: New file.
3989 * mingwex/math/lgammal.c: New file.
3990 * mingwex/math/tgamma.c: New file.
3991 * mingwex/math/tgammaf.c: New file.
3992 * mingwex/math/tgammal.c: New file.
3993 * mingwex/math/cephes_mconf (polevlf): Add float version.
3995 Define _CEPHES_USE_ERRNO.
3996 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3997 (MATH_OBJS): Add new objects.
3998 * include/math.h (lgamma[fl]): Add prototypes.
3999 (tgamma[fl]): Add prototypes.
4001 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
4003 * mingwex/strtold.c: New file.
4004 * mingwex/wcstold.c: New file.
4005 * mingwex/ldtoa.c: New file.
4006 * mingwex/math/cephes_emath.h: New file.
4007 * mingwex/math/cephes_emath.c: New file.
4008 * mingwex/Makefile.in (DISTFILES): Add new files.
4009 (MATH_DISTFILES): Ditto.
4010 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
4011 (MATH_OBJS): Add cephes_emath.o.
4012 (LIB_OBJS): Add $(STDLIB_OBJS).
4013 * include/stdlib.h (strtold, wcstold): Add prototypes.
4014 * include/wchar.h (wcstold): Add prototype.
4016 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
4018 * include/math.h (sqrt): Remove inline definition.
4019 (sqrtf): Replace inline definition with prototype.
4021 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
4022 argument less than zero.
4023 * mingwex/math/sqrtf.c (sqrtl): Likewise.
4025 2002-10-30 Guido Serassio <serassio@libero.it>
4027 * include/stdio.h (_getmaxstdio): Add prototype.
4028 (_setmaxstdio): Likewise.
4030 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
4032 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
4034 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4036 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
4038 Define WIN32_MEAN_AND_LEAN before including windows.h
4039 * include/stdlib.h (_fmode): Protect declaration as dllimported
4040 variable with __IN_MINGW_RUNTIME.
4042 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4044 * crt1.c: Include stdlib.h.
4046 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4048 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4049 (MINGW_OBJS): Add txtmode.o.
4050 (SRCDIST_FILES): Add txtmode.c binmode.c.
4051 crt1.c: Don't include fcntrl.h, stdlib.h.
4052 (_fmode): Declare, without dllimport attribute.
4053 (__p__fmode): Declare access function for dll's _fmode.
4054 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
4056 * txtmode.c: New file.
4057 * binmode.c: New file.
4058 * samples/fmode/test2.c: New file.
4059 * samples/fmode/jamfile: Add test2.exe target.
4061 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4063 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
4064 macros work with C89.
4065 (INTMAX_C, UINTMAX_C): Likewise.
4067 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4069 * include/string.h (strcasecmp): Make extern __inline__.
4070 (strncasecmp): Likewise.
4071 (wcscmpi): Likewise.
4073 2002-10-08 Heiko Gerdau <hg@technosis.de>
4075 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
4076 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
4079 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4081 * mingwex/math/powil.c: Rename powil to __powil.
4082 * mingwex/math/powl.c: Adjust declaration and call
4083 to __powil. Remove comment on powil.
4084 * mingwex/math/powi.c: New file.
4085 * mingwex/math/powif.c: New file.
4086 * mingwex/math/pow.c: New file.
4087 * mingwex/math/cephes_mconf.h. Add double and float
4088 versions of constants.
4089 (polevl): Add double precision function.
4091 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4093 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4095 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4097 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4098 (_imp____mbcur_max_dll): Likewise.
4100 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4102 * include/fcntl.h (_fmode): Remove declarations and
4103 compatibility defines.
4104 (_setmode, setmode): Remove prototypes.
4105 * include/stdlib (_fmode): Add declarations and
4106 compatibility defines. Change type to int.
4107 * include/io.h (_setmode, setmode): Add prototypes.
4108 * samples/fmode/all.c: Adjust includes.
4109 * samples/fmode/test.c: Likewise.
4110 * crt1.c (_CRT_fmode): Declare as int.
4111 * CRTfmode.c (_CRT_fmode): Likewise.
4113 * include/stdlib: Remove comment about MB_CUR_MAX.
4115 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4117 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4118 (_imp____mbcur_max_dll): Likewise.
4120 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4122 * mingwex/math/files.txt: Remove inadvertantly added file.
4124 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4126 * include/string.h (_strerror): Move into #ifndef
4127 __STRICT_ANSI__ block.
4129 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4131 * include/time.h (__need_NULL): Define before including
4132 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4134 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4136 * include/stdio.h: Correct comment about directory separator.
4138 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4140 * include/sys/time.h (timeval): Add struct definition and
4141 associated macros (copied from w32api/include/winsock.h).
4143 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4145 * include/_mingw.h: Increment version to 2.3.
4148 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4150 * mingwex/fegetenv.c: Change to \n line endings.
4151 * mingwex/vsnprintf.c: Ditto.
4152 * mingwex/vsnwprintf.c: Ditto.
4154 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4156 * mingwex/math/hypotl.c: Replace with version based on cephes
4159 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4161 * include/sys/param.h: Add ENDIAN defines.
4162 * test_headers.c: Include sys/param.h.
4164 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4166 * test_headers.c: Don't include varargs.h.
4167 * Makefile.in (test_headers): Don't use -std=xx
4170 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4172 * include/sys/param.h: New File.
4174 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4176 * include/math.h (asm): Change to __asm__ throughout.
4177 Expose ISO C99 functions if __GLIPCPP__.
4178 (hypotf): Use hypot, not _hypot in stub.
4180 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4182 * include/tchar.h: Ansi-fy another comment.
4184 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4186 * include/tchar.h: Ansi-fy comment.
4188 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4190 * test_headers.c : New file.
4191 * Makefile.in (test_headers): New target, using it,
4192 (SRCDIST_FILES): Distribute it.
4194 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4196 * include/_mingw.h: Increment version to 2.2.
4199 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4201 * include/unistd.h: Add include of process.h.
4203 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4205 * include/stdio.h (_fcloseall): Add prototype.
4207 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4209 * include/tchar.h (_tfdopen): Correct typo.
4211 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4213 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4214 nextafter): Add non-underscored stubs.
4215 * moldname-msvcrt.def: Regenerate.
4216 * moldname-crtdll.def: Regenerate.
4217 * mingwex/math: New directory.
4218 * mingwex/rint.c: Move to mingwex/math.
4219 * mingwex/rintf.c: Ditto.
4220 * mingwex/rintl.c: Ditto.
4221 * mingwex/round.c: Ditto.
4222 * mingwex/roundf.c: Ditto.
4223 * mingwex/roundl.c: Ditto.
4224 * mingwex/rint.c: Ditto.
4225 * mingwex/rintf.c: Ditto.
4226 * mingwex/rintl.c: Ditto.
4227 * mingwex/trunc.c: Ditto.
4228 * mingwex/truncf.c: Ditto.
4229 * mingwex/truncl.c: Ditto.
4230 * mingwex/signbit.c: Ditto.
4231 * mingwex/signbitf.c: Ditto.
4232 * mingwex/signbitl.c: Ditto.
4233 * mingwex/copysignl.S: Ditto.
4234 * mingwex/fdim.c: Ditto.
4235 * mingwex/fdimf.c: Ditto.
4236 * mingwex/fdiml.c: Ditto.
4237 * mingwex/fmin.c: Ditto.
4238 * mingwex/fminf.c: Ditto.
4239 * mingwex/fminl.c: Ditto.
4240 * mingwex/fmax.c: Ditto.
4241 * mingwex/fmaxf.c: Ditto.
4242 * mingwex/fmaxl.c: Ditto.
4243 * mingwex/fma.c: Ditto.
4244 * mingwex/fmaf.c: Ditto.
4245 * mingwex/fmal.c: Ditto.
4246 * mingwex/fpclassify.c: Ditto.
4247 * mingwex/fpclassifyl.c: Ditto.
4248 * mingwex/fpclassifyl.c: Ditto.
4249 * mingwex/isnan.c: Ditto.
4250 * mingwex/isnanf.c: Ditto.
4251 * mingwex/isnanl.c: Ditto.
4252 * mingwex/fucom.c: Ditto.
4253 * mingwex/fp_consts.c: Ditto. Split out float and long double
4255 * mingwex/math_stubs.c: Remove.
4256 * mingwex/log2.c: Remove. Replaced by math/log2.S
4257 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4258 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4259 * mingwex/math/acosf.c : New file.
4260 * mingwex/math/acosl.c: New file.
4261 * mingwex/math/asinf.c: New file.
4262 * mingwex/math/asinl.c: New file.
4263 * mingwex/math/atan2f.c: New file.
4264 * mingwex/math/atan2l.c: New file.
4265 * mingwex/math/atanf.c: New file.
4266 * mingwex/math/atanl.c: New file.
4267 * mingwex/math/cbrt.c: New file.
4268 * mingwex/math/cbrtf.c: New file.
4269 * mingwex/math/cbrtl.c: New file.
4270 * mingwex/math/ceilf.S: New file.
4271 * mingwex/math/ceill.S: New file.
4272 * mingwex/math/cephes_ld.h: New file.
4273 * mingwex/math/copysign.S: New file.
4274 * mingwex/math/copysignf.S: New file.
4275 * mingwex/math/cosf.S: New file.
4276 * mingwex/math/coshf.c: New file.
4277 * mingwex/math/coshl.c: New file.
4278 * mingwex/math/cosl.S: New file.
4279 * mingwex/math/exp2.S: New file.
4280 * mingwex/math/exp2f.S: New file.
4281 * mingwex/math/exp2l.S: New file.
4282 * mingwex/math/expf.c: New file.
4283 * mingwex/math/expl.c: New file.
4284 * mingwex/math/fabs.c: New file.
4285 * mingwex/math/fabsf.c: New file.
4286 * mingwex/math/fabsl.c: New file.
4287 * mingwex/math/floorf.S: New file.
4288 * mingwex/math/floorl.S: New file.
4289 * mingwex/math/fmodf.c: New file.
4290 * mingwex/math/fmodl.c: New file.
4291 * mingwex/math/fp_consts.h: Ditto.
4292 * mingwex/math/fp_constsf.c: Ditto.
4293 * mingwex/math/fp_constsl.c: Ditto.
4294 * mingwex/math/frexpf.c: New file.
4295 * mingwex/math/frexpl.S: New file.
4296 * mingwex/math/hypotf.c: New file.
4297 * mingwex/math/hypotl.c: New file.
4298 * mingwex/math/ilogb.S: New file.
4299 * mingwex/math/ilogbf.S: New file.
4300 * mingwex/math/ilogbl.S: New file.
4301 * mingwex/math/ldexpf.c: New file.
4302 * mingwex/math/ldexpl.c: New file.
4303 * mingwex/math/llrint.c: New file.
4304 * mingwex/math/llrintf.c: New file.
4305 * mingwex/math/llrintl.c: New file.
4306 * mingwex/math/llround.c: New file.
4307 * mingwex/math/llroundf.c: New file.
4308 * mingwex/math/llroundl.c: New file.
4309 * mingwex/math/log10f.S: New file.
4310 * mingwex/math/log10l.S: New file.
4311 * mingwex/math/log1p.S: New file.
4312 * mingwex/math/log1pf.S: New file.
4313 * mingwex/math/log1pl.S: New file.
4314 * mingwex/math/log2.S: New file.
4315 * mingwex/math/log2f.S: New file.
4316 * mingwex/math/log2l.S: New file.
4317 * mingwex/math/logb.c: New file.
4318 * mingwex/math/logbf.c: New file.
4319 * mingwex/math/logbl.c: New file.
4320 * mingwex/math/logf.S: New file.
4321 * mingwex/math/logl.S: New file.
4322 * mingwex/math/lrint.c: New file.
4323 * mingwex/math/lrintf.c: New file.
4324 * mingwex/math/lrintl.c: New file.
4325 * mingwex/math/lround.c: New file.
4326 * mingwex/math/lroundf.c: New file.
4327 * mingwex/math/lroundl.c: New file.
4328 * mingwex/math/modff.c: New file.
4329 * mingwex/math/modfl.c: New file.
4330 * mingwex/math/nearbyint.S: New file.
4331 * mingwex/math/nearbyintf.S: New file.
4332 * mingwex/math/nearbyintl.S: New file.
4333 * mingwex/math/nextafterf.c: New file.
4334 * mingwex/math/powf.c: New file.
4335 * mingwex/math/powl.c: New file.
4336 * mingwex/math/powil.c: New file.
4337 * mingwex/math/remainder.S: New file.
4338 * mingwex/math/remainderf.S: New file.
4339 * mingwex/math/remainderl.S: New file.
4340 * mingwex/math/remquo.S: New file.
4341 * mingwex/math/remquof.S: New file.
4342 * mingwex/math/remquol.S: New file.
4343 * mingwex/math/scalbn.S: New file.
4344 * mingwex/math/scalbnf.S: New file.
4345 * mingwex/math/scalbnl.S: New file.
4346 * mingwex/math/sinf.S: New file.
4347 * mingwex/math/sinhf.c: New file.
4348 * mingwex/math/sinhl.c: New file.
4349 * mingwex/math/sinl.S: New file.
4350 * mingwex/math/sqrt.c: New file.
4351 * mingwex/math/sqrtf.c: New file.
4352 * mingwex/math/sqrtl.c: New file.
4353 * mingwex/math/tanf.S: New file.
4354 * mingwex/math/tanhf.c: New file.
4355 * mingwex/math/tanhl.c: New file.
4356 * mingwex/math/tanl.S: New file.
4357 * mingwex/Makefile.in: Adjust VPATH for source files in
4360 Add MATH_DISTFILES and use it to build source distro.
4361 * include/math.h: Add protypes for new functions and
4362 reorganise to reflect ANSI,C99 status.
4364 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
4366 * include/tchar.h (_getts): Define as _getws for _UNICODE.
4367 (_putts): Define as _putws for _UNICODE.
4368 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
4370 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
4372 * include/float.h: #include_next<float.h> before header guard.
4374 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
4376 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
4378 * include/excpt.h (): Include windef.h not windows.h.
4379 * include/fcntl.h (_O_SHORT_LIVED): Add define.
4380 (_chmod): Add prototype.
4381 (_creat): Correct prototype.
4382 (SH_DENY*): Rename defines to _SH_DENY*.
4383 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
4384 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
4385 _IOAPPEND): Add defines.
4386 (_wfindfirst): Correct prototype.
4387 (_wfdopen): Add prototype.
4388 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
4390 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
4392 (_wcsdup): Correct prototype.
4393 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
4394 _mbsncat being in string.h.
4395 * include/wchar.h (_wfindfirst): Correct prototype.
4396 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
4398 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4400 * include/_mingw.h: Increment to version 2.1.
4401 * Makefile.in: Ditto.
4403 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4405 * Makefile.in (conf_prefix): New variable.
4406 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
4407 (bindist): Use dist_prefix.
4409 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
4411 * include/_mingw.h: Increment version to 2.0.
4412 * Makefile.in: Ditto.
4414 Merge in mingwex branch.
4416 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
4418 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
4419 * mingwex/fdim.c: New file.
4420 * mingwex/fdimf.c: New file.
4421 * mingwex/fdiml.c: New file.
4422 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
4424 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
4426 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
4428 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
4430 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
4432 * mingwex/isnanl.c: New file.
4434 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4436 * include/stdint.h: Include stddef.h to get
4438 (WINT_MAX): Define to ((wint_t)-1).
4440 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4442 * include/wctype.h: Replace 'inline' with '__inline__'.
4443 * include/inttypes.h: Likewise.
4445 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4447 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
4448 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
4450 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4452 * mingwex/snprintf.c: Split out vsnprintf to....
4453 * mingwex/vsnprintf.c: New file.
4454 * mingwex/snwprintf.c: Split out vsnwprintf to...
4455 * mingwex/vsnwprintf.c: New file.
4456 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
4458 2002-05-15 Pascal Obry <obry@gnat.com>
4460 * include/dirent.h (DIR): Change dd_stat type to int.
4463 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
4465 * include/stdio.h (vsnprintf): Change inline to __inline__;
4466 (vsnwprintf): Likewise.
4467 * include/wchar.h (vsnwprintf): Likewise.
4470 (mbsinit): Likewise.
4472 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
4474 Change FP default precison from 53 to 64-bit mantissa.
4476 * Makefile.in (CRT0S): Add CRT_fp8.o.
4477 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
4478 * include/float.h: Replace standard float.h defines with
4479 #include_next<float.h> to use GCC's defines. Adjust comments
4482 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4484 * include/dos.h: Change prefix "__imp_" to "_imp__" for
4485 __GNUC__ without __DECLSPEC_SUPPORTED.
4486 * include/fnctl.h: Likewise.
4487 * include/math.h: Likewise.
4488 * include/stdio.h: Likewise.
4489 * include/stdlib.h: Likewise.
4490 * include/time.h: Likewise.
4491 * include/wctype.h: Likewise.
4492 * include/ctype.h: Likewise.
4494 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4496 Add atexit support for dlls.
4497 * crt1.c (atexit): Force thunk to _imp__atexit.
4498 (_onexit): Force thunk to _imp___onexit.
4499 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4500 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4501 (__dll_exit): New function to run atexit-registered functions
4502 and flush output buffers on DLL_PROCESS_DETACH or failed
4504 (atexit): Force use of private atexit table via _dllonexit,
4505 (_onexit): New function. Force use of private atexit table via
4507 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4508 _imp_<_symbol> is visible in import lib.
4509 * msvcrt20.def: Likewise.
4510 * msvcrt40.def: Likewise.
4511 * crtdll.def: Likewise.
4513 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4515 * include/fenv.h: Change header guard macro to _FENV_H_.
4516 (fenv_t, fexcept_t): Move into block protected by
4518 Cleanup some whitespace.
4519 * include/inttypes.h: Change header guard macro to
4522 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4524 * include/math.h (copysignl): Declare.
4525 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4526 (MATHOBJS):Add copysignl.o.
4528 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4530 * include/math.h (__signbitl, __isnanl): Declare.
4532 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4534 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4535 roundl, truncl, fmal, log2l): Declare.
4536 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4537 || !defined __STRICT_ANSI__.
4538 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4539 * mingwex/fmin.c (fmin): Likewise.
4540 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4541 * mingwex/fminf.c (fminf): Likewise.
4542 * mingwex/fmaxl.c: New file.
4543 * mingwex/fminl.c: New file.
4544 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4545 * mingwex/fpclassifyf.c: New file.
4546 * mingwex/fpclassifyl.c: New file.
4547 * mingwex/rint.c (rintf): Split out to...
4548 * mingwex/rintf.c: New file.
4549 * mingwex/rintl.c: New file.
4550 * mingwex/round.c (roundf): Split out to...
4551 * mingwex/roundf.c: New file.
4552 * mingwex/roundl.c: New file.
4553 * mingwex/trunc.c (truncf): Split out to...
4554 * mingwex/truncf.c: New file.
4555 * mingwex/truncl.c: New file.
4556 * mingwex/signbit.c (signbitf): Split out to...
4557 * mingwex/signbitf.c: New file.
4558 * mingwex/signbitl.c: New file.
4559 * mingwex/fmal.c: New file.
4560 * mingwex/copysignl.S: New file.
4561 * mingwex/log2l.c: New file.
4562 * mingwex/fp_consts.c: Add nanl definition.
4563 Comment out unused constants.
4564 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4565 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4566 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4568 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4569 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4570 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4572 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4574 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4576 Make wide char versions of opendir and friends.
4578 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4580 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4581 _wseekdir): Add prototypes for wide versions of corresponding
4583 * include/tchar.h; Add _UNICODE mappings for dirent.h
4584 structures and functions.
4585 * mingwex/dirent.c: Make _UNICODE neutral.
4586 * mingwex/wdirent.c: New file to define _UNICODE before
4588 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4589 (POSIX_OBJS): Add wdirent.o.
4590 (wdirent.o): Specify dependency on dirent.c as well as
4592 * samples/dirent/wtest.c: New file, wide version of test.c.
4594 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4596 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4597 ensure gcc include dir is searched despite -nostdinc.
4598 * profile/Makefile.in (INCLUDES): Likewise.
4599 * mingwex/Makefile.in (INCLUDES): Likewise.
4600 * include/stdarg.h: Replace with stub that just guards the
4601 real gcc system header with #ifndef RC_INVOKED
4602 * include/varargs.h: Likewise.
4603 * include/stddef.h: Likewise.
4604 * include/stdio.h: Include stdarg.h after defining
4606 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4607 Replace va_list with __VALIST throughout.
4609 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4611 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4612 * msvcrt.def (_fpreset): Mark as DATA so that only
4613 _imp___fpreset is exported.
4614 * msvcrt20.def (_fpreset): Likewise.
4615 * msvcrt40.def (_fpreset): Likewise.
4616 * crtdll.def (_fpreset): Likewise.
4617 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4619 (fpreset): Add alias.
4620 (__CRT_PC): Delete definition. _fpreset does it now.
4621 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4622 (fpreset): Add alias.
4623 (__CRT_PC): Delete definition.
4624 * moldname.def.in: Comment out fpreset.
4625 * moldname-msvcrt.def: Regenerate.
4626 * moldname-crtdll.def: Regenerate.
4627 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4628 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
4629 with the _fpreset determined by startup CRT_fp object.
4631 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
4633 * CRT_fp8.c: New file.
4634 * CRT_fp10.c: New file.
4635 * crt1.c (__CRT_PC) Declare.
4636 (__CRT_fesetenv): New static function, using _CRT_PC.
4637 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
4638 (_gnu_exception_handler): Likewise.
4639 * Makefile.in (CRT0S): Add CRT_fp10.o.
4640 (MINGW_OBJS): Add CRT_fp8.o.
4641 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
4642 Add CRT_fp8.o, CRT_fp10.o dependancies.
4643 * include/float.h (_fpreset): Expand comment.
4644 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
4645 (extended precison) environmemt.
4646 (FE_PC53_ENV): New define for MSVCRT default environmemt.
4647 (FE_DFL_ENV): Define as FE_PC53_ENV.
4648 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
4649 precision control for default environment.
4651 * include/math.h: Fix long comment line.
4652 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
4654 * profile/configure: Regenerate.
4656 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
4658 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
4660 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
4662 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
4663 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
4664 (__mingw_fseek): New function to work around Win9x f/lseek bug.
4665 (__mingw_fwrite): Likewise.
4666 (__mingw_is_win9x): New helper function.
4668 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
4669 (__mingw_fseek): New prototype and define to replace fseek.
4670 (__mingw_fwrite): New prototype and define to replace fwrite.
4671 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
4672 * moldname-crtdll.def: Remove CR from end of line.
4673 * moldname-msvcrt.def: Ditto.
4675 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
4677 * profile/configure.in (CRT0S): Configure name of gcrt?.o
4678 based on target, building gcrt0.o for cygwin -mno-cygwin.
4679 * profile/configure: Regenerate.
4680 * profile/Makefile.in (CRT0S): Use name from configure.
4681 (gcrt0.o): New rule.
4682 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
4684 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4686 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
4687 _fpecode): Remove prototypes copied from float.h.
4688 (nan, nanf): Move into block protected against RC_INVOKED
4690 * include/stdlib.h (_Exit): Change from static inline to
4692 * mingwex/_Exit.c : New file.
4693 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
4695 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4697 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
4698 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
4699 (configdirs): Likewise.
4700 (LIBGMON_A): Define for cygwin target as well.
4701 * configure: Regenerate.
4702 * profile/configure.in (THREAD_DLL): Remove define.
4703 (LIBM_A): Remove define.
4704 (LIBGMON_A): Define for cygwin target as well.
4705 * profile/configure: Regenerate.
4706 * profile/makefile.in (install): Install to inst_libdir and
4708 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
4709 (OPTFLAGS): New define.
4710 (ALL_CFLAGS): Add $(OPTFLAGS).
4711 (ALL_CXXFLAGS): Same.
4712 (.c.o:): Remove ALL_CXXFLAGS.
4714 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4716 * include/stdint.h: Add missing newline at eof.
4717 * include/stdio.h (snprintf): Add prototype.
4718 (vsnprintf): Add prototype and inline definition.
4719 (snwprintf): Add prototype.
4720 (vsnwprintf): Add prototype and inline definition.
4721 * include/wchar.h (snwprintf): Add prototype.
4722 (vsnwprintf): Add prototype and inline definition.
4723 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
4725 * mingwex/snprintf.c: New file.
4726 * mingwex/snwprintf.c: New file.
4728 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
4730 * configure.in: Add mingwex as SUBDIRS and configdirs.
4731 * configure: Regenerate.
4732 * Makefile.in (MINGW_OBJS): Remove dirent.o.
4733 (SRC_DIST_FILES): Remove dirent.c.
4735 * include/stdlib.h (_Exit): Add static inline
4737 (struct lldiv_t): Define.
4738 (lldiv): Add prototype.
4739 (llabs): Add extern inline function.
4740 (strtoll,strtoull): Add prototypes.
4741 (wcstol, wcstoul, wcstod): Group together.
4742 (strtof, wcstof): Add extern inline definitions.
4743 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
4744 and extern inline definitions.
4745 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
4746 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
4748 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
4749 (wcstof): Add extern inline definition.
4750 * include/math.h (nan, nanf): Add prototypes.
4751 (NAN, INFINITE): Define constants.
4752 (fpclassify, isnan ,signbit): Add macros and supporting float
4753 and double functions.
4754 (isfinite, isinf, isnormal): Add macros.
4755 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
4757 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
4758 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
4759 (copysign, logb, nextafter, scalb): Add prototypes and
4760 inline stubs for underscored versions in msvcrt.dll.
4761 * include/inttypes.h: New file.
4762 * include/fenv.h: New file
4764 Add new mingwex subdir and files.
4765 * mingwex: New directory.
4766 * mingwex/Makefile.in: New file.
4767 * mingwex/configure.in: New file.
4768 * mingwex/configure: Generate.
4769 * mingwex/dirent.c: Moved here from parent dir.
4770 * mingwex/atoll.c: New file.
4771 * mingwex/feclearexcept.c: New file.
4772 * mingwex/fegetenv.c: New file.
4773 * mingwex/fegetexceptflag.c: New file.
4774 * mingwex/fegetround.c: New file.
4775 * mingwex/feholdexcept.c: New file.
4776 * mingwex/feraiseexcept.c: New file.
4777 * mingwex/fesetenv.c: New file.
4778 * mingwex/fesetexceptflag.c: New file.
4779 * mingwex/fesetround.o: New file.
4780 * mingwex/fetestexcept.c: New file.
4781 * mingwex/feupdateenv.c: New file.
4782 * mingwex/fma.S: New file.
4783 * mingwex/fmaf.S: New file.
4784 * mingwex/fmax.c: New file.
4785 * mingwex/fmaxf.c: New file.
4786 * mingwex/fmin.c: New file.
4787 * mingwex/fminf.c: New file.
4788 * mingwex/fp_consts.c: New file.
4789 * mingwex/fpclassify.c: New file.
4790 * mingwex/fucom.c: New file.
4791 * mingwex/fwide.c: New file.
4792 * mingwex/imaxabs.c: New file.
4793 * mingwex/imaxdiv.c: New file.
4794 * mingwex/isnan.c: New file.
4795 * mingwex/isnanf.c: New file.
4796 * mingwex/lltoa.c: New file.
4797 * mingwex/lltow.c: New file.
4798 * mingwex/log2.c: New file.
4799 * mingwex/log2f.c: New file.
4800 * mingwex/math_stubs.c: New file.
4801 * mingwex/mbsinit.c: New file.
4802 * mingwex/rint.c: New file.
4803 * mingwex/round.c: New file.
4804 * mingwex/signbit.c: New file.
4805 * mingwex/sitest.c: New file.
4806 * mingwex/strtof.c: New file.
4807 * mingwex/strtoimax.c: New file.
4808 * mingwex/strtoumax.c: New file.
4809 * mingwex/testwmem.c: New file.
4810 * mingwex/trunc.c: New file.
4811 * mingwex/ulltoa.c: New file.
4812 * mingwex/ulltow.c: New file.
4813 * mingwex/wcstof.c: New file.
4814 * mingwex/wcstoimax.c: New file.
4815 * mingwex/wcstoumax.c: New file.
4816 * mingwex/wmemchr.c: New file.
4817 * mingwex/wmemcmp.c: New file.
4818 * mingwex/wmemcpy.c: New file.
4819 * mingwex/wmemmove.c: New file.
4820 * mingwex/wmemset.c: New file.
4821 * mingwex/wtoll.c: New file.
4823 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4825 * include/mbstring.h: New file.
4826 * include/mbctype.h: New file.
4828 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4830 * include/tchar.h (__TEXT): Make same as define in
4831 w32api/include/winnt.h.
4833 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4835 * include/tchar.h (_tputenv): Add UNICODE mappings.
4836 (_tsearchenv): Likewise.
4837 (_tmakepath): Likewise.
4838 (_tsplitpath): Likewise.
4839 (_tfullpath): Likewise.
4841 2002-04-18 Pascal Obry <obry@gnat.com>
4843 * dirent.c (opendir): Convert given pathname to
4846 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4848 * include/_mingw.h: Increment version.
4849 * Makefile.in: Ditto.
4851 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4853 * moldname-crtdll.def: Remove CR from end of line.
4854 * moldname-msvcrt.def: Ditto.
4855 * Makefile.in: Use bzip2 compression for Cygwin target.
4857 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
4859 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
4860 TLOSS, PLOSS): Move oldname defines back, following
4861 the underscored names.
4863 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
4865 * include/stdio.h (_snwprintf): Correct spelling.
4866 (_vsnwprintf): Likewise.
4867 * include/wchar.h (_snwprintf): Correct spelling.
4868 (_vsnwprintf): Likewise.
4870 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
4872 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
4873 (wpopen): Add if !(__CRTDLL__).
4874 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
4876 (moldname-crtdll.def rule): Likewise.
4877 * moldname-msvcrt.def: Regenerate.
4878 * moldname-crtdll.def: Regenerate.
4879 * include/stdio.h (wpopen):Use prototype, not a define.
4880 (_swnprintf): Add prototype.
4881 (_vswnprintf): Likewise.
4883 * include/wchar.h (_swnprintf): Add prototype.
4884 (_vswnprintf): Likewise.
4887 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
4889 * include/malloc.h (_heapinfo): Correct structure definition.
4890 (_USEDENTRY,_FREEENTRY): Add defines.
4891 Add comment on platform support for _heap* functions.
4892 (_get_sbh_threshold): Add prototype.
4893 (_set_sbh_threshold): Likewise.
4894 (_expand): Likewise.
4896 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4898 * profile/profil.c: Update copyright info.
4899 * profile/profil.h: Likewise.
4900 * profile/gcrt0.c: Likewise.
4902 2002-01-25 Pascal Obry <obry@gnat.com>
4904 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
4906 * profile/gmon.c: Define bzero as memset if mingw32.
4907 (monstartup): Use it.
4909 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4911 * include/tchar.h (_TCHAR): Add missing ;.
4913 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4915 * include/tchar.h (_TCHAR): Add typedefs.
4917 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4919 * include/stdlib.h (_onexit_t): Add typedef.
4920 (_onexit): Add prototype.
4922 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
4924 * msvcrt.def: Revert accidental change.
4925 * include/stdlib.h: Ditto.
4927 2001-12-07 Earnie Boyd <earnie@users.sf.net>
4929 * Makefile.in: Increment VERSION.
4930 * include/_mingw.h: Ditto.
4932 2001-12-05 Earnie Boyd <earnie@users.sf.net>
4934 * include/strings.h: New File.
4936 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
4938 * include/math.h (_FPCLASS* ): Add defines from float.h.
4939 (IEEE recommended functions): Add declarations from float.h.
4940 * include/float.h (_FPCLASS* ): Protect against redefinition.
4942 2001-11-29 Wu Yongwei <adah@netstd.com>
4944 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
4945 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
4946 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
4947 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
4948 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
4949 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
4950 Correct spelling of "disclaimed" in comments.
4951 * include/excpt.h: Another spelling correction.
4953 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
4955 * include/errno.h: Fix "errno is not a prototype" warning.
4957 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
4959 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
4960 differences between ANSI and non-ANSI versions.
4961 (_ctype[],_pctype): Declare vars.
4962 (__ISCTYPE): New helper macro using _pctype.
4963 (is* ctype functions): Use __ISCTYPE to define inline versions.
4964 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
4966 (isw* ctype functions): Inline definitions.
4967 * include/wctype.h (_ctype[],_pctype): Declare vars.
4968 (isw* ctype functions): Inline definitions.
4971 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4973 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
4974 __fpecode): Use __STDC__ prototypes.
4977 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
4979 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
4980 * mthr_init.c (DllMain) Run dtors if a process terminates.
4981 * mthr.c (__mingwthr_add_key_dtor) Removed.
4982 (___mingwthr_add_key_dtor) New.
4983 (___mingwthr_remove_key_dtor) New.
4984 (__mingwthr_run_key_dtors) Complete rewrite.
4985 (__mingwthr_remove_key_dtor) New.
4987 2001-11-05 Egor Duda <deo@logos-m.ru>
4989 * Makefile.in: Delete unused executable after creating base-files.
4991 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4993 * include/errno.h (_errno): Use __STDC__ prototype.
4994 Thanks to: Jim Barton.
4996 2001-11-04 "stefan" <stefan@lkcc.org>
4998 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
5000 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5002 * include/io.h (_commit): Add declaration.
5003 Thanks to: "stefan" <stefan@lkcc.org>
5005 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5007 * include/sys/stat.h: Make S_IS* macros safer.
5009 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
5011 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
5013 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5015 * include/stdlib.h (__p__environ, __p__wenviron): Use
5016 __STDC__ prototypes.
5018 2001-09-19 Earnie Boyd <earnie@SF.net>
5020 * Makefile.in: Remove the /usr from the install target.
5021 (VERSION): Increment.
5022 include/_mingw.h: Ditto.
5024 2001-09-17 Earnie Boyd <earnie@SF.net>
5026 * Makefile.in: Increment version.
5027 * include/_mingw.h: Ditto.
5029 2001-09-10 Earnie Boyd <earnie@SF.net>
5031 * dossh: Remove inadvertantly imported file.
5033 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5035 * dirent.c (opendir): Use GetFileAttributes rather than stat
5036 to determine if input arg is dir.
5038 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
5040 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5042 * include/varargs.h (va_list): Ditto.
5043 * include/stdio.h (va_list): Ditto.
5045 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5047 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5048 * include/stdio.h (_IORW): Change constant to 0x0080.
5049 (TMP_MAX): Add new define.
5051 (_wP_tmpdir): Ditto.
5052 (L_tmpnam): Change constant to 16.
5054 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
5056 * include/malloc.h: Fix non-ANSI comment after #endif.
5058 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5060 * profile/configure.in: Make msvcrt.dll version default.
5061 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
5062 * provile/configure: Regenerate.
5064 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
5066 * include/stdio.h (swscanf): Make first arugument const.
5067 * include/wchar.h (swscanf): Ditto.
5068 * include/tchar.h (_tfopen): New _UNICODE define.
5070 (_tsetlocale): Ditto.
5072 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5074 * profile/Makefile.in (mkinstalldirs): Correct relative path.
5076 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5078 * include/_mingw.h: Change version to 1.0.
5081 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
5083 * include/tchar.h: (__TEXT): Remove undef.
5087 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5089 * include/tchar.h: (__TEXT): Add private macro.
5090 (_TEXT): Modify definition to use __TEXT.
5092 This change allows the passing of a MACRO as an argument and have that
5093 MACRO resolved first.
5094 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5096 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5098 * Makefile.in: Increment version to 0.5
5099 * include/_mingw.h: Increment minor version
5101 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5103 * include/assert.h: (assert): Remove ; from end of definition
5104 Thanks to: AJ Reins <tbisp@qwest.net>
5106 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5108 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5109 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5111 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5113 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5115 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5117 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5118 are actually C functions. These functions are resolved via the
5119 -lmsvcp60 library and comments were placed in the header.
5121 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5123 * include/stdlib.h (__p__pgmptr): add prototype.
5124 (__p__wpgmptr): likewise.
5125 (_pgmptr_dll): move declaration from dos.h.
5126 (_wpgmptr_dll): likewise.
5127 (_pgmptr): conditional define (MSVCT/CRTDLL).
5128 (_wpgmptr): likewise.
5129 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5130 (_os*_dll variables): likewise.
5131 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5132 (_wpgmptr_dll): likewise.
5134 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5136 * include/stdint.h: New file.
5138 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5140 * include/wchar.h: Protect prototypes only declared in the C++ STL
5141 from being declared unless __cplusplus is defined.
5143 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5145 * include/stdlib.h: Apply Danny Smith patch 102730
5146 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5147 (_wgetenv) Correction to return type.
5149 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5151 * include/locale.h: Apply Danny Smith patch 101834
5152 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5153 (LC_MIN) Add definition.
5155 (_wsetlocale) Add prototype.
5157 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5159 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5160 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5161 Create a libcoldname.a for the oldname library for CRTDLL.
5162 Restrict libmoldname.a for the oldname library for MSVCRT.
5163 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5164 Restructure the $target_os case logic.
5165 Always name the MinGW thread dll helper mingwm.
5166 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5167 * configure: regenerate.
5169 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5171 * Makefile.in: Fix bindist target to distribute the correct files.
5172 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5173 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5175 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5177 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5178 Add variables and targets to control binary and source distributions.
5179 Add variables and targets to control snapshot distribution.
5180 * profile/gmon.h: Add missing #endif for #ifndef.
5181 * profile/ChangeLog: Merge entries here and remove.
5182 * profile/Makefile.in: Add variables and targets to control
5186 * config.guess: ditto.
5187 * config.sub: ditto.
5188 * mkinstalldirs: ditto.
5189 * install-sh: ditto.
5190 * configure: regenerate.
5191 * profile/configure: ditto.
5193 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5195 * Merge in changes from
5196 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5197 * include/direct.h: add guard around MSVCRT-only prototytpes
5198 * include/io.h: add __int64 struct definitions and function prototypes;
5199 add guard for MSVCRT-only prototypes
5200 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5201 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5202 put wchar functions together to make sync with wchar.h easier
5203 * include/stdlib.h: add wide char functions (__MSVCRT__)
5204 * include/string.h: add string collation functions ( __MSVCRT__)
5205 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5206 * include/tchar.h: add macros and macro function definitions
5207 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5208 enclose more functions in __MSVCRT__ guard;
5209 some oldname wide char function prototypes #if (0)'d
5210 * profile/gmon.h: add guard around BSD-ish typedefs
5212 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5214 * Makefile.in: Use a different variable name for subdirectory since the
5215 previous one was used by the top level make.
5217 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5219 * Makefile.in: Install mingw stuff in a subdirectory if building under
5222 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5224 * Makefile.in (subdirs): Eliminate for loop.
5226 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5228 * Makefile.in (subdirs): Previous change did not fix problem in
5231 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5233 * Makefile.in: Avoid installing dll if we're cross building and the
5234 cross-host system isn't a Windows system.
5235 * configure.in: Detect cross-hosting situation and set appropriate
5236 variables in Makefile.in.
5237 * configure: Regenerate.
5239 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5241 * configure.in: Change HEADER_SUBDIR to mingw32.
5242 * configure: Regenerate.
5244 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5246 * include/string.h: Use proper prototype for _strerror.
5248 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5250 * Makefile.in (subdirs): Workaround for broken shells.
5252 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5254 * Snapshot 2000-02-03.
5256 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5257 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5258 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5259 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5262 * Makefile.in (all): Build CRT0S first.
5263 (libmingwthrd.a): Remove thread support DLL from dependency.
5265 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5267 * Snapshot 2000-01-21.
5269 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5271 Merge in changes from Cygwin:
5272 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5273 (SUBDIRS): Likewise.
5274 * Makefile.in (HEADER_SUBDIRS): New variable.
5275 (install): Use to install Mingw headers to a subdirectory if building
5277 (DLL_CC_STUFF): Add DLL entry point.
5278 * configure: Regenerate.
5280 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5282 * include/stdio.h (fsetpos): Fix prototype.
5283 (fpos_t): Fix for MSVCRT.
5284 * include/float.h (fpreset): Add prototype.
5285 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5287 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5288 export using libmoldname.a.
5289 * crtdll.def: Add DATA tags.
5290 * msvcrt.def: Likewise.
5291 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5292 both MSVCRT and CRTDLL.
5293 * moldname-crtdll.def: Regenerate.
5294 * moldname-msvcrt.def: Regenerate.
5296 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5298 * Snapshot 1999-12-21.
5300 * include/wctype.h: New file.
5301 * include/ctype.h (MB_CUR_MAX): Define.
5303 * include/stdlib.h (MB_CUR_MAX): Define.
5304 * include/wchar.h: Define stat, _stat structures here as well.
5305 * include/float.h: Add invalid subconditions (_SW) and floating
5306 point error (_FPE) macros.
5307 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5308 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5309 * include/sys/types.h: Likewise.
5311 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5313 * profile/profil.c (profile_on): Set the profiler thread priority to
5314 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5315 * Snapshot 1999-11-18.
5317 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5319 Released 1999-11-07.
5321 * Makefile.in (CRT0S): Add crtst.o.
5322 (install): Install in subdirs as well.
5323 * dirent.h (struct _stat): Rename from struct stat.
5324 * include/tchar.h: Add some new macros. Thanks to
5325 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5326 * profile/Makefile.in (install): Fix target.
5328 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5330 * Makefile.in: Add support for profile directory.
5331 * configure.in: Likewise.
5332 * configure: Regenerate.
5334 * profile: Imported profiling sources from winsup-19991026 snapshot.
5335 * profile/Makefile.in: New file.
5336 * profile/configure.in: New file.
5337 * profile/configure: Generate.
5338 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5339 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5340 * profile/gmon.c (unistd.h): Include conditionally.
5341 (sys/param.h): Likewise.
5342 * profile/mcount.c (sys/param.h): Likewise.
5343 * profile/profil.c (profile_on): thread id is DWORD, not int.
5346 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5348 * include/stdlib.h: Add wide character version of argv/environ.
5350 * include/wchar.h: More wide character prototypes.
5351 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
5353 * dllcrt1.c (init.c): Don't include.
5354 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
5355 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
5357 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
5359 * moldname.def: Remove file.
5360 * moldname.def.in: And add this.
5361 * moldname-msvcrt.def: Generate from moldname.def.in.
5362 * moldname-crtdll.def: Likewise.
5364 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
5365 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
5366 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
5368 * Makefile.in: Update.
5369 * configure.in: Likewise. Also add *cygwin* target for building
5370 under Cygwin winsup.
5371 * configure: Regenerate.
5373 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
5375 * include/_mingw.h: Add version macros.
5376 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
5377 Also add wide character versions shared with wchar.h.
5378 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
5379 * include/io.h (sopen, _sopen): Fix prototype.
5380 Add wide character prototypes.
5381 * include/wchar.h: Likewise.
5382 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
5383 underscored versions. Potential incompatibility.
5384 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
5385 Add wide character prototypes.
5386 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
5389 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
5391 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
5392 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
5394 * configure: Rengerate.
5395 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
5396 dll name and crt's. CRTDLL and MSVCRT are meant to created
5397 separately, so remove all the *-msvcrt* targets.
5398 (libmingwthr.a): New target. Dummy thread support archive.
5399 (LIBS): Add libmingwthr.a.
5400 (CRT0S): Use CRT_ID. Add crtmt.o.
5401 (MINGW_OBJS): Add crtst.o.
5402 * main.c (WinMain): Fix prototype.
5403 * crtmt.c: New file.
5404 * crtst.c: New file.
5406 * include/process.h (_beginthreadex): Fix prototype.
5407 * include/_mingw.h (__int64): Define for __GNUC__.
5408 * include/tchar.h (_ttol): Add macro.
5409 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
5410 _i64tow, _ui64tow, _wtoi64): Add prototypes.
5412 Reported by Emanuele Aliberti <ea@iol.it>:
5413 * include/tchar.h (_ttoi): Add macro.
5415 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
5416 * include/stdio.h (_snprintf): Add prototype.
5417 (_vsnprintf): Likewise.
5419 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
5421 Reported by Tor Lillqvist <tml@iki.fi>:
5422 * include/stdlib.h (__p___argv): Fix return type.
5424 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5427 * include/errno.h (errno): It's linked in from startup, not imported.
5428 * include/stdlib.h (errno): Likewise.
5429 * include/io.h: Guard against conflicting macros and prototypes in
5431 * include/stdlib.h: Likewise.
5432 * include/string.h: Likewise.
5433 * include/time.h: Likewise.
5435 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5437 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
5438 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
5439 * Makefile.in (INCLUDES): Remove old windows32 include directory.
5441 * crt1.c (_gnu_exception_handler): Fix prototype.
5442 (__mingw_CRTStartup): New function based on mainCRTStartup.
5443 (mainCRTStartup): Set the app type for MSVCRT and call
5445 (WinMainCRTStartup): Likewise.
5446 * init.c (_startupinfo): Define.
5447 (_getmainargs): Add 5th parameter.
5448 (_mingw32_init_mainargs): Use.
5450 * ALL *.c files: Reformat according to GNU coding style.
5452 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
5454 * Makefile.in (INCLUDES): Add w32api include directory.
5456 * include/_mingw.h: New file.
5457 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
5458 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
5459 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
5460 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
5461 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
5462 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
5464 * include/stdlib.h (atexit): Fix prototype.
5466 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
5468 * include/stdio.h (_tempnam): Fix prototype.
5469 (tempnam): Likewise.
5470 * include/stdlib.h: Replace with GCC's version, and guard
5473 From Anders Norlander <anorland@hem2.passagen.se>:
5474 * include/stdlib.h (__argc): Declare.
5477 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
5479 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
5481 * Makefile.in (_libm_dummy.o): New target.
5484 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
5486 * Released 1999-03-16 along with egcs-1.1.2.
5488 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
5490 * Makefile.in (LIBS): Add libm.a.
5491 (libm.a): Dummy libm.a.
5493 * Makefile.in: Update from winsup 1999-02-08 snapshot.
5494 Preserve local changes.
5495 (mkinstalldirs): In ../, not ../../.
5496 (INCLUDES): Point to local windows32api headers and use -nostdinc.
5498 (LIBS): Add libmoldname-msvc.a.
5499 (libmoldname-msvc.a): Add target.
5500 (distclean): Add target.
5502 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5504 * include/dir.h: Reintroduce as an obsolescent header.
5505 * crt1.c (signal.h): Include.
5506 (_gnu_exception_handler): New function to properly handle win32
5507 asynchronous signals.
5508 (mainCRTStartup): Use.
5510 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5512 * include/direct.h: Include io.h instead of dir.h
5513 * include/dirent.h: Likewise.
5514 * include/dos.h: Likewise.
5515 * include/stdio.h: Replace reference to dir.h with io.h.
5517 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5519 * 1999-01-01 release bundled with egcs-1.1.1.
5521 * include/io.h: Incorporate dir.h.
5522 * include/dir.h: Remove.
5523 * include/signal.h: Move RC_INVOKED up a bit.
5525 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5527 * include/signal.h (sig_atomic_t): Define.
5529 * include/malloc.h: Import defs from deprecated alloc.h.
5530 * include/alloc.h: Remove.
5532 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5533 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5534 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5535 _off_t instead of long for st_size.
5537 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5539 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5540 * include/stdlib.h: Here.
5542 * include/netdb.h: Remove.
5543 * include/arpa/inet.h: Remove.
5544 * include/netinet/in.h: Remove.
5545 * include/sys/socket.h: Remove.
5547 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5551 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5552 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5554 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5556 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5557 (jmpbuf): typedef using above.
5558 (setjmp, longjmp): Prototype using jmpbuf.
5560 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5561 obsolescent imported names, ie., from __imp__ to _imp___.
5563 Also ignored empty include/sys/param.h and incorrect
5564 include/sys/times.h.
5566 * CRTinit.c: New file.
5567 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5569 * include/io.h (umask): Fix prototype.
5570 * include/stdlib.h (OS constants): Replace with Colin's.
5571 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5572 * include/sys/state.h: Merge.
5574 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5576 * include/assert.h (assert): Lose the trailing semicolon.
5578 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5580 * include/math.h (matherr): Declare.
5581 * include/stdio.h (fileno, _fileno): Declare.
5582 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5585 * include/stdio.h (fdopen, _fdopen): Add const.
5586 (getw, putw): Declare.
5587 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5589 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5591 * include/time.h (_timezone): Undefine.
5592 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5594 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5596 * include/stdlib.h (environ): Use DLL version.
5597 * init.c (environ): Undefine it before use.
5599 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5601 * Update to 980309 snapshot from Colin Peters.
5603 * include/utime.h: remove
5604 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5605 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5606 patches to define these.
5607 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5608 (_daylight, _timezone, _tzname, _tzset): Define.
5610 * include/netdb.h: Add from Colin's windows32api changes.
5611 * include/sys/socket.h: Likewise.
5612 * include/arpa/inet.h: Likewise.
5613 * include/netinet/in.h: Likewise.
5615 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5617 * Update to 980128 snapshot from Colin Peters.
5619 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5621 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5623 * configure: Regenerate.
5625 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5627 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5628 Files renamed and include hierarchy loses directories named
5631 * include/dos.h: from Jan-Jaap.
5633 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
5635 Changes to conform to FSF tree.
5637 * crt1.c: Renamed from mcrt0.c.
5638 * dllcrt1.c: Renamed from dllcrt0.c.
5639 * Makefile.in: Update above. Also renamed libmoldnames.a to
5642 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
5644 * crtdll.def: Export all functions but the ones with funny names.
5645 * moldnames.def: Add fdopen since fileno is already there.
5646 * include/nonansi/dos.h: New file from Jan-Jaap.
5647 * include/errno.h: Add extern decl + various additions from JJ.
5648 * include/stdio.h: Likewise.
5649 * include/stdlib.h: Likewise.
5650 * include/nonansi/io.h: Likewise.
5651 * include/nonansi/process.h: Likewise.
5652 * include/sys/types.h: Likewise.
5654 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5656 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5658 * include/stdlib.h (free): Fix prototype to return void, not void*.
5659 * include/nonansi/process.h: Add P_* and WAIT_* defs.
5661 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
5662 * mcrt0.c: Likewise.
5664 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
5665 (libmoldnames.a): Add explicit rule to create it.
5667 1997-08-15 Rob Savoye <rob@cygnus.com>
5669 New directory for the minimalist cygwin environment.
5671 * crtglob.c: New file. Turn on file globbing support.
5672 * crt_noglob.c: New file. Turn off file globbing support.
5673 * ctype_old.c: New file. Wrappers for functions that don't
5675 * dirent.c: New file. Directory routines readdir, opendir, closedir.
5676 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
5677 * dllmain.c: New file. A stub DllMain function.
5678 * hugeval.c: New file. A gross hack to define HUGE_VAL.
5679 * init.c: New file. Common code to initialize standard file
5680 handles and command line arguments.
5681 * main.c: New file. A main for programs that only call WinMain.
5682 * mcrt0.c: New file. Default crt0 for mingw32.
5683 * oldnames.c: New File. Wrappers for functions that don't
5685 * string_old.c: New File.
5686 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
5687 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
5688 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
5689 * include/sys/types.h: New header file for mingw.
5690 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
5691 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
5692 utime.h,values.h,varargs.h}: New header files for mingw.
5693 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
5694 timeb.h,unistd.h}: New header files for mingw.
5695 * Makefile.in,configure.in: Build and configure support.
5696 * configure: Generated from autoconf 2.12 with Cygnus patches.