OSDN Git Service

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