OSDN Git Service

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