OSDN Git Service

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