OSDN Git Service

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