OSDN Git Service

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