OSDN Git Service

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