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