OSDN Git Service

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