OSDN Git Service

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