1 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
5 * include/string.h: Tidy layout.
6 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
7 (_stricmp, _strnicmp): Include their prototypes, selectively from...
8 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
9 * include/parts/strings.h: ...from here; file is obsolete; delete it.
11 * include/string.h (_wcscmpi): Define alias.
12 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
13 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
14 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
15 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
16 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
17 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
18 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
19 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
21 * include/strings.h (_STRINGS_H): Do not define it, when...
22 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
23 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
25 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
27 Refactor to make <parts/time.h> redundant.
29 * include/sys/types.h (time_t, __time32_t, __time32_t)
30 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
31 * include/parts/time.h: ...from here; preserve selective exposure.
33 * include/time.h (time_t, __time32_t, __time32_t): Get them...
34 * include/sys/types.h: ...from here, by selective inclusion.
36 * include/time.h (struct timespec, struct __mingw_extended_timespec)
37 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
38 * include/parts/time.h: ...from here; preserve selective exposure.
40 * include/parts/time.h: Delete file; it is no longer required.
42 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
44 Declare the nanosleep() function where POSIX expects it.
46 * include/time.h (__mingw_sleep): Declare function prototype.
47 (nanosleep): Declare prototype, and provide in-line implementation;
48 this is a reproduction of the original implementation, relocated...
49 * include/unistd.h (nanosleep): ...from here; remove it; hence...
50 (struct timespec): ...this need not be declared here, and there is
51 no need to include <parts/time.h>; remove reference.
53 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
55 Refactor <time.h> vs. <wchar.h> to avoid duplication.
57 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
58 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
59 (struct tm): Delete definition; delegate it, together with each of...
60 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
61 (wcsftime): ...these function prototypes; delete them, but note in
62 comments, that they remain declared, via delegation to...
63 * include/time.h: ...this; include it selectively, subject to...
64 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
65 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
66 [_TIME_H]: Process all definitions and declarations; otherwise...
67 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
68 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
69 (_WTIME_DEFINED): Obsolete macro; delete all references.
71 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
73 Implement support for POSIX "%n$*m$" printf() format control.
75 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
76 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
77 (__pformat_inline__): New macro; define, and use it where appropriate.
78 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
79 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
80 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
81 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
82 (__pformat_argmap_t): ...this new union data type; define it.
83 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
84 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
85 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
86 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
87 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
88 (__pformat_length_modifier, __pformat_check_length_modifier): New
89 locally defined static and/or inline functions; implement, and...
90 (__pformat): ...use them.
92 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
94 Add prototypes for Microsoft's _printf_p() family of functions.
96 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
97 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
98 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
99 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
100 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
101 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
102 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
103 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
104 available for selective inclusion by both <stdio.h> and <wchar.h>...
105 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
107 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
109 Adapt msvcrt-xref to become msvcrt.def.in provider.
111 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
112 filter value assignment; scale it upwards, by a factor of 0x10000.
113 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
114 (%.def) [msvcr*]: Do not preserve comments; define...
115 (__DLLNAME__): ...this preprocessor symbol.
117 * msvcrt.def.in: Content is obsolete; delete file and replace with...
118 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
119 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
120 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
121 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
122 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
124 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
126 Import msvcrt-xref documentation resources.
128 * msvcrt-xref: New directory.
129 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
130 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
131 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
132 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
134 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
136 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
138 * include/wchar.h: Some minor layout adjustments.
139 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
140 within the scope of reading <wchar.h>; undefine it at end of file.
141 (struct tm): Do not define; it is sufficient to keep it opaque.
142 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
143 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
144 directly; delegate to indirect definition by including <stdio.h>.
145 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
146 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
147 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
148 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
149 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
150 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
151 indirectly, by selective inclusion from <stdio.h>; hence include it.
153 * include/stdio.h: Assert copyright; tidy layout.
154 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
155 (_STDIO_H): ...this, but defined conditionally, subject to...
156 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
157 entities which are required by <wchar.h>; do not define...
158 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
159 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
160 are normally specified within <stdio.h>, INCLUDING those specifically
161 itemised above, as selectively required by <wchar.h>.
163 * pseudo-reloc.c: Some minor layout adjustments.
164 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
165 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
166 include <stddef.h> to guarantee it.
168 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
170 Enable selective definition of POSIX system types.
172 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
173 any specific __need_TYPE selector having been set prior to inclusion;
174 DO define it when no such selector is present, and undefine all such
175 selectors as may have been set, after evaluation of their effects.
176 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
177 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
178 accommodates reorganization of the file, to achieve a tidier layout.
179 (__have_typedef_off_t): New repeat definition guard; define it for
180 compilers which may choke on any repeated typedef for either of...
181 (off_t, _off_t): ...these; make them selectively defineable for...
182 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
183 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
184 in either case, redefine them in terms of...
185 (__off32_t): ...this new internal type, for consistency with...
186 (__off64_t): ...this previously defined non-standard type; also make
187 it selectively defineable, either by...
188 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
189 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
190 (__have_typedef___off64_t): New repeat definition guard; define it.
191 (ssize_t, _ssize_t): Also make them selectively defineable, on...
192 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
193 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
194 (__have_typedef_ssize_t): New repeat definition guard; define it.
196 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
198 Avoid user namespace pollution by non-standard type 'off64_t'.
200 * include/sys/types.h (off64_t): Rename it as...
201 (__off64_t): ...this implementation-private alternative name, so
202 eliminating the potential for user namespace pollution.
204 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
205 return type, and type of offset argument, in both prototype and inline
206 implementation; note that this addresses the issue of pollution in the
207 user namespace, while avoiding the issue of MinGW-Bug [#].
209 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
210 instead of 'off64_t', as offset argument type in function prototypes.
211 (ftello64): Likewise, for return type of inline function.
213 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
214 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
215 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
217 * mingwex/stdio/fseeko64.c: Assert copyright.
218 (fseeko64): Use '__off64_t' per modified function prototype.
220 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
222 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
224 * mingwex/ofmtctl.c: New file; it implements...
225 (_mingw_output_format_control): ...this new function; it provides
226 additional MinGW specific printf() format processing options.
228 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
230 * include/stdio.h (_mingw_output_format_control): Declare it.
231 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
232 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
233 manifest constant expressions; define them.
235 * mingwex/stdio/pformat.c: Revise licensing terms.
236 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
237 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
238 modifier; this matches the behaviour specified by ISO-C99, else...
239 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
240 previous MSVC compatible behaviour, treating it as an `L' modifier.
241 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
243 * mingwex/ofmt.c (ARGLIST): Subsume references to...
244 (ARGTYPE): ...this now obsolete macro; delete it throughout.
245 (update_output_format_flag): New inline function; it restricts flag
246 operations to affect only Microsoft's exponent digit bits.
247 [FUNCTION == _set_output_format]: Use it.
248 [FUNCTION == _get_output_format]: Likewise.
250 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
252 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
254 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
255 defined, when implied by any STDC or POSIX version selection, viz. ...
256 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
258 * include/stdlib.h: Assert copyright; tidy layout.
259 (_STDLIB_H_): Multiple inclusion guard macro renamed...
260 (_STDLIB_H): ...to this, preferring no trailing underscore.
261 [!defined __NO_ISOCEXT]: Delete double negative references; use...
262 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
263 (lldiv_t): ...defining this C99 specific aggregate data type, and...
264 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
265 (wcstold, _Exit): ...declaring these C99 function prototypes.
266 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
267 future removal; not in MSVCRT.DLL, these conform to no known standard.
268 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
269 (__strtod): ...this libmingwex.a provided function; it handles string
270 representations of hexadecimal-floats, infinities and NaNs, whereas...
271 (strtod): ...this MSVCRT.DLL implementation does not.
272 (__MSVCRT_VERSION__): Prefer symbolic comparison...
273 [>= __MSVCR80_DLL]: ...for this requirement.
275 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
277 Rationalize definition of struct timespec.
279 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
280 tv_sec field, in place of anonymous union, thus avoiding missing brace
281 warnings when initializing; leave a copy of the previous definition...
282 (struct __mingw32_expanded_timespec): ...named thus.
284 * include/unistd.h (nanosleep): Adjust inline implementation, to match
285 altered specification of tv_sec field in struct timespec.
287 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
288 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
290 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
291 convenience function; defined as inline, with __LIBIMPL__ equivalent,
292 it facilitates interpretation of an instance of struct timespec as if
293 it were defined as struct __mingw32_expanded_timespec.
295 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
297 Make strings.h mostly POSIX.1-2008 compliant.
299 * include/strings.h: Rewritten. Do not include...
300 (string.h): ...this; mandated by POSIX.1, it now defines...
301 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
302 prototypes, possible in-line implementations, and JMPSTUB references
303 to corresponding external implementations, which will now become
304 automatically created within libmingwex.a
306 * include/parts/strings.h: New file; it declares prototypes for...
307 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
308 string.h, but we also require them in strings.h
310 * include/parts/wchar.h: New file; it declares prototypes for all wide
311 character functions which MSVC specifies in both wchar.h and string.h
313 * include/string.h: Miscellaneous layout adjustments.
314 (strcasecmp, strncasecmp): Delete; they belong in strings.h
315 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
316 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
317 include them from parts/wchar.h instead.
319 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
320 prototypes; include them from parts/wchar.h instead, so making this
321 guard macro redundant; delete it.
323 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
324 (wcscmpi.$OBJEXT): Implementations are now automatically generated
325 from header file, for inclusion in libmingwex.a; remove free-standing
326 implementations from the entire family of liboldname libraries, and...
327 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
328 files; they are no longer required.
330 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
332 Incorporate build system updates from w32api package.
334 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
335 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
336 (install-strip, uninstall): New make command goals; implement them.
337 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
338 (devdist, dlldist): ...these have no need to strip explicitly.
339 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
340 (install-mingwrt-headers): ...here.
342 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
344 Adapt platform feature checks to NTDDI_VERSION conventions.
346 * include/_mingw.h: Assert copyright; include w32api.h
347 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
348 to w32api/include/w32api.h, whence they remain in effect.
349 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
351 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
353 Correct mismatched #if/#endif from preceding commit.
355 * include/_mingw.h (#pragma GCC system_header)
356 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
357 correcting for inadvertent removal of matching #endif introduced by
358 preceding 2015-06-19 commit.
360 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
362 Define symbolic names for alternative Microsoft runtime DLLs.
364 * include/msvcrtver.h: New file; it assigns a value for...
365 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
366 (__MSVCR60_DLL): ...this new manifest constant, with each of...
367 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
368 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
369 ...these also defined, as user assignable alternatives.
371 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
372 to establish its default value.
374 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
376 Track dependencies on modified system header files.
378 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
380 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
382 Correct an anomaly in stage 1 only build procedure.
384 * Makefile.in (all-gcc): New goal; it is an alias for...
385 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
386 (all-mingwrt-stage-1-only): ...this; upate all references.
387 (active-goals): Adjusted accordingly; it now reguires...
388 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
389 (install): Adjusted, as directed by...
390 (DEFAULT_MAKECMDGOALS): ...this.
392 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
394 Prefer our hypot() implementation in complex maths operations.
396 * mingwex/complex/cabs_generic.c: New file; it replaces...
397 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
398 * mingwex/complex/cabsl.c: ...these.
400 * mingwex/complex/catan_generic.c: New file; it replaces...
401 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
402 * mingwex/complex/catanl.c: ...these.
404 * mingwex/complex/clog_generic.c: New file; it replaces...
405 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
406 * mingwex/complex/clogl.c: ...these.
408 * mingwex/complex/cpow_generic.c: New file; it replaces...
409 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
410 * mingwex/complex/cpowl.c: ...these.
412 * mingwex/complex/csqrt_generic.c: Do not use...
413 (_hypot): ...this Microsoft form of function reference; use...
414 (hypot): ...this ANSI standard form instead.
416 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
418 Correct C++ compilation anomaly with hypotf() in cmath header.
420 * include/math.h: Add copyright notice; generally tidy layout.
421 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
422 (hypotf): Delete inline implementation; it did not properly handle
423 range errors, and was uncompilable with optimization when any g++
424 option implying __STRICT_ANSI__ conformity was specified.
425 (_MATH_H_): Rename this multiple inclusion guard...
426 (_MATH_H): ...to this.
428 * mingwex/math/hypot_generic.c: New file; it implements...
429 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
430 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
432 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
434 Prepare and tag all files for release of mingwrt-3.21.1.
436 * configure.ac (AC_INIT): Adjust package version argument.
437 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
438 (__MINGW32_VERSION): ...increment this to match.
440 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
442 Refactor to avoid possible time_t conflicts across headers.
444 * include/parts/time.h (struct timespec): Make it more descriptive of,
445 and better able to accommodate, potential ambiguity relating to...
446 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
447 whence they may be identically imported into each of...
448 * include/sys/types.h include/time.h include/wchar.h: these; delete
449 duplicate typedefs, and import accordingly.
451 * include/sys/types.h: Add licence; general comment additions.
452 (_TYPES_H_): Rename multiple inclusion guard macro...
453 (_SYS_TYPES_H): ...to this.
455 * include/time.h: Add licence; general comment/layout adjustments.
456 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
457 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
458 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
459 (_TIME_H_): Rename multiple inclusion guard macro...
460 (_TIME_H): ...to this.
462 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
463 (struct timespec): ...of this.
465 * include/wchar.h: Add licence; general comment/layout adjustments.
466 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
467 [GCC] (system_header): Add pragma, identifying header as such.
468 (_WCHAR_H_): Rename multiple inclusion guard macro...
469 (_WCHAR_H): ...to this.
471 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
473 Remove obsolete varargs.h header file.
475 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
476 a GCC header which is no longer supported, and was always intended for
477 ultimate removal; now is the long overdue time to do so.
479 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
481 Correct improper unistd.h function attribute declarations.
483 * include/unistd.h (_cdecl): Correct usage throughout; should be...
486 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
488 Fix GLOB_DOOFFS initialization bug.
490 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
491 (gl_data->gl_offs): ...this is properly initialized to zero.
493 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
495 Tag all files for release of mingwrt-3.21.
497 * include/_mingw.h: Adjust version accordingly.
499 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
501 Improve usage notes in stdlib.h, for mkstemp() function.
503 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
504 an original comment, explaining the need to use _O_TEMPORARY, from...
505 * mingwex/mkstemp.c: ...here; delete trailing white space.
507 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
509 Eliminate some potential definition inconsistencies.
511 * include/stdio.h: Cosmetic formatting change, relating to...
512 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
513 unconditionally; this allows the compiler to check for consistency
514 with their primary definitions in stdio.h
516 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
518 Suppress expected warning diagnostics in LIBIMPL builds.
520 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
521 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
522 GCC flag to supress warnings relating to deprecated declarations.
524 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
526 Provide more POSIX conforming sleep() functions.
528 * include/sys/types.h (useconds_t): Make it explicitly long; int may
529 be okay, but doesn't guarantee enough bits; mark as deprecated, since
530 POSIX has declared it "obsolete", and no longer specifies it.
532 * mingwex/usleep.c: Delete file; it provided an implementation of...
533 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
534 its error handling was hopelessly broken; replace it with...
535 * mingwex/nsleep.c: ...this new file; it implements...
536 (__mingw_sleep): ...this generic helper function; it supports sleep
537 capability with interval specification to nanosecond precision.
539 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
540 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
541 (sleep, nanosleep): ...these current POSIX functions, and also...
542 (usleep): ...this obsolete one; mark it as deprecated.
544 * include/parts: New directory; it is intended to host partial header
545 implementations, for content which must be shared among arbitrary sets
546 of multiple standard header files.
548 * include/parts/time.h: New file; nominally declaring time.h content.
549 (struct timespec): Declare it; it is currently used within unistd.h,
550 to facilitate the __CRT_INLINE implementation of nanosleep().
552 * Makefile.in (libmingwex.a): Remove reference to...
553 (usleep.$OBJEXT): ...this; replace it with a reference to...
554 (nsleep.$OBJEXT): ...this alternative.
555 (mingwrt-includedirs): Add prerequisite to create...
556 ($includedir/parts): ...this new directory; it is populated by...
557 (install-mingwrt-headers): ...this rule; add requisite command.
559 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
561 Delete an unnecessary Unicode wrapper file.
563 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
564 UTF-16LE API from dirent.c, without any need for this wrapper.
566 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
568 Some further inline function rationalization.
570 * include/io.h (_CRTALIAS): Replace all references...
571 (__CRT_ALIAS): ...using this syntactically preferred form.
572 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
573 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
575 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
576 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
578 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
579 * mingwex/ftruncate.c: Likewise.
581 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
582 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
584 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
586 Some POSIX feature test adjustments.
588 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
589 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
590 (mkdtemp): This didn't become available until SUSv4, so requires...
591 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
593 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
595 Another CRT_INLINE function implementation rationalization.
597 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
598 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
599 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
601 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
602 (libmingwex.a): Delete obsolete dependency on...
603 (imaxabs.$OBJEXT): ...this.
605 * mingwex/imaxabs.c: File is now redundant; delete it.
607 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
609 More rationalization of CRT_INLINE function implementations.
611 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
612 (ftello64): Add __LIBIMPL__ specification for extern implementation.
613 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
615 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
616 * mingwex/stdio/ftell064.c: Likewise.
618 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
619 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
621 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
623 Don't implicitly define _POSIX_C_SOURCE too early.
625 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
626 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
627 that it is not accidentally activated by implied _POSIX_C_SOURCE.
629 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
631 Correct complex arcsin computation per issue [#2245].
633 * mingwex/complex/casin_generic.c: New file; it replaces...
634 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
635 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
637 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
639 Correct complex square root computation per issue [#2246].
641 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
642 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
643 (hypot): ...this libmoldname.a indirection.
645 * mingwex/complex/csqrt_generic.c: New file; it replaces...
646 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
647 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
649 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
651 Adjust header guards to resolve issue [#2244].
653 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
654 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
655 ...when any of these prevail, or as appropriate to correspond with...
656 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
658 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
659 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
660 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
661 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
663 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
665 Add implementation of mkstemp() and mkdtemp() functions.
667 * mingwex/cryptnam.c: New file; it implements...
668 (__mingw_crypto_tmpname): ...this helper function; it generates a
669 cryptographically secure sequence of characters, used as the random
670 component in temporary file and directory names.
672 * mingwex/mkstemp.c: New file; it implements...
673 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
675 * mingwex/mkdtemp.c: New file; it implements...
676 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
678 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
679 function implementation, with LIBIMPL extern semantics, in terms of...
680 (__mingw_mkstemp): ...this; also declare prototype, and define...
681 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
682 (_MKSTEMP_SETMODE): New macro; define it, also providing...
683 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
684 (mkdtemp): Declare prototype; provide inline implementation, with
685 JMPSTUB extern semantics, in terms of...
686 (__mingw_mkdtemp): ...this; declare prototype.
688 * Makefile.in (libmingwex.a): Add dependency rule, to include...
689 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
691 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
693 More JMPSTUB rationalization of inline functions.
695 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
696 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
697 appropriate MSVCRT.DLL equivalent entry point.
699 * mingwex/_Exit.c: File is now redundant; delete it.
700 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
701 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
703 * Makefile.in (jmpstub_awk_script): Add support for...
704 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
705 (libmingwex.a): Remove dependencies on deleted files, namely...
706 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
707 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
709 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
711 Correct omission of complex conjugate functions from libmingwex.a
713 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
714 (creal, crealf, creall): Likewise, for consistency of implementation.
715 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
717 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
718 declarations; they should be interpreted analogously to __CRT_ALIAS.
719 (libmingwex.a): Remove object file references for functions which are
720 now declared as LIBIMPL, and sort the remainder in ASCII collating
721 order; deleted function references comprise the set consisting of...
722 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
723 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
724 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
726 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
727 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
728 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
729 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
730 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
732 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
734 Back-port improved asinh() implementation from 4.0-dev branch.
736 * mingwex/math/asinh_generic.c: New file; it replaces...
737 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
738 ...all of these; delete them.
740 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
742 Enable remake of lost LIBIMPL object files.
744 * Makefile.in (libimpl_remake): New macro; define it, and...
745 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
747 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
749 Implement more robust _get_output_format fallback handling.
751 * mingwex/ofmt.c: New file; it implements...
752 (__mingw_output_format_flag): ...backing store, used by...
753 (__mingw_get_output_format, __mingw_set_output_format): ...these
754 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
755 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
756 version specific Microsoft APIs, which are also supported by some
757 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
758 (__mingw_get_output_format_fallback): Implement; it is aliased to...
759 (__mingw_set_output_format_fallback): ...this; together they provide
760 the emulation support for the preceding pair of functions, when they
761 are not available within the run-time platform MSVCRT.DLL
762 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
763 Implement them; they wrap, and if necessary emulate...
764 (_get_printf_count_output, _set_printf_count_output): ...these.
765 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
766 (__mingw_set_printf_count_output_fallback): ...this; together they are
767 required to support emulation of the preceding pair of functions, when
768 they are not available within the run-time platform MSVCRT.DLL
770 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
771 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
772 (__mingw_get_output_format, __mingw_set_output_format)
773 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
774 Unconditionally declare their prototypes, for subsequent inline use.
775 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
776 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
777 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
778 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
779 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
780 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
781 represent a compilable token.
783 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
784 _get_output_format; consult __mingw_output_format_flag directly.
786 * ofmt_stub.s: No longer required; delete it.
788 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
789 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
790 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
791 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
792 all are compiled from ofmt.c
794 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
796 Do some more essential build tree clean up.
798 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
799 in the way of a successful rebuild from clean.
801 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
803 Implement wrappers for emulation of POSIX dlfcn API.
805 * include/dlfcn.h: New file; it declares the API.
806 * mingwex/dlfcn.c: New file; implement it, with access via...
807 (__mingw_dlfcn): ...this publicly addressable vector table.
809 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
810 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
811 (__LIBIMPL__): ...this automatic interface generator; implement it.
812 (libstub_refnames): New macro; it is adapted from and replaces...
813 (jmpstub_refs): ...this; when it is then invoked twice to build...
814 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
815 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
816 (libimpl_awk_script): New inline script; it handles automated builds
817 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
818 (libimpl_sed_script): New inline script; it prepares intermediate C
819 source code for LIBIMPL interfaces, as required to satisfy these...
820 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
821 (LIBIMPL_CFLAGS): New macro; define it.
823 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
825 Move libgen functions to __mingw_ pseudo-namespace.
827 * mingwex/dirname.c (dirname): Rename function, as implemented...
828 (__mingwex_dirname): ...to this.
830 * mingwex/basename.c (basename): Rename function, as implemented...
831 (__mingwex_basename): ...to this.
833 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
834 prototypes, matching and augmenting original declarations for...
835 (dirname, basename): ...these; reimplement as inline aliases, with
836 __JMPSTUB__ references to the renamed implementation entry points.
838 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
840 Implement new command line argument globbing strategy.
842 * include/_mingw.h: Backport feature defines from master...
843 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
844 constants; define them. They select the preferred globbing algorithm.
845 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
846 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
847 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
848 they enable optional additional features supported by this algorithm.
849 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
851 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
853 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
854 * setargv.c: ...new file; it implements the initialization mechanism
855 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
856 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
857 it invokes the algorithm via an API similar to that described by MSDN,
858 while continuing to support our original _CRT_glob interpretation.
859 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
860 algorithm, via the MSDN-alike API, by calling back to...
862 * crt1.c (_mingw32_init_mainargs): ...this original function, now
863 relocated to here, as a publicly addressable function; formerly...
864 (__mingw_CRTStartup): ...called directly from here, we now redirect
865 the call through _setargv(), whence it may be called indirectly.
867 * init.c: Redundant file; delete it. It originally provided...
868 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
869 original static attribute removed, to allow global addressing.
871 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
873 Backport glob implementation from master to legacy.
875 * include/glob.h: New file; copy it from master branch.
876 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
877 (glob, globfree): ...each of these, respectively.
879 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
880 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
881 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
882 (accept_glob_nocheck_match): New static function; it adds support for
883 avoidance of globbing on patterns with no globbing token, so avoiding
884 the case transliteration effect reported as MinGW-Bug #2106.
885 (glob_match): Use it.
887 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
889 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
891 Implement conventionally named dirent function trampolines.
893 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
894 which redirects a conventionally named function call to its __mingw_
895 pseudo-namespace implementation.
897 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
898 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
899 appropriate protocol for compiling *.sx files, (supported natively by
900 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
902 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
903 yet provide it, so we define it ourselves; deploy it for *.sx files.
904 (Makefile.stub): New sinclude file; create it dynamically, using...
905 (jmpstub_awk_script): ...this new inline script, which is based on...
906 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
907 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
908 (mostlyclean-local): Remove Makefile.stub; do likewise...
909 (Makefile): ...when remaking this, to ensure that both will be
912 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
914 Make dirent implementation namespace and time_t clean.
916 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
917 macros; define them. They facilitate identification of symbols which
918 must be compiled with `extern "C"' binding, when compiling C++ code.
919 (__CRT_ALIAS): New macro; define it. It is intended to replace...
920 (_CRTALIAS): ...this, which is to be considered as deprecated.
921 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
922 __CRT_ALIAS build hints, while remaining transparent to GCC.
923 (UNICODE, _UNICODE) [user defined]: Define consistently.
925 * mingwex/dirent.c: Reimplement; (this is a back-port from the
926 4.0-dev branch, with additional ABI changes to improve stability).
927 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
928 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
929 Add `__mingw_' prefix to all publicly exposed symbol names.
930 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
931 implemented functions; they replace Microsoft's ambiguously defined
932 _findfirst, _findnext, and _findclose, so avoiding ABI instability
933 resulting from the ambiguous size of Microsoft's time_t.
935 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
936 removing unnecessary time_t and file size fields; (our replacements
937 for _findfirst, and _findnext do not require them to be present).
938 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
939 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
940 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
941 Adjust prototypes, making them inline aliases for public symbols which
942 are now qualified by the `__mingw_' prefix; add build hints to support
943 compilation of addressable stubs, with the original symbol names.
944 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
945 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
946 BSD compatibility, but are fundamentally unsupported on MS-Windows).
947 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
948 New macros; define them. (These show availability of optional fields
949 within the dirent struct, which client code may wish to access).
951 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
953 Correct improper naming of assembly language source files.
955 * mingwex/math/*.S: Rename all files with this extension...
956 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
957 not extended `assembler-with-cpp' as implied by the former extension);
958 adjust all internal `.file <name>' references accordingly.
960 * Makefile.in (vpath %.S): Adjust reference to locate files....
961 (vpath %.s): ...now renamed thus.
963 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
965 Streamline the build system infrastructure.
967 * configure.ac: New file; it replaces...
968 * configure.in: ...this; (name is obsolete); delete it.
970 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
971 make invocations, when processing subdirectories, and add automatic
972 dependency tracking for all generated files.
974 * configure: Delete it; as a generated file, it doesn't belong in SCM.
976 * mingwex/Makefile.in: No longer required; delete it.
977 * profile/Makefile.in: Likewise.
979 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
980 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
982 * jamfile: Delete it; it hasn't been updated in ages, is likely no
983 longer relevant, and I have no desire to maintain it.
985 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
987 * include/_mingw.h: Increment version to 3.20.
989 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
991 * tlsmthread.c: Update to reflect changes in tlssup.c.
992 * tlssup.c: code clean-up.
994 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
996 * include/_mingw.h: Increment version to 3.19.
998 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1000 * include/float.h: Modify guard to accomodate CLang.
1002 Thanks to Ruben Van Boxem for the report.
1004 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1006 * tlssup.c: Remove mingwm10.dll fallback.
1008 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1010 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1012 Thanks to bvassche for the report.
1014 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1016 Correct checking for short option matches in getopt_long_only().
1018 * mingwex/getopt.c (getopt_verify): New static inline function.
1019 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1020 possible short option match after failing to match, or ambiguously
1021 matching as a long option.
1023 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1025 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1027 Thanks to cgf for the report.
1029 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1031 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1032 compiles with __STRICT_ANSI__.
1034 Thanks to Felipe Contreras for the report.
1036 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1038 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1041 Thanks to Tobias Burnus for the report.
1043 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1045 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1046 by wrapping the functions in brackets.
1048 Thanks to Kai Tietz for the report.
1050 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1052 * Makefile.in: Add support for msvcr100.dll.
1053 * msvcrt.def.in: Ditto.
1055 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1057 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1058 not always available, go the long way and use the explicit named union
1059 members, which are also declared in winnt.h.
1061 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1063 * mingwex/isblank.c: Fix typo in declaration.
1065 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1067 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1068 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1069 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1070 is included before <ctype.h>.
1072 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1074 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1076 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1078 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1080 Correct hexadecimal formatting of double and long double values.
1082 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1083 (__pformat) [A format]: Cast double values to long double, and use...
1084 (__pformat_xldouble): ...this instead, with corrected adjustment of
1085 exponent and alignment of mantissa, when formatting subnormals.
1087 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1089 * include/dirent.h (dd_handle): Define as intptr_t.
1091 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1093 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1096 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1098 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1099 semantically identical MAX_PATH; correct value is 260.
1101 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1103 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1104 system include search path; (issue reported by Mark Brand).
1106 * include/float.h: Add multiple inclusion guard around...
1107 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1108 only when this define does not indicate that it has already been seen;
1109 update comments to document rationale; move it within the scope of...
1110 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1111 GCC's float.h, after an appropriate complementary modification, need
1112 not perform a further include path search when this implementation
1113 specific extension has already been processed.
1115 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1117 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1118 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1119 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1120 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1121 _findnexti64): Correct definition.
1123 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1125 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1127 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1129 * include/_mingw.h: Increment version to 3.18.
1131 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1133 * include/stdio.h: (_vscprintf, _vscwprintf)
1134 * include/tchar.h: (_vsctprintf)
1136 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1138 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1139 (initial implementation)
1141 * new type: __time32_t
1143 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1144 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1145 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1147 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1148 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1149 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1150 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1151 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1152 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1153 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1154 _wstat32i64, _wstat64i32,_wutime32
1156 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1157 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1158 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1159 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1160 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1162 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1164 Implement TLS Callback.
1166 * tlsmcrt.c: New file.
1167 * tlsmthread.c: Ditto.
1170 * Makefile.in: Include new files.
1171 * crt1.c: Implement TLS Callback.
1173 * mthr_stub.c: Remove.
1175 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1177 * include/_mingw.h: Increment version to 3.17.
1179 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1181 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1182 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1184 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1186 * include/io.h (_open_osfhandle): Correct definition.
1188 Thanks to Alexander Shaduri for the information.
1190 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1192 Final sync of pseudo-reloc.c with mingw64 and cygwin
1193 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1194 regarding error messages.
1196 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1198 Honor DESTDIR for winsup/mingw and winsup/w32api.
1199 Detect and report error if installation paths are win32
1200 format, but DESTDIR is non-empty.
1202 * Makefile.in (DESTDIR): Honor per convention.
1203 (need-DESTDIR-compatibility): New macro; define it and a
1205 (fail-DESTDIR-compatibility): New dependency goal.
1206 (install-dirs): Require need-DESTDIR-compatibility.
1207 * mingwex/Makefile.in (DESTDIR): Honor per convention.
1208 (need-DESTDIR-compatibility): New macro; define it and a
1210 (fail-DESTDIR-compatibility): New dependency goal.
1211 (install): Require need-DESTDIR-compatibility.
1212 * profile/Makefile.in: Ditto.
1214 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1216 Sync pseudo-reloc.c with mingw64
1217 * psuedo-reloc.c: Remove unnecessary includes.
1218 Forward declare _pei386_runtime_relocator.
1219 Decorate _image_base__ symbol with macro for
1220 mingw64 compatibility. Whitespace changes.
1221 (__print_reloc_error): Renamed to...
1222 (__report_error): This. "Returns" void, and
1223 always aborts. Now used on all platforms.
1224 (__write_memory): Remove special case error handling
1225 for different platforms - always call __report_error.
1226 (do_pseudo_reloc): Remove special case error handling
1227 for different platforms - always call __report_error.
1228 (_pei386_runtime_relocator): Decorate _image_base__
1229 symbol with mingw64 compatibility macro.
1231 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1233 Sync pseudo-reloc.c with cygwin/lib/
1234 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1235 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1236 for fatal error handling that is consistent with cygwin process
1237 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1238 is unique to each address space, across fork().
1239 [CYGWIN] (__print_reloc_error): New function for reporting
1240 errors in a manner supported by cygwin at this early stage of
1241 the process life-cycle.
1242 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1243 performed only once for each address space, but are repeated
1244 after fork() in the new address space.
1245 [MINGW] (__write_memory): Ensure that b is always initialized
1246 by call to VirtualQuery, even if -DNDEBUG.
1248 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1250 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1251 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1253 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1254 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1255 specified format qualifiers, except in special case...
1256 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1257 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1258 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1261 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1263 Avoid multiple link time definitions of _printf() for C++;
1264 (problem reported by Alexander Shaduri, via MinGW-users ML).
1266 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
1267 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
1269 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1271 * include/_mingw.h: Increment version to 3.16.
1273 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
1275 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
1276 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
1277 __fp_unordered_compare): Add prototypes.
1278 * include/stdio.h (vsnwprintf): Add prototype.
1279 * include/wchar.h (vsnwprintf): Add prototype.
1280 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
1281 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
1283 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1285 Correct disposition of wchar_t output in printf().
1287 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
1288 (argval): ...this, in inner scope, with singular type `wchar_t'; use
1289 it to pass one wchar to __pformat_wputchars(), for output.
1291 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1293 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
1295 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1297 Convert to monolithic configuration procedure.
1299 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
1300 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
1301 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
1302 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
1303 (CRT0S): Relocate from `profile'; define it as appropriate.
1304 (LIBM_A): Define and AC_SUBST it unconditionally.
1305 (AC_CONFIG_SUBDIRS): Remove; none to configure.
1306 (AC_OUTPUT_FILES): Add `Makefile' for each of...
1307 (mingwex, profile): ...these subdirectories.
1309 * configure: Regenerated.
1311 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
1312 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
1313 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
1314 (SUBDIRS): Define explicitly, to run recursive `make' in...
1315 (mingwex, profile): ...these; simplify build commands...
1316 (rootme, rootsrc): ...without these shell variables.
1317 (all, subdirs): Delete redundant build commands.
1318 (FIXME): Flag various issues for follow up.
1320 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
1321 (top_srcdir): ...this new macro; let AC_SUBST define it.
1322 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1323 (Makefile): Make it depend on...
1324 (top_builddir/config.status): ...this, itself depending on...
1325 (top_srcdir/configure): ...this.
1326 (FIXME): Flag various issues for follow up.
1328 * mingwex/aclocal.m4: File no longer required; delete it.
1329 * mingwex/configure mingwex/configure.in: Likewise.
1331 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
1332 (top_srcdir): ...this new macro; let AC_SUBST define it.
1333 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1334 (Makefile): Make it depend on...
1335 (top_builddir/config.status): ...this, itself depending on...
1336 (top_srcdir/configure): ...this.
1337 (FIXME): Flag various issues for follow up.
1339 * profile/aclocal.m4: File no longer required; delete it.
1340 * profile/configure profile/configure.in: Likewise.
1342 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1344 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
1345 to complaints that it causes issues.
1347 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
1349 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
1351 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1353 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
1354 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
1355 to all inline functions.
1357 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1359 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
1360 * CRT_fp10.c: Ditto.
1362 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1364 * cpu_features.c: replace gcc-specific construct with portable alternative
1365 and match the code a few lines above.
1366 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
1368 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1370 * include/_mingw.h: Changes required for PCC compiler.
1372 2009-07-18 Jeff Lu <jll544@yahoo.com>
1374 * mingwex/usleep.c: round up to next ms
1376 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1378 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
1379 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
1380 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
1381 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
1383 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1385 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
1387 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
1389 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
1390 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
1391 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
1392 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
1393 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
1394 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
1395 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
1396 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
1397 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
1398 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
1399 sources as of Apr. 20, 2009. Update further to match the sources in
1400 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
1401 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
1402 double/ulong union from U to dbl_union for better grepping and white-
1405 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1407 * include/stdlib.h (_wtof): Define.
1409 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
1411 * include/stdint.h (int_fast8_t): Specify as signed char.
1412 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
1413 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1415 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1417 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1419 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1421 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1422 (Requested by Robert Riebisch)
1424 * mingwex/getopt.c (getopt_parse): Track external increments of...
1425 (optind): ...this global variable.
1427 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1429 * include/_mingw.h: Increment version to 3.15.2.
1431 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1433 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1434 Also add tentative support for BSD specific `optreset' feature.
1436 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1437 (__mingw_optreset): ...this new global variable.
1439 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1440 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1443 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1445 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1446 Correct mishandling of invalid characters in printf() format specs.
1448 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1449 (backtrack): ...this new automatic variable, at start of each format
1450 conversion specification substring; use it to backtrack, and print the
1451 substring literally, if any invalid character is encountered.
1453 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1455 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1456 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1457 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1458 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1459 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1460 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1461 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1462 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1463 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1464 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1465 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1466 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1467 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1468 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1470 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1472 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1474 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1476 Correct some binary distribution packaging defects.
1478 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1479 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1480 intermediate goals; they make packages of files, as specified by...
1481 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1482 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1484 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1486 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1487 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1489 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1490 of radix point conditional on precision != 0 or `#' flag specified.
1492 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1494 Fix MinGW-Bug [2160227]
1495 Eliminate conflicting declarations and implementations of scalb().
1497 * moldname.def.in (scalb): Comment out of EXPORTS list.
1498 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1499 with GCC's built-in declaration.
1501 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1503 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1505 * mingwex/Makefile.in: Ditto.
1506 * profile/Makefile.in: Ditto.
1507 * configure.in: Record mingw front-end for building under Cygwin.
1508 * mingwex/configure.in: Ditto.
1509 * profile/configure.in: Ditto.
1510 * configure: Regenerate.
1511 * mingwex/configure: Ditto.
1512 * profile/configure: Ditto.
1514 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1516 Use de-facto standard Makefile goals to invoke test suite.
1518 * Makefile.in: Some minor formatting adjustments.
1519 (test_headers): Unconventionally named goal renamed to...
1520 (check-headers): ...this; make it a prerequisite of...
1521 (check): ...this new conventionally named goal.
1523 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1525 Make strtod() inline definition C89 compliant.
1526 (Issue reported by Ilya Shestopalov and Ian Puleston)
1527 (Correction identified by Danny Smith)
1529 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1530 reformat inline function definition.
1532 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1534 * include/_mingw.h: Increment version to 3.15.1 and introduce
1535 __MINGW32_PATCHLEVEL variable.
1537 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1539 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1540 (Reported by Christian Franke)
1542 * mingwex/getopt.c (optind): Make global variable value conform to
1543 behaviour specified by POSIX; do not use it for internal state in...
1544 (getopt_parse): ...this static function; use...
1545 (optbase): ...this new static local variable instead.
1546 (getopt_resolved): Update `optind' as required.
1548 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1550 Improve package identification in configure script.
1552 * configure.ac (AC_INIT): Redefine parameters...
1553 (PACKAGE_NAME): Set to `MinGW Runtime'.
1554 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
1555 (PACKAGE_TARNAME): Set to `mingwrt'.
1556 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
1557 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
1558 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
1560 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
1561 (PACKAGE_TARNAME): ...this.
1563 * configure: Regenerated.
1565 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1567 Fix MinGW-Bug [2125708].
1568 (Reported by Alexandr Zamaraev).
1570 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
1571 not wanted here; remove it; replace it by...
1572 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
1573 (_invalid_parameter_handler): ...this function typedef.
1575 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
1577 * Makefile.in: Don't include host_os as part of snapshot filename.
1579 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1581 Fix MinGW-Bug [2119504].
1582 (Reported by Peiyuan Song).
1584 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
1585 (*retindex): ...this already correctly assigned return variable...
1586 (opt[index].val): ...with this; this should have been assigned to...
1587 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
1589 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1591 Fix MinGW-Bug [2117379].
1592 (Reported by Peiyuan Song).
1594 * include/stdio.h (__argv): Replace all references in function
1595 prototype argument lists and inline function local variables, with ...
1596 (__local_argv): ...this, to avoid potential conflict with ...
1597 * include/stdlib (__argv): ...this #defined macro.
1599 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1601 * include/_mingw.h: Increment version to 3.15.
1603 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1605 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
1606 naming standard for Cygwin.
1608 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1610 Reimplement getopt.c to add getopt_long_only() function.
1612 (N.B. this reimplementation removes support for BSD/Mac-OS-X
1613 `optreset' nonsense; user code should set `optind = 0' instead,
1614 to reinitialise option scanning).
1616 * mingwex/getopt.c: Delete all content; reimplement it.
1617 * include/getopt.h: Likewise.
1619 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
1620 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
1622 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1624 Implement conditional replacement for printf() family functions.
1626 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
1627 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
1628 flag for use in user specified __MINGW_FEATURES__ attribute.
1629 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
1630 currently unused: reserved as components of...
1631 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
1632 a __MINGW_FEATURES__ enhancement to setlocale().
1634 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
1635 (__mingw_fprintf, __mingw_vfprintf): Likewise.
1636 (__mingw_sprintf, __mingw_vsprintf): Likewise.
1637 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
1638 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
1639 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
1640 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
1641 usage; link to DLL import stub, importing from MSVCRT.
1642 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1643 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1644 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
1645 locally defined static stub implementation.
1646 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1647 __mingw_fprintf and __mingw_sprintf respectively.
1648 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
1649 static inline implementation for C++ and GNU C, or locally defined
1650 static stub otherwise.
1651 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1652 __mingw_vfprintf and __mingw_vsprintf respectively.
1654 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1656 Avoid access violations, passing NULL to printf( "...%s..." );
1657 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
1659 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
1660 for argument value, if caller passes a NULL pointer.
1661 (__pformat_wcputs): Likewise, substitute L"(null)".
1663 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1665 Add missing dependencies for building libmingwex.a.
1667 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
1668 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
1669 (pformat.h): ...this.
1671 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1673 Add replacements for remaining members of printf() family.
1675 * mingwex/stdio/printf.c: New file.
1676 * mingwex/stdio/fprintf.c: New file.
1677 * mingwex/stdio/sprintf.c: New file.
1678 * mingwex/stdio/vprintf.c: New file.
1679 * mingwex/stdio/vfprintf.c: New file.
1680 * mingwex/stdio/vsprintf.c: New file.
1682 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1683 (STDIO_OBJS): Add their corresponding object files.
1685 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1687 Replace __mingw_snprintf() with new generic family implementation;
1688 likewise, replace __mingw_vsnprintf().
1690 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
1691 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
1692 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1693 (GDTOA_DISTFILES): Remove mingw_snprintf.c
1694 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
1695 (GDTOA_OBJS): Remove mingw_snprintf.o
1696 (PFORMAT_CFLAGS): New macro; define it, as required by...
1697 (pformat.o): ...this new explicit build target.
1698 (snprintf.o, vsnprintf.o): Declare prerequisites.
1700 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
1702 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1704 Lay foundations for new printf() function family implementation.
1706 * ofmt_stub.s: New file; implement forward compatibility stub for...
1707 (_get_output_format): ...this MSVCR80.DLL and later function.
1709 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
1710 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
1711 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
1712 (lib%.a): Include ofmt_stub.o when import library does not already
1713 advertise availability of the _get_output_format() function;
1714 Add alias stubs for MINGW_REPL_FUNCS, such that...
1715 (__msvcrt_printf): ...is an alias for Microsoft's printf().
1716 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
1717 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
1718 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
1719 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
1720 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
1721 (clean): Add msvcr*.def.
1723 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
1724 * configure: Regenerated.
1726 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1728 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
1729 (_imp____mb_cur_max_dll): Likewise.
1731 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
1733 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
1734 * include/wchar.h (swprintf, vswprintf): Likewise.
1736 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1738 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
1739 (_get_output_format, _set_output_format): Add references.
1741 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
1742 (_get_output_format, _set_output_format): Declare prototypes.
1743 (_TWO_DIGIT_EXPONENT): Define.
1744 Some other minor formatting adjustments.
1746 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1748 [mingw-Bugs-1801641]
1749 * include/wchar.h (_wfdopen): Const-ify second arg.
1750 * include/stdio.h (_wfdopen): Likewise.
1751 Thanks to <tdragon at users dot sourceforge net>
1753 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1755 Avoid precision errors in round(), lround() and llround() functions.
1757 * mingwex/math/round_generic.c: New file; it replaces...
1758 * mingwex/math/round.c: ...this; delete it.
1759 * mingwex/math/roundf.c: ...and this; ditto.
1760 * mingwex/math/roundl.c: ...and this; ditto.
1762 * mingwex/math/lround_generic.c: New file; it replaces...
1763 * mingwex/math/lround.c: ...this; delete it.
1764 * mingwex/math/lroundf.c: ...and this; ditto.
1765 * mingwex/math/lroundl.c: ...and this; ditto.
1766 * mingwex/math/llround.c: ...and this; ditto.
1767 * mingwex/math/llroundf.c: ...and this; ditto.
1768 * mingwex/math/llroundl.c: ...and this; ditto.
1770 * mingwex/math/round_internal.h: New file; it provides generic common
1771 code, which is shared by `round_generic.c' and `lround_generic.c'; the
1772 implementation is based on techniques suggested by Danny Smith and
1775 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
1776 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
1777 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
1778 `round_generic.c' and `lround_generic.c'.
1779 (MATH_OBJS): Factor out files listed in...
1780 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
1781 macros; define them; specify dependencies and build rules; add to...
1782 (LIB_OBJS): ...this list.
1784 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
1786 [ mingw-Bugs-1961893 ]
1787 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
1788 mode to 2 for E format.
1790 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
1792 * include/stdlib.h: Fix strtod under C++.
1794 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
1796 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
1797 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
1799 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
1801 * include/sys/types.h (useconds_t): typedef.
1802 * include/unistd.h (usleep): Add prototype.
1803 * mingwex/usleep.c: New file.
1804 * mingwex/makefile.in: Add usleep source and object.
1806 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
1808 Make strtod() conform to C99.
1810 * include/stdlib.h (strtod): Declare this mingwex function, and...
1811 (_strtod): rename this MSVCRT counterpart.
1813 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
1815 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
1817 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
1819 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1821 * include/process.h: Include stdint.h for intptr_t definition.
1822 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
1823 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
1824 _spawnvpe): Return intptr_t.
1825 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
1826 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
1828 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
1830 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
1831 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
1832 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
1833 _wspawnvp, _wspawnvpe): Return intptr_t.
1835 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1837 * include/wchar.h (fwide): Return success code rather than failure in inline
1839 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
1840 code rather than failure.
1842 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
1844 * include/math.h (float_t, double_t): Define.
1846 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
1848 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
1849 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
1850 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
1852 2008-02-28 Joseph Myers <joseph@codesourcery.com>
1854 * include/complex.h: Don't condition contents on C99 or not
1857 2008-02-01 Brian Dessent <brian@dessent.net>
1859 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
1860 the different runtime versions.
1862 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
1864 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
1865 (mbsinit): Likewise.
1867 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1869 * include/_mingw.h: Increment version to 3.14.
1871 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1873 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
1874 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
1875 * mingwex/math/log10f.S: Correct issue with comments.
1876 * mingwex/math/log10l.S: Ditto.
1877 * mingwex/math/log1p.S: Ditto.
1878 * mingwex/math/log1pf.S: Ditto.
1879 * mingwex/math/log1pl.S: Ditto.
1880 * mingwex/math/log2.S: Ditto.
1881 * mingwex/math/log2f.S: Ditto.
1882 * mingwex/math/log2l.S: Ditto.
1883 * mingwex/math/logf.S: Ditto.
1884 * mingwex/math/logl.S: Ditto.
1886 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
1888 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
1890 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
1892 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
1893 from '_fsize_t' to '__int64' to be consistent with the other ...64
1894 structures and the value set there is 8 bytes not 4. Add guard for both
1895 as the are only used by functions available from 6.1 on.
1897 * include/malloc.h (_HEAP_MAXREQ): Define.
1898 (_aligned_offset_recalloc): Define.
1899 (_aligned_recalloc()): Define.
1901 * include/math.h: fixed a typo in a comment.
1902 (atanhf): Fixed declaration.
1904 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
1905 to '__int64' to be consistent with the other ...64 structures and the value
1906 set there is 8 bytes not 4. Added guard as this function is only used by
1907 functions available from 6.1 on.
1909 * include/sys/stat.h: some members of 'stat' were declared with types with
1910 a prefixed underscore, while the ones without the underscore should have
1911 been used. Added guard to '__stat64' as it is only used by functions
1912 available from 6.1 on. Added the wide character versions of the
1913 exec()/spawn() family for completion
1914 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
1917 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
1918 from 'long' to 'time_t'
1919 (__timeb64): moved declaration of structure directly before the declaration
1920 of the function '_ftime64()', so it is guarded as well
1922 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
1923 before the declaration of the functions using it, so it is guarded as well
1925 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
1927 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
1928 case. Add missing break in 's'/LEN_S case.
1930 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1932 Make snprintf() and vsnprintf() conform to C99.
1934 * include/stdio.h: Add note about incompatibility between...
1935 (snprintf, vsnprintf): These two mingwex functions, and...
1936 (_snprintf, _vsnprintf): these MSVCRT counterparts.
1938 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
1939 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
1941 * mingwex/stdio/snprintf.c: Delete.
1942 * mingwex/stdio/vsnprintf.c: Delete.
1944 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
1945 (vsnprintf): Alias to __mingw_vsnprintf.
1947 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1949 * include/_mingw.h: Increment version to 3.13.
1950 * Makefile.in: Reset CYGRELEASE to 1
1952 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1954 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
1955 resulting from incomplete removal of enclosing `for ...; do ...; done'
1956 loop from compound command; (reported by Greg Chicares).
1958 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
1960 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
1963 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
1965 [mingw-Bugs-1734142]
1966 * include/wchar.h (_wsystem) Declare.
1968 (_wgetenv): Declare.
1969 (_wsearchenv): Declare.
1970 (_wmakepath): Declare.
1971 (_wsplitpath): Declare.
1972 (_wfullpath): Declare.
1973 * include/stdlib.h (_wsystem) Declare.
1974 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
1975 _wfullpath): Move into _WSTDLIB_DEFINED guard.
1976 * include/tchar.h (_tsystem): New UNICODE mapping define.
1978 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
1980 * mingwex/gdtoa/mingw_snprintf.c: New file.
1981 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
1982 (GDTOA_OBJS): Add mingw_snprintf.o.
1984 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
1986 * msvcrt.def.in: Update comment.
1987 Exclude _ctype stub if using msvcr71.dll or newer.
1988 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
1989 * include/wctype.h: Likewise.
1991 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1993 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
1994 *include/dirent.h: Likewise.
1996 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1998 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
1999 * include/conio.h: Likewise.
2000 * include/ctype.h: Likewise.
2001 * include/direct.h: Likewise.
2002 * include/dos.h: Likewise.
2003 * include/errno.h: Likewise.
2004 * include/fenv.h: Likewise.
2005 * include/float.h: Likewise.
2006 * include/inttypes.h: Likewise.
2007 * include/io.h: Likewise.
2008 * include/libgen.h: Likewise.
2009 * include/locale.h: Likewise.
2010 * include/malloc.h: Likewise.
2011 * include/mbctype.h: Likewise.
2012 * include/mbstring.h: Likewise.
2013 * include/process.h: Likewise.
2014 * include/search.h: Likewise.
2015 * include/setjmp.h: Likewise.
2016 * include/signal.h: Likewise.
2017 * include/stdio.h: Likewise.
2018 * include/stdlib.h: Likewise.
2019 * include/string.h: Likewise.
2020 * include/time.h: Likewise.
2021 * include/wchar.h: Likewise.
2022 * include/sys/stat.h: Likewise.
2023 * include/sys/time.h: Likewise.
2024 * include/sys/timeb.h: Likewise.
2025 * include/sys/utime.h: Likewise.
2027 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2029 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2031 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2033 Add POSIX binary tree search API.
2035 * mingwex/tfind.c: New file.
2036 * mingwex/tdelete.c: New file.
2037 * mingwex/tsearch.c: New file.
2038 * mingwex/twalk.c: New file.
2039 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2040 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2041 * include/search.h (tfind): Declare.
2048 (node_t): Define, on condition of _SEARCH_PRIVATE.
2050 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2052 * include/_mingw.h (__MINGW_NOTHROW): Define.
2054 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2056 * include/stdio.h (vsnprintf): Remove inline definition.
2059 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2061 * CRTfmode.c: Nit-pick comment fix.
2063 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2065 * CRTfmode.c: Fix nested comment.
2067 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2069 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2071 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2073 * include/io.h (lseek64) : Add prototype.
2075 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2077 * include/string.h (strcasecmp): Add prototype.
2078 (strncasecmp): Add prototype.
2080 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2082 * Makefile.in (CRT0S): Revert last change.
2083 * CRTfmode.c. Correct comment.
2085 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2087 * Makefile.in (CRT0S): Add back CRTfmode.o.
2089 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2091 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2092 * include/io.h: Likewise.
2094 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2096 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2098 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2100 * include/stdint.h (intptr_t): Fix typo.
2101 Thanks to Charles Wilson for report.
2103 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2105 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2106 Condition on _WIN64.
2107 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2108 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2109 (PTRDIFF_MIN): Define as INTPTR_MIN.
2110 (PTRDIFF_MAX): Define as INTPTR_MAX.
2111 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2112 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2114 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2116 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2117 Cygwin man page location.
2119 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2121 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2122 support Cygwin man page location.
2124 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2126 * Include/_mingw.h: Increment version to 3.12.
2128 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2130 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2132 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2134 * Makefile.in: Tweak srcdist to fix build issue.
2136 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2138 Add --enable-mingw-manpage-transform configure option.
2140 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2141 * configure.in, Makefile.in: Use it.
2142 * configure: Regenerated.
2144 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2146 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2148 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2150 Add manpages for dirname and basename functions.
2152 * man: New directory.
2153 * man/dirname.man: New file; it sources both manpages.
2154 * Makefile.in: Add provisional rules to distribute them.
2156 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2158 * mingwex/basename.c: Make it work with path names containing
2159 multibyte character strings.
2160 * mingwex/dirname.c: Likewise.
2162 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2164 * include/io.h (__mingw_access): New static inline wrapper to restore
2165 pre-Vista 'access (fname, X_OK)' behaviour.
2166 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2168 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2170 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2172 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2174 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2176 * include/stdio.h (_unlink, unlink): Add prototypes.
2178 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2180 * include/excpt.h: Replace "_try1" in comments with "__try1".
2182 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2184 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2185 (ALL_CXXFLAGS): Likewise.
2186 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2187 (ALL_CXXFLAGS): Likewise.
2188 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2189 (ALL_CXXFLAGS): Likewise.
2191 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2193 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2195 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2197 Expose some more msvcr80.dll functions.
2198 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2199 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2200 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2201 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2203 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2205 Expose some msvcr80.dll functions.
2206 * include/stdlib.h (_set_abort_behavior): Add prototype.
2207 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2208 _set_abort_behavior mask argument.
2209 (_invalid_parameter_handler): Add typedef.
2210 (_set_invalid_parameter_handler): Add prototype.
2211 * include/stdio.h (_get_printf_count_output): Add prototype.
2212 (_set_printf_count_output): Add prototype.
2213 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2214 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2216 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2218 * include/_mingw.h (CRT_INLINE): Correct typo.
2220 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2222 * include/io.h (X_OK): Define to F_OK.
2224 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2226 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2227 unconditionally. Change comment.
2228 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2230 * include/io.h (rename): Declare.
2233 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2235 * include/libgen.h: New file; required by...
2236 * mingwex/basename.c, mingwex/dirname.c: New files.
2237 * mingwex/Makefile.in (DISTFILES): Add them...
2238 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2239 (Dependencies): Typo; s/Dependancies/Dependencies/
2241 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2243 * Makefile.in (VERSION): Let configure define it.
2245 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2246 * configure.in: Use it.
2247 Correct quoting of autoconf macro arguments throughout.
2248 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2249 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2250 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2251 (AC_CONFIG_FILES): Add, to generate Makefile.
2253 * configure: Regenerated.
2255 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2257 * Makefile.in: Add aclocal.m4 to source release.
2258 * mingwex/Makefile.in: Ditto.
2259 * profile/Makefile.in: Ditto.
2261 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2263 * Include/_mingw.h: Increment version to 3.11.
2264 * Makefile.in: Ditto.
2266 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
2268 [ mingw-Bugs-1590623 ]
2269 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
2272 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
2274 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
2275 correctly parenthesized.
2277 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2279 * mingwex/mb_wc_common.h (get_codepage): Get it
2282 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2284 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
2286 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
2288 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
2291 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
2293 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
2296 2006-09-11 Christopher Faylor <cgf@timesys.com>
2298 * Makefile.in: Semi-revert 2006-08-30 change.
2300 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2302 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
2303 (__MINGW_IMPORT): Ansify.
2304 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
2305 __MINGW_ATTRIB_DEPRECATED.
2307 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2309 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
2310 Redundant macros; deleted.
2312 * configure.in (LIB_AC_PROG_CC): Replaced by...
2313 (AC_PROG_CC): ...this.
2315 * configure: Regenerated.
2317 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
2319 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
2320 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
2321 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
2323 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
2325 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
2326 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
2327 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
2328 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
2330 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
2331 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
2332 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
2333 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
2334 * mingwex/wcstold.c: Avoid using strtold internals.
2335 * mingwex/wcstof.c: Rewrite.
2336 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
2337 (GDTOA_OBJS): Add to library.
2338 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
2339 (STDLIB_OBJS): Remove.
2340 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
2341 (Q8_OBJS): Add wcstof.o wcstold.o.
2342 * include/stdlib.h (strtof): Remove inline definition.
2344 * include/wchar.h (wcstof): Remove inline definition.
2346 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
2348 * Makefile.in: Add with_cross_host to allow more granular checks.
2349 Set installation directories accordingly. Override CC setting only
2350 if building a Cygwin target.
2351 * aclocal.m4: Regenerate.
2352 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
2353 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
2354 Test AC_ALLOCA only if building on a native system.
2355 * configure: Regenerate.
2357 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2359 * include/ctype.h: Fix typo.
2361 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2363 * include/ctype.h: Expose iswblank if __cplusplus.
2364 * include/wctype.h: Expose iswblank if __cplusplus.
2366 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2368 * include/ctype.h: Remove stray ')';
2370 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2372 * include/ctype.h (_BLANK): Expand comment.
2373 (isblank): Add prototype and inline definition.
2374 (iswblank): Add prototype and inline definition.
2375 * include/wctype.h (iswblank): Add prototype and inline definition.
2376 * mingwex/isblank.c: New file.
2377 * mingwex/iswblank.c: New file.
2378 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2380 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
2382 * include/math.h (__INFF,__INFL): Remove '#'.
2384 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2386 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2388 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
2390 Support SSE float environment in fenv.h functions.
2391 * cpu_features.c: New file.
2392 * cpu_features.h: New file.
2393 * crt1.c: Include "cpu_features.h".
2394 (__mingw_CRTStartup): Call cpu_features_init().
2395 * Makefile.in (MING_OBJS): Add cpu_features.c.
2396 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
2397 * include/fenv,h ( fenv_t;): Append __mxcsr field.
2398 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
2399 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
2400 (__MXCSR_ROUND_FLAG_SHIFT): New define.
2401 * mingwex/feclearexcept.c: Include "cpu_features.h".
2402 Handle SSE environment.
2403 * mingwex/fegetenv.c: Likewise.
2404 * mingwex/feholdexcept.c: Likewise.
2405 * mingwex/fesetenv.c: Likewise.
2406 * mingwex/fesetexceptflag.c: Likewise.
2407 * mingwex/fesetround.c: Likewise.
2408 * mingwex/fetestexcept.c: Likewise.
2409 * mingwex/feupdateenv.c: Likewise.
2410 * mingwex/fegetround.c: Add comment.
2412 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2414 * Include/_mingw.h: Increment version to 3.10.
2415 * Makefile.in: Ditto.
2417 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2419 * mingwex/math/tgamma.c (SQTPI): Add braces.
2421 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2423 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2424 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2426 * mingwex/math/sf_erf.c (erff): Initialize z.
2428 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2430 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2432 * Include/_mingw.h: Increment version to 3.10.
2433 * Makefile.in: Ditto.
2435 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2437 * include/sys/time.h (struct timezone): Define.
2438 * include/time.h: Correct comment about timezone.
2440 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2442 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2443 * configure: Regenerate.
2445 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2447 * configure: add srcdir as a possible location for install-sh.
2449 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2451 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2452 (_topendir): Use it.
2454 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2456 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2458 (gettimeofday): Add prototype.
2459 * mingwex/gettimeofday.c: New file.
2460 * mingwex/makefile.in: Add gettimeofday source and object.
2462 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2464 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2465 else global library variable.
2466 (HUGEVALF): Likewise.
2467 (HUGEVALL): Likewise.
2468 (INFINITY): Likewise.
2471 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2473 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2475 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2477 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2479 2006-05-24 Christopher Faylor <cgf@timesys.com>
2481 * configure.in: Update to newer autoconf.
2482 (thanks to Steve Ellcey)
2483 * mingwex/configure.in: Ditto.
2484 * profile/configure.in: Ditto.
2485 * configure: Regenerate.
2486 * mingwex/configure: Ditto.
2487 * profile/configure: Ditto.
2488 * aclocal.m4: New file.
2489 * mingwex/aclocal.m4: Ditto.
2490 * profile/aclocal.m4: Ditto.
2492 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2494 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2495 Use supplied codepage as arg to WideCharToMultiByte.
2497 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2499 * Makefile.in (libmsvcr80.a): Add import lib.
2500 (libmsvcr80d.a): Ditto.
2502 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2504 * Makefile.in: Bump cygwin build number.
2506 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2508 * Include/_mingw.h: Increment version to 3.9.
2509 * Makefile.in: Ditto.
2511 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2513 * include/limits.h (SSIZE_MAX): Define.
2514 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2516 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2518 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2519 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2521 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2523 * include/stddef.h: Remove.
2524 * include/stdarg.h: Remove.
2526 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2528 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2529 of result is positive when real part of arg == 0;
2530 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2531 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2533 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2535 * include/time.h (_time64): Correct prototype.
2537 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2539 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2540 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2541 to non-stop. Use "fnclex" to clear exception flags.
2543 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
2545 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
2546 Avoid raising FP exceptions.
2548 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2550 * include/stdlib.h (strtof): Add prototype. Uglify
2551 parameter names in inline definition.
2553 (_Exit): Uglify parameter names in inline definition.
2554 (llabs): Add prototype.
2555 (_set_error_mode): Add prototype and input defines.
2557 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2559 * mingwex/fe*.c: Revert previous changes.
2560 * include/fenv.h: Revert previous changes.
2562 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2564 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
2565 Do not return a value.
2566 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
2567 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
2568 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
2569 * mingwex/fegetenv.c (fegetenv): Likewise.
2570 * mingwex/fesetenv.c (fesetenv): Likewise.
2571 * mingwex/feupdateenv.c (feupdateenv): Likewise.
2572 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
2573 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
2576 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2578 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
2579 getting filelength for SEEK_END.
2581 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2583 * Include/_mingw.h: Increment version to 3.8.
2584 * Makefile.in: Ditto.
2586 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2588 * include/wctype.h (towupper, towlower): Change arg and return value
2590 * include/ctype.h (towupper, towlower): Likewise.
2592 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2594 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
2595 a diagnostic, guarded by #ifdef DEBUG.
2596 (__mingwthr_remove_key_dtor): Likewise.
2598 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2600 * moldname.def.in (sleep, beep, seterrormode): Remove.
2602 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2604 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
2605 (_MCOUNT_DECL): Use it.
2606 (MCOUNT): Save and restore eax, ecx, edx registers.
2607 * profile/mcount.c (_mcount): ANSI-fy.
2609 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2611 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
2612 guard __MINGW_ATTRIB macro definitions.
2613 * include/math.h (logb[fl]): Don't define inlines for
2614 GCC-4.0+ && __FAST_MATH__.
2615 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
2616 line-continuation backslashes.
2618 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
2620 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
2621 in GNUC version guard.
2623 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
2625 * crt1.c (_gnu_exception_handler): Handle illegal instruction
2626 OS exception as a signal if user has defined a SIGILL handler.
2628 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
2630 * mingwex/math/nexttoward.c: New file.
2631 * mingwex/math/nexttowardf.c: New file.
2632 * mingwex/math/nextafterl.c: Add nexttowardl alias.
2633 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
2635 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
2636 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
2639 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
2641 * mingwex/math/nextafterf.c (nextafterf): Correct
2643 * mingwex/math/nextafterl.c: New file.
2644 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
2645 (MATH_OBJS): Add nextafterl.o.
2646 * include/math.h (nextafterl): Uncomment prototype.
2648 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2650 * mingwex/math/erfl.c: New file.
2651 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
2652 (MATH_OBJS): Add erfl.o.
2653 * include/math.h (erfl, erfcl): Uncomment prototypes.
2655 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
2657 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
2658 #if (WCHAR_MAX <= WCHAR_MIN) is false.
2659 * include/stdint.h (WCHAR_MAX): Likwise.
2660 (WINT_MAX): Likewise.
2662 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
2664 * mingwex/math/signbit.c (__signbit): Make return value
2665 consistent with GCC's __builtin_signbit.
2666 * mingwex/math/signbitf.c (__signbitf): Likewise.
2667 * mingwex/math/signbitf.c (__signbitl): Likewise.
2668 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
2671 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
2673 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
2675 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
2676 Remove unused MBTOWC_FLAGS define.
2678 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
2680 * mingwex/mbrtowc.c: New file.
2681 * mingwex/wcrtomb.c: New file.
2682 * mingwex/btowc.c: New file.
2683 * mingwex/wctob.c: New file.
2684 * mingwex/mb_wc_common.h: New file.
2685 * mingwex/Makefile.in (DISTFILES): Add new files.
2686 (Q8_OBJS): Add new objects.
2687 * include/wchar.h: Adjust comment about mbrtowc() and related
2688 funcions. Add __restrict__ to pointer params in prototypes.
2689 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
2690 arg names from protototypes.
2692 2005-04-23 Wu Yongwei <adah@sh163.net>
2694 * mingwex/dirent.c: Formatting changes.
2695 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
2698 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
2700 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
2702 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
2704 * include/stdio.h (__mingw_fwrite): Change return value to
2706 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
2708 2005-03-15 Hans Leidekker <hans@it.vu.nl>
2710 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
2712 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2714 * include/wctype.h (wctrans): Remove _CRTIMP.
2715 (towctrans): Likewise.
2718 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2720 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
2722 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2724 * mingwex/wctype.c: New file.
2725 * mingwex/wctrans.c: New file.
2726 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
2727 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
2729 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2731 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
2733 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2735 * include/assert.h: Remove header guard. #undef assert macro.
2736 (_assert): Use __MINGW_ATTRIB_NORETURN define.
2738 2005-02-11 Gregory W. Chicares <chicares@cox.net>
2740 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
2741 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
2743 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
2744 * mingwex/math/expm1.c: New file.
2745 * mingwex/math/expm1f.c: New file.
2746 * mingwex/math/expm1l.c: New file.
2748 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
2750 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
2751 * include/wchar.h (struct stat): Likwwise.
2752 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
2754 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
2756 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
2758 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
2759 string is not valid.
2761 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
2763 * include/malloc.h: Add missing return code defines for
2766 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
2768 * include/sys/stat.h (struct __stat64): Change st_size type to
2770 * include/wchar.h (struct __stat64): Change st_size type to __int64.
2772 2005-01-13 Earnie Boyd <earnie@users.sf.net>
2774 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2776 * include/errno.h (ELOOP): Ditto.
2777 * include/_mingw.h: Increment version to 3.7.
2778 * Makefile.in: Ditto.
2780 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
2782 * include/tchar.h (_tfreopen): Add UNICODE mappings.
2784 2005-01-11 Earnie Boyd <earnie@users.sf.net>
2786 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2787 lstat): Conditionalize defines for __STRICT_ANSI__.
2789 2005-01-10 Earnie Boyd <earnie@users.sf.net>
2791 * include/errno.h (ELOOP): Add definition.
2793 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
2795 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
2796 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
2797 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
2798 ctanl.c ctanhl.c): New files.
2799 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2800 (COMPLEX_OBJS): Adjust.
2801 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
2802 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
2803 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
2806 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2808 * include/_mingw.h (__int16): Define as short.
2809 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
2811 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2813 * include/stdio.h (P_tmpdir): Add define.
2815 2005-01-03 Earnie Boyd <earnie@users.sf.net>
2817 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
2819 2005-01-02 Earnie Boyd <earnie@users.sf.net>
2821 * include/_mingw.h: Increment version to 3.6
2822 * Makefile.in: Ditto
2824 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
2826 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
2827 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
2828 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
2829 ctanf.c ctanhf.c): New files.
2830 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2831 (COMPLEX_OBJS): Adjust.
2832 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
2833 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
2834 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
2837 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
2839 * include/wchar.h (wcsdup): Correct prototype.
2840 * include/string.h (wcsdup): Correct prototype.
2842 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2844 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
2846 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2848 * mingwex/math/fastmath.h: New file.
2849 * mingwex/math/asinh.c: New file.
2850 * mingwex/math/asinhf.c: New file.
2851 * mingwex/math/asinhl.c: New file.
2852 * mingwex/math/acosh.c: New file.
2853 * mingwex/math/acoshf.c: New file.
2854 * mingwex/math/acoshl.c: New file.
2855 * mingwex/math/atanh.c: New file.
2856 * mingwex/math/atanhf.c: New file.
2857 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
2858 atanh, atanhf, atanhl): Add prototypes.
2859 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
2860 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
2861 Specify dependency on fastmath.h for new objects.
2863 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2865 * include/sys/stat.h (_S_IFLNK): Add definition.
2872 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2874 * include/sys/stat.h (_S_ISLNK): Add definition.
2877 2004-09-05 Earnie Boyd <earnie@users.sf.net>
2879 * include/_mingw.h: Increment minor version for 3.5 release.
2880 * Makefile.in: Ditto.
2881 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
2883 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2885 * include/malloc.h (__mingw_aligned_offset_malloc,
2886 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
2887 __mingw_aligned_realloc, __mingw_aligned_free): Add
2889 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
2890 tst-aligned-malloc.c.
2891 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
2893 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
2895 * mingwex/mingw-aligned-malloc.c: New file.
2896 * mingwex/tst-aligned-malloc.c: New file.
2898 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2900 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
2901 noreturn attribute. Align stack to 16 bytes before passing args
2903 (mainCRTStartup): Change return to void.
2904 (WinMainCRTStartup): Likewise.
2906 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2908 * profile/COPYING: New file.
2909 * profile/CYGWIN_LICENSE: New file.
2910 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
2912 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2914 * mingwex/fopen64.c: Move.
2915 * mingwex/fseeko64.c: Move.
2916 * mingwex/ftello64.c: Move.
2917 * mingwex/lseek64.c: Move.
2918 * mingwex/stdio/fopen64.c: To here.
2919 * mingwex/stdio/fseeko64.c: To here.
2920 * mingwex/stdio/ftello64.c: To here.
2921 * mingwex/stdio/lseek64.c: To here.
2923 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2925 * profile/gmon.c [__MINGW32__]: Include string.h for
2928 2004-08-08 Christopher Faylor <cgf@timesys.com>
2930 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
2932 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2934 * include/complex.h: Remove __attribute__ ((const)) from
2935 transcendantal and trig functions. Replace __attribute__ ((const))
2936 with __MINGW_ATTRIB_CONST on other declarations.
2938 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2940 * include/wchar.h: Reorganize, avoid including other headers.
2942 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2944 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
2945 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
2948 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2950 * include/dirent.h (struct _wdirent): Remove obsolete comment.
2952 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2954 * include/string.h: Revert 2004-07-26 additions of
2957 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
2959 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
2960 (__convert_inf_to_maxnum): New.static inline.
2961 (reducl): Use it to protect against Inf - Inf.
2962 (__fast_ldexpl): New function. Use in lieu of ldexpl.
2964 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
2966 * mingwex/math/expl.c (expl): Move body of code to new static
2967 function __expl, removing tests for +/-Inf. Extern function
2968 expl calls __expl after testing for max, min log thresholds.
2970 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2972 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
2973 * mingwex/stdio/vfscanf.c: Likewise.
2974 * mingwex/stdio/vswscanf.c: Likewise.
2975 * mingwex/stdio/vfwscanf.c: Likewise.
2977 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2979 * include/_mingw.h: Use only two underscores to uglify
2980 __MINGW_ATTRIB_* macros.
2981 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
2982 * include/setjmp.h: Likewise.
2984 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
2986 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
2988 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
2990 * include/string.h: Group wide string functions together,
2991 and protect with _WSTRING_DEFINED.
2993 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
2995 * include/_mingw.h (__MINGW_ATTR_*): Replace with
2997 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
2998 __MINGW_ATTRIB_NORETURN, throughout.
2999 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3001 (abs): Declare with __MINGW_ATTRIB_CONST.
3010 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3012 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3014 * include/_mingw.h: Undefine __attribute__.
3015 (__MINGW_ATTR_NORETURN): New define.
3016 (__MINGW_ATTR_CONST): New define.
3017 (__MINGW_ATTR_MALLOC): New define.
3018 (__MINGW_ATTR_PURE): New define.
3019 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3022 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3024 * include/time.h (__time64_t): Add missing ';'.
3026 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3028 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3029 (struct tm): Protect with _TM_DEFINED.
3031 2004-07-17 Christopher Faylor <cgf@timesys.com>
3033 * Makefile.in (CC): Strip inappropriate include file settings from any
3036 2004-07-15 "dgun" <dgun@umpire.com>
3038 * include/complex.h (conj): Correct typo in prototype.
3040 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3042 * include/math.h: Add pragma GCC system_header.
3044 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3046 * mingwex/complex/carg.c: New file.
3047 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3049 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3051 * Makefile.in (INCLUDES): Temporarily revert previous change.
3052 * mingwex/Makefile,in (INCLUDES): Ditto.
3053 * profile/Makefile,in (INCLUDES): Ditto.
3054 * mingwex/Makefile,in: Drop carg.o dependency.
3056 2004-07-14 Christopher Faylor <cgf@timesys.com>
3058 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3060 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3062 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3064 * mingwex/Makefile,in (INCLUDES): Ditto.
3065 * profile/Makefile,in (INCLUDES): Ditto.
3067 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3069 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3071 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3073 * mingwex/Makefile.in: Ditto.
3074 * profile/Makefile.in: Ditto.
3075 * include/limits.h: Change to new file header preamble.
3076 * include/_mingw.h: Increment minor version for 3.4 release.
3077 * Makefile.in: Ditto.
3079 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3081 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3083 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3085 * include/unistd.h (ftruncate): Add inline definition.
3086 * mingwex/ftruncate.c: New file.
3087 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3089 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3091 * include/time.h: Do not include sys/types.h.
3093 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3095 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3096 (MATH_OBJS): Remove pow,o.
3097 * include/math.h (pow): Declare with _CRTIMP.
3098 Add comment on how to avoid excess precision problems.
3100 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3102 * include/stdio.h (__mingw_fseeko64): Add prototype.
3103 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3104 (__mingw_fwrite): Handle huge files.
3106 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3107 Danny Smith <dannysmith@users.sourceforge.net>
3109 * include/stdio.h (fopen64): Add inline function.
3110 (fseeko64): Add prototype.
3111 (ftello64): Add inline function.
3112 * include/io.h (lseek64): Add inline function.
3113 * include/sys/types (off64_t): Add typedef.
3114 (fpos64_t): Add typedef.
3115 * mingwex/fopen64.c: New file.
3116 * mingwex/fseeko64.c: New file.
3117 * mingwex/ftello64.c: New file.
3118 * mingwex/lseek64.c: New file.
3119 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3120 fseeko.64.c, ftello64.c, lseek64.c.
3121 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3123 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3125 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3127 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3129 * DISCLAIMER: Add words about "free to use".
3130 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3131 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3132 (inst_docdir): New variable.
3134 (FLAGS_TO_PASS): Include inst_docdir.
3135 (install-dirs): Add inst_docdir.
3136 (install): Add loop for INSTDOCS.
3137 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3138 section to CONTRIBUTORS file. Remove RCS tags.
3140 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3142 * mingwex/math/lround.c: Rewrite.
3143 * mingwex/math/lroundf.c: Rewrite.
3144 * mingwex/math/lroundl.c: Rewrite.
3145 * mingwex/math/llround.c: Rewrite.
3146 * mingwex/math/llroundf.c: Rewrite.
3147 * mingwex/math/llroundl.c: Rewrite.
3149 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3151 * CONTRIBUTORS: New file.
3152 * DISCLAIMER: Ditto.
3153 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3154 section to CONTRIBUTORS file. Remove RCS tags.
3155 * CRTFmode.c: Ditto.
3159 * crtdll.dev: Ditto.
3169 * msvcrt.def.in: Ditto.
3170 * strcasecmp.c: Ditto.
3173 * include/assert.h: Ditto.
3174 * include/conio.h: Ditto.
3175 * include/ctype.h: Ditto.
3176 * include/direct.h: Ditto.
3177 * include/dirent.h: Ditto.
3178 * include/dos.h: Ditto.
3179 * include/errno.h: Ditto.
3180 * include/excpt.h: Ditto.
3181 * include/fcntl.h: Ditto.
3182 * include/float.h: Ditto.
3183 * include/io.h: Ditto.
3184 * include/locale.h: Ditto.
3185 * include/malloc.h: Ditto.
3186 * include/math.h: Ditto.
3187 * include/process.h: Ditto.
3188 * include/setjmp.h: Ditto.
3189 * include/share.h: Ditto.
3190 * include/signal.h: Ditto.
3191 * include/stdio.h: Ditto.
3192 * include/stdlib.h: Ditto.
3193 * include/string.h: Ditto.
3194 * include/tchar.h: Ditto.
3195 * include/time.h: Ditto.
3196 * include/wchar.h: Ditto.
3197 * include/sys/locking.h: Ditto.
3198 * include/sys/param.h: Ditto.
3199 * include/sys/stat.h: Ditto.
3200 * include/sys/timeb.h: Ditto.
3201 * include/sys/types.h: Ditto.
3202 * include/sys/utime.h: Ditto.
3203 * mingwex/dirent.c: Ditto.
3205 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3207 * include/_mingw.h: Revert to primary release 3 and increment minor
3209 * Makefile.in (VERSION): Ditto.
3211 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3213 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3214 _fmode if not __MSVCRT__.
3216 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3218 * include/io.h: (_findfirst): Correct prototype.
3220 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3222 * include/io.h: (_findnext, _findclose): Correct prototype.
3224 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3226 * include/math.h (FP_*): Add defines.
3228 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3230 * mingwex/math/round.c: Rewrite.
3231 * mingwex/math/roundf.c: Rewrite.
3232 * mingwex/math/roundl.c: Rewrite.
3234 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3236 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3237 * include/time.h (__time64_t): Add typedef.
3238 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3239 (_ctime64): Likewise.
3240 (_wctime64): Likewise.
3241 (_gmtime64): Likewise.
3242 (_localtime64): Likewise.
3243 (wcsftime): Move into _WTIME_DEFINED block.
3244 Regroup non-ANSI prototypes.
3245 * include/io.h: Include <stdint.h>.
3246 (__finddata64_t): Add struct definition.
3247 (__wfinddata64_t): Likewise.
3248 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3249 (_findnext64): Likewise.
3250 (_wfindfirst64): Likewise.
3251 (_wfindnext64): Likewise.
3252 * include/sys/timeb.h (__timeb64): Add struct definition.
3253 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3254 * include/sys/utime.h (__utimbuf64): Add struct definition.
3255 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3256 (_futime64): Likewise.
3257 (_wutime64): Likewise.
3258 * include/sys/stat.h (__stat64): Add struct definition.
3259 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3260 (_stat64): Likewise.
3261 (_wstat64): Likwise.
3262 * include/sys/types.h (__time64_t): Add typedef.
3263 * include/wchar.h (__wfinddata64_t): Add structure definition.
3264 (__stat64): Likewise.
3265 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3266 (_wfindfirst64): Likewise.
3267 (_wfindnext64): Likewise.
3268 (_wutime64): Likewise.
3269 (_wstat64): Likwise.
3270 * include/malloc.h (_aligned_free): Add prototype for
3271 __MSVCRT_VERSION__ >= 0x0700.
3272 (_aligned_malloc): Likewise.
3273 (_aligned_offset_malloc): Likewise.
3274 (_aligned_offset_realloc): Likewise.
3275 (_aligned_realloc): Likewise.
3276 * include/string.h (_wcserror): Add prototype for
3277 __MSVCRT_VERSION__ >= 0x0700.
3278 (__wcserror): Likewise.
3279 * include/math.h (_set_SSE2_enable): Add prototype for
3280 __MSVCRT_VERSION__ >= 0x0701.
3282 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3284 * include/stdio.h (_fsopen): Add prototype.
3285 * include/tchar.h (_tfsopen): Add defines.
3286 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
3288 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3290 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
3291 msvcr70.dll, and msvcr71.dll.
3292 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
3293 using basename of output def file.
3295 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3297 * include/malloc.h: Remove __STRICT_ANSI__ guard.
3299 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
3301 * include/process.h: Remove the #endif associated with removal of
3302 __STRICT_ANSI__ guard from non-ANSI header.
3304 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3306 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
3307 * include/direct.h: Ditto.
3308 * include/dirent.h: Ditto.
3309 * include/dos.h: Ditto.
3310 * include/excpt.h: Ditto.
3312 * include/io.h: Ditto.
3313 * inlude/mem.h: Ditto.
3314 * include/memory.h: Ditto.
3315 * include/process.h: Ditto.
3316 * inlude/search.h: Ditto.
3317 * include/share.h: Ditto.
3318 * include/unistd.h: Ditto.
3319 * include/sys/fcntl.h: Ditto.
3320 * include/file.h: Ditto.
3321 * include/sys/locking.h: Ditto.
3322 * include/sys/param.h: Ditto.
3323 * include/sys/stat,h
3324 * include/sys/time.h: Ditto.
3325 * include/sys/timeb.h: Ditto.
3326 * include/sys/types.h: Ditto.
3327 * include/sys/unistd.h: Ditto.
3328 * include/sys/utime.h: Ditto.
3330 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
3332 * include/_mingw.h (__UNUSED_PARAM): Define macro.
3333 * include/wchar.h (fwide): Use it.
3336 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3338 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
3339 NetBSD getopt_long.c.
3341 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3343 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
3344 codes and handling of special chars.
3346 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
3348 * include/stdio.h (feof): Add inlined definition.
3351 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3353 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
3354 directly, rather than via scabnl.
3356 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3358 * mingwex/math/powl.c (powl): Return infinity if
3359 extended precision multiplication of x by log2(y)
3362 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3364 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
3365 (__enan_NI16): Fix another one.
3366 (__enan_NBITS): Tidy.
3368 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3370 * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
3371 types. (Thanks to John Maddock for report.)
3373 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
3375 * include/tchar.h (_puttchar): Define.
3377 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
3379 * include/stdio.h:(_fileno): Define macro version after both
3380 fileno and _fileno functions declared.
3382 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
3383 * moldnames.def.in (rmtmp) Add stub.
3385 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
3387 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
3389 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
3391 * include/math.h: Guard ISO C99 additions with __cplusplus
3394 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3396 * include/_mingw.h: Define __attribute__((x)) to nothing
3399 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3401 * include/complex.h: New file.
3402 * mingwex/complex: New directory.
3403 * mingwex/complex/cabs.c: New file.
3404 * mingwex/complex/cacos.c: New file.
3405 * mingwex/complex/cacosh.c: New file.
3406 * mingwex/complex/casin.c: New file.
3407 * mingwex/complex/casinh.c: New file.
3408 * mingwex/complex/catan.c: New file.
3409 * mingwex/complex/catanh.c: New file.
3410 * mingwex/complex/ccos.c: New file.
3411 * mingwex/complex/ccosh.c: New file.
3412 * mingwex/complex/cexp.c: New file.
3413 * mingwex/complex/cimag.c: New file.
3414 * mingwex/complex/clog.c: New file.
3415 * mingwex/complex/cpow.c: New file.
3416 * mingwex/complex/cproj.c: New file.
3417 * mingwex/complex/creal.c: New file.
3418 * mingwex/complex/csin.c: New file.
3419 * mingwex/complex/csinh.c: New file.
3420 * mingwex/complex/csqrt.c: New file.
3421 * mingwex/complex/ctan.c: New file.
3422 * mingwex/complex/ctanh.c: New file.
3423 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3426 (COMPLEX_OBJS): New list of objects.
3427 (LIB_OBJS): Include it in the library.
3429 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3431 * include/math.h (cabs): Remove non-ISO prototype.
3433 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3435 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3436 Use GCC __builtin's if available.
3437 (INFINITY, INFINITYF, INFINITYL): Likewise.
3439 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3441 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3442 beyond approximation limit.
3443 * mingwex/math/sf_erf.c (erff): Likewise.
3445 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3447 * include/stdio.h (getc): Cast result to unsigned char before
3450 (getchar): Likewise.
3451 (putchar): Likewise.
3452 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3454 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3456 * include/_mingw.h: Increment version to 3.2.
3457 * Makefile.in: Ditto.
3459 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3461 * include/sys/types.h: Revert last change.
3463 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3465 * include/sys/types.h (ssize_t): Correct the definition.
3467 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3469 * include/stdio.h (_filbuf): Add prototype.
3470 (_flsbuf): Add prototype.
3471 (getc): Add inline version.
3473 (getchar): Likewise.
3474 (putchar): Likewise.
3476 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3478 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3481 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3483 * include/stdlib.h: Guard non-ISO functions with
3484 !__STRICT_ANSI__, throughout.
3486 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3488 * include/io.h (_fileno): Remove prototype.
3490 (FILENAME_MAX): Define, if needed.
3491 Don't include <stdio.h>.
3492 * include/stdio.h (FILENAME_MAX): Protect against
3494 (_fileno): Define macro implementation.
3497 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3499 * include/inttypes.h: Include _mingw.h.
3501 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3503 * include/_mingw.h (__CRT_INLINE): Define.
3504 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3506 * include/inttypes.h: Likewise.
3507 * include/math.h: Likewise.
3508 * include/stdio.h: Likewise.
3509 * include/stdlib.h: Likewise.
3510 * include/string.h: Likewise.
3511 * include/wchar.h: Likewise.
3512 * include/wctype.h: Likewise.
3514 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3516 * mingwex/dirent.c (_topendir): Allocate enough memory for
3517 DIR struct in UNICODE case too.
3519 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3521 * include/_mingw.h: Increment version to 3.2.
3522 * Makefile.in: Ditto.
3524 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3526 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3528 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3530 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3531 * mingwex/math/truncf.c (truncf): Likewise.
3532 * mingwex/math/truncl.c (truncl): Likewise.
3533 * mingwex/math/modff.c (modff): Likewise.
3534 * mingwex/math/modfl.c (modfl): Likewise.
3536 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3538 * include/search.h: New file.
3539 * include/stdlib.h: Add comment about qsort, bsearch in
3541 * test_headers.c: Include search.h.
3542 * moldname.def.in (lfind, lsearch): Add.
3544 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3546 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
3547 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
3548 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
3550 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3552 * include/_mingw.h (small, hyper): Change to __small and __hyper to
3553 avoid user space name conflicts.
3555 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3557 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
3558 Note: Also added to w32api/include/basetyps.h.
3559 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
3560 Rename to Small (case difference).
3562 2003-06-18 Earnie Boyd <earnie@users.sf.net>
3564 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
3565 * mingwex/dirent.c: Modifications througout to fill d_name array.
3566 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
3567 libmsvcr71, including debug versions.
3568 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
3570 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
3572 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
3573 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
3575 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
3577 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
3579 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
3581 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
3583 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
3584 but still protect inline definition with __STRICT_ANSI__.
3586 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
3588 * string_old.c: Remove, splitting into...
3589 * strcasecmp.c: New file.
3590 * strncasecmp.c: New file.
3591 * wscmpi.c : New file.
3592 * ctype_old.c: Remove, splitting into...
3593 * isascii.c: New file.
3594 * iscsym.c: New file.
3595 * iscsymf.c: New file.
3596 * toascii.c: New file.
3597 * Makefile.in (MOLD_OBJS): Adjust.
3598 (SRCDIST_FILES): Adjust.
3600 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
3602 * include/math.h (fabs) : Remove inline definition.
3606 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3608 * include/_mingw.h: Change version to 3.0
3609 * Makefile.in: Ditto.
3611 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3613 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
3614 * mingwex/configure.in (W32API_INCLUDE): Ditto.
3615 * profile/configure.in (W32API_INCLUDE): Ditto.
3617 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3619 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
3620 of multiply defined symbols if the symbols is defined locally. E.G.:
3621 A local definition of malloc causes this problem.
3622 * configure: Regenerate.
3623 * profile/Makefile.in (W32API_INCLUDE): New variable.
3624 (ALL_CFLAGS): Use W32API_INCLUDE value.
3625 (ALL_CXXFLAGS): Ditto.
3626 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
3627 Thanks to Jeff Bonggren <jbon@users.sf.net>.
3628 * profile/configure.in (W32API_INCLUDE): Set default value.
3629 * profile/configure: Regenerate.
3630 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
3631 (ALL_CFLAGS): Use W32API-INCLUDE value.
3632 (ALL_CXXFLAGS): Ditto.
3633 * mingwex/configure.in (W32API_INCLUDE): Set default value.
3634 * mingwex/configure: Regenerate.
3636 2003-05-05 Earnie Boyd <earnie@users.sf.net>
3638 * Makefile.in (W32API_INCLUDE): New variable.
3639 (ALL_CFLAGS): Use W32API_INCLUDE value.
3640 (ALL_CXXFLAGS): Ditto.
3641 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
3642 (W32API_INCLUDE): Set default value.
3643 * configure: Regenerate.
3645 2003-04-11 Earnie Boyd <earnie@users.sf.net>
3647 * configure.in (LIBM_A): Define for cygwin target.
3648 * configure (LIBM_A): Ditto.
3650 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
3652 * include/time.h (strftime): Remove duplicate declaration.
3654 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3656 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
3658 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3660 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
3661 * mingwex/strtoimax.c (strtoimax): Likewise.
3662 * mingwex/wcstoimax.c (wcstoimax): Likewise.
3663 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
3664 * mingwex/fesentenv.c: Include float.h.
3665 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
3667 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
3669 * mingwex/math/tgammal.c: Likewise.
3671 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3673 * include/utime.h: New file, forwarding to sys/utime.h.
3675 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3677 * include/sys/param.h (MAXPATHLEN): Define.
3679 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3681 * include/tchar.h: Ansi-fy a comment.
3683 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3685 * profile/profile.h (mcount): Use __builtin_return_address
3686 rather than inline __asm statements.
3687 * profile/Makefile.in: Remove special rule for mcount.o
3688 Specify dependencies for mcount.o profil.o gmon.o.
3690 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3692 * include/stdlib.h (qsort): Remove const from first parm.
3693 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
3695 2003-03-03 Christopher Faylor <cgf@redhat.com>
3697 * mingwex/getopt.c: Refresh from NetBSD sources.
3699 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
3701 * mingwex/getopt.c: New file, copied from cygwin srcs.
3702 * include/getopt.h: New file, copied from cygwin srcs.
3703 * include/unistd.h: Include getopt.h.
3704 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
3705 (POSIX_OBJS): Add getopt.o.
3707 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
3709 * include/stdio.h (vscanf): Add prototype.
3715 * include/wchar.h (vwscanf): Add prototype.
3718 * mingwex/snprintf.c: Move to mingwex/stdio.
3719 * mingwex/vsnprintf.c: Ditto.
3720 * mingwex/snwprintf.c: Ditto.
3721 * mingwex/vsnwprintf.c: Ditto.
3722 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
3723 (STDIO_DISTFILES): Add.
3724 (DISTFILES): Adjust.
3725 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
3729 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
3731 * mingwex/stdio: New directory
3732 * mingwex/stdio/vfscanf.c: New file.
3733 * mingwex/stdio/vfwscanf.c: New file.
3734 * mingwex/stdio/vscanf.c: New file.
3735 * mingwex/stdio/vsscanf.c: New file.
3736 * mingwex/stdio/vswscanf.c: New file.
3737 * mingwex/stdio/vwscanf.c: New file.
3739 2003-02-25 Earnie Boyd <earnie@users.sf.net>
3741 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
3742 (libmsvcrt40.a): Ditto.
3744 2003-02-21 Earnie Boyd <earnie@users.sf.net>
3746 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
3748 * Makefile.in (libmsvcrtd.a): Add target library.
3749 (libmoldnamed.a): Ditto.
3750 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
3752 ($(srcdir)): Remove explicit reference for depencies of object targets.
3753 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
3754 msvcrt20.def, msvcrt40.def: Remove.
3755 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
3757 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
3759 * Makefile.in: Make sure libmingwex.a from current build tree is used.
3761 2003-02-14 Christopher Faylor <cgf@redhat.com>
3763 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
3764 ensure -mno-cygwin where appropriate. Filter out -O2.
3766 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
3768 * profile/Makefile.in (mcount.o): Use -O1 optimization
3771 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3773 * include/math.h: Remove _CRTIMP from pow() prototype,
3774 unless __NO_ISOCEXT.
3776 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3778 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
3780 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3782 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
3783 __declspec(dllimport) supported.
3784 (__cdecl): Define if not already defined.
3785 (__stdcall): Likewise.
3786 * include/dirent.h: Qualify fuctions with __cdecl.
3787 * include/fenv.h: Likewise.
3788 * include/inttypes.h: Likewise.
3789 * include/assert.h: Qualify fuctions with __cdecl. Qualify
3790 CRT dll imports with _CRTIMP.
3791 * include/conio.h: Likewise.
3792 * include/ctype.h: Likewise.
3793 * include/direct.h: Likewise.
3794 * include/dos.h: Likewise.
3795 * include/errno.h: Likewise.
3796 * include/float.h: Likewise.
3797 * include/io.h: Likewise.
3798 * include/locale.h: Likewise.
3799 * include/malloc.h: Likewise.
3800 * include/math.h: Likewise.
3801 * include/mbctype.h: Likewise.
3802 * include/mbstring.h: Likewise.
3803 * include/process.h: Likewise.
3804 * include/setjmp.h: Likewise.
3805 * include/signal.h: Likewise.
3806 * include/stdio.h: Likewise.
3807 * include/stdlib.h: Likewise.
3808 * include/string.h: Likewise.
3809 * include/time.h: Likewise.
3810 * include/wchar.h: Likewise.
3811 * include/wctype.h: Likewise.
3812 * include/sys/stat.h: Likewise.
3813 * include/sys/timeb.h: Likewise.
3814 * include/sys/utime.h: Likewise.
3816 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
3817 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
3819 * include/stdio.h (__VALIST): Guard against prior definition.
3821 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3823 * include/_mingw.h: Change version to 3.0
3824 * Makefile.in: Ditto.
3826 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3828 * include/stdlib.h: Make words after #endif a comment.
3830 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3832 * include/locale.h: Include stddef.h for definition of NULL.
3834 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3836 * include/math.h (tgamma): Correct typo in comment.
3838 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3840 * mingwex/mingw-fseek.c (INLINE): Remove define.
3841 (__mingw_is_win9x): Remove static inline function.
3842 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
3844 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3846 * mingwex/math/llround.c: Correct function name and
3847 change return value to long long.
3849 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
3851 * include/ctype.h (__isascii): Don't cast arg to unsigned.
3852 (iswascii): Likewise. Correct mask.
3853 * include/wctype.h (iswascii): Don't cast arg to unsigned.
3856 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
3858 * include/stdlib.h (_osver, _winver, _winmajor,
3859 _winminor): Declare as direct imports from dll if
3860 __DECLSPEC_SUPPORTED.
3862 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
3864 * pseudo-reloc.c (do_pseudo_reloc): Make static.
3865 * pseudo-reloc-list.c: New file.
3866 * crt1.c (_pei386_runtime_relocator): Declare.
3867 (__mingw_CRTStartup): Call it.
3868 * dllcrt1.c (_pei386_runtime_relocator): Declare.
3869 (DllMainCRTStartup): Call it.
3870 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
3873 2003-01-01 Egor Duda <deo@logos-m.ru>
3875 * pseudo-reloc.c: New file.
3877 2002-12-20 Earnie Boyd <earnie@users.sf.net>
3879 * include/_mingw.h: Increment version to 2.4.
3882 2002-12-12 Earnie Boyd <earnie@users.sf.net>
3884 * include/malloc.h (_alloca): Add definition.
3887 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
3889 * mingwex/math/s_erf.c: New file.
3890 * mingwex/math/sf_erf.c: New file.
3891 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3892 (MATH_OBJS): Add new objects.
3893 * include/math.h (erf[f]): Add prototypes.
3894 (erfc[f]): Add prototypes.
3896 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
3898 * include/math.h: Add traditional/XOPEN math constants.
3900 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
3902 * mingwex/math/lgamma.c: New file.
3903 * mingwex/math/lgammaf.c: New file.
3904 * mingwex/math/lgammal.c: New file.
3905 * mingwex/math/tgamma.c: New file.
3906 * mingwex/math/tgammaf.c: New file.
3907 * mingwex/math/tgammal.c: New file.
3908 * mingwex/math/cephes_mconf (polevlf): Add float version.
3910 Define _CEPHES_USE_ERRNO.
3911 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3912 (MATH_OBJS): Add new objects.
3913 * include/math.h (lgamma[fl]): Add prototypes.
3914 (tgamma[fl]): Add prototypes.
3916 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
3918 * mingwex/strtold.c: New file.
3919 * mingwex/wcstold.c: New file.
3920 * mingwex/ldtoa.c: New file.
3921 * mingwex/math/cephes_emath.h: New file.
3922 * mingwex/math/cephes_emath.c: New file.
3923 * mingwex/Makefile.in (DISTFILES): Add new files.
3924 (MATH_DISTFILES): Ditto.
3925 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
3926 (MATH_OBJS): Add cephes_emath.o.
3927 (LIB_OBJS): Add $(STDLIB_OBJS).
3928 * include/stdlib.h (strtold, wcstold): Add prototypes.
3929 * include/wchar.h (wcstold): Add prototype.
3931 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3933 * include/math.h (sqrt): Remove inline definition.
3934 (sqrtf): Replace inline definition with prototype.
3936 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
3937 argument less than zero.
3938 * mingwex/math/sqrtf.c (sqrtl): Likewise.
3940 2002-10-30 Guido Serassio <serassio@libero.it>
3942 * include/stdio.h (_getmaxstdio): Add prototype.
3943 (_setmaxstdio): Likewise.
3945 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
3947 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
3949 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3951 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
3953 Define WIN32_MEAN_AND_LEAN before including windows.h
3954 * include/stdlib.h (_fmode): Protect declaration as dllimported
3955 variable with __IN_MINGW_RUNTIME.
3957 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3959 * crt1.c: Include stdlib.h.
3961 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3963 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
3964 (MINGW_OBJS): Add txtmode.o.
3965 (SRCDIST_FILES): Add txtmode.c binmode.c.
3966 crt1.c: Don't include fcntrl.h, stdlib.h.
3967 (_fmode): Declare, without dllimport attribute.
3968 (__p__fmode): Declare access function for dll's _fmode.
3969 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
3971 * txtmode.c: New file.
3972 * binmode.c: New file.
3973 * samples/fmode/test2.c: New file.
3974 * samples/fmode/jamfile: Add test2.exe target.
3976 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
3978 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
3979 macros work with C89.
3980 (INTMAX_C, UINTMAX_C): Likewise.
3982 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
3984 * include/string.h (strcasecmp): Make extern __inline__.
3985 (strncasecmp): Likewise.
3986 (wcscmpi): Likewise.
3988 2002-10-08 Heiko Gerdau <hg@technosis.de>
3990 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
3991 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
3994 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3996 * mingwex/math/powil.c: Rename powil to __powil.
3997 * mingwex/math/powl.c: Adjust declaration and call
3998 to __powil. Remove comment on powil.
3999 * mingwex/math/powi.c: New file.
4000 * mingwex/math/powif.c: New file.
4001 * mingwex/math/pow.c: New file.
4002 * mingwex/math/cephes_mconf.h. Add double and float
4003 versions of constants.
4004 (polevl): Add double precision function.
4006 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4008 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4010 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4012 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4013 (_imp____mbcur_max_dll): Likewise.
4015 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4017 * include/fcntl.h (_fmode): Remove declarations and
4018 compatibility defines.
4019 (_setmode, setmode): Remove prototypes.
4020 * include/stdlib (_fmode): Add declarations and
4021 compatibility defines. Change type to int.
4022 * include/io.h (_setmode, setmode): Add prototypes.
4023 * samples/fmode/all.c: Adjust includes.
4024 * samples/fmode/test.c: Likewise.
4025 * crt1.c (_CRT_fmode): Declare as int.
4026 * CRTfmode.c (_CRT_fmode): Likewise.
4028 * include/stdlib: Remove comment about MB_CUR_MAX.
4030 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4032 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4033 (_imp____mbcur_max_dll): Likewise.
4035 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4037 * mingwex/math/files.txt: Remove inadvertantly added file.
4039 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4041 * include/string.h (_strerror): Move into #ifndef
4042 __STRICT_ANSI__ block.
4044 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4046 * include/time.h (__need_NULL): Define before including
4047 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4049 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4051 * include/stdio.h: Correct comment about directory separator.
4053 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4055 * include/sys/time.h (timeval): Add struct definition and
4056 associated macros (copied from w32api/include/winsock.h).
4058 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4060 * include/_mingw.h: Increment version to 2.3.
4063 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4065 * mingwex/fegetenv.c: Change to \n line endings.
4066 * mingwex/vsnprintf.c: Ditto.
4067 * mingwex/vsnwprintf.c: Ditto.
4069 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4071 * mingwex/math/hypotl.c: Replace with version based on cephes
4074 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4076 * include/sys/param.h: Add ENDIAN defines.
4077 * test_headers.c: Include sys/param.h.
4079 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4081 * test_headers.c: Don't include varargs.h.
4082 * Makefile.in (test_headers): Don't use -std=xx
4085 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4087 * include/sys/param.h: New File.
4089 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4091 * include/math.h (asm): Change to __asm__ throughout.
4092 Expose ISO C99 functions if __GLIPCPP__.
4093 (hypotf): Use hypot, not _hypot in stub.
4095 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4097 * include/tchar.h: Ansi-fy another comment.
4099 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4101 * include/tchar.h: Ansi-fy comment.
4103 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4105 * test_headers.c : New file.
4106 * Makefile.in (test_headers): New target, using it,
4107 (SRCDIST_FILES): Distribute it.
4109 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4111 * include/_mingw.h: Increment version to 2.2.
4114 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4116 * include/unistd.h: Add include of process.h.
4118 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4120 * include/stdio.h (_fcloseall): Add prototype.
4122 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4124 * include/tchar.h (_tfdopen): Correct typo.
4126 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4128 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4129 nextafter): Add non-underscored stubs.
4130 * moldname-msvcrt.def: Regenerate.
4131 * moldname-crtdll.def: Regenerate.
4132 * mingwex/math: New directory.
4133 * mingwex/rint.c: Move to mingwex/math.
4134 * mingwex/rintf.c: Ditto.
4135 * mingwex/rintl.c: Ditto.
4136 * mingwex/round.c: Ditto.
4137 * mingwex/roundf.c: Ditto.
4138 * mingwex/roundl.c: Ditto.
4139 * mingwex/rint.c: Ditto.
4140 * mingwex/rintf.c: Ditto.
4141 * mingwex/rintl.c: Ditto.
4142 * mingwex/trunc.c: Ditto.
4143 * mingwex/truncf.c: Ditto.
4144 * mingwex/truncl.c: Ditto.
4145 * mingwex/signbit.c: Ditto.
4146 * mingwex/signbitf.c: Ditto.
4147 * mingwex/signbitl.c: Ditto.
4148 * mingwex/copysignl.S: Ditto.
4149 * mingwex/fdim.c: Ditto.
4150 * mingwex/fdimf.c: Ditto.
4151 * mingwex/fdiml.c: Ditto.
4152 * mingwex/fmin.c: Ditto.
4153 * mingwex/fminf.c: Ditto.
4154 * mingwex/fminl.c: Ditto.
4155 * mingwex/fmax.c: Ditto.
4156 * mingwex/fmaxf.c: Ditto.
4157 * mingwex/fmaxl.c: Ditto.
4158 * mingwex/fma.c: Ditto.
4159 * mingwex/fmaf.c: Ditto.
4160 * mingwex/fmal.c: Ditto.
4161 * mingwex/fpclassify.c: Ditto.
4162 * mingwex/fpclassifyl.c: Ditto.
4163 * mingwex/fpclassifyl.c: Ditto.
4164 * mingwex/isnan.c: Ditto.
4165 * mingwex/isnanf.c: Ditto.
4166 * mingwex/isnanl.c: Ditto.
4167 * mingwex/fucom.c: Ditto.
4168 * mingwex/fp_consts.c: Ditto. Split out float and long double
4170 * mingwex/math_stubs.c: Remove.
4171 * mingwex/log2.c: Remove. Replaced by math/log2.S
4172 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4173 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4174 * mingwex/math/acosf.c : New file.
4175 * mingwex/math/acosl.c: New file.
4176 * mingwex/math/asinf.c: New file.
4177 * mingwex/math/asinl.c: New file.
4178 * mingwex/math/atan2f.c: New file.
4179 * mingwex/math/atan2l.c: New file.
4180 * mingwex/math/atanf.c: New file.
4181 * mingwex/math/atanl.c: New file.
4182 * mingwex/math/cbrt.c: New file.
4183 * mingwex/math/cbrtf.c: New file.
4184 * mingwex/math/cbrtl.c: New file.
4185 * mingwex/math/ceilf.S: New file.
4186 * mingwex/math/ceill.S: New file.
4187 * mingwex/math/cephes_ld.h: New file.
4188 * mingwex/math/copysign.S: New file.
4189 * mingwex/math/copysignf.S: New file.
4190 * mingwex/math/cosf.S: New file.
4191 * mingwex/math/coshf.c: New file.
4192 * mingwex/math/coshl.c: New file.
4193 * mingwex/math/cosl.S: New file.
4194 * mingwex/math/exp2.S: New file.
4195 * mingwex/math/exp2f.S: New file.
4196 * mingwex/math/exp2l.S: New file.
4197 * mingwex/math/expf.c: New file.
4198 * mingwex/math/expl.c: New file.
4199 * mingwex/math/fabs.c: New file.
4200 * mingwex/math/fabsf.c: New file.
4201 * mingwex/math/fabsl.c: New file.
4202 * mingwex/math/floorf.S: New file.
4203 * mingwex/math/floorl.S: New file.
4204 * mingwex/math/fmodf.c: New file.
4205 * mingwex/math/fmodl.c: New file.
4206 * mingwex/math/fp_consts.h: Ditto.
4207 * mingwex/math/fp_constsf.c: Ditto.
4208 * mingwex/math/fp_constsl.c: Ditto.
4209 * mingwex/math/frexpf.c: New file.
4210 * mingwex/math/frexpl.S: New file.
4211 * mingwex/math/hypotf.c: New file.
4212 * mingwex/math/hypotl.c: New file.
4213 * mingwex/math/ilogb.S: New file.
4214 * mingwex/math/ilogbf.S: New file.
4215 * mingwex/math/ilogbl.S: New file.
4216 * mingwex/math/ldexpf.c: New file.
4217 * mingwex/math/ldexpl.c: New file.
4218 * mingwex/math/llrint.c: New file.
4219 * mingwex/math/llrintf.c: New file.
4220 * mingwex/math/llrintl.c: New file.
4221 * mingwex/math/llround.c: New file.
4222 * mingwex/math/llroundf.c: New file.
4223 * mingwex/math/llroundl.c: New file.
4224 * mingwex/math/log10f.S: New file.
4225 * mingwex/math/log10l.S: New file.
4226 * mingwex/math/log1p.S: New file.
4227 * mingwex/math/log1pf.S: New file.
4228 * mingwex/math/log1pl.S: New file.
4229 * mingwex/math/log2.S: New file.
4230 * mingwex/math/log2f.S: New file.
4231 * mingwex/math/log2l.S: New file.
4232 * mingwex/math/logb.c: New file.
4233 * mingwex/math/logbf.c: New file.
4234 * mingwex/math/logbl.c: New file.
4235 * mingwex/math/logf.S: New file.
4236 * mingwex/math/logl.S: New file.
4237 * mingwex/math/lrint.c: New file.
4238 * mingwex/math/lrintf.c: New file.
4239 * mingwex/math/lrintl.c: New file.
4240 * mingwex/math/lround.c: New file.
4241 * mingwex/math/lroundf.c: New file.
4242 * mingwex/math/lroundl.c: New file.
4243 * mingwex/math/modff.c: New file.
4244 * mingwex/math/modfl.c: New file.
4245 * mingwex/math/nearbyint.S: New file.
4246 * mingwex/math/nearbyintf.S: New file.
4247 * mingwex/math/nearbyintl.S: New file.
4248 * mingwex/math/nextafterf.c: New file.
4249 * mingwex/math/powf.c: New file.
4250 * mingwex/math/powl.c: New file.
4251 * mingwex/math/powil.c: New file.
4252 * mingwex/math/remainder.S: New file.
4253 * mingwex/math/remainderf.S: New file.
4254 * mingwex/math/remainderl.S: New file.
4255 * mingwex/math/remquo.S: New file.
4256 * mingwex/math/remquof.S: New file.
4257 * mingwex/math/remquol.S: New file.
4258 * mingwex/math/scalbn.S: New file.
4259 * mingwex/math/scalbnf.S: New file.
4260 * mingwex/math/scalbnl.S: New file.
4261 * mingwex/math/sinf.S: New file.
4262 * mingwex/math/sinhf.c: New file.
4263 * mingwex/math/sinhl.c: New file.
4264 * mingwex/math/sinl.S: New file.
4265 * mingwex/math/sqrt.c: New file.
4266 * mingwex/math/sqrtf.c: New file.
4267 * mingwex/math/sqrtl.c: New file.
4268 * mingwex/math/tanf.S: New file.
4269 * mingwex/math/tanhf.c: New file.
4270 * mingwex/math/tanhl.c: New file.
4271 * mingwex/math/tanl.S: New file.
4272 * mingwex/Makefile.in: Adjust VPATH for source files in
4275 Add MATH_DISTFILES and use it to build source distro.
4276 * include/math.h: Add protypes for new functions and
4277 reorganise to reflect ANSI,C99 status.
4279 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
4281 * include/tchar.h (_getts): Define as _getws for _UNICODE.
4282 (_putts): Define as _putws for _UNICODE.
4283 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
4285 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
4287 * include/float.h: #include_next<float.h> before header guard.
4289 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
4291 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
4293 * include/excpt.h (): Include windef.h not windows.h.
4294 * include/fcntl.h (_O_SHORT_LIVED): Add define.
4295 (_chmod): Add prototype.
4296 (_creat): Correct prototype.
4297 (SH_DENY*): Rename defines to _SH_DENY*.
4298 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
4299 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
4300 _IOAPPEND): Add defines.
4301 (_wfindfirst): Correct prototype.
4302 (_wfdopen): Add prototype.
4303 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
4305 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
4307 (_wcsdup): Correct prototype.
4308 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
4309 _mbsncat being in string.h.
4310 * include/wchar.h (_wfindfirst): Correct prototype.
4311 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
4313 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4315 * include/_mingw.h: Increment to version 2.1.
4316 * Makefile.in: Ditto.
4318 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4320 * Makefile.in (conf_prefix): New variable.
4321 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
4322 (bindist): Use dist_prefix.
4324 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
4326 * include/_mingw.h: Increment version to 2.0.
4327 * Makefile.in: Ditto.
4329 Merge in mingwex branch.
4331 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
4333 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
4334 * mingwex/fdim.c: New file.
4335 * mingwex/fdimf.c: New file.
4336 * mingwex/fdiml.c: New file.
4337 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
4339 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
4341 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
4343 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
4345 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
4347 * mingwex/isnanl.c: New file.
4349 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4351 * include/stdint.h: Include stddef.h to get
4353 (WINT_MAX): Define to ((wint_t)-1).
4355 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4357 * include/wctype.h: Replace 'inline' with '__inline__'.
4358 * include/inttypes.h: Likewise.
4360 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4362 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
4363 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
4365 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4367 * mingwex/snprintf.c: Split out vsnprintf to....
4368 * mingwex/vsnprintf.c: New file.
4369 * mingwex/snwprintf.c: Split out vsnwprintf to...
4370 * mingwex/vsnwprintf.c: New file.
4371 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
4373 2002-05-15 Pascal Obry <obry@gnat.com>
4375 * include/dirent.h (DIR): Change dd_stat type to int.
4378 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
4380 * include/stdio.h (vsnprintf): Change inline to __inline__;
4381 (vsnwprintf): Likewise.
4382 * include/wchar.h (vsnwprintf): Likewise.
4385 (mbsinit): Likewise.
4387 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
4389 Change FP default precison from 53 to 64-bit mantissa.
4391 * Makefile.in (CRT0S): Add CRT_fp8.o.
4392 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
4393 * include/float.h: Replace standard float.h defines with
4394 #include_next<float.h> to use GCC's defines. Adjust comments
4397 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4399 * include/dos.h: Change prefix "__imp_" to "_imp__" for
4400 __GNUC__ without __DECLSPEC_SUPPORTED.
4401 * include/fnctl.h: Likewise.
4402 * include/math.h: Likewise.
4403 * include/stdio.h: Likewise.
4404 * include/stdlib.h: Likewise.
4405 * include/time.h: Likewise.
4406 * include/wctype.h: Likewise.
4407 * include/ctype.h: Likewise.
4409 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4411 Add atexit support for dlls.
4412 * crt1.c (atexit): Force thunk to _imp__atexit.
4413 (_onexit): Force thunk to _imp___onexit.
4414 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4415 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4416 (__dll_exit): New function to run atexit-registered functions
4417 and flush output buffers on DLL_PROCESS_DETACH or failed
4419 (atexit): Force use of private atexit table via _dllonexit,
4420 (_onexit): New function. Force use of private atexit table via
4422 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4423 _imp_<_symbol> is visible in import lib.
4424 * msvcrt20.def: Likewise.
4425 * msvcrt40.def: Likewise.
4426 * crtdll.def: Likewise.
4428 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4430 * include/fenv.h: Change header guard macro to _FENV_H_.
4431 (fenv_t, fexcept_t): Move into block protected by
4433 Cleanup some whitespace.
4434 * include/inttypes.h: Change header guard macro to
4437 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4439 * include/math.h (copysignl): Declare.
4440 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4441 (MATHOBJS):Add copysignl.o.
4443 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4445 * include/math.h (__signbitl, __isnanl): Declare.
4447 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4449 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4450 roundl, truncl, fmal, log2l): Declare.
4451 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4452 || !defined __STRICT_ANSI__.
4453 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4454 * mingwex/fmin.c (fmin): Likewise.
4455 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4456 * mingwex/fminf.c (fminf): Likewise.
4457 * mingwex/fmaxl.c: New file.
4458 * mingwex/fminl.c: New file.
4459 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4460 * mingwex/fpclassifyf.c: New file.
4461 * mingwex/fpclassifyl.c: New file.
4462 * mingwex/rint.c (rintf): Split out to...
4463 * mingwex/rintf.c: New file.
4464 * mingwex/rintl.c: New file.
4465 * mingwex/round.c (roundf): Split out to...
4466 * mingwex/roundf.c: New file.
4467 * mingwex/roundl.c: New file.
4468 * mingwex/trunc.c (truncf): Split out to...
4469 * mingwex/truncf.c: New file.
4470 * mingwex/truncl.c: New file.
4471 * mingwex/signbit.c (signbitf): Split out to...
4472 * mingwex/signbitf.c: New file.
4473 * mingwex/signbitl.c: New file.
4474 * mingwex/fmal.c: New file.
4475 * mingwex/copysignl.S: New file.
4476 * mingwex/log2l.c: New file.
4477 * mingwex/fp_consts.c: Add nanl definition.
4478 Comment out unused constants.
4479 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4480 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4481 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4483 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4484 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4485 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4487 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4489 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4491 Make wide char versions of opendir and friends.
4493 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4495 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4496 _wseekdir): Add prototypes for wide versions of corresponding
4498 * include/tchar.h; Add _UNICODE mappings for dirent.h
4499 structures and functions.
4500 * mingwex/dirent.c: Make _UNICODE neutral.
4501 * mingwex/wdirent.c: New file to define _UNICODE before
4503 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4504 (POSIX_OBJS): Add wdirent.o.
4505 (wdirent.o): Specify dependency on dirent.c as well as
4507 * samples/dirent/wtest.c: New file, wide version of test.c.
4509 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4511 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4512 ensure gcc include dir is searched despite -nostdinc.
4513 * profile/Makefile.in (INCLUDES): Likewise.
4514 * mingwex/Makefile.in (INCLUDES): Likewise.
4515 * include/stdarg.h: Replace with stub that just guards the
4516 real gcc system header with #ifndef RC_INVOKED
4517 * include/varargs.h: Likewise.
4518 * include/stddef.h: Likewise.
4519 * include/stdio.h: Include stdarg.h after defining
4521 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4522 Replace va_list with __VALIST throughout.
4524 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4526 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4527 * msvcrt.def (_fpreset): Mark as DATA so that only
4528 _imp___fpreset is exported.
4529 * msvcrt20.def (_fpreset): Likewise.
4530 * msvcrt40.def (_fpreset): Likewise.
4531 * crtdll.def (_fpreset): Likewise.
4532 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4534 (fpreset): Add alias.
4535 (__CRT_PC): Delete definition. _fpreset does it now.
4536 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4537 (fpreset): Add alias.
4538 (__CRT_PC): Delete definition.
4539 * moldname.def.in: Comment out fpreset.
4540 * moldname-msvcrt.def: Regenerate.
4541 * moldname-crtdll.def: Regenerate.
4542 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4543 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
4544 with the _fpreset determined by startup CRT_fp object.
4546 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
4548 * CRT_fp8.c: New file.
4549 * CRT_fp10.c: New file.
4550 * crt1.c (__CRT_PC) Declare.
4551 (__CRT_fesetenv): New static function, using _CRT_PC.
4552 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
4553 (_gnu_exception_handler): Likewise.
4554 * Makefile.in (CRT0S): Add CRT_fp10.o.
4555 (MINGW_OBJS): Add CRT_fp8.o.
4556 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
4557 Add CRT_fp8.o, CRT_fp10.o dependancies.
4558 * include/float.h (_fpreset): Expand comment.
4559 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
4560 (extended precison) environmemt.
4561 (FE_PC53_ENV): New define for MSVCRT default environmemt.
4562 (FE_DFL_ENV): Define as FE_PC53_ENV.
4563 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
4564 precision control for default environment.
4566 * include/math.h: Fix long comment line.
4567 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
4569 * profile/configure: Regenerate.
4571 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
4573 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
4575 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
4577 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
4578 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
4579 (__mingw_fseek): New function to work around Win9x f/lseek bug.
4580 (__mingw_fwrite): Likewise.
4581 (__mingw_is_win9x): New helper function.
4583 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
4584 (__mingw_fseek): New prototype and define to replace fseek.
4585 (__mingw_fwrite): New prototype and define to replace fwrite.
4586 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
4587 * moldname-crtdll.def: Remove CR from end of line.
4588 * moldname-msvcrt.def: Ditto.
4590 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
4592 * profile/configure.in (CRT0S): Configure name of gcrt?.o
4593 based on target, building gcrt0.o for cygwin -mno-cygwin.
4594 * profile/configure: Regenerate.
4595 * profile/Makefile.in (CRT0S): Use name from configure.
4596 (gcrt0.o): New rule.
4597 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
4599 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4601 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
4602 _fpecode): Remove prototypes copied from float.h.
4603 (nan, nanf): Move into block protected against RC_INVOKED
4605 * include/stdlib.h (_Exit): Change from static inline to
4607 * mingwex/_Exit.c : New file.
4608 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
4610 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4612 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
4613 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
4614 (configdirs): Likewise.
4615 (LIBGMON_A): Define for cygwin target as well.
4616 * configure: Regenerate.
4617 * profile/configure.in (THREAD_DLL): Remove define.
4618 (LIBM_A): Remove define.
4619 (LIBGMON_A): Define for cygwin target as well.
4620 * profile/configure: Regenerate.
4621 * profile/makefile.in (install): Install to inst_libdir and
4623 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
4624 (OPTFLAGS): New define.
4625 (ALL_CFLAGS): Add $(OPTFLAGS).
4626 (ALL_CXXFLAGS): Same.
4627 (.c.o:): Remove ALL_CXXFLAGS.
4629 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4631 * include/stdint.h: Add missing newline at eof.
4632 * include/stdio.h (snprintf): Add prototype.
4633 (vsnprintf): Add prototype and inline definition.
4634 (snwprintf): Add prototype.
4635 (vsnwprintf): Add prototype and inline definition.
4636 * include/wchar.h (snwprintf): Add prototype.
4637 (vsnwprintf): Add prototype and inline definition.
4638 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
4640 * mingwex/snprintf.c: New file.
4641 * mingwex/snwprintf.c: New file.
4643 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
4645 * configure.in: Add mingwex as SUBDIRS and configdirs.
4646 * configure: Regenerate.
4647 * Makefile.in (MINGW_OBJS): Remove dirent.o.
4648 (SRC_DIST_FILES): Remove dirent.c.
4650 * include/stdlib.h (_Exit): Add static inline
4652 (struct lldiv_t): Define.
4653 (lldiv): Add prototype.
4654 (llabs): Add extern inline function.
4655 (strtoll,strtoull): Add prototypes.
4656 (wcstol, wcstoul, wcstod): Group together.
4657 (strtof, wcstof): Add extern inline definitions.
4658 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
4659 and extern inline definitions.
4660 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
4661 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
4663 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
4664 (wcstof): Add extern inline definition.
4665 * include/math.h (nan, nanf): Add prototypes.
4666 (NAN, INFINITE): Define constants.
4667 (fpclassify, isnan ,signbit): Add macros and supporting float
4668 and double functions.
4669 (isfinite, isinf, isnormal): Add macros.
4670 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
4672 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
4673 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
4674 (copysign, logb, nextafter, scalb): Add prototypes and
4675 inline stubs for underscored versions in msvcrt.dll.
4676 * include/inttypes.h: New file.
4677 * include/fenv.h: New file
4679 Add new mingwex subdir and files.
4680 * mingwex: New directory.
4681 * mingwex/Makefile.in: New file.
4682 * mingwex/configure.in: New file.
4683 * mingwex/configure: Generate.
4684 * mingwex/dirent.c: Moved here from parent dir.
4685 * mingwex/atoll.c: New file.
4686 * mingwex/feclearexcept.c: New file.
4687 * mingwex/fegetenv.c: New file.
4688 * mingwex/fegetexceptflag.c: New file.
4689 * mingwex/fegetround.c: New file.
4690 * mingwex/feholdexcept.c: New file.
4691 * mingwex/feraiseexcept.c: New file.
4692 * mingwex/fesetenv.c: New file.
4693 * mingwex/fesetexceptflag.c: New file.
4694 * mingwex/fesetround.o: New file.
4695 * mingwex/fetestexcept.c: New file.
4696 * mingwex/feupdateenv.c: New file.
4697 * mingwex/fma.S: New file.
4698 * mingwex/fmaf.S: New file.
4699 * mingwex/fmax.c: New file.
4700 * mingwex/fmaxf.c: New file.
4701 * mingwex/fmin.c: New file.
4702 * mingwex/fminf.c: New file.
4703 * mingwex/fp_consts.c: New file.
4704 * mingwex/fpclassify.c: New file.
4705 * mingwex/fucom.c: New file.
4706 * mingwex/fwide.c: New file.
4707 * mingwex/imaxabs.c: New file.
4708 * mingwex/imaxdiv.c: New file.
4709 * mingwex/isnan.c: New file.
4710 * mingwex/isnanf.c: New file.
4711 * mingwex/lltoa.c: New file.
4712 * mingwex/lltow.c: New file.
4713 * mingwex/log2.c: New file.
4714 * mingwex/log2f.c: New file.
4715 * mingwex/math_stubs.c: New file.
4716 * mingwex/mbsinit.c: New file.
4717 * mingwex/rint.c: New file.
4718 * mingwex/round.c: New file.
4719 * mingwex/signbit.c: New file.
4720 * mingwex/sitest.c: New file.
4721 * mingwex/strtof.c: New file.
4722 * mingwex/strtoimax.c: New file.
4723 * mingwex/strtoumax.c: New file.
4724 * mingwex/testwmem.c: New file.
4725 * mingwex/trunc.c: New file.
4726 * mingwex/ulltoa.c: New file.
4727 * mingwex/ulltow.c: New file.
4728 * mingwex/wcstof.c: New file.
4729 * mingwex/wcstoimax.c: New file.
4730 * mingwex/wcstoumax.c: New file.
4731 * mingwex/wmemchr.c: New file.
4732 * mingwex/wmemcmp.c: New file.
4733 * mingwex/wmemcpy.c: New file.
4734 * mingwex/wmemmove.c: New file.
4735 * mingwex/wmemset.c: New file.
4736 * mingwex/wtoll.c: New file.
4738 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4740 * include/mbstring.h: New file.
4741 * include/mbctype.h: New file.
4743 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4745 * include/tchar.h (__TEXT): Make same as define in
4746 w32api/include/winnt.h.
4748 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4750 * include/tchar.h (_tputenv): Add UNICODE mappings.
4751 (_tsearchenv): Likewise.
4752 (_tmakepath): Likewise.
4753 (_tsplitpath): Likewise.
4754 (_tfullpath): Likewise.
4756 2002-04-18 Pascal Obry <obry@gnat.com>
4758 * dirent.c (opendir): Convert given pathname to
4761 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4763 * include/_mingw.h: Increment version.
4764 * Makefile.in: Ditto.
4766 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4768 * moldname-crtdll.def: Remove CR from end of line.
4769 * moldname-msvcrt.def: Ditto.
4770 * Makefile.in: Use bzip2 compression for Cygwin target.
4772 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
4774 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
4775 TLOSS, PLOSS): Move oldname defines back, following
4776 the underscored names.
4778 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
4780 * include/stdio.h (_snwprintf): Correct spelling.
4781 (_vsnwprintf): Likewise.
4782 * include/wchar.h (_snwprintf): Correct spelling.
4783 (_vsnwprintf): Likewise.
4785 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
4787 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
4788 (wpopen): Add if !(__CRTDLL__).
4789 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
4791 (moldname-crtdll.def rule): Likewise.
4792 * moldname-msvcrt.def: Regenerate.
4793 * moldname-crtdll.def: Regenerate.
4794 * include/stdio.h (wpopen):Use prototype, not a define.
4795 (_swnprintf): Add prototype.
4796 (_vswnprintf): Likewise.
4798 * include/wchar.h (_swnprintf): Add prototype.
4799 (_vswnprintf): Likewise.
4802 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
4804 * include/malloc.h (_heapinfo): Correct structure definition.
4805 (_USEDENTRY,_FREEENTRY): Add defines.
4806 Add comment on platform support for _heap* functions.
4807 (_get_sbh_threshold): Add prototype.
4808 (_set_sbh_threshold): Likewise.
4809 (_expand): Likewise.
4811 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4813 * profile/profil.c: Update copyright info.
4814 * profile/profil.h: Likewise.
4815 * profile/gcrt0.c: Likewise.
4817 2002-01-25 Pascal Obry <obry@gnat.com>
4819 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
4821 * profile/gmon.c: Define bzero as memset if mingw32.
4822 (monstartup): Use it.
4824 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4826 * include/tchar.h (_TCHAR): Add missing ;.
4828 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4830 * include/tchar.h (_TCHAR): Add typedefs.
4832 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4834 * include/stdlib.h (_onexit_t): Add typedef.
4835 (_onexit): Add prototype.
4837 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
4839 * msvcrt.def: Revert accidental change.
4840 * include/stdlib.h: Ditto.
4842 2001-12-07 Earnie Boyd <earnie@users.sf.net>
4844 * Makefile.in: Increment VERSION.
4845 * include/_mingw.h: Ditto.
4847 2001-12-05 Earnie Boyd <earnie@users.sf.net>
4849 * include/strings.h: New File.
4851 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
4853 * include/math.h (_FPCLASS* ): Add defines from float.h.
4854 (IEEE recommended functions): Add declarations from float.h.
4855 * include/float.h (_FPCLASS* ): Protect against redefinition.
4857 2001-11-29 Wu Yongwei <adah@netstd.com>
4859 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
4860 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
4861 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
4862 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
4863 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
4864 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
4865 Correct spelling of "disclaimed" in comments.
4866 * include/excpt.h: Another spelling correction.
4868 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
4870 * include/errno.h: Fix "errno is not a prototype" warning.
4872 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
4874 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
4875 differences between ANSI and non-ANSI versions.
4876 (_ctype[],_pctype): Declare vars.
4877 (__ISCTYPE): New helper macro using _pctype.
4878 (is* ctype functions): Use __ISCTYPE to define inline versions.
4879 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
4881 (isw* ctype functions): Inline definitions.
4882 * include/wctype.h (_ctype[],_pctype): Declare vars.
4883 (isw* ctype functions): Inline definitions.
4886 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4888 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
4889 __fpecode): Use __STDC__ prototypes.
4892 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
4894 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
4895 * mthr_init.c (DllMain) Run dtors if a process terminates.
4896 * mthr.c (__mingwthr_add_key_dtor) Removed.
4897 (___mingwthr_add_key_dtor) New.
4898 (___mingwthr_remove_key_dtor) New.
4899 (__mingwthr_run_key_dtors) Complete rewrite.
4900 (__mingwthr_remove_key_dtor) New.
4902 2001-11-05 Egor Duda <deo@logos-m.ru>
4904 * Makefile.in: Delete unused executable after creating base-files.
4906 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4908 * include/errno.h (_errno): Use __STDC__ prototype.
4909 Thanks to: Jim Barton.
4911 2001-11-04 "stefan" <stefan@lkcc.org>
4913 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
4915 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4917 * include/io.h (_commit): Add declaration.
4918 Thanks to: "stefan" <stefan@lkcc.org>
4920 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4922 * include/sys/stat.h: Make S_IS* macros safer.
4924 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4926 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
4928 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
4930 * include/stdlib.h (__p__environ, __p__wenviron): Use
4931 __STDC__ prototypes.
4933 2001-09-19 Earnie Boyd <earnie@SF.net>
4935 * Makefile.in: Remove the /usr from the install target.
4936 (VERSION): Increment.
4937 include/_mingw.h: Ditto.
4939 2001-09-17 Earnie Boyd <earnie@SF.net>
4941 * Makefile.in: Increment version.
4942 * include/_mingw.h: Ditto.
4944 2001-09-10 Earnie Boyd <earnie@SF.net>
4946 * dossh: Remove inadvertantly imported file.
4948 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
4950 * dirent.c (opendir): Use GetFileAttributes rather than stat
4951 to determine if input arg is dir.
4953 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
4955 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
4957 * include/varargs.h (va_list): Ditto.
4958 * include/stdio.h (va_list): Ditto.
4960 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
4962 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
4963 * include/stdio.h (_IORW): Change constant to 0x0080.
4964 (TMP_MAX): Add new define.
4966 (_wP_tmpdir): Ditto.
4967 (L_tmpnam): Change constant to 16.
4969 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
4971 * include/malloc.h: Fix non-ANSI comment after #endif.
4973 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4975 * profile/configure.in: Make msvcrt.dll version default.
4976 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
4977 * provile/configure: Regenerate.
4979 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
4981 * include/stdio.h (swscanf): Make first arugument const.
4982 * include/wchar.h (swscanf): Ditto.
4983 * include/tchar.h (_tfopen): New _UNICODE define.
4985 (_tsetlocale): Ditto.
4987 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
4989 * profile/Makefile.in (mkinstalldirs): Correct relative path.
4991 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
4993 * include/_mingw.h: Change version to 1.0.
4996 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
4998 * include/tchar.h: (__TEXT): Remove undef.
5002 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5004 * include/tchar.h: (__TEXT): Add private macro.
5005 (_TEXT): Modify definition to use __TEXT.
5007 This change allows the passing of a MACRO as an argument and have that
5008 MACRO resolved first.
5009 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5011 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5013 * Makefile.in: Increment version to 0.5
5014 * include/_mingw.h: Increment minor version
5016 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5018 * include/assert.h: (assert): Remove ; from end of definition
5019 Thanks to: AJ Reins <tbisp@qwest.net>
5021 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5023 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5024 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5026 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5028 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5030 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5032 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5033 are actually C functions. These functions are resolved via the
5034 -lmsvcp60 library and comments were placed in the header.
5036 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5038 * include/stdlib.h (__p__pgmptr): add prototype.
5039 (__p__wpgmptr): likewise.
5040 (_pgmptr_dll): move declaration from dos.h.
5041 (_wpgmptr_dll): likewise.
5042 (_pgmptr): conditional define (MSVCT/CRTDLL).
5043 (_wpgmptr): likewise.
5044 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5045 (_os*_dll variables): likewise.
5046 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5047 (_wpgmptr_dll): likewise.
5049 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5051 * include/stdint.h: New file.
5053 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5055 * include/wchar.h: Protect prototypes only declared in the C++ STL
5056 from being declared unless __cplusplus is defined.
5058 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5060 * include/stdlib.h: Apply Danny Smith patch 102730
5061 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5062 (_wgetenv) Correction to return type.
5064 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5066 * include/locale.h: Apply Danny Smith patch 101834
5067 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5068 (LC_MIN) Add definition.
5070 (_wsetlocale) Add prototype.
5072 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5074 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5075 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5076 Create a libcoldname.a for the oldname library for CRTDLL.
5077 Restrict libmoldname.a for the oldname library for MSVCRT.
5078 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5079 Restructure the $target_os case logic.
5080 Always name the MinGW thread dll helper mingwm.
5081 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5082 * configure: regenerate.
5084 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5086 * Makefile.in: Fix bindist target to distribute the correct files.
5087 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5088 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5090 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5092 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5093 Add variables and targets to control binary and source distributions.
5094 Add variables and targets to control snapshot distribution.
5095 * profile/gmon.h: Add missing #endif for #ifndef.
5096 * profile/ChangeLog: Merge entries here and remove.
5097 * profile/Makefile.in: Add variables and targets to control
5101 * config.guess: ditto.
5102 * config.sub: ditto.
5103 * mkinstalldirs: ditto.
5104 * install-sh: ditto.
5105 * configure: regenerate.
5106 * profile/configure: ditto.
5108 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5110 * Merge in changes from
5111 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5112 * include/direct.h: add guard around MSVCRT-only prototytpes
5113 * include/io.h: add __int64 struct definitions and function prototypes;
5114 add guard for MSVCRT-only prototypes
5115 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5116 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5117 put wchar functions together to make sync with wchar.h easier
5118 * include/stdlib.h: add wide char functions (__MSVCRT__)
5119 * include/string.h: add string collation functions ( __MSVCRT__)
5120 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5121 * include/tchar.h: add macros and macro function definitions
5122 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5123 enclose more functions in __MSVCRT__ guard;
5124 some oldname wide char function prototypes #if (0)'d
5125 * profile/gmon.h: add guard around BSD-ish typedefs
5127 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5129 * Makefile.in: Use a different variable name for subdirectory since the
5130 previous one was used by the top level make.
5132 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5134 * Makefile.in: Install mingw stuff in a subdirectory if building under
5137 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5139 * Makefile.in (subdirs): Eliminate for loop.
5141 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5143 * Makefile.in (subdirs): Previous change did not fix problem in
5146 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5148 * Makefile.in: Avoid installing dll if we're cross building and the
5149 cross-host system isn't a Windows system.
5150 * configure.in: Detect cross-hosting situation and set appropriate
5151 variables in Makefile.in.
5152 * configure: Regenerate.
5154 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5156 * configure.in: Change HEADER_SUBDIR to mingw32.
5157 * configure: Regenerate.
5159 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5161 * include/string.h: Use proper prototype for _strerror.
5163 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5165 * Makefile.in (subdirs): Workaround for broken shells.
5167 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5169 * Snapshot 2000-02-03.
5171 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5172 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5173 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5174 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5177 * Makefile.in (all): Build CRT0S first.
5178 (libmingwthrd.a): Remove thread support DLL from dependency.
5180 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5182 * Snapshot 2000-01-21.
5184 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5186 Merge in changes from Cygwin:
5187 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5188 (SUBDIRS): Likewise.
5189 * Makefile.in (HEADER_SUBDIRS): New variable.
5190 (install): Use to install Mingw headers to a subdirectory if building
5192 (DLL_CC_STUFF): Add DLL entry point.
5193 * configure: Regenerate.
5195 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5197 * include/stdio.h (fsetpos): Fix prototype.
5198 (fpos_t): Fix for MSVCRT.
5199 * include/float.h (fpreset): Add prototype.
5200 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5202 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5203 export using libmoldname.a.
5204 * crtdll.def: Add DATA tags.
5205 * msvcrt.def: Likewise.
5206 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5207 both MSVCRT and CRTDLL.
5208 * moldname-crtdll.def: Regenerate.
5209 * moldname-msvcrt.def: Regenerate.
5211 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5213 * Snapshot 1999-12-21.
5215 * include/wctype.h: New file.
5216 * include/ctype.h (MB_CUR_MAX): Define.
5218 * include/stdlib.h (MB_CUR_MAX): Define.
5219 * include/wchar.h: Define stat, _stat structures here as well.
5220 * include/float.h: Add invalid subconditions (_SW) and floating
5221 point error (_FPE) macros.
5222 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5223 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5224 * include/sys/types.h: Likewise.
5226 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5228 * profile/profil.c (profile_on): Set the profiler thread priority to
5229 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5230 * Snapshot 1999-11-18.
5232 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5234 Released 1999-11-07.
5236 * Makefile.in (CRT0S): Add crtst.o.
5237 (install): Install in subdirs as well.
5238 * dirent.h (struct _stat): Rename from struct stat.
5239 * include/tchar.h: Add some new macros. Thanks to
5240 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5241 * profile/Makefile.in (install): Fix target.
5243 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5245 * Makefile.in: Add support for profile directory.
5246 * configure.in: Likewise.
5247 * configure: Regenerate.
5249 * profile: Imported profiling sources from winsup-19991026 snapshot.
5250 * profile/Makefile.in: New file.
5251 * profile/configure.in: New file.
5252 * profile/configure: Generate.
5253 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5254 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5255 * profile/gmon.c (unistd.h): Include conditionally.
5256 (sys/param.h): Likewise.
5257 * profile/mcount.c (sys/param.h): Likewise.
5258 * profile/profil.c (profile_on): thread id is DWORD, not int.
5261 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5263 * include/stdlib.h: Add wide character version of argv/environ.
5265 * include/wchar.h: More wide character prototypes.
5266 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
5268 * dllcrt1.c (init.c): Don't include.
5269 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
5270 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
5272 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
5274 * moldname.def: Remove file.
5275 * moldname.def.in: And add this.
5276 * moldname-msvcrt.def: Generate from moldname.def.in.
5277 * moldname-crtdll.def: Likewise.
5279 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
5280 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
5281 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
5283 * Makefile.in: Update.
5284 * configure.in: Likewise. Also add *cygwin* target for building
5285 under Cygwin winsup.
5286 * configure: Regenerate.
5288 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
5290 * include/_mingw.h: Add version macros.
5291 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
5292 Also add wide character versions shared with wchar.h.
5293 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
5294 * include/io.h (sopen, _sopen): Fix prototype.
5295 Add wide character prototypes.
5296 * include/wchar.h: Likewise.
5297 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
5298 underscored versions. Potential incompatibility.
5299 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
5300 Add wide character prototypes.
5301 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
5304 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
5306 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
5307 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
5309 * configure: Rengerate.
5310 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
5311 dll name and crt's. CRTDLL and MSVCRT are meant to created
5312 separately, so remove all the *-msvcrt* targets.
5313 (libmingwthr.a): New target. Dummy thread support archive.
5314 (LIBS): Add libmingwthr.a.
5315 (CRT0S): Use CRT_ID. Add crtmt.o.
5316 (MINGW_OBJS): Add crtst.o.
5317 * main.c (WinMain): Fix prototype.
5318 * crtmt.c: New file.
5319 * crtst.c: New file.
5321 * include/process.h (_beginthreadex): Fix prototype.
5322 * include/_mingw.h (__int64): Define for __GNUC__.
5323 * include/tchar.h (_ttol): Add macro.
5324 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
5325 _i64tow, _ui64tow, _wtoi64): Add prototypes.
5327 Reported by Emanuele Aliberti <ea@iol.it>:
5328 * include/tchar.h (_ttoi): Add macro.
5330 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
5331 * include/stdio.h (_snprintf): Add prototype.
5332 (_vsnprintf): Likewise.
5334 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
5336 Reported by Tor Lillqvist <tml@iki.fi>:
5337 * include/stdlib.h (__p___argv): Fix return type.
5339 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5342 * include/errno.h (errno): It's linked in from startup, not imported.
5343 * include/stdlib.h (errno): Likewise.
5344 * include/io.h: Guard against conflicting macros and prototypes in
5346 * include/stdlib.h: Likewise.
5347 * include/string.h: Likewise.
5348 * include/time.h: Likewise.
5350 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5352 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
5353 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
5354 * Makefile.in (INCLUDES): Remove old windows32 include directory.
5356 * crt1.c (_gnu_exception_handler): Fix prototype.
5357 (__mingw_CRTStartup): New function based on mainCRTStartup.
5358 (mainCRTStartup): Set the app type for MSVCRT and call
5360 (WinMainCRTStartup): Likewise.
5361 * init.c (_startupinfo): Define.
5362 (_getmainargs): Add 5th parameter.
5363 (_mingw32_init_mainargs): Use.
5365 * ALL *.c files: Reformat according to GNU coding style.
5367 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
5369 * Makefile.in (INCLUDES): Add w32api include directory.
5371 * include/_mingw.h: New file.
5372 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
5373 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
5374 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
5375 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
5376 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
5377 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
5379 * include/stdlib.h (atexit): Fix prototype.
5381 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
5383 * include/stdio.h (_tempnam): Fix prototype.
5384 (tempnam): Likewise.
5385 * include/stdlib.h: Replace with GCC's version, and guard
5388 From Anders Norlander <anorland@hem2.passagen.se>:
5389 * include/stdlib.h (__argc): Declare.
5392 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
5394 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
5396 * Makefile.in (_libm_dummy.o): New target.
5399 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
5401 * Released 1999-03-16 along with egcs-1.1.2.
5403 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
5405 * Makefile.in (LIBS): Add libm.a.
5406 (libm.a): Dummy libm.a.
5408 * Makefile.in: Update from winsup 1999-02-08 snapshot.
5409 Preserve local changes.
5410 (mkinstalldirs): In ../, not ../../.
5411 (INCLUDES): Point to local windows32api headers and use -nostdinc.
5413 (LIBS): Add libmoldname-msvc.a.
5414 (libmoldname-msvc.a): Add target.
5415 (distclean): Add target.
5417 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5419 * include/dir.h: Reintroduce as an obsolescent header.
5420 * crt1.c (signal.h): Include.
5421 (_gnu_exception_handler): New function to properly handle win32
5422 asynchronous signals.
5423 (mainCRTStartup): Use.
5425 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5427 * include/direct.h: Include io.h instead of dir.h
5428 * include/dirent.h: Likewise.
5429 * include/dos.h: Likewise.
5430 * include/stdio.h: Replace reference to dir.h with io.h.
5432 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5434 * 1999-01-01 release bundled with egcs-1.1.1.
5436 * include/io.h: Incorporate dir.h.
5437 * include/dir.h: Remove.
5438 * include/signal.h: Move RC_INVOKED up a bit.
5440 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5442 * include/signal.h (sig_atomic_t): Define.
5444 * include/malloc.h: Import defs from deprecated alloc.h.
5445 * include/alloc.h: Remove.
5447 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5448 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5449 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5450 _off_t instead of long for st_size.
5452 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5454 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5455 * include/stdlib.h: Here.
5457 * include/netdb.h: Remove.
5458 * include/arpa/inet.h: Remove.
5459 * include/netinet/in.h: Remove.
5460 * include/sys/socket.h: Remove.
5462 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5466 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5467 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5469 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5471 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5472 (jmpbuf): typedef using above.
5473 (setjmp, longjmp): Prototype using jmpbuf.
5475 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5476 obsolescent imported names, ie., from __imp__ to _imp___.
5478 Also ignored empty include/sys/param.h and incorrect
5479 include/sys/times.h.
5481 * CRTinit.c: New file.
5482 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5484 * include/io.h (umask): Fix prototype.
5485 * include/stdlib.h (OS constants): Replace with Colin's.
5486 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5487 * include/sys/state.h: Merge.
5489 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5491 * include/assert.h (assert): Lose the trailing semicolon.
5493 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5495 * include/math.h (matherr): Declare.
5496 * include/stdio.h (fileno, _fileno): Declare.
5497 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5500 * include/stdio.h (fdopen, _fdopen): Add const.
5501 (getw, putw): Declare.
5502 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5504 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5506 * include/time.h (_timezone): Undefine.
5507 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5509 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5511 * include/stdlib.h (environ): Use DLL version.
5512 * init.c (environ): Undefine it before use.
5514 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5516 * Update to 980309 snapshot from Colin Peters.
5518 * include/utime.h: remove
5519 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5520 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5521 patches to define these.
5522 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5523 (_daylight, _timezone, _tzname, _tzset): Define.
5525 * include/netdb.h: Add from Colin's windows32api changes.
5526 * include/sys/socket.h: Likewise.
5527 * include/arpa/inet.h: Likewise.
5528 * include/netinet/in.h: Likewise.
5530 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5532 * Update to 980128 snapshot from Colin Peters.
5534 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5536 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5538 * configure: Regenerate.
5540 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5542 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5543 Files renamed and include hierarchy loses directories named
5546 * include/dos.h: from Jan-Jaap.
5548 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
5550 Changes to conform to FSF tree.
5552 * crt1.c: Renamed from mcrt0.c.
5553 * dllcrt1.c: Renamed from dllcrt0.c.
5554 * Makefile.in: Update above. Also renamed libmoldnames.a to
5557 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
5559 * crtdll.def: Export all functions but the ones with funny names.
5560 * moldnames.def: Add fdopen since fileno is already there.
5561 * include/nonansi/dos.h: New file from Jan-Jaap.
5562 * include/errno.h: Add extern decl + various additions from JJ.
5563 * include/stdio.h: Likewise.
5564 * include/stdlib.h: Likewise.
5565 * include/nonansi/io.h: Likewise.
5566 * include/nonansi/process.h: Likewise.
5567 * include/sys/types.h: Likewise.
5569 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5571 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5573 * include/stdlib.h (free): Fix prototype to return void, not void*.
5574 * include/nonansi/process.h: Add P_* and WAIT_* defs.
5576 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
5577 * mcrt0.c: Likewise.
5579 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
5580 (libmoldnames.a): Add explicit rule to create it.
5582 1997-08-15 Rob Savoye <rob@cygnus.com>
5584 New directory for the minimalist cygwin environment.
5586 * crtglob.c: New file. Turn on file globbing support.
5587 * crt_noglob.c: New file. Turn off file globbing support.
5588 * ctype_old.c: New file. Wrappers for functions that don't
5590 * dirent.c: New file. Directory routines readdir, opendir, closedir.
5591 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
5592 * dllmain.c: New file. A stub DllMain function.
5593 * hugeval.c: New file. A gross hack to define HUGE_VAL.
5594 * init.c: New file. Common code to initialize standard file
5595 handles and command line arguments.
5596 * main.c: New file. A main for programs that only call WinMain.
5597 * mcrt0.c: New file. Default crt0 for mingw32.
5598 * oldnames.c: New File. Wrappers for functions that don't
5600 * string_old.c: New File.
5601 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
5602 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
5603 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
5604 * include/sys/types.h: New header file for mingw.
5605 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
5606 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
5607 utime.h,values.h,varargs.h}: New header files for mingw.
5608 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
5609 timeb.h,unistd.h}: New header files for mingw.
5610 * Makefile.in,configure.in: Build and configure support.
5611 * configure: Generated from autoconf 2.12 with Cygnus patches.