OSDN Git Service

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