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