OSDN Git Service

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