OSDN Git Service

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