OSDN Git Service

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