OSDN Git Service

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