1 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Support installation of headers with empty parts directory.
5 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
6 (install-mingwrt-headers): ...invoke it; if false, do not perform...
7 (INSTALL_SUB_HEADERS): ...this.
9 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
11 Reinstate typedef for non-standard off64_t.
13 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
14 (__off64_t): ...typedef derived from this; although non-standard, it
15 is gratuitously required when building GCC's libgfortran.a
17 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
19 Correct conditional compilation block nesting errors.
21 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
22 them balanced within, and around, conditional compilation blocks.
24 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
26 Feature test _MINGW32_EXTENDED_SOURCE renamed.
28 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
29 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
30 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
31 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
32 users should enable any conventional feature test which implies it.
34 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
35 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
37 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
39 Correct atexit() and _onexit() export declaration regression.
41 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
42 as DATA; declare them accordingly.
44 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
46 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
48 * include/string.h: Tidy layout.
49 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
50 (_stricmp, _strnicmp): Include their prototypes, selectively from...
51 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
52 * include/parts/strings.h: ...from here; file is obsolete; delete it.
54 * include/string.h (_wcscmpi): Define alias.
55 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
56 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
57 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
58 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
59 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
60 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
61 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
62 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
64 * include/strings.h (_STRINGS_H): Do not define it, when...
65 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
66 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
68 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
70 Refactor to make <parts/time.h> redundant.
72 * include/sys/types.h (time_t, __time32_t, __time32_t)
73 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
74 * include/parts/time.h: ...from here; preserve selective exposure.
76 * include/time.h (time_t, __time32_t, __time32_t): Get them...
77 * include/sys/types.h: ...from here, by selective inclusion.
79 * include/time.h (struct timespec, struct __mingw_extended_timespec)
80 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
81 * include/parts/time.h: ...from here; preserve selective exposure.
83 * include/parts/time.h: Delete file; it is no longer required.
85 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
87 Declare the nanosleep() function where POSIX expects it.
89 * include/time.h (__mingw_sleep): Declare function prototype.
90 (nanosleep): Declare prototype, and provide in-line implementation;
91 this is a reproduction of the original implementation, relocated...
92 * include/unistd.h (nanosleep): ...from here; remove it; hence...
93 (struct timespec): ...this need not be declared here, and there is
94 no need to include <parts/time.h>; remove reference.
96 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
98 Refactor <time.h> vs. <wchar.h> to avoid duplication.
100 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
101 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
102 (struct tm): Delete definition; delegate it, together with each of...
103 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
104 (wcsftime): ...these function prototypes; delete them, but note in
105 comments, that they remain declared, via delegation to...
106 * include/time.h: ...this; include it selectively, subject to...
107 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
108 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
109 [_TIME_H]: Process all definitions and declarations; otherwise...
110 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
111 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
112 (_WTIME_DEFINED): Obsolete macro; delete all references.
114 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
116 Implement support for POSIX "%n$*m$" printf() format control.
118 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
119 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
120 (__pformat_inline__): New macro; define, and use it where appropriate.
121 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
122 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
123 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
124 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
125 (__pformat_argmap_t): ...this new union data type; define it.
126 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
127 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
128 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
129 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
130 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
131 (__pformat_length_modifier, __pformat_check_length_modifier): New
132 locally defined static and/or inline functions; implement, and...
133 (__pformat): ...use them.
135 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
137 Add prototypes for Microsoft's _printf_p() family of functions.
139 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
140 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
141 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
142 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
143 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
144 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
145 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
146 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
147 available for selective inclusion by both <stdio.h> and <wchar.h>...
148 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
150 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
152 Adapt msvcrt-xref to become msvcrt.def.in provider.
154 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
155 filter value assignment; scale it upwards, by a factor of 0x10000.
156 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
157 (%.def) [msvcr*]: Do not preserve comments; define...
158 (__DLLNAME__): ...this preprocessor symbol.
160 * msvcrt.def.in: Content is obsolete; delete file and replace with...
161 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
162 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
163 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
164 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
165 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
167 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
169 Import msvcrt-xref documentation resources.
171 * msvcrt-xref: New directory.
172 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
173 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
174 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
175 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
177 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
179 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
181 * include/wchar.h: Some minor layout adjustments.
182 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
183 within the scope of reading <wchar.h>; undefine it at end of file.
184 (struct tm): Do not define; it is sufficient to keep it opaque.
185 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
186 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
187 directly; delegate to indirect definition by including <stdio.h>.
188 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
189 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
190 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
191 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
192 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
193 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
194 indirectly, by selective inclusion from <stdio.h>; hence include it.
196 * include/stdio.h: Assert copyright; tidy layout.
197 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
198 (_STDIO_H): ...this, but defined conditionally, subject to...
199 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
200 entities which are required by <wchar.h>; do not define...
201 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
202 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
203 are normally specified within <stdio.h>, INCLUDING those specifically
204 itemised above, as selectively required by <wchar.h>.
206 * pseudo-reloc.c: Some minor layout adjustments.
207 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
208 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
209 include <stddef.h> to guarantee it.
211 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
213 Enable selective definition of POSIX system types.
215 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
216 any specific __need_TYPE selector having been set prior to inclusion;
217 DO define it when no such selector is present, and undefine all such
218 selectors as may have been set, after evaluation of their effects.
219 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
220 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
221 accommodates reorganization of the file, to achieve a tidier layout.
222 (__have_typedef_off_t): New repeat definition guard; define it for
223 compilers which may choke on any repeated typedef for either of...
224 (off_t, _off_t): ...these; make them selectively defineable for...
225 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
226 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
227 in either case, redefine them in terms of...
228 (__off32_t): ...this new internal type, for consistency with...
229 (__off64_t): ...this previously defined non-standard type; also make
230 it selectively defineable, either by...
231 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
232 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
233 (__have_typedef___off64_t): New repeat definition guard; define it.
234 (ssize_t, _ssize_t): Also make them selectively defineable, on...
235 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
236 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
237 (__have_typedef_ssize_t): New repeat definition guard; define it.
239 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
241 Avoid user namespace pollution by non-standard type 'off64_t'.
243 * include/sys/types.h (off64_t): Rename it as...
244 (__off64_t): ...this implementation-private alternative name, so
245 eliminating the potential for user namespace pollution.
247 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
248 return type, and type of offset argument, in both prototype and inline
249 implementation; note that this addresses the issue of pollution in the
250 user namespace, while avoiding the issue of MinGW-Bug [#2024].
252 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
253 instead of 'off64_t', as offset argument type in function prototypes.
254 (ftello64): Likewise, for return type of inline function.
256 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
257 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
258 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
260 * mingwex/stdio/fseeko64.c: Assert copyright.
261 (fseeko64): Use '__off64_t' per modified function prototype.
263 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
265 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
267 * mingwex/ofmtctl.c: New file; it implements...
268 (_mingw_output_format_control): ...this new function; it provides
269 additional MinGW specific printf() format processing options.
271 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
273 * include/stdio.h (_mingw_output_format_control): Declare it.
274 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
275 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
276 manifest constant expressions; define them.
278 * mingwex/stdio/pformat.c: Revise licensing terms.
279 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
280 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
281 modifier; this matches the behaviour specified by ISO-C99, else...
282 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
283 previous MSVC compatible behaviour, treating it as an `L' modifier.
284 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
286 * mingwex/ofmt.c (ARGLIST): Subsume references to...
287 (ARGTYPE): ...this now obsolete macro; delete it throughout.
288 (update_output_format_flag): New inline function; it restricts flag
289 operations to affect only Microsoft's exponent digit bits.
290 [FUNCTION == _set_output_format]: Use it.
291 [FUNCTION == _get_output_format]: Likewise.
293 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
295 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
297 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
298 defined, when implied by any STDC or POSIX version selection, viz. ...
299 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
301 * include/stdlib.h: Assert copyright; tidy layout.
302 (_STDLIB_H_): Multiple inclusion guard macro renamed...
303 (_STDLIB_H): ...to this, preferring no trailing underscore.
304 [!defined __NO_ISOCEXT]: Delete double negative references; use...
305 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
306 (lldiv_t): ...defining this C99 specific aggregate data type, and...
307 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
308 (wcstold, _Exit): ...declaring these C99 function prototypes.
309 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
310 future removal; not in MSVCRT.DLL, these conform to no known standard.
311 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
312 (__strtod): ...this libmingwex.a provided function; it handles string
313 representations of hexadecimal-floats, infinities and NaNs, whereas...
314 (strtod): ...this MSVCRT.DLL implementation does not.
315 (__MSVCRT_VERSION__): Prefer symbolic comparison...
316 [>= __MSVCR80_DLL]: ...for this requirement.
318 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
320 Rationalize definition of struct timespec.
322 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
323 tv_sec field, in place of anonymous union, thus avoiding missing brace
324 warnings when initializing; leave a copy of the previous definition...
325 (struct __mingw32_expanded_timespec): ...named thus.
327 * include/unistd.h (nanosleep): Adjust inline implementation, to match
328 altered specification of tv_sec field in struct timespec.
330 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
331 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
333 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
334 convenience function; defined as inline, with __LIBIMPL__ equivalent,
335 it facilitates interpretation of an instance of struct timespec as if
336 it were defined as struct __mingw32_expanded_timespec.
338 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
340 Make strings.h mostly POSIX.1-2008 compliant.
342 * include/strings.h: Rewritten. Do not include...
343 (string.h): ...this; mandated by POSIX.1, it now defines...
344 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
345 prototypes, possible in-line implementations, and JMPSTUB references
346 to corresponding external implementations, which will now become
347 automatically created within libmingwex.a
349 * include/parts/strings.h: New file; it declares prototypes for...
350 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
351 string.h, but we also require them in strings.h
353 * include/parts/wchar.h: New file; it declares prototypes for all wide
354 character functions which MSVC specifies in both wchar.h and string.h
356 * include/string.h: Miscellaneous layout adjustments.
357 (strcasecmp, strncasecmp): Delete; they belong in strings.h
358 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
359 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
360 include them from parts/wchar.h instead.
362 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
363 prototypes; include them from parts/wchar.h instead, so making this
364 guard macro redundant; delete it.
366 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
367 (wcscmpi.$OBJEXT): Implementations are now automatically generated
368 from header file, for inclusion in libmingwex.a; remove free-standing
369 implementations from the entire family of liboldname libraries, and...
370 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
371 files; they are no longer required.
373 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
375 Incorporate build system updates from w32api package.
377 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
378 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
379 (install-strip, uninstall): New make command goals; implement them.
380 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
381 (devdist, dlldist): ...these have no need to strip explicitly.
382 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
383 (install-mingwrt-headers): ...here.
385 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
387 Adapt platform feature checks to NTDDI_VERSION conventions.
389 * include/_mingw.h: Assert copyright; include w32api.h
390 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
391 to w32api/include/w32api.h, whence they remain in effect.
392 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
394 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
396 Correct mismatched #if/#endif from preceding commit.
398 * include/_mingw.h (#pragma GCC system_header)
399 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
400 correcting for inadvertent removal of matching #endif introduced by
401 preceding 2015-06-19 commit.
403 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
405 Define symbolic names for alternative Microsoft runtime DLLs.
407 * include/msvcrtver.h: New file; it assigns a value for...
408 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
409 (__MSVCR60_DLL): ...this new manifest constant, with each of...
410 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
411 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
412 ...these also defined, as user assignable alternatives.
414 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
415 to establish its default value.
417 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
419 Track dependencies on modified system header files.
421 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
423 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
425 Correct an anomaly in stage 1 only build procedure.
427 * Makefile.in (all-gcc): New goal; it is an alias for...
428 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
429 (all-mingwrt-stage-1-only): ...this; upate all references.
430 (active-goals): Adjusted accordingly; it now reguires...
431 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
432 (install): Adjusted, as directed by...
433 (DEFAULT_MAKECMDGOALS): ...this.
435 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
437 Prefer our hypot() implementation in complex maths operations.
439 * mingwex/complex/cabs_generic.c: New file; it replaces...
440 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
441 * mingwex/complex/cabsl.c: ...these.
443 * mingwex/complex/catan_generic.c: New file; it replaces...
444 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
445 * mingwex/complex/catanl.c: ...these.
447 * mingwex/complex/clog_generic.c: New file; it replaces...
448 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
449 * mingwex/complex/clogl.c: ...these.
451 * mingwex/complex/cpow_generic.c: New file; it replaces...
452 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
453 * mingwex/complex/cpowl.c: ...these.
455 * mingwex/complex/csqrt_generic.c: Do not use...
456 (_hypot): ...this Microsoft form of function reference; use...
457 (hypot): ...this ANSI standard form instead.
459 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
461 Correct C++ compilation anomaly with hypotf() in cmath header.
463 * include/math.h: Add copyright notice; generally tidy layout.
464 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
465 (hypotf): Delete inline implementation; it did not properly handle
466 range errors, and was uncompilable with optimization when any g++
467 option implying __STRICT_ANSI__ conformity was specified.
468 (_MATH_H_): Rename this multiple inclusion guard...
469 (_MATH_H): ...to this.
471 * mingwex/math/hypot_generic.c: New file; it implements...
472 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
473 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
475 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
477 Prepare and tag all files for release of mingwrt-3.21.1.
479 * configure.ac (AC_INIT): Adjust package version argument.
480 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
481 (__MINGW32_VERSION): ...increment this to match.
483 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
485 Refactor to avoid possible time_t conflicts across headers.
487 * include/parts/time.h (struct timespec): Make it more descriptive of,
488 and better able to accommodate, potential ambiguity relating to...
489 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
490 whence they may be identically imported into each of...
491 * include/sys/types.h include/time.h include/wchar.h: these; delete
492 duplicate typedefs, and import accordingly.
494 * include/sys/types.h: Add licence; general comment additions.
495 (_TYPES_H_): Rename multiple inclusion guard macro...
496 (_SYS_TYPES_H): ...to this.
498 * include/time.h: Add licence; general comment/layout adjustments.
499 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
500 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
501 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
502 (_TIME_H_): Rename multiple inclusion guard macro...
503 (_TIME_H): ...to this.
505 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
506 (struct timespec): ...of this.
508 * include/wchar.h: Add licence; general comment/layout adjustments.
509 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
510 [GCC] (system_header): Add pragma, identifying header as such.
511 (_WCHAR_H_): Rename multiple inclusion guard macro...
512 (_WCHAR_H): ...to this.
514 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
516 Remove obsolete varargs.h header file.
518 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
519 a GCC header which is no longer supported, and was always intended for
520 ultimate removal; now is the long overdue time to do so.
522 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
524 Correct improper unistd.h function attribute declarations.
526 * include/unistd.h (_cdecl): Correct usage throughout; should be...
529 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
531 Fix GLOB_DOOFFS initialization bug.
533 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
534 (gl_data->gl_offs): ...this is properly initialized to zero.
536 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
538 Tag all files for release of mingwrt-3.21.
540 * include/_mingw.h: Adjust version accordingly.
542 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
544 Improve usage notes in stdlib.h, for mkstemp() function.
546 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
547 an original comment, explaining the need to use _O_TEMPORARY, from...
548 * mingwex/mkstemp.c: ...here; delete trailing white space.
550 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
552 Eliminate some potential definition inconsistencies.
554 * include/stdio.h: Cosmetic formatting change, relating to...
555 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
556 unconditionally; this allows the compiler to check for consistency
557 with their primary definitions in stdio.h
559 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
561 Suppress expected warning diagnostics in LIBIMPL builds.
563 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
564 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
565 GCC flag to supress warnings relating to deprecated declarations.
567 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
569 Provide more POSIX conforming sleep() functions.
571 * include/sys/types.h (useconds_t): Make it explicitly long; int may
572 be okay, but doesn't guarantee enough bits; mark as deprecated, since
573 POSIX has declared it "obsolete", and no longer specifies it.
575 * mingwex/usleep.c: Delete file; it provided an implementation of...
576 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
577 its error handling was hopelessly broken; replace it with...
578 * mingwex/nsleep.c: ...this new file; it implements...
579 (__mingw_sleep): ...this generic helper function; it supports sleep
580 capability with interval specification to nanosecond precision.
582 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
583 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
584 (sleep, nanosleep): ...these current POSIX functions, and also...
585 (usleep): ...this obsolete one; mark it as deprecated.
587 * include/parts: New directory; it is intended to host partial header
588 implementations, for content which must be shared among arbitrary sets
589 of multiple standard header files.
591 * include/parts/time.h: New file; nominally declaring time.h content.
592 (struct timespec): Declare it; it is currently used within unistd.h,
593 to facilitate the __CRT_INLINE implementation of nanosleep().
595 * Makefile.in (libmingwex.a): Remove reference to...
596 (usleep.$OBJEXT): ...this; replace it with a reference to...
597 (nsleep.$OBJEXT): ...this alternative.
598 (mingwrt-includedirs): Add prerequisite to create...
599 ($includedir/parts): ...this new directory; it is populated by...
600 (install-mingwrt-headers): ...this rule; add requisite command.
602 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
604 Delete an unnecessary Unicode wrapper file.
606 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
607 UTF-16LE API from dirent.c, without any need for this wrapper.
609 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
611 Some further inline function rationalization.
613 * include/io.h (_CRTALIAS): Replace all references...
614 (__CRT_ALIAS): ...using this syntactically preferred form.
615 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
616 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
618 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
619 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
621 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
622 * mingwex/ftruncate.c: Likewise.
624 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
625 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
627 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
629 Some POSIX feature test adjustments.
631 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
632 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
633 (mkdtemp): This didn't become available until SUSv4, so requires...
634 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
636 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
638 Another CRT_INLINE function implementation rationalization.
640 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
641 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
642 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
644 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
645 (libmingwex.a): Delete obsolete dependency on...
646 (imaxabs.$OBJEXT): ...this.
648 * mingwex/imaxabs.c: File is now redundant; delete it.
650 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
652 More rationalization of CRT_INLINE function implementations.
654 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
655 (ftello64): Add __LIBIMPL__ specification for extern implementation.
656 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
658 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
659 * mingwex/stdio/ftell064.c: Likewise.
661 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
662 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
664 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
666 Don't implicitly define _POSIX_C_SOURCE too early.
668 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
669 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
670 that it is not accidentally activated by implied _POSIX_C_SOURCE.
672 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
674 Correct complex arcsin computation per issue [#2245].
676 * mingwex/complex/casin_generic.c: New file; it replaces...
677 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
678 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
680 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
682 Correct complex square root computation per issue [#2246].
684 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
685 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
686 (hypot): ...this libmoldname.a indirection.
688 * mingwex/complex/csqrt_generic.c: New file; it replaces...
689 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
690 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
692 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
694 Adjust header guards to resolve issue [#2244].
696 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
697 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
698 ...when any of these prevail, or as appropriate to correspond with...
699 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
701 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
702 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
703 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
704 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
706 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
708 Add implementation of mkstemp() and mkdtemp() functions.
710 * mingwex/cryptnam.c: New file; it implements...
711 (__mingw_crypto_tmpname): ...this helper function; it generates a
712 cryptographically secure sequence of characters, used as the random
713 component in temporary file and directory names.
715 * mingwex/mkstemp.c: New file; it implements...
716 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
718 * mingwex/mkdtemp.c: New file; it implements...
719 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
721 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
722 function implementation, with LIBIMPL extern semantics, in terms of...
723 (__mingw_mkstemp): ...this; also declare prototype, and define...
724 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
725 (_MKSTEMP_SETMODE): New macro; define it, also providing...
726 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
727 (mkdtemp): Declare prototype; provide inline implementation, with
728 JMPSTUB extern semantics, in terms of...
729 (__mingw_mkdtemp): ...this; declare prototype.
731 * Makefile.in (libmingwex.a): Add dependency rule, to include...
732 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
734 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
736 More JMPSTUB rationalization of inline functions.
738 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
739 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
740 appropriate MSVCRT.DLL equivalent entry point.
742 * mingwex/_Exit.c: File is now redundant; delete it.
743 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
744 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
746 * Makefile.in (jmpstub_awk_script): Add support for...
747 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
748 (libmingwex.a): Remove dependencies on deleted files, namely...
749 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
750 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
752 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
754 Correct omission of complex conjugate functions from libmingwex.a
756 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
757 (creal, crealf, creall): Likewise, for consistency of implementation.
758 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
760 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
761 declarations; they should be interpreted analogously to __CRT_ALIAS.
762 (libmingwex.a): Remove object file references for functions which are
763 now declared as LIBIMPL, and sort the remainder in ASCII collating
764 order; deleted function references comprise the set consisting of...
765 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
766 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
767 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
769 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
770 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
771 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
772 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
773 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
775 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
777 Back-port improved asinh() implementation from 4.0-dev branch.
779 * mingwex/math/asinh_generic.c: New file; it replaces...
780 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
781 ...all of these; delete them.
783 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
785 Enable remake of lost LIBIMPL object files.
787 * Makefile.in (libimpl_remake): New macro; define it, and...
788 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
790 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
792 Implement more robust _get_output_format fallback handling.
794 * mingwex/ofmt.c: New file; it implements...
795 (__mingw_output_format_flag): ...backing store, used by...
796 (__mingw_get_output_format, __mingw_set_output_format): ...these
797 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
798 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
799 version specific Microsoft APIs, which are also supported by some
800 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
801 (__mingw_get_output_format_fallback): Implement; it is aliased to...
802 (__mingw_set_output_format_fallback): ...this; together they provide
803 the emulation support for the preceding pair of functions, when they
804 are not available within the run-time platform MSVCRT.DLL
805 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
806 Implement them; they wrap, and if necessary emulate...
807 (_get_printf_count_output, _set_printf_count_output): ...these.
808 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
809 (__mingw_set_printf_count_output_fallback): ...this; together they are
810 required to support emulation of the preceding pair of functions, when
811 they are not available within the run-time platform MSVCRT.DLL
813 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
814 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
815 (__mingw_get_output_format, __mingw_set_output_format)
816 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
817 Unconditionally declare their prototypes, for subsequent inline use.
818 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
819 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
820 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
821 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
822 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
823 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
824 represent a compilable token.
826 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
827 _get_output_format; consult __mingw_output_format_flag directly.
829 * ofmt_stub.s: No longer required; delete it.
831 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
832 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
833 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
834 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
835 all are compiled from ofmt.c
837 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
839 Do some more essential build tree clean up.
841 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
842 in the way of a successful rebuild from clean.
844 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
846 Implement wrappers for emulation of POSIX dlfcn API.
848 * include/dlfcn.h: New file; it declares the API.
849 * mingwex/dlfcn.c: New file; implement it, with access via...
850 (__mingw_dlfcn): ...this publicly addressable vector table.
852 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
853 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
854 (__LIBIMPL__): ...this automatic interface generator; implement it.
855 (libstub_refnames): New macro; it is adapted from and replaces...
856 (jmpstub_refs): ...this; when it is then invoked twice to build...
857 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
858 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
859 (libimpl_awk_script): New inline script; it handles automated builds
860 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
861 (libimpl_sed_script): New inline script; it prepares intermediate C
862 source code for LIBIMPL interfaces, as required to satisfy these...
863 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
864 (LIBIMPL_CFLAGS): New macro; define it.
866 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
868 Move libgen functions to __mingw_ pseudo-namespace.
870 * mingwex/dirname.c (dirname): Rename function, as implemented...
871 (__mingwex_dirname): ...to this.
873 * mingwex/basename.c (basename): Rename function, as implemented...
874 (__mingwex_basename): ...to this.
876 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
877 prototypes, matching and augmenting original declarations for...
878 (dirname, basename): ...these; reimplement as inline aliases, with
879 __JMPSTUB__ references to the renamed implementation entry points.
881 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
883 Implement new command line argument globbing strategy.
885 * include/_mingw.h: Backport feature defines from master...
886 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
887 constants; define them. They select the preferred globbing algorithm.
888 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
889 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
890 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
891 they enable optional additional features supported by this algorithm.
892 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
894 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
896 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
897 * setargv.c: ...new file; it implements the initialization mechanism
898 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
899 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
900 it invokes the algorithm via an API similar to that described by MSDN,
901 while continuing to support our original _CRT_glob interpretation.
902 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
903 algorithm, via the MSDN-alike API, by calling back to...
905 * crt1.c (_mingw32_init_mainargs): ...this original function, now
906 relocated to here, as a publicly addressable function; formerly...
907 (__mingw_CRTStartup): ...called directly from here, we now redirect
908 the call through _setargv(), whence it may be called indirectly.
910 * init.c: Redundant file; delete it. It originally provided...
911 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
912 original static attribute removed, to allow global addressing.
914 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
916 Backport glob implementation from master to legacy.
918 * include/glob.h: New file; copy it from master branch.
919 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
920 (glob, globfree): ...each of these, respectively.
922 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
923 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
924 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
925 (accept_glob_nocheck_match): New static function; it adds support for
926 avoidance of globbing on patterns with no globbing token, so avoiding
927 the case transliteration effect reported as MinGW-Bug #2106.
928 (glob_match): Use it.
930 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
932 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
934 Implement conventionally named dirent function trampolines.
936 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
937 which redirects a conventionally named function call to its __mingw_
938 pseudo-namespace implementation.
940 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
941 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
942 appropriate protocol for compiling *.sx files, (supported natively by
943 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
945 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
946 yet provide it, so we define it ourselves; deploy it for *.sx files.
947 (Makefile.stub): New sinclude file; create it dynamically, using...
948 (jmpstub_awk_script): ...this new inline script, which is based on...
949 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
950 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
951 (mostlyclean-local): Remove Makefile.stub; do likewise...
952 (Makefile): ...when remaking this, to ensure that both will be
955 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
957 Make dirent implementation namespace and time_t clean.
959 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
960 macros; define them. They facilitate identification of symbols which
961 must be compiled with `extern "C"' binding, when compiling C++ code.
962 (__CRT_ALIAS): New macro; define it. It is intended to replace...
963 (_CRTALIAS): ...this, which is to be considered as deprecated.
964 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
965 __CRT_ALIAS build hints, while remaining transparent to GCC.
966 (UNICODE, _UNICODE) [user defined]: Define consistently.
968 * mingwex/dirent.c: Reimplement; (this is a back-port from the
969 4.0-dev branch, with additional ABI changes to improve stability).
970 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
971 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
972 Add `__mingw_' prefix to all publicly exposed symbol names.
973 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
974 implemented functions; they replace Microsoft's ambiguously defined
975 _findfirst, _findnext, and _findclose, so avoiding ABI instability
976 resulting from the ambiguous size of Microsoft's time_t.
978 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
979 removing unnecessary time_t and file size fields; (our replacements
980 for _findfirst, and _findnext do not require them to be present).
981 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
982 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
983 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
984 Adjust prototypes, making them inline aliases for public symbols which
985 are now qualified by the `__mingw_' prefix; add build hints to support
986 compilation of addressable stubs, with the original symbol names.
987 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
988 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
989 BSD compatibility, but are fundamentally unsupported on MS-Windows).
990 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
991 New macros; define them. (These show availability of optional fields
992 within the dirent struct, which client code may wish to access).
994 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
996 Correct improper naming of assembly language source files.
998 * mingwex/math/*.S: Rename all files with this extension...
999 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1000 not extended `assembler-with-cpp' as implied by the former extension);
1001 adjust all internal `.file <name>' references accordingly.
1003 * Makefile.in (vpath %.S): Adjust reference to locate files....
1004 (vpath %.s): ...now renamed thus.
1006 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1008 Streamline the build system infrastructure.
1010 * configure.ac: New file; it replaces...
1011 * configure.in: ...this; (name is obsolete); delete it.
1013 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1014 make invocations, when processing subdirectories, and add automatic
1015 dependency tracking for all generated files.
1017 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1019 * mingwex/Makefile.in: No longer required; delete it.
1020 * profile/Makefile.in: Likewise.
1022 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1023 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1025 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1026 longer relevant, and I have no desire to maintain it.
1028 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1030 * include/_mingw.h: Increment version to 3.20.
1032 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1034 * tlsmthread.c: Update to reflect changes in tlssup.c.
1035 * tlssup.c: code clean-up.
1037 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1039 * include/_mingw.h: Increment version to 3.19.
1041 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1043 * include/float.h: Modify guard to accomodate CLang.
1045 Thanks to Ruben Van Boxem for the report.
1047 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1049 * tlssup.c: Remove mingwm10.dll fallback.
1051 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1053 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1055 Thanks to bvassche for the report.
1057 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1059 Correct checking for short option matches in getopt_long_only().
1061 * mingwex/getopt.c (getopt_verify): New static inline function.
1062 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1063 possible short option match after failing to match, or ambiguously
1064 matching as a long option.
1066 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1068 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1070 Thanks to cgf for the report.
1072 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1074 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1075 compiles with __STRICT_ANSI__.
1077 Thanks to Felipe Contreras for the report.
1079 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1081 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1084 Thanks to Tobias Burnus for the report.
1086 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1088 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1089 by wrapping the functions in brackets.
1091 Thanks to Kai Tietz for the report.
1093 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1095 * Makefile.in: Add support for msvcr100.dll.
1096 * msvcrt.def.in: Ditto.
1098 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1100 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1101 not always available, go the long way and use the explicit named union
1102 members, which are also declared in winnt.h.
1104 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1106 * mingwex/isblank.c: Fix typo in declaration.
1108 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1110 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1111 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1112 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1113 is included before <ctype.h>.
1115 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1117 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1119 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1121 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1123 Correct hexadecimal formatting of double and long double values.
1125 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1126 (__pformat) [A format]: Cast double values to long double, and use...
1127 (__pformat_xldouble): ...this instead, with corrected adjustment of
1128 exponent and alignment of mantissa, when formatting subnormals.
1130 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1132 * include/dirent.h (dd_handle): Define as intptr_t.
1134 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1136 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1139 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1141 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1142 semantically identical MAX_PATH; correct value is 260.
1144 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1146 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1147 system include search path; (issue reported by Mark Brand).
1149 * include/float.h: Add multiple inclusion guard around...
1150 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1151 only when this define does not indicate that it has already been seen;
1152 update comments to document rationale; move it within the scope of...
1153 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1154 GCC's float.h, after an appropriate complementary modification, need
1155 not perform a further include path search when this implementation
1156 specific extension has already been processed.
1158 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1160 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1161 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1162 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1163 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1164 _findnexti64): Correct definition.
1166 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1168 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1170 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1172 * include/_mingw.h: Increment version to 3.18.
1174 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1176 * include/stdio.h: (_vscprintf, _vscwprintf)
1177 * include/tchar.h: (_vsctprintf)
1179 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1181 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1182 (initial implementation)
1184 * new type: __time32_t
1186 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1187 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1188 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1190 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1191 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1192 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1193 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1194 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1195 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1196 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1197 _wstat32i64, _wstat64i32,_wutime32
1199 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1200 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1201 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1202 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1203 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1205 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1207 Implement TLS Callback.
1209 * tlsmcrt.c: New file.
1210 * tlsmthread.c: Ditto.
1213 * Makefile.in: Include new files.
1214 * crt1.c: Implement TLS Callback.
1216 * mthr_stub.c: Remove.
1218 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1220 * include/_mingw.h: Increment version to 3.17.
1222 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1224 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1225 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1227 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1229 * include/io.h (_open_osfhandle): Correct definition.
1231 Thanks to Alexander Shaduri for the information.
1233 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1235 Final sync of pseudo-reloc.c with mingw64 and cygwin
1236 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1237 regarding error messages.
1239 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1241 Honor DESTDIR for winsup/mingw and winsup/w32api.
1242 Detect and report error if installation paths are win32
1243 format, but DESTDIR is non-empty.
1245 * Makefile.in (DESTDIR): Honor per convention.
1246 (need-DESTDIR-compatibility): New macro; define it and a
1248 (fail-DESTDIR-compatibility): New dependency goal.
1249 (install-dirs): Require need-DESTDIR-compatibility.
1250 * mingwex/Makefile.in (DESTDIR): Honor per convention.
1251 (need-DESTDIR-compatibility): New macro; define it and a
1253 (fail-DESTDIR-compatibility): New dependency goal.
1254 (install): Require need-DESTDIR-compatibility.
1255 * profile/Makefile.in: Ditto.
1257 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1259 Sync pseudo-reloc.c with mingw64
1260 * psuedo-reloc.c: Remove unnecessary includes.
1261 Forward declare _pei386_runtime_relocator.
1262 Decorate _image_base__ symbol with macro for
1263 mingw64 compatibility. Whitespace changes.
1264 (__print_reloc_error): Renamed to...
1265 (__report_error): This. "Returns" void, and
1266 always aborts. Now used on all platforms.
1267 (__write_memory): Remove special case error handling
1268 for different platforms - always call __report_error.
1269 (do_pseudo_reloc): Remove special case error handling
1270 for different platforms - always call __report_error.
1271 (_pei386_runtime_relocator): Decorate _image_base__
1272 symbol with mingw64 compatibility macro.
1274 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1276 Sync pseudo-reloc.c with cygwin/lib/
1277 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1278 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1279 for fatal error handling that is consistent with cygwin process
1280 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1281 is unique to each address space, across fork().
1282 [CYGWIN] (__print_reloc_error): New function for reporting
1283 errors in a manner supported by cygwin at this early stage of
1284 the process life-cycle.
1285 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1286 performed only once for each address space, but are repeated
1287 after fork() in the new address space.
1288 [MINGW] (__write_memory): Ensure that b is always initialized
1289 by call to VirtualQuery, even if -DNDEBUG.
1291 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1293 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1294 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1296 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1297 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1298 specified format qualifiers, except in special case...
1299 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1300 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1301 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1304 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1306 Avoid multiple link time definitions of _printf() for C++;
1307 (problem reported by Alexander Shaduri, via MinGW-users ML).
1309 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
1310 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
1312 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1314 * include/_mingw.h: Increment version to 3.16.
1316 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
1318 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
1319 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
1320 __fp_unordered_compare): Add prototypes.
1321 * include/stdio.h (vsnwprintf): Add prototype.
1322 * include/wchar.h (vsnwprintf): Add prototype.
1323 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
1324 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
1326 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1328 Correct disposition of wchar_t output in printf().
1330 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
1331 (argval): ...this, in inner scope, with singular type `wchar_t'; use
1332 it to pass one wchar to __pformat_wputchars(), for output.
1334 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1336 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
1338 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1340 Convert to monolithic configuration procedure.
1342 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
1343 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
1344 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
1345 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
1346 (CRT0S): Relocate from `profile'; define it as appropriate.
1347 (LIBM_A): Define and AC_SUBST it unconditionally.
1348 (AC_CONFIG_SUBDIRS): Remove; none to configure.
1349 (AC_OUTPUT_FILES): Add `Makefile' for each of...
1350 (mingwex, profile): ...these subdirectories.
1352 * configure: Regenerated.
1354 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
1355 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
1356 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
1357 (SUBDIRS): Define explicitly, to run recursive `make' in...
1358 (mingwex, profile): ...these; simplify build commands...
1359 (rootme, rootsrc): ...without these shell variables.
1360 (all, subdirs): Delete redundant build commands.
1361 (FIXME): Flag various issues for follow up.
1363 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
1364 (top_srcdir): ...this new macro; let AC_SUBST define it.
1365 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1366 (Makefile): Make it depend on...
1367 (top_builddir/config.status): ...this, itself depending on...
1368 (top_srcdir/configure): ...this.
1369 (FIXME): Flag various issues for follow up.
1371 * mingwex/aclocal.m4: File no longer required; delete it.
1372 * mingwex/configure mingwex/configure.in: Likewise.
1374 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
1375 (top_srcdir): ...this new macro; let AC_SUBST define it.
1376 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1377 (Makefile): Make it depend on...
1378 (top_builddir/config.status): ...this, itself depending on...
1379 (top_srcdir/configure): ...this.
1380 (FIXME): Flag various issues for follow up.
1382 * profile/aclocal.m4: File no longer required; delete it.
1383 * profile/configure profile/configure.in: Likewise.
1385 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1387 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
1388 to complaints that it causes issues.
1390 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
1392 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
1394 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1396 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
1397 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
1398 to all inline functions.
1400 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1402 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
1403 * CRT_fp10.c: Ditto.
1405 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1407 * cpu_features.c: replace gcc-specific construct with portable alternative
1408 and match the code a few lines above.
1409 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
1411 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1413 * include/_mingw.h: Changes required for PCC compiler.
1415 2009-07-18 Jeff Lu <jll544@yahoo.com>
1417 * mingwex/usleep.c: round up to next ms
1419 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1421 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
1422 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
1423 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
1424 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
1426 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1428 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
1430 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
1432 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
1433 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
1434 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
1435 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
1436 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
1437 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
1438 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
1439 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
1440 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
1441 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
1442 sources as of Apr. 20, 2009. Update further to match the sources in
1443 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
1444 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
1445 double/ulong union from U to dbl_union for better grepping and white-
1448 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1450 * include/stdlib.h (_wtof): Define.
1452 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
1454 * include/stdint.h (int_fast8_t): Specify as signed char.
1455 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
1456 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1458 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1460 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1462 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1464 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1465 (Requested by Robert Riebisch)
1467 * mingwex/getopt.c (getopt_parse): Track external increments of...
1468 (optind): ...this global variable.
1470 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1472 * include/_mingw.h: Increment version to 3.15.2.
1474 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1476 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1477 Also add tentative support for BSD specific `optreset' feature.
1479 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1480 (__mingw_optreset): ...this new global variable.
1482 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1483 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1486 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1488 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1489 Correct mishandling of invalid characters in printf() format specs.
1491 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1492 (backtrack): ...this new automatic variable, at start of each format
1493 conversion specification substring; use it to backtrack, and print the
1494 substring literally, if any invalid character is encountered.
1496 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1498 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1499 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1500 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1501 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1502 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1503 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1504 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1505 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1506 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1507 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1508 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1509 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1510 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1511 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1513 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1515 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1517 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1519 Correct some binary distribution packaging defects.
1521 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1522 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1523 intermediate goals; they make packages of files, as specified by...
1524 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1525 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1527 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1529 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1530 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1532 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1533 of radix point conditional on precision != 0 or `#' flag specified.
1535 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1537 Fix MinGW-Bug [2160227]
1538 Eliminate conflicting declarations and implementations of scalb().
1540 * moldname.def.in (scalb): Comment out of EXPORTS list.
1541 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1542 with GCC's built-in declaration.
1544 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1546 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1548 * mingwex/Makefile.in: Ditto.
1549 * profile/Makefile.in: Ditto.
1550 * configure.in: Record mingw front-end for building under Cygwin.
1551 * mingwex/configure.in: Ditto.
1552 * profile/configure.in: Ditto.
1553 * configure: Regenerate.
1554 * mingwex/configure: Ditto.
1555 * profile/configure: Ditto.
1557 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1559 Use de-facto standard Makefile goals to invoke test suite.
1561 * Makefile.in: Some minor formatting adjustments.
1562 (test_headers): Unconventionally named goal renamed to...
1563 (check-headers): ...this; make it a prerequisite of...
1564 (check): ...this new conventionally named goal.
1566 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1568 Make strtod() inline definition C89 compliant.
1569 (Issue reported by Ilya Shestopalov and Ian Puleston)
1570 (Correction identified by Danny Smith)
1572 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1573 reformat inline function definition.
1575 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1577 * include/_mingw.h: Increment version to 3.15.1 and introduce
1578 __MINGW32_PATCHLEVEL variable.
1580 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1582 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1583 (Reported by Christian Franke)
1585 * mingwex/getopt.c (optind): Make global variable value conform to
1586 behaviour specified by POSIX; do not use it for internal state in...
1587 (getopt_parse): ...this static function; use...
1588 (optbase): ...this new static local variable instead.
1589 (getopt_resolved): Update `optind' as required.
1591 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1593 Improve package identification in configure script.
1595 * configure.ac (AC_INIT): Redefine parameters...
1596 (PACKAGE_NAME): Set to `MinGW Runtime'.
1597 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
1598 (PACKAGE_TARNAME): Set to `mingwrt'.
1599 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
1600 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
1601 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
1603 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
1604 (PACKAGE_TARNAME): ...this.
1606 * configure: Regenerated.
1608 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1610 Fix MinGW-Bug [2125708].
1611 (Reported by Alexandr Zamaraev).
1613 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
1614 not wanted here; remove it; replace it by...
1615 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
1616 (_invalid_parameter_handler): ...this function typedef.
1618 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
1620 * Makefile.in: Don't include host_os as part of snapshot filename.
1622 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1624 Fix MinGW-Bug [2119504].
1625 (Reported by Peiyuan Song).
1627 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
1628 (*retindex): ...this already correctly assigned return variable...
1629 (opt[index].val): ...with this; this should have been assigned to...
1630 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
1632 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1634 Fix MinGW-Bug [2117379].
1635 (Reported by Peiyuan Song).
1637 * include/stdio.h (__argv): Replace all references in function
1638 prototype argument lists and inline function local variables, with ...
1639 (__local_argv): ...this, to avoid potential conflict with ...
1640 * include/stdlib (__argv): ...this #defined macro.
1642 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1644 * include/_mingw.h: Increment version to 3.15.
1646 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1648 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
1649 naming standard for Cygwin.
1651 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1653 Reimplement getopt.c to add getopt_long_only() function.
1655 (N.B. this reimplementation removes support for BSD/Mac-OS-X
1656 `optreset' nonsense; user code should set `optind = 0' instead,
1657 to reinitialise option scanning).
1659 * mingwex/getopt.c: Delete all content; reimplement it.
1660 * include/getopt.h: Likewise.
1662 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
1663 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
1665 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1667 Implement conditional replacement for printf() family functions.
1669 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
1670 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
1671 flag for use in user specified __MINGW_FEATURES__ attribute.
1672 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
1673 currently unused: reserved as components of...
1674 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
1675 a __MINGW_FEATURES__ enhancement to setlocale().
1677 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
1678 (__mingw_fprintf, __mingw_vfprintf): Likewise.
1679 (__mingw_sprintf, __mingw_vsprintf): Likewise.
1680 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
1681 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
1682 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
1683 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
1684 usage; link to DLL import stub, importing from MSVCRT.
1685 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1686 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1687 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
1688 locally defined static stub implementation.
1689 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1690 __mingw_fprintf and __mingw_sprintf respectively.
1691 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
1692 static inline implementation for C++ and GNU C, or locally defined
1693 static stub otherwise.
1694 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1695 __mingw_vfprintf and __mingw_vsprintf respectively.
1697 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1699 Avoid access violations, passing NULL to printf( "...%s..." );
1700 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
1702 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
1703 for argument value, if caller passes a NULL pointer.
1704 (__pformat_wcputs): Likewise, substitute L"(null)".
1706 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1708 Add missing dependencies for building libmingwex.a.
1710 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
1711 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
1712 (pformat.h): ...this.
1714 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1716 Add replacements for remaining members of printf() family.
1718 * mingwex/stdio/printf.c: New file.
1719 * mingwex/stdio/fprintf.c: New file.
1720 * mingwex/stdio/sprintf.c: New file.
1721 * mingwex/stdio/vprintf.c: New file.
1722 * mingwex/stdio/vfprintf.c: New file.
1723 * mingwex/stdio/vsprintf.c: New file.
1725 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1726 (STDIO_OBJS): Add their corresponding object files.
1728 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1730 Replace __mingw_snprintf() with new generic family implementation;
1731 likewise, replace __mingw_vsnprintf().
1733 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
1734 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
1735 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1736 (GDTOA_DISTFILES): Remove mingw_snprintf.c
1737 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
1738 (GDTOA_OBJS): Remove mingw_snprintf.o
1739 (PFORMAT_CFLAGS): New macro; define it, as required by...
1740 (pformat.o): ...this new explicit build target.
1741 (snprintf.o, vsnprintf.o): Declare prerequisites.
1743 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
1745 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1747 Lay foundations for new printf() function family implementation.
1749 * ofmt_stub.s: New file; implement forward compatibility stub for...
1750 (_get_output_format): ...this MSVCR80.DLL and later function.
1752 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
1753 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
1754 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
1755 (lib%.a): Include ofmt_stub.o when import library does not already
1756 advertise availability of the _get_output_format() function;
1757 Add alias stubs for MINGW_REPL_FUNCS, such that...
1758 (__msvcrt_printf): ...is an alias for Microsoft's printf().
1759 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
1760 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
1761 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
1762 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
1763 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
1764 (clean): Add msvcr*.def.
1766 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
1767 * configure: Regenerated.
1769 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1771 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
1772 (_imp____mb_cur_max_dll): Likewise.
1774 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
1776 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
1777 * include/wchar.h (swprintf, vswprintf): Likewise.
1779 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1781 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
1782 (_get_output_format, _set_output_format): Add references.
1784 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
1785 (_get_output_format, _set_output_format): Declare prototypes.
1786 (_TWO_DIGIT_EXPONENT): Define.
1787 Some other minor formatting adjustments.
1789 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1791 [mingw-Bugs-1801641]
1792 * include/wchar.h (_wfdopen): Const-ify second arg.
1793 * include/stdio.h (_wfdopen): Likewise.
1794 Thanks to <tdragon at users dot sourceforge net>
1796 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1798 Avoid precision errors in round(), lround() and llround() functions.
1800 * mingwex/math/round_generic.c: New file; it replaces...
1801 * mingwex/math/round.c: ...this; delete it.
1802 * mingwex/math/roundf.c: ...and this; ditto.
1803 * mingwex/math/roundl.c: ...and this; ditto.
1805 * mingwex/math/lround_generic.c: New file; it replaces...
1806 * mingwex/math/lround.c: ...this; delete it.
1807 * mingwex/math/lroundf.c: ...and this; ditto.
1808 * mingwex/math/lroundl.c: ...and this; ditto.
1809 * mingwex/math/llround.c: ...and this; ditto.
1810 * mingwex/math/llroundf.c: ...and this; ditto.
1811 * mingwex/math/llroundl.c: ...and this; ditto.
1813 * mingwex/math/round_internal.h: New file; it provides generic common
1814 code, which is shared by `round_generic.c' and `lround_generic.c'; the
1815 implementation is based on techniques suggested by Danny Smith and
1818 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
1819 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
1820 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
1821 `round_generic.c' and `lround_generic.c'.
1822 (MATH_OBJS): Factor out files listed in...
1823 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
1824 macros; define them; specify dependencies and build rules; add to...
1825 (LIB_OBJS): ...this list.
1827 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
1829 [ mingw-Bugs-1961893 ]
1830 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
1831 mode to 2 for E format.
1833 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
1835 * include/stdlib.h: Fix strtod under C++.
1837 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
1839 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
1840 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
1842 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
1844 * include/sys/types.h (useconds_t): typedef.
1845 * include/unistd.h (usleep): Add prototype.
1846 * mingwex/usleep.c: New file.
1847 * mingwex/makefile.in: Add usleep source and object.
1849 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
1851 Make strtod() conform to C99.
1853 * include/stdlib.h (strtod): Declare this mingwex function, and...
1854 (_strtod): rename this MSVCRT counterpart.
1856 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
1858 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
1860 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
1862 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1864 * include/process.h: Include stdint.h for intptr_t definition.
1865 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
1866 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
1867 _spawnvpe): Return intptr_t.
1868 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
1869 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
1871 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
1873 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
1874 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
1875 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
1876 _wspawnvp, _wspawnvpe): Return intptr_t.
1878 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1880 * include/wchar.h (fwide): Return success code rather than failure in inline
1882 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
1883 code rather than failure.
1885 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
1887 * include/math.h (float_t, double_t): Define.
1889 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
1891 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
1892 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
1893 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
1895 2008-02-28 Joseph Myers <joseph@codesourcery.com>
1897 * include/complex.h: Don't condition contents on C99 or not
1900 2008-02-01 Brian Dessent <brian@dessent.net>
1902 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
1903 the different runtime versions.
1905 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
1907 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
1908 (mbsinit): Likewise.
1910 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1912 * include/_mingw.h: Increment version to 3.14.
1914 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1916 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
1917 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
1918 * mingwex/math/log10f.S: Correct issue with comments.
1919 * mingwex/math/log10l.S: Ditto.
1920 * mingwex/math/log1p.S: Ditto.
1921 * mingwex/math/log1pf.S: Ditto.
1922 * mingwex/math/log1pl.S: Ditto.
1923 * mingwex/math/log2.S: Ditto.
1924 * mingwex/math/log2f.S: Ditto.
1925 * mingwex/math/log2l.S: Ditto.
1926 * mingwex/math/logf.S: Ditto.
1927 * mingwex/math/logl.S: Ditto.
1929 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
1931 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
1933 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
1935 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
1936 from '_fsize_t' to '__int64' to be consistent with the other ...64
1937 structures and the value set there is 8 bytes not 4. Add guard for both
1938 as the are only used by functions available from 6.1 on.
1940 * include/malloc.h (_HEAP_MAXREQ): Define.
1941 (_aligned_offset_recalloc): Define.
1942 (_aligned_recalloc()): Define.
1944 * include/math.h: fixed a typo in a comment.
1945 (atanhf): Fixed declaration.
1947 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
1948 to '__int64' to be consistent with the other ...64 structures and the value
1949 set there is 8 bytes not 4. Added guard as this function is only used by
1950 functions available from 6.1 on.
1952 * include/sys/stat.h: some members of 'stat' were declared with types with
1953 a prefixed underscore, while the ones without the underscore should have
1954 been used. Added guard to '__stat64' as it is only used by functions
1955 available from 6.1 on. Added the wide character versions of the
1956 exec()/spawn() family for completion
1957 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
1960 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
1961 from 'long' to 'time_t'
1962 (__timeb64): moved declaration of structure directly before the declaration
1963 of the function '_ftime64()', so it is guarded as well
1965 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
1966 before the declaration of the functions using it, so it is guarded as well
1968 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
1970 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
1971 case. Add missing break in 's'/LEN_S case.
1973 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1975 Make snprintf() and vsnprintf() conform to C99.
1977 * include/stdio.h: Add note about incompatibility between...
1978 (snprintf, vsnprintf): These two mingwex functions, and...
1979 (_snprintf, _vsnprintf): these MSVCRT counterparts.
1981 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
1982 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
1984 * mingwex/stdio/snprintf.c: Delete.
1985 * mingwex/stdio/vsnprintf.c: Delete.
1987 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
1988 (vsnprintf): Alias to __mingw_vsnprintf.
1990 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1992 * include/_mingw.h: Increment version to 3.13.
1993 * Makefile.in: Reset CYGRELEASE to 1
1995 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1997 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
1998 resulting from incomplete removal of enclosing `for ...; do ...; done'
1999 loop from compound command; (reported by Greg Chicares).
2001 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2003 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2006 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2008 [mingw-Bugs-1734142]
2009 * include/wchar.h (_wsystem) Declare.
2011 (_wgetenv): Declare.
2012 (_wsearchenv): Declare.
2013 (_wmakepath): Declare.
2014 (_wsplitpath): Declare.
2015 (_wfullpath): Declare.
2016 * include/stdlib.h (_wsystem) Declare.
2017 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
2018 _wfullpath): Move into _WSTDLIB_DEFINED guard.
2019 * include/tchar.h (_tsystem): New UNICODE mapping define.
2021 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
2023 * mingwex/gdtoa/mingw_snprintf.c: New file.
2024 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
2025 (GDTOA_OBJS): Add mingw_snprintf.o.
2027 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
2029 * msvcrt.def.in: Update comment.
2030 Exclude _ctype stub if using msvcr71.dll or newer.
2031 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
2032 * include/wctype.h: Likewise.
2034 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2036 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
2037 *include/dirent.h: Likewise.
2039 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2041 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
2042 * include/conio.h: Likewise.
2043 * include/ctype.h: Likewise.
2044 * include/direct.h: Likewise.
2045 * include/dos.h: Likewise.
2046 * include/errno.h: Likewise.
2047 * include/fenv.h: Likewise.
2048 * include/float.h: Likewise.
2049 * include/inttypes.h: Likewise.
2050 * include/io.h: Likewise.
2051 * include/libgen.h: Likewise.
2052 * include/locale.h: Likewise.
2053 * include/malloc.h: Likewise.
2054 * include/mbctype.h: Likewise.
2055 * include/mbstring.h: Likewise.
2056 * include/process.h: Likewise.
2057 * include/search.h: Likewise.
2058 * include/setjmp.h: Likewise.
2059 * include/signal.h: Likewise.
2060 * include/stdio.h: Likewise.
2061 * include/stdlib.h: Likewise.
2062 * include/string.h: Likewise.
2063 * include/time.h: Likewise.
2064 * include/wchar.h: Likewise.
2065 * include/sys/stat.h: Likewise.
2066 * include/sys/time.h: Likewise.
2067 * include/sys/timeb.h: Likewise.
2068 * include/sys/utime.h: Likewise.
2070 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2072 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2074 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2076 Add POSIX binary tree search API.
2078 * mingwex/tfind.c: New file.
2079 * mingwex/tdelete.c: New file.
2080 * mingwex/tsearch.c: New file.
2081 * mingwex/twalk.c: New file.
2082 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2083 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2084 * include/search.h (tfind): Declare.
2091 (node_t): Define, on condition of _SEARCH_PRIVATE.
2093 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2095 * include/_mingw.h (__MINGW_NOTHROW): Define.
2097 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2099 * include/stdio.h (vsnprintf): Remove inline definition.
2102 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2104 * CRTfmode.c: Nit-pick comment fix.
2106 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2108 * CRTfmode.c: Fix nested comment.
2110 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2112 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2114 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2116 * include/io.h (lseek64) : Add prototype.
2118 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2120 * include/string.h (strcasecmp): Add prototype.
2121 (strncasecmp): Add prototype.
2123 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2125 * Makefile.in (CRT0S): Revert last change.
2126 * CRTfmode.c. Correct comment.
2128 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2130 * Makefile.in (CRT0S): Add back CRTfmode.o.
2132 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2134 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2135 * include/io.h: Likewise.
2137 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2139 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2141 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2143 * include/stdint.h (intptr_t): Fix typo.
2144 Thanks to Charles Wilson for report.
2146 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2148 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2149 Condition on _WIN64.
2150 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2151 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2152 (PTRDIFF_MIN): Define as INTPTR_MIN.
2153 (PTRDIFF_MAX): Define as INTPTR_MAX.
2154 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2155 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2157 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2159 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2160 Cygwin man page location.
2162 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2164 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2165 support Cygwin man page location.
2167 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2169 * Include/_mingw.h: Increment version to 3.12.
2171 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2173 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2175 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2177 * Makefile.in: Tweak srcdist to fix build issue.
2179 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2181 Add --enable-mingw-manpage-transform configure option.
2183 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2184 * configure.in, Makefile.in: Use it.
2185 * configure: Regenerated.
2187 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2189 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2191 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2193 Add manpages for dirname and basename functions.
2195 * man: New directory.
2196 * man/dirname.man: New file; it sources both manpages.
2197 * Makefile.in: Add provisional rules to distribute them.
2199 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2201 * mingwex/basename.c: Make it work with path names containing
2202 multibyte character strings.
2203 * mingwex/dirname.c: Likewise.
2205 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2207 * include/io.h (__mingw_access): New static inline wrapper to restore
2208 pre-Vista 'access (fname, X_OK)' behaviour.
2209 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2211 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2213 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2215 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2217 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2219 * include/stdio.h (_unlink, unlink): Add prototypes.
2221 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2223 * include/excpt.h: Replace "_try1" in comments with "__try1".
2225 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2227 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2228 (ALL_CXXFLAGS): Likewise.
2229 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2230 (ALL_CXXFLAGS): Likewise.
2231 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2232 (ALL_CXXFLAGS): Likewise.
2234 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2236 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2238 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2240 Expose some more msvcr80.dll functions.
2241 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2242 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2243 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2244 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2246 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2248 Expose some msvcr80.dll functions.
2249 * include/stdlib.h (_set_abort_behavior): Add prototype.
2250 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2251 _set_abort_behavior mask argument.
2252 (_invalid_parameter_handler): Add typedef.
2253 (_set_invalid_parameter_handler): Add prototype.
2254 * include/stdio.h (_get_printf_count_output): Add prototype.
2255 (_set_printf_count_output): Add prototype.
2256 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2257 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2259 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2261 * include/_mingw.h (CRT_INLINE): Correct typo.
2263 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2265 * include/io.h (X_OK): Define to F_OK.
2267 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2269 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2270 unconditionally. Change comment.
2271 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2273 * include/io.h (rename): Declare.
2276 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2278 * include/libgen.h: New file; required by...
2279 * mingwex/basename.c, mingwex/dirname.c: New files.
2280 * mingwex/Makefile.in (DISTFILES): Add them...
2281 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2282 (Dependencies): Typo; s/Dependancies/Dependencies/
2284 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2286 * Makefile.in (VERSION): Let configure define it.
2288 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2289 * configure.in: Use it.
2290 Correct quoting of autoconf macro arguments throughout.
2291 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2292 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2293 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2294 (AC_CONFIG_FILES): Add, to generate Makefile.
2296 * configure: Regenerated.
2298 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2300 * Makefile.in: Add aclocal.m4 to source release.
2301 * mingwex/Makefile.in: Ditto.
2302 * profile/Makefile.in: Ditto.
2304 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2306 * Include/_mingw.h: Increment version to 3.11.
2307 * Makefile.in: Ditto.
2309 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
2311 [ mingw-Bugs-1590623 ]
2312 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
2315 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
2317 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
2318 correctly parenthesized.
2320 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2322 * mingwex/mb_wc_common.h (get_codepage): Get it
2325 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2327 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
2329 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
2331 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
2334 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
2336 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
2339 2006-09-11 Christopher Faylor <cgf@timesys.com>
2341 * Makefile.in: Semi-revert 2006-08-30 change.
2343 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2345 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
2346 (__MINGW_IMPORT): Ansify.
2347 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
2348 __MINGW_ATTRIB_DEPRECATED.
2350 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2352 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
2353 Redundant macros; deleted.
2355 * configure.in (LIB_AC_PROG_CC): Replaced by...
2356 (AC_PROG_CC): ...this.
2358 * configure: Regenerated.
2360 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
2362 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
2363 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
2364 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
2366 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
2368 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
2369 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
2370 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
2371 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
2373 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
2374 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
2375 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
2376 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
2377 * mingwex/wcstold.c: Avoid using strtold internals.
2378 * mingwex/wcstof.c: Rewrite.
2379 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
2380 (GDTOA_OBJS): Add to library.
2381 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
2382 (STDLIB_OBJS): Remove.
2383 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
2384 (Q8_OBJS): Add wcstof.o wcstold.o.
2385 * include/stdlib.h (strtof): Remove inline definition.
2387 * include/wchar.h (wcstof): Remove inline definition.
2389 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
2391 * Makefile.in: Add with_cross_host to allow more granular checks.
2392 Set installation directories accordingly. Override CC setting only
2393 if building a Cygwin target.
2394 * aclocal.m4: Regenerate.
2395 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
2396 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
2397 Test AC_ALLOCA only if building on a native system.
2398 * configure: Regenerate.
2400 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2402 * include/ctype.h: Fix typo.
2404 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2406 * include/ctype.h: Expose iswblank if __cplusplus.
2407 * include/wctype.h: Expose iswblank if __cplusplus.
2409 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2411 * include/ctype.h: Remove stray ')';
2413 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2415 * include/ctype.h (_BLANK): Expand comment.
2416 (isblank): Add prototype and inline definition.
2417 (iswblank): Add prototype and inline definition.
2418 * include/wctype.h (iswblank): Add prototype and inline definition.
2419 * mingwex/isblank.c: New file.
2420 * mingwex/iswblank.c: New file.
2421 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2423 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
2425 * include/math.h (__INFF,__INFL): Remove '#'.
2427 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2429 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2431 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
2433 Support SSE float environment in fenv.h functions.
2434 * cpu_features.c: New file.
2435 * cpu_features.h: New file.
2436 * crt1.c: Include "cpu_features.h".
2437 (__mingw_CRTStartup): Call cpu_features_init().
2438 * Makefile.in (MING_OBJS): Add cpu_features.c.
2439 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
2440 * include/fenv,h ( fenv_t;): Append __mxcsr field.
2441 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
2442 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
2443 (__MXCSR_ROUND_FLAG_SHIFT): New define.
2444 * mingwex/feclearexcept.c: Include "cpu_features.h".
2445 Handle SSE environment.
2446 * mingwex/fegetenv.c: Likewise.
2447 * mingwex/feholdexcept.c: Likewise.
2448 * mingwex/fesetenv.c: Likewise.
2449 * mingwex/fesetexceptflag.c: Likewise.
2450 * mingwex/fesetround.c: Likewise.
2451 * mingwex/fetestexcept.c: Likewise.
2452 * mingwex/feupdateenv.c: Likewise.
2453 * mingwex/fegetround.c: Add comment.
2455 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2457 * Include/_mingw.h: Increment version to 3.10.
2458 * Makefile.in: Ditto.
2460 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2462 * mingwex/math/tgamma.c (SQTPI): Add braces.
2464 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2466 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2467 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2469 * mingwex/math/sf_erf.c (erff): Initialize z.
2471 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2473 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2475 * Include/_mingw.h: Increment version to 3.10.
2476 * Makefile.in: Ditto.
2478 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2480 * include/sys/time.h (struct timezone): Define.
2481 * include/time.h: Correct comment about timezone.
2483 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2485 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2486 * configure: Regenerate.
2488 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2490 * configure: add srcdir as a possible location for install-sh.
2492 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2494 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2495 (_topendir): Use it.
2497 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2499 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2501 (gettimeofday): Add prototype.
2502 * mingwex/gettimeofday.c: New file.
2503 * mingwex/makefile.in: Add gettimeofday source and object.
2505 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2507 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2508 else global library variable.
2509 (HUGEVALF): Likewise.
2510 (HUGEVALL): Likewise.
2511 (INFINITY): Likewise.
2514 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2516 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2518 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2520 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2522 2006-05-24 Christopher Faylor <cgf@timesys.com>
2524 * configure.in: Update to newer autoconf.
2525 (thanks to Steve Ellcey)
2526 * mingwex/configure.in: Ditto.
2527 * profile/configure.in: Ditto.
2528 * configure: Regenerate.
2529 * mingwex/configure: Ditto.
2530 * profile/configure: Ditto.
2531 * aclocal.m4: New file.
2532 * mingwex/aclocal.m4: Ditto.
2533 * profile/aclocal.m4: Ditto.
2535 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2537 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2538 Use supplied codepage as arg to WideCharToMultiByte.
2540 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2542 * Makefile.in (libmsvcr80.a): Add import lib.
2543 (libmsvcr80d.a): Ditto.
2545 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2547 * Makefile.in: Bump cygwin build number.
2549 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2551 * Include/_mingw.h: Increment version to 3.9.
2552 * Makefile.in: Ditto.
2554 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2556 * include/limits.h (SSIZE_MAX): Define.
2557 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2559 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2561 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2562 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2564 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2566 * include/stddef.h: Remove.
2567 * include/stdarg.h: Remove.
2569 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2571 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2572 of result is positive when real part of arg == 0;
2573 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2574 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2576 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2578 * include/time.h (_time64): Correct prototype.
2580 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2582 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2583 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2584 to non-stop. Use "fnclex" to clear exception flags.
2586 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
2588 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
2589 Avoid raising FP exceptions.
2591 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2593 * include/stdlib.h (strtof): Add prototype. Uglify
2594 parameter names in inline definition.
2596 (_Exit): Uglify parameter names in inline definition.
2597 (llabs): Add prototype.
2598 (_set_error_mode): Add prototype and input defines.
2600 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2602 * mingwex/fe*.c: Revert previous changes.
2603 * include/fenv.h: Revert previous changes.
2605 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2607 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
2608 Do not return a value.
2609 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
2610 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
2611 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
2612 * mingwex/fegetenv.c (fegetenv): Likewise.
2613 * mingwex/fesetenv.c (fesetenv): Likewise.
2614 * mingwex/feupdateenv.c (feupdateenv): Likewise.
2615 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
2616 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
2619 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2621 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
2622 getting filelength for SEEK_END.
2624 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2626 * Include/_mingw.h: Increment version to 3.8.
2627 * Makefile.in: Ditto.
2629 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2631 * include/wctype.h (towupper, towlower): Change arg and return value
2633 * include/ctype.h (towupper, towlower): Likewise.
2635 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2637 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
2638 a diagnostic, guarded by #ifdef DEBUG.
2639 (__mingwthr_remove_key_dtor): Likewise.
2641 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2643 * moldname.def.in (sleep, beep, seterrormode): Remove.
2645 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2647 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
2648 (_MCOUNT_DECL): Use it.
2649 (MCOUNT): Save and restore eax, ecx, edx registers.
2650 * profile/mcount.c (_mcount): ANSI-fy.
2652 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2654 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
2655 guard __MINGW_ATTRIB macro definitions.
2656 * include/math.h (logb[fl]): Don't define inlines for
2657 GCC-4.0+ && __FAST_MATH__.
2658 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
2659 line-continuation backslashes.
2661 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
2663 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
2664 in GNUC version guard.
2666 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
2668 * crt1.c (_gnu_exception_handler): Handle illegal instruction
2669 OS exception as a signal if user has defined a SIGILL handler.
2671 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
2673 * mingwex/math/nexttoward.c: New file.
2674 * mingwex/math/nexttowardf.c: New file.
2675 * mingwex/math/nextafterl.c: Add nexttowardl alias.
2676 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
2678 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
2679 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
2682 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
2684 * mingwex/math/nextafterf.c (nextafterf): Correct
2686 * mingwex/math/nextafterl.c: New file.
2687 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
2688 (MATH_OBJS): Add nextafterl.o.
2689 * include/math.h (nextafterl): Uncomment prototype.
2691 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2693 * mingwex/math/erfl.c: New file.
2694 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
2695 (MATH_OBJS): Add erfl.o.
2696 * include/math.h (erfl, erfcl): Uncomment prototypes.
2698 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
2700 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
2701 #if (WCHAR_MAX <= WCHAR_MIN) is false.
2702 * include/stdint.h (WCHAR_MAX): Likwise.
2703 (WINT_MAX): Likewise.
2705 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
2707 * mingwex/math/signbit.c (__signbit): Make return value
2708 consistent with GCC's __builtin_signbit.
2709 * mingwex/math/signbitf.c (__signbitf): Likewise.
2710 * mingwex/math/signbitf.c (__signbitl): Likewise.
2711 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
2714 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
2716 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
2718 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
2719 Remove unused MBTOWC_FLAGS define.
2721 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
2723 * mingwex/mbrtowc.c: New file.
2724 * mingwex/wcrtomb.c: New file.
2725 * mingwex/btowc.c: New file.
2726 * mingwex/wctob.c: New file.
2727 * mingwex/mb_wc_common.h: New file.
2728 * mingwex/Makefile.in (DISTFILES): Add new files.
2729 (Q8_OBJS): Add new objects.
2730 * include/wchar.h: Adjust comment about mbrtowc() and related
2731 funcions. Add __restrict__ to pointer params in prototypes.
2732 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
2733 arg names from protototypes.
2735 2005-04-23 Wu Yongwei <adah@sh163.net>
2737 * mingwex/dirent.c: Formatting changes.
2738 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
2741 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
2743 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
2745 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
2747 * include/stdio.h (__mingw_fwrite): Change return value to
2749 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
2751 2005-03-15 Hans Leidekker <hans@it.vu.nl>
2753 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
2755 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2757 * include/wctype.h (wctrans): Remove _CRTIMP.
2758 (towctrans): Likewise.
2761 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2763 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
2765 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2767 * mingwex/wctype.c: New file.
2768 * mingwex/wctrans.c: New file.
2769 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
2770 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
2772 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2774 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
2776 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2778 * include/assert.h: Remove header guard. #undef assert macro.
2779 (_assert): Use __MINGW_ATTRIB_NORETURN define.
2781 2005-02-11 Gregory W. Chicares <chicares@cox.net>
2783 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
2784 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
2786 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
2787 * mingwex/math/expm1.c: New file.
2788 * mingwex/math/expm1f.c: New file.
2789 * mingwex/math/expm1l.c: New file.
2791 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
2793 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
2794 * include/wchar.h (struct stat): Likwwise.
2795 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
2797 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
2799 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
2801 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
2802 string is not valid.
2804 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
2806 * include/malloc.h: Add missing return code defines for
2809 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
2811 * include/sys/stat.h (struct __stat64): Change st_size type to
2813 * include/wchar.h (struct __stat64): Change st_size type to __int64.
2815 2005-01-13 Earnie Boyd <earnie@users.sf.net>
2817 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2819 * include/errno.h (ELOOP): Ditto.
2820 * include/_mingw.h: Increment version to 3.7.
2821 * Makefile.in: Ditto.
2823 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
2825 * include/tchar.h (_tfreopen): Add UNICODE mappings.
2827 2005-01-11 Earnie Boyd <earnie@users.sf.net>
2829 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2830 lstat): Conditionalize defines for __STRICT_ANSI__.
2832 2005-01-10 Earnie Boyd <earnie@users.sf.net>
2834 * include/errno.h (ELOOP): Add definition.
2836 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
2838 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
2839 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
2840 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
2841 ctanl.c ctanhl.c): New files.
2842 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2843 (COMPLEX_OBJS): Adjust.
2844 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
2845 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
2846 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
2849 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2851 * include/_mingw.h (__int16): Define as short.
2852 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
2854 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2856 * include/stdio.h (P_tmpdir): Add define.
2858 2005-01-03 Earnie Boyd <earnie@users.sf.net>
2860 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
2862 2005-01-02 Earnie Boyd <earnie@users.sf.net>
2864 * include/_mingw.h: Increment version to 3.6
2865 * Makefile.in: Ditto
2867 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
2869 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
2870 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
2871 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
2872 ctanf.c ctanhf.c): New files.
2873 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2874 (COMPLEX_OBJS): Adjust.
2875 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
2876 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
2877 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
2880 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
2882 * include/wchar.h (wcsdup): Correct prototype.
2883 * include/string.h (wcsdup): Correct prototype.
2885 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2887 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
2889 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2891 * mingwex/math/fastmath.h: New file.
2892 * mingwex/math/asinh.c: New file.
2893 * mingwex/math/asinhf.c: New file.
2894 * mingwex/math/asinhl.c: New file.
2895 * mingwex/math/acosh.c: New file.
2896 * mingwex/math/acoshf.c: New file.
2897 * mingwex/math/acoshl.c: New file.
2898 * mingwex/math/atanh.c: New file.
2899 * mingwex/math/atanhf.c: New file.
2900 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
2901 atanh, atanhf, atanhl): Add prototypes.
2902 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
2903 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
2904 Specify dependency on fastmath.h for new objects.
2906 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2908 * include/sys/stat.h (_S_IFLNK): Add definition.
2915 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2917 * include/sys/stat.h (_S_ISLNK): Add definition.
2920 2004-09-05 Earnie Boyd <earnie@users.sf.net>
2922 * include/_mingw.h: Increment minor version for 3.5 release.
2923 * Makefile.in: Ditto.
2924 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
2926 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2928 * include/malloc.h (__mingw_aligned_offset_malloc,
2929 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
2930 __mingw_aligned_realloc, __mingw_aligned_free): Add
2932 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
2933 tst-aligned-malloc.c.
2934 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
2936 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
2938 * mingwex/mingw-aligned-malloc.c: New file.
2939 * mingwex/tst-aligned-malloc.c: New file.
2941 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2943 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
2944 noreturn attribute. Align stack to 16 bytes before passing args
2946 (mainCRTStartup): Change return to void.
2947 (WinMainCRTStartup): Likewise.
2949 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2951 * profile/COPYING: New file.
2952 * profile/CYGWIN_LICENSE: New file.
2953 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
2955 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2957 * mingwex/fopen64.c: Move.
2958 * mingwex/fseeko64.c: Move.
2959 * mingwex/ftello64.c: Move.
2960 * mingwex/lseek64.c: Move.
2961 * mingwex/stdio/fopen64.c: To here.
2962 * mingwex/stdio/fseeko64.c: To here.
2963 * mingwex/stdio/ftello64.c: To here.
2964 * mingwex/stdio/lseek64.c: To here.
2966 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2968 * profile/gmon.c [__MINGW32__]: Include string.h for
2971 2004-08-08 Christopher Faylor <cgf@timesys.com>
2973 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
2975 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2977 * include/complex.h: Remove __attribute__ ((const)) from
2978 transcendantal and trig functions. Replace __attribute__ ((const))
2979 with __MINGW_ATTRIB_CONST on other declarations.
2981 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2983 * include/wchar.h: Reorganize, avoid including other headers.
2985 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2987 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
2988 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
2991 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2993 * include/dirent.h (struct _wdirent): Remove obsolete comment.
2995 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2997 * include/string.h: Revert 2004-07-26 additions of
3000 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3002 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3003 (__convert_inf_to_maxnum): New.static inline.
3004 (reducl): Use it to protect against Inf - Inf.
3005 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3007 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3009 * mingwex/math/expl.c (expl): Move body of code to new static
3010 function __expl, removing tests for +/-Inf. Extern function
3011 expl calls __expl after testing for max, min log thresholds.
3013 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3015 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
3016 * mingwex/stdio/vfscanf.c: Likewise.
3017 * mingwex/stdio/vswscanf.c: Likewise.
3018 * mingwex/stdio/vfwscanf.c: Likewise.
3020 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3022 * include/_mingw.h: Use only two underscores to uglify
3023 __MINGW_ATTRIB_* macros.
3024 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
3025 * include/setjmp.h: Likewise.
3027 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
3029 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
3031 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3033 * include/string.h: Group wide string functions together,
3034 and protect with _WSTRING_DEFINED.
3036 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3038 * include/_mingw.h (__MINGW_ATTR_*): Replace with
3040 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
3041 __MINGW_ATTRIB_NORETURN, throughout.
3042 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3044 (abs): Declare with __MINGW_ATTRIB_CONST.
3053 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3055 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3057 * include/_mingw.h: Undefine __attribute__.
3058 (__MINGW_ATTR_NORETURN): New define.
3059 (__MINGW_ATTR_CONST): New define.
3060 (__MINGW_ATTR_MALLOC): New define.
3061 (__MINGW_ATTR_PURE): New define.
3062 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3065 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3067 * include/time.h (__time64_t): Add missing ';'.
3069 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3071 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3072 (struct tm): Protect with _TM_DEFINED.
3074 2004-07-17 Christopher Faylor <cgf@timesys.com>
3076 * Makefile.in (CC): Strip inappropriate include file settings from any
3079 2004-07-15 "dgun" <dgun@umpire.com>
3081 * include/complex.h (conj): Correct typo in prototype.
3083 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3085 * include/math.h: Add pragma GCC system_header.
3087 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3089 * mingwex/complex/carg.c: New file.
3090 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3092 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3094 * Makefile.in (INCLUDES): Temporarily revert previous change.
3095 * mingwex/Makefile,in (INCLUDES): Ditto.
3096 * profile/Makefile,in (INCLUDES): Ditto.
3097 * mingwex/Makefile,in: Drop carg.o dependency.
3099 2004-07-14 Christopher Faylor <cgf@timesys.com>
3101 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3103 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3105 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3107 * mingwex/Makefile,in (INCLUDES): Ditto.
3108 * profile/Makefile,in (INCLUDES): Ditto.
3110 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3112 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3114 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3116 * mingwex/Makefile.in: Ditto.
3117 * profile/Makefile.in: Ditto.
3118 * include/limits.h: Change to new file header preamble.
3119 * include/_mingw.h: Increment minor version for 3.4 release.
3120 * Makefile.in: Ditto.
3122 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3124 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3126 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3128 * include/unistd.h (ftruncate): Add inline definition.
3129 * mingwex/ftruncate.c: New file.
3130 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3132 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3134 * include/time.h: Do not include sys/types.h.
3136 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3138 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3139 (MATH_OBJS): Remove pow,o.
3140 * include/math.h (pow): Declare with _CRTIMP.
3141 Add comment on how to avoid excess precision problems.
3143 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3145 * include/stdio.h (__mingw_fseeko64): Add prototype.
3146 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3147 (__mingw_fwrite): Handle huge files.
3149 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3150 Danny Smith <dannysmith@users.sourceforge.net>
3152 * include/stdio.h (fopen64): Add inline function.
3153 (fseeko64): Add prototype.
3154 (ftello64): Add inline function.
3155 * include/io.h (lseek64): Add inline function.
3156 * include/sys/types (off64_t): Add typedef.
3157 (fpos64_t): Add typedef.
3158 * mingwex/fopen64.c: New file.
3159 * mingwex/fseeko64.c: New file.
3160 * mingwex/ftello64.c: New file.
3161 * mingwex/lseek64.c: New file.
3162 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3163 fseeko.64.c, ftello64.c, lseek64.c.
3164 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3166 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3168 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3170 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3172 * DISCLAIMER: Add words about "free to use".
3173 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3174 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3175 (inst_docdir): New variable.
3177 (FLAGS_TO_PASS): Include inst_docdir.
3178 (install-dirs): Add inst_docdir.
3179 (install): Add loop for INSTDOCS.
3180 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3181 section to CONTRIBUTORS file. Remove RCS tags.
3183 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3185 * mingwex/math/lround.c: Rewrite.
3186 * mingwex/math/lroundf.c: Rewrite.
3187 * mingwex/math/lroundl.c: Rewrite.
3188 * mingwex/math/llround.c: Rewrite.
3189 * mingwex/math/llroundf.c: Rewrite.
3190 * mingwex/math/llroundl.c: Rewrite.
3192 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3194 * CONTRIBUTORS: New file.
3195 * DISCLAIMER: Ditto.
3196 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3197 section to CONTRIBUTORS file. Remove RCS tags.
3198 * CRTFmode.c: Ditto.
3202 * crtdll.dev: Ditto.
3212 * msvcrt.def.in: Ditto.
3213 * strcasecmp.c: Ditto.
3216 * include/assert.h: Ditto.
3217 * include/conio.h: Ditto.
3218 * include/ctype.h: Ditto.
3219 * include/direct.h: Ditto.
3220 * include/dirent.h: Ditto.
3221 * include/dos.h: Ditto.
3222 * include/errno.h: Ditto.
3223 * include/excpt.h: Ditto.
3224 * include/fcntl.h: Ditto.
3225 * include/float.h: Ditto.
3226 * include/io.h: Ditto.
3227 * include/locale.h: Ditto.
3228 * include/malloc.h: Ditto.
3229 * include/math.h: Ditto.
3230 * include/process.h: Ditto.
3231 * include/setjmp.h: Ditto.
3232 * include/share.h: Ditto.
3233 * include/signal.h: Ditto.
3234 * include/stdio.h: Ditto.
3235 * include/stdlib.h: Ditto.
3236 * include/string.h: Ditto.
3237 * include/tchar.h: Ditto.
3238 * include/time.h: Ditto.
3239 * include/wchar.h: Ditto.
3240 * include/sys/locking.h: Ditto.
3241 * include/sys/param.h: Ditto.
3242 * include/sys/stat.h: Ditto.
3243 * include/sys/timeb.h: Ditto.
3244 * include/sys/types.h: Ditto.
3245 * include/sys/utime.h: Ditto.
3246 * mingwex/dirent.c: Ditto.
3248 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3250 * include/_mingw.h: Revert to primary release 3 and increment minor
3252 * Makefile.in (VERSION): Ditto.
3254 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3256 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3257 _fmode if not __MSVCRT__.
3259 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3261 * include/io.h: (_findfirst): Correct prototype.
3263 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3265 * include/io.h: (_findnext, _findclose): Correct prototype.
3267 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3269 * include/math.h (FP_*): Add defines.
3271 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3273 * mingwex/math/round.c: Rewrite.
3274 * mingwex/math/roundf.c: Rewrite.
3275 * mingwex/math/roundl.c: Rewrite.
3277 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3279 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3280 * include/time.h (__time64_t): Add typedef.
3281 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3282 (_ctime64): Likewise.
3283 (_wctime64): Likewise.
3284 (_gmtime64): Likewise.
3285 (_localtime64): Likewise.
3286 (wcsftime): Move into _WTIME_DEFINED block.
3287 Regroup non-ANSI prototypes.
3288 * include/io.h: Include <stdint.h>.
3289 (__finddata64_t): Add struct definition.
3290 (__wfinddata64_t): Likewise.
3291 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3292 (_findnext64): Likewise.
3293 (_wfindfirst64): Likewise.
3294 (_wfindnext64): Likewise.
3295 * include/sys/timeb.h (__timeb64): Add struct definition.
3296 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3297 * include/sys/utime.h (__utimbuf64): Add struct definition.
3298 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3299 (_futime64): Likewise.
3300 (_wutime64): Likewise.
3301 * include/sys/stat.h (__stat64): Add struct definition.
3302 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3303 (_stat64): Likewise.
3304 (_wstat64): Likwise.
3305 * include/sys/types.h (__time64_t): Add typedef.
3306 * include/wchar.h (__wfinddata64_t): Add structure definition.
3307 (__stat64): Likewise.
3308 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3309 (_wfindfirst64): Likewise.
3310 (_wfindnext64): Likewise.
3311 (_wutime64): Likewise.
3312 (_wstat64): Likwise.
3313 * include/malloc.h (_aligned_free): Add prototype for
3314 __MSVCRT_VERSION__ >= 0x0700.
3315 (_aligned_malloc): Likewise.
3316 (_aligned_offset_malloc): Likewise.
3317 (_aligned_offset_realloc): Likewise.
3318 (_aligned_realloc): Likewise.
3319 * include/string.h (_wcserror): Add prototype for
3320 __MSVCRT_VERSION__ >= 0x0700.
3321 (__wcserror): Likewise.
3322 * include/math.h (_set_SSE2_enable): Add prototype for
3323 __MSVCRT_VERSION__ >= 0x0701.
3325 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3327 * include/stdio.h (_fsopen): Add prototype.
3328 * include/tchar.h (_tfsopen): Add defines.
3329 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
3331 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3333 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
3334 msvcr70.dll, and msvcr71.dll.
3335 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
3336 using basename of output def file.
3338 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3340 * include/malloc.h: Remove __STRICT_ANSI__ guard.
3342 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
3344 * include/process.h: Remove the #endif associated with removal of
3345 __STRICT_ANSI__ guard from non-ANSI header.
3347 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3349 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
3350 * include/direct.h: Ditto.
3351 * include/dirent.h: Ditto.
3352 * include/dos.h: Ditto.
3353 * include/excpt.h: Ditto.
3355 * include/io.h: Ditto.
3356 * inlude/mem.h: Ditto.
3357 * include/memory.h: Ditto.
3358 * include/process.h: Ditto.
3359 * inlude/search.h: Ditto.
3360 * include/share.h: Ditto.
3361 * include/unistd.h: Ditto.
3362 * include/sys/fcntl.h: Ditto.
3363 * include/file.h: Ditto.
3364 * include/sys/locking.h: Ditto.
3365 * include/sys/param.h: Ditto.
3366 * include/sys/stat,h
3367 * include/sys/time.h: Ditto.
3368 * include/sys/timeb.h: Ditto.
3369 * include/sys/types.h: Ditto.
3370 * include/sys/unistd.h: Ditto.
3371 * include/sys/utime.h: Ditto.
3373 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
3375 * include/_mingw.h (__UNUSED_PARAM): Define macro.
3376 * include/wchar.h (fwide): Use it.
3379 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3381 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
3382 NetBSD getopt_long.c.
3384 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3386 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
3387 codes and handling of special chars.
3389 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
3391 * include/stdio.h (feof): Add inlined definition.
3394 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3396 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
3397 directly, rather than via scabnl.
3399 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3401 * mingwex/math/powl.c (powl): Return infinity if
3402 extended precision multiplication of x by log2(y)
3405 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3407 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
3408 (__enan_NI16): Fix another one.
3409 (__enan_NBITS): Tidy.
3411 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3413 * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
3414 types. (Thanks to John Maddock for report.)
3416 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
3418 * include/tchar.h (_puttchar): Define.
3420 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
3422 * include/stdio.h:(_fileno): Define macro version after both
3423 fileno and _fileno functions declared.
3425 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
3426 * moldnames.def.in (rmtmp) Add stub.
3428 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
3430 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
3432 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
3434 * include/math.h: Guard ISO C99 additions with __cplusplus
3437 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3439 * include/_mingw.h: Define __attribute__((x)) to nothing
3442 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3444 * include/complex.h: New file.
3445 * mingwex/complex: New directory.
3446 * mingwex/complex/cabs.c: New file.
3447 * mingwex/complex/cacos.c: New file.
3448 * mingwex/complex/cacosh.c: New file.
3449 * mingwex/complex/casin.c: New file.
3450 * mingwex/complex/casinh.c: New file.
3451 * mingwex/complex/catan.c: New file.
3452 * mingwex/complex/catanh.c: New file.
3453 * mingwex/complex/ccos.c: New file.
3454 * mingwex/complex/ccosh.c: New file.
3455 * mingwex/complex/cexp.c: New file.
3456 * mingwex/complex/cimag.c: New file.
3457 * mingwex/complex/clog.c: New file.
3458 * mingwex/complex/cpow.c: New file.
3459 * mingwex/complex/cproj.c: New file.
3460 * mingwex/complex/creal.c: New file.
3461 * mingwex/complex/csin.c: New file.
3462 * mingwex/complex/csinh.c: New file.
3463 * mingwex/complex/csqrt.c: New file.
3464 * mingwex/complex/ctan.c: New file.
3465 * mingwex/complex/ctanh.c: New file.
3466 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3469 (COMPLEX_OBJS): New list of objects.
3470 (LIB_OBJS): Include it in the library.
3472 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3474 * include/math.h (cabs): Remove non-ISO prototype.
3476 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3478 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3479 Use GCC __builtin's if available.
3480 (INFINITY, INFINITYF, INFINITYL): Likewise.
3482 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3484 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3485 beyond approximation limit.
3486 * mingwex/math/sf_erf.c (erff): Likewise.
3488 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3490 * include/stdio.h (getc): Cast result to unsigned char before
3493 (getchar): Likewise.
3494 (putchar): Likewise.
3495 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3497 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3499 * include/_mingw.h: Increment version to 3.2.
3500 * Makefile.in: Ditto.
3502 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3504 * include/sys/types.h: Revert last change.
3506 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3508 * include/sys/types.h (ssize_t): Correct the definition.
3510 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3512 * include/stdio.h (_filbuf): Add prototype.
3513 (_flsbuf): Add prototype.
3514 (getc): Add inline version.
3516 (getchar): Likewise.
3517 (putchar): Likewise.
3519 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3521 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3524 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3526 * include/stdlib.h: Guard non-ISO functions with
3527 !__STRICT_ANSI__, throughout.
3529 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3531 * include/io.h (_fileno): Remove prototype.
3533 (FILENAME_MAX): Define, if needed.
3534 Don't include <stdio.h>.
3535 * include/stdio.h (FILENAME_MAX): Protect against
3537 (_fileno): Define macro implementation.
3540 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3542 * include/inttypes.h: Include _mingw.h.
3544 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3546 * include/_mingw.h (__CRT_INLINE): Define.
3547 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3549 * include/inttypes.h: Likewise.
3550 * include/math.h: Likewise.
3551 * include/stdio.h: Likewise.
3552 * include/stdlib.h: Likewise.
3553 * include/string.h: Likewise.
3554 * include/wchar.h: Likewise.
3555 * include/wctype.h: Likewise.
3557 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3559 * mingwex/dirent.c (_topendir): Allocate enough memory for
3560 DIR struct in UNICODE case too.
3562 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3564 * include/_mingw.h: Increment version to 3.2.
3565 * Makefile.in: Ditto.
3567 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3569 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3571 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3573 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3574 * mingwex/math/truncf.c (truncf): Likewise.
3575 * mingwex/math/truncl.c (truncl): Likewise.
3576 * mingwex/math/modff.c (modff): Likewise.
3577 * mingwex/math/modfl.c (modfl): Likewise.
3579 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3581 * include/search.h: New file.
3582 * include/stdlib.h: Add comment about qsort, bsearch in
3584 * test_headers.c: Include search.h.
3585 * moldname.def.in (lfind, lsearch): Add.
3587 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3589 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
3590 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
3591 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
3593 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3595 * include/_mingw.h (small, hyper): Change to __small and __hyper to
3596 avoid user space name conflicts.
3598 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3600 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
3601 Note: Also added to w32api/include/basetyps.h.
3602 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
3603 Rename to Small (case difference).
3605 2003-06-18 Earnie Boyd <earnie@users.sf.net>
3607 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
3608 * mingwex/dirent.c: Modifications througout to fill d_name array.
3609 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
3610 libmsvcr71, including debug versions.
3611 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
3613 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
3615 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
3616 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
3618 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
3620 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
3622 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
3624 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
3626 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
3627 but still protect inline definition with __STRICT_ANSI__.
3629 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
3631 * string_old.c: Remove, splitting into...
3632 * strcasecmp.c: New file.
3633 * strncasecmp.c: New file.
3634 * wscmpi.c : New file.
3635 * ctype_old.c: Remove, splitting into...
3636 * isascii.c: New file.
3637 * iscsym.c: New file.
3638 * iscsymf.c: New file.
3639 * toascii.c: New file.
3640 * Makefile.in (MOLD_OBJS): Adjust.
3641 (SRCDIST_FILES): Adjust.
3643 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
3645 * include/math.h (fabs) : Remove inline definition.
3649 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3651 * include/_mingw.h: Change version to 3.0
3652 * Makefile.in: Ditto.
3654 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3656 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
3657 * mingwex/configure.in (W32API_INCLUDE): Ditto.
3658 * profile/configure.in (W32API_INCLUDE): Ditto.
3660 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3662 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
3663 of multiply defined symbols if the symbols is defined locally. E.G.:
3664 A local definition of malloc causes this problem.
3665 * configure: Regenerate.
3666 * profile/Makefile.in (W32API_INCLUDE): New variable.
3667 (ALL_CFLAGS): Use W32API_INCLUDE value.
3668 (ALL_CXXFLAGS): Ditto.
3669 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
3670 Thanks to Jeff Bonggren <jbon@users.sf.net>.
3671 * profile/configure.in (W32API_INCLUDE): Set default value.
3672 * profile/configure: Regenerate.
3673 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
3674 (ALL_CFLAGS): Use W32API-INCLUDE value.
3675 (ALL_CXXFLAGS): Ditto.
3676 * mingwex/configure.in (W32API_INCLUDE): Set default value.
3677 * mingwex/configure: Regenerate.
3679 2003-05-05 Earnie Boyd <earnie@users.sf.net>
3681 * Makefile.in (W32API_INCLUDE): New variable.
3682 (ALL_CFLAGS): Use W32API_INCLUDE value.
3683 (ALL_CXXFLAGS): Ditto.
3684 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
3685 (W32API_INCLUDE): Set default value.
3686 * configure: Regenerate.
3688 2003-04-11 Earnie Boyd <earnie@users.sf.net>
3690 * configure.in (LIBM_A): Define for cygwin target.
3691 * configure (LIBM_A): Ditto.
3693 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
3695 * include/time.h (strftime): Remove duplicate declaration.
3697 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3699 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
3701 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3703 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
3704 * mingwex/strtoimax.c (strtoimax): Likewise.
3705 * mingwex/wcstoimax.c (wcstoimax): Likewise.
3706 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
3707 * mingwex/fesentenv.c: Include float.h.
3708 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
3710 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
3712 * mingwex/math/tgammal.c: Likewise.
3714 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3716 * include/utime.h: New file, forwarding to sys/utime.h.
3718 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3720 * include/sys/param.h (MAXPATHLEN): Define.
3722 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3724 * include/tchar.h: Ansi-fy a comment.
3726 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3728 * profile/profile.h (mcount): Use __builtin_return_address
3729 rather than inline __asm statements.
3730 * profile/Makefile.in: Remove special rule for mcount.o
3731 Specify dependencies for mcount.o profil.o gmon.o.
3733 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3735 * include/stdlib.h (qsort): Remove const from first parm.
3736 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
3738 2003-03-03 Christopher Faylor <cgf@redhat.com>
3740 * mingwex/getopt.c: Refresh from NetBSD sources.
3742 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
3744 * mingwex/getopt.c: New file, copied from cygwin srcs.
3745 * include/getopt.h: New file, copied from cygwin srcs.
3746 * include/unistd.h: Include getopt.h.
3747 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
3748 (POSIX_OBJS): Add getopt.o.
3750 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
3752 * include/stdio.h (vscanf): Add prototype.
3758 * include/wchar.h (vwscanf): Add prototype.
3761 * mingwex/snprintf.c: Move to mingwex/stdio.
3762 * mingwex/vsnprintf.c: Ditto.
3763 * mingwex/snwprintf.c: Ditto.
3764 * mingwex/vsnwprintf.c: Ditto.
3765 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
3766 (STDIO_DISTFILES): Add.
3767 (DISTFILES): Adjust.
3768 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
3772 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
3774 * mingwex/stdio: New directory
3775 * mingwex/stdio/vfscanf.c: New file.
3776 * mingwex/stdio/vfwscanf.c: New file.
3777 * mingwex/stdio/vscanf.c: New file.
3778 * mingwex/stdio/vsscanf.c: New file.
3779 * mingwex/stdio/vswscanf.c: New file.
3780 * mingwex/stdio/vwscanf.c: New file.
3782 2003-02-25 Earnie Boyd <earnie@users.sf.net>
3784 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
3785 (libmsvcrt40.a): Ditto.
3787 2003-02-21 Earnie Boyd <earnie@users.sf.net>
3789 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
3791 * Makefile.in (libmsvcrtd.a): Add target library.
3792 (libmoldnamed.a): Ditto.
3793 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
3795 ($(srcdir)): Remove explicit reference for depencies of object targets.
3796 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
3797 msvcrt20.def, msvcrt40.def: Remove.
3798 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
3800 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
3802 * Makefile.in: Make sure libmingwex.a from current build tree is used.
3804 2003-02-14 Christopher Faylor <cgf@redhat.com>
3806 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
3807 ensure -mno-cygwin where appropriate. Filter out -O2.
3809 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
3811 * profile/Makefile.in (mcount.o): Use -O1 optimization
3814 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3816 * include/math.h: Remove _CRTIMP from pow() prototype,
3817 unless __NO_ISOCEXT.
3819 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3821 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
3823 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3825 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
3826 __declspec(dllimport) supported.
3827 (__cdecl): Define if not already defined.
3828 (__stdcall): Likewise.
3829 * include/dirent.h: Qualify fuctions with __cdecl.
3830 * include/fenv.h: Likewise.
3831 * include/inttypes.h: Likewise.
3832 * include/assert.h: Qualify fuctions with __cdecl. Qualify
3833 CRT dll imports with _CRTIMP.
3834 * include/conio.h: Likewise.
3835 * include/ctype.h: Likewise.
3836 * include/direct.h: Likewise.
3837 * include/dos.h: Likewise.
3838 * include/errno.h: Likewise.
3839 * include/float.h: Likewise.
3840 * include/io.h: Likewise.
3841 * include/locale.h: Likewise.
3842 * include/malloc.h: Likewise.
3843 * include/math.h: Likewise.
3844 * include/mbctype.h: Likewise.
3845 * include/mbstring.h: Likewise.
3846 * include/process.h: Likewise.
3847 * include/setjmp.h: Likewise.
3848 * include/signal.h: Likewise.
3849 * include/stdio.h: Likewise.
3850 * include/stdlib.h: Likewise.
3851 * include/string.h: Likewise.
3852 * include/time.h: Likewise.
3853 * include/wchar.h: Likewise.
3854 * include/wctype.h: Likewise.
3855 * include/sys/stat.h: Likewise.
3856 * include/sys/timeb.h: Likewise.
3857 * include/sys/utime.h: Likewise.
3859 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
3860 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
3862 * include/stdio.h (__VALIST): Guard against prior definition.
3864 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3866 * include/_mingw.h: Change version to 3.0
3867 * Makefile.in: Ditto.
3869 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3871 * include/stdlib.h: Make words after #endif a comment.
3873 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3875 * include/locale.h: Include stddef.h for definition of NULL.
3877 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3879 * include/math.h (tgamma): Correct typo in comment.
3881 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3883 * mingwex/mingw-fseek.c (INLINE): Remove define.
3884 (__mingw_is_win9x): Remove static inline function.
3885 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
3887 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3889 * mingwex/math/llround.c: Correct function name and
3890 change return value to long long.
3892 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
3894 * include/ctype.h (__isascii): Don't cast arg to unsigned.
3895 (iswascii): Likewise. Correct mask.
3896 * include/wctype.h (iswascii): Don't cast arg to unsigned.
3899 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
3901 * include/stdlib.h (_osver, _winver, _winmajor,
3902 _winminor): Declare as direct imports from dll if
3903 __DECLSPEC_SUPPORTED.
3905 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
3907 * pseudo-reloc.c (do_pseudo_reloc): Make static.
3908 * pseudo-reloc-list.c: New file.
3909 * crt1.c (_pei386_runtime_relocator): Declare.
3910 (__mingw_CRTStartup): Call it.
3911 * dllcrt1.c (_pei386_runtime_relocator): Declare.
3912 (DllMainCRTStartup): Call it.
3913 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
3916 2003-01-01 Egor Duda <deo@logos-m.ru>
3918 * pseudo-reloc.c: New file.
3920 2002-12-20 Earnie Boyd <earnie@users.sf.net>
3922 * include/_mingw.h: Increment version to 2.4.
3925 2002-12-12 Earnie Boyd <earnie@users.sf.net>
3927 * include/malloc.h (_alloca): Add definition.
3930 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
3932 * mingwex/math/s_erf.c: New file.
3933 * mingwex/math/sf_erf.c: New file.
3934 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3935 (MATH_OBJS): Add new objects.
3936 * include/math.h (erf[f]): Add prototypes.
3937 (erfc[f]): Add prototypes.
3939 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
3941 * include/math.h: Add traditional/XOPEN math constants.
3943 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
3945 * mingwex/math/lgamma.c: New file.
3946 * mingwex/math/lgammaf.c: New file.
3947 * mingwex/math/lgammal.c: New file.
3948 * mingwex/math/tgamma.c: New file.
3949 * mingwex/math/tgammaf.c: New file.
3950 * mingwex/math/tgammal.c: New file.
3951 * mingwex/math/cephes_mconf (polevlf): Add float version.
3953 Define _CEPHES_USE_ERRNO.
3954 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3955 (MATH_OBJS): Add new objects.
3956 * include/math.h (lgamma[fl]): Add prototypes.
3957 (tgamma[fl]): Add prototypes.
3959 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
3961 * mingwex/strtold.c: New file.
3962 * mingwex/wcstold.c: New file.
3963 * mingwex/ldtoa.c: New file.
3964 * mingwex/math/cephes_emath.h: New file.
3965 * mingwex/math/cephes_emath.c: New file.
3966 * mingwex/Makefile.in (DISTFILES): Add new files.
3967 (MATH_DISTFILES): Ditto.
3968 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
3969 (MATH_OBJS): Add cephes_emath.o.
3970 (LIB_OBJS): Add $(STDLIB_OBJS).
3971 * include/stdlib.h (strtold, wcstold): Add prototypes.
3972 * include/wchar.h (wcstold): Add prototype.
3974 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3976 * include/math.h (sqrt): Remove inline definition.
3977 (sqrtf): Replace inline definition with prototype.
3979 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
3980 argument less than zero.
3981 * mingwex/math/sqrtf.c (sqrtl): Likewise.
3983 2002-10-30 Guido Serassio <serassio@libero.it>
3985 * include/stdio.h (_getmaxstdio): Add prototype.
3986 (_setmaxstdio): Likewise.
3988 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
3990 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
3992 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3994 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
3996 Define WIN32_MEAN_AND_LEAN before including windows.h
3997 * include/stdlib.h (_fmode): Protect declaration as dllimported
3998 variable with __IN_MINGW_RUNTIME.
4000 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4002 * crt1.c: Include stdlib.h.
4004 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4006 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4007 (MINGW_OBJS): Add txtmode.o.
4008 (SRCDIST_FILES): Add txtmode.c binmode.c.
4009 crt1.c: Don't include fcntrl.h, stdlib.h.
4010 (_fmode): Declare, without dllimport attribute.
4011 (__p__fmode): Declare access function for dll's _fmode.
4012 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
4014 * txtmode.c: New file.
4015 * binmode.c: New file.
4016 * samples/fmode/test2.c: New file.
4017 * samples/fmode/jamfile: Add test2.exe target.
4019 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4021 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
4022 macros work with C89.
4023 (INTMAX_C, UINTMAX_C): Likewise.
4025 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4027 * include/string.h (strcasecmp): Make extern __inline__.
4028 (strncasecmp): Likewise.
4029 (wcscmpi): Likewise.
4031 2002-10-08 Heiko Gerdau <hg@technosis.de>
4033 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
4034 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
4037 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4039 * mingwex/math/powil.c: Rename powil to __powil.
4040 * mingwex/math/powl.c: Adjust declaration and call
4041 to __powil. Remove comment on powil.
4042 * mingwex/math/powi.c: New file.
4043 * mingwex/math/powif.c: New file.
4044 * mingwex/math/pow.c: New file.
4045 * mingwex/math/cephes_mconf.h. Add double and float
4046 versions of constants.
4047 (polevl): Add double precision function.
4049 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4051 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4053 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4055 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4056 (_imp____mbcur_max_dll): Likewise.
4058 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4060 * include/fcntl.h (_fmode): Remove declarations and
4061 compatibility defines.
4062 (_setmode, setmode): Remove prototypes.
4063 * include/stdlib (_fmode): Add declarations and
4064 compatibility defines. Change type to int.
4065 * include/io.h (_setmode, setmode): Add prototypes.
4066 * samples/fmode/all.c: Adjust includes.
4067 * samples/fmode/test.c: Likewise.
4068 * crt1.c (_CRT_fmode): Declare as int.
4069 * CRTfmode.c (_CRT_fmode): Likewise.
4071 * include/stdlib: Remove comment about MB_CUR_MAX.
4073 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4075 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4076 (_imp____mbcur_max_dll): Likewise.
4078 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4080 * mingwex/math/files.txt: Remove inadvertantly added file.
4082 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4084 * include/string.h (_strerror): Move into #ifndef
4085 __STRICT_ANSI__ block.
4087 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4089 * include/time.h (__need_NULL): Define before including
4090 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4092 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4094 * include/stdio.h: Correct comment about directory separator.
4096 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4098 * include/sys/time.h (timeval): Add struct definition and
4099 associated macros (copied from w32api/include/winsock.h).
4101 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4103 * include/_mingw.h: Increment version to 2.3.
4106 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4108 * mingwex/fegetenv.c: Change to \n line endings.
4109 * mingwex/vsnprintf.c: Ditto.
4110 * mingwex/vsnwprintf.c: Ditto.
4112 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4114 * mingwex/math/hypotl.c: Replace with version based on cephes
4117 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4119 * include/sys/param.h: Add ENDIAN defines.
4120 * test_headers.c: Include sys/param.h.
4122 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4124 * test_headers.c: Don't include varargs.h.
4125 * Makefile.in (test_headers): Don't use -std=xx
4128 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4130 * include/sys/param.h: New File.
4132 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4134 * include/math.h (asm): Change to __asm__ throughout.
4135 Expose ISO C99 functions if __GLIPCPP__.
4136 (hypotf): Use hypot, not _hypot in stub.
4138 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4140 * include/tchar.h: Ansi-fy another comment.
4142 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4144 * include/tchar.h: Ansi-fy comment.
4146 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4148 * test_headers.c : New file.
4149 * Makefile.in (test_headers): New target, using it,
4150 (SRCDIST_FILES): Distribute it.
4152 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4154 * include/_mingw.h: Increment version to 2.2.
4157 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4159 * include/unistd.h: Add include of process.h.
4161 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4163 * include/stdio.h (_fcloseall): Add prototype.
4165 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4167 * include/tchar.h (_tfdopen): Correct typo.
4169 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4171 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4172 nextafter): Add non-underscored stubs.
4173 * moldname-msvcrt.def: Regenerate.
4174 * moldname-crtdll.def: Regenerate.
4175 * mingwex/math: New directory.
4176 * mingwex/rint.c: Move to mingwex/math.
4177 * mingwex/rintf.c: Ditto.
4178 * mingwex/rintl.c: Ditto.
4179 * mingwex/round.c: Ditto.
4180 * mingwex/roundf.c: Ditto.
4181 * mingwex/roundl.c: Ditto.
4182 * mingwex/rint.c: Ditto.
4183 * mingwex/rintf.c: Ditto.
4184 * mingwex/rintl.c: Ditto.
4185 * mingwex/trunc.c: Ditto.
4186 * mingwex/truncf.c: Ditto.
4187 * mingwex/truncl.c: Ditto.
4188 * mingwex/signbit.c: Ditto.
4189 * mingwex/signbitf.c: Ditto.
4190 * mingwex/signbitl.c: Ditto.
4191 * mingwex/copysignl.S: Ditto.
4192 * mingwex/fdim.c: Ditto.
4193 * mingwex/fdimf.c: Ditto.
4194 * mingwex/fdiml.c: Ditto.
4195 * mingwex/fmin.c: Ditto.
4196 * mingwex/fminf.c: Ditto.
4197 * mingwex/fminl.c: Ditto.
4198 * mingwex/fmax.c: Ditto.
4199 * mingwex/fmaxf.c: Ditto.
4200 * mingwex/fmaxl.c: Ditto.
4201 * mingwex/fma.c: Ditto.
4202 * mingwex/fmaf.c: Ditto.
4203 * mingwex/fmal.c: Ditto.
4204 * mingwex/fpclassify.c: Ditto.
4205 * mingwex/fpclassifyl.c: Ditto.
4206 * mingwex/fpclassifyl.c: Ditto.
4207 * mingwex/isnan.c: Ditto.
4208 * mingwex/isnanf.c: Ditto.
4209 * mingwex/isnanl.c: Ditto.
4210 * mingwex/fucom.c: Ditto.
4211 * mingwex/fp_consts.c: Ditto. Split out float and long double
4213 * mingwex/math_stubs.c: Remove.
4214 * mingwex/log2.c: Remove. Replaced by math/log2.S
4215 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4216 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4217 * mingwex/math/acosf.c : New file.
4218 * mingwex/math/acosl.c: New file.
4219 * mingwex/math/asinf.c: New file.
4220 * mingwex/math/asinl.c: New file.
4221 * mingwex/math/atan2f.c: New file.
4222 * mingwex/math/atan2l.c: New file.
4223 * mingwex/math/atanf.c: New file.
4224 * mingwex/math/atanl.c: New file.
4225 * mingwex/math/cbrt.c: New file.
4226 * mingwex/math/cbrtf.c: New file.
4227 * mingwex/math/cbrtl.c: New file.
4228 * mingwex/math/ceilf.S: New file.
4229 * mingwex/math/ceill.S: New file.
4230 * mingwex/math/cephes_ld.h: New file.
4231 * mingwex/math/copysign.S: New file.
4232 * mingwex/math/copysignf.S: New file.
4233 * mingwex/math/cosf.S: New file.
4234 * mingwex/math/coshf.c: New file.
4235 * mingwex/math/coshl.c: New file.
4236 * mingwex/math/cosl.S: New file.
4237 * mingwex/math/exp2.S: New file.
4238 * mingwex/math/exp2f.S: New file.
4239 * mingwex/math/exp2l.S: New file.
4240 * mingwex/math/expf.c: New file.
4241 * mingwex/math/expl.c: New file.
4242 * mingwex/math/fabs.c: New file.
4243 * mingwex/math/fabsf.c: New file.
4244 * mingwex/math/fabsl.c: New file.
4245 * mingwex/math/floorf.S: New file.
4246 * mingwex/math/floorl.S: New file.
4247 * mingwex/math/fmodf.c: New file.
4248 * mingwex/math/fmodl.c: New file.
4249 * mingwex/math/fp_consts.h: Ditto.
4250 * mingwex/math/fp_constsf.c: Ditto.
4251 * mingwex/math/fp_constsl.c: Ditto.
4252 * mingwex/math/frexpf.c: New file.
4253 * mingwex/math/frexpl.S: New file.
4254 * mingwex/math/hypotf.c: New file.
4255 * mingwex/math/hypotl.c: New file.
4256 * mingwex/math/ilogb.S: New file.
4257 * mingwex/math/ilogbf.S: New file.
4258 * mingwex/math/ilogbl.S: New file.
4259 * mingwex/math/ldexpf.c: New file.
4260 * mingwex/math/ldexpl.c: New file.
4261 * mingwex/math/llrint.c: New file.
4262 * mingwex/math/llrintf.c: New file.
4263 * mingwex/math/llrintl.c: New file.
4264 * mingwex/math/llround.c: New file.
4265 * mingwex/math/llroundf.c: New file.
4266 * mingwex/math/llroundl.c: New file.
4267 * mingwex/math/log10f.S: New file.
4268 * mingwex/math/log10l.S: New file.
4269 * mingwex/math/log1p.S: New file.
4270 * mingwex/math/log1pf.S: New file.
4271 * mingwex/math/log1pl.S: New file.
4272 * mingwex/math/log2.S: New file.
4273 * mingwex/math/log2f.S: New file.
4274 * mingwex/math/log2l.S: New file.
4275 * mingwex/math/logb.c: New file.
4276 * mingwex/math/logbf.c: New file.
4277 * mingwex/math/logbl.c: New file.
4278 * mingwex/math/logf.S: New file.
4279 * mingwex/math/logl.S: New file.
4280 * mingwex/math/lrint.c: New file.
4281 * mingwex/math/lrintf.c: New file.
4282 * mingwex/math/lrintl.c: New file.
4283 * mingwex/math/lround.c: New file.
4284 * mingwex/math/lroundf.c: New file.
4285 * mingwex/math/lroundl.c: New file.
4286 * mingwex/math/modff.c: New file.
4287 * mingwex/math/modfl.c: New file.
4288 * mingwex/math/nearbyint.S: New file.
4289 * mingwex/math/nearbyintf.S: New file.
4290 * mingwex/math/nearbyintl.S: New file.
4291 * mingwex/math/nextafterf.c: New file.
4292 * mingwex/math/powf.c: New file.
4293 * mingwex/math/powl.c: New file.
4294 * mingwex/math/powil.c: New file.
4295 * mingwex/math/remainder.S: New file.
4296 * mingwex/math/remainderf.S: New file.
4297 * mingwex/math/remainderl.S: New file.
4298 * mingwex/math/remquo.S: New file.
4299 * mingwex/math/remquof.S: New file.
4300 * mingwex/math/remquol.S: New file.
4301 * mingwex/math/scalbn.S: New file.
4302 * mingwex/math/scalbnf.S: New file.
4303 * mingwex/math/scalbnl.S: New file.
4304 * mingwex/math/sinf.S: New file.
4305 * mingwex/math/sinhf.c: New file.
4306 * mingwex/math/sinhl.c: New file.
4307 * mingwex/math/sinl.S: New file.
4308 * mingwex/math/sqrt.c: New file.
4309 * mingwex/math/sqrtf.c: New file.
4310 * mingwex/math/sqrtl.c: New file.
4311 * mingwex/math/tanf.S: New file.
4312 * mingwex/math/tanhf.c: New file.
4313 * mingwex/math/tanhl.c: New file.
4314 * mingwex/math/tanl.S: New file.
4315 * mingwex/Makefile.in: Adjust VPATH for source files in
4318 Add MATH_DISTFILES and use it to build source distro.
4319 * include/math.h: Add protypes for new functions and
4320 reorganise to reflect ANSI,C99 status.
4322 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
4324 * include/tchar.h (_getts): Define as _getws for _UNICODE.
4325 (_putts): Define as _putws for _UNICODE.
4326 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
4328 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
4330 * include/float.h: #include_next<float.h> before header guard.
4332 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
4334 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
4336 * include/excpt.h (): Include windef.h not windows.h.
4337 * include/fcntl.h (_O_SHORT_LIVED): Add define.
4338 (_chmod): Add prototype.
4339 (_creat): Correct prototype.
4340 (SH_DENY*): Rename defines to _SH_DENY*.
4341 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
4342 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
4343 _IOAPPEND): Add defines.
4344 (_wfindfirst): Correct prototype.
4345 (_wfdopen): Add prototype.
4346 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
4348 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
4350 (_wcsdup): Correct prototype.
4351 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
4352 _mbsncat being in string.h.
4353 * include/wchar.h (_wfindfirst): Correct prototype.
4354 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
4356 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4358 * include/_mingw.h: Increment to version 2.1.
4359 * Makefile.in: Ditto.
4361 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4363 * Makefile.in (conf_prefix): New variable.
4364 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
4365 (bindist): Use dist_prefix.
4367 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
4369 * include/_mingw.h: Increment version to 2.0.
4370 * Makefile.in: Ditto.
4372 Merge in mingwex branch.
4374 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
4376 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
4377 * mingwex/fdim.c: New file.
4378 * mingwex/fdimf.c: New file.
4379 * mingwex/fdiml.c: New file.
4380 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
4382 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
4384 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
4386 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
4388 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
4390 * mingwex/isnanl.c: New file.
4392 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4394 * include/stdint.h: Include stddef.h to get
4396 (WINT_MAX): Define to ((wint_t)-1).
4398 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4400 * include/wctype.h: Replace 'inline' with '__inline__'.
4401 * include/inttypes.h: Likewise.
4403 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4405 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
4406 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
4408 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4410 * mingwex/snprintf.c: Split out vsnprintf to....
4411 * mingwex/vsnprintf.c: New file.
4412 * mingwex/snwprintf.c: Split out vsnwprintf to...
4413 * mingwex/vsnwprintf.c: New file.
4414 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
4416 2002-05-15 Pascal Obry <obry@gnat.com>
4418 * include/dirent.h (DIR): Change dd_stat type to int.
4421 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
4423 * include/stdio.h (vsnprintf): Change inline to __inline__;
4424 (vsnwprintf): Likewise.
4425 * include/wchar.h (vsnwprintf): Likewise.
4428 (mbsinit): Likewise.
4430 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
4432 Change FP default precison from 53 to 64-bit mantissa.
4434 * Makefile.in (CRT0S): Add CRT_fp8.o.
4435 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
4436 * include/float.h: Replace standard float.h defines with
4437 #include_next<float.h> to use GCC's defines. Adjust comments
4440 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4442 * include/dos.h: Change prefix "__imp_" to "_imp__" for
4443 __GNUC__ without __DECLSPEC_SUPPORTED.
4444 * include/fnctl.h: Likewise.
4445 * include/math.h: Likewise.
4446 * include/stdio.h: Likewise.
4447 * include/stdlib.h: Likewise.
4448 * include/time.h: Likewise.
4449 * include/wctype.h: Likewise.
4450 * include/ctype.h: Likewise.
4452 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4454 Add atexit support for dlls.
4455 * crt1.c (atexit): Force thunk to _imp__atexit.
4456 (_onexit): Force thunk to _imp___onexit.
4457 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4458 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4459 (__dll_exit): New function to run atexit-registered functions
4460 and flush output buffers on DLL_PROCESS_DETACH or failed
4462 (atexit): Force use of private atexit table via _dllonexit,
4463 (_onexit): New function. Force use of private atexit table via
4465 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4466 _imp_<_symbol> is visible in import lib.
4467 * msvcrt20.def: Likewise.
4468 * msvcrt40.def: Likewise.
4469 * crtdll.def: Likewise.
4471 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4473 * include/fenv.h: Change header guard macro to _FENV_H_.
4474 (fenv_t, fexcept_t): Move into block protected by
4476 Cleanup some whitespace.
4477 * include/inttypes.h: Change header guard macro to
4480 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4482 * include/math.h (copysignl): Declare.
4483 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4484 (MATHOBJS):Add copysignl.o.
4486 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4488 * include/math.h (__signbitl, __isnanl): Declare.
4490 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4492 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4493 roundl, truncl, fmal, log2l): Declare.
4494 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4495 || !defined __STRICT_ANSI__.
4496 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4497 * mingwex/fmin.c (fmin): Likewise.
4498 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4499 * mingwex/fminf.c (fminf): Likewise.
4500 * mingwex/fmaxl.c: New file.
4501 * mingwex/fminl.c: New file.
4502 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4503 * mingwex/fpclassifyf.c: New file.
4504 * mingwex/fpclassifyl.c: New file.
4505 * mingwex/rint.c (rintf): Split out to...
4506 * mingwex/rintf.c: New file.
4507 * mingwex/rintl.c: New file.
4508 * mingwex/round.c (roundf): Split out to...
4509 * mingwex/roundf.c: New file.
4510 * mingwex/roundl.c: New file.
4511 * mingwex/trunc.c (truncf): Split out to...
4512 * mingwex/truncf.c: New file.
4513 * mingwex/truncl.c: New file.
4514 * mingwex/signbit.c (signbitf): Split out to...
4515 * mingwex/signbitf.c: New file.
4516 * mingwex/signbitl.c: New file.
4517 * mingwex/fmal.c: New file.
4518 * mingwex/copysignl.S: New file.
4519 * mingwex/log2l.c: New file.
4520 * mingwex/fp_consts.c: Add nanl definition.
4521 Comment out unused constants.
4522 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4523 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4524 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4526 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4527 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4528 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4530 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4532 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4534 Make wide char versions of opendir and friends.
4536 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4538 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4539 _wseekdir): Add prototypes for wide versions of corresponding
4541 * include/tchar.h; Add _UNICODE mappings for dirent.h
4542 structures and functions.
4543 * mingwex/dirent.c: Make _UNICODE neutral.
4544 * mingwex/wdirent.c: New file to define _UNICODE before
4546 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4547 (POSIX_OBJS): Add wdirent.o.
4548 (wdirent.o): Specify dependency on dirent.c as well as
4550 * samples/dirent/wtest.c: New file, wide version of test.c.
4552 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4554 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4555 ensure gcc include dir is searched despite -nostdinc.
4556 * profile/Makefile.in (INCLUDES): Likewise.
4557 * mingwex/Makefile.in (INCLUDES): Likewise.
4558 * include/stdarg.h: Replace with stub that just guards the
4559 real gcc system header with #ifndef RC_INVOKED
4560 * include/varargs.h: Likewise.
4561 * include/stddef.h: Likewise.
4562 * include/stdio.h: Include stdarg.h after defining
4564 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4565 Replace va_list with __VALIST throughout.
4567 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4569 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4570 * msvcrt.def (_fpreset): Mark as DATA so that only
4571 _imp___fpreset is exported.
4572 * msvcrt20.def (_fpreset): Likewise.
4573 * msvcrt40.def (_fpreset): Likewise.
4574 * crtdll.def (_fpreset): Likewise.
4575 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4577 (fpreset): Add alias.
4578 (__CRT_PC): Delete definition. _fpreset does it now.
4579 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4580 (fpreset): Add alias.
4581 (__CRT_PC): Delete definition.
4582 * moldname.def.in: Comment out fpreset.
4583 * moldname-msvcrt.def: Regenerate.
4584 * moldname-crtdll.def: Regenerate.
4585 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4586 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
4587 with the _fpreset determined by startup CRT_fp object.
4589 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
4591 * CRT_fp8.c: New file.
4592 * CRT_fp10.c: New file.
4593 * crt1.c (__CRT_PC) Declare.
4594 (__CRT_fesetenv): New static function, using _CRT_PC.
4595 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
4596 (_gnu_exception_handler): Likewise.
4597 * Makefile.in (CRT0S): Add CRT_fp10.o.
4598 (MINGW_OBJS): Add CRT_fp8.o.
4599 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
4600 Add CRT_fp8.o, CRT_fp10.o dependancies.
4601 * include/float.h (_fpreset): Expand comment.
4602 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
4603 (extended precison) environmemt.
4604 (FE_PC53_ENV): New define for MSVCRT default environmemt.
4605 (FE_DFL_ENV): Define as FE_PC53_ENV.
4606 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
4607 precision control for default environment.
4609 * include/math.h: Fix long comment line.
4610 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
4612 * profile/configure: Regenerate.
4614 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
4616 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
4618 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
4620 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
4621 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
4622 (__mingw_fseek): New function to work around Win9x f/lseek bug.
4623 (__mingw_fwrite): Likewise.
4624 (__mingw_is_win9x): New helper function.
4626 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
4627 (__mingw_fseek): New prototype and define to replace fseek.
4628 (__mingw_fwrite): New prototype and define to replace fwrite.
4629 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
4630 * moldname-crtdll.def: Remove CR from end of line.
4631 * moldname-msvcrt.def: Ditto.
4633 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
4635 * profile/configure.in (CRT0S): Configure name of gcrt?.o
4636 based on target, building gcrt0.o for cygwin -mno-cygwin.
4637 * profile/configure: Regenerate.
4638 * profile/Makefile.in (CRT0S): Use name from configure.
4639 (gcrt0.o): New rule.
4640 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
4642 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4644 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
4645 _fpecode): Remove prototypes copied from float.h.
4646 (nan, nanf): Move into block protected against RC_INVOKED
4648 * include/stdlib.h (_Exit): Change from static inline to
4650 * mingwex/_Exit.c : New file.
4651 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
4653 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4655 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
4656 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
4657 (configdirs): Likewise.
4658 (LIBGMON_A): Define for cygwin target as well.
4659 * configure: Regenerate.
4660 * profile/configure.in (THREAD_DLL): Remove define.
4661 (LIBM_A): Remove define.
4662 (LIBGMON_A): Define for cygwin target as well.
4663 * profile/configure: Regenerate.
4664 * profile/makefile.in (install): Install to inst_libdir and
4666 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
4667 (OPTFLAGS): New define.
4668 (ALL_CFLAGS): Add $(OPTFLAGS).
4669 (ALL_CXXFLAGS): Same.
4670 (.c.o:): Remove ALL_CXXFLAGS.
4672 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4674 * include/stdint.h: Add missing newline at eof.
4675 * include/stdio.h (snprintf): Add prototype.
4676 (vsnprintf): Add prototype and inline definition.
4677 (snwprintf): Add prototype.
4678 (vsnwprintf): Add prototype and inline definition.
4679 * include/wchar.h (snwprintf): Add prototype.
4680 (vsnwprintf): Add prototype and inline definition.
4681 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
4683 * mingwex/snprintf.c: New file.
4684 * mingwex/snwprintf.c: New file.
4686 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
4688 * configure.in: Add mingwex as SUBDIRS and configdirs.
4689 * configure: Regenerate.
4690 * Makefile.in (MINGW_OBJS): Remove dirent.o.
4691 (SRC_DIST_FILES): Remove dirent.c.
4693 * include/stdlib.h (_Exit): Add static inline
4695 (struct lldiv_t): Define.
4696 (lldiv): Add prototype.
4697 (llabs): Add extern inline function.
4698 (strtoll,strtoull): Add prototypes.
4699 (wcstol, wcstoul, wcstod): Group together.
4700 (strtof, wcstof): Add extern inline definitions.
4701 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
4702 and extern inline definitions.
4703 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
4704 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
4706 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
4707 (wcstof): Add extern inline definition.
4708 * include/math.h (nan, nanf): Add prototypes.
4709 (NAN, INFINITE): Define constants.
4710 (fpclassify, isnan ,signbit): Add macros and supporting float
4711 and double functions.
4712 (isfinite, isinf, isnormal): Add macros.
4713 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
4715 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
4716 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
4717 (copysign, logb, nextafter, scalb): Add prototypes and
4718 inline stubs for underscored versions in msvcrt.dll.
4719 * include/inttypes.h: New file.
4720 * include/fenv.h: New file
4722 Add new mingwex subdir and files.
4723 * mingwex: New directory.
4724 * mingwex/Makefile.in: New file.
4725 * mingwex/configure.in: New file.
4726 * mingwex/configure: Generate.
4727 * mingwex/dirent.c: Moved here from parent dir.
4728 * mingwex/atoll.c: New file.
4729 * mingwex/feclearexcept.c: New file.
4730 * mingwex/fegetenv.c: New file.
4731 * mingwex/fegetexceptflag.c: New file.
4732 * mingwex/fegetround.c: New file.
4733 * mingwex/feholdexcept.c: New file.
4734 * mingwex/feraiseexcept.c: New file.
4735 * mingwex/fesetenv.c: New file.
4736 * mingwex/fesetexceptflag.c: New file.
4737 * mingwex/fesetround.o: New file.
4738 * mingwex/fetestexcept.c: New file.
4739 * mingwex/feupdateenv.c: New file.
4740 * mingwex/fma.S: New file.
4741 * mingwex/fmaf.S: New file.
4742 * mingwex/fmax.c: New file.
4743 * mingwex/fmaxf.c: New file.
4744 * mingwex/fmin.c: New file.
4745 * mingwex/fminf.c: New file.
4746 * mingwex/fp_consts.c: New file.
4747 * mingwex/fpclassify.c: New file.
4748 * mingwex/fucom.c: New file.
4749 * mingwex/fwide.c: New file.
4750 * mingwex/imaxabs.c: New file.
4751 * mingwex/imaxdiv.c: New file.
4752 * mingwex/isnan.c: New file.
4753 * mingwex/isnanf.c: New file.
4754 * mingwex/lltoa.c: New file.
4755 * mingwex/lltow.c: New file.
4756 * mingwex/log2.c: New file.
4757 * mingwex/log2f.c: New file.
4758 * mingwex/math_stubs.c: New file.
4759 * mingwex/mbsinit.c: New file.
4760 * mingwex/rint.c: New file.
4761 * mingwex/round.c: New file.
4762 * mingwex/signbit.c: New file.
4763 * mingwex/sitest.c: New file.
4764 * mingwex/strtof.c: New file.
4765 * mingwex/strtoimax.c: New file.
4766 * mingwex/strtoumax.c: New file.
4767 * mingwex/testwmem.c: New file.
4768 * mingwex/trunc.c: New file.
4769 * mingwex/ulltoa.c: New file.
4770 * mingwex/ulltow.c: New file.
4771 * mingwex/wcstof.c: New file.
4772 * mingwex/wcstoimax.c: New file.
4773 * mingwex/wcstoumax.c: New file.
4774 * mingwex/wmemchr.c: New file.
4775 * mingwex/wmemcmp.c: New file.
4776 * mingwex/wmemcpy.c: New file.
4777 * mingwex/wmemmove.c: New file.
4778 * mingwex/wmemset.c: New file.
4779 * mingwex/wtoll.c: New file.
4781 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4783 * include/mbstring.h: New file.
4784 * include/mbctype.h: New file.
4786 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4788 * include/tchar.h (__TEXT): Make same as define in
4789 w32api/include/winnt.h.
4791 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4793 * include/tchar.h (_tputenv): Add UNICODE mappings.
4794 (_tsearchenv): Likewise.
4795 (_tmakepath): Likewise.
4796 (_tsplitpath): Likewise.
4797 (_tfullpath): Likewise.
4799 2002-04-18 Pascal Obry <obry@gnat.com>
4801 * dirent.c (opendir): Convert given pathname to
4804 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4806 * include/_mingw.h: Increment version.
4807 * Makefile.in: Ditto.
4809 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4811 * moldname-crtdll.def: Remove CR from end of line.
4812 * moldname-msvcrt.def: Ditto.
4813 * Makefile.in: Use bzip2 compression for Cygwin target.
4815 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
4817 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
4818 TLOSS, PLOSS): Move oldname defines back, following
4819 the underscored names.
4821 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
4823 * include/stdio.h (_snwprintf): Correct spelling.
4824 (_vsnwprintf): Likewise.
4825 * include/wchar.h (_snwprintf): Correct spelling.
4826 (_vsnwprintf): Likewise.
4828 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
4830 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
4831 (wpopen): Add if !(__CRTDLL__).
4832 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
4834 (moldname-crtdll.def rule): Likewise.
4835 * moldname-msvcrt.def: Regenerate.
4836 * moldname-crtdll.def: Regenerate.
4837 * include/stdio.h (wpopen):Use prototype, not a define.
4838 (_swnprintf): Add prototype.
4839 (_vswnprintf): Likewise.
4841 * include/wchar.h (_swnprintf): Add prototype.
4842 (_vswnprintf): Likewise.
4845 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
4847 * include/malloc.h (_heapinfo): Correct structure definition.
4848 (_USEDENTRY,_FREEENTRY): Add defines.
4849 Add comment on platform support for _heap* functions.
4850 (_get_sbh_threshold): Add prototype.
4851 (_set_sbh_threshold): Likewise.
4852 (_expand): Likewise.
4854 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4856 * profile/profil.c: Update copyright info.
4857 * profile/profil.h: Likewise.
4858 * profile/gcrt0.c: Likewise.
4860 2002-01-25 Pascal Obry <obry@gnat.com>
4862 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
4864 * profile/gmon.c: Define bzero as memset if mingw32.
4865 (monstartup): Use it.
4867 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4869 * include/tchar.h (_TCHAR): Add missing ;.
4871 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4873 * include/tchar.h (_TCHAR): Add typedefs.
4875 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4877 * include/stdlib.h (_onexit_t): Add typedef.
4878 (_onexit): Add prototype.
4880 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
4882 * msvcrt.def: Revert accidental change.
4883 * include/stdlib.h: Ditto.
4885 2001-12-07 Earnie Boyd <earnie@users.sf.net>
4887 * Makefile.in: Increment VERSION.
4888 * include/_mingw.h: Ditto.
4890 2001-12-05 Earnie Boyd <earnie@users.sf.net>
4892 * include/strings.h: New File.
4894 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
4896 * include/math.h (_FPCLASS* ): Add defines from float.h.
4897 (IEEE recommended functions): Add declarations from float.h.
4898 * include/float.h (_FPCLASS* ): Protect against redefinition.
4900 2001-11-29 Wu Yongwei <adah@netstd.com>
4902 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
4903 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
4904 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
4905 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
4906 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
4907 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
4908 Correct spelling of "disclaimed" in comments.
4909 * include/excpt.h: Another spelling correction.
4911 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
4913 * include/errno.h: Fix "errno is not a prototype" warning.
4915 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
4917 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
4918 differences between ANSI and non-ANSI versions.
4919 (_ctype[],_pctype): Declare vars.
4920 (__ISCTYPE): New helper macro using _pctype.
4921 (is* ctype functions): Use __ISCTYPE to define inline versions.
4922 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
4924 (isw* ctype functions): Inline definitions.
4925 * include/wctype.h (_ctype[],_pctype): Declare vars.
4926 (isw* ctype functions): Inline definitions.
4929 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4931 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
4932 __fpecode): Use __STDC__ prototypes.
4935 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
4937 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
4938 * mthr_init.c (DllMain) Run dtors if a process terminates.
4939 * mthr.c (__mingwthr_add_key_dtor) Removed.
4940 (___mingwthr_add_key_dtor) New.
4941 (___mingwthr_remove_key_dtor) New.
4942 (__mingwthr_run_key_dtors) Complete rewrite.
4943 (__mingwthr_remove_key_dtor) New.
4945 2001-11-05 Egor Duda <deo@logos-m.ru>
4947 * Makefile.in: Delete unused executable after creating base-files.
4949 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4951 * include/errno.h (_errno): Use __STDC__ prototype.
4952 Thanks to: Jim Barton.
4954 2001-11-04 "stefan" <stefan@lkcc.org>
4956 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
4958 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4960 * include/io.h (_commit): Add declaration.
4961 Thanks to: "stefan" <stefan@lkcc.org>
4963 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4965 * include/sys/stat.h: Make S_IS* macros safer.
4967 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4969 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
4971 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
4973 * include/stdlib.h (__p__environ, __p__wenviron): Use
4974 __STDC__ prototypes.
4976 2001-09-19 Earnie Boyd <earnie@SF.net>
4978 * Makefile.in: Remove the /usr from the install target.
4979 (VERSION): Increment.
4980 include/_mingw.h: Ditto.
4982 2001-09-17 Earnie Boyd <earnie@SF.net>
4984 * Makefile.in: Increment version.
4985 * include/_mingw.h: Ditto.
4987 2001-09-10 Earnie Boyd <earnie@SF.net>
4989 * dossh: Remove inadvertantly imported file.
4991 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
4993 * dirent.c (opendir): Use GetFileAttributes rather than stat
4994 to determine if input arg is dir.
4996 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
4998 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5000 * include/varargs.h (va_list): Ditto.
5001 * include/stdio.h (va_list): Ditto.
5003 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5005 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5006 * include/stdio.h (_IORW): Change constant to 0x0080.
5007 (TMP_MAX): Add new define.
5009 (_wP_tmpdir): Ditto.
5010 (L_tmpnam): Change constant to 16.
5012 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
5014 * include/malloc.h: Fix non-ANSI comment after #endif.
5016 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5018 * profile/configure.in: Make msvcrt.dll version default.
5019 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
5020 * provile/configure: Regenerate.
5022 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
5024 * include/stdio.h (swscanf): Make first arugument const.
5025 * include/wchar.h (swscanf): Ditto.
5026 * include/tchar.h (_tfopen): New _UNICODE define.
5028 (_tsetlocale): Ditto.
5030 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5032 * profile/Makefile.in (mkinstalldirs): Correct relative path.
5034 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5036 * include/_mingw.h: Change version to 1.0.
5039 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
5041 * include/tchar.h: (__TEXT): Remove undef.
5045 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5047 * include/tchar.h: (__TEXT): Add private macro.
5048 (_TEXT): Modify definition to use __TEXT.
5050 This change allows the passing of a MACRO as an argument and have that
5051 MACRO resolved first.
5052 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5054 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5056 * Makefile.in: Increment version to 0.5
5057 * include/_mingw.h: Increment minor version
5059 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5061 * include/assert.h: (assert): Remove ; from end of definition
5062 Thanks to: AJ Reins <tbisp@qwest.net>
5064 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5066 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5067 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5069 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5071 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5073 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5075 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5076 are actually C functions. These functions are resolved via the
5077 -lmsvcp60 library and comments were placed in the header.
5079 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5081 * include/stdlib.h (__p__pgmptr): add prototype.
5082 (__p__wpgmptr): likewise.
5083 (_pgmptr_dll): move declaration from dos.h.
5084 (_wpgmptr_dll): likewise.
5085 (_pgmptr): conditional define (MSVCT/CRTDLL).
5086 (_wpgmptr): likewise.
5087 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5088 (_os*_dll variables): likewise.
5089 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5090 (_wpgmptr_dll): likewise.
5092 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5094 * include/stdint.h: New file.
5096 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5098 * include/wchar.h: Protect prototypes only declared in the C++ STL
5099 from being declared unless __cplusplus is defined.
5101 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5103 * include/stdlib.h: Apply Danny Smith patch 102730
5104 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5105 (_wgetenv) Correction to return type.
5107 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5109 * include/locale.h: Apply Danny Smith patch 101834
5110 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5111 (LC_MIN) Add definition.
5113 (_wsetlocale) Add prototype.
5115 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5117 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5118 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5119 Create a libcoldname.a for the oldname library for CRTDLL.
5120 Restrict libmoldname.a for the oldname library for MSVCRT.
5121 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5122 Restructure the $target_os case logic.
5123 Always name the MinGW thread dll helper mingwm.
5124 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5125 * configure: regenerate.
5127 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5129 * Makefile.in: Fix bindist target to distribute the correct files.
5130 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5131 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5133 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5135 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5136 Add variables and targets to control binary and source distributions.
5137 Add variables and targets to control snapshot distribution.
5138 * profile/gmon.h: Add missing #endif for #ifndef.
5139 * profile/ChangeLog: Merge entries here and remove.
5140 * profile/Makefile.in: Add variables and targets to control
5144 * config.guess: ditto.
5145 * config.sub: ditto.
5146 * mkinstalldirs: ditto.
5147 * install-sh: ditto.
5148 * configure: regenerate.
5149 * profile/configure: ditto.
5151 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5153 * Merge in changes from
5154 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5155 * include/direct.h: add guard around MSVCRT-only prototytpes
5156 * include/io.h: add __int64 struct definitions and function prototypes;
5157 add guard for MSVCRT-only prototypes
5158 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5159 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5160 put wchar functions together to make sync with wchar.h easier
5161 * include/stdlib.h: add wide char functions (__MSVCRT__)
5162 * include/string.h: add string collation functions ( __MSVCRT__)
5163 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5164 * include/tchar.h: add macros and macro function definitions
5165 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5166 enclose more functions in __MSVCRT__ guard;
5167 some oldname wide char function prototypes #if (0)'d
5168 * profile/gmon.h: add guard around BSD-ish typedefs
5170 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5172 * Makefile.in: Use a different variable name for subdirectory since the
5173 previous one was used by the top level make.
5175 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5177 * Makefile.in: Install mingw stuff in a subdirectory if building under
5180 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5182 * Makefile.in (subdirs): Eliminate for loop.
5184 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5186 * Makefile.in (subdirs): Previous change did not fix problem in
5189 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5191 * Makefile.in: Avoid installing dll if we're cross building and the
5192 cross-host system isn't a Windows system.
5193 * configure.in: Detect cross-hosting situation and set appropriate
5194 variables in Makefile.in.
5195 * configure: Regenerate.
5197 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5199 * configure.in: Change HEADER_SUBDIR to mingw32.
5200 * configure: Regenerate.
5202 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5204 * include/string.h: Use proper prototype for _strerror.
5206 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5208 * Makefile.in (subdirs): Workaround for broken shells.
5210 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5212 * Snapshot 2000-02-03.
5214 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5215 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5216 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5217 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5220 * Makefile.in (all): Build CRT0S first.
5221 (libmingwthrd.a): Remove thread support DLL from dependency.
5223 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5225 * Snapshot 2000-01-21.
5227 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5229 Merge in changes from Cygwin:
5230 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5231 (SUBDIRS): Likewise.
5232 * Makefile.in (HEADER_SUBDIRS): New variable.
5233 (install): Use to install Mingw headers to a subdirectory if building
5235 (DLL_CC_STUFF): Add DLL entry point.
5236 * configure: Regenerate.
5238 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5240 * include/stdio.h (fsetpos): Fix prototype.
5241 (fpos_t): Fix for MSVCRT.
5242 * include/float.h (fpreset): Add prototype.
5243 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5245 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5246 export using libmoldname.a.
5247 * crtdll.def: Add DATA tags.
5248 * msvcrt.def: Likewise.
5249 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5250 both MSVCRT and CRTDLL.
5251 * moldname-crtdll.def: Regenerate.
5252 * moldname-msvcrt.def: Regenerate.
5254 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5256 * Snapshot 1999-12-21.
5258 * include/wctype.h: New file.
5259 * include/ctype.h (MB_CUR_MAX): Define.
5261 * include/stdlib.h (MB_CUR_MAX): Define.
5262 * include/wchar.h: Define stat, _stat structures here as well.
5263 * include/float.h: Add invalid subconditions (_SW) and floating
5264 point error (_FPE) macros.
5265 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5266 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5267 * include/sys/types.h: Likewise.
5269 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5271 * profile/profil.c (profile_on): Set the profiler thread priority to
5272 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5273 * Snapshot 1999-11-18.
5275 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5277 Released 1999-11-07.
5279 * Makefile.in (CRT0S): Add crtst.o.
5280 (install): Install in subdirs as well.
5281 * dirent.h (struct _stat): Rename from struct stat.
5282 * include/tchar.h: Add some new macros. Thanks to
5283 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5284 * profile/Makefile.in (install): Fix target.
5286 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5288 * Makefile.in: Add support for profile directory.
5289 * configure.in: Likewise.
5290 * configure: Regenerate.
5292 * profile: Imported profiling sources from winsup-19991026 snapshot.
5293 * profile/Makefile.in: New file.
5294 * profile/configure.in: New file.
5295 * profile/configure: Generate.
5296 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5297 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5298 * profile/gmon.c (unistd.h): Include conditionally.
5299 (sys/param.h): Likewise.
5300 * profile/mcount.c (sys/param.h): Likewise.
5301 * profile/profil.c (profile_on): thread id is DWORD, not int.
5304 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5306 * include/stdlib.h: Add wide character version of argv/environ.
5308 * include/wchar.h: More wide character prototypes.
5309 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
5311 * dllcrt1.c (init.c): Don't include.
5312 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
5313 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
5315 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
5317 * moldname.def: Remove file.
5318 * moldname.def.in: And add this.
5319 * moldname-msvcrt.def: Generate from moldname.def.in.
5320 * moldname-crtdll.def: Likewise.
5322 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
5323 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
5324 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
5326 * Makefile.in: Update.
5327 * configure.in: Likewise. Also add *cygwin* target for building
5328 under Cygwin winsup.
5329 * configure: Regenerate.
5331 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
5333 * include/_mingw.h: Add version macros.
5334 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
5335 Also add wide character versions shared with wchar.h.
5336 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
5337 * include/io.h (sopen, _sopen): Fix prototype.
5338 Add wide character prototypes.
5339 * include/wchar.h: Likewise.
5340 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
5341 underscored versions. Potential incompatibility.
5342 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
5343 Add wide character prototypes.
5344 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
5347 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
5349 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
5350 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
5352 * configure: Rengerate.
5353 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
5354 dll name and crt's. CRTDLL and MSVCRT are meant to created
5355 separately, so remove all the *-msvcrt* targets.
5356 (libmingwthr.a): New target. Dummy thread support archive.
5357 (LIBS): Add libmingwthr.a.
5358 (CRT0S): Use CRT_ID. Add crtmt.o.
5359 (MINGW_OBJS): Add crtst.o.
5360 * main.c (WinMain): Fix prototype.
5361 * crtmt.c: New file.
5362 * crtst.c: New file.
5364 * include/process.h (_beginthreadex): Fix prototype.
5365 * include/_mingw.h (__int64): Define for __GNUC__.
5366 * include/tchar.h (_ttol): Add macro.
5367 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
5368 _i64tow, _ui64tow, _wtoi64): Add prototypes.
5370 Reported by Emanuele Aliberti <ea@iol.it>:
5371 * include/tchar.h (_ttoi): Add macro.
5373 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
5374 * include/stdio.h (_snprintf): Add prototype.
5375 (_vsnprintf): Likewise.
5377 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
5379 Reported by Tor Lillqvist <tml@iki.fi>:
5380 * include/stdlib.h (__p___argv): Fix return type.
5382 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5385 * include/errno.h (errno): It's linked in from startup, not imported.
5386 * include/stdlib.h (errno): Likewise.
5387 * include/io.h: Guard against conflicting macros and prototypes in
5389 * include/stdlib.h: Likewise.
5390 * include/string.h: Likewise.
5391 * include/time.h: Likewise.
5393 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5395 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
5396 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
5397 * Makefile.in (INCLUDES): Remove old windows32 include directory.
5399 * crt1.c (_gnu_exception_handler): Fix prototype.
5400 (__mingw_CRTStartup): New function based on mainCRTStartup.
5401 (mainCRTStartup): Set the app type for MSVCRT and call
5403 (WinMainCRTStartup): Likewise.
5404 * init.c (_startupinfo): Define.
5405 (_getmainargs): Add 5th parameter.
5406 (_mingw32_init_mainargs): Use.
5408 * ALL *.c files: Reformat according to GNU coding style.
5410 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
5412 * Makefile.in (INCLUDES): Add w32api include directory.
5414 * include/_mingw.h: New file.
5415 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
5416 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
5417 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
5418 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
5419 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
5420 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
5422 * include/stdlib.h (atexit): Fix prototype.
5424 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
5426 * include/stdio.h (_tempnam): Fix prototype.
5427 (tempnam): Likewise.
5428 * include/stdlib.h: Replace with GCC's version, and guard
5431 From Anders Norlander <anorland@hem2.passagen.se>:
5432 * include/stdlib.h (__argc): Declare.
5435 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
5437 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
5439 * Makefile.in (_libm_dummy.o): New target.
5442 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
5444 * Released 1999-03-16 along with egcs-1.1.2.
5446 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
5448 * Makefile.in (LIBS): Add libm.a.
5449 (libm.a): Dummy libm.a.
5451 * Makefile.in: Update from winsup 1999-02-08 snapshot.
5452 Preserve local changes.
5453 (mkinstalldirs): In ../, not ../../.
5454 (INCLUDES): Point to local windows32api headers and use -nostdinc.
5456 (LIBS): Add libmoldname-msvc.a.
5457 (libmoldname-msvc.a): Add target.
5458 (distclean): Add target.
5460 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5462 * include/dir.h: Reintroduce as an obsolescent header.
5463 * crt1.c (signal.h): Include.
5464 (_gnu_exception_handler): New function to properly handle win32
5465 asynchronous signals.
5466 (mainCRTStartup): Use.
5468 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5470 * include/direct.h: Include io.h instead of dir.h
5471 * include/dirent.h: Likewise.
5472 * include/dos.h: Likewise.
5473 * include/stdio.h: Replace reference to dir.h with io.h.
5475 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5477 * 1999-01-01 release bundled with egcs-1.1.1.
5479 * include/io.h: Incorporate dir.h.
5480 * include/dir.h: Remove.
5481 * include/signal.h: Move RC_INVOKED up a bit.
5483 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5485 * include/signal.h (sig_atomic_t): Define.
5487 * include/malloc.h: Import defs from deprecated alloc.h.
5488 * include/alloc.h: Remove.
5490 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5491 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5492 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5493 _off_t instead of long for st_size.
5495 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5497 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5498 * include/stdlib.h: Here.
5500 * include/netdb.h: Remove.
5501 * include/arpa/inet.h: Remove.
5502 * include/netinet/in.h: Remove.
5503 * include/sys/socket.h: Remove.
5505 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5509 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5510 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5512 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5514 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5515 (jmpbuf): typedef using above.
5516 (setjmp, longjmp): Prototype using jmpbuf.
5518 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5519 obsolescent imported names, ie., from __imp__ to _imp___.
5521 Also ignored empty include/sys/param.h and incorrect
5522 include/sys/times.h.
5524 * CRTinit.c: New file.
5525 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5527 * include/io.h (umask): Fix prototype.
5528 * include/stdlib.h (OS constants): Replace with Colin's.
5529 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5530 * include/sys/state.h: Merge.
5532 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5534 * include/assert.h (assert): Lose the trailing semicolon.
5536 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5538 * include/math.h (matherr): Declare.
5539 * include/stdio.h (fileno, _fileno): Declare.
5540 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5543 * include/stdio.h (fdopen, _fdopen): Add const.
5544 (getw, putw): Declare.
5545 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5547 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5549 * include/time.h (_timezone): Undefine.
5550 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5552 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5554 * include/stdlib.h (environ): Use DLL version.
5555 * init.c (environ): Undefine it before use.
5557 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5559 * Update to 980309 snapshot from Colin Peters.
5561 * include/utime.h: remove
5562 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5563 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5564 patches to define these.
5565 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5566 (_daylight, _timezone, _tzname, _tzset): Define.
5568 * include/netdb.h: Add from Colin's windows32api changes.
5569 * include/sys/socket.h: Likewise.
5570 * include/arpa/inet.h: Likewise.
5571 * include/netinet/in.h: Likewise.
5573 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5575 * Update to 980128 snapshot from Colin Peters.
5577 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5579 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5581 * configure: Regenerate.
5583 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5585 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5586 Files renamed and include hierarchy loses directories named
5589 * include/dos.h: from Jan-Jaap.
5591 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
5593 Changes to conform to FSF tree.
5595 * crt1.c: Renamed from mcrt0.c.
5596 * dllcrt1.c: Renamed from dllcrt0.c.
5597 * Makefile.in: Update above. Also renamed libmoldnames.a to
5600 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
5602 * crtdll.def: Export all functions but the ones with funny names.
5603 * moldnames.def: Add fdopen since fileno is already there.
5604 * include/nonansi/dos.h: New file from Jan-Jaap.
5605 * include/errno.h: Add extern decl + various additions from JJ.
5606 * include/stdio.h: Likewise.
5607 * include/stdlib.h: Likewise.
5608 * include/nonansi/io.h: Likewise.
5609 * include/nonansi/process.h: Likewise.
5610 * include/sys/types.h: Likewise.
5612 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5614 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5616 * include/stdlib.h (free): Fix prototype to return void, not void*.
5617 * include/nonansi/process.h: Add P_* and WAIT_* defs.
5619 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
5620 * mcrt0.c: Likewise.
5622 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
5623 (libmoldnames.a): Add explicit rule to create it.
5625 1997-08-15 Rob Savoye <rob@cygnus.com>
5627 New directory for the minimalist cygwin environment.
5629 * crtglob.c: New file. Turn on file globbing support.
5630 * crt_noglob.c: New file. Turn off file globbing support.
5631 * ctype_old.c: New file. Wrappers for functions that don't
5633 * dirent.c: New file. Directory routines readdir, opendir, closedir.
5634 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
5635 * dllmain.c: New file. A stub DllMain function.
5636 * hugeval.c: New file. A gross hack to define HUGE_VAL.
5637 * init.c: New file. Common code to initialize standard file
5638 handles and command line arguments.
5639 * main.c: New file. A main for programs that only call WinMain.
5640 * mcrt0.c: New file. Default crt0 for mingw32.
5641 * oldnames.c: New File. Wrappers for functions that don't
5643 * string_old.c: New File.
5644 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
5645 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
5646 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
5647 * include/sys/types.h: New header file for mingw.
5648 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
5649 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
5650 utime.h,values.h,varargs.h}: New header files for mingw.
5651 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
5652 timeb.h,unistd.h}: New header files for mingw.
5653 * Makefile.in,configure.in: Build and configure support.
5654 * configure: Generated from autoconf 2.12 with Cygnus patches.