OSDN Git Service

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