OSDN Git Service

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