OSDN Git Service

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