1 2016-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Merge post 2016-10-18 updates from legacy branch.
5 * include/io.h include/wchar.h: Updated.
6 * mingwex/stdio/pformat.c: Likewise.
8 2016-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
10 Work around MSDN inconsistencies in _finddata_t naming.
12 * include/io.h (_finddata64_t, _wfinddata64_): Define them
13 respectively as aberrant alternative data type names for each of...
14 (__finddata64_t, __wfinddata64_t): ...these original names.
15 (_wfinddata32_t): Similarly, define this with...
16 (__wfinddata32_t): ...this alternative name.
18 * include/wchar.h (_wfinddata32_t): Correct references in comments.
20 2016-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
22 Fix a potentially infinite printf() format conversion loop.
24 * mingwex/stdio/pformat.c (__pformat_emit_xfloat)
25 [value.__pformat_fpreg_mantissa == 0]: Do not attempt to normalize
26 it; there are no 1-bits to promote, so repeated shifting until one
27 appears in most significant position will never terminate.
29 2016-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
31 Merge mingwrt-3.22.4 updates into 5.0-active branch.
33 * configure.ac: Preserve original 5.0-active state.
34 * include/wchar.h: Update per 2016-10-17 commits.
36 2016-10-17 Keith Marshall <keithmarshall@users.sourceforge.net>
38 Prepare and tag mingwrt-3.22.4 patch release.
40 * configure.ac (AC_INIT): Increment patch level.
42 2016-10-17 Keith Marshall <keithmarshall@users.sourceforge.net>
44 Resolve an ANSI mode <string.h> vs. <wchar.h> conflict.
46 * include/wchar.h [!(_WCHAR_H && _STRING_H)]: Change condition...
47 [!(_WCHAR_H && (_STRING_H && !__STRICT_ANSI__))]: ...to this; the
48 guarded declarations are not exposed by including <string.h> when...
49 [__STRICT_ANSI__]: ...this is defined; hence, we must declare them
50 when including <wchar.h>, even after including <string.h>
52 2016-10-14 Keith Marshall <keithmarshall@users.sourceforge.net>
54 Add dependency tracking for tests/Makefile.
56 * tests/Makefile.in (top_builddir): Define it.
57 (Makefile): Add automatic rebuild rule, tracking both srcdir and
58 top_builddir prerequisite changes.
60 2016-10-14 Keith Marshall <keithmarshall@users.sourceforge.net>
62 Correct a minor typographic error.
64 * tests/atlocal.in (autoconf_input): Replace invalid AC_SUBST tag...
65 (configure_input): ...with this correctly named alternative.
67 2016-10-14 Keith Marshall <keithmarshall@users.sourceforge.net>
69 Merge mingwrt-3.22.3 updates into 5.0-active branch.
71 * configure.ac: Preserve original 5.0-active state.
72 * include/_mingw.h.in include/string.h include/sys/types.h
73 * include/io.h: Update per 2016-10-13 commits.
75 2016-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
77 Prepare and tag mingwrt-3.22.3 patch release.
79 * configure.ac (AC_INIT): Increment patch level.
81 2016-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
83 Emulate glibc <string.h> POSIX.1 non-compliance.
85 * include/_mingw.h.in (_EMULATE_GLIBC): New feature test macro.
86 [_GNU_SOURCE || _BSD_SOURCE || !__STRICT_ANSI__]: Enable it when...
87 [_XOPEN_SOURCE || _POSIX_C_SOURCE || _POSIX_SOURCE]: ...none of
88 these have been pre-defined by the user.
90 * include/string.h [_EMULATE_GLIBC]: Include <strings.h> in full...
91 (strcasecmp, strncasecmp): ...so prototypes for these are declared.
92 [!_EMULATE_GLIBC]: Preserve partial <strings.h> include, guarded by...
93 [__STRING_H_SOURCED__]: ...this context selector, so suppressing the
94 declarations of those function prototypes.
96 2016-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
98 Resolve some non-ANSI typedef omissions.
100 * include/sys/types.h (off_t, ssize_t): Always typedef them when...
101 [_POSIX_C_SOURCE || !_NO_OLDNAMES]: ...either of these prevails.
103 * include/io.h (_fsize_t): Do not suppress its typedef when...
104 [__STRICT_ANSI__]: ...this compiler option applies, irrespective of...
105 [!(_IO_H && _WCHAR_H)]: ...this, which otherwise causes supression.
107 2016-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
109 Prepare and tag mingwrt-3.22.2 patch release.
111 * configure.ac (AC_INIT): Increment patch level.
112 * config.guess config.sub: Delete, per 2016-07-16 commit.
113 * include/stdlib.h: Backport, per 2016-09-14 commit.
114 * include/wchar.h: Backport, per 2016-09-17 commits.
116 2016-09-17 Keith Marshall <keithmarshall@users.sourceforge.net>
118 Add missing <wchar.h> declarations when compiling C++.
120 * include/wchar.h (fwide, mbsinit, wmemset, wmemchr, wmemcpy)
121 (wmemmove, wcstoll, wcstoull): Declare each of these for either of...
122 [_ISOC99_SOURCE || __cplusplus]: ...these conditions, rather than...
123 [_ISOC99_SOURCE]: ...this alone.
125 2016-09-17 Keith Marshall <keithmarshall@users.sourceforge.net>
127 Stricter <wchar.h> ISO-C99 conformity filtering.
129 * include/wchar.h [__STRICT_ANSI__]: Do not include any part of...
130 (direct.h, io.h, sys/stat.h, locale.h, process.h): ...any of these.
132 2016-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
134 Relax strict ISO-C conformity to facilitate C99 support.
136 * include/stdlib.h (_atoi64, _exit) [__STRICT_ANSI__]: Convention
137 dictates that the Microsoft specific functions should not be declared;
138 however, C99 provides equivalents in atoll() and _Exit(), for which we
139 gratuituously use them to provide inline implementations; thus...
140 [_ISOC99_SOURCE && !__NO_INLINE__]: ...declare them anyway.
142 2016-09-13 Keith Marshall <keithmarshall@users.sourceforge.net>
144 Suppress expected header warnings when running testsuite.
146 * include/dir.h include/dos.h [__IN_MINGWRT_TESTSUITE__]: New feature
147 test; do not emit warning messages, which declare this pair of headers
148 to be obsolete. These warnings are expected, but their format may not
149 be deterministically predictable; there is no reason to fail any test
150 on account of any such expected warning message.
152 2016-09-13 Keith Marshall <keithmarshall@users.sourceforge.net>
154 Create a preliminary autotest framework.
156 * configure.ac (AC_TESTDIR): Initialize tests subdirectory.
157 (AC_PROG_CXX): Identify C++ compiler; the testsuite will use it.
158 (AC_CHECK_PROG): Check availability of autom4te; specify fallback.
159 (AC_CONFIG_FILES): Add instantiation requests for tests/atlocal,
160 tests/Makefile, and tests/testsuite.at.tmp
162 * tests/testsuite.at.in tests/atlocal.in tests/headers.at
163 * tests/Makefile.in: New files; implement them.
165 * Makefile.in (check, check-recursive, tests): Implement new goals.
166 (mingwrt-srcdist-files): Subdivide package files complement into...
167 (mingwrt-srcdist-package-files): ...this original collection, and...
168 (mingwrt-srcdist-testsuite-files): ...this additional set.
170 * test_headers.c: Superseded by autotest; delete it.
172 2016-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
174 Add pthreads-win32 courtesy support hooks.
176 * include/errno.h: Assert copyright; tidy layout.
177 (_ERRNO_H_): Rename this repeat inclusion guard macro as...
178 (_ERRNO_H): ...this, conforming to preferred naming convention.
179 [__PTW32_H]: Include "ptw32_errno.h".
181 * include/time.h [__SCHED_H_SOURCED__]
182 (struct timespec): Typedef it selectively; do not define...
185 2016-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
187 Implement POSIX printf() feature per request [#2310].
189 * mingwex/stdio/pformat.c [WITH_XSI_FEATURES]: Delete references.
190 (PFORMAT_GROUPED): New manifest constant; define it. It previously
191 appeared in an occluded XSI feature reference, but is now required.
192 (__pformat_t.tslen, __pformat_t.tschr, __pformat_t.grouping): New
193 structure member fields; they maintain control state as set up by...
194 (__pformat_enable_thousands_grouping): ...this new internal function.
195 (__pformat_int_bufsiz): Use it; it may request a size increment.
196 (__pformat_emit_digit, __pformat_emit_punct): New functions; they
197 handle output of digits, radix point, and thousands digits separator
198 punctuation for all numeric conversion formats, thus replacing...
199 (__pformat_emit_numeric_value, __pformat_emit_radix_point): ...these;
200 delete them, and update all callers to use appropriate replacements.
201 (__pformat_int) [PFORMAT_GROUPED]: Add and emit group separators.
202 (__pformat_xint_bufsiz): New internal function; it serves in place of
203 __pformat_int_bufsiz(), for those integer data conversion formats
204 which explicitly do not support thousands digits grouping, hence...
205 (__pformat_xint): ...use it, rather than __pformat_int_bufsiz().
206 (__pformat_adjust_for_grouping): New internal function; it adjusts the
207 __gdtoa radix point index for fixed point conversion formats, to allow
208 for the insertion of thousands digits group separators, hence...
209 (__pformat_emit_float): ...use it, and emit separators as appropriate.
210 (__pformat_emit_efloat) [PFORMAT_GROUPED]: Explicitly disable it.
211 (__pformat): Initialise stream references for __pformat_t.grouping,
212 __pformat_t.tslen, and _pformat_t.tschr, on entry; release any memory
213 allocated for __pformat_t.grouping, when done.
215 2016-08-01 Keith Marshall <keithmarshall@users.sourceforge.net>
217 Implement POSIX conforming getline() and getdelim() functions.
219 * mingwrt/mingwex/stdio/getdelim.c: New file.
220 * mingwrt/man/getline.3.man: Likewise.
222 * mingwrt/include/stdio.h [_POSIX_C_SOURCE >= 200809L]
223 (getdelim): New function, implemented externally; declare prototype.
224 (getline): New function; declare prototype; implement as __CRT_ALIAS
225 inline, with __LIBIMPL__ external representation.
227 * mingwrt/Makefile.in (libmingwex.a): Add getdelim.$OBJEXT
228 (mingwrt-man$man3ext): Add manpage dependency references to create...
229 (getline.$man3ext, getdelim.$man3ext): ...these; declare them as
230 distributable duplicates, to be generated from...
231 (getline.$man3ext.man): ...this common source.
233 2016-08-01 Keith Marshall <keithmarshall@users.sourceforge.net>
235 Merge mingwrt-3.22.1 legacy updates to 5.0-active branch.
237 * mingwex/math/powl.c: Update per issue [#2036] workaround.
238 * mingwex/stdio/pformat.c: Likewise, per issue [#2309] resolution,
239 and subsequent 2016-07-24 optimization.
241 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
243 Prepare and tag all files for release of mingwrt-3.22.1.
245 * configure.ac (AC_INIT): Adjust package version number; append
246 patch level identification.
248 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
250 Interim workaround for issue [#2306].
252 * mingwex/math/powl.c: Tidy layout; correct indentation.
253 (powl, reducl): Use ISO-C declaration syntax; K&R is obsolescent.
254 (powl) [OVERFLOW]: Correct representation of return value, using...
255 (INFINITYL): ...this manifest constant value, instead of...
258 2016-07-24 Keith Marshall <keithmarshall@users.sourceforge.net>
260 Optimize printf() field width accumulation function.
262 * mingwex/stdio/pformat.c (__imul10plus): Omit multiply by ten on
263 already accumulated zero total; it is unnecessary, since ten times
266 2016-07-22 Keith Marshall <keithmarshall@users.sourceforge.net>
268 Fix printf() field width parsing regression issue [#2309].
270 * mingwex/stdio/pformat.c (__imul10plus): Coerce any accumulated
271 negative total to zero; the only negative value to be handled is...
272 (PFORMAT_IGNORE): ...this; it ceases to be applicable, on first call
273 to __imul10plus(), to accumulate field width or precision.
275 2016-07-19 Keith Marshall <keithmarshall@users.sourceforge.net>
277 Update install-sh to match mingw.org/build-aux package.
279 * install-sh: Delete it; use version in parent directory instead,
280 recreating local copy, (as symlink, if supported), on demand.
282 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
284 Eliminate redundant configuration files.
286 * aclocal.m4 VERSION.m4: Delete them; restore them on demand, via...
287 * Makefile.in ($top_srcdir/../%): ...this symlink dependency rule.
289 * configure.ac (AC_PROG_LN_S): Add configuration check.
291 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
293 Merge mingwrt-3.22 packaging correction to 5.0-active branch.
295 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
297 Correct mingwrt-3.22 source package subdirectory omission.
299 * Makefile.in (mingwrt-srcdist-files): Add msvcrt-xref.
301 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
303 Discard redundant config.guess and config.sub files.
305 * config.guess config.sub: Delete them; they are no longer required.
307 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
309 Merge recent legacy branch updates to 5.0-active branch.
311 * Makefile.in include/ctype.h include/excpt.h include/stdint.h
312 * include/glob.h include/limits.h include/locale.h include/search.h
313 * include/stdio.h include/stdlib.h include/wchar.h include/wctype.h
314 * include/sys/param.h include/sys/stat.h mingwex/tdelete.c
315 * mingwex/tfind.c mingwex/tsearch.c mingwex/twalk.c: Updated.
317 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
319 Prepare and tag all files for release of mingwrt-3.22.
321 * configure.ac (AC_INIT): Adjust package version number.
323 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
325 Preserve kludge to evade GCC build failure on S_ISBLK misuse.
327 * include/sys/stat.h (_NO_UNSUPPORTED): New feature test macro; it
328 should be user defined, if desired, before inclusion; leave undefined.
329 [!_S_IFBLK && !_NO_UNSUPPORTED && !_NO_OLDNAMES] (S_ISBLK): Define it,
330 as appropriate for POSIX conforming usage; do not poison it.
332 2016-07-10 Keith Marshall <keithmarshall@users.sourceforge.net>
334 Fix C++ strict type checking inconsistency in <glob.h>
336 * include/glob.h (__ERRFUNC_P): New private macro; define it to match
337 the type signature of the error function pointer, to be passed to...
338 (glob): ...this function; use it to correctly represent error function
339 pointer argument in inline implementation.
341 2016-07-09 Keith Marshall <keithmarshall@users.sourceforge.net>
343 Factor out <ctype.h> vs. <wctype.h> duplicate elements.
345 * include/ctype.h: Assert copyright; tidy layout.
346 [!_CTYPE_H_]: Do not evaluate; rename macro to be tested, as...
347 [!_CTYPE_H]: ...this preferred multiple inclusion guard macro name.
348 (__CTYPE_H_SOURCED__): New macro; define it, and include <wctype.h>,
349 so requesting partial inclusion, to retrieve definitions for...
350 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
351 (_UPPER, WEOF): ...these macros; hence, do not define them locally.
352 (wint_t, wchar_t, wctype_t): Likewise these type definitions...
353 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
354 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
355 (iswupper, iswxdigit, towlower, towupper, is_wctype): ...these function
356 prototypes, and corresponding inline alternative implementations.
357 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
358 [__MSVCRT_VERSION__<=__MSVCR70_DLL]: Likewise.
360 * include/wctype.h: Assert copyright; tidy layout.
361 [!_WCTYPE_H_]: Do not evaluate; rename macro to be tested, as...
362 [!_WCTYPE_H]: ...this preferred multiple inclusion guard macro name;
363 do not define it when partial inclusion only is selected, by...
364 [__CTYPE_H_SOURCED__]: ...this; thence define only...
365 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
366 (_UPPER): ...these character characterisation macros...
367 (wint_t, wchar_t, wctype_t): ...these type definitions...
368 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
369 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
370 (iswupper, iswxdigit, towlower, towupper): ...these function
371 prototypes, with corresponding inline alternative implementations...
372 (is_wctype): ...this further prototype, qualified as deprecated...
373 (WEOF): ...and this status reporting macro.
374 (_ctype, _pctype, _pctype_dll, _imp___ctype, _imp___pctype): Delete
375 declarations, and associated definitions; they do not belong here.
376 (isleadbyte): Likewise, this Microsoft specific function prototype...
377 (_LEADBYTE): ...and this associated character classification macro.
378 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
380 2016-07-04 Keith Marshall <keithmarshall@users.sourceforge.net>
382 Do not pass MAKEFLAGS explicitly, when invoking recursive make.
384 * Makefile.in (install-strip, uninstall): Delete explicit $(MAKEFLAGS)
385 references from $(MAKE) command lines; make passes them implicitly.
387 2016-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
389 Rework tsearch and friends; resolve issues [#1512] and [#1576].
391 * include/search.h: Assert copyright; tidy layout.
392 (_SEARCH_H_): Rename this multiple inclusion guard macro...
393 (_SEARCH_H): ...to conform to this preferred standard convention.
394 (__search_comparator): New function prototype typedef; it provides a
395 convenient shorthand notation for argument declarations in functions
396 which require a comparator function pointer; use it where appropriate.
397 (tsearch, tfind, tdelete) [__MINGW_ATTRIB_NONNULL]: Apply to arguments
398 #2 and #3; was previously incorrectly applied to arguments #1 and #3.
399 (twalk) [__MINGW_ATTRIB_NONNULL]: Apply to both arguments #1 and #2.
400 [_SEARCH_PRIVATE] (__MINGW_ATTRIB_NONNULL): Suppress its effect, to
401 ensure that GCC does not optimize away checks within implementation.
402 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
404 * mingwex/tdelete.c: Tidy layout.
405 (tdelete): Reimplement it as a thin wrapper around...
406 (__tdelete): ...this; it encapsulates the original implementation as a
407 __CRT_ALIAS (inline) function, to simplify void ** --> node_t ** casts.
408 Remove unnecessary non-null assertions for arguments #1 and #3; prefer
409 to validate arguments #2 and #3 internally, and simply return NULL if
410 necessary; hence, do not include <assert.h>
412 * mingwex/tfind.c: Tidy layout.
413 (tfind): Similarly reimplement it as a thin wrapper around...
414 (__tfind): ...this __CRT_ALIAS (inline) encapsulation of the original.
415 Add non-null validation for argument #3; do not include <assert.h>
417 * mingwex/tsearch.c: Tidy layout.
418 (tsearch): Once again, reimplement it as a thin wrapper around...
419 (__tsearch): ...this __CRT_ALIAS variant. Add non-null validation for
420 argument #3; do not include <assert.h>
422 * mingwex/twalk.c: Tidy layout; do not include <assert.h>
424 2016-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
426 Rework __try1/__except1 to resolve issue [#1328].
428 * include/excpt.h: Assert copyright; tidy layout.
429 (_EXCPT_H_): Multiple inclusion guard macro renamed to...
430 (_EXCPT_H): ...this; update all references as appropriate.
431 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
432 (__typecast_alloca): New macro; define it, casting return type of...
433 (__builtin_alloca): ...this to a specified data type; use it in...
434 (__try1_setup, __except1_teardown): ...these new macros; define them
435 as parameterized templates, providing both -masm-att and -masm-intel
436 syntax implementations, with host specific word size and register
437 assignment parameter substitutions; use them to redefine...
438 (__try1, __except1): ...each of these, using __builtin_alloca to avoid
439 direct stack pushes when registering exception handlers; assign the
440 template parameters as appropriate to support implementation for...
441 [_WIN64, _WIN32]: ...either of these, as the host requires.
443 2016-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
445 Merge Cygwin CVS updates to legacy branch.
447 * include/stdio.h: Merge 2011-11-30 and 2012-08-02 commits.
448 (getc, getchar, putc, putchar): Declare function prototypes.
449 (fopen64, ftello64): Likewise; change implementation classification
450 from __CRT_INLINE to __CRT_ALIAS, to avoid C++ emitted code bloat.
451 (_lock_file, _unlock_file): Add prototypes; modify merge to...
452 [__MSVCRT_VERSION__>=__MSVCR80_DLL]: ...require this.
454 * include/stdint.h: Merge 2012-07-30 commit; include <_mingw.h>
456 * include/excpt.h: Merge 2012-08-01 commit.
457 (__try1, __except1) [_WIN64]: Add alternative implementations.
459 * include/stdlib.h: Merge 2012-08-02 commit.
460 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
461 (_strtoi64, _strtoui64, _wcstoi64, _wcstoui64): Declare prototypes.
462 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
463 (_strtoi64_l, _strtoui64_l, _wcstoi64_l, _wcstoui64_l): Likewise...
464 [!__have_typedef_locale_t] (__need_locale_t): ...and define to get...
465 (locale_t): ...this, by selective inclusion of <locale.h>
466 [__WCHAR_H_SOURCED] (_wcstoi64, _wcstoui64, _wcstoi64_l)
467 (_wcstoui64_l): Make these function prototypes available for selective
469 * include/wchar.h: ...this; merge 2012-08-02 commit.
470 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
471 (_wcstoi64, _wcstoui64): Note availability of function prototypes via
472 selective inclusion of their actual declarations from <stdlib.h>
473 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
474 (_wcstoi64_l, _wcstoui64_l): Likewise.
476 * include/limits.h: Merge 2012-08-02 commit.
477 [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
479 * include/sys/param.h: Merge 2012-08-02 commit.
480 [PATH_MAX not defined] (MAXPATHLEN): Define it explicitly.
481 [PATH_MAX defined] (MAXPATHLEN): Define it as an alias.
483 2016-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
485 Add typedef and access support for opaque locale_t objects.
487 * include/locale.h (locale_t, _locale_t): Define opaque types.
488 [__need_locale_t]: Make them selectively accessible; define...
489 (__have_typedef_locale_t): ...this, when they are available.
490 [_LOCALE_H] (_create_locale, _get_current_locale, _free_locale):
491 Declare function prototypes, on direct <locale.h> inclusion only.
492 [_LOCALE_H || _WCHAR_H] (_wcreate_locale): Likewise; this is to be
493 visible on direct inclusion, or when including <wchar.h>
495 * include/stdio.h [!(_STDIO_H && _WCHAR_T)]: Correct expression of...
496 [__MSVCR80_DLL || _WIN32_WINNT_VISTA]: ...this subsidiary condition;
497 for all cases when this is true, (including when [_STDIO_H] alone)...
498 [!__have_typedef_locale_t] (__need_locale_t): ...define this, and
499 include <locale.h>, for selective definition of...
502 2016-05-19 Keith Marshall <keithmarshall@users.sourceforge.net>
504 Occlude unsupported _S_IFBLK feature; resolve issue [#1146].
506 * include/sys/stat.h (_MINGW_S_IFBLK_KLUDGE): New feature test macro;
507 do not define it, and strongly recommend that it remains undefined.
508 [!_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Do not define them.
509 [!_MINGW_S_IFBLK_KLUDGE] (_S_ISBLK, S_ISBLK): Poison them.
510 [_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Adjust definitions; use a
511 modified value, which is guaranteed to be impossible to match in...
512 [_S_ISBLK, S_ISBLK]: ...these, thus enforcing false test results.
514 2016-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
516 Fix a typo in a <sys/stat.h> inline function definition.
518 * include/sys/stat.h [__MSVCRT_VERSION__ >= __MSVCR80_DLL]
519 (stat): First argument declared as 'int'; should be 'const char *';
522 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
524 Synchronize package version management with Win32-API.
526 * VERSION.m4: New file; link it to keep in sync with identically named
527 file in top level composite package source directory; it defines...
528 (__VERSION__): ...this new composite package version macro.
530 * aclocal.m4: Link it, to keep in sync with identically named files in
531 top level composite source and sibling w32api sub-package directories.
532 (__VERSION__): New macro; include VERSION.m4 to define it.
533 (__BUG_REPORT_URL__): New macro; define it.
535 * configure.ac (AC_INIT): Assign package version and bug report URL...
536 (__VERSION__, __BUG_REPORT_URL__): ...from these, as defined through
537 automatic inclusion of aclocal.m4
539 * Makefile.in (configure): Add dependency on VERSION.m4
541 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
543 Resolve some strnlen() implementation issues.
545 * mingwex/strnlen.s (__mingw_strnlen) [!NUL]: Correct termination
546 logic; should have used jnz, not jz, to skip endpoint adjustment on
547 scanning past a terminal NUL character code.
549 * include/string.h [_POSIX_C_SOURCE >= 200809L] (strnlen): Do not
550 #define it, as this breaks GCC compilation; use __CRT_ALIAS instead,
551 with __JMPSTUB__ referencing via "oldname" libraries.
553 * Makefile.in (jmpstub_awk_script, libimpl_awk_script): Adapt to
554 facilitate assignment of __JMPSTUB__ and __LIBIMPL__ references to
555 libraries other than libmingwex.a
556 (strnlen.jmpstub.$OBJEXT): Assign it to all "moldname" libraries prior
557 to libmoldname80.a, in addition to libcoldname.a, as specified by the
558 __JMPSTUB__ assignment within <string.h>
560 2016-05-03 Keith Marshall <keithmarshall@users.sourceforge.net>
562 Enforce consistent specification of package version.
564 * include/_mingw.h: Rename as...
565 * include/_mingw.h.in: ...this build-time template file.
566 (__MINGW32_VERSION): Redefine it, in terms of...
567 (%PACKAGE_VERSION_LONG%): ...this substitution template.
568 (__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION)
569 (__MINGW32_PATCHLEVEL): Likewise, redefine them in terms of...
570 (%PACKAGE_VERSION_MAJOR%, %PACKAGE_VERSION_MINOR%)
571 (%PACKAGE_VERSION_PATCH%): ...these.
573 * configure.ac (AC_CONFIG_SRCDIR): Adjust for renamed file.
574 (MINGW_AC_CONFIG_EXTRA_SRCDIR): Likewise, for similarly renamed
575 w32api/include/w32api.h.in file.
577 * Makefile.in (all-mingwrt-stage-1-only): Add dependency on...
578 (_mingw.h, w32api.h): ...these; add rule to generate them, using...
579 (PACKAGE_VERSION_SCRIPT, PACKAGE_VERSION_FORMAT): ...these new macros;
580 they apply appropriate substitutions to the renamed template files.
581 (install-mingwrt-headers): Explicitly add _mingwrt.h
583 2016-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
585 Make strnlen() available for all MSVCRT.DLL versions.
587 * msvcrt-xref/msvcrt.def.in (strnlen): Mark it as...
588 (__MINGW_DLSYM): ...this, excluding its exposure in libmsvcrt.dll, and
589 thus requiring a dlsym() lookup for versions which provide it.
591 * include/string.h [__MSVCRT_VERSION__>=__MSVCR80_DLL] (strnlen):
592 Declare prototype, for use from these non-free DLLs, otherwise...
593 [_POSIX_C_SOURCE >= 200809L] (strnlen): Define it as an alias for...
594 (__mingw_strnlen): ...this new libmingwex.a function.
596 * mingwex/strnlen.s: New file; it implements...
597 (__mingw_strnlen, __mingw_strnlen_s): ...these new functions.
599 * Makefile.in (libmingwex.a): Add requirement for...
600 (strnlen.$OBJEXT): ...this; add vpath specification for its source.
602 2016-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
604 Use correct paths for partially included header files.
606 * include/io.h include/process.h: Use 'iquote' #include "stdint.h", to
607 ensure that we get stdint.h from the same include directory.
608 * include/stdio.h: Likewise for #include "stdarg.h", and "sys/types.h"
609 * include/wchar.h: Likewise for all of #include "stdio.h", "stdlib.h",
610 "direct.h", "sys/stat.h", "io.h", "time.h", "locale.h", and "process.h"
611 * include/dir.h include/dos.h: Likewise for #include "io.h"
612 * include/direct.h: Likewise for #include "dos.h"
614 2016-04-13 Keith Marshall <keithmarshall@users.sourceforge.net>
616 Generalize procedure for installing manpages.
618 * man/dirname.man: Rename it as...
619 * man/dirname.3.man: ...this, with inherent MANSECT specification.
620 (TH): Use %PAGEREF% substitution for NAME, MANSECT, and DATE.
621 (MS-Windows): Do not append \[tm]; it doesn't render well in Windows
622 console. Further, correct typos; some syntactic adjustments.
624 * Makefile.in (%:%.man): New rule; define it.
625 (%.mancopy, %.mancopy-recursive): New rules; define and use with...
626 (reference_manpage): ...this new macro, defining it to map...
627 (dirname.3.man): ...this as the reference source file for both of...
628 (basename.3, dirname.3): ...these installed manpages.
629 (format_manpage): Add MANSECT and DATE to expansion of...
630 (%PAGEREF%): ...this sed substitution pattern.
632 2016-04-12 Keith Marshall <keithmarshall@users.sourceforge.net>
634 Update several incorrectly attributed header files.
636 * include/direct.h include/io.h include/locale.h include/math.h
637 * include/process.h include/stdio.h include/stdlib.h include/string.h
638 * include/sys/stat.h include/sys/types.h include/time.h: Identify the
639 original author as Colin Peters; Rob Savoye merely imported them into
640 the original CVS repository, when he created it.
642 * include/wchar.h: Likewise, imported by Rob Savoye, but the original
643 source file is unattributed.
645 2016-04-11 Keith Marshall <keithmarshall@users.sourceforge.net>
647 Eliminate all references to non-standard __NO_ISOCEXT macro.
649 * include/math.h: Tidy layout.
650 [!defined __NO_ISOCEXT]: Do not use this ugly double negative; in any
651 case, we do not want to encourage users to define such implementation
652 private macros; instead, prefer to make use of...
653 [defined _ISOC99_SOURCE]: ...this glibc compatible feature test.
654 [__STDC_VERSION__ >= 199901L]: Do not require this; it is implied, by
655 definition, in _ISOC99_SOURCE.
656 * include/stdio.h [!defined __NO_ISOCEXT]: Likewise; replace with...
657 [defined _ISOC99_SOURCE]: ...this, throughout.
659 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
661 Make resetting of __need_typedef requests more robust.
663 * include/sys/types.h [__need_off_t, __need___off64_t]
664 [__need_ssize_t, __need_time_t]: Move corresponding #undef out of, and
665 after the respective conditional blocks, which provide each associated
666 typedef, so ensuring that any repeat request is properly reset.
668 * include/time.h [__need_time_t]: Always delegate to <sys/types.h> for
669 typedef, and reset of request, even in cases where...
670 [_TIME_H]: ...this is already defined.
672 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
674 Add a missing comment terminator.
676 * include/io.h [!(defined _IO_H && defined _WCHAR_H)]: Properly
677 terminate the comment annotating the closing #endif statement.
679 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
681 Declare <dir.h> as formally deprecated.
683 * include/dir.h: Assert copyright.
684 (pragma GCC system_header): Declare it.
685 (_DIR_H): Define as multiple inclusion macro.
686 [!_DIR_H]: Emit "obsolete header" warning message.
688 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
690 Factor out <wchar.h> vs. <io.h> duplicate declarations.
692 * include/io.h: Assert copyright; tidy layout.
693 (_IO_H_): Rename this multiple inclusion guard macro...
694 (_IO_H): ...to this preferred form; do not define it when...
695 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
696 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
697 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
698 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
699 (_wfindnext64i32, _wfindfirst32, _wfindnext32, _findclose): ...only
700 these function prototypes, common to <wchar.h>, together with...
701 (_fsize_t, struct _wfinddata_t, struct _wfinddatai64_t)
702 (struct __wfinddata64_t, struct _wfinddata64i32_t)
703 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these
704 requisite data type definitions.
705 (pragma GCC system_header): Declare it.
706 (__need_intptr_t): Define, and include <stdint.h> to get...
707 (intptr_t): ...this typedef; neither define it locally, nor define...
708 (_INTPTR_T_DEFINED): ...this; delete all references.
709 (_FSIZE_T_DEFINED): Do not define it; delete all references; rather...
710 [!(defined _IO_H && defined _WCHAR)] (_fsize_t): Define it.
711 (FILENAME_MAX): Define it unconditionally.
712 (__struct_finddata_t): New temporary macro; define and use it to...
713 (struct _finddata_t, struct _wfinddata_t, struct _finddatai64_t)
714 (struct _wfinddatai64_t, struct __finddata64_t, struct __wfinddata64_t)
715 (struct _finddata64i32_t, struct _wfinddata64i32_t)
716 (struct _finddata32i64_t, struct _wfinddata32i64_t)
717 (struct __finddata32_t, struct __wfinddata32_t): ...define these.
719 * include/wchar.h (_WFINDDATA_T_DEFINED): Do not define it; delete all
720 references; filter out associated data type definitions, namely...
721 (struct _wfinddata_t, struct _wfinddatai64_t): ...these, and also...
722 (struct __wfinddata64_t, struct _wfinddata64i32_t): ...these, and...
723 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these.
724 (_WIO_DEFINED): Likewise, do not define it; delete all references;
725 filter out associated function prototype declarations for all of...
726 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
727 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
728 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
729 (_wfindnext64i32, _wfindfirst32, _wfindnext32): ...these; reproduce
730 them by selective inclusion of <io.h>.
732 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
734 Factor out <wchar.h> vs. <process.h> duplicate declarations.
736 * include/process.h: Assert copyright; tidy layout.
737 (_PROCESS_H_): Rename this multiple inclusion guard macro...
738 (_PROCESS_H): ...to this preferred form; do not define it when...
739 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
740 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
741 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
742 (_wspawnve, _wspawnvp, _wspawnvpe): ...only these functions.
743 [!__WCHAR_H_SOURCED__] (_PROCESS_H): Define it; declare all functions
744 normally specified herein, including those listed above, as required.
745 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
746 (__need_intptr_t): Define it prior to including <stdint.h>.
747 (pragma GCC system_header): Declare it.
749 * include/wchar.h (_WPROCESS_DEFINED): Delete it; filter out...
750 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
751 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
752 (_wspawnve, _wspawnvp, _wspawnvpe): ...these function prototypes;
753 reproduce them, by selective inclusion of <process.h>.
755 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
757 Enable selective retrieval of intptr typedefs from <stdint.h>.
759 * include/stdint.h: Assert copyright; tidy layout.
760 [__need_intptr_t || __need_uintptr_t] (_STDINT_H): Do not define it;
761 conceal all normally defined data types, except either or both of...
762 [__need_intptr_t] (intptr_t): ...this, and/or...
763 [__need_uintptr_t] (uintptr_t): ...this.
764 (pragma GCC system_header): Declare it.
766 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
768 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
770 * include/sys/stat.h: Assert copyright; tidy layout.
771 (pragma GCC system_header): Declare it.
772 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
773 (_SYS_STAT_H): ...this preferred naming convention; however, when...
774 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
775 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
776 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
777 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
778 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
779 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
780 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
781 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
782 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
783 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
784 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
785 (__struct_stat_defined): New macro; define, and use it to define...
786 (struct stat, struct _stat, struct _stati64, struct __stat64)
787 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
788 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
789 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
790 definition of types size_t and wchar_t; declare all header content,
791 including that declared when __WCHAR_H_SOURCED__ is defined, unless
792 already declared as a result of selective inclusion by <wchar.h>
793 (__need_size_t, __need_wchar_t): Do not define them; consequently,
794 there is no need to include <stddef.h>; do not do so.
796 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
797 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
798 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
799 (struct _stat64i32): Likewise; reproduce them by selective inclusion
802 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
804 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
806 * include/direct.h: Conditionally partition it, such that...
807 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
808 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
809 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
810 (_WDIRECT_DEFINED): Never define it; delete all references.
812 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
813 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
814 selectively #include <direct.h> to reproduce them.
816 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
818 Factor out <direct.h> vs. <dos.h> duplicate declarations.
820 * include/dos.h: Assert copyright; tidy layout.
821 (pragma GCC system_header): Declare it.
822 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
823 (_DOS_H): ...this preferred convention; do not define it when...
824 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
825 (struct _diskfree_t): ...this aggregate data type, together with...
826 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
827 (_getdiskfree): ...this associated function.
828 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
829 emit a warning that this header is obsolete, and should not be used.
830 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
831 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
832 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
833 neither is it necessary to #include <stddef.h>; do not do so. Also,
834 do not #include <_mingw.h> explicitly, but always #include <io.h>,
835 which will implicitly #include <_mingw.h> anyway.
837 * include/direct.h: Assert copyright; tidy layout.
838 (pragma GCC system_header): Declare it.
839 (_DIRECT_H_): Rename this multiple inclusion guard macro...
840 (_DIRECT_H): ...to adopt this preferred naming convention.
841 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
842 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
843 (_getdiskfree): Likewise, do not declare prototype; instead...
844 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
845 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
846 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
847 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
848 although needed, we may inherit it indirectly from <sys/types.h>,
849 included by <io.h> via <dos.h>.
851 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
853 Evade CPP mismatched apostrophe warnings in windres comments.
855 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
857 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
859 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
861 * include/locale.h: Assert copyright; tidy layout.
862 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
863 (_LOCALE_H): ...this; do not define it when...
864 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
865 (_wsetlocale): ...just this one visible function prototype.
866 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
867 (_WLOCALE_DEFINED): Do not define it; delete all references.
868 (pragma GCC system_header): Declare it.
870 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
871 visibility by selective inclusion of <locale.h> instead.
872 (_WLOCALE_DEFINED): Delete all references.
874 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
876 Resolve some "implicit function declaration" warnings.
878 * setargv.c (isspace): Include <ctype.h> for declaration.
879 * cpu_features.h (__cpu_features_init): Declare function prototype.
880 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
882 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
884 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
886 * include/stdlib.h [__WCHAR_H_SOURCED__]
887 (_STDLIB_H): Do not define it; restrict visible declarations to...
888 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
889 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
890 of regular <stdlib.h> content; full content is declared only when...
891 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
892 (_WSTDLIB_DEFINED): Do not define it; delete all references.
893 (pragma GCC system_header): Declare it; tidy layout.
895 * include/wchar.h: Delete duplicated declarations for...
896 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
897 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
898 include <stdlib.h> selectively, to maintain their visibility.
899 (_WSTDLIB_DEFINED): Delete all references.
901 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
903 Relocate misplaced umask() function prototypes.
905 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
906 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
907 here, but leave them for backward, or Microsoft, compatibility.
909 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
911 Correct another _BEGIN_C_DECLS imbalance error.
913 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
914 unbalanced instance deleted; one correctly balanced instance remains.
916 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
918 Support installation of headers with empty parts directory.
920 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
921 (install-mingwrt-headers): ...invoke it; if false, do not perform...
922 (INSTALL_SUB_HEADERS): ...this.
924 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
926 Reinstate typedef for non-standard off64_t.
928 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
929 (__off64_t): ...typedef derived from this; although non-standard, it
930 is gratuitously required when building GCC's libgfortran.a
932 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
934 Correct conditional compilation block nesting errors.
936 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
937 them balanced within, and around, conditional compilation blocks.
939 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
941 Feature test _MINGW32_EXTENDED_SOURCE renamed.
943 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
944 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
945 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
946 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
947 users should enable any conventional feature test which implies it.
949 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
950 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
952 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
954 Correct atexit() and _onexit() export declaration regression.
956 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
957 as DATA; declare them accordingly.
959 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
961 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
963 * include/string.h: Tidy layout.
964 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
965 (_stricmp, _strnicmp): Include their prototypes, selectively from...
966 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
967 * include/parts/strings.h: ...from here; file is obsolete; delete it.
969 * include/string.h (_wcscmpi): Define alias.
970 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
971 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
972 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
973 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
974 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
975 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
976 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
977 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
979 * include/strings.h (_STRINGS_H): Do not define it, when...
980 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
981 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
983 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
985 Refactor to make <parts/time.h> redundant.
987 * include/sys/types.h (time_t, __time32_t, __time32_t)
988 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
989 * include/parts/time.h: ...from here; preserve selective exposure.
991 * include/time.h (time_t, __time32_t, __time32_t): Get them...
992 * include/sys/types.h: ...from here, by selective inclusion.
994 * include/time.h (struct timespec, struct __mingw_extended_timespec)
995 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
996 * include/parts/time.h: ...from here; preserve selective exposure.
998 * include/parts/time.h: Delete file; it is no longer required.
1000 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1002 Declare the nanosleep() function where POSIX expects it.
1004 * include/time.h (__mingw_sleep): Declare function prototype.
1005 (nanosleep): Declare prototype, and provide in-line implementation;
1006 this is a reproduction of the original implementation, relocated...
1007 * include/unistd.h (nanosleep): ...from here; remove it; hence...
1008 (struct timespec): ...this need not be declared here, and there is
1009 no need to include <parts/time.h>; remove reference.
1011 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1013 Refactor <time.h> vs. <wchar.h> to avoid duplication.
1015 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
1016 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
1017 (struct tm): Delete definition; delegate it, together with each of...
1018 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
1019 (wcsftime): ...these function prototypes; delete them, but note in
1020 comments, that they remain declared, via delegation to...
1021 * include/time.h: ...this; include it selectively, subject to...
1022 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
1023 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
1024 [_TIME_H]: Process all definitions and declarations; otherwise...
1025 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
1026 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
1027 (_WTIME_DEFINED): Obsolete macro; delete all references.
1029 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1031 Implement support for POSIX "%n$*m$" printf() format control.
1033 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
1034 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
1035 (__pformat_inline__): New macro; define, and use it where appropriate.
1036 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
1037 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
1038 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
1039 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
1040 (__pformat_argmap_t): ...this new union data type; define it.
1041 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
1042 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
1043 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
1044 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
1045 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
1046 (__pformat_length_modifier, __pformat_check_length_modifier): New
1047 locally defined static and/or inline functions; implement, and...
1048 (__pformat): ...use them.
1050 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1052 Add prototypes for Microsoft's _printf_p() family of functions.
1054 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
1055 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
1056 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
1057 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
1058 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
1059 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
1060 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
1061 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
1062 available for selective inclusion by both <stdio.h> and <wchar.h>...
1063 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
1065 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1067 Adapt msvcrt-xref to become msvcrt.def.in provider.
1069 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
1070 filter value assignment; scale it upwards, by a factor of 0x10000.
1071 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
1072 (%.def) [msvcr*]: Do not preserve comments; define...
1073 (__DLLNAME__): ...this preprocessor symbol.
1075 * msvcrt.def.in: Content is obsolete; delete file and replace with...
1076 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
1077 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
1078 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
1079 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
1080 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
1082 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1084 Import msvcrt-xref documentation resources.
1086 * msvcrt-xref: New directory.
1087 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
1088 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
1089 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
1090 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
1092 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1094 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
1096 * include/wchar.h: Some minor layout adjustments.
1097 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
1098 within the scope of reading <wchar.h>; undefine it at end of file.
1099 (struct tm): Do not define; it is sufficient to keep it opaque.
1100 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
1101 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
1102 directly; delegate to indirect definition by including <stdio.h>.
1103 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
1104 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
1105 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
1106 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
1107 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
1108 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
1109 indirectly, by selective inclusion from <stdio.h>; hence include it.
1111 * include/stdio.h: Assert copyright; tidy layout.
1112 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
1113 (_STDIO_H): ...this, but defined conditionally, subject to...
1114 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
1115 entities which are required by <wchar.h>; do not define...
1116 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
1117 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
1118 are normally specified within <stdio.h>, INCLUDING those specifically
1119 itemised above, as selectively required by <wchar.h>.
1121 * pseudo-reloc.c: Some minor layout adjustments.
1122 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
1123 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
1124 include <stddef.h> to guarantee it.
1126 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1128 Enable selective definition of POSIX system types.
1130 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
1131 any specific __need_TYPE selector having been set prior to inclusion;
1132 DO define it when no such selector is present, and undefine all such
1133 selectors as may have been set, after evaluation of their effects.
1134 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
1135 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
1136 accommodates reorganization of the file, to achieve a tidier layout.
1137 (__have_typedef_off_t): New repeat definition guard; define it for
1138 compilers which may choke on any repeated typedef for either of...
1139 (off_t, _off_t): ...these; make them selectively defineable for...
1140 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
1141 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
1142 in either case, redefine them in terms of...
1143 (__off32_t): ...this new internal type, for consistency with...
1144 (__off64_t): ...this previously defined non-standard type; also make
1145 it selectively defineable, either by...
1146 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
1147 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
1148 (__have_typedef___off64_t): New repeat definition guard; define it.
1149 (ssize_t, _ssize_t): Also make them selectively defineable, on...
1150 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
1151 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
1152 (__have_typedef_ssize_t): New repeat definition guard; define it.
1154 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1156 Avoid user namespace pollution by non-standard type 'off64_t'.
1158 * include/sys/types.h (off64_t): Rename it as...
1159 (__off64_t): ...this implementation-private alternative name, so
1160 eliminating the potential for user namespace pollution.
1162 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
1163 return type, and type of offset argument, in both prototype and inline
1164 implementation; note that this addresses the issue of pollution in the
1165 user namespace, while avoiding the issue of MinGW-Bug [#2024].
1167 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
1168 instead of 'off64_t', as offset argument type in function prototypes.
1169 (ftello64): Likewise, for return type of inline function.
1171 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
1172 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
1173 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
1175 * mingwex/stdio/fseeko64.c: Assert copyright.
1176 (fseeko64): Use '__off64_t' per modified function prototype.
1178 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1180 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
1182 * mingwex/ofmtctl.c: New file; it implements...
1183 (_mingw_output_format_control): ...this new function; it provides
1184 additional MinGW specific printf() format processing options.
1186 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
1188 * include/stdio.h (_mingw_output_format_control): Declare it.
1189 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
1190 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
1191 manifest constant expressions; define them.
1193 * mingwex/stdio/pformat.c: Revise licensing terms.
1194 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
1195 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
1196 modifier; this matches the behaviour specified by ISO-C99, else...
1197 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
1198 previous MSVC compatible behaviour, treating it as an `L' modifier.
1199 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
1201 * mingwex/ofmt.c (ARGLIST): Subsume references to...
1202 (ARGTYPE): ...this now obsolete macro; delete it throughout.
1203 (update_output_format_flag): New inline function; it restricts flag
1204 operations to affect only Microsoft's exponent digit bits.
1205 [FUNCTION == _set_output_format]: Use it.
1206 [FUNCTION == _get_output_format]: Likewise.
1208 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1210 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
1212 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
1213 defined, when implied by any STDC or POSIX version selection, viz. ...
1214 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
1216 * include/stdlib.h: Assert copyright; tidy layout.
1217 (_STDLIB_H_): Multiple inclusion guard macro renamed...
1218 (_STDLIB_H): ...to this, preferring no trailing underscore.
1219 [!defined __NO_ISOCEXT]: Delete double negative references; use...
1220 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
1221 (lldiv_t): ...defining this C99 specific aggregate data type, and...
1222 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
1223 (wcstold, _Exit): ...declaring these C99 function prototypes.
1224 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
1225 future removal; not in MSVCRT.DLL, these conform to no known standard.
1226 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
1227 (__strtod): ...this libmingwex.a provided function; it handles string
1228 representations of hexadecimal-floats, infinities and NaNs, whereas...
1229 (strtod): ...this MSVCRT.DLL implementation does not.
1230 (__MSVCRT_VERSION__): Prefer symbolic comparison...
1231 [>= __MSVCR80_DLL]: ...for this requirement.
1233 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1235 Rationalize definition of struct timespec.
1237 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
1238 tv_sec field, in place of anonymous union, thus avoiding missing brace
1239 warnings when initializing; leave a copy of the previous definition...
1240 (struct __mingw32_expanded_timespec): ...named thus.
1242 * include/unistd.h (nanosleep): Adjust inline implementation, to match
1243 altered specification of tv_sec field in struct timespec.
1245 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
1246 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
1248 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
1249 convenience function; defined as inline, with __LIBIMPL__ equivalent,
1250 it facilitates interpretation of an instance of struct timespec as if
1251 it were defined as struct __mingw32_expanded_timespec.
1253 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1255 Make strings.h mostly POSIX.1-2008 compliant.
1257 * include/strings.h: Rewritten. Do not include...
1258 (string.h): ...this; mandated by POSIX.1, it now defines...
1259 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
1260 prototypes, possible in-line implementations, and JMPSTUB references
1261 to corresponding external implementations, which will now become
1262 automatically created within libmingwex.a
1264 * include/parts/strings.h: New file; it declares prototypes for...
1265 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
1266 string.h, but we also require them in strings.h
1268 * include/parts/wchar.h: New file; it declares prototypes for all wide
1269 character functions which MSVC specifies in both wchar.h and string.h
1271 * include/string.h: Miscellaneous layout adjustments.
1272 (strcasecmp, strncasecmp): Delete; they belong in strings.h
1273 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
1274 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
1275 include them from parts/wchar.h instead.
1277 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
1278 prototypes; include them from parts/wchar.h instead, so making this
1279 guard macro redundant; delete it.
1281 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
1282 (wcscmpi.$OBJEXT): Implementations are now automatically generated
1283 from header file, for inclusion in libmingwex.a; remove free-standing
1284 implementations from the entire family of liboldname libraries, and...
1285 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
1286 files; they are no longer required.
1288 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1290 Incorporate build system updates from w32api package.
1292 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
1293 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
1294 (install-strip, uninstall): New make command goals; implement them.
1295 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
1296 (devdist, dlldist): ...these have no need to strip explicitly.
1297 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
1298 (install-mingwrt-headers): ...here.
1300 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1302 Adapt platform feature checks to NTDDI_VERSION conventions.
1304 * include/_mingw.h: Assert copyright; include w32api.h
1305 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
1306 to w32api/include/w32api.h, whence they remain in effect.
1307 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
1309 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1311 Correct mismatched #if/#endif from preceding commit.
1313 * include/_mingw.h (#pragma GCC system_header)
1314 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
1315 correcting for inadvertent removal of matching #endif introduced by
1316 preceding 2015-06-19 commit.
1318 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1320 Define symbolic names for alternative Microsoft runtime DLLs.
1322 * include/msvcrtver.h: New file; it assigns a value for...
1323 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
1324 (__MSVCR60_DLL): ...this new manifest constant, with each of...
1325 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
1326 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
1327 ...these also defined, as user assignable alternatives.
1329 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
1330 to establish its default value.
1332 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1334 Track dependencies on modified system header files.
1336 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
1338 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1340 Correct an anomaly in stage 1 only build procedure.
1342 * Makefile.in (all-gcc): New goal; it is an alias for...
1343 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
1344 (all-mingwrt-stage-1-only): ...this; upate all references.
1345 (active-goals): Adjusted accordingly; it now reguires...
1346 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
1347 (install): Adjusted, as directed by...
1348 (DEFAULT_MAKECMDGOALS): ...this.
1350 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1352 Prefer our hypot() implementation in complex maths operations.
1354 * mingwex/complex/cabs_generic.c: New file; it replaces...
1355 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
1356 * mingwex/complex/cabsl.c: ...these.
1358 * mingwex/complex/catan_generic.c: New file; it replaces...
1359 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
1360 * mingwex/complex/catanl.c: ...these.
1362 * mingwex/complex/clog_generic.c: New file; it replaces...
1363 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
1364 * mingwex/complex/clogl.c: ...these.
1366 * mingwex/complex/cpow_generic.c: New file; it replaces...
1367 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
1368 * mingwex/complex/cpowl.c: ...these.
1370 * mingwex/complex/csqrt_generic.c: Do not use...
1371 (_hypot): ...this Microsoft form of function reference; use...
1372 (hypot): ...this ANSI standard form instead.
1374 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1376 Correct C++ compilation anomaly with hypotf() in cmath header.
1378 * include/math.h: Add copyright notice; generally tidy layout.
1379 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1380 (hypotf): Delete inline implementation; it did not properly handle
1381 range errors, and was uncompilable with optimization when any g++
1382 option implying __STRICT_ANSI__ conformity was specified.
1383 (_MATH_H_): Rename this multiple inclusion guard...
1384 (_MATH_H): ...to this.
1386 * mingwex/math/hypot_generic.c: New file; it implements...
1387 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
1388 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
1390 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1392 Prepare and tag all files for release of mingwrt-3.21.1.
1394 * configure.ac (AC_INIT): Adjust package version argument.
1395 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
1396 (__MINGW32_VERSION): ...increment this to match.
1398 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1400 Refactor to avoid possible time_t conflicts across headers.
1402 * include/parts/time.h (struct timespec): Make it more descriptive of,
1403 and better able to accommodate, potential ambiguity relating to...
1404 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
1405 whence they may be identically imported into each of...
1406 * include/sys/types.h include/time.h include/wchar.h: these; delete
1407 duplicate typedefs, and import accordingly.
1409 * include/sys/types.h: Add licence; general comment additions.
1410 (_TYPES_H_): Rename multiple inclusion guard macro...
1411 (_SYS_TYPES_H): ...to this.
1413 * include/time.h: Add licence; general comment/layout adjustments.
1414 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1415 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
1416 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
1417 (_TIME_H_): Rename multiple inclusion guard macro...
1418 (_TIME_H): ...to this.
1420 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
1421 (struct timespec): ...of this.
1423 * include/wchar.h: Add licence; general comment/layout adjustments.
1424 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1425 [GCC] (system_header): Add pragma, identifying header as such.
1426 (_WCHAR_H_): Rename multiple inclusion guard macro...
1427 (_WCHAR_H): ...to this.
1429 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1431 Remove obsolete varargs.h header file.
1433 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
1434 a GCC header which is no longer supported, and was always intended for
1435 ultimate removal; now is the long overdue time to do so.
1437 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1439 Correct improper unistd.h function attribute declarations.
1441 * include/unistd.h (_cdecl): Correct usage throughout; should be...
1444 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1446 Fix GLOB_DOOFFS initialization bug.
1448 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
1449 (gl_data->gl_offs): ...this is properly initialized to zero.
1451 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1453 Tag all files for release of mingwrt-3.21.
1455 * include/_mingw.h: Adjust version accordingly.
1457 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1459 Improve usage notes in stdlib.h, for mkstemp() function.
1461 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
1462 an original comment, explaining the need to use _O_TEMPORARY, from...
1463 * mingwex/mkstemp.c: ...here; delete trailing white space.
1465 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1467 Eliminate some potential definition inconsistencies.
1469 * include/stdio.h: Cosmetic formatting change, relating to...
1470 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
1471 unconditionally; this allows the compiler to check for consistency
1472 with their primary definitions in stdio.h
1474 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1476 Suppress expected warning diagnostics in LIBIMPL builds.
1478 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
1479 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
1480 GCC flag to supress warnings relating to deprecated declarations.
1482 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1484 Provide more POSIX conforming sleep() functions.
1486 * include/sys/types.h (useconds_t): Make it explicitly long; int may
1487 be okay, but doesn't guarantee enough bits; mark as deprecated, since
1488 POSIX has declared it "obsolete", and no longer specifies it.
1490 * mingwex/usleep.c: Delete file; it provided an implementation of...
1491 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
1492 its error handling was hopelessly broken; replace it with...
1493 * mingwex/nsleep.c: ...this new file; it implements...
1494 (__mingw_sleep): ...this generic helper function; it supports sleep
1495 capability with interval specification to nanosecond precision.
1497 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
1498 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
1499 (sleep, nanosleep): ...these current POSIX functions, and also...
1500 (usleep): ...this obsolete one; mark it as deprecated.
1502 * include/parts: New directory; it is intended to host partial header
1503 implementations, for content which must be shared among arbitrary sets
1504 of multiple standard header files.
1506 * include/parts/time.h: New file; nominally declaring time.h content.
1507 (struct timespec): Declare it; it is currently used within unistd.h,
1508 to facilitate the __CRT_INLINE implementation of nanosleep().
1510 * Makefile.in (libmingwex.a): Remove reference to...
1511 (usleep.$OBJEXT): ...this; replace it with a reference to...
1512 (nsleep.$OBJEXT): ...this alternative.
1513 (mingwrt-includedirs): Add prerequisite to create...
1514 ($includedir/parts): ...this new directory; it is populated by...
1515 (install-mingwrt-headers): ...this rule; add requisite command.
1517 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1519 Delete an unnecessary Unicode wrapper file.
1521 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
1522 UTF-16LE API from dirent.c, without any need for this wrapper.
1524 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1526 Some further inline function rationalization.
1528 * include/io.h (_CRTALIAS): Replace all references...
1529 (__CRT_ALIAS): ...using this syntactically preferred form.
1530 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
1531 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1533 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
1534 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1536 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
1537 * mingwex/ftruncate.c: Likewise.
1539 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1540 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
1542 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1544 Some POSIX feature test adjustments.
1546 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
1547 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
1548 (mkdtemp): This didn't become available until SUSv4, so requires...
1549 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
1551 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1553 Another CRT_INLINE function implementation rationalization.
1555 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
1556 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
1557 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1559 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
1560 (libmingwex.a): Delete obsolete dependency on...
1561 (imaxabs.$OBJEXT): ...this.
1563 * mingwex/imaxabs.c: File is now redundant; delete it.
1565 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1567 More rationalization of CRT_INLINE function implementations.
1569 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
1570 (ftello64): Add __LIBIMPL__ specification for extern implementation.
1571 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1573 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
1574 * mingwex/stdio/ftell064.c: Likewise.
1576 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1577 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
1579 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1581 Don't implicitly define _POSIX_C_SOURCE too early.
1583 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
1584 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
1585 that it is not accidentally activated by implied _POSIX_C_SOURCE.
1587 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1589 Correct complex arcsin computation per issue [#2245].
1591 * mingwex/complex/casin_generic.c: New file; it replaces...
1592 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
1593 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
1595 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1597 Correct complex square root computation per issue [#2246].
1599 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
1600 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
1601 (hypot): ...this libmoldname.a indirection.
1603 * mingwex/complex/csqrt_generic.c: New file; it replaces...
1604 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
1605 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
1607 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1609 Adjust header guards to resolve issue [#2244].
1611 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
1612 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
1613 ...when any of these prevail, or as appropriate to correspond with...
1614 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
1616 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
1617 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
1618 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
1619 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
1621 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1623 Add implementation of mkstemp() and mkdtemp() functions.
1625 * mingwex/cryptnam.c: New file; it implements...
1626 (__mingw_crypto_tmpname): ...this helper function; it generates a
1627 cryptographically secure sequence of characters, used as the random
1628 component in temporary file and directory names.
1630 * mingwex/mkstemp.c: New file; it implements...
1631 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
1633 * mingwex/mkdtemp.c: New file; it implements...
1634 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
1636 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
1637 function implementation, with LIBIMPL extern semantics, in terms of...
1638 (__mingw_mkstemp): ...this; also declare prototype, and define...
1639 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
1640 (_MKSTEMP_SETMODE): New macro; define it, also providing...
1641 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
1642 (mkdtemp): Declare prototype; provide inline implementation, with
1643 JMPSTUB extern semantics, in terms of...
1644 (__mingw_mkdtemp): ...this; declare prototype.
1646 * Makefile.in (libmingwex.a): Add dependency rule, to include...
1647 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
1649 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1651 More JMPSTUB rationalization of inline functions.
1653 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
1654 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
1655 appropriate MSVCRT.DLL equivalent entry point.
1657 * mingwex/_Exit.c: File is now redundant; delete it.
1658 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
1659 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
1661 * Makefile.in (jmpstub_awk_script): Add support for...
1662 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
1663 (libmingwex.a): Remove dependencies on deleted files, namely...
1664 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
1665 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
1667 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1669 Correct omission of complex conjugate functions from libmingwex.a
1671 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
1672 (creal, crealf, creall): Likewise, for consistency of implementation.
1673 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
1675 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
1676 declarations; they should be interpreted analogously to __CRT_ALIAS.
1677 (libmingwex.a): Remove object file references for functions which are
1678 now declared as LIBIMPL, and sort the remainder in ASCII collating
1679 order; deleted function references comprise the set consisting of...
1680 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
1681 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
1682 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
1684 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
1685 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
1686 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
1687 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
1688 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
1690 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1692 Back-port improved asinh() implementation from 4.0-dev branch.
1694 * mingwex/math/asinh_generic.c: New file; it replaces...
1695 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
1696 ...all of these; delete them.
1698 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1700 Enable remake of lost LIBIMPL object files.
1702 * Makefile.in (libimpl_remake): New macro; define it, and...
1703 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
1705 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1707 Implement more robust _get_output_format fallback handling.
1709 * mingwex/ofmt.c: New file; it implements...
1710 (__mingw_output_format_flag): ...backing store, used by...
1711 (__mingw_get_output_format, __mingw_set_output_format): ...these
1712 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
1713 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
1714 version specific Microsoft APIs, which are also supported by some
1715 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
1716 (__mingw_get_output_format_fallback): Implement; it is aliased to...
1717 (__mingw_set_output_format_fallback): ...this; together they provide
1718 the emulation support for the preceding pair of functions, when they
1719 are not available within the run-time platform MSVCRT.DLL
1720 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1721 Implement them; they wrap, and if necessary emulate...
1722 (_get_printf_count_output, _set_printf_count_output): ...these.
1723 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
1724 (__mingw_set_printf_count_output_fallback): ...this; together they are
1725 required to support emulation of the preceding pair of functions, when
1726 they are not available within the run-time platform MSVCRT.DLL
1728 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
1729 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
1730 (__mingw_get_output_format, __mingw_set_output_format)
1731 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1732 Unconditionally declare their prototypes, for subsequent inline use.
1733 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
1734 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
1735 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
1736 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
1737 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
1738 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
1739 represent a compilable token.
1741 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
1742 _get_output_format; consult __mingw_output_format_flag directly.
1744 * ofmt_stub.s: No longer required; delete it.
1746 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
1747 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
1748 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
1749 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
1750 all are compiled from ofmt.c
1752 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1754 Do some more essential build tree clean up.
1756 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
1757 in the way of a successful rebuild from clean.
1759 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1761 Implement wrappers for emulation of POSIX dlfcn API.
1763 * include/dlfcn.h: New file; it declares the API.
1764 * mingwex/dlfcn.c: New file; implement it, with access via...
1765 (__mingw_dlfcn): ...this publicly addressable vector table.
1767 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1768 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1769 (__LIBIMPL__): ...this automatic interface generator; implement it.
1770 (libstub_refnames): New macro; it is adapted from and replaces...
1771 (jmpstub_refs): ...this; when it is then invoked twice to build...
1772 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1773 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1774 (libimpl_awk_script): New inline script; it handles automated builds
1775 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1776 (libimpl_sed_script): New inline script; it prepares intermediate C
1777 source code for LIBIMPL interfaces, as required to satisfy these...
1778 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1779 (LIBIMPL_CFLAGS): New macro; define it.
1781 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1783 Move libgen functions to __mingw_ pseudo-namespace.
1785 * mingwex/dirname.c (dirname): Rename function, as implemented...
1786 (__mingwex_dirname): ...to this.
1788 * mingwex/basename.c (basename): Rename function, as implemented...
1789 (__mingwex_basename): ...to this.
1791 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1792 prototypes, matching and augmenting original declarations for...
1793 (dirname, basename): ...these; reimplement as inline aliases, with
1794 __JMPSTUB__ references to the renamed implementation entry points.
1796 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1798 Implement new command line argument globbing strategy.
1800 * include/_mingw.h: Backport feature defines from master...
1801 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1802 constants; define them. They select the preferred globbing algorithm.
1803 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1804 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1805 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1806 they enable optional additional features supported by this algorithm.
1807 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1809 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1811 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1812 * setargv.c: ...new file; it implements the initialization mechanism
1813 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1814 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1815 it invokes the algorithm via an API similar to that described by MSDN,
1816 while continuing to support our original _CRT_glob interpretation.
1817 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1818 algorithm, via the MSDN-alike API, by calling back to...
1820 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1821 relocated to here, as a publicly addressable function; formerly...
1822 (__mingw_CRTStartup): ...called directly from here, we now redirect
1823 the call through _setargv(), whence it may be called indirectly.
1825 * init.c: Redundant file; delete it. It originally provided...
1826 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1827 original static attribute removed, to allow global addressing.
1829 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1831 Backport glob implementation from master to legacy.
1833 * include/glob.h: New file; copy it from master branch.
1834 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1835 (glob, globfree): ...each of these, respectively.
1837 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1838 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1839 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1840 (accept_glob_nocheck_match): New static function; it adds support for
1841 avoidance of globbing on patterns with no globbing token, so avoiding
1842 the case transliteration effect reported as MinGW-Bug #2106.
1843 (glob_match): Use it.
1845 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1847 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1849 Implement conventionally named dirent function trampolines.
1851 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1852 which redirects a conventionally named function call to its __mingw_
1853 pseudo-namespace implementation.
1855 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1856 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1857 appropriate protocol for compiling *.sx files, (supported natively by
1858 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1860 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1861 yet provide it, so we define it ourselves; deploy it for *.sx files.
1862 (Makefile.stub): New sinclude file; create it dynamically, using...
1863 (jmpstub_awk_script): ...this new inline script, which is based on...
1864 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1865 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1866 (mostlyclean-local): Remove Makefile.stub; do likewise...
1867 (Makefile): ...when remaking this, to ensure that both will be
1870 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1872 Make dirent implementation namespace and time_t clean.
1874 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1875 macros; define them. They facilitate identification of symbols which
1876 must be compiled with `extern "C"' binding, when compiling C++ code.
1877 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1878 (_CRTALIAS): ...this, which is to be considered as deprecated.
1879 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1880 __CRT_ALIAS build hints, while remaining transparent to GCC.
1881 (UNICODE, _UNICODE) [user defined]: Define consistently.
1883 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1884 4.0-dev branch, with additional ABI changes to improve stability).
1885 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1886 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1887 Add `__mingw_' prefix to all publicly exposed symbol names.
1888 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1889 implemented functions; they replace Microsoft's ambiguously defined
1890 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1891 resulting from the ambiguous size of Microsoft's time_t.
1893 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1894 removing unnecessary time_t and file size fields; (our replacements
1895 for _findfirst, and _findnext do not require them to be present).
1896 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1897 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1898 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1899 Adjust prototypes, making them inline aliases for public symbols which
1900 are now qualified by the `__mingw_' prefix; add build hints to support
1901 compilation of addressable stubs, with the original symbol names.
1902 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1903 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1904 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1905 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1906 New macros; define them. (These show availability of optional fields
1907 within the dirent struct, which client code may wish to access).
1909 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1911 Correct improper naming of assembly language source files.
1913 * mingwex/math/*.S: Rename all files with this extension...
1914 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1915 not extended `assembler-with-cpp' as implied by the former extension);
1916 adjust all internal `.file <name>' references accordingly.
1918 * Makefile.in (vpath %.S): Adjust reference to locate files....
1919 (vpath %.s): ...now renamed thus.
1921 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1923 Streamline the build system infrastructure.
1925 * configure.ac: New file; it replaces...
1926 * configure.in: ...this; (name is obsolete); delete it.
1928 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1929 make invocations, when processing subdirectories, and add automatic
1930 dependency tracking for all generated files.
1932 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1934 * mingwex/Makefile.in: No longer required; delete it.
1935 * profile/Makefile.in: Likewise.
1937 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1938 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1940 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1941 longer relevant, and I have no desire to maintain it.
1943 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1945 Add another more rigorous __STRICT_ANSI__ filter.
1947 * include/limits.h [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
1948 * include/sys/param.h [PATH_MAX defined] (MAXPATHLEN): Alias it.
1949 [PATH_MAX not defined] (MAXPATHLEN): Define it directly.
1951 2012-08-02 Ivan Maidanski <ivmai@users.sourceforge.net>
1953 Add missing function prototypes per issue [#1305].
1955 * include/process.h [#ifndef _WPROCESS_DEFINED]
1956 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve)
1957 (_wexecvp, _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe)
1958 (_wspawnv, _wspawnve, _wspawnvp, _wspawnvpe): Declare them.
1960 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1962 Add function prototype declarations per issue [#1293].
1964 * include/stdio.h (_lock_file, _unlock_file): Declare them.
1966 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1968 Apply some more rigorous __STRICT_ANSI__ filtering.
1970 * include/stdio.h (_getws, _putws, _wfdopen, _wfopen)
1971 (_wfreopen, _wfsopen, _wtmpnam, _wtempnam, _wrename, _wremove)
1972 (_wperror, _wpopen): Do not declare these functions unless...
1973 [#ifndef __STRICT_ANSI__]: ...this is satisfied.
1975 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1977 Add string to 64-bit integer conversion function prototypes.
1979 * include/stdlib.h (_strtoi64, _strtoi64_l, _strtoui64, _strtoui64_l)
1980 (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l): Declare them.
1981 * include/wchar.h (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l):
1982 Likewise; these are duplicates of the <stdlib.h> declarations.
1984 2012-08-01 Earnie Boyd <earnie@users.sourceforge.net>
1986 Update for _WIN64 exception handler readiness.
1988 * include/excpt.h [_WIN64] (__try1, __except1): Add alternative inline
1989 assembly code implementation, based on X86-64 architecture.
1991 2012-07-30 Earnie Boyd <earnie@users.sourceforge.net>
1993 Correct missing inclusion of <_mingw.h>.
1995 * include/stdint.h: Add omitted #include; all mingwrt headers are
1996 expected to include this; it is required to define __int64.
1998 2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>
2000 Correct prototypes for _wfindfirst()/_wfindnext() function family.
2002 * include/io.h (_wfindfirst, _wfindfirst32, _wfindfirsti64)
2003 (_wfindfirst32i64, _wfindfirst64i32): Return type changed to intptr_t.
2004 (_wfindnext, _wfindnext32, _wfindnexti64, _wfindnext32i64)
2005 (_wfindnext64i32, _wfindnext64): Type of parameter #1 must match.
2007 2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
2009 Avoid potential GCC "missing function prototype" warnings.
2011 * include/stdio.h (getc, putc, getchar, putchar, fopen64)
2012 (ftello64): Provide a function prototype declaration for each of
2013 these, prior to the corresponding inline implementation.
2015 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2017 * include/_mingw.h: Increment version to 3.20.
2019 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2021 * tlsmthread.c: Update to reflect changes in tlssup.c.
2022 * tlssup.c: code clean-up.
2024 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2026 * include/_mingw.h: Increment version to 3.19.
2028 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2030 * include/float.h: Modify guard to accomodate CLang.
2032 Thanks to Ruben Van Boxem for the report.
2034 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2036 * tlssup.c: Remove mingwm10.dll fallback.
2038 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2040 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
2042 Thanks to bvassche for the report.
2044 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2046 Correct checking for short option matches in getopt_long_only().
2048 * mingwex/getopt.c (getopt_verify): New static inline function.
2049 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
2050 possible short option match after failing to match, or ambiguously
2051 matching as a long option.
2053 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2055 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
2057 Thanks to cgf for the report.
2059 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2061 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
2062 compiles with __STRICT_ANSI__.
2064 Thanks to Felipe Contreras for the report.
2066 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2068 * include/stdlib.h (strtod): Remove possible static declaration to resolve
2071 Thanks to Tobias Burnus for the report.
2073 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2075 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
2076 by wrapping the functions in brackets.
2078 Thanks to Kai Tietz for the report.
2080 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
2082 * Makefile.in: Add support for msvcr100.dll.
2083 * msvcrt.def.in: Ditto.
2085 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
2087 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
2088 not always available, go the long way and use the explicit named union
2089 members, which are also declared in winnt.h.
2091 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
2093 * mingwex/isblank.c: Fix typo in declaration.
2095 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
2097 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
2098 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
2099 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
2100 is included before <ctype.h>.
2102 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2104 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
2106 Thanks to Jim Bell for the report and Greg Chicares for the fix.
2108 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
2110 Correct hexadecimal formatting of double and long double values.
2112 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
2113 (__pformat) [A format]: Cast double values to long double, and use...
2114 (__pformat_xldouble): ...this instead, with corrected adjustment of
2115 exponent and alignment of mantissa, when formatting subnormals.
2117 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
2119 * include/dirent.h (dd_handle): Define as intptr_t.
2121 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
2123 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
2126 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2128 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
2129 semantically identical MAX_PATH; correct value is 260.
2131 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2133 Accept that mingwrt headers are not guaranteed to precede GCC's in the
2134 system include search path; (issue reported by Mark Brand).
2136 * include/float.h: Add multiple inclusion guard around...
2137 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
2138 only when this define does not indicate that it has already been seen;
2139 update comments to document rationale; move it within the scope of...
2140 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
2141 GCC's float.h, after an appropriate complementary modification, need
2142 not perform a further include path search when this implementation
2143 specific extension has already been processed.
2145 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
2147 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
2148 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
2149 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
2150 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
2151 _findnexti64): Correct definition.
2153 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
2155 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
2157 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2159 * include/_mingw.h: Increment version to 3.18.
2161 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
2163 * include/stdio.h: (_vscprintf, _vscwprintf)
2164 * include/tchar.h: (_vsctprintf)
2166 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
2168 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
2169 (initial implementation)
2171 * new type: __time32_t
2173 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
2174 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
2175 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
2177 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
2178 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
2179 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
2180 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
2181 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
2182 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
2183 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
2184 _wstat32i64, _wstat64i32,_wutime32
2186 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
2187 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
2188 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
2189 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
2190 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
2192 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
2194 Implement TLS Callback.
2196 * tlsmcrt.c: New file.
2197 * tlsmthread.c: Ditto.
2200 * Makefile.in: Include new files.
2201 * crt1.c: Implement TLS Callback.
2203 * mthr_stub.c: Remove.
2205 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2207 * include/_mingw.h: Increment version to 3.17.
2209 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2211 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
2212 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
2214 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2216 * include/io.h (_open_osfhandle): Correct definition.
2218 Thanks to Alexander Shaduri for the information.
2220 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
2222 Final sync of pseudo-reloc.c with mingw64 and cygwin
2223 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
2224 regarding error messages.
2226 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
2228 Honor DESTDIR for winsup/mingw and winsup/w32api.
2229 Detect and report error if installation paths are win32
2230 format, but DESTDIR is non-empty.
2232 * Makefile.in (DESTDIR): Honor per convention.
2233 (need-DESTDIR-compatibility): New macro; define it and a
2235 (fail-DESTDIR-compatibility): New dependency goal.
2236 (install-dirs): Require need-DESTDIR-compatibility.
2237 * mingwex/Makefile.in (DESTDIR): Honor per convention.
2238 (need-DESTDIR-compatibility): New macro; define it and a
2240 (fail-DESTDIR-compatibility): New dependency goal.
2241 (install): Require need-DESTDIR-compatibility.
2242 * profile/Makefile.in: Ditto.
2244 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
2246 Sync pseudo-reloc.c with mingw64
2247 * psuedo-reloc.c: Remove unnecessary includes.
2248 Forward declare _pei386_runtime_relocator.
2249 Decorate _image_base__ symbol with macro for
2250 mingw64 compatibility. Whitespace changes.
2251 (__print_reloc_error): Renamed to...
2252 (__report_error): This. "Returns" void, and
2253 always aborts. Now used on all platforms.
2254 (__write_memory): Remove special case error handling
2255 for different platforms - always call __report_error.
2256 (do_pseudo_reloc): Remove special case error handling
2257 for different platforms - always call __report_error.
2258 (_pei386_runtime_relocator): Decorate _image_base__
2259 symbol with mingw64 compatibility macro.
2261 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
2263 Sync pseudo-reloc.c with cygwin/lib/
2264 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
2265 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
2266 for fatal error handling that is consistent with cygwin process
2267 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
2268 is unique to each address space, across fork().
2269 [CYGWIN] (__print_reloc_error): New function for reporting
2270 errors in a manner supported by cygwin at this early stage of
2271 the process life-cycle.
2272 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
2273 performed only once for each address space, but are repeated
2274 after fork() in the new address space.
2275 [MINGW] (__write_memory): Ensure that b is always initialized
2276 by call to VirtualQuery, even if -DNDEBUG.
2278 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2280 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
2281 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
2283 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
2284 (PFORMAT_HASHED): ...this formatting attribute; honour only user
2285 specified format qualifiers, except in special case...
2286 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
2287 (PFORMAT_ZEROFILL): ...this default formatting attribute...
2288 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
2291 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2293 Avoid multiple link time definitions of _printf() for C++;
2294 (problem reported by Alexander Shaduri, via MinGW-users ML).
2296 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
2297 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
2299 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2301 * include/_mingw.h: Increment version to 3.16.
2303 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2305 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
2306 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
2307 __fp_unordered_compare): Add prototypes.
2308 * include/stdio.h (vsnwprintf): Add prototype.
2309 * include/wchar.h (vsnwprintf): Add prototype.
2310 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
2311 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
2313 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2315 Correct disposition of wchar_t output in printf().
2317 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
2318 (argval): ...this, in inner scope, with singular type `wchar_t'; use
2319 it to pass one wchar to __pformat_wputchars(), for output.
2321 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2323 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
2325 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2327 Convert to monolithic configuration procedure.
2329 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
2330 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
2331 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
2332 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
2333 (CRT0S): Relocate from `profile'; define it as appropriate.
2334 (LIBM_A): Define and AC_SUBST it unconditionally.
2335 (AC_CONFIG_SUBDIRS): Remove; none to configure.
2336 (AC_OUTPUT_FILES): Add `Makefile' for each of...
2337 (mingwex, profile): ...these subdirectories.
2339 * configure: Regenerated.
2341 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
2342 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
2343 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
2344 (SUBDIRS): Define explicitly, to run recursive `make' in...
2345 (mingwex, profile): ...these; simplify build commands...
2346 (rootme, rootsrc): ...without these shell variables.
2347 (all, subdirs): Delete redundant build commands.
2348 (FIXME): Flag various issues for follow up.
2350 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
2351 (top_srcdir): ...this new macro; let AC_SUBST define it.
2352 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2353 (Makefile): Make it depend on...
2354 (top_builddir/config.status): ...this, itself depending on...
2355 (top_srcdir/configure): ...this.
2356 (FIXME): Flag various issues for follow up.
2358 * mingwex/aclocal.m4: File no longer required; delete it.
2359 * mingwex/configure mingwex/configure.in: Likewise.
2361 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
2362 (top_srcdir): ...this new macro; let AC_SUBST define it.
2363 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2364 (Makefile): Make it depend on...
2365 (top_builddir/config.status): ...this, itself depending on...
2366 (top_srcdir/configure): ...this.
2367 (FIXME): Flag various issues for follow up.
2369 * profile/aclocal.m4: File no longer required; delete it.
2370 * profile/configure profile/configure.in: Likewise.
2372 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2374 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
2375 to complaints that it causes issues.
2377 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
2379 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
2381 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2383 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
2384 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
2385 to all inline functions.
2387 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2389 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
2390 * CRT_fp10.c: Ditto.
2392 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2394 * cpu_features.c: replace gcc-specific construct with portable alternative
2395 and match the code a few lines above.
2396 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
2398 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2400 * include/_mingw.h: Changes required for PCC compiler.
2402 2009-07-18 Jeff Lu <jll544@yahoo.com>
2404 * mingwex/usleep.c: round up to next ms
2406 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2408 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
2409 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
2410 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
2411 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
2413 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2415 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
2417 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
2419 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
2420 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
2421 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
2422 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
2423 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
2424 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
2425 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
2426 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
2427 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
2428 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
2429 sources as of Apr. 20, 2009. Update further to match the sources in
2430 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
2431 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
2432 double/ulong union from U to dbl_union for better grepping and white-
2435 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2437 * include/stdlib.h (_wtof): Define.
2439 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
2441 * include/stdint.h (int_fast8_t): Specify as signed char.
2442 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
2443 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
2445 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
2447 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
2449 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2451 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
2452 (Requested by Robert Riebisch)
2454 * mingwex/getopt.c (getopt_parse): Track external increments of...
2455 (optind): ...this global variable.
2457 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2459 * include/_mingw.h: Increment version to 3.15.2.
2461 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2463 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
2464 Also add tentative support for BSD specific `optreset' feature.
2466 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
2467 (__mingw_optreset): ...this new global variable.
2469 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
2470 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
2473 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2475 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
2476 Correct mishandling of invalid characters in printf() format specs.
2478 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
2479 (backtrack): ...this new automatic variable, at start of each format
2480 conversion specification substring; use it to backtrack, and print the
2481 substring literally, if any invalid character is encountered.
2483 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
2485 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
2486 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
2487 ___unguarded_readlc_active_add_func, __crtCompareStringW,
2488 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
2489 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
2490 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
2491 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
2492 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
2493 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
2494 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
2495 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
2496 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
2497 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
2498 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
2500 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
2502 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
2504 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2506 Correct some binary distribution packaging defects.
2508 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
2509 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
2510 intermediate goals; they make packages of files, as specified by...
2511 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
2512 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
2514 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2516 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
2517 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
2519 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
2520 of radix point conditional on precision != 0 or `#' flag specified.
2522 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2524 Fix MinGW-Bug [2160227]
2525 Eliminate conflicting declarations and implementations of scalb().
2527 * moldname.def.in (scalb): Comment out of EXPORTS list.
2528 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
2529 with GCC's built-in declaration.
2531 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
2533 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
2535 * mingwex/Makefile.in: Ditto.
2536 * profile/Makefile.in: Ditto.
2537 * configure.in: Record mingw front-end for building under Cygwin.
2538 * mingwex/configure.in: Ditto.
2539 * profile/configure.in: Ditto.
2540 * configure: Regenerate.
2541 * mingwex/configure: Ditto.
2542 * profile/configure: Ditto.
2544 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2546 Use de-facto standard Makefile goals to invoke test suite.
2548 * Makefile.in: Some minor formatting adjustments.
2549 (test_headers): Unconventionally named goal renamed to...
2550 (check-headers): ...this; make it a prerequisite of...
2551 (check): ...this new conventionally named goal.
2553 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2555 Make strtod() inline definition C89 compliant.
2556 (Issue reported by Ilya Shestopalov and Ian Puleston)
2557 (Correction identified by Danny Smith)
2559 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
2560 reformat inline function definition.
2562 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2564 * include/_mingw.h: Increment version to 3.15.1 and introduce
2565 __MINGW32_PATCHLEVEL variable.
2567 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2569 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
2570 (Reported by Christian Franke)
2572 * mingwex/getopt.c (optind): Make global variable value conform to
2573 behaviour specified by POSIX; do not use it for internal state in...
2574 (getopt_parse): ...this static function; use...
2575 (optbase): ...this new static local variable instead.
2576 (getopt_resolved): Update `optind' as required.
2578 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2580 Improve package identification in configure script.
2582 * configure.ac (AC_INIT): Redefine parameters...
2583 (PACKAGE_NAME): Set to `MinGW Runtime'.
2584 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
2585 (PACKAGE_TARNAME): Set to `mingwrt'.
2586 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
2587 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
2588 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
2590 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
2591 (PACKAGE_TARNAME): ...this.
2593 * configure: Regenerated.
2595 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2597 Fix MinGW-Bug [2125708].
2598 (Reported by Alexandr Zamaraev).
2600 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
2601 not wanted here; remove it; replace it by...
2602 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
2603 (_invalid_parameter_handler): ...this function typedef.
2605 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
2607 * Makefile.in: Don't include host_os as part of snapshot filename.
2609 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2611 Fix MinGW-Bug [2119504].
2612 (Reported by Peiyuan Song).
2614 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
2615 (*retindex): ...this already correctly assigned return variable...
2616 (opt[index].val): ...with this; this should have been assigned to...
2617 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
2619 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2621 Fix MinGW-Bug [2117379].
2622 (Reported by Peiyuan Song).
2624 * include/stdio.h (__argv): Replace all references in function
2625 prototype argument lists and inline function local variables, with ...
2626 (__local_argv): ...this, to avoid potential conflict with ...
2627 * include/stdlib (__argv): ...this #defined macro.
2629 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2631 * include/_mingw.h: Increment version to 3.15.
2633 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2635 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
2636 naming standard for Cygwin.
2638 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2640 Reimplement getopt.c to add getopt_long_only() function.
2642 (N.B. this reimplementation removes support for BSD/Mac-OS-X
2643 `optreset' nonsense; user code should set `optind = 0' instead,
2644 to reinitialise option scanning).
2646 * mingwex/getopt.c: Delete all content; reimplement it.
2647 * include/getopt.h: Likewise.
2649 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
2650 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
2652 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2654 Implement conditional replacement for printf() family functions.
2656 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
2657 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
2658 flag for use in user specified __MINGW_FEATURES__ attribute.
2659 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
2660 currently unused: reserved as components of...
2661 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
2662 a __MINGW_FEATURES__ enhancement to setlocale().
2664 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
2665 (__mingw_fprintf, __mingw_vfprintf): Likewise.
2666 (__mingw_sprintf, __mingw_vsprintf): Likewise.
2667 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
2668 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
2669 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
2670 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
2671 usage; link to DLL import stub, importing from MSVCRT.
2672 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2673 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2674 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
2675 locally defined static stub implementation.
2676 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2677 __mingw_fprintf and __mingw_sprintf respectively.
2678 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
2679 static inline implementation for C++ and GNU C, or locally defined
2680 static stub otherwise.
2681 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2682 __mingw_vfprintf and __mingw_vsprintf respectively.
2684 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2686 Avoid access violations, passing NULL to printf( "...%s..." );
2687 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
2689 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
2690 for argument value, if caller passes a NULL pointer.
2691 (__pformat_wcputs): Likewise, substitute L"(null)".
2693 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2695 Add missing dependencies for building libmingwex.a.
2697 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
2698 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
2699 (pformat.h): ...this.
2701 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2703 Add replacements for remaining members of printf() family.
2705 * mingwex/stdio/printf.c: New file.
2706 * mingwex/stdio/fprintf.c: New file.
2707 * mingwex/stdio/sprintf.c: New file.
2708 * mingwex/stdio/vprintf.c: New file.
2709 * mingwex/stdio/vfprintf.c: New file.
2710 * mingwex/stdio/vsprintf.c: New file.
2712 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2713 (STDIO_OBJS): Add their corresponding object files.
2715 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2717 Replace __mingw_snprintf() with new generic family implementation;
2718 likewise, replace __mingw_vsnprintf().
2720 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
2721 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
2722 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2723 (GDTOA_DISTFILES): Remove mingw_snprintf.c
2724 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
2725 (GDTOA_OBJS): Remove mingw_snprintf.o
2726 (PFORMAT_CFLAGS): New macro; define it, as required by...
2727 (pformat.o): ...this new explicit build target.
2728 (snprintf.o, vsnprintf.o): Declare prerequisites.
2730 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
2732 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2734 Lay foundations for new printf() function family implementation.
2736 * ofmt_stub.s: New file; implement forward compatibility stub for...
2737 (_get_output_format): ...this MSVCR80.DLL and later function.
2739 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
2740 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
2741 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
2742 (lib%.a): Include ofmt_stub.o when import library does not already
2743 advertise availability of the _get_output_format() function;
2744 Add alias stubs for MINGW_REPL_FUNCS, such that...
2745 (__msvcrt_printf): ...is an alias for Microsoft's printf().
2746 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
2747 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
2748 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
2749 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
2750 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
2751 (clean): Add msvcr*.def.
2753 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
2754 * configure: Regenerated.
2756 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2758 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
2759 (_imp____mb_cur_max_dll): Likewise.
2761 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
2763 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
2764 * include/wchar.h (swprintf, vswprintf): Likewise.
2766 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2768 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
2769 (_get_output_format, _set_output_format): Add references.
2771 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
2772 (_get_output_format, _set_output_format): Declare prototypes.
2773 (_TWO_DIGIT_EXPONENT): Define.
2774 Some other minor formatting adjustments.
2776 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2778 [mingw-Bugs-1801641]
2779 * include/wchar.h (_wfdopen): Const-ify second arg.
2780 * include/stdio.h (_wfdopen): Likewise.
2781 Thanks to <tdragon at users dot sourceforge net>
2783 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2785 Avoid precision errors in round(), lround() and llround() functions.
2787 * mingwex/math/round_generic.c: New file; it replaces...
2788 * mingwex/math/round.c: ...this; delete it.
2789 * mingwex/math/roundf.c: ...and this; ditto.
2790 * mingwex/math/roundl.c: ...and this; ditto.
2792 * mingwex/math/lround_generic.c: New file; it replaces...
2793 * mingwex/math/lround.c: ...this; delete it.
2794 * mingwex/math/lroundf.c: ...and this; ditto.
2795 * mingwex/math/lroundl.c: ...and this; ditto.
2796 * mingwex/math/llround.c: ...and this; ditto.
2797 * mingwex/math/llroundf.c: ...and this; ditto.
2798 * mingwex/math/llroundl.c: ...and this; ditto.
2800 * mingwex/math/round_internal.h: New file; it provides generic common
2801 code, which is shared by `round_generic.c' and `lround_generic.c'; the
2802 implementation is based on techniques suggested by Danny Smith and
2805 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
2806 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
2807 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
2808 `round_generic.c' and `lround_generic.c'.
2809 (MATH_OBJS): Factor out files listed in...
2810 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
2811 macros; define them; specify dependencies and build rules; add to...
2812 (LIB_OBJS): ...this list.
2814 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
2816 [ mingw-Bugs-1961893 ]
2817 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
2818 mode to 2 for E format.
2820 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
2822 * include/stdlib.h: Fix strtod under C++.
2824 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
2826 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
2827 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
2829 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
2831 * include/sys/types.h (useconds_t): typedef.
2832 * include/unistd.h (usleep): Add prototype.
2833 * mingwex/usleep.c: New file.
2834 * mingwex/makefile.in: Add usleep source and object.
2836 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2838 Make strtod() conform to C99.
2840 * include/stdlib.h (strtod): Declare this mingwex function, and...
2841 (_strtod): rename this MSVCRT counterpart.
2843 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2845 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2847 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2849 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2851 * include/process.h: Include stdint.h for intptr_t definition.
2852 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2853 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2854 _spawnvpe): Return intptr_t.
2855 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2856 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2858 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2860 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2861 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2862 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2863 _wspawnvp, _wspawnvpe): Return intptr_t.
2865 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2867 * include/wchar.h (fwide): Return success code rather than failure in inline
2869 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2870 code rather than failure.
2872 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2874 * include/math.h (float_t, double_t): Define.
2876 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2878 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2879 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2880 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2882 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2884 * include/complex.h: Don't condition contents on C99 or not
2887 2008-02-01 Brian Dessent <brian@dessent.net>
2889 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2890 the different runtime versions.
2892 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2894 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2895 (mbsinit): Likewise.
2897 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2899 * include/_mingw.h: Increment version to 3.14.
2901 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2903 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
2904 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
2905 * mingwex/math/log10f.S: Correct issue with comments.
2906 * mingwex/math/log10l.S: Ditto.
2907 * mingwex/math/log1p.S: Ditto.
2908 * mingwex/math/log1pf.S: Ditto.
2909 * mingwex/math/log1pl.S: Ditto.
2910 * mingwex/math/log2.S: Ditto.
2911 * mingwex/math/log2f.S: Ditto.
2912 * mingwex/math/log2l.S: Ditto.
2913 * mingwex/math/logf.S: Ditto.
2914 * mingwex/math/logl.S: Ditto.
2916 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
2918 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
2920 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
2922 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
2923 from '_fsize_t' to '__int64' to be consistent with the other ...64
2924 structures and the value set there is 8 bytes not 4. Add guard for both
2925 as the are only used by functions available from 6.1 on.
2927 * include/malloc.h (_HEAP_MAXREQ): Define.
2928 (_aligned_offset_recalloc): Define.
2929 (_aligned_recalloc()): Define.
2931 * include/math.h: fixed a typo in a comment.
2932 (atanhf): Fixed declaration.
2934 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
2935 to '__int64' to be consistent with the other ...64 structures and the value
2936 set there is 8 bytes not 4. Added guard as this function is only used by
2937 functions available from 6.1 on.
2939 * include/sys/stat.h: some members of 'stat' were declared with types with
2940 a prefixed underscore, while the ones without the underscore should have
2941 been used. Added guard to '__stat64' as it is only used by functions
2942 available from 6.1 on. Added the wide character versions of the
2943 exec()/spawn() family for completion
2944 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
2947 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
2948 from 'long' to 'time_t'
2949 (__timeb64): moved declaration of structure directly before the declaration
2950 of the function '_ftime64()', so it is guarded as well
2952 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
2953 before the declaration of the functions using it, so it is guarded as well
2955 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
2957 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
2958 case. Add missing break in 's'/LEN_S case.
2960 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2962 Make snprintf() and vsnprintf() conform to C99.
2964 * include/stdio.h: Add note about incompatibility between...
2965 (snprintf, vsnprintf): These two mingwex functions, and...
2966 (_snprintf, _vsnprintf): these MSVCRT counterparts.
2968 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
2969 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
2971 * mingwex/stdio/snprintf.c: Delete.
2972 * mingwex/stdio/vsnprintf.c: Delete.
2974 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
2975 (vsnprintf): Alias to __mingw_vsnprintf.
2977 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2979 * include/_mingw.h: Increment version to 3.13.
2980 * Makefile.in: Reset CYGRELEASE to 1
2982 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2984 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
2985 resulting from incomplete removal of enclosing `for ...; do ...; done'
2986 loop from compound command; (reported by Greg Chicares).
2988 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2990 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2993 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2995 [mingw-Bugs-1734142]
2996 * include/wchar.h (_wsystem) Declare.
2998 (_wgetenv): Declare.
2999 (_wsearchenv): Declare.
3000 (_wmakepath): Declare.
3001 (_wsplitpath): Declare.
3002 (_wfullpath): Declare.
3003 * include/stdlib.h (_wsystem) Declare.
3004 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
3005 _wfullpath): Move into _WSTDLIB_DEFINED guard.
3006 * include/tchar.h (_tsystem): New UNICODE mapping define.
3008 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
3010 * mingwex/gdtoa/mingw_snprintf.c: New file.
3011 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
3012 (GDTOA_OBJS): Add mingw_snprintf.o.
3014 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
3016 * msvcrt.def.in: Update comment.
3017 Exclude _ctype stub if using msvcr71.dll or newer.
3018 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
3019 * include/wctype.h: Likewise.
3021 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3023 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
3024 *include/dirent.h: Likewise.
3026 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3028 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
3029 * include/conio.h: Likewise.
3030 * include/ctype.h: Likewise.
3031 * include/direct.h: Likewise.
3032 * include/dos.h: Likewise.
3033 * include/errno.h: Likewise.
3034 * include/fenv.h: Likewise.
3035 * include/float.h: Likewise.
3036 * include/inttypes.h: Likewise.
3037 * include/io.h: Likewise.
3038 * include/libgen.h: Likewise.
3039 * include/locale.h: Likewise.
3040 * include/malloc.h: Likewise.
3041 * include/mbctype.h: Likewise.
3042 * include/mbstring.h: Likewise.
3043 * include/process.h: Likewise.
3044 * include/search.h: Likewise.
3045 * include/setjmp.h: Likewise.
3046 * include/signal.h: Likewise.
3047 * include/stdio.h: Likewise.
3048 * include/stdlib.h: Likewise.
3049 * include/string.h: Likewise.
3050 * include/time.h: Likewise.
3051 * include/wchar.h: Likewise.
3052 * include/sys/stat.h: Likewise.
3053 * include/sys/time.h: Likewise.
3054 * include/sys/timeb.h: Likewise.
3055 * include/sys/utime.h: Likewise.
3057 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
3059 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
3061 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
3063 Add POSIX binary tree search API.
3065 * mingwex/tfind.c: New file.
3066 * mingwex/tdelete.c: New file.
3067 * mingwex/tsearch.c: New file.
3068 * mingwex/twalk.c: New file.
3069 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
3070 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
3071 * include/search.h (tfind): Declare.
3078 (node_t): Define, on condition of _SEARCH_PRIVATE.
3080 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
3082 * include/_mingw.h (__MINGW_NOTHROW): Define.
3084 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3086 * include/stdio.h (vsnprintf): Remove inline definition.
3089 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3091 * CRTfmode.c: Nit-pick comment fix.
3093 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
3095 * CRTfmode.c: Fix nested comment.
3097 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
3099 * include/string.h (strcasecmp): Fix typo in declaration prototype.
3101 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
3103 * include/io.h (lseek64) : Add prototype.
3105 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
3107 * include/string.h (strcasecmp): Add prototype.
3108 (strncasecmp): Add prototype.
3110 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3112 * Makefile.in (CRT0S): Revert last change.
3113 * CRTfmode.c. Correct comment.
3115 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3117 * Makefile.in (CRT0S): Add back CRTfmode.o.
3119 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3121 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
3122 * include/io.h: Likewise.
3124 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
3126 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
3128 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3130 * include/stdint.h (intptr_t): Fix typo.
3131 Thanks to Charles Wilson for report.
3133 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
3135 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
3136 Condition on _WIN64.
3137 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
3138 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
3139 (PTRDIFF_MIN): Define as INTPTR_MIN.
3140 (PTRDIFF_MAX): Define as INTPTR_MAX.
3141 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
3142 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
3144 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3146 * Makefile.in: Removed mansuffix variable. Changed mansection to support
3147 Cygwin man page location.
3149 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3151 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
3152 support Cygwin man page location.
3154 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3156 * Include/_mingw.h: Increment version to 3.12.
3158 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
3160 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
3162 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3164 * Makefile.in: Tweak srcdist to fix build issue.
3166 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
3168 Add --enable-mingw-manpage-transform configure option.
3170 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
3171 * configure.in, Makefile.in: Use it.
3172 * configure: Regenerated.
3174 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
3176 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
3178 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3180 Add manpages for dirname and basename functions.
3182 * man: New directory.
3183 * man/dirname.man: New file; it sources both manpages.
3184 * Makefile.in: Add provisional rules to distribute them.
3186 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3188 * mingwex/basename.c: Make it work with path names containing
3189 multibyte character strings.
3190 * mingwex/dirname.c: Likewise.
3192 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3194 * include/io.h (__mingw_access): New static inline wrapper to restore
3195 pre-Vista 'access (fname, X_OK)' behaviour.
3196 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
3198 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3200 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
3202 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
3204 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
3206 * include/stdio.h (_unlink, unlink): Add prototypes.
3208 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
3210 * include/excpt.h: Replace "_try1" in comments with "__try1".
3212 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
3214 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3215 (ALL_CXXFLAGS): Likewise.
3216 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3217 (ALL_CXXFLAGS): Likewise.
3218 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3219 (ALL_CXXFLAGS): Likewise.
3221 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
3223 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
3225 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
3227 Expose some more msvcr80.dll functions.
3228 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
3229 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
3230 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
3231 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
3233 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3235 Expose some msvcr80.dll functions.
3236 * include/stdlib.h (_set_abort_behavior): Add prototype.
3237 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
3238 _set_abort_behavior mask argument.
3239 (_invalid_parameter_handler): Add typedef.
3240 (_set_invalid_parameter_handler): Add prototype.
3241 * include/stdio.h (_get_printf_count_output): Add prototype.
3242 (_set_printf_count_output): Add prototype.
3243 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
3244 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
3246 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3248 * include/_mingw.h (CRT_INLINE): Correct typo.
3250 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
3252 * include/io.h (X_OK): Define to F_OK.
3254 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
3256 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
3257 unconditionally. Change comment.
3258 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
3260 * include/io.h (rename): Declare.
3263 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3265 * include/libgen.h: New file; required by...
3266 * mingwex/basename.c, mingwex/dirname.c: New files.
3267 * mingwex/Makefile.in (DISTFILES): Add them...
3268 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
3269 (Dependencies): Typo; s/Dependancies/Dependencies/
3271 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
3273 * Makefile.in (VERSION): Let configure define it.
3275 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
3276 * configure.in: Use it.
3277 Correct quoting of autoconf macro arguments throughout.
3278 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
3279 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
3280 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
3281 (AC_CONFIG_FILES): Add, to generate Makefile.
3283 * configure: Regenerated.
3285 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
3287 * Makefile.in: Add aclocal.m4 to source release.
3288 * mingwex/Makefile.in: Ditto.
3289 * profile/Makefile.in: Ditto.
3291 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3293 * Include/_mingw.h: Increment version to 3.11.
3294 * Makefile.in: Ditto.
3296 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3298 [ mingw-Bugs-1590623 ]
3299 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
3302 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
3304 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
3305 correctly parenthesized.
3307 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3309 * mingwex/mb_wc_common.h (get_codepage): Get it
3312 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3314 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
3316 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
3318 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
3321 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
3323 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
3326 2006-09-11 Christopher Faylor <cgf@timesys.com>
3328 * Makefile.in: Semi-revert 2006-08-30 change.
3330 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3332 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
3333 (__MINGW_IMPORT): Ansify.
3334 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
3335 __MINGW_ATTRIB_DEPRECATED.
3337 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3339 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
3340 Redundant macros; deleted.
3342 * configure.in (LIB_AC_PROG_CC): Replaced by...
3343 (AC_PROG_CC): ...this.
3345 * configure: Regenerated.
3347 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
3349 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
3350 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
3351 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
3353 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
3355 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
3356 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
3357 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
3358 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
3360 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
3361 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
3362 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
3363 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
3364 * mingwex/wcstold.c: Avoid using strtold internals.
3365 * mingwex/wcstof.c: Rewrite.
3366 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
3367 (GDTOA_OBJS): Add to library.
3368 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
3369 (STDLIB_OBJS): Remove.
3370 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
3371 (Q8_OBJS): Add wcstof.o wcstold.o.
3372 * include/stdlib.h (strtof): Remove inline definition.
3374 * include/wchar.h (wcstof): Remove inline definition.
3376 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
3378 * Makefile.in: Add with_cross_host to allow more granular checks.
3379 Set installation directories accordingly. Override CC setting only
3380 if building a Cygwin target.
3381 * aclocal.m4: Regenerate.
3382 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
3383 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
3384 Test AC_ALLOCA only if building on a native system.
3385 * configure: Regenerate.
3387 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3389 * include/ctype.h: Fix typo.
3391 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3393 * include/ctype.h: Expose iswblank if __cplusplus.
3394 * include/wctype.h: Expose iswblank if __cplusplus.
3396 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3398 * include/ctype.h: Remove stray ')';
3400 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3402 * include/ctype.h (_BLANK): Expand comment.
3403 (isblank): Add prototype and inline definition.
3404 (iswblank): Add prototype and inline definition.
3405 * include/wctype.h (iswblank): Add prototype and inline definition.
3406 * mingwex/isblank.c: New file.
3407 * mingwex/iswblank.c: New file.
3408 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
3410 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
3412 * include/math.h (__INFF,__INFL): Remove '#'.
3414 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3416 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
3418 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3420 Support SSE float environment in fenv.h functions.
3421 * cpu_features.c: New file.
3422 * cpu_features.h: New file.
3423 * crt1.c: Include "cpu_features.h".
3424 (__mingw_CRTStartup): Call cpu_features_init().
3425 * Makefile.in (MING_OBJS): Add cpu_features.c.
3426 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
3427 * include/fenv,h ( fenv_t;): Append __mxcsr field.
3428 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
3429 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
3430 (__MXCSR_ROUND_FLAG_SHIFT): New define.
3431 * mingwex/feclearexcept.c: Include "cpu_features.h".
3432 Handle SSE environment.
3433 * mingwex/fegetenv.c: Likewise.
3434 * mingwex/feholdexcept.c: Likewise.
3435 * mingwex/fesetenv.c: Likewise.
3436 * mingwex/fesetexceptflag.c: Likewise.
3437 * mingwex/fesetround.c: Likewise.
3438 * mingwex/fetestexcept.c: Likewise.
3439 * mingwex/feupdateenv.c: Likewise.
3440 * mingwex/fegetround.c: Add comment.
3442 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3444 * Include/_mingw.h: Increment version to 3.10.
3445 * Makefile.in: Ditto.
3447 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3449 * mingwex/math/tgamma.c (SQTPI): Add braces.
3451 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3453 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
3454 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
3456 * mingwex/math/sf_erf.c (erff): Initialize z.
3458 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
3460 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3462 * Include/_mingw.h: Increment version to 3.10.
3463 * Makefile.in: Ditto.
3465 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3467 * include/sys/time.h (struct timezone): Define.
3468 * include/time.h: Correct comment about timezone.
3470 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3472 * configure.in (AC_CONFIG_AUX_DIR): Remove.
3473 * configure: Regenerate.
3475 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
3477 * configure: add srcdir as a possible location for install-sh.
3479 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3481 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
3482 (_topendir): Use it.
3484 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3486 * include/sys/time.h: Add header guard. Add extern "C" bracketing
3488 (gettimeofday): Add prototype.
3489 * mingwex/gettimeofday.c: New file.
3490 * mingwex/makefile.in: Add gettimeofday source and object.
3492 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3494 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
3495 else global library variable.
3496 (HUGEVALF): Likewise.
3497 (HUGEVALL): Likewise.
3498 (INFINITY): Likewise.
3501 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3503 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
3505 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3507 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
3509 2006-05-24 Christopher Faylor <cgf@timesys.com>
3511 * configure.in: Update to newer autoconf.
3512 (thanks to Steve Ellcey)
3513 * mingwex/configure.in: Ditto.
3514 * profile/configure.in: Ditto.
3515 * configure: Regenerate.
3516 * mingwex/configure: Ditto.
3517 * profile/configure: Ditto.
3518 * aclocal.m4: New file.
3519 * mingwex/aclocal.m4: Ditto.
3520 * profile/aclocal.m4: Ditto.
3522 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
3524 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
3525 Use supplied codepage as arg to WideCharToMultiByte.
3527 2006-02-13 Earnie Boyd <earnie@users.sf.net>
3529 * Makefile.in (libmsvcr80.a): Add import lib.
3530 (libmsvcr80d.a): Ditto.
3532 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3534 * Makefile.in: Bump cygwin build number.
3536 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3538 * Include/_mingw.h: Increment version to 3.9.
3539 * Makefile.in: Ditto.
3541 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3543 * include/limits.h (SSIZE_MAX): Define.
3544 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
3546 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
3548 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
3549 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
3551 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3553 * include/stddef.h: Remove.
3554 * include/stdarg.h: Remove.
3556 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3558 * mingwex/complex/csqrt.c (csqrt): The sign of real part
3559 of result is positive when real part of arg == 0;
3560 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
3561 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
3563 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3565 * include/time.h (_time64): Correct prototype.
3567 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
3569 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
3570 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
3571 to non-stop. Use "fnclex" to clear exception flags.
3573 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3575 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
3576 Avoid raising FP exceptions.
3578 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3580 * include/stdlib.h (strtof): Add prototype. Uglify
3581 parameter names in inline definition.
3583 (_Exit): Uglify parameter names in inline definition.
3584 (llabs): Add prototype.
3585 (_set_error_mode): Add prototype and input defines.
3587 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3589 * mingwex/fe*.c: Revert previous changes.
3590 * include/fenv.h: Revert previous changes.
3592 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3594 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
3595 Do not return a value.
3596 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
3597 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
3598 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
3599 * mingwex/fegetenv.c (fegetenv): Likewise.
3600 * mingwex/fesetenv.c (fesetenv): Likewise.
3601 * mingwex/feupdateenv.c (feupdateenv): Likewise.
3602 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
3603 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
3606 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3608 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
3609 getting filelength for SEEK_END.
3611 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3613 * Include/_mingw.h: Increment version to 3.8.
3614 * Makefile.in: Ditto.
3616 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3618 * include/wctype.h (towupper, towlower): Change arg and return value
3620 * include/ctype.h (towupper, towlower): Likewise.
3622 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3624 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
3625 a diagnostic, guarded by #ifdef DEBUG.
3626 (__mingwthr_remove_key_dtor): Likewise.
3628 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
3630 * moldname.def.in (sleep, beep, seterrormode): Remove.
3632 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3634 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
3635 (_MCOUNT_DECL): Use it.
3636 (MCOUNT): Save and restore eax, ecx, edx registers.
3637 * profile/mcount.c (_mcount): ANSI-fy.
3639 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3641 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
3642 guard __MINGW_ATTRIB macro definitions.
3643 * include/math.h (logb[fl]): Don't define inlines for
3644 GCC-4.0+ && __FAST_MATH__.
3645 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
3646 line-continuation backslashes.
3648 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
3650 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
3651 in GNUC version guard.
3653 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
3655 * crt1.c (_gnu_exception_handler): Handle illegal instruction
3656 OS exception as a signal if user has defined a SIGILL handler.
3658 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
3660 * mingwex/math/nexttoward.c: New file.
3661 * mingwex/math/nexttowardf.c: New file.
3662 * mingwex/math/nextafterl.c: Add nexttowardl alias.
3663 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
3665 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
3666 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
3669 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
3671 * mingwex/math/nextafterf.c (nextafterf): Correct
3673 * mingwex/math/nextafterl.c: New file.
3674 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
3675 (MATH_OBJS): Add nextafterl.o.
3676 * include/math.h (nextafterl): Uncomment prototype.
3678 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3680 * mingwex/math/erfl.c: New file.
3681 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
3682 (MATH_OBJS): Add erfl.o.
3683 * include/math.h (erfl, erfcl): Uncomment prototypes.
3685 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
3687 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
3688 #if (WCHAR_MAX <= WCHAR_MIN) is false.
3689 * include/stdint.h (WCHAR_MAX): Likewise.
3690 (WINT_MAX): Likewise.
3692 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
3694 * mingwex/math/signbit.c (__signbit): Make return value
3695 consistent with GCC's __builtin_signbit.
3696 * mingwex/math/signbitf.c (__signbitf): Likewise.
3697 * mingwex/math/signbitf.c (__signbitl): Likewise.
3698 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
3701 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
3703 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
3705 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
3706 Remove unused MBTOWC_FLAGS define.
3708 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
3710 * mingwex/mbrtowc.c: New file.
3711 * mingwex/wcrtomb.c: New file.
3712 * mingwex/btowc.c: New file.
3713 * mingwex/wctob.c: New file.
3714 * mingwex/mb_wc_common.h: New file.
3715 * mingwex/Makefile.in (DISTFILES): Add new files.
3716 (Q8_OBJS): Add new objects.
3717 * include/wchar.h: Adjust comment about mbrtowc() and related
3718 funcions. Add __restrict__ to pointer params in prototypes.
3719 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
3720 arg names from protototypes.
3722 2005-04-23 Wu Yongwei <adah@sh163.net>
3724 * mingwex/dirent.c: Formatting changes.
3725 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
3728 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
3730 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
3732 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
3734 * include/stdio.h (__mingw_fwrite): Change return value to
3736 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
3738 2005-03-15 Hans Leidekker <hans@it.vu.nl>
3740 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
3742 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3744 * include/wctype.h (wctrans): Remove _CRTIMP.
3745 (towctrans): Likewise.
3748 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3750 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
3752 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3754 * mingwex/wctype.c: New file.
3755 * mingwex/wctrans.c: New file.
3756 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
3757 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
3759 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3761 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
3763 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3765 * include/assert.h: Remove header guard. #undef assert macro.
3766 (_assert): Use __MINGW_ATTRIB_NORETURN define.
3768 2005-02-11 Gregory W. Chicares <chicares@cox.net>
3770 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
3771 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
3773 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
3774 * mingwex/math/expm1.c: New file.
3775 * mingwex/math/expm1f.c: New file.
3776 * mingwex/math/expm1l.c: New file.
3778 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3780 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
3781 * include/wchar.h (struct stat): Likewise.
3782 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
3784 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
3786 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3788 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
3789 string is not valid.
3791 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
3793 * include/malloc.h: Add missing return code defines for
3796 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
3798 * include/sys/stat.h (struct __stat64): Change st_size type to
3800 * include/wchar.h (struct __stat64): Change st_size type to __int64.
3802 2005-01-13 Earnie Boyd <earnie@users.sf.net>
3804 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3806 * include/errno.h (ELOOP): Ditto.
3807 * include/_mingw.h: Increment version to 3.7.
3808 * Makefile.in: Ditto.
3810 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3812 * include/tchar.h (_tfreopen): Add UNICODE mappings.
3814 2005-01-11 Earnie Boyd <earnie@users.sf.net>
3816 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3817 lstat): Conditionalize defines for __STRICT_ANSI__.
3819 2005-01-10 Earnie Boyd <earnie@users.sf.net>
3821 * include/errno.h (ELOOP): Add definition.
3823 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
3825 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
3826 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
3827 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
3828 ctanl.c ctanhl.c): New files.
3829 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3830 (COMPLEX_OBJS): Adjust.
3831 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
3832 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
3833 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
3836 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3838 * include/_mingw.h (__int16): Define as short.
3839 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3841 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3843 * include/stdio.h (P_tmpdir): Add define.
3845 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3847 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3849 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3851 * include/_mingw.h: Increment version to 3.6
3852 * Makefile.in: Ditto
3854 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3856 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3857 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3858 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3859 ctanf.c ctanhf.c): New files.
3860 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3861 (COMPLEX_OBJS): Adjust.
3862 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3863 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3864 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3867 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3869 * include/wchar.h (wcsdup): Correct prototype.
3870 * include/string.h (wcsdup): Correct prototype.
3872 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3874 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3876 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3878 * mingwex/math/fastmath.h: New file.
3879 * mingwex/math/asinh.c: New file.
3880 * mingwex/math/asinhf.c: New file.
3881 * mingwex/math/asinhl.c: New file.
3882 * mingwex/math/acosh.c: New file.
3883 * mingwex/math/acoshf.c: New file.
3884 * mingwex/math/acoshl.c: New file.
3885 * mingwex/math/atanh.c: New file.
3886 * mingwex/math/atanhf.c: New file.
3887 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3888 atanh, atanhf, atanhl): Add prototypes.
3889 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3890 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3891 Specify dependency on fastmath.h for new objects.
3893 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3895 * include/sys/stat.h (_S_IFLNK): Add definition.
3902 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3904 * include/sys/stat.h (_S_ISLNK): Add definition.
3907 2004-09-05 Earnie Boyd <earnie@users.sf.net>
3909 * include/_mingw.h: Increment minor version for 3.5 release.
3910 * Makefile.in: Ditto.
3911 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
3913 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3915 * include/malloc.h (__mingw_aligned_offset_malloc,
3916 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
3917 __mingw_aligned_realloc, __mingw_aligned_free): Add
3919 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
3920 tst-aligned-malloc.c.
3921 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
3923 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
3925 * mingwex/mingw-aligned-malloc.c: New file.
3926 * mingwex/tst-aligned-malloc.c: New file.
3928 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3930 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
3931 noreturn attribute. Align stack to 16 bytes before passing args
3933 (mainCRTStartup): Change return to void.
3934 (WinMainCRTStartup): Likewise.
3936 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3938 * profile/COPYING: New file.
3939 * profile/CYGWIN_LICENSE: New file.
3940 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
3942 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3944 * mingwex/fopen64.c: Move.
3945 * mingwex/fseeko64.c: Move.
3946 * mingwex/ftello64.c: Move.
3947 * mingwex/lseek64.c: Move.
3948 * mingwex/stdio/fopen64.c: To here.
3949 * mingwex/stdio/fseeko64.c: To here.
3950 * mingwex/stdio/ftello64.c: To here.
3951 * mingwex/stdio/lseek64.c: To here.
3953 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3955 * profile/gmon.c [__MINGW32__]: Include string.h for
3958 2004-08-08 Christopher Faylor <cgf@timesys.com>
3960 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
3962 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3964 * include/complex.h: Remove __attribute__ ((const)) from
3965 transcendantal and trig functions. Replace __attribute__ ((const))
3966 with __MINGW_ATTRIB_CONST on other declarations.
3968 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3970 * include/wchar.h: Reorganize, avoid including other headers.
3972 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3974 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
3975 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
3978 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3980 * include/dirent.h (struct _wdirent): Remove obsolete comment.
3982 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3984 * include/string.h: Revert 2004-07-26 additions of
3987 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3989 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3990 (__convert_inf_to_maxnum): New.static inline.
3991 (reducl): Use it to protect against Inf - Inf.
3992 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3994 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3996 * mingwex/math/expl.c (expl): Move body of code to new static
3997 function __expl, removing tests for +/-Inf. Extern function
3998 expl calls __expl after testing for max, min log thresholds.
4000 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
4002 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
4003 * mingwex/stdio/vfscanf.c: Likewise.
4004 * mingwex/stdio/vswscanf.c: Likewise.
4005 * mingwex/stdio/vfwscanf.c: Likewise.
4007 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
4009 * include/_mingw.h: Use only two underscores to uglify
4010 __MINGW_ATTRIB_* macros.
4011 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
4012 * include/setjmp.h: Likewise.
4014 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
4016 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
4018 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
4020 * include/string.h: Group wide string functions together,
4021 and protect with _WSTRING_DEFINED.
4023 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
4025 * include/_mingw.h (__MINGW_ATTR_*): Replace with
4027 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
4028 __MINGW_ATTRIB_NORETURN, throughout.
4029 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
4031 (abs): Declare with __MINGW_ATTRIB_CONST.
4040 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
4042 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
4044 * include/_mingw.h: Undefine __attribute__.
4045 (__MINGW_ATTR_NORETURN): New define.
4046 (__MINGW_ATTR_CONST): New define.
4047 (__MINGW_ATTR_MALLOC): New define.
4048 (__MINGW_ATTR_PURE): New define.
4049 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
4052 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
4054 * include/time.h (__time64_t): Add missing ';'.
4056 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
4058 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
4059 (struct tm): Protect with _TM_DEFINED.
4061 2004-07-17 Christopher Faylor <cgf@timesys.com>
4063 * Makefile.in (CC): Strip inappropriate include file settings from any
4066 2004-07-15 "dgun" <dgun@umpire.com>
4068 * include/complex.h (conj): Correct typo in prototype.
4070 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
4072 * include/math.h: Add pragma GCC system_header.
4074 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
4076 * mingwex/complex/carg.c: New file.
4077 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
4079 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
4081 * Makefile.in (INCLUDES): Temporarily revert previous change.
4082 * mingwex/Makefile,in (INCLUDES): Ditto.
4083 * profile/Makefile,in (INCLUDES): Ditto.
4084 * mingwex/Makefile,in: Drop carg.o dependency.
4086 2004-07-14 Christopher Faylor <cgf@timesys.com>
4088 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
4090 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
4092 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
4094 * mingwex/Makefile,in (INCLUDES): Ditto.
4095 * profile/Makefile,in (INCLUDES): Ditto.
4097 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
4099 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
4101 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
4103 * mingwex/Makefile.in: Ditto.
4104 * profile/Makefile.in: Ditto.
4105 * include/limits.h: Change to new file header preamble.
4106 * include/_mingw.h: Increment minor version for 3.4 release.
4107 * Makefile.in: Ditto.
4109 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
4111 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
4113 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
4115 * include/unistd.h (ftruncate): Add inline definition.
4116 * mingwex/ftruncate.c: New file.
4117 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
4119 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
4121 * include/time.h: Do not include sys/types.h.
4123 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
4125 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
4126 (MATH_OBJS): Remove pow,o.
4127 * include/math.h (pow): Declare with _CRTIMP.
4128 Add comment on how to avoid excess precision problems.
4130 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
4132 * include/stdio.h (__mingw_fseeko64): Add prototype.
4133 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
4134 (__mingw_fwrite): Handle huge files.
4136 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
4137 Danny Smith <dannysmith@users.sourceforge.net>
4139 * include/stdio.h (fopen64): Add inline function.
4140 (fseeko64): Add prototype.
4141 (ftello64): Add inline function.
4142 * include/io.h (lseek64): Add inline function.
4143 * include/sys/types (off64_t): Add typedef.
4144 (fpos64_t): Add typedef.
4145 * mingwex/fopen64.c: New file.
4146 * mingwex/fseeko64.c: New file.
4147 * mingwex/ftello64.c: New file.
4148 * mingwex/lseek64.c: New file.
4149 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
4150 fseeko.64.c, ftello64.c, lseek64.c.
4151 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
4153 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
4155 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
4157 2004-04-22 Earnie Boyd <earnie@users.sf.net>
4159 * DISCLAIMER: Add words about "free to use".
4160 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
4161 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
4162 (inst_docdir): New variable.
4164 (FLAGS_TO_PASS): Include inst_docdir.
4165 (install-dirs): Add inst_docdir.
4166 (install): Add loop for INSTDOCS.
4167 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
4168 section to CONTRIBUTORS file. Remove RCS tags.
4170 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
4172 * mingwex/math/lround.c: Rewrite.
4173 * mingwex/math/lroundf.c: Rewrite.
4174 * mingwex/math/lroundl.c: Rewrite.
4175 * mingwex/math/llround.c: Rewrite.
4176 * mingwex/math/llroundf.c: Rewrite.
4177 * mingwex/math/llroundl.c: Rewrite.
4179 2004-04-20 Earnie Boyd <earnie@users.sf.net>
4181 * CONTRIBUTORS: New file.
4182 * DISCLAIMER: Ditto.
4183 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
4184 section to CONTRIBUTORS file. Remove RCS tags.
4185 * CRTFmode.c: Ditto.
4189 * crtdll.dev: Ditto.
4199 * msvcrt.def.in: Ditto.
4200 * strcasecmp.c: Ditto.
4203 * include/assert.h: Ditto.
4204 * include/conio.h: Ditto.
4205 * include/ctype.h: Ditto.
4206 * include/direct.h: Ditto.
4207 * include/dirent.h: Ditto.
4208 * include/dos.h: Ditto.
4209 * include/errno.h: Ditto.
4210 * include/excpt.h: Ditto.
4211 * include/fcntl.h: Ditto.
4212 * include/float.h: Ditto.
4213 * include/io.h: Ditto.
4214 * include/locale.h: Ditto.
4215 * include/malloc.h: Ditto.
4216 * include/math.h: Ditto.
4217 * include/process.h: Ditto.
4218 * include/setjmp.h: Ditto.
4219 * include/share.h: Ditto.
4220 * include/signal.h: Ditto.
4221 * include/stdio.h: Ditto.
4222 * include/stdlib.h: Ditto.
4223 * include/string.h: Ditto.
4224 * include/tchar.h: Ditto.
4225 * include/time.h: Ditto.
4226 * include/wchar.h: Ditto.
4227 * include/sys/locking.h: Ditto.
4228 * include/sys/param.h: Ditto.
4229 * include/sys/stat.h: Ditto.
4230 * include/sys/timeb.h: Ditto.
4231 * include/sys/types.h: Ditto.
4232 * include/sys/utime.h: Ditto.
4233 * mingwex/dirent.c: Ditto.
4235 2004-04-19 Earnie Boyd <earnie@users.sf.net>
4237 * include/_mingw.h: Revert to primary release 3 and increment minor
4239 * Makefile.in (VERSION): Ditto.
4241 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4243 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
4244 _fmode if not __MSVCRT__.
4246 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
4248 * include/io.h: (_findfirst): Correct prototype.
4250 2004-03-30 Hans Leidekker <hans@it.vu.nl>
4252 * include/io.h: (_findnext, _findclose): Correct prototype.
4254 2004-03-28 Hans Leidekker <hans@it.vu.nl>
4256 * include/math.h (FP_*): Add defines.
4258 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4260 * mingwex/math/round.c: Rewrite.
4261 * mingwex/math/roundf.c: Rewrite.
4262 * mingwex/math/roundl.c: Rewrite.
4264 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4266 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
4267 * include/time.h (__time64_t): Add typedef.
4268 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4269 (_ctime64): Likewise.
4270 (_wctime64): Likewise.
4271 (_gmtime64): Likewise.
4272 (_localtime64): Likewise.
4273 (wcsftime): Move into _WTIME_DEFINED block.
4274 Regroup non-ANSI prototypes.
4275 * include/io.h: Include <stdint.h>.
4276 (__finddata64_t): Add struct definition.
4277 (__wfinddata64_t): Likewise.
4278 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4279 (_findnext64): Likewise.
4280 (_wfindfirst64): Likewise.
4281 (_wfindnext64): Likewise.
4282 * include/sys/timeb.h (__timeb64): Add struct definition.
4283 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4284 * include/sys/utime.h (__utimbuf64): Add struct definition.
4285 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4286 (_futime64): Likewise.
4287 (_wutime64): Likewise.
4288 * include/sys/stat.h (__stat64): Add struct definition.
4289 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4290 (_stat64): Likewise.
4291 (_wstat64): Likewise.
4292 * include/sys/types.h (__time64_t): Add typedef.
4293 * include/wchar.h (__wfinddata64_t): Add structure definition.
4294 (__stat64): Likewise.
4295 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4296 (_wfindfirst64): Likewise.
4297 (_wfindnext64): Likewise.
4298 (_wutime64): Likewise.
4299 (_wstat64): Likewise.
4300 * include/malloc.h (_aligned_free): Add prototype for
4301 __MSVCRT_VERSION__ >= 0x0700.
4302 (_aligned_malloc): Likewise.
4303 (_aligned_offset_malloc): Likewise.
4304 (_aligned_offset_realloc): Likewise.
4305 (_aligned_realloc): Likewise.
4306 * include/string.h (_wcserror): Add prototype for
4307 __MSVCRT_VERSION__ >= 0x0700.
4308 (__wcserror): Likewise.
4309 * include/math.h (_set_SSE2_enable): Add prototype for
4310 __MSVCRT_VERSION__ >= 0x0701.
4312 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4314 * include/stdio.h (_fsopen): Add prototype.
4315 * include/tchar.h (_tfsopen): Add defines.
4316 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
4318 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
4320 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
4321 msvcr70.dll, and msvcr71.dll.
4322 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
4323 using basename of output def file.
4325 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
4327 * include/malloc.h: Remove __STRICT_ANSI__ guard.
4329 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
4331 * include/process.h: Remove the #endif associated with removal of
4332 __STRICT_ANSI__ guard from non-ANSI header.
4334 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4336 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
4337 * include/direct.h: Ditto.
4338 * include/dirent.h: Ditto.
4339 * include/dos.h: Ditto.
4340 * include/excpt.h: Ditto.
4342 * include/io.h: Ditto.
4343 * inlude/mem.h: Ditto.
4344 * include/memory.h: Ditto.
4345 * include/process.h: Ditto.
4346 * inlude/search.h: Ditto.
4347 * include/share.h: Ditto.
4348 * include/unistd.h: Ditto.
4349 * include/sys/fcntl.h: Ditto.
4350 * include/file.h: Ditto.
4351 * include/sys/locking.h: Ditto.
4352 * include/sys/param.h: Ditto.
4353 * include/sys/stat,h
4354 * include/sys/time.h: Ditto.
4355 * include/sys/timeb.h: Ditto.
4356 * include/sys/types.h: Ditto.
4357 * include/sys/unistd.h: Ditto.
4358 * include/sys/utime.h: Ditto.
4360 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
4362 * include/_mingw.h (__UNUSED_PARAM): Define macro.
4363 * include/wchar.h (fwide): Use it.
4366 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4368 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
4369 NetBSD getopt_long.c.
4371 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4373 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
4374 codes and handling of special chars.
4376 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
4378 * include/stdio.h (feof): Add inlined definition.
4381 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4383 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
4384 directly, rather than via scabnl.
4386 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4388 * mingwex/math/powl.c (powl): Return infinity if
4389 extended precision multiplication of x by log2(y)
4392 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
4394 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
4395 (__enan_NI16): Fix another one.
4396 (__enan_NBITS): Tidy.
4398 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4400 * include/stdint.h [__STDC_CONSTANT_MACROS]: Fix for 8 and 16 bit
4401 types. (Thanks to John Maddock for report.)
4403 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
4405 * include/tchar.h (_puttchar): Define.
4407 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
4409 * include/stdio.h:(_fileno): Define macro version after both
4410 fileno and _fileno functions declared.
4412 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
4413 * moldnames.def.in (rmtmp) Add stub.
4415 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
4417 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
4419 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4421 * include/math.h: Guard ISO C99 additions with __cplusplus
4424 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4426 * include/_mingw.h: Define __attribute__((x)) to nothing
4429 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4431 * include/complex.h: New file.
4432 * mingwex/complex: New directory.
4433 * mingwex/complex/cabs.c: New file.
4434 * mingwex/complex/cacos.c: New file.
4435 * mingwex/complex/cacosh.c: New file.
4436 * mingwex/complex/casin.c: New file.
4437 * mingwex/complex/casinh.c: New file.
4438 * mingwex/complex/catan.c: New file.
4439 * mingwex/complex/catanh.c: New file.
4440 * mingwex/complex/ccos.c: New file.
4441 * mingwex/complex/ccosh.c: New file.
4442 * mingwex/complex/cexp.c: New file.
4443 * mingwex/complex/cimag.c: New file.
4444 * mingwex/complex/clog.c: New file.
4445 * mingwex/complex/cpow.c: New file.
4446 * mingwex/complex/cproj.c: New file.
4447 * mingwex/complex/creal.c: New file.
4448 * mingwex/complex/csin.c: New file.
4449 * mingwex/complex/csinh.c: New file.
4450 * mingwex/complex/csqrt.c: New file.
4451 * mingwex/complex/ctan.c: New file.
4452 * mingwex/complex/ctanh.c: New file.
4453 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
4456 (COMPLEX_OBJS): New list of objects.
4457 (LIB_OBJS): Include it in the library.
4459 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4461 * include/math.h (cabs): Remove non-ISO prototype.
4463 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4465 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
4466 Use GCC __builtin's if available.
4467 (INFINITY, INFINITYF, INFINITYL): Likewise.
4469 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4471 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
4472 beyond approximation limit.
4473 * mingwex/math/sf_erf.c (erff): Likewise.
4475 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
4477 * include/stdio.h (getc): Cast result to unsigned char before
4480 (getchar): Likewise.
4481 (putchar): Likewise.
4482 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
4484 2003-10-10 Earnie Boyd <earnie@users.sf.net>
4486 * include/_mingw.h: Increment version to 3.2.
4487 * Makefile.in: Ditto.
4489 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4491 * include/sys/types.h: Revert last change.
4493 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4495 * include/sys/types.h (ssize_t): Correct the definition.
4497 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4499 * include/stdio.h (_filbuf): Add prototype.
4500 (_flsbuf): Add prototype.
4501 (getc): Add inline version.
4503 (getchar): Likewise.
4504 (putchar): Likewise.
4506 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4508 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
4511 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
4513 * include/stdlib.h: Guard non-ISO functions with
4514 !__STRICT_ANSI__, throughout.
4516 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4518 * include/io.h (_fileno): Remove prototype.
4520 (FILENAME_MAX): Define, if needed.
4521 Don't include <stdio.h>.
4522 * include/stdio.h (FILENAME_MAX): Protect against
4524 (_fileno): Define macro implementation.
4527 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4529 * include/inttypes.h: Include _mingw.h.
4531 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4533 * include/_mingw.h (__CRT_INLINE): Define.
4534 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
4536 * include/inttypes.h: Likewise.
4537 * include/math.h: Likewise.
4538 * include/stdio.h: Likewise.
4539 * include/stdlib.h: Likewise.
4540 * include/string.h: Likewise.
4541 * include/wchar.h: Likewise.
4542 * include/wctype.h: Likewise.
4544 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
4546 * mingwex/dirent.c (_topendir): Allocate enough memory for
4547 DIR struct in UNICODE case too.
4549 2003-09-15 Earnie Boyd <earnie@users.sf.net>
4551 * include/_mingw.h: Increment version to 3.2.
4552 * Makefile.in: Ditto.
4554 2003-07-03 Earnie Boyd <earnie@users.sf.net>
4556 * config.guess, config.sub: Update with versions from ftp.gnu.org.
4558 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4560 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
4561 * mingwex/math/truncf.c (truncf): Likewise.
4562 * mingwex/math/truncl.c (truncl): Likewise.
4563 * mingwex/math/modff.c (modff): Likewise.
4564 * mingwex/math/modfl.c (modfl): Likewise.
4566 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4568 * include/search.h: New file.
4569 * include/stdlib.h: Add comment about qsort, bsearch in
4571 * test_headers.c: Include search.h.
4572 * moldname.def.in (lfind, lsearch): Add.
4574 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4576 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
4577 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
4578 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
4580 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4582 * include/_mingw.h (small, hyper): Change to __small and __hyper to
4583 avoid user space name conflicts.
4585 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4587 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
4588 Note: Also added to w32api/include/basetyps.h.
4589 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
4590 Rename to Small (case difference).
4592 2003-06-18 Earnie Boyd <earnie@users.sf.net>
4594 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
4595 * mingwex/dirent.c: Modifications througout to fill d_name array.
4596 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
4597 libmsvcr71, including debug versions.
4598 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
4600 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
4602 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
4603 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
4605 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
4607 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
4609 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
4611 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
4613 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
4614 but still protect inline definition with __STRICT_ANSI__.
4616 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
4618 * string_old.c: Remove, splitting into...
4619 * strcasecmp.c: New file.
4620 * strncasecmp.c: New file.
4621 * wscmpi.c : New file.
4622 * ctype_old.c: Remove, splitting into...
4623 * isascii.c: New file.
4624 * iscsym.c: New file.
4625 * iscsymf.c: New file.
4626 * toascii.c: New file.
4627 * Makefile.in (MOLD_OBJS): Adjust.
4628 (SRCDIST_FILES): Adjust.
4630 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
4632 * include/math.h (fabs) : Remove inline definition.
4636 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4638 * include/_mingw.h: Change version to 3.0
4639 * Makefile.in: Ditto.
4641 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4643 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
4644 * mingwex/configure.in (W32API_INCLUDE): Ditto.
4645 * profile/configure.in (W32API_INCLUDE): Ditto.
4647 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4649 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
4650 of multiply defined symbols if the symbols is defined locally. E.G.:
4651 A local definition of malloc causes this problem.
4652 * configure: Regenerate.
4653 * profile/Makefile.in (W32API_INCLUDE): New variable.
4654 (ALL_CFLAGS): Use W32API_INCLUDE value.
4655 (ALL_CXXFLAGS): Ditto.
4656 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
4657 Thanks to Jeff Bonggren <jbon@users.sf.net>.
4658 * profile/configure.in (W32API_INCLUDE): Set default value.
4659 * profile/configure: Regenerate.
4660 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
4661 (ALL_CFLAGS): Use W32API-INCLUDE value.
4662 (ALL_CXXFLAGS): Ditto.
4663 * mingwex/configure.in (W32API_INCLUDE): Set default value.
4664 * mingwex/configure: Regenerate.
4666 2003-05-05 Earnie Boyd <earnie@users.sf.net>
4668 * Makefile.in (W32API_INCLUDE): New variable.
4669 (ALL_CFLAGS): Use W32API_INCLUDE value.
4670 (ALL_CXXFLAGS): Ditto.
4671 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
4672 (W32API_INCLUDE): Set default value.
4673 * configure: Regenerate.
4675 2003-04-11 Earnie Boyd <earnie@users.sf.net>
4677 * configure.in (LIBM_A): Define for cygwin target.
4678 * configure (LIBM_A): Ditto.
4680 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
4682 * include/time.h (strftime): Remove duplicate declaration.
4684 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4686 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
4688 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4690 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
4691 * mingwex/strtoimax.c (strtoimax): Likewise.
4692 * mingwex/wcstoimax.c (wcstoimax): Likewise.
4693 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
4694 * mingwex/fesentenv.c: Include float.h.
4695 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
4697 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
4699 * mingwex/math/tgammal.c: Likewise.
4701 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4703 * include/utime.h: New file, forwarding to sys/utime.h.
4705 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4707 * include/sys/param.h (MAXPATHLEN): Define.
4709 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4711 * include/tchar.h: Ansi-fy a comment.
4713 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4715 * profile/profile.h (mcount): Use __builtin_return_address
4716 rather than inline __asm statements.
4717 * profile/Makefile.in: Remove special rule for mcount.o
4718 Specify dependencies for mcount.o profil.o gmon.o.
4720 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4722 * include/stdlib.h (qsort): Remove const from first parm.
4723 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
4725 2003-03-03 Christopher Faylor <cgf@redhat.com>
4727 * mingwex/getopt.c: Refresh from NetBSD sources.
4729 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
4731 * mingwex/getopt.c: New file, copied from cygwin srcs.
4732 * include/getopt.h: New file, copied from cygwin srcs.
4733 * include/unistd.h: Include getopt.h.
4734 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
4735 (POSIX_OBJS): Add getopt.o.
4737 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
4739 * include/stdio.h (vscanf): Add prototype.
4745 * include/wchar.h (vwscanf): Add prototype.
4748 * mingwex/snprintf.c: Move to mingwex/stdio.
4749 * mingwex/vsnprintf.c: Ditto.
4750 * mingwex/snwprintf.c: Ditto.
4751 * mingwex/vsnwprintf.c: Ditto.
4752 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
4753 (STDIO_DISTFILES): Add.
4754 (DISTFILES): Adjust.
4755 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
4759 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
4761 * mingwex/stdio: New directory
4762 * mingwex/stdio/vfscanf.c: New file.
4763 * mingwex/stdio/vfwscanf.c: New file.
4764 * mingwex/stdio/vscanf.c: New file.
4765 * mingwex/stdio/vsscanf.c: New file.
4766 * mingwex/stdio/vswscanf.c: New file.
4767 * mingwex/stdio/vwscanf.c: New file.
4769 2003-02-25 Earnie Boyd <earnie@users.sf.net>
4771 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
4772 (libmsvcrt40.a): Ditto.
4774 2003-02-21 Earnie Boyd <earnie@users.sf.net>
4776 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
4778 * Makefile.in (libmsvcrtd.a): Add target library.
4779 (libmoldnamed.a): Ditto.
4780 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
4782 ($(srcdir)): Remove explicit reference for depencies of object targets.
4783 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
4784 msvcrt20.def, msvcrt40.def: Remove.
4785 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
4787 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
4789 * Makefile.in: Make sure libmingwex.a from current build tree is used.
4791 2003-02-14 Christopher Faylor <cgf@redhat.com>
4793 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
4794 ensure -mno-cygwin where appropriate. Filter out -O2.
4796 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
4798 * profile/Makefile.in (mcount.o): Use -O1 optimization
4801 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4803 * include/math.h: Remove _CRTIMP from pow() prototype,
4804 unless __NO_ISOCEXT.
4806 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4808 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
4810 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4812 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
4813 __declspec(dllimport) supported.
4814 (__cdecl): Define if not already defined.
4815 (__stdcall): Likewise.
4816 * include/dirent.h: Qualify fuctions with __cdecl.
4817 * include/fenv.h: Likewise.
4818 * include/inttypes.h: Likewise.
4819 * include/assert.h: Qualify fuctions with __cdecl. Qualify
4820 CRT dll imports with _CRTIMP.
4821 * include/conio.h: Likewise.
4822 * include/ctype.h: Likewise.
4823 * include/direct.h: Likewise.
4824 * include/dos.h: Likewise.
4825 * include/errno.h: Likewise.
4826 * include/float.h: Likewise.
4827 * include/io.h: Likewise.
4828 * include/locale.h: Likewise.
4829 * include/malloc.h: Likewise.
4830 * include/math.h: Likewise.
4831 * include/mbctype.h: Likewise.
4832 * include/mbstring.h: Likewise.
4833 * include/process.h: Likewise.
4834 * include/setjmp.h: Likewise.
4835 * include/signal.h: Likewise.
4836 * include/stdio.h: Likewise.
4837 * include/stdlib.h: Likewise.
4838 * include/string.h: Likewise.
4839 * include/time.h: Likewise.
4840 * include/wchar.h: Likewise.
4841 * include/wctype.h: Likewise.
4842 * include/sys/stat.h: Likewise.
4843 * include/sys/timeb.h: Likewise.
4844 * include/sys/utime.h: Likewise.
4846 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4847 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4849 * include/stdio.h (__VALIST): Guard against prior definition.
4851 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4853 * include/_mingw.h: Change version to 3.0
4854 * Makefile.in: Ditto.
4856 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4858 * include/stdlib.h: Make words after #endif a comment.
4860 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4862 * include/locale.h: Include stddef.h for definition of NULL.
4864 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4866 * include/math.h (tgamma): Correct typo in comment.
4868 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4870 * mingwex/mingw-fseek.c (INLINE): Remove define.
4871 (__mingw_is_win9x): Remove static inline function.
4872 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4874 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4876 * mingwex/math/llround.c: Correct function name and
4877 change return value to long long.
4879 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4881 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4882 (iswascii): Likewise. Correct mask.
4883 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4886 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4888 * include/stdlib.h (_osver, _winver, _winmajor,
4889 _winminor): Declare as direct imports from dll if
4890 __DECLSPEC_SUPPORTED.
4892 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4894 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4895 * pseudo-reloc-list.c: New file.
4896 * crt1.c (_pei386_runtime_relocator): Declare.
4897 (__mingw_CRTStartup): Call it.
4898 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4899 (DllMainCRTStartup): Call it.
4900 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
4903 2003-01-01 Egor Duda <deo@logos-m.ru>
4905 * pseudo-reloc.c: New file.
4907 2002-12-20 Earnie Boyd <earnie@users.sf.net>
4909 * include/_mingw.h: Increment version to 2.4.
4912 2002-12-12 Earnie Boyd <earnie@users.sf.net>
4914 * include/malloc.h (_alloca): Add definition.
4917 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
4919 * mingwex/math/s_erf.c: New file.
4920 * mingwex/math/sf_erf.c: New file.
4921 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4922 (MATH_OBJS): Add new objects.
4923 * include/math.h (erf[f]): Add prototypes.
4924 (erfc[f]): Add prototypes.
4926 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
4928 * include/math.h: Add traditional/XOPEN math constants.
4930 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
4932 * mingwex/math/lgamma.c: New file.
4933 * mingwex/math/lgammaf.c: New file.
4934 * mingwex/math/lgammal.c: New file.
4935 * mingwex/math/tgamma.c: New file.
4936 * mingwex/math/tgammaf.c: New file.
4937 * mingwex/math/tgammal.c: New file.
4938 * mingwex/math/cephes_mconf (polevlf): Add float version.
4940 Define _CEPHES_USE_ERRNO.
4941 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4942 (MATH_OBJS): Add new objects.
4943 * include/math.h (lgamma[fl]): Add prototypes.
4944 (tgamma[fl]): Add prototypes.
4946 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
4948 * mingwex/strtold.c: New file.
4949 * mingwex/wcstold.c: New file.
4950 * mingwex/ldtoa.c: New file.
4951 * mingwex/math/cephes_emath.h: New file.
4952 * mingwex/math/cephes_emath.c: New file.
4953 * mingwex/Makefile.in (DISTFILES): Add new files.
4954 (MATH_DISTFILES): Ditto.
4955 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
4956 (MATH_OBJS): Add cephes_emath.o.
4957 (LIB_OBJS): Add $(STDLIB_OBJS).
4958 * include/stdlib.h (strtold, wcstold): Add prototypes.
4959 * include/wchar.h (wcstold): Add prototype.
4961 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
4963 * include/math.h (sqrt): Remove inline definition.
4964 (sqrtf): Replace inline definition with prototype.
4966 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
4967 argument less than zero.
4968 * mingwex/math/sqrtf.c (sqrtl): Likewise.
4970 2002-10-30 Guido Serassio <serassio@libero.it>
4972 * include/stdio.h (_getmaxstdio): Add prototype.
4973 (_setmaxstdio): Likewise.
4975 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
4977 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
4979 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4981 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
4983 Define WIN32_MEAN_AND_LEAN before including windows.h
4984 * include/stdlib.h (_fmode): Protect declaration as dllimported
4985 variable with __IN_MINGW_RUNTIME.
4987 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4989 * crt1.c: Include stdlib.h.
4991 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4993 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4994 (MINGW_OBJS): Add txtmode.o.
4995 (SRCDIST_FILES): Add txtmode.c binmode.c.
4996 crt1.c: Don't include fcntrl.h, stdlib.h.
4997 (_fmode): Declare, without dllimport attribute.
4998 (__p__fmode): Declare access function for dll's _fmode.
4999 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
5001 * txtmode.c: New file.
5002 * binmode.c: New file.
5003 * samples/fmode/test2.c: New file.
5004 * samples/fmode/jamfile: Add test2.exe target.
5006 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
5008 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
5009 macros work with C89.
5010 (INTMAX_C, UINTMAX_C): Likewise.
5012 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
5014 * include/string.h (strcasecmp): Make extern __inline__.
5015 (strncasecmp): Likewise.
5016 (wcscmpi): Likewise.
5018 2002-10-08 Heiko Gerdau <hg@technosis.de>
5020 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
5021 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
5024 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
5026 * mingwex/math/powil.c: Rename powil to __powil.
5027 * mingwex/math/powl.c: Adjust declaration and call
5028 to __powil. Remove comment on powil.
5029 * mingwex/math/powi.c: New file.
5030 * mingwex/math/powif.c: New file.
5031 * mingwex/math/pow.c: New file.
5032 * mingwex/math/cephes_mconf.h. Add double and float
5033 versions of constants.
5034 (polevl): Add double precision function.
5036 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
5038 (MATH_OBJS): Add pow.o, powi.o, powif.o.
5040 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
5042 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
5043 (_imp____mbcur_max_dll): Likewise.
5045 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
5047 * include/fcntl.h (_fmode): Remove declarations and
5048 compatibility defines.
5049 (_setmode, setmode): Remove prototypes.
5050 * include/stdlib (_fmode): Add declarations and
5051 compatibility defines. Change type to int.
5052 * include/io.h (_setmode, setmode): Add prototypes.
5053 * samples/fmode/all.c: Adjust includes.
5054 * samples/fmode/test.c: Likewise.
5055 * crt1.c (_CRT_fmode): Declare as int.
5056 * CRTfmode.c (_CRT_fmode): Likewise.
5058 * include/stdlib: Remove comment about MB_CUR_MAX.
5060 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
5062 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
5063 (_imp____mbcur_max_dll): Likewise.
5065 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
5067 * mingwex/math/files.txt: Remove inadvertantly added file.
5069 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
5071 * include/string.h (_strerror): Move into #ifndef
5072 __STRICT_ANSI__ block.
5074 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
5076 * include/time.h (__need_NULL): Define before including
5077 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
5079 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
5081 * include/stdio.h: Correct comment about directory separator.
5083 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
5085 * include/sys/time.h (timeval): Add struct definition and
5086 associated macros (copied from w32api/include/winsock.h).
5088 2002-09-05 Earnie Boyd <earnie@users.sf.net>
5090 * include/_mingw.h: Increment version to 2.3.
5093 2002-09-05 Earnie Boyd <earnie@users.sf.net>
5095 * mingwex/fegetenv.c: Change to \n line endings.
5096 * mingwex/vsnprintf.c: Ditto.
5097 * mingwex/vsnwprintf.c: Ditto.
5099 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
5101 * mingwex/math/hypotl.c: Replace with version based on cephes
5104 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
5106 * include/sys/param.h: Add ENDIAN defines.
5107 * test_headers.c: Include sys/param.h.
5109 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
5111 * test_headers.c: Don't include varargs.h.
5112 * Makefile.in (test_headers): Don't use -std=xx
5115 2002-08-21 Earnie Boyd <earnie@users.sf.net>
5117 * include/sys/param.h: New File.
5119 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
5121 * include/math.h (asm): Change to __asm__ throughout.
5122 Expose ISO C99 functions if __GLIPCPP__.
5123 (hypotf): Use hypot, not _hypot in stub.
5125 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
5127 * include/tchar.h: Ansi-fy another comment.
5129 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
5131 * include/tchar.h: Ansi-fy comment.
5133 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
5135 * test_headers.c : New file.
5136 * Makefile.in (test_headers): New target, using it,
5137 (SRCDIST_FILES): Distribute it.
5139 2002-08-20 Earnie Boyd <earnie@users.sf.net>
5141 * include/_mingw.h: Increment version to 2.2.
5144 2002-08-14 Earnie Boyd <earnie@users.sf.net>
5146 * include/unistd.h: Add include of process.h.
5148 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
5150 * include/stdio.h (_fcloseall): Add prototype.
5152 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
5154 * include/tchar.h (_tfdopen): Correct typo.
5156 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
5158 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
5159 nextafter): Add non-underscored stubs.
5160 * moldname-msvcrt.def: Regenerate.
5161 * moldname-crtdll.def: Regenerate.
5162 * mingwex/math: New directory.
5163 * mingwex/rint.c: Move to mingwex/math.
5164 * mingwex/rintf.c: Ditto.
5165 * mingwex/rintl.c: Ditto.
5166 * mingwex/round.c: Ditto.
5167 * mingwex/roundf.c: Ditto.
5168 * mingwex/roundl.c: Ditto.
5169 * mingwex/rint.c: Ditto.
5170 * mingwex/rintf.c: Ditto.
5171 * mingwex/rintl.c: Ditto.
5172 * mingwex/trunc.c: Ditto.
5173 * mingwex/truncf.c: Ditto.
5174 * mingwex/truncl.c: Ditto.
5175 * mingwex/signbit.c: Ditto.
5176 * mingwex/signbitf.c: Ditto.
5177 * mingwex/signbitl.c: Ditto.
5178 * mingwex/copysignl.S: Ditto.
5179 * mingwex/fdim.c: Ditto.
5180 * mingwex/fdimf.c: Ditto.
5181 * mingwex/fdiml.c: Ditto.
5182 * mingwex/fmin.c: Ditto.
5183 * mingwex/fminf.c: Ditto.
5184 * mingwex/fminl.c: Ditto.
5185 * mingwex/fmax.c: Ditto.
5186 * mingwex/fmaxf.c: Ditto.
5187 * mingwex/fmaxl.c: Ditto.
5188 * mingwex/fma.c: Ditto.
5189 * mingwex/fmaf.c: Ditto.
5190 * mingwex/fmal.c: Ditto.
5191 * mingwex/fpclassify.c: Ditto.
5192 * mingwex/fpclassifyl.c: Ditto.
5193 * mingwex/fpclassifyl.c: Ditto.
5194 * mingwex/isnan.c: Ditto.
5195 * mingwex/isnanf.c: Ditto.
5196 * mingwex/isnanl.c: Ditto.
5197 * mingwex/fucom.c: Ditto.
5198 * mingwex/fp_consts.c: Ditto. Split out float and long double
5200 * mingwex/math_stubs.c: Remove.
5201 * mingwex/log2.c: Remove. Replaced by math/log2.S
5202 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
5203 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
5204 * mingwex/math/acosf.c : New file.
5205 * mingwex/math/acosl.c: New file.
5206 * mingwex/math/asinf.c: New file.
5207 * mingwex/math/asinl.c: New file.
5208 * mingwex/math/atan2f.c: New file.
5209 * mingwex/math/atan2l.c: New file.
5210 * mingwex/math/atanf.c: New file.
5211 * mingwex/math/atanl.c: New file.
5212 * mingwex/math/cbrt.c: New file.
5213 * mingwex/math/cbrtf.c: New file.
5214 * mingwex/math/cbrtl.c: New file.
5215 * mingwex/math/ceilf.S: New file.
5216 * mingwex/math/ceill.S: New file.
5217 * mingwex/math/cephes_ld.h: New file.
5218 * mingwex/math/copysign.S: New file.
5219 * mingwex/math/copysignf.S: New file.
5220 * mingwex/math/cosf.S: New file.
5221 * mingwex/math/coshf.c: New file.
5222 * mingwex/math/coshl.c: New file.
5223 * mingwex/math/cosl.S: New file.
5224 * mingwex/math/exp2.S: New file.
5225 * mingwex/math/exp2f.S: New file.
5226 * mingwex/math/exp2l.S: New file.
5227 * mingwex/math/expf.c: New file.
5228 * mingwex/math/expl.c: New file.
5229 * mingwex/math/fabs.c: New file.
5230 * mingwex/math/fabsf.c: New file.
5231 * mingwex/math/fabsl.c: New file.
5232 * mingwex/math/floorf.S: New file.
5233 * mingwex/math/floorl.S: New file.
5234 * mingwex/math/fmodf.c: New file.
5235 * mingwex/math/fmodl.c: New file.
5236 * mingwex/math/fp_consts.h: Ditto.
5237 * mingwex/math/fp_constsf.c: Ditto.
5238 * mingwex/math/fp_constsl.c: Ditto.
5239 * mingwex/math/frexpf.c: New file.
5240 * mingwex/math/frexpl.S: New file.
5241 * mingwex/math/hypotf.c: New file.
5242 * mingwex/math/hypotl.c: New file.
5243 * mingwex/math/ilogb.S: New file.
5244 * mingwex/math/ilogbf.S: New file.
5245 * mingwex/math/ilogbl.S: New file.
5246 * mingwex/math/ldexpf.c: New file.
5247 * mingwex/math/ldexpl.c: New file.
5248 * mingwex/math/llrint.c: New file.
5249 * mingwex/math/llrintf.c: New file.
5250 * mingwex/math/llrintl.c: New file.
5251 * mingwex/math/llround.c: New file.
5252 * mingwex/math/llroundf.c: New file.
5253 * mingwex/math/llroundl.c: New file.
5254 * mingwex/math/log10f.S: New file.
5255 * mingwex/math/log10l.S: New file.
5256 * mingwex/math/log1p.S: New file.
5257 * mingwex/math/log1pf.S: New file.
5258 * mingwex/math/log1pl.S: New file.
5259 * mingwex/math/log2.S: New file.
5260 * mingwex/math/log2f.S: New file.
5261 * mingwex/math/log2l.S: New file.
5262 * mingwex/math/logb.c: New file.
5263 * mingwex/math/logbf.c: New file.
5264 * mingwex/math/logbl.c: New file.
5265 * mingwex/math/logf.S: New file.
5266 * mingwex/math/logl.S: New file.
5267 * mingwex/math/lrint.c: New file.
5268 * mingwex/math/lrintf.c: New file.
5269 * mingwex/math/lrintl.c: New file.
5270 * mingwex/math/lround.c: New file.
5271 * mingwex/math/lroundf.c: New file.
5272 * mingwex/math/lroundl.c: New file.
5273 * mingwex/math/modff.c: New file.
5274 * mingwex/math/modfl.c: New file.
5275 * mingwex/math/nearbyint.S: New file.
5276 * mingwex/math/nearbyintf.S: New file.
5277 * mingwex/math/nearbyintl.S: New file.
5278 * mingwex/math/nextafterf.c: New file.
5279 * mingwex/math/powf.c: New file.
5280 * mingwex/math/powl.c: New file.
5281 * mingwex/math/powil.c: New file.
5282 * mingwex/math/remainder.S: New file.
5283 * mingwex/math/remainderf.S: New file.
5284 * mingwex/math/remainderl.S: New file.
5285 * mingwex/math/remquo.S: New file.
5286 * mingwex/math/remquof.S: New file.
5287 * mingwex/math/remquol.S: New file.
5288 * mingwex/math/scalbn.S: New file.
5289 * mingwex/math/scalbnf.S: New file.
5290 * mingwex/math/scalbnl.S: New file.
5291 * mingwex/math/sinf.S: New file.
5292 * mingwex/math/sinhf.c: New file.
5293 * mingwex/math/sinhl.c: New file.
5294 * mingwex/math/sinl.S: New file.
5295 * mingwex/math/sqrt.c: New file.
5296 * mingwex/math/sqrtf.c: New file.
5297 * mingwex/math/sqrtl.c: New file.
5298 * mingwex/math/tanf.S: New file.
5299 * mingwex/math/tanhf.c: New file.
5300 * mingwex/math/tanhl.c: New file.
5301 * mingwex/math/tanl.S: New file.
5302 * mingwex/Makefile.in: Adjust VPATH for source files in
5305 Add MATH_DISTFILES and use it to build source distro.
5306 * include/math.h: Add protypes for new functions and
5307 reorganise to reflect ANSI,C99 status.
5309 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
5311 * include/tchar.h (_getts): Define as _getws for _UNICODE.
5312 (_putts): Define as _putws for _UNICODE.
5313 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
5315 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
5317 * include/float.h: #include_next<float.h> before header guard.
5319 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
5321 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
5323 * include/excpt.h (): Include windef.h not windows.h.
5324 * include/fcntl.h (_O_SHORT_LIVED): Add define.
5325 (_chmod): Add prototype.
5326 (_creat): Correct prototype.
5327 (SH_DENY*): Rename defines to _SH_DENY*.
5328 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
5329 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
5330 _IOAPPEND): Add defines.
5331 (_wfindfirst): Correct prototype.
5332 (_wfdopen): Add prototype.
5333 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
5335 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
5337 (_wcsdup): Correct prototype.
5338 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
5339 _mbsncat being in string.h.
5340 * include/wchar.h (_wfindfirst): Correct prototype.
5341 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
5343 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5345 * include/_mingw.h: Increment to version 2.1.
5346 * Makefile.in: Ditto.
5348 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5350 * Makefile.in (conf_prefix): New variable.
5351 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
5352 (bindist): Use dist_prefix.
5354 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
5356 * include/_mingw.h: Increment version to 2.0.
5357 * Makefile.in: Ditto.
5359 Merge in mingwex branch.
5361 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
5363 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
5364 * mingwex/fdim.c: New file.
5365 * mingwex/fdimf.c: New file.
5366 * mingwex/fdiml.c: New file.
5367 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
5369 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
5371 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
5373 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
5375 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
5377 * mingwex/isnanl.c: New file.
5379 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5381 * include/stdint.h: Include <stddef.h> to get wchar_t and wint_t.
5382 (WINT_MAX): Define to ((wint_t)-1).
5384 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5386 * include/wctype.h: Replace 'inline' with '__inline__'.
5387 * include/inttypes.h: Likewise.
5389 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5391 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
5392 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
5394 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5396 * mingwex/snprintf.c: Split out vsnprintf to....
5397 * mingwex/vsnprintf.c: New file.
5398 * mingwex/snwprintf.c: Split out vsnwprintf to...
5399 * mingwex/vsnwprintf.c: New file.
5400 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
5402 2002-05-15 Pascal Obry <obry@gnat.com>
5404 * include/dirent.h (DIR): Change dd_stat type to int.
5407 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
5409 * include/stdio.h (vsnprintf): Change inline to __inline__;
5410 (vsnwprintf): Likewise.
5411 * include/wchar.h (vsnwprintf): Likewise.
5414 (mbsinit): Likewise.
5416 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
5418 Change FP default precison from 53 to 64-bit mantissa.
5420 * Makefile.in (CRT0S): Add CRT_fp8.o.
5421 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
5422 * include/float.h: Replace standard float.h defines with
5423 #include_next<float.h> to use GCC's defines. Adjust comments
5426 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5428 * include/dos.h: Change prefix "__imp_" to "_imp__" for
5429 __GNUC__ without __DECLSPEC_SUPPORTED.
5430 * include/fnctl.h: Likewise.
5431 * include/math.h: Likewise.
5432 * include/stdio.h: Likewise.
5433 * include/stdlib.h: Likewise.
5434 * include/time.h: Likewise.
5435 * include/wctype.h: Likewise.
5436 * include/ctype.h: Likewise.
5438 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5440 Add atexit support for dlls.
5441 * crt1.c (atexit): Force thunk to _imp__atexit.
5442 (_onexit): Force thunk to _imp___onexit.
5443 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
5444 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
5445 (__dll_exit): New function to run atexit-registered functions
5446 and flush output buffers on DLL_PROCESS_DETACH or failed
5448 (atexit): Force use of private atexit table via _dllonexit,
5449 (_onexit): New function. Force use of private atexit table via
5451 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
5452 _imp_<_symbol> is visible in import lib.
5453 * msvcrt20.def: Likewise.
5454 * msvcrt40.def: Likewise.
5455 * crtdll.def: Likewise.
5457 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5459 * include/fenv.h: Change header guard macro to _FENV_H_.
5460 (fenv_t, fexcept_t): Move into block protected by
5462 Cleanup some whitespace.
5463 * include/inttypes.h: Change header guard macro to
5466 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5468 * include/math.h (copysignl): Declare.
5469 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
5470 (MATHOBJS):Add copysignl.o.
5472 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5474 * include/math.h (__signbitl, __isnanl): Declare.
5476 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5478 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
5479 roundl, truncl, fmal, log2l): Declare.
5480 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
5481 || !defined __STRICT_ANSI__.
5482 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
5483 * mingwex/fmin.c (fmin): Likewise.
5484 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
5485 * mingwex/fminf.c (fminf): Likewise.
5486 * mingwex/fmaxl.c: New file.
5487 * mingwex/fminl.c: New file.
5488 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
5489 * mingwex/fpclassifyf.c: New file.
5490 * mingwex/fpclassifyl.c: New file.
5491 * mingwex/rint.c (rintf): Split out to...
5492 * mingwex/rintf.c: New file.
5493 * mingwex/rintl.c: New file.
5494 * mingwex/round.c (roundf): Split out to...
5495 * mingwex/roundf.c: New file.
5496 * mingwex/roundl.c: New file.
5497 * mingwex/trunc.c (truncf): Split out to...
5498 * mingwex/truncf.c: New file.
5499 * mingwex/truncl.c: New file.
5500 * mingwex/signbit.c (signbitf): Split out to...
5501 * mingwex/signbitf.c: New file.
5502 * mingwex/signbitl.c: New file.
5503 * mingwex/fmal.c: New file.
5504 * mingwex/copysignl.S: New file.
5505 * mingwex/log2l.c: New file.
5506 * mingwex/fp_consts.c: Add nanl definition.
5507 Comment out unused constants.
5508 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
5509 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
5510 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
5512 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
5513 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
5514 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
5516 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
5518 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
5520 Make wide char versions of opendir and friends.
5522 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
5524 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
5525 _wseekdir): Add prototypes for wide versions of corresponding
5527 * include/tchar.h; Add _UNICODE mappings for dirent.h
5528 structures and functions.
5529 * mingwex/dirent.c: Make _UNICODE neutral.
5530 * mingwex/wdirent.c: New file to define _UNICODE before
5532 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
5533 (POSIX_OBJS): Add wdirent.o.
5534 (wdirent.o): Specify dependency on dirent.c as well as
5536 * samples/dirent/wtest.c: New file, wide version of test.c.
5538 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5540 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
5541 ensure gcc include dir is searched despite -nostdinc.
5542 * profile/Makefile.in (INCLUDES): Likewise.
5543 * mingwex/Makefile.in (INCLUDES): Likewise.
5544 * include/stdarg.h: Replace with stub that just guards the
5545 real gcc system header with #ifndef RC_INVOKED
5546 * include/varargs.h: Likewise.
5547 * include/stddef.h: Likewise.
5548 * include/stdio.h: Include stdarg.h after defining
5550 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
5551 Replace va_list with __VALIST throughout.
5553 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5555 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
5556 * msvcrt.def (_fpreset): Mark as DATA so that only
5557 _imp___fpreset is exported.
5558 * msvcrt20.def (_fpreset): Likewise.
5559 * msvcrt40.def (_fpreset): Likewise.
5560 * crtdll.def (_fpreset): Likewise.
5561 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
5563 (fpreset): Add alias.
5564 (__CRT_PC): Delete definition. _fpreset does it now.
5565 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
5566 (fpreset): Add alias.
5567 (__CRT_PC): Delete definition.
5568 * moldname.def.in: Comment out fpreset.
5569 * moldname-msvcrt.def: Regenerate.
5570 * moldname-crtdll.def: Regenerate.
5571 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
5572 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
5573 with the _fpreset determined by startup CRT_fp object.
5575 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
5577 * CRT_fp8.c: New file.
5578 * CRT_fp10.c: New file.
5579 * crt1.c (__CRT_PC) Declare.
5580 (__CRT_fesetenv): New static function, using _CRT_PC.
5581 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
5582 (_gnu_exception_handler): Likewise.
5583 * Makefile.in (CRT0S): Add CRT_fp10.o.
5584 (MINGW_OBJS): Add CRT_fp8.o.
5585 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
5586 Add CRT_fp8.o, CRT_fp10.o dependancies.
5587 * include/float.h (_fpreset): Expand comment.
5588 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
5589 (extended precison) environmemt.
5590 (FE_PC53_ENV): New define for MSVCRT default environmemt.
5591 (FE_DFL_ENV): Define as FE_PC53_ENV.
5592 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
5593 precision control for default environment.
5595 * include/math.h: Fix long comment line.
5596 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
5598 * profile/configure: Regenerate.
5600 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
5602 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
5604 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
5606 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
5607 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
5608 (__mingw_fseek): New function to work around Win9x f/lseek bug.
5609 (__mingw_fwrite): Likewise.
5610 (__mingw_is_win9x): New helper function.
5612 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
5613 (__mingw_fseek): New prototype and define to replace fseek.
5614 (__mingw_fwrite): New prototype and define to replace fwrite.
5615 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
5616 * moldname-crtdll.def: Remove CR from end of line.
5617 * moldname-msvcrt.def: Ditto.
5619 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
5621 * profile/configure.in (CRT0S): Configure name of gcrt?.o
5622 based on target, building gcrt0.o for cygwin -mno-cygwin.
5623 * profile/configure: Regenerate.
5624 * profile/Makefile.in (CRT0S): Use name from configure.
5625 (gcrt0.o): New rule.
5626 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
5628 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5630 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
5631 _fpecode): Remove prototypes copied from float.h.
5632 (nan, nanf): Move into block protected against RC_INVOKED
5634 * include/stdlib.h (_Exit): Change from static inline to
5636 * mingwex/_Exit.c : New file.
5637 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
5639 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5641 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
5642 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
5643 (configdirs): Likewise.
5644 (LIBGMON_A): Define for cygwin target as well.
5645 * configure: Regenerate.
5646 * profile/configure.in (THREAD_DLL): Remove define.
5647 (LIBM_A): Remove define.
5648 (LIBGMON_A): Define for cygwin target as well.
5649 * profile/configure: Regenerate.
5650 * profile/makefile.in (install): Install to inst_libdir and
5652 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
5653 (OPTFLAGS): New define.
5654 (ALL_CFLAGS): Add $(OPTFLAGS).
5655 (ALL_CXXFLAGS): Same.
5656 (.c.o:): Remove ALL_CXXFLAGS.
5658 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
5660 * include/stdint.h: Add missing newline at eof.
5661 * include/stdio.h (snprintf): Add prototype.
5662 (vsnprintf): Add prototype and inline definition.
5663 (snwprintf): Add prototype.
5664 (vsnwprintf): Add prototype and inline definition.
5665 * include/wchar.h (snwprintf): Add prototype.
5666 (vsnwprintf): Add prototype and inline definition.
5667 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
5669 * mingwex/snprintf.c: New file.
5670 * mingwex/snwprintf.c: New file.
5672 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
5674 * configure.in: Add mingwex as SUBDIRS and configdirs.
5675 * configure: Regenerate.
5676 * Makefile.in (MINGW_OBJS): Remove dirent.o.
5677 (SRC_DIST_FILES): Remove dirent.c.
5679 * include/stdlib.h (_Exit): Add static inline
5681 (struct lldiv_t): Define.
5682 (lldiv): Add prototype.
5683 (llabs): Add extern inline function.
5684 (strtoll,strtoull): Add prototypes.
5685 (wcstol, wcstoul, wcstod): Group together.
5686 (strtof, wcstof): Add extern inline definitions.
5687 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
5688 and extern inline definitions.
5689 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
5690 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
5692 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
5693 (wcstof): Add extern inline definition.
5694 * include/math.h (nan, nanf): Add prototypes.
5695 (NAN, INFINITE): Define constants.
5696 (fpclassify, isnan ,signbit): Add macros and supporting float
5697 and double functions.
5698 (isfinite, isinf, isnormal): Add macros.
5699 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
5701 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
5702 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
5703 (copysign, logb, nextafter, scalb): Add prototypes and
5704 inline stubs for underscored versions in msvcrt.dll.
5705 * include/inttypes.h: New file.
5706 * include/fenv.h: New file
5708 Add new mingwex subdir and files.
5709 * mingwex: New directory.
5710 * mingwex/Makefile.in: New file.
5711 * mingwex/configure.in: New file.
5712 * mingwex/configure: Generate.
5713 * mingwex/dirent.c: Moved here from parent dir.
5714 * mingwex/atoll.c: New file.
5715 * mingwex/feclearexcept.c: New file.
5716 * mingwex/fegetenv.c: New file.
5717 * mingwex/fegetexceptflag.c: New file.
5718 * mingwex/fegetround.c: New file.
5719 * mingwex/feholdexcept.c: New file.
5720 * mingwex/feraiseexcept.c: New file.
5721 * mingwex/fesetenv.c: New file.
5722 * mingwex/fesetexceptflag.c: New file.
5723 * mingwex/fesetround.o: New file.
5724 * mingwex/fetestexcept.c: New file.
5725 * mingwex/feupdateenv.c: New file.
5726 * mingwex/fma.S: New file.
5727 * mingwex/fmaf.S: New file.
5728 * mingwex/fmax.c: New file.
5729 * mingwex/fmaxf.c: New file.
5730 * mingwex/fmin.c: New file.
5731 * mingwex/fminf.c: New file.
5732 * mingwex/fp_consts.c: New file.
5733 * mingwex/fpclassify.c: New file.
5734 * mingwex/fucom.c: New file.
5735 * mingwex/fwide.c: New file.
5736 * mingwex/imaxabs.c: New file.
5737 * mingwex/imaxdiv.c: New file.
5738 * mingwex/isnan.c: New file.
5739 * mingwex/isnanf.c: New file.
5740 * mingwex/lltoa.c: New file.
5741 * mingwex/lltow.c: New file.
5742 * mingwex/log2.c: New file.
5743 * mingwex/log2f.c: New file.
5744 * mingwex/math_stubs.c: New file.
5745 * mingwex/mbsinit.c: New file.
5746 * mingwex/rint.c: New file.
5747 * mingwex/round.c: New file.
5748 * mingwex/signbit.c: New file.
5749 * mingwex/sitest.c: New file.
5750 * mingwex/strtof.c: New file.
5751 * mingwex/strtoimax.c: New file.
5752 * mingwex/strtoumax.c: New file.
5753 * mingwex/testwmem.c: New file.
5754 * mingwex/trunc.c: New file.
5755 * mingwex/ulltoa.c: New file.
5756 * mingwex/ulltow.c: New file.
5757 * mingwex/wcstof.c: New file.
5758 * mingwex/wcstoimax.c: New file.
5759 * mingwex/wcstoumax.c: New file.
5760 * mingwex/wmemchr.c: New file.
5761 * mingwex/wmemcmp.c: New file.
5762 * mingwex/wmemcpy.c: New file.
5763 * mingwex/wmemmove.c: New file.
5764 * mingwex/wmemset.c: New file.
5765 * mingwex/wtoll.c: New file.
5767 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5769 * include/mbstring.h: New file.
5770 * include/mbctype.h: New file.
5772 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5774 * include/tchar.h (__TEXT): Make same as define in
5775 w32api/include/winnt.h.
5777 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5779 * include/tchar.h (_tputenv): Add UNICODE mappings.
5780 (_tsearchenv): Likewise.
5781 (_tmakepath): Likewise.
5782 (_tsplitpath): Likewise.
5783 (_tfullpath): Likewise.
5785 2002-04-18 Pascal Obry <obry@gnat.com>
5787 * dirent.c (opendir): Convert given pathname to
5790 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5792 * include/_mingw.h: Increment version.
5793 * Makefile.in: Ditto.
5795 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5797 * moldname-crtdll.def: Remove CR from end of line.
5798 * moldname-msvcrt.def: Ditto.
5799 * Makefile.in: Use bzip2 compression for Cygwin target.
5801 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
5803 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
5804 TLOSS, PLOSS): Move oldname defines back, following
5805 the underscored names.
5807 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
5809 * include/stdio.h (_snwprintf): Correct spelling.
5810 (_vsnwprintf): Likewise.
5811 * include/wchar.h (_snwprintf): Correct spelling.
5812 (_vsnwprintf): Likewise.
5814 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
5816 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
5817 (wpopen): Add if !(__CRTDLL__).
5818 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
5820 (moldname-crtdll.def rule): Likewise.
5821 * moldname-msvcrt.def: Regenerate.
5822 * moldname-crtdll.def: Regenerate.
5823 * include/stdio.h (wpopen):Use prototype, not a define.
5824 (_swnprintf): Add prototype.
5825 (_vswnprintf): Likewise.
5827 * include/wchar.h (_swnprintf): Add prototype.
5828 (_vswnprintf): Likewise.
5831 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5833 * include/malloc.h (_heapinfo): Correct structure definition.
5834 (_USEDENTRY,_FREEENTRY): Add defines.
5835 Add comment on platform support for _heap* functions.
5836 (_get_sbh_threshold): Add prototype.
5837 (_set_sbh_threshold): Likewise.
5838 (_expand): Likewise.
5840 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5842 * profile/profil.c: Update copyright info.
5843 * profile/profil.h: Likewise.
5844 * profile/gcrt0.c: Likewise.
5846 2002-01-25 Pascal Obry <obry@gnat.com>
5848 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5850 * profile/gmon.c: Define bzero as memset if mingw32.
5851 (monstartup): Use it.
5853 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5855 * include/tchar.h (_TCHAR): Add missing ;.
5857 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5859 * include/tchar.h (_TCHAR): Add typedefs.
5861 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5863 * include/stdlib.h (_onexit_t): Add typedef.
5864 (_onexit): Add prototype.
5866 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5868 * msvcrt.def: Revert accidental change.
5869 * include/stdlib.h: Ditto.
5871 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5873 * Makefile.in: Increment VERSION.
5874 * include/_mingw.h: Ditto.
5876 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5878 * include/strings.h: New File.
5880 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5882 * include/math.h (_FPCLASS* ): Add defines from float.h.
5883 (IEEE recommended functions): Add declarations from float.h.
5884 * include/float.h (_FPCLASS* ): Protect against redefinition.
5886 2001-11-29 Wu Yongwei <adah@netstd.com>
5888 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5889 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5890 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5891 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5892 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5893 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5894 Correct spelling of "disclaimed" in comments.
5895 * include/excpt.h: Another spelling correction.
5897 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5899 * include/errno.h: Fix "errno is not a prototype" warning.
5901 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
5903 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
5904 differences between ANSI and non-ANSI versions.
5905 (_ctype[],_pctype): Declare vars.
5906 (__ISCTYPE): New helper macro using _pctype.
5907 (is* ctype functions): Use __ISCTYPE to define inline versions.
5908 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
5910 (isw* ctype functions): Inline definitions.
5911 * include/wctype.h (_ctype[],_pctype): Declare vars.
5912 (isw* ctype functions): Inline definitions.
5915 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5917 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
5918 __fpecode): Use __STDC__ prototypes.
5921 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
5923 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
5924 * mthr_init.c (DllMain) Run dtors if a process terminates.
5925 * mthr.c (__mingwthr_add_key_dtor) Removed.
5926 (___mingwthr_add_key_dtor) New.
5927 (___mingwthr_remove_key_dtor) New.
5928 (__mingwthr_run_key_dtors) Complete rewrite.
5929 (__mingwthr_remove_key_dtor) New.
5931 2001-11-05 Egor Duda <deo@logos-m.ru>
5933 * Makefile.in: Delete unused executable after creating base-files.
5935 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5937 * include/errno.h (_errno): Use __STDC__ prototype.
5938 Thanks to: Jim Barton.
5940 2001-11-04 "stefan" <stefan@lkcc.org>
5942 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
5944 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5946 * include/io.h (_commit): Add declaration.
5947 Thanks to: "stefan" <stefan@lkcc.org>
5949 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5951 * include/sys/stat.h: Make S_IS* macros safer.
5953 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
5955 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
5957 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5959 * include/stdlib.h (__p__environ, __p__wenviron): Use
5960 __STDC__ prototypes.
5962 2001-09-19 Earnie Boyd <earnie@SF.net>
5964 * Makefile.in: Remove the /usr from the install target.
5965 (VERSION): Increment.
5966 include/_mingw.h: Ditto.
5968 2001-09-17 Earnie Boyd <earnie@SF.net>
5970 * Makefile.in: Increment version.
5971 * include/_mingw.h: Ditto.
5973 2001-09-10 Earnie Boyd <earnie@SF.net>
5975 * dossh: Remove inadvertantly imported file.
5977 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5979 * dirent.c (opendir): Use GetFileAttributes rather than stat
5980 to determine if input arg is dir.
5982 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
5984 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5986 * include/varargs.h (va_list): Ditto.
5987 * include/stdio.h (va_list): Ditto.
5989 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5991 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5992 * include/stdio.h (_IORW): Change constant to 0x0080.
5993 (TMP_MAX): Add new define.
5995 (_wP_tmpdir): Ditto.
5996 (L_tmpnam): Change constant to 16.
5998 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
6000 * include/malloc.h: Fix non-ANSI comment after #endif.
6002 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6004 * profile/configure.in: Make msvcrt.dll version default.
6005 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
6006 * provile/configure: Regenerate.
6008 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
6010 * include/stdio.h (swscanf): Make first arugument const.
6011 * include/wchar.h (swscanf): Ditto.
6012 * include/tchar.h (_tfopen): New _UNICODE define.
6014 (_tsetlocale): Ditto.
6016 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
6018 * profile/Makefile.in (mkinstalldirs): Correct relative path.
6020 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
6022 * include/_mingw.h: Change version to 1.0.
6025 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
6027 * include/tchar.h: (__TEXT): Remove undef.
6031 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
6033 * include/tchar.h: (__TEXT): Add private macro.
6034 (_TEXT): Modify definition to use __TEXT.
6036 This change allows the passing of a MACRO as an argument and have that
6037 MACRO resolved first.
6038 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
6040 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
6042 * Makefile.in: Increment version to 0.5
6043 * include/_mingw.h: Increment minor version
6045 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
6047 * include/assert.h: (assert): Remove ; from end of definition
6048 Thanks to: AJ Reins <tbisp@qwest.net>
6050 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
6052 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
6053 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
6055 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
6057 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
6059 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
6061 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
6062 are actually C functions. These functions are resolved via the
6063 -lmsvcp60 library and comments were placed in the header.
6065 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6067 * include/stdlib.h (__p__pgmptr): add prototype.
6068 (__p__wpgmptr): likewise.
6069 (_pgmptr_dll): move declaration from dos.h.
6070 (_wpgmptr_dll): likewise.
6071 (_pgmptr): conditional define (MSVCT/CRTDLL).
6072 (_wpgmptr): likewise.
6073 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
6074 (_os*_dll variables): likewise.
6075 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
6076 (_wpgmptr_dll): likewise.
6078 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6080 * include/stdint.h: New file.
6082 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
6084 * include/wchar.h: Protect prototypes only declared in the C++ STL
6085 from being declared unless __cplusplus is defined.
6087 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
6089 * include/stdlib.h: Apply Danny Smith patch 102730
6090 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6091 (_wgetenv) Correction to return type.
6093 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
6095 * include/locale.h: Apply Danny Smith patch 101834
6096 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6097 (LC_MIN) Add definition.
6099 (_wsetlocale) Add prototype.
6101 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
6103 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
6104 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
6105 Create a libcoldname.a for the oldname library for CRTDLL.
6106 Restrict libmoldname.a for the oldname library for MSVCRT.
6107 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
6108 Restructure the $target_os case logic.
6109 Always name the MinGW thread dll helper mingwm.
6110 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
6111 * configure: regenerate.
6113 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
6115 * Makefile.in: Fix bindist target to distribute the correct files.
6116 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
6117 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
6119 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
6121 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
6122 Add variables and targets to control binary and source distributions.
6123 Add variables and targets to control snapshot distribution.
6124 * profile/gmon.h: Add missing #endif for #ifndef.
6125 * profile/ChangeLog: Merge entries here and remove.
6126 * profile/Makefile.in: Add variables and targets to control
6130 * config.guess: ditto.
6131 * config.sub: ditto.
6132 * mkinstalldirs: ditto.
6133 * install-sh: ditto.
6134 * configure: regenerate.
6135 * profile/configure: ditto.
6137 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
6139 * Merge in changes from
6140 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6141 * include/direct.h: add guard around MSVCRT-only prototytpes
6142 * include/io.h: add __int64 struct definitions and function prototypes;
6143 add guard for MSVCRT-only prototypes
6144 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
6145 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
6146 put wchar functions together to make sync with wchar.h easier
6147 * include/stdlib.h: add wide char functions (__MSVCRT__)
6148 * include/string.h: add string collation functions ( __MSVCRT__)
6149 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
6150 * include/tchar.h: add macros and macro function definitions
6151 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
6152 enclose more functions in __MSVCRT__ guard;
6153 some oldname wide char function prototypes #if (0)'d
6154 * profile/gmon.h: add guard around BSD-ish typedefs
6156 2000-11-20 Christopher Faylor <cgf@cygnus.com>
6158 * Makefile.in: Use a different variable name for subdirectory since the
6159 previous one was used by the top level make.
6161 2000-11-19 Christopher Faylor <cgf@cygnus.com>
6163 * Makefile.in: Install mingw stuff in a subdirectory if building under
6166 2000-06-17 Christopher Faylor <cgf@cygnus.com>
6168 * Makefile.in (subdirs): Eliminate for loop.
6170 2000-06-17 Christopher Faylor <cgf@cygnus.com>
6172 * Makefile.in (subdirs): Previous change did not fix problem in
6175 2000-06-17 Christopher Faylor <cgf@cygnus.com>
6177 * Makefile.in: Avoid installing dll if we're cross building and the
6178 cross-host system isn't a Windows system.
6179 * configure.in: Detect cross-hosting situation and set appropriate
6180 variables in Makefile.in.
6181 * configure: Regenerate.
6183 2000-04-19 Christopher Faylor <cgf@cygnus.com>
6185 * configure.in: Change HEADER_SUBDIR to mingw32.
6186 * configure: Regenerate.
6188 2000-04-10 Christopher Faylor <cgf@cygnus.com>
6190 * include/string.h: Use proper prototype for _strerror.
6192 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
6194 * Makefile.in (subdirs): Workaround for broken shells.
6196 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
6198 * Snapshot 2000-02-03.
6200 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
6201 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
6202 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
6203 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
6206 * Makefile.in (all): Build CRT0S first.
6207 (libmingwthrd.a): Remove thread support DLL from dependency.
6209 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
6211 * Snapshot 2000-01-21.
6213 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
6215 Merge in changes from Cygwin:
6216 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
6217 (SUBDIRS): Likewise.
6218 * Makefile.in (HEADER_SUBDIRS): New variable.
6219 (install): Use to install Mingw headers to a subdirectory if building
6221 (DLL_CC_STUFF): Add DLL entry point.
6222 * configure: Regenerate.
6224 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
6226 * include/stdio.h (fsetpos): Fix prototype.
6227 (fpos_t): Fix for MSVCRT.
6228 * include/float.h (fpreset): Add prototype.
6229 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
6231 * include/time.h: Don't define tzname as a macro for CRTDLL, and
6232 export using libmoldname.a.
6233 * crtdll.def: Add DATA tags.
6234 * msvcrt.def: Likewise.
6235 * moldname.def.in: Likewise. Add fpreset. Export tzname for
6236 both MSVCRT and CRTDLL.
6237 * moldname-crtdll.def: Regenerate.
6238 * moldname-msvcrt.def: Regenerate.
6240 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
6242 * Snapshot 1999-12-21.
6244 * include/wctype.h: New file.
6245 * include/ctype.h (MB_CUR_MAX): Define.
6247 * include/stdlib.h (MB_CUR_MAX): Define.
6248 * include/wchar.h: Define stat, _stat structures here as well.
6249 * include/float.h: Add invalid subconditions (_SW) and floating
6250 point error (_FPE) macros.
6251 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
6252 (_TIME_T): Rename macro to _TIME_T_DEFINED.
6253 * include/sys/types.h: Likewise.
6255 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
6257 * profile/profil.c (profile_on): Set the profiler thread priority to
6258 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
6259 * Snapshot 1999-11-18.
6261 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
6263 Released 1999-11-07.
6265 * Makefile.in (CRT0S): Add crtst.o.
6266 (install): Install in subdirs as well.
6267 * dirent.h (struct _stat): Rename from struct stat.
6268 * include/tchar.h: Add some new macros. Thanks to
6269 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
6270 * profile/Makefile.in (install): Fix target.
6272 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6274 * Makefile.in: Add support for profile directory.
6275 * configure.in: Likewise.
6276 * configure: Regenerate.
6278 * profile: Imported profiling sources from winsup-19991026 snapshot.
6279 * profile/Makefile.in: New file.
6280 * profile/configure.in: New file.
6281 * profile/configure: Generate.
6282 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
6283 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
6284 * profile/gmon.c (unistd.h): Include conditionally.
6285 (sys/param.h): Likewise.
6286 * profile/mcount.c (sys/param.h): Likewise.
6287 * profile/profil.c (profile_on): thread id is DWORD, not int.
6290 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
6292 * include/stdlib.h: Add wide character version of argv/environ.
6294 * include/wchar.h: More wide character prototypes.
6295 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
6297 * dllcrt1.c (init.c): Don't include.
6298 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
6299 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
6301 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
6303 * moldname.def: Remove file.
6304 * moldname.def.in: And add this.
6305 * moldname-msvcrt.def: Generate from moldname.def.in.
6306 * moldname-crtdll.def: Likewise.
6308 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
6309 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
6310 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
6312 * Makefile.in: Update.
6313 * configure.in: Likewise. Also add *cygwin* target for building
6314 under Cygwin winsup.
6315 * configure: Regenerate.
6317 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
6319 * include/_mingw.h: Add version macros.
6320 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
6321 Also add wide character versions shared with wchar.h.
6322 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
6323 * include/io.h (sopen, _sopen): Fix prototype.
6324 Add wide character prototypes.
6325 * include/wchar.h: Likewise.
6326 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
6327 underscored versions. Potential incompatibility.
6328 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
6329 Add wide character prototypes.
6330 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
6333 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
6335 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
6336 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
6338 * configure: Rengerate.
6339 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
6340 dll name and crt's. CRTDLL and MSVCRT are meant to created
6341 separately, so remove all the *-msvcrt* targets.
6342 (libmingwthr.a): New target. Dummy thread support archive.
6343 (LIBS): Add libmingwthr.a.
6344 (CRT0S): Use CRT_ID. Add crtmt.o.
6345 (MINGW_OBJS): Add crtst.o.
6346 * main.c (WinMain): Fix prototype.
6347 * crtmt.c: New file.
6348 * crtst.c: New file.
6350 * include/process.h (_beginthreadex): Fix prototype.
6351 * include/_mingw.h (__int64): Define for __GNUC__.
6352 * include/tchar.h (_ttol): Add macro.
6353 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
6354 _i64tow, _ui64tow, _wtoi64): Add prototypes.
6356 Reported by Emanuele Aliberti <ea@iol.it>:
6357 * include/tchar.h (_ttoi): Add macro.
6359 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
6360 * include/stdio.h (_snprintf): Add prototype.
6361 (_vsnprintf): Likewise.
6363 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
6365 Reported by Tor Lillqvist <tml@iki.fi>:
6366 * include/stdlib.h (__p___argv): Fix return type.
6368 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6371 * include/errno.h (errno): It's linked in from startup, not imported.
6372 * include/stdlib.h (errno): Likewise.
6373 * include/io.h: Guard against conflicting macros and prototypes in
6375 * include/stdlib.h: Likewise.
6376 * include/string.h: Likewise.
6377 * include/time.h: Likewise.
6379 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6381 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
6382 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
6383 * Makefile.in (INCLUDES): Remove old windows32 include directory.
6385 * crt1.c (_gnu_exception_handler): Fix prototype.
6386 (__mingw_CRTStartup): New function based on mainCRTStartup.
6387 (mainCRTStartup): Set the app type for MSVCRT and call
6389 (WinMainCRTStartup): Likewise.
6390 * init.c (_startupinfo): Define.
6391 (_getmainargs): Add 5th parameter.
6392 (_mingw32_init_mainargs): Use.
6394 * ALL *.c files: Reformat according to GNU coding style.
6396 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
6398 * Makefile.in (INCLUDES): Add w32api include directory.
6400 * include/_mingw.h: New file.
6401 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
6402 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
6403 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
6404 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
6405 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
6406 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
6408 * include/stdlib.h (atexit): Fix prototype.
6410 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
6412 * include/stdio.h (_tempnam): Fix prototype.
6413 (tempnam): Likewise.
6414 * include/stdlib.h: Replace with GCC's version, and guard
6417 From Anders Norlander <anorland@hem2.passagen.se>:
6418 * include/stdlib.h (__argc): Declare.
6421 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
6423 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
6425 * Makefile.in (_libm_dummy.o): New target.
6428 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
6430 * Released 1999-03-16 along with egcs-1.1.2.
6432 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
6434 * Makefile.in (LIBS): Add libm.a.
6435 (libm.a): Dummy libm.a.
6437 * Makefile.in: Update from winsup 1999-02-08 snapshot.
6438 Preserve local changes.
6439 (mkinstalldirs): In ../, not ../../.
6440 (INCLUDES): Point to local windows32api headers and use -nostdinc.
6442 (LIBS): Add libmoldname-msvc.a.
6443 (libmoldname-msvc.a): Add target.
6444 (distclean): Add target.
6446 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
6448 * include/dir.h: Reintroduce as an obsolescent header.
6449 * crt1.c (signal.h): Include.
6450 (_gnu_exception_handler): New function to properly handle win32
6451 asynchronous signals.
6452 (mainCRTStartup): Use.
6454 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
6456 * include/direct.h: Include io.h instead of dir.h
6457 * include/dirent.h: Likewise.
6458 * include/dos.h: Likewise.
6459 * include/stdio.h: Replace reference to dir.h with io.h.
6461 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
6463 * 1999-01-01 release bundled with egcs-1.1.1.
6465 * include/io.h: Incorporate dir.h.
6466 * include/dir.h: Remove.
6467 * include/signal.h: Move RC_INVOKED up a bit.
6469 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
6471 * include/signal.h (sig_atomic_t): Define.
6473 * include/malloc.h: Import defs from deprecated alloc.h.
6474 * include/alloc.h: Remove.
6476 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
6477 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
6478 * include/sys/stat.h (struct stat): st_uid is of type short. Use
6479 _off_t instead of long for st_size.
6481 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
6483 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
6484 * include/stdlib.h: Here.
6486 * include/netdb.h: Remove.
6487 * include/arpa/inet.h: Remove.
6488 * include/netinet/in.h: Remove.
6489 * include/sys/socket.h: Remove.
6491 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
6495 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
6496 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
6498 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6500 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
6501 (jmpbuf): typedef using above.
6502 (setjmp, longjmp): Prototype using jmpbuf.
6504 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
6505 obsolescent imported names, ie., from __imp__ to _imp___.
6507 Also ignored empty include/sys/param.h and incorrect
6508 include/sys/times.h.
6510 * CRTinit.c: New file.
6511 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
6513 * include/io.h (umask): Fix prototype.
6514 * include/stdlib.h (OS constants): Replace with Colin's.
6515 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
6516 * include/sys/state.h: Merge.
6518 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6520 * include/assert.h (assert): Lose the trailing semicolon.
6522 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6524 * include/math.h (matherr): Declare.
6525 * include/stdio.h (fileno, _fileno): Declare.
6526 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
6529 * include/stdio.h (fdopen, _fdopen): Add const.
6530 (getw, putw): Declare.
6531 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
6533 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
6535 * include/time.h (_timezone): Undefine.
6536 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
6538 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
6540 * include/stdlib.h (environ): Use DLL version.
6541 * init.c (environ): Undefine it before use.
6543 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
6545 * Update to 980309 snapshot from Colin Peters.
6547 * include/utime.h: remove
6548 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
6549 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
6550 patches to define these.
6551 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6552 (_daylight, _timezone, _tzname, _tzset): Define.
6554 * include/netdb.h: Add from Colin's windows32api changes.
6555 * include/sys/socket.h: Likewise.
6556 * include/arpa/inet.h: Likewise.
6557 * include/netinet/in.h: Likewise.
6559 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
6561 * Update to 980128 snapshot from Colin Peters.
6563 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
6565 * configure.in (AC_INIT): Use dllmain.c instead of defunct
6567 * configure: Regenerate.
6569 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
6571 * Update to 971205 snapshot from Colin Peters. Lots of changes.
6572 Files renamed and include hierarchy loses directories named
6575 * include/dos.h: from Jan-Jaap.
6577 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
6579 Changes to conform to FSF tree.
6581 * crt1.c: Renamed from mcrt0.c.
6582 * dllcrt1.c: Renamed from dllcrt0.c.
6583 * Makefile.in: Update above. Also renamed libmoldnames.a to
6586 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
6588 * crtdll.def: Export all functions but the ones with funny names.
6589 * moldnames.def: Add fdopen since fileno is already there.
6590 * include/nonansi/dos.h: New file from Jan-Jaap.
6591 * include/errno.h: Add extern decl + various additions from JJ.
6592 * include/stdio.h: Likewise.
6593 * include/stdlib.h: Likewise.
6594 * include/nonansi/io.h: Likewise.
6595 * include/nonansi/process.h: Likewise.
6596 * include/sys/types.h: Likewise.
6598 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6600 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6602 * include/stdlib.h (free): Fix prototype to return void, not void*.
6603 * include/nonansi/process.h: Add P_* and WAIT_* defs.
6605 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
6606 * mcrt0.c: Likewise.
6608 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
6609 (libmoldnames.a): Add explicit rule to create it.
6611 1997-08-15 Rob Savoye <rob@cygnus.com>
6613 New directory for the minimalist cygwin environment.
6615 * crtglob.c: New file. Turn on file globbing support.
6616 * crt_noglob.c: New file. Turn off file globbing support.
6617 * ctype_old.c: New file. Wrappers for functions that don't
6619 * dirent.c: New file. Directory routines readdir, opendir, closedir.
6620 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
6621 * dllmain.c: New file. A stub DllMain function.
6622 * hugeval.c: New file. A gross hack to define HUGE_VAL.
6623 * init.c: New file. Common code to initialize standard file
6624 handles and command line arguments.
6625 * main.c: New file. A main for programs that only call WinMain.
6626 * mcrt0.c: New file. Default crt0 for mingw32.
6627 * oldnames.c: New File. Wrappers for functions that don't
6629 * string_old.c: New File.
6630 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
6631 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
6632 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
6633 * include/sys/types.h: New header file for mingw.
6634 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
6635 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
6636 utime.h,values.h,varargs.h}: New header files for mingw.
6637 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
6638 timeb.h,unistd.h}: New header files for mingw.
6639 * Makefile.in,configure.in: Build and configure support.
6640 * configure: Generated from autoconf 2.12 with Cygnus patches.