1 2016-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Implement unit tests for power functions.
5 * tests/testsuite.at.in: m4_include...
6 * tests/Makefile.in (testsuite): ...and add dependency on...
7 * tests/powerfunc.at: ...this new file; it specifies unit tests to
8 check POSIX.1-2008 compliance of results and errno assignment from...
9 (pow, powf, powl): ...each of these functions.
11 2016-11-14 Keith Marshall <keithmarshall@users.sourceforge.net>
13 Add POSIX compliant errno assignments to log functions.
15 * include/errno.h: Make it assembly language compatible.
16 [__ASSEMBLER__]: Omit <_mingw.h>; do not declare prototype for...
17 (_errno): ...this accessor function; the declaration is syntactically
18 invalid, in assembly language code.
20 * mingwex/math/errno.sx: New file; when included by other assembly
21 language files, it provides bindings for assignement of any constant
22 defined in <errno.h> to the global errno variable, facilitated by...
23 (errno): ...this new GAS macro.
25 * mingwex/math/log_generic.sx: New file; it provides a generic back
26 end implementation for multiple logarithmic functions, accessed via...
27 (___x87log, ___x87log_chk): ...this pair of entry points, serving...
28 (log, logf, log): ...each of these primary functions; it replaces...
29 * mingwex/math/logf.s mingwex/math/logl.s: ...these; delete them.
31 * mingwex/math/log1p_generic.sx mingwex/math/log10_generic.sx
32 * mingwex/math/log2_generic.sx: New files; each acts as a wrapper for
33 log_generic.sx, providing the front end entry stubs for each of...
34 (log1p, log1pf, log1pl, log10, log10f, log10l, log2, log2f, log2l):
35 ...these functions; thus, they provide complete replacements for...
36 * mingwex/math/log1p.s mingwex/math/log1pf.s mingwex/math/log1pl.s
37 * mingwex/math/log10f.s mingwex/math/log10l.s mingwex/math/log2.s
38 * mingwex/math/log2f.s mingwex/math/log2l.s: ...these; delete them.
40 * mingwex/math/x87cvt_generic.sx: New file; it implements...
41 (___x87cvt, ___x87cvtf): ...this pair of return value conversion
42 routines, for conversion from the FPU's internal REAL10 data format,
43 to REAL8 and REAL4, for double and float functions respectively.
45 * Makefile.in (libmingwex.a): Add dependencies on...
46 (x87cvt.$OBJEXT), x87cvtf.$OBJEXT), x87log.$OBJEXT), x87logf.$OBJEXT):
47 ...these object modules; implement pattern rule to build them from...
48 (x87cvt_generic.sx, log_generic.sx): ...these generic sources; also
49 provide for building the respective log function entry stubs from
50 their respective generic sources.
52 2016-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
54 Implement unit tests for logarithmic functions.
56 * tests/testsuite.at.in: m4_include...
57 * tests/Makefile.in (testsuite): ...and add dependency on...
58 * tests/logarithms.at: ...this new file; it specifies unit tests to
59 check POSIX.1-2008 compliance of results and errno assignment from...
60 (log, logf, logl, log1p, log1pf, log1pl, log10, log10f, log10l, log2)
61 (log2f, log2l): ...each of these functions.
63 2016-11-02 Keith Marshall <keithmarshall@users.sourceforge.net>
65 Implement unit tests for ANSI printf() functions.
67 * tests/Makefile.in (testsuite): Add dependency for...
68 * tests/ansiprintf.at: ...this new file, and...
69 * tests/testsuite.at.in: ...m4_include it.
71 2016-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
73 Fix another printf() hex-float formatting bug.
75 * mingwex/stdio/pformat.c (__pformat_emit_xfloat)
76 [stream->flags & PFORMAT_ZEROFILL]: Ignore this; it should be...
77 [(stream->flags & PFORMAT_JUSTIFY) == PFORMAT_ZEROFILL]: ...thus.
79 2016-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
81 Merge post 2016-10-18 updates from legacy branch.
83 * include/io.h include/wchar.h: Updated.
84 * mingwex/stdio/pformat.c: Likewise.
86 2016-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
88 Work around MSDN inconsistencies in _finddata_t naming.
90 * include/io.h (_finddata64_t, _wfinddata64_): Define them
91 respectively as aberrant alternative data type names for each of...
92 (__finddata64_t, __wfinddata64_t): ...these original names.
93 (_wfinddata32_t): Similarly, define this with...
94 (__wfinddata32_t): ...this alternative name.
96 * include/wchar.h (_wfinddata32_t): Correct references in comments.
98 2016-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
100 Fix a potentially infinite printf() format conversion loop.
102 * mingwex/stdio/pformat.c (__pformat_emit_xfloat)
103 [value.__pformat_fpreg_mantissa == 0]: Do not attempt to normalize
104 it; there are no 1-bits to promote, so repeated shifting until one
105 appears in most significant position will never terminate.
107 2016-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
109 Merge mingwrt-3.22.4 updates into 5.0-active branch.
111 * configure.ac: Preserve original 5.0-active state.
112 * include/wchar.h: Update per 2016-10-17 commits.
114 2016-10-17 Keith Marshall <keithmarshall@users.sourceforge.net>
116 Prepare and tag mingwrt-3.22.4 patch release.
118 * configure.ac (AC_INIT): Increment patch level.
120 2016-10-17 Keith Marshall <keithmarshall@users.sourceforge.net>
122 Resolve an ANSI mode <string.h> vs. <wchar.h> conflict.
124 * include/wchar.h [!(_WCHAR_H && _STRING_H)]: Change condition...
125 [!(_WCHAR_H && (_STRING_H && !__STRICT_ANSI__))]: ...to this; the
126 guarded declarations are not exposed by including <string.h> when...
127 [__STRICT_ANSI__]: ...this is defined; hence, we must declare them
128 when including <wchar.h>, even after including <string.h>
130 2016-10-14 Keith Marshall <keithmarshall@users.sourceforge.net>
132 Add dependency tracking for tests/Makefile.
134 * tests/Makefile.in (top_builddir): Define it.
135 (Makefile): Add automatic rebuild rule, tracking both srcdir and
136 top_builddir prerequisite changes.
138 2016-10-14 Keith Marshall <keithmarshall@users.sourceforge.net>
140 Correct a minor typographic error.
142 * tests/atlocal.in (autoconf_input): Replace invalid AC_SUBST tag...
143 (configure_input): ...with this correctly named alternative.
145 2016-10-14 Keith Marshall <keithmarshall@users.sourceforge.net>
147 Merge mingwrt-3.22.3 updates into 5.0-active branch.
149 * configure.ac: Preserve original 5.0-active state.
150 * include/_mingw.h.in include/string.h include/sys/types.h
151 * include/io.h: Update per 2016-10-13 commits.
153 2016-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
155 Prepare and tag mingwrt-3.22.3 patch release.
157 * configure.ac (AC_INIT): Increment patch level.
159 2016-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
161 Emulate glibc <string.h> POSIX.1 non-compliance.
163 * include/_mingw.h.in (_EMULATE_GLIBC): New feature test macro.
164 [_GNU_SOURCE || _BSD_SOURCE || !__STRICT_ANSI__]: Enable it when...
165 [_XOPEN_SOURCE || _POSIX_C_SOURCE || _POSIX_SOURCE]: ...none of
166 these have been pre-defined by the user.
168 * include/string.h [_EMULATE_GLIBC]: Include <strings.h> in full...
169 (strcasecmp, strncasecmp): ...so prototypes for these are declared.
170 [!_EMULATE_GLIBC]: Preserve partial <strings.h> include, guarded by...
171 [__STRING_H_SOURCED__]: ...this context selector, so suppressing the
172 declarations of those function prototypes.
174 2016-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
176 Resolve some non-ANSI typedef omissions.
178 * include/sys/types.h (off_t, ssize_t): Always typedef them when...
179 [_POSIX_C_SOURCE || !_NO_OLDNAMES]: ...either of these prevails.
181 * include/io.h (_fsize_t): Do not suppress its typedef when...
182 [__STRICT_ANSI__]: ...this compiler option applies, irrespective of...
183 [!(_IO_H && _WCHAR_H)]: ...this, which otherwise causes supression.
185 2016-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
187 Prepare and tag mingwrt-3.22.2 patch release.
189 * configure.ac (AC_INIT): Increment patch level.
190 * config.guess config.sub: Delete, per 2016-07-16 commit.
191 * include/stdlib.h: Backport, per 2016-09-14 commit.
192 * include/wchar.h: Backport, per 2016-09-17 commits.
194 2016-09-17 Keith Marshall <keithmarshall@users.sourceforge.net>
196 Add missing <wchar.h> declarations when compiling C++.
198 * include/wchar.h (fwide, mbsinit, wmemset, wmemchr, wmemcpy)
199 (wmemmove, wcstoll, wcstoull): Declare each of these for either of...
200 [_ISOC99_SOURCE || __cplusplus]: ...these conditions, rather than...
201 [_ISOC99_SOURCE]: ...this alone.
203 2016-09-17 Keith Marshall <keithmarshall@users.sourceforge.net>
205 Stricter <wchar.h> ISO-C99 conformity filtering.
207 * include/wchar.h [__STRICT_ANSI__]: Do not include any part of...
208 (direct.h, io.h, sys/stat.h, locale.h, process.h): ...any of these.
210 2016-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
212 Relax strict ISO-C conformity to facilitate C99 support.
214 * include/stdlib.h (_atoi64, _exit) [__STRICT_ANSI__]: Convention
215 dictates that the Microsoft specific functions should not be declared;
216 however, C99 provides equivalents in atoll() and _Exit(), for which we
217 gratuituously use them to provide inline implementations; thus...
218 [_ISOC99_SOURCE && !__NO_INLINE__]: ...declare them anyway.
220 2016-09-13 Keith Marshall <keithmarshall@users.sourceforge.net>
222 Suppress expected header warnings when running testsuite.
224 * include/dir.h include/dos.h [__IN_MINGWRT_TESTSUITE__]: New feature
225 test; do not emit warning messages, which declare this pair of headers
226 to be obsolete. These warnings are expected, but their format may not
227 be deterministically predictable; there is no reason to fail any test
228 on account of any such expected warning message.
230 2016-09-13 Keith Marshall <keithmarshall@users.sourceforge.net>
232 Create a preliminary autotest framework.
234 * configure.ac (AC_TESTDIR): Initialize tests subdirectory.
235 (AC_PROG_CXX): Identify C++ compiler; the testsuite will use it.
236 (AC_CHECK_PROG): Check availability of autom4te; specify fallback.
237 (AC_CONFIG_FILES): Add instantiation requests for tests/atlocal,
238 tests/Makefile, and tests/testsuite.at.tmp
240 * tests/testsuite.at.in tests/atlocal.in tests/headers.at
241 * tests/Makefile.in: New files; implement them.
243 * Makefile.in (check, check-recursive, tests): Implement new goals.
244 (mingwrt-srcdist-files): Subdivide package files complement into...
245 (mingwrt-srcdist-package-files): ...this original collection, and...
246 (mingwrt-srcdist-testsuite-files): ...this additional set.
248 * test_headers.c: Superseded by autotest; delete it.
250 2016-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
252 Add pthreads-win32 courtesy support hooks.
254 * include/errno.h: Assert copyright; tidy layout.
255 (_ERRNO_H_): Rename this repeat inclusion guard macro as...
256 (_ERRNO_H): ...this, conforming to preferred naming convention.
257 [__PTW32_H]: Include "ptw32_errno.h".
259 * include/time.h [__SCHED_H_SOURCED__]
260 (struct timespec): Typedef it selectively; do not define...
263 2016-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
265 Implement POSIX printf() feature per request [#2310].
267 * mingwex/stdio/pformat.c [WITH_XSI_FEATURES]: Delete references.
268 (PFORMAT_GROUPED): New manifest constant; define it. It previously
269 appeared in an occluded XSI feature reference, but is now required.
270 (__pformat_t.tslen, __pformat_t.tschr, __pformat_t.grouping): New
271 structure member fields; they maintain control state as set up by...
272 (__pformat_enable_thousands_grouping): ...this new internal function.
273 (__pformat_int_bufsiz): Use it; it may request a size increment.
274 (__pformat_emit_digit, __pformat_emit_punct): New functions; they
275 handle output of digits, radix point, and thousands digits separator
276 punctuation for all numeric conversion formats, thus replacing...
277 (__pformat_emit_numeric_value, __pformat_emit_radix_point): ...these;
278 delete them, and update all callers to use appropriate replacements.
279 (__pformat_int) [PFORMAT_GROUPED]: Add and emit group separators.
280 (__pformat_xint_bufsiz): New internal function; it serves in place of
281 __pformat_int_bufsiz(), for those integer data conversion formats
282 which explicitly do not support thousands digits grouping, hence...
283 (__pformat_xint): ...use it, rather than __pformat_int_bufsiz().
284 (__pformat_adjust_for_grouping): New internal function; it adjusts the
285 __gdtoa radix point index for fixed point conversion formats, to allow
286 for the insertion of thousands digits group separators, hence...
287 (__pformat_emit_float): ...use it, and emit separators as appropriate.
288 (__pformat_emit_efloat) [PFORMAT_GROUPED]: Explicitly disable it.
289 (__pformat): Initialise stream references for __pformat_t.grouping,
290 __pformat_t.tslen, and _pformat_t.tschr, on entry; release any memory
291 allocated for __pformat_t.grouping, when done.
293 2016-08-01 Keith Marshall <keithmarshall@users.sourceforge.net>
295 Implement POSIX conforming getline() and getdelim() functions.
297 * mingwrt/mingwex/stdio/getdelim.c: New file.
298 * mingwrt/man/getline.3.man: Likewise.
300 * mingwrt/include/stdio.h [_POSIX_C_SOURCE >= 200809L]
301 (getdelim): New function, implemented externally; declare prototype.
302 (getline): New function; declare prototype; implement as __CRT_ALIAS
303 inline, with __LIBIMPL__ external representation.
305 * mingwrt/Makefile.in (libmingwex.a): Add getdelim.$OBJEXT
306 (mingwrt-man$man3ext): Add manpage dependency references to create...
307 (getline.$man3ext, getdelim.$man3ext): ...these; declare them as
308 distributable duplicates, to be generated from...
309 (getline.$man3ext.man): ...this common source.
311 2016-08-01 Keith Marshall <keithmarshall@users.sourceforge.net>
313 Merge mingwrt-3.22.1 legacy updates to 5.0-active branch.
315 * mingwex/math/powl.c: Update per issue [#2036] workaround.
316 * mingwex/stdio/pformat.c: Likewise, per issue [#2309] resolution,
317 and subsequent 2016-07-24 optimization.
319 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
321 Prepare and tag all files for release of mingwrt-3.22.1.
323 * configure.ac (AC_INIT): Adjust package version number; append
324 patch level identification.
326 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
328 Interim workaround for issue [#2306].
330 * mingwex/math/powl.c: Tidy layout; correct indentation.
331 (powl, reducl): Use ISO-C declaration syntax; K&R is obsolescent.
332 (powl) [OVERFLOW]: Correct representation of return value, using...
333 (INFINITYL): ...this manifest constant value, instead of...
336 2016-07-24 Keith Marshall <keithmarshall@users.sourceforge.net>
338 Optimize printf() field width accumulation function.
340 * mingwex/stdio/pformat.c (__imul10plus): Omit multiply by ten on
341 already accumulated zero total; it is unnecessary, since ten times
344 2016-07-22 Keith Marshall <keithmarshall@users.sourceforge.net>
346 Fix printf() field width parsing regression issue [#2309].
348 * mingwex/stdio/pformat.c (__imul10plus): Coerce any accumulated
349 negative total to zero; the only negative value to be handled is...
350 (PFORMAT_IGNORE): ...this; it ceases to be applicable, on first call
351 to __imul10plus(), to accumulate field width or precision.
353 2016-07-19 Keith Marshall <keithmarshall@users.sourceforge.net>
355 Update install-sh to match mingw.org/build-aux package.
357 * install-sh: Delete it; use version in parent directory instead,
358 recreating local copy, (as symlink, if supported), on demand.
360 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
362 Eliminate redundant configuration files.
364 * aclocal.m4 VERSION.m4: Delete them; restore them on demand, via...
365 * Makefile.in ($top_srcdir/../%): ...this symlink dependency rule.
367 * configure.ac (AC_PROG_LN_S): Add configuration check.
369 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
371 Merge mingwrt-3.22 packaging correction to 5.0-active branch.
373 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
375 Correct mingwrt-3.22 source package subdirectory omission.
377 * Makefile.in (mingwrt-srcdist-files): Add msvcrt-xref.
379 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
381 Discard redundant config.guess and config.sub files.
383 * config.guess config.sub: Delete them; they are no longer required.
385 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
387 Merge recent legacy branch updates to 5.0-active branch.
389 * Makefile.in include/ctype.h include/excpt.h include/stdint.h
390 * include/glob.h include/limits.h include/locale.h include/search.h
391 * include/stdio.h include/stdlib.h include/wchar.h include/wctype.h
392 * include/sys/param.h include/sys/stat.h mingwex/tdelete.c
393 * mingwex/tfind.c mingwex/tsearch.c mingwex/twalk.c: Updated.
395 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
397 Prepare and tag all files for release of mingwrt-3.22.
399 * configure.ac (AC_INIT): Adjust package version number.
401 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
403 Preserve kludge to evade GCC build failure on S_ISBLK misuse.
405 * include/sys/stat.h (_NO_UNSUPPORTED): New feature test macro; it
406 should be user defined, if desired, before inclusion; leave undefined.
407 [!_S_IFBLK && !_NO_UNSUPPORTED && !_NO_OLDNAMES] (S_ISBLK): Define it,
408 as appropriate for POSIX conforming usage; do not poison it.
410 2016-07-10 Keith Marshall <keithmarshall@users.sourceforge.net>
412 Fix C++ strict type checking inconsistency in <glob.h>
414 * include/glob.h (__ERRFUNC_P): New private macro; define it to match
415 the type signature of the error function pointer, to be passed to...
416 (glob): ...this function; use it to correctly represent error function
417 pointer argument in inline implementation.
419 2016-07-09 Keith Marshall <keithmarshall@users.sourceforge.net>
421 Factor out <ctype.h> vs. <wctype.h> duplicate elements.
423 * include/ctype.h: Assert copyright; tidy layout.
424 [!_CTYPE_H_]: Do not evaluate; rename macro to be tested, as...
425 [!_CTYPE_H]: ...this preferred multiple inclusion guard macro name.
426 (__CTYPE_H_SOURCED__): New macro; define it, and include <wctype.h>,
427 so requesting partial inclusion, to retrieve definitions for...
428 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
429 (_UPPER, WEOF): ...these macros; hence, do not define them locally.
430 (wint_t, wchar_t, wctype_t): Likewise these type definitions...
431 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
432 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
433 (iswupper, iswxdigit, towlower, towupper, is_wctype): ...these function
434 prototypes, and corresponding inline alternative implementations.
435 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
436 [__MSVCRT_VERSION__<=__MSVCR70_DLL]: Likewise.
438 * include/wctype.h: Assert copyright; tidy layout.
439 [!_WCTYPE_H_]: Do not evaluate; rename macro to be tested, as...
440 [!_WCTYPE_H]: ...this preferred multiple inclusion guard macro name;
441 do not define it when partial inclusion only is selected, by...
442 [__CTYPE_H_SOURCED__]: ...this; thence define only...
443 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
444 (_UPPER): ...these character characterisation macros...
445 (wint_t, wchar_t, wctype_t): ...these type definitions...
446 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
447 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
448 (iswupper, iswxdigit, towlower, towupper): ...these function
449 prototypes, with corresponding inline alternative implementations...
450 (is_wctype): ...this further prototype, qualified as deprecated...
451 (WEOF): ...and this status reporting macro.
452 (_ctype, _pctype, _pctype_dll, _imp___ctype, _imp___pctype): Delete
453 declarations, and associated definitions; they do not belong here.
454 (isleadbyte): Likewise, this Microsoft specific function prototype...
455 (_LEADBYTE): ...and this associated character classification macro.
456 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
458 2016-07-04 Keith Marshall <keithmarshall@users.sourceforge.net>
460 Do not pass MAKEFLAGS explicitly, when invoking recursive make.
462 * Makefile.in (install-strip, uninstall): Delete explicit $(MAKEFLAGS)
463 references from $(MAKE) command lines; make passes them implicitly.
465 2016-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
467 Rework tsearch and friends; resolve issues [#1512] and [#1576].
469 * include/search.h: Assert copyright; tidy layout.
470 (_SEARCH_H_): Rename this multiple inclusion guard macro...
471 (_SEARCH_H): ...to conform to this preferred standard convention.
472 (__search_comparator): New function prototype typedef; it provides a
473 convenient shorthand notation for argument declarations in functions
474 which require a comparator function pointer; use it where appropriate.
475 (tsearch, tfind, tdelete) [__MINGW_ATTRIB_NONNULL]: Apply to arguments
476 #2 and #3; was previously incorrectly applied to arguments #1 and #3.
477 (twalk) [__MINGW_ATTRIB_NONNULL]: Apply to both arguments #1 and #2.
478 [_SEARCH_PRIVATE] (__MINGW_ATTRIB_NONNULL): Suppress its effect, to
479 ensure that GCC does not optimize away checks within implementation.
480 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
482 * mingwex/tdelete.c: Tidy layout.
483 (tdelete): Reimplement it as a thin wrapper around...
484 (__tdelete): ...this; it encapsulates the original implementation as a
485 __CRT_ALIAS (inline) function, to simplify void ** --> node_t ** casts.
486 Remove unnecessary non-null assertions for arguments #1 and #3; prefer
487 to validate arguments #2 and #3 internally, and simply return NULL if
488 necessary; hence, do not include <assert.h>
490 * mingwex/tfind.c: Tidy layout.
491 (tfind): Similarly reimplement it as a thin wrapper around...
492 (__tfind): ...this __CRT_ALIAS (inline) encapsulation of the original.
493 Add non-null validation for argument #3; do not include <assert.h>
495 * mingwex/tsearch.c: Tidy layout.
496 (tsearch): Once again, reimplement it as a thin wrapper around...
497 (__tsearch): ...this __CRT_ALIAS variant. Add non-null validation for
498 argument #3; do not include <assert.h>
500 * mingwex/twalk.c: Tidy layout; do not include <assert.h>
502 2016-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
504 Rework __try1/__except1 to resolve issue [#1328].
506 * include/excpt.h: Assert copyright; tidy layout.
507 (_EXCPT_H_): Multiple inclusion guard macro renamed to...
508 (_EXCPT_H): ...this; update all references as appropriate.
509 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
510 (__typecast_alloca): New macro; define it, casting return type of...
511 (__builtin_alloca): ...this to a specified data type; use it in...
512 (__try1_setup, __except1_teardown): ...these new macros; define them
513 as parameterized templates, providing both -masm-att and -masm-intel
514 syntax implementations, with host specific word size and register
515 assignment parameter substitutions; use them to redefine...
516 (__try1, __except1): ...each of these, using __builtin_alloca to avoid
517 direct stack pushes when registering exception handlers; assign the
518 template parameters as appropriate to support implementation for...
519 [_WIN64, _WIN32]: ...either of these, as the host requires.
521 2016-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
523 Merge Cygwin CVS updates to legacy branch.
525 * include/stdio.h: Merge 2011-11-30 and 2012-08-02 commits.
526 (getc, getchar, putc, putchar): Declare function prototypes.
527 (fopen64, ftello64): Likewise; change implementation classification
528 from __CRT_INLINE to __CRT_ALIAS, to avoid C++ emitted code bloat.
529 (_lock_file, _unlock_file): Add prototypes; modify merge to...
530 [__MSVCRT_VERSION__>=__MSVCR80_DLL]: ...require this.
532 * include/stdint.h: Merge 2012-07-30 commit; include <_mingw.h>
534 * include/excpt.h: Merge 2012-08-01 commit.
535 (__try1, __except1) [_WIN64]: Add alternative implementations.
537 * include/stdlib.h: Merge 2012-08-02 commit.
538 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
539 (_strtoi64, _strtoui64, _wcstoi64, _wcstoui64): Declare prototypes.
540 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
541 (_strtoi64_l, _strtoui64_l, _wcstoi64_l, _wcstoui64_l): Likewise...
542 [!__have_typedef_locale_t] (__need_locale_t): ...and define to get...
543 (locale_t): ...this, by selective inclusion of <locale.h>
544 [__WCHAR_H_SOURCED] (_wcstoi64, _wcstoui64, _wcstoi64_l)
545 (_wcstoui64_l): Make these function prototypes available for selective
547 * include/wchar.h: ...this; merge 2012-08-02 commit.
548 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
549 (_wcstoi64, _wcstoui64): Note availability of function prototypes via
550 selective inclusion of their actual declarations from <stdlib.h>
551 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
552 (_wcstoi64_l, _wcstoui64_l): Likewise.
554 * include/limits.h: Merge 2012-08-02 commit.
555 [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
557 * include/sys/param.h: Merge 2012-08-02 commit.
558 [PATH_MAX not defined] (MAXPATHLEN): Define it explicitly.
559 [PATH_MAX defined] (MAXPATHLEN): Define it as an alias.
561 2016-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
563 Add typedef and access support for opaque locale_t objects.
565 * include/locale.h (locale_t, _locale_t): Define opaque types.
566 [__need_locale_t]: Make them selectively accessible; define...
567 (__have_typedef_locale_t): ...this, when they are available.
568 [_LOCALE_H] (_create_locale, _get_current_locale, _free_locale):
569 Declare function prototypes, on direct <locale.h> inclusion only.
570 [_LOCALE_H || _WCHAR_H] (_wcreate_locale): Likewise; this is to be
571 visible on direct inclusion, or when including <wchar.h>
573 * include/stdio.h [!(_STDIO_H && _WCHAR_T)]: Correct expression of...
574 [__MSVCR80_DLL || _WIN32_WINNT_VISTA]: ...this subsidiary condition;
575 for all cases when this is true, (including when [_STDIO_H] alone)...
576 [!__have_typedef_locale_t] (__need_locale_t): ...define this, and
577 include <locale.h>, for selective definition of...
580 2016-05-19 Keith Marshall <keithmarshall@users.sourceforge.net>
582 Occlude unsupported _S_IFBLK feature; resolve issue [#1146].
584 * include/sys/stat.h (_MINGW_S_IFBLK_KLUDGE): New feature test macro;
585 do not define it, and strongly recommend that it remains undefined.
586 [!_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Do not define them.
587 [!_MINGW_S_IFBLK_KLUDGE] (_S_ISBLK, S_ISBLK): Poison them.
588 [_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Adjust definitions; use a
589 modified value, which is guaranteed to be impossible to match in...
590 [_S_ISBLK, S_ISBLK]: ...these, thus enforcing false test results.
592 2016-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
594 Fix a typo in a <sys/stat.h> inline function definition.
596 * include/sys/stat.h [__MSVCRT_VERSION__ >= __MSVCR80_DLL]
597 (stat): First argument declared as 'int'; should be 'const char *';
600 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
602 Synchronize package version management with Win32-API.
604 * VERSION.m4: New file; link it to keep in sync with identically named
605 file in top level composite package source directory; it defines...
606 (__VERSION__): ...this new composite package version macro.
608 * aclocal.m4: Link it, to keep in sync with identically named files in
609 top level composite source and sibling w32api sub-package directories.
610 (__VERSION__): New macro; include VERSION.m4 to define it.
611 (__BUG_REPORT_URL__): New macro; define it.
613 * configure.ac (AC_INIT): Assign package version and bug report URL...
614 (__VERSION__, __BUG_REPORT_URL__): ...from these, as defined through
615 automatic inclusion of aclocal.m4
617 * Makefile.in (configure): Add dependency on VERSION.m4
619 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
621 Resolve some strnlen() implementation issues.
623 * mingwex/strnlen.s (__mingw_strnlen) [!NUL]: Correct termination
624 logic; should have used jnz, not jz, to skip endpoint adjustment on
625 scanning past a terminal NUL character code.
627 * include/string.h [_POSIX_C_SOURCE >= 200809L] (strnlen): Do not
628 #define it, as this breaks GCC compilation; use __CRT_ALIAS instead,
629 with __JMPSTUB__ referencing via "oldname" libraries.
631 * Makefile.in (jmpstub_awk_script, libimpl_awk_script): Adapt to
632 facilitate assignment of __JMPSTUB__ and __LIBIMPL__ references to
633 libraries other than libmingwex.a
634 (strnlen.jmpstub.$OBJEXT): Assign it to all "moldname" libraries prior
635 to libmoldname80.a, in addition to libcoldname.a, as specified by the
636 __JMPSTUB__ assignment within <string.h>
638 2016-05-03 Keith Marshall <keithmarshall@users.sourceforge.net>
640 Enforce consistent specification of package version.
642 * include/_mingw.h: Rename as...
643 * include/_mingw.h.in: ...this build-time template file.
644 (__MINGW32_VERSION): Redefine it, in terms of...
645 (%PACKAGE_VERSION_LONG%): ...this substitution template.
646 (__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION)
647 (__MINGW32_PATCHLEVEL): Likewise, redefine them in terms of...
648 (%PACKAGE_VERSION_MAJOR%, %PACKAGE_VERSION_MINOR%)
649 (%PACKAGE_VERSION_PATCH%): ...these.
651 * configure.ac (AC_CONFIG_SRCDIR): Adjust for renamed file.
652 (MINGW_AC_CONFIG_EXTRA_SRCDIR): Likewise, for similarly renamed
653 w32api/include/w32api.h.in file.
655 * Makefile.in (all-mingwrt-stage-1-only): Add dependency on...
656 (_mingw.h, w32api.h): ...these; add rule to generate them, using...
657 (PACKAGE_VERSION_SCRIPT, PACKAGE_VERSION_FORMAT): ...these new macros;
658 they apply appropriate substitutions to the renamed template files.
659 (install-mingwrt-headers): Explicitly add _mingwrt.h
661 2016-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
663 Make strnlen() available for all MSVCRT.DLL versions.
665 * msvcrt-xref/msvcrt.def.in (strnlen): Mark it as...
666 (__MINGW_DLSYM): ...this, excluding its exposure in libmsvcrt.dll, and
667 thus requiring a dlsym() lookup for versions which provide it.
669 * include/string.h [__MSVCRT_VERSION__>=__MSVCR80_DLL] (strnlen):
670 Declare prototype, for use from these non-free DLLs, otherwise...
671 [_POSIX_C_SOURCE >= 200809L] (strnlen): Define it as an alias for...
672 (__mingw_strnlen): ...this new libmingwex.a function.
674 * mingwex/strnlen.s: New file; it implements...
675 (__mingw_strnlen, __mingw_strnlen_s): ...these new functions.
677 * Makefile.in (libmingwex.a): Add requirement for...
678 (strnlen.$OBJEXT): ...this; add vpath specification for its source.
680 2016-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
682 Use correct paths for partially included header files.
684 * include/io.h include/process.h: Use 'iquote' #include "stdint.h", to
685 ensure that we get stdint.h from the same include directory.
686 * include/stdio.h: Likewise for #include "stdarg.h", and "sys/types.h"
687 * include/wchar.h: Likewise for all of #include "stdio.h", "stdlib.h",
688 "direct.h", "sys/stat.h", "io.h", "time.h", "locale.h", and "process.h"
689 * include/dir.h include/dos.h: Likewise for #include "io.h"
690 * include/direct.h: Likewise for #include "dos.h"
692 2016-04-13 Keith Marshall <keithmarshall@users.sourceforge.net>
694 Generalize procedure for installing manpages.
696 * man/dirname.man: Rename it as...
697 * man/dirname.3.man: ...this, with inherent MANSECT specification.
698 (TH): Use %PAGEREF% substitution for NAME, MANSECT, and DATE.
699 (MS-Windows): Do not append \[tm]; it doesn't render well in Windows
700 console. Further, correct typos; some syntactic adjustments.
702 * Makefile.in (%:%.man): New rule; define it.
703 (%.mancopy, %.mancopy-recursive): New rules; define and use with...
704 (reference_manpage): ...this new macro, defining it to map...
705 (dirname.3.man): ...this as the reference source file for both of...
706 (basename.3, dirname.3): ...these installed manpages.
707 (format_manpage): Add MANSECT and DATE to expansion of...
708 (%PAGEREF%): ...this sed substitution pattern.
710 2016-04-12 Keith Marshall <keithmarshall@users.sourceforge.net>
712 Update several incorrectly attributed header files.
714 * include/direct.h include/io.h include/locale.h include/math.h
715 * include/process.h include/stdio.h include/stdlib.h include/string.h
716 * include/sys/stat.h include/sys/types.h include/time.h: Identify the
717 original author as Colin Peters; Rob Savoye merely imported them into
718 the original CVS repository, when he created it.
720 * include/wchar.h: Likewise, imported by Rob Savoye, but the original
721 source file is unattributed.
723 2016-04-11 Keith Marshall <keithmarshall@users.sourceforge.net>
725 Eliminate all references to non-standard __NO_ISOCEXT macro.
727 * include/math.h: Tidy layout.
728 [!defined __NO_ISOCEXT]: Do not use this ugly double negative; in any
729 case, we do not want to encourage users to define such implementation
730 private macros; instead, prefer to make use of...
731 [defined _ISOC99_SOURCE]: ...this glibc compatible feature test.
732 [__STDC_VERSION__ >= 199901L]: Do not require this; it is implied, by
733 definition, in _ISOC99_SOURCE.
734 * include/stdio.h [!defined __NO_ISOCEXT]: Likewise; replace with...
735 [defined _ISOC99_SOURCE]: ...this, throughout.
737 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
739 Make resetting of __need_typedef requests more robust.
741 * include/sys/types.h [__need_off_t, __need___off64_t]
742 [__need_ssize_t, __need_time_t]: Move corresponding #undef out of, and
743 after the respective conditional blocks, which provide each associated
744 typedef, so ensuring that any repeat request is properly reset.
746 * include/time.h [__need_time_t]: Always delegate to <sys/types.h> for
747 typedef, and reset of request, even in cases where...
748 [_TIME_H]: ...this is already defined.
750 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
752 Add a missing comment terminator.
754 * include/io.h [!(defined _IO_H && defined _WCHAR_H)]: Properly
755 terminate the comment annotating the closing #endif statement.
757 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
759 Declare <dir.h> as formally deprecated.
761 * include/dir.h: Assert copyright.
762 (pragma GCC system_header): Declare it.
763 (_DIR_H): Define as multiple inclusion macro.
764 [!_DIR_H]: Emit "obsolete header" warning message.
766 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
768 Factor out <wchar.h> vs. <io.h> duplicate declarations.
770 * include/io.h: Assert copyright; tidy layout.
771 (_IO_H_): Rename this multiple inclusion guard macro...
772 (_IO_H): ...to this preferred form; do not define it when...
773 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
774 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
775 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
776 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
777 (_wfindnext64i32, _wfindfirst32, _wfindnext32, _findclose): ...only
778 these function prototypes, common to <wchar.h>, together with...
779 (_fsize_t, struct _wfinddata_t, struct _wfinddatai64_t)
780 (struct __wfinddata64_t, struct _wfinddata64i32_t)
781 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these
782 requisite data type definitions.
783 (pragma GCC system_header): Declare it.
784 (__need_intptr_t): Define, and include <stdint.h> to get...
785 (intptr_t): ...this typedef; neither define it locally, nor define...
786 (_INTPTR_T_DEFINED): ...this; delete all references.
787 (_FSIZE_T_DEFINED): Do not define it; delete all references; rather...
788 [!(defined _IO_H && defined _WCHAR)] (_fsize_t): Define it.
789 (FILENAME_MAX): Define it unconditionally.
790 (__struct_finddata_t): New temporary macro; define and use it to...
791 (struct _finddata_t, struct _wfinddata_t, struct _finddatai64_t)
792 (struct _wfinddatai64_t, struct __finddata64_t, struct __wfinddata64_t)
793 (struct _finddata64i32_t, struct _wfinddata64i32_t)
794 (struct _finddata32i64_t, struct _wfinddata32i64_t)
795 (struct __finddata32_t, struct __wfinddata32_t): ...define these.
797 * include/wchar.h (_WFINDDATA_T_DEFINED): Do not define it; delete all
798 references; filter out associated data type definitions, namely...
799 (struct _wfinddata_t, struct _wfinddatai64_t): ...these, and also...
800 (struct __wfinddata64_t, struct _wfinddata64i32_t): ...these, and...
801 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these.
802 (_WIO_DEFINED): Likewise, do not define it; delete all references;
803 filter out associated function prototype declarations for all of...
804 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
805 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
806 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
807 (_wfindnext64i32, _wfindfirst32, _wfindnext32): ...these; reproduce
808 them by selective inclusion of <io.h>.
810 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
812 Factor out <wchar.h> vs. <process.h> duplicate declarations.
814 * include/process.h: Assert copyright; tidy layout.
815 (_PROCESS_H_): Rename this multiple inclusion guard macro...
816 (_PROCESS_H): ...to this preferred form; do not define it when...
817 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
818 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
819 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
820 (_wspawnve, _wspawnvp, _wspawnvpe): ...only these functions.
821 [!__WCHAR_H_SOURCED__] (_PROCESS_H): Define it; declare all functions
822 normally specified herein, including those listed above, as required.
823 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
824 (__need_intptr_t): Define it prior to including <stdint.h>.
825 (pragma GCC system_header): Declare it.
827 * include/wchar.h (_WPROCESS_DEFINED): Delete it; filter out...
828 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
829 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
830 (_wspawnve, _wspawnvp, _wspawnvpe): ...these function prototypes;
831 reproduce them, by selective inclusion of <process.h>.
833 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
835 Enable selective retrieval of intptr typedefs from <stdint.h>.
837 * include/stdint.h: Assert copyright; tidy layout.
838 [__need_intptr_t || __need_uintptr_t] (_STDINT_H): Do not define it;
839 conceal all normally defined data types, except either or both of...
840 [__need_intptr_t] (intptr_t): ...this, and/or...
841 [__need_uintptr_t] (uintptr_t): ...this.
842 (pragma GCC system_header): Declare it.
844 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
846 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
848 * include/sys/stat.h: Assert copyright; tidy layout.
849 (pragma GCC system_header): Declare it.
850 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
851 (_SYS_STAT_H): ...this preferred naming convention; however, when...
852 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
853 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
854 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
855 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
856 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
857 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
858 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
859 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
860 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
861 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
862 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
863 (__struct_stat_defined): New macro; define, and use it to define...
864 (struct stat, struct _stat, struct _stati64, struct __stat64)
865 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
866 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
867 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
868 definition of types size_t and wchar_t; declare all header content,
869 including that declared when __WCHAR_H_SOURCED__ is defined, unless
870 already declared as a result of selective inclusion by <wchar.h>
871 (__need_size_t, __need_wchar_t): Do not define them; consequently,
872 there is no need to include <stddef.h>; do not do so.
874 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
875 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
876 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
877 (struct _stat64i32): Likewise; reproduce them by selective inclusion
880 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
882 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
884 * include/direct.h: Conditionally partition it, such that...
885 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
886 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
887 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
888 (_WDIRECT_DEFINED): Never define it; delete all references.
890 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
891 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
892 selectively #include <direct.h> to reproduce them.
894 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
896 Factor out <direct.h> vs. <dos.h> duplicate declarations.
898 * include/dos.h: Assert copyright; tidy layout.
899 (pragma GCC system_header): Declare it.
900 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
901 (_DOS_H): ...this preferred convention; do not define it when...
902 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
903 (struct _diskfree_t): ...this aggregate data type, together with...
904 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
905 (_getdiskfree): ...this associated function.
906 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
907 emit a warning that this header is obsolete, and should not be used.
908 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
909 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
910 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
911 neither is it necessary to #include <stddef.h>; do not do so. Also,
912 do not #include <_mingw.h> explicitly, but always #include <io.h>,
913 which will implicitly #include <_mingw.h> anyway.
915 * include/direct.h: Assert copyright; tidy layout.
916 (pragma GCC system_header): Declare it.
917 (_DIRECT_H_): Rename this multiple inclusion guard macro...
918 (_DIRECT_H): ...to adopt this preferred naming convention.
919 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
920 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
921 (_getdiskfree): Likewise, do not declare prototype; instead...
922 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
923 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
924 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
925 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
926 although needed, we may inherit it indirectly from <sys/types.h>,
927 included by <io.h> via <dos.h>.
929 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
931 Evade CPP mismatched apostrophe warnings in windres comments.
933 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
935 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
937 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
939 * include/locale.h: Assert copyright; tidy layout.
940 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
941 (_LOCALE_H): ...this; do not define it when...
942 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
943 (_wsetlocale): ...just this one visible function prototype.
944 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
945 (_WLOCALE_DEFINED): Do not define it; delete all references.
946 (pragma GCC system_header): Declare it.
948 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
949 visibility by selective inclusion of <locale.h> instead.
950 (_WLOCALE_DEFINED): Delete all references.
952 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
954 Resolve some "implicit function declaration" warnings.
956 * setargv.c (isspace): Include <ctype.h> for declaration.
957 * cpu_features.h (__cpu_features_init): Declare function prototype.
958 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
960 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
962 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
964 * include/stdlib.h [__WCHAR_H_SOURCED__]
965 (_STDLIB_H): Do not define it; restrict visible declarations to...
966 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
967 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
968 of regular <stdlib.h> content; full content is declared only when...
969 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
970 (_WSTDLIB_DEFINED): Do not define it; delete all references.
971 (pragma GCC system_header): Declare it; tidy layout.
973 * include/wchar.h: Delete duplicated declarations for...
974 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
975 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
976 include <stdlib.h> selectively, to maintain their visibility.
977 (_WSTDLIB_DEFINED): Delete all references.
979 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
981 Relocate misplaced umask() function prototypes.
983 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
984 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
985 here, but leave them for backward, or Microsoft, compatibility.
987 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
989 Correct another _BEGIN_C_DECLS imbalance error.
991 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
992 unbalanced instance deleted; one correctly balanced instance remains.
994 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
996 Support installation of headers with empty parts directory.
998 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
999 (install-mingwrt-headers): ...invoke it; if false, do not perform...
1000 (INSTALL_SUB_HEADERS): ...this.
1002 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1004 Reinstate typedef for non-standard off64_t.
1006 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
1007 (__off64_t): ...typedef derived from this; although non-standard, it
1008 is gratuitously required when building GCC's libgfortran.a
1010 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1012 Correct conditional compilation block nesting errors.
1014 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
1015 them balanced within, and around, conditional compilation blocks.
1017 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1019 Feature test _MINGW32_EXTENDED_SOURCE renamed.
1021 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
1022 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
1023 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
1024 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
1025 users should enable any conventional feature test which implies it.
1027 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
1028 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
1030 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1032 Correct atexit() and _onexit() export declaration regression.
1034 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
1035 as DATA; declare them accordingly.
1037 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1039 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
1041 * include/string.h: Tidy layout.
1042 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
1043 (_stricmp, _strnicmp): Include their prototypes, selectively from...
1044 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
1045 * include/parts/strings.h: ...from here; file is obsolete; delete it.
1047 * include/string.h (_wcscmpi): Define alias.
1048 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
1049 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
1050 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
1051 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
1052 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
1053 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
1054 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
1055 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
1057 * include/strings.h (_STRINGS_H): Do not define it, when...
1058 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
1059 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
1061 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1063 Refactor to make <parts/time.h> redundant.
1065 * include/sys/types.h (time_t, __time32_t, __time32_t)
1066 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
1067 * include/parts/time.h: ...from here; preserve selective exposure.
1069 * include/time.h (time_t, __time32_t, __time32_t): Get them...
1070 * include/sys/types.h: ...from here, by selective inclusion.
1072 * include/time.h (struct timespec, struct __mingw_extended_timespec)
1073 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
1074 * include/parts/time.h: ...from here; preserve selective exposure.
1076 * include/parts/time.h: Delete file; it is no longer required.
1078 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1080 Declare the nanosleep() function where POSIX expects it.
1082 * include/time.h (__mingw_sleep): Declare function prototype.
1083 (nanosleep): Declare prototype, and provide in-line implementation;
1084 this is a reproduction of the original implementation, relocated...
1085 * include/unistd.h (nanosleep): ...from here; remove it; hence...
1086 (struct timespec): ...this need not be declared here, and there is
1087 no need to include <parts/time.h>; remove reference.
1089 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1091 Refactor <time.h> vs. <wchar.h> to avoid duplication.
1093 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
1094 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
1095 (struct tm): Delete definition; delegate it, together with each of...
1096 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
1097 (wcsftime): ...these function prototypes; delete them, but note in
1098 comments, that they remain declared, via delegation to...
1099 * include/time.h: ...this; include it selectively, subject to...
1100 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
1101 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
1102 [_TIME_H]: Process all definitions and declarations; otherwise...
1103 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
1104 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
1105 (_WTIME_DEFINED): Obsolete macro; delete all references.
1107 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1109 Implement support for POSIX "%n$*m$" printf() format control.
1111 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
1112 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
1113 (__pformat_inline__): New macro; define, and use it where appropriate.
1114 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
1115 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
1116 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
1117 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
1118 (__pformat_argmap_t): ...this new union data type; define it.
1119 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
1120 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
1121 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
1122 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
1123 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
1124 (__pformat_length_modifier, __pformat_check_length_modifier): New
1125 locally defined static and/or inline functions; implement, and...
1126 (__pformat): ...use them.
1128 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1130 Add prototypes for Microsoft's _printf_p() family of functions.
1132 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
1133 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
1134 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
1135 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
1136 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
1137 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
1138 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
1139 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
1140 available for selective inclusion by both <stdio.h> and <wchar.h>...
1141 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
1143 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1145 Adapt msvcrt-xref to become msvcrt.def.in provider.
1147 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
1148 filter value assignment; scale it upwards, by a factor of 0x10000.
1149 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
1150 (%.def) [msvcr*]: Do not preserve comments; define...
1151 (__DLLNAME__): ...this preprocessor symbol.
1153 * msvcrt.def.in: Content is obsolete; delete file and replace with...
1154 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
1155 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
1156 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
1157 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
1158 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
1160 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1162 Import msvcrt-xref documentation resources.
1164 * msvcrt-xref: New directory.
1165 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
1166 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
1167 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
1168 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
1170 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1172 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
1174 * include/wchar.h: Some minor layout adjustments.
1175 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
1176 within the scope of reading <wchar.h>; undefine it at end of file.
1177 (struct tm): Do not define; it is sufficient to keep it opaque.
1178 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
1179 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
1180 directly; delegate to indirect definition by including <stdio.h>.
1181 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
1182 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
1183 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
1184 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
1185 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
1186 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
1187 indirectly, by selective inclusion from <stdio.h>; hence include it.
1189 * include/stdio.h: Assert copyright; tidy layout.
1190 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
1191 (_STDIO_H): ...this, but defined conditionally, subject to...
1192 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
1193 entities which are required by <wchar.h>; do not define...
1194 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
1195 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
1196 are normally specified within <stdio.h>, INCLUDING those specifically
1197 itemised above, as selectively required by <wchar.h>.
1199 * pseudo-reloc.c: Some minor layout adjustments.
1200 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
1201 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
1202 include <stddef.h> to guarantee it.
1204 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1206 Enable selective definition of POSIX system types.
1208 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
1209 any specific __need_TYPE selector having been set prior to inclusion;
1210 DO define it when no such selector is present, and undefine all such
1211 selectors as may have been set, after evaluation of their effects.
1212 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
1213 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
1214 accommodates reorganization of the file, to achieve a tidier layout.
1215 (__have_typedef_off_t): New repeat definition guard; define it for
1216 compilers which may choke on any repeated typedef for either of...
1217 (off_t, _off_t): ...these; make them selectively defineable for...
1218 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
1219 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
1220 in either case, redefine them in terms of...
1221 (__off32_t): ...this new internal type, for consistency with...
1222 (__off64_t): ...this previously defined non-standard type; also make
1223 it selectively defineable, either by...
1224 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
1225 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
1226 (__have_typedef___off64_t): New repeat definition guard; define it.
1227 (ssize_t, _ssize_t): Also make them selectively defineable, on...
1228 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
1229 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
1230 (__have_typedef_ssize_t): New repeat definition guard; define it.
1232 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1234 Avoid user namespace pollution by non-standard type 'off64_t'.
1236 * include/sys/types.h (off64_t): Rename it as...
1237 (__off64_t): ...this implementation-private alternative name, so
1238 eliminating the potential for user namespace pollution.
1240 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
1241 return type, and type of offset argument, in both prototype and inline
1242 implementation; note that this addresses the issue of pollution in the
1243 user namespace, while avoiding the issue of MinGW-Bug [#2024].
1245 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
1246 instead of 'off64_t', as offset argument type in function prototypes.
1247 (ftello64): Likewise, for return type of inline function.
1249 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
1250 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
1251 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
1253 * mingwex/stdio/fseeko64.c: Assert copyright.
1254 (fseeko64): Use '__off64_t' per modified function prototype.
1256 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1258 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
1260 * mingwex/ofmtctl.c: New file; it implements...
1261 (_mingw_output_format_control): ...this new function; it provides
1262 additional MinGW specific printf() format processing options.
1264 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
1266 * include/stdio.h (_mingw_output_format_control): Declare it.
1267 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
1268 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
1269 manifest constant expressions; define them.
1271 * mingwex/stdio/pformat.c: Revise licensing terms.
1272 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
1273 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
1274 modifier; this matches the behaviour specified by ISO-C99, else...
1275 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
1276 previous MSVC compatible behaviour, treating it as an `L' modifier.
1277 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
1279 * mingwex/ofmt.c (ARGLIST): Subsume references to...
1280 (ARGTYPE): ...this now obsolete macro; delete it throughout.
1281 (update_output_format_flag): New inline function; it restricts flag
1282 operations to affect only Microsoft's exponent digit bits.
1283 [FUNCTION == _set_output_format]: Use it.
1284 [FUNCTION == _get_output_format]: Likewise.
1286 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1288 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
1290 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
1291 defined, when implied by any STDC or POSIX version selection, viz. ...
1292 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
1294 * include/stdlib.h: Assert copyright; tidy layout.
1295 (_STDLIB_H_): Multiple inclusion guard macro renamed...
1296 (_STDLIB_H): ...to this, preferring no trailing underscore.
1297 [!defined __NO_ISOCEXT]: Delete double negative references; use...
1298 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
1299 (lldiv_t): ...defining this C99 specific aggregate data type, and...
1300 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
1301 (wcstold, _Exit): ...declaring these C99 function prototypes.
1302 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
1303 future removal; not in MSVCRT.DLL, these conform to no known standard.
1304 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
1305 (__strtod): ...this libmingwex.a provided function; it handles string
1306 representations of hexadecimal-floats, infinities and NaNs, whereas...
1307 (strtod): ...this MSVCRT.DLL implementation does not.
1308 (__MSVCRT_VERSION__): Prefer symbolic comparison...
1309 [>= __MSVCR80_DLL]: ...for this requirement.
1311 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1313 Rationalize definition of struct timespec.
1315 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
1316 tv_sec field, in place of anonymous union, thus avoiding missing brace
1317 warnings when initializing; leave a copy of the previous definition...
1318 (struct __mingw32_expanded_timespec): ...named thus.
1320 * include/unistd.h (nanosleep): Adjust inline implementation, to match
1321 altered specification of tv_sec field in struct timespec.
1323 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
1324 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
1326 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
1327 convenience function; defined as inline, with __LIBIMPL__ equivalent,
1328 it facilitates interpretation of an instance of struct timespec as if
1329 it were defined as struct __mingw32_expanded_timespec.
1331 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1333 Make strings.h mostly POSIX.1-2008 compliant.
1335 * include/strings.h: Rewritten. Do not include...
1336 (string.h): ...this; mandated by POSIX.1, it now defines...
1337 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
1338 prototypes, possible in-line implementations, and JMPSTUB references
1339 to corresponding external implementations, which will now become
1340 automatically created within libmingwex.a
1342 * include/parts/strings.h: New file; it declares prototypes for...
1343 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
1344 string.h, but we also require them in strings.h
1346 * include/parts/wchar.h: New file; it declares prototypes for all wide
1347 character functions which MSVC specifies in both wchar.h and string.h
1349 * include/string.h: Miscellaneous layout adjustments.
1350 (strcasecmp, strncasecmp): Delete; they belong in strings.h
1351 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
1352 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
1353 include them from parts/wchar.h instead.
1355 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
1356 prototypes; include them from parts/wchar.h instead, so making this
1357 guard macro redundant; delete it.
1359 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
1360 (wcscmpi.$OBJEXT): Implementations are now automatically generated
1361 from header file, for inclusion in libmingwex.a; remove free-standing
1362 implementations from the entire family of liboldname libraries, and...
1363 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
1364 files; they are no longer required.
1366 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1368 Incorporate build system updates from w32api package.
1370 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
1371 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
1372 (install-strip, uninstall): New make command goals; implement them.
1373 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
1374 (devdist, dlldist): ...these have no need to strip explicitly.
1375 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
1376 (install-mingwrt-headers): ...here.
1378 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1380 Adapt platform feature checks to NTDDI_VERSION conventions.
1382 * include/_mingw.h: Assert copyright; include w32api.h
1383 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
1384 to w32api/include/w32api.h, whence they remain in effect.
1385 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
1387 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1389 Correct mismatched #if/#endif from preceding commit.
1391 * include/_mingw.h (#pragma GCC system_header)
1392 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
1393 correcting for inadvertent removal of matching #endif introduced by
1394 preceding 2015-06-19 commit.
1396 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1398 Define symbolic names for alternative Microsoft runtime DLLs.
1400 * include/msvcrtver.h: New file; it assigns a value for...
1401 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
1402 (__MSVCR60_DLL): ...this new manifest constant, with each of...
1403 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
1404 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
1405 ...these also defined, as user assignable alternatives.
1407 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
1408 to establish its default value.
1410 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1412 Track dependencies on modified system header files.
1414 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
1416 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1418 Correct an anomaly in stage 1 only build procedure.
1420 * Makefile.in (all-gcc): New goal; it is an alias for...
1421 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
1422 (all-mingwrt-stage-1-only): ...this; upate all references.
1423 (active-goals): Adjusted accordingly; it now reguires...
1424 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
1425 (install): Adjusted, as directed by...
1426 (DEFAULT_MAKECMDGOALS): ...this.
1428 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1430 Prefer our hypot() implementation in complex maths operations.
1432 * mingwex/complex/cabs_generic.c: New file; it replaces...
1433 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
1434 * mingwex/complex/cabsl.c: ...these.
1436 * mingwex/complex/catan_generic.c: New file; it replaces...
1437 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
1438 * mingwex/complex/catanl.c: ...these.
1440 * mingwex/complex/clog_generic.c: New file; it replaces...
1441 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
1442 * mingwex/complex/clogl.c: ...these.
1444 * mingwex/complex/cpow_generic.c: New file; it replaces...
1445 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
1446 * mingwex/complex/cpowl.c: ...these.
1448 * mingwex/complex/csqrt_generic.c: Do not use...
1449 (_hypot): ...this Microsoft form of function reference; use...
1450 (hypot): ...this ANSI standard form instead.
1452 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1454 Correct C++ compilation anomaly with hypotf() in cmath header.
1456 * include/math.h: Add copyright notice; generally tidy layout.
1457 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1458 (hypotf): Delete inline implementation; it did not properly handle
1459 range errors, and was uncompilable with optimization when any g++
1460 option implying __STRICT_ANSI__ conformity was specified.
1461 (_MATH_H_): Rename this multiple inclusion guard...
1462 (_MATH_H): ...to this.
1464 * mingwex/math/hypot_generic.c: New file; it implements...
1465 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
1466 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
1468 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1470 Prepare and tag all files for release of mingwrt-3.21.1.
1472 * configure.ac (AC_INIT): Adjust package version argument.
1473 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
1474 (__MINGW32_VERSION): ...increment this to match.
1476 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1478 Refactor to avoid possible time_t conflicts across headers.
1480 * include/parts/time.h (struct timespec): Make it more descriptive of,
1481 and better able to accommodate, potential ambiguity relating to...
1482 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
1483 whence they may be identically imported into each of...
1484 * include/sys/types.h include/time.h include/wchar.h: these; delete
1485 duplicate typedefs, and import accordingly.
1487 * include/sys/types.h: Add licence; general comment additions.
1488 (_TYPES_H_): Rename multiple inclusion guard macro...
1489 (_SYS_TYPES_H): ...to this.
1491 * include/time.h: Add licence; general comment/layout adjustments.
1492 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1493 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
1494 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
1495 (_TIME_H_): Rename multiple inclusion guard macro...
1496 (_TIME_H): ...to this.
1498 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
1499 (struct timespec): ...of this.
1501 * include/wchar.h: Add licence; general comment/layout adjustments.
1502 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1503 [GCC] (system_header): Add pragma, identifying header as such.
1504 (_WCHAR_H_): Rename multiple inclusion guard macro...
1505 (_WCHAR_H): ...to this.
1507 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1509 Remove obsolete varargs.h header file.
1511 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
1512 a GCC header which is no longer supported, and was always intended for
1513 ultimate removal; now is the long overdue time to do so.
1515 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1517 Correct improper unistd.h function attribute declarations.
1519 * include/unistd.h (_cdecl): Correct usage throughout; should be...
1522 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1524 Fix GLOB_DOOFFS initialization bug.
1526 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
1527 (gl_data->gl_offs): ...this is properly initialized to zero.
1529 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1531 Tag all files for release of mingwrt-3.21.
1533 * include/_mingw.h: Adjust version accordingly.
1535 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1537 Improve usage notes in stdlib.h, for mkstemp() function.
1539 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
1540 an original comment, explaining the need to use _O_TEMPORARY, from...
1541 * mingwex/mkstemp.c: ...here; delete trailing white space.
1543 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1545 Eliminate some potential definition inconsistencies.
1547 * include/stdio.h: Cosmetic formatting change, relating to...
1548 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
1549 unconditionally; this allows the compiler to check for consistency
1550 with their primary definitions in stdio.h
1552 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1554 Suppress expected warning diagnostics in LIBIMPL builds.
1556 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
1557 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
1558 GCC flag to supress warnings relating to deprecated declarations.
1560 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1562 Provide more POSIX conforming sleep() functions.
1564 * include/sys/types.h (useconds_t): Make it explicitly long; int may
1565 be okay, but doesn't guarantee enough bits; mark as deprecated, since
1566 POSIX has declared it "obsolete", and no longer specifies it.
1568 * mingwex/usleep.c: Delete file; it provided an implementation of...
1569 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
1570 its error handling was hopelessly broken; replace it with...
1571 * mingwex/nsleep.c: ...this new file; it implements...
1572 (__mingw_sleep): ...this generic helper function; it supports sleep
1573 capability with interval specification to nanosecond precision.
1575 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
1576 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
1577 (sleep, nanosleep): ...these current POSIX functions, and also...
1578 (usleep): ...this obsolete one; mark it as deprecated.
1580 * include/parts: New directory; it is intended to host partial header
1581 implementations, for content which must be shared among arbitrary sets
1582 of multiple standard header files.
1584 * include/parts/time.h: New file; nominally declaring time.h content.
1585 (struct timespec): Declare it; it is currently used within unistd.h,
1586 to facilitate the __CRT_INLINE implementation of nanosleep().
1588 * Makefile.in (libmingwex.a): Remove reference to...
1589 (usleep.$OBJEXT): ...this; replace it with a reference to...
1590 (nsleep.$OBJEXT): ...this alternative.
1591 (mingwrt-includedirs): Add prerequisite to create...
1592 ($includedir/parts): ...this new directory; it is populated by...
1593 (install-mingwrt-headers): ...this rule; add requisite command.
1595 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1597 Delete an unnecessary Unicode wrapper file.
1599 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
1600 UTF-16LE API from dirent.c, without any need for this wrapper.
1602 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1604 Some further inline function rationalization.
1606 * include/io.h (_CRTALIAS): Replace all references...
1607 (__CRT_ALIAS): ...using this syntactically preferred form.
1608 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
1609 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1611 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
1612 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1614 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
1615 * mingwex/ftruncate.c: Likewise.
1617 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1618 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
1620 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1622 Some POSIX feature test adjustments.
1624 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
1625 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
1626 (mkdtemp): This didn't become available until SUSv4, so requires...
1627 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
1629 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1631 Another CRT_INLINE function implementation rationalization.
1633 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
1634 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
1635 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1637 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
1638 (libmingwex.a): Delete obsolete dependency on...
1639 (imaxabs.$OBJEXT): ...this.
1641 * mingwex/imaxabs.c: File is now redundant; delete it.
1643 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1645 More rationalization of CRT_INLINE function implementations.
1647 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
1648 (ftello64): Add __LIBIMPL__ specification for extern implementation.
1649 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1651 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
1652 * mingwex/stdio/ftell064.c: Likewise.
1654 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1655 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
1657 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1659 Don't implicitly define _POSIX_C_SOURCE too early.
1661 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
1662 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
1663 that it is not accidentally activated by implied _POSIX_C_SOURCE.
1665 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1667 Correct complex arcsin computation per issue [#2245].
1669 * mingwex/complex/casin_generic.c: New file; it replaces...
1670 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
1671 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
1673 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1675 Correct complex square root computation per issue [#2246].
1677 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
1678 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
1679 (hypot): ...this libmoldname.a indirection.
1681 * mingwex/complex/csqrt_generic.c: New file; it replaces...
1682 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
1683 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
1685 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1687 Adjust header guards to resolve issue [#2244].
1689 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
1690 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
1691 ...when any of these prevail, or as appropriate to correspond with...
1692 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
1694 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
1695 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
1696 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
1697 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
1699 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1701 Add implementation of mkstemp() and mkdtemp() functions.
1703 * mingwex/cryptnam.c: New file; it implements...
1704 (__mingw_crypto_tmpname): ...this helper function; it generates a
1705 cryptographically secure sequence of characters, used as the random
1706 component in temporary file and directory names.
1708 * mingwex/mkstemp.c: New file; it implements...
1709 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
1711 * mingwex/mkdtemp.c: New file; it implements...
1712 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
1714 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
1715 function implementation, with LIBIMPL extern semantics, in terms of...
1716 (__mingw_mkstemp): ...this; also declare prototype, and define...
1717 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
1718 (_MKSTEMP_SETMODE): New macro; define it, also providing...
1719 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
1720 (mkdtemp): Declare prototype; provide inline implementation, with
1721 JMPSTUB extern semantics, in terms of...
1722 (__mingw_mkdtemp): ...this; declare prototype.
1724 * Makefile.in (libmingwex.a): Add dependency rule, to include...
1725 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
1727 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1729 More JMPSTUB rationalization of inline functions.
1731 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
1732 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
1733 appropriate MSVCRT.DLL equivalent entry point.
1735 * mingwex/_Exit.c: File is now redundant; delete it.
1736 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
1737 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
1739 * Makefile.in (jmpstub_awk_script): Add support for...
1740 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
1741 (libmingwex.a): Remove dependencies on deleted files, namely...
1742 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
1743 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
1745 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1747 Correct omission of complex conjugate functions from libmingwex.a
1749 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
1750 (creal, crealf, creall): Likewise, for consistency of implementation.
1751 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
1753 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
1754 declarations; they should be interpreted analogously to __CRT_ALIAS.
1755 (libmingwex.a): Remove object file references for functions which are
1756 now declared as LIBIMPL, and sort the remainder in ASCII collating
1757 order; deleted function references comprise the set consisting of...
1758 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
1759 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
1760 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
1762 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
1763 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
1764 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
1765 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
1766 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
1768 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1770 Back-port improved asinh() implementation from 4.0-dev branch.
1772 * mingwex/math/asinh_generic.c: New file; it replaces...
1773 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
1774 ...all of these; delete them.
1776 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1778 Enable remake of lost LIBIMPL object files.
1780 * Makefile.in (libimpl_remake): New macro; define it, and...
1781 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
1783 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1785 Implement more robust _get_output_format fallback handling.
1787 * mingwex/ofmt.c: New file; it implements...
1788 (__mingw_output_format_flag): ...backing store, used by...
1789 (__mingw_get_output_format, __mingw_set_output_format): ...these
1790 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
1791 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
1792 version specific Microsoft APIs, which are also supported by some
1793 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
1794 (__mingw_get_output_format_fallback): Implement; it is aliased to...
1795 (__mingw_set_output_format_fallback): ...this; together they provide
1796 the emulation support for the preceding pair of functions, when they
1797 are not available within the run-time platform MSVCRT.DLL
1798 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1799 Implement them; they wrap, and if necessary emulate...
1800 (_get_printf_count_output, _set_printf_count_output): ...these.
1801 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
1802 (__mingw_set_printf_count_output_fallback): ...this; together they are
1803 required to support emulation of the preceding pair of functions, when
1804 they are not available within the run-time platform MSVCRT.DLL
1806 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
1807 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
1808 (__mingw_get_output_format, __mingw_set_output_format)
1809 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1810 Unconditionally declare their prototypes, for subsequent inline use.
1811 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
1812 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
1813 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
1814 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
1815 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
1816 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
1817 represent a compilable token.
1819 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
1820 _get_output_format; consult __mingw_output_format_flag directly.
1822 * ofmt_stub.s: No longer required; delete it.
1824 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
1825 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
1826 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
1827 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
1828 all are compiled from ofmt.c
1830 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1832 Do some more essential build tree clean up.
1834 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
1835 in the way of a successful rebuild from clean.
1837 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1839 Implement wrappers for emulation of POSIX dlfcn API.
1841 * include/dlfcn.h: New file; it declares the API.
1842 * mingwex/dlfcn.c: New file; implement it, with access via...
1843 (__mingw_dlfcn): ...this publicly addressable vector table.
1845 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1846 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1847 (__LIBIMPL__): ...this automatic interface generator; implement it.
1848 (libstub_refnames): New macro; it is adapted from and replaces...
1849 (jmpstub_refs): ...this; when it is then invoked twice to build...
1850 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1851 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1852 (libimpl_awk_script): New inline script; it handles automated builds
1853 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1854 (libimpl_sed_script): New inline script; it prepares intermediate C
1855 source code for LIBIMPL interfaces, as required to satisfy these...
1856 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1857 (LIBIMPL_CFLAGS): New macro; define it.
1859 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1861 Move libgen functions to __mingw_ pseudo-namespace.
1863 * mingwex/dirname.c (dirname): Rename function, as implemented...
1864 (__mingwex_dirname): ...to this.
1866 * mingwex/basename.c (basename): Rename function, as implemented...
1867 (__mingwex_basename): ...to this.
1869 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1870 prototypes, matching and augmenting original declarations for...
1871 (dirname, basename): ...these; reimplement as inline aliases, with
1872 __JMPSTUB__ references to the renamed implementation entry points.
1874 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1876 Implement new command line argument globbing strategy.
1878 * include/_mingw.h: Backport feature defines from master...
1879 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1880 constants; define them. They select the preferred globbing algorithm.
1881 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1882 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1883 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1884 they enable optional additional features supported by this algorithm.
1885 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1887 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1889 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1890 * setargv.c: ...new file; it implements the initialization mechanism
1891 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1892 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1893 it invokes the algorithm via an API similar to that described by MSDN,
1894 while continuing to support our original _CRT_glob interpretation.
1895 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1896 algorithm, via the MSDN-alike API, by calling back to...
1898 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1899 relocated to here, as a publicly addressable function; formerly...
1900 (__mingw_CRTStartup): ...called directly from here, we now redirect
1901 the call through _setargv(), whence it may be called indirectly.
1903 * init.c: Redundant file; delete it. It originally provided...
1904 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1905 original static attribute removed, to allow global addressing.
1907 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1909 Backport glob implementation from master to legacy.
1911 * include/glob.h: New file; copy it from master branch.
1912 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1913 (glob, globfree): ...each of these, respectively.
1915 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1916 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1917 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1918 (accept_glob_nocheck_match): New static function; it adds support for
1919 avoidance of globbing on patterns with no globbing token, so avoiding
1920 the case transliteration effect reported as MinGW-Bug #2106.
1921 (glob_match): Use it.
1923 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1925 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1927 Implement conventionally named dirent function trampolines.
1929 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1930 which redirects a conventionally named function call to its __mingw_
1931 pseudo-namespace implementation.
1933 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1934 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1935 appropriate protocol for compiling *.sx files, (supported natively by
1936 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1938 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1939 yet provide it, so we define it ourselves; deploy it for *.sx files.
1940 (Makefile.stub): New sinclude file; create it dynamically, using...
1941 (jmpstub_awk_script): ...this new inline script, which is based on...
1942 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1943 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1944 (mostlyclean-local): Remove Makefile.stub; do likewise...
1945 (Makefile): ...when remaking this, to ensure that both will be
1948 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1950 Make dirent implementation namespace and time_t clean.
1952 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1953 macros; define them. They facilitate identification of symbols which
1954 must be compiled with `extern "C"' binding, when compiling C++ code.
1955 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1956 (_CRTALIAS): ...this, which is to be considered as deprecated.
1957 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1958 __CRT_ALIAS build hints, while remaining transparent to GCC.
1959 (UNICODE, _UNICODE) [user defined]: Define consistently.
1961 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1962 4.0-dev branch, with additional ABI changes to improve stability).
1963 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1964 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1965 Add `__mingw_' prefix to all publicly exposed symbol names.
1966 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1967 implemented functions; they replace Microsoft's ambiguously defined
1968 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1969 resulting from the ambiguous size of Microsoft's time_t.
1971 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1972 removing unnecessary time_t and file size fields; (our replacements
1973 for _findfirst, and _findnext do not require them to be present).
1974 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1975 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1976 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1977 Adjust prototypes, making them inline aliases for public symbols which
1978 are now qualified by the `__mingw_' prefix; add build hints to support
1979 compilation of addressable stubs, with the original symbol names.
1980 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1981 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1982 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1983 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1984 New macros; define them. (These show availability of optional fields
1985 within the dirent struct, which client code may wish to access).
1987 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1989 Correct improper naming of assembly language source files.
1991 * mingwex/math/*.S: Rename all files with this extension...
1992 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1993 not extended `assembler-with-cpp' as implied by the former extension);
1994 adjust all internal `.file <name>' references accordingly.
1996 * Makefile.in (vpath %.S): Adjust reference to locate files....
1997 (vpath %.s): ...now renamed thus.
1999 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2001 Streamline the build system infrastructure.
2003 * configure.ac: New file; it replaces...
2004 * configure.in: ...this; (name is obsolete); delete it.
2006 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
2007 make invocations, when processing subdirectories, and add automatic
2008 dependency tracking for all generated files.
2010 * configure: Delete it; as a generated file, it doesn't belong in SCM.
2012 * mingwex/Makefile.in: No longer required; delete it.
2013 * profile/Makefile.in: Likewise.
2015 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
2016 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
2018 * jamfile: Delete it; it hasn't been updated in ages, is likely no
2019 longer relevant, and I have no desire to maintain it.
2021 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
2023 Add another more rigorous __STRICT_ANSI__ filter.
2025 * include/limits.h [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
2026 * include/sys/param.h [PATH_MAX defined] (MAXPATHLEN): Alias it.
2027 [PATH_MAX not defined] (MAXPATHLEN): Define it directly.
2029 2012-08-02 Ivan Maidanski <ivmai@users.sourceforge.net>
2031 Add missing function prototypes per issue [#1305].
2033 * include/process.h [#ifndef _WPROCESS_DEFINED]
2034 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve)
2035 (_wexecvp, _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe)
2036 (_wspawnv, _wspawnve, _wspawnvp, _wspawnvpe): Declare them.
2038 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
2040 Add function prototype declarations per issue [#1293].
2042 * include/stdio.h (_lock_file, _unlock_file): Declare them.
2044 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
2046 Apply some more rigorous __STRICT_ANSI__ filtering.
2048 * include/stdio.h (_getws, _putws, _wfdopen, _wfopen)
2049 (_wfreopen, _wfsopen, _wtmpnam, _wtempnam, _wrename, _wremove)
2050 (_wperror, _wpopen): Do not declare these functions unless...
2051 [#ifndef __STRICT_ANSI__]: ...this is satisfied.
2053 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
2055 Add string to 64-bit integer conversion function prototypes.
2057 * include/stdlib.h (_strtoi64, _strtoi64_l, _strtoui64, _strtoui64_l)
2058 (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l): Declare them.
2059 * include/wchar.h (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l):
2060 Likewise; these are duplicates of the <stdlib.h> declarations.
2062 2012-08-01 Earnie Boyd <earnie@users.sourceforge.net>
2064 Update for _WIN64 exception handler readiness.
2066 * include/excpt.h [_WIN64] (__try1, __except1): Add alternative inline
2067 assembly code implementation, based on X86-64 architecture.
2069 2012-07-30 Earnie Boyd <earnie@users.sourceforge.net>
2071 Correct missing inclusion of <_mingw.h>.
2073 * include/stdint.h: Add omitted #include; all mingwrt headers are
2074 expected to include this; it is required to define __int64.
2076 2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>
2078 Correct prototypes for _wfindfirst()/_wfindnext() function family.
2080 * include/io.h (_wfindfirst, _wfindfirst32, _wfindfirsti64)
2081 (_wfindfirst32i64, _wfindfirst64i32): Return type changed to intptr_t.
2082 (_wfindnext, _wfindnext32, _wfindnexti64, _wfindnext32i64)
2083 (_wfindnext64i32, _wfindnext64): Type of parameter #1 must match.
2085 2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
2087 Avoid potential GCC "missing function prototype" warnings.
2089 * include/stdio.h (getc, putc, getchar, putchar, fopen64)
2090 (ftello64): Provide a function prototype declaration for each of
2091 these, prior to the corresponding inline implementation.
2093 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2095 * include/_mingw.h: Increment version to 3.20.
2097 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2099 * tlsmthread.c: Update to reflect changes in tlssup.c.
2100 * tlssup.c: code clean-up.
2102 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2104 * include/_mingw.h: Increment version to 3.19.
2106 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2108 * include/float.h: Modify guard to accomodate CLang.
2110 Thanks to Ruben Van Boxem for the report.
2112 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2114 * tlssup.c: Remove mingwm10.dll fallback.
2116 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2118 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
2120 Thanks to bvassche for the report.
2122 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2124 Correct checking for short option matches in getopt_long_only().
2126 * mingwex/getopt.c (getopt_verify): New static inline function.
2127 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
2128 possible short option match after failing to match, or ambiguously
2129 matching as a long option.
2131 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2133 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
2135 Thanks to cgf for the report.
2137 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2139 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
2140 compiles with __STRICT_ANSI__.
2142 Thanks to Felipe Contreras for the report.
2144 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2146 * include/stdlib.h (strtod): Remove possible static declaration to resolve
2149 Thanks to Tobias Burnus for the report.
2151 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2153 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
2154 by wrapping the functions in brackets.
2156 Thanks to Kai Tietz for the report.
2158 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
2160 * Makefile.in: Add support for msvcr100.dll.
2161 * msvcrt.def.in: Ditto.
2163 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
2165 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
2166 not always available, go the long way and use the explicit named union
2167 members, which are also declared in winnt.h.
2169 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
2171 * mingwex/isblank.c: Fix typo in declaration.
2173 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
2175 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
2176 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
2177 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
2178 is included before <ctype.h>.
2180 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2182 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
2184 Thanks to Jim Bell for the report and Greg Chicares for the fix.
2186 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
2188 Correct hexadecimal formatting of double and long double values.
2190 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
2191 (__pformat) [A format]: Cast double values to long double, and use...
2192 (__pformat_xldouble): ...this instead, with corrected adjustment of
2193 exponent and alignment of mantissa, when formatting subnormals.
2195 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
2197 * include/dirent.h (dd_handle): Define as intptr_t.
2199 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
2201 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
2204 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2206 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
2207 semantically identical MAX_PATH; correct value is 260.
2209 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2211 Accept that mingwrt headers are not guaranteed to precede GCC's in the
2212 system include search path; (issue reported by Mark Brand).
2214 * include/float.h: Add multiple inclusion guard around...
2215 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
2216 only when this define does not indicate that it has already been seen;
2217 update comments to document rationale; move it within the scope of...
2218 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
2219 GCC's float.h, after an appropriate complementary modification, need
2220 not perform a further include path search when this implementation
2221 specific extension has already been processed.
2223 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
2225 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
2226 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
2227 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
2228 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
2229 _findnexti64): Correct definition.
2231 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
2233 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
2235 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2237 * include/_mingw.h: Increment version to 3.18.
2239 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
2241 * include/stdio.h: (_vscprintf, _vscwprintf)
2242 * include/tchar.h: (_vsctprintf)
2244 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
2246 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
2247 (initial implementation)
2249 * new type: __time32_t
2251 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
2252 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
2253 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
2255 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
2256 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
2257 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
2258 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
2259 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
2260 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
2261 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
2262 _wstat32i64, _wstat64i32,_wutime32
2264 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
2265 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
2266 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
2267 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
2268 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
2270 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
2272 Implement TLS Callback.
2274 * tlsmcrt.c: New file.
2275 * tlsmthread.c: Ditto.
2278 * Makefile.in: Include new files.
2279 * crt1.c: Implement TLS Callback.
2281 * mthr_stub.c: Remove.
2283 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2285 * include/_mingw.h: Increment version to 3.17.
2287 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2289 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
2290 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
2292 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2294 * include/io.h (_open_osfhandle): Correct definition.
2296 Thanks to Alexander Shaduri for the information.
2298 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
2300 Final sync of pseudo-reloc.c with mingw64 and cygwin
2301 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
2302 regarding error messages.
2304 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
2306 Honor DESTDIR for winsup/mingw and winsup/w32api.
2307 Detect and report error if installation paths are win32
2308 format, but DESTDIR is non-empty.
2310 * Makefile.in (DESTDIR): Honor per convention.
2311 (need-DESTDIR-compatibility): New macro; define it and a
2313 (fail-DESTDIR-compatibility): New dependency goal.
2314 (install-dirs): Require need-DESTDIR-compatibility.
2315 * mingwex/Makefile.in (DESTDIR): Honor per convention.
2316 (need-DESTDIR-compatibility): New macro; define it and a
2318 (fail-DESTDIR-compatibility): New dependency goal.
2319 (install): Require need-DESTDIR-compatibility.
2320 * profile/Makefile.in: Ditto.
2322 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
2324 Sync pseudo-reloc.c with mingw64
2325 * psuedo-reloc.c: Remove unnecessary includes.
2326 Forward declare _pei386_runtime_relocator.
2327 Decorate _image_base__ symbol with macro for
2328 mingw64 compatibility. Whitespace changes.
2329 (__print_reloc_error): Renamed to...
2330 (__report_error): This. "Returns" void, and
2331 always aborts. Now used on all platforms.
2332 (__write_memory): Remove special case error handling
2333 for different platforms - always call __report_error.
2334 (do_pseudo_reloc): Remove special case error handling
2335 for different platforms - always call __report_error.
2336 (_pei386_runtime_relocator): Decorate _image_base__
2337 symbol with mingw64 compatibility macro.
2339 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
2341 Sync pseudo-reloc.c with cygwin/lib/
2342 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
2343 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
2344 for fatal error handling that is consistent with cygwin process
2345 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
2346 is unique to each address space, across fork().
2347 [CYGWIN] (__print_reloc_error): New function for reporting
2348 errors in a manner supported by cygwin at this early stage of
2349 the process life-cycle.
2350 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
2351 performed only once for each address space, but are repeated
2352 after fork() in the new address space.
2353 [MINGW] (__write_memory): Ensure that b is always initialized
2354 by call to VirtualQuery, even if -DNDEBUG.
2356 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2358 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
2359 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
2361 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
2362 (PFORMAT_HASHED): ...this formatting attribute; honour only user
2363 specified format qualifiers, except in special case...
2364 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
2365 (PFORMAT_ZEROFILL): ...this default formatting attribute...
2366 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
2369 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2371 Avoid multiple link time definitions of _printf() for C++;
2372 (problem reported by Alexander Shaduri, via MinGW-users ML).
2374 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
2375 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
2377 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2379 * include/_mingw.h: Increment version to 3.16.
2381 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2383 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
2384 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
2385 __fp_unordered_compare): Add prototypes.
2386 * include/stdio.h (vsnwprintf): Add prototype.
2387 * include/wchar.h (vsnwprintf): Add prototype.
2388 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
2389 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
2391 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2393 Correct disposition of wchar_t output in printf().
2395 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
2396 (argval): ...this, in inner scope, with singular type `wchar_t'; use
2397 it to pass one wchar to __pformat_wputchars(), for output.
2399 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2401 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
2403 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2405 Convert to monolithic configuration procedure.
2407 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
2408 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
2409 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
2410 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
2411 (CRT0S): Relocate from `profile'; define it as appropriate.
2412 (LIBM_A): Define and AC_SUBST it unconditionally.
2413 (AC_CONFIG_SUBDIRS): Remove; none to configure.
2414 (AC_OUTPUT_FILES): Add `Makefile' for each of...
2415 (mingwex, profile): ...these subdirectories.
2417 * configure: Regenerated.
2419 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
2420 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
2421 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
2422 (SUBDIRS): Define explicitly, to run recursive `make' in...
2423 (mingwex, profile): ...these; simplify build commands...
2424 (rootme, rootsrc): ...without these shell variables.
2425 (all, subdirs): Delete redundant build commands.
2426 (FIXME): Flag various issues for follow up.
2428 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
2429 (top_srcdir): ...this new macro; let AC_SUBST define it.
2430 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2431 (Makefile): Make it depend on...
2432 (top_builddir/config.status): ...this, itself depending on...
2433 (top_srcdir/configure): ...this.
2434 (FIXME): Flag various issues for follow up.
2436 * mingwex/aclocal.m4: File no longer required; delete it.
2437 * mingwex/configure mingwex/configure.in: Likewise.
2439 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
2440 (top_srcdir): ...this new macro; let AC_SUBST define it.
2441 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2442 (Makefile): Make it depend on...
2443 (top_builddir/config.status): ...this, itself depending on...
2444 (top_srcdir/configure): ...this.
2445 (FIXME): Flag various issues for follow up.
2447 * profile/aclocal.m4: File no longer required; delete it.
2448 * profile/configure profile/configure.in: Likewise.
2450 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2452 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
2453 to complaints that it causes issues.
2455 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
2457 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
2459 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2461 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
2462 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
2463 to all inline functions.
2465 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2467 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
2468 * CRT_fp10.c: Ditto.
2470 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2472 * cpu_features.c: replace gcc-specific construct with portable alternative
2473 and match the code a few lines above.
2474 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
2476 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2478 * include/_mingw.h: Changes required for PCC compiler.
2480 2009-07-18 Jeff Lu <jll544@yahoo.com>
2482 * mingwex/usleep.c: round up to next ms
2484 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2486 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
2487 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
2488 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
2489 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
2491 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2493 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
2495 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
2497 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
2498 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
2499 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
2500 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
2501 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
2502 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
2503 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
2504 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
2505 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
2506 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
2507 sources as of Apr. 20, 2009. Update further to match the sources in
2508 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
2509 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
2510 double/ulong union from U to dbl_union for better grepping and white-
2513 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2515 * include/stdlib.h (_wtof): Define.
2517 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
2519 * include/stdint.h (int_fast8_t): Specify as signed char.
2520 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
2521 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
2523 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
2525 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
2527 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2529 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
2530 (Requested by Robert Riebisch)
2532 * mingwex/getopt.c (getopt_parse): Track external increments of...
2533 (optind): ...this global variable.
2535 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2537 * include/_mingw.h: Increment version to 3.15.2.
2539 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2541 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
2542 Also add tentative support for BSD specific `optreset' feature.
2544 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
2545 (__mingw_optreset): ...this new global variable.
2547 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
2548 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
2551 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2553 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
2554 Correct mishandling of invalid characters in printf() format specs.
2556 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
2557 (backtrack): ...this new automatic variable, at start of each format
2558 conversion specification substring; use it to backtrack, and print the
2559 substring literally, if any invalid character is encountered.
2561 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
2563 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
2564 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
2565 ___unguarded_readlc_active_add_func, __crtCompareStringW,
2566 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
2567 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
2568 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
2569 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
2570 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
2571 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
2572 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
2573 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
2574 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
2575 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
2576 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
2578 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
2580 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
2582 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2584 Correct some binary distribution packaging defects.
2586 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
2587 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
2588 intermediate goals; they make packages of files, as specified by...
2589 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
2590 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
2592 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2594 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
2595 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
2597 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
2598 of radix point conditional on precision != 0 or `#' flag specified.
2600 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2602 Fix MinGW-Bug [2160227]
2603 Eliminate conflicting declarations and implementations of scalb().
2605 * moldname.def.in (scalb): Comment out of EXPORTS list.
2606 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
2607 with GCC's built-in declaration.
2609 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
2611 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
2613 * mingwex/Makefile.in: Ditto.
2614 * profile/Makefile.in: Ditto.
2615 * configure.in: Record mingw front-end for building under Cygwin.
2616 * mingwex/configure.in: Ditto.
2617 * profile/configure.in: Ditto.
2618 * configure: Regenerate.
2619 * mingwex/configure: Ditto.
2620 * profile/configure: Ditto.
2622 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2624 Use de-facto standard Makefile goals to invoke test suite.
2626 * Makefile.in: Some minor formatting adjustments.
2627 (test_headers): Unconventionally named goal renamed to...
2628 (check-headers): ...this; make it a prerequisite of...
2629 (check): ...this new conventionally named goal.
2631 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2633 Make strtod() inline definition C89 compliant.
2634 (Issue reported by Ilya Shestopalov and Ian Puleston)
2635 (Correction identified by Danny Smith)
2637 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
2638 reformat inline function definition.
2640 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2642 * include/_mingw.h: Increment version to 3.15.1 and introduce
2643 __MINGW32_PATCHLEVEL variable.
2645 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2647 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
2648 (Reported by Christian Franke)
2650 * mingwex/getopt.c (optind): Make global variable value conform to
2651 behaviour specified by POSIX; do not use it for internal state in...
2652 (getopt_parse): ...this static function; use...
2653 (optbase): ...this new static local variable instead.
2654 (getopt_resolved): Update `optind' as required.
2656 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2658 Improve package identification in configure script.
2660 * configure.ac (AC_INIT): Redefine parameters...
2661 (PACKAGE_NAME): Set to `MinGW Runtime'.
2662 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
2663 (PACKAGE_TARNAME): Set to `mingwrt'.
2664 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
2665 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
2666 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
2668 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
2669 (PACKAGE_TARNAME): ...this.
2671 * configure: Regenerated.
2673 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2675 Fix MinGW-Bug [2125708].
2676 (Reported by Alexandr Zamaraev).
2678 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
2679 not wanted here; remove it; replace it by...
2680 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
2681 (_invalid_parameter_handler): ...this function typedef.
2683 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
2685 * Makefile.in: Don't include host_os as part of snapshot filename.
2687 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2689 Fix MinGW-Bug [2119504].
2690 (Reported by Peiyuan Song).
2692 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
2693 (*retindex): ...this already correctly assigned return variable...
2694 (opt[index].val): ...with this; this should have been assigned to...
2695 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
2697 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2699 Fix MinGW-Bug [2117379].
2700 (Reported by Peiyuan Song).
2702 * include/stdio.h (__argv): Replace all references in function
2703 prototype argument lists and inline function local variables, with ...
2704 (__local_argv): ...this, to avoid potential conflict with ...
2705 * include/stdlib (__argv): ...this #defined macro.
2707 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2709 * include/_mingw.h: Increment version to 3.15.
2711 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2713 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
2714 naming standard for Cygwin.
2716 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2718 Reimplement getopt.c to add getopt_long_only() function.
2720 (N.B. this reimplementation removes support for BSD/Mac-OS-X
2721 `optreset' nonsense; user code should set `optind = 0' instead,
2722 to reinitialise option scanning).
2724 * mingwex/getopt.c: Delete all content; reimplement it.
2725 * include/getopt.h: Likewise.
2727 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
2728 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
2730 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2732 Implement conditional replacement for printf() family functions.
2734 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
2735 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
2736 flag for use in user specified __MINGW_FEATURES__ attribute.
2737 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
2738 currently unused: reserved as components of...
2739 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
2740 a __MINGW_FEATURES__ enhancement to setlocale().
2742 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
2743 (__mingw_fprintf, __mingw_vfprintf): Likewise.
2744 (__mingw_sprintf, __mingw_vsprintf): Likewise.
2745 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
2746 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
2747 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
2748 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
2749 usage; link to DLL import stub, importing from MSVCRT.
2750 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2751 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2752 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
2753 locally defined static stub implementation.
2754 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2755 __mingw_fprintf and __mingw_sprintf respectively.
2756 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
2757 static inline implementation for C++ and GNU C, or locally defined
2758 static stub otherwise.
2759 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2760 __mingw_vfprintf and __mingw_vsprintf respectively.
2762 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2764 Avoid access violations, passing NULL to printf( "...%s..." );
2765 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
2767 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
2768 for argument value, if caller passes a NULL pointer.
2769 (__pformat_wcputs): Likewise, substitute L"(null)".
2771 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2773 Add missing dependencies for building libmingwex.a.
2775 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
2776 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
2777 (pformat.h): ...this.
2779 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2781 Add replacements for remaining members of printf() family.
2783 * mingwex/stdio/printf.c: New file.
2784 * mingwex/stdio/fprintf.c: New file.
2785 * mingwex/stdio/sprintf.c: New file.
2786 * mingwex/stdio/vprintf.c: New file.
2787 * mingwex/stdio/vfprintf.c: New file.
2788 * mingwex/stdio/vsprintf.c: New file.
2790 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2791 (STDIO_OBJS): Add their corresponding object files.
2793 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2795 Replace __mingw_snprintf() with new generic family implementation;
2796 likewise, replace __mingw_vsnprintf().
2798 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
2799 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
2800 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2801 (GDTOA_DISTFILES): Remove mingw_snprintf.c
2802 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
2803 (GDTOA_OBJS): Remove mingw_snprintf.o
2804 (PFORMAT_CFLAGS): New macro; define it, as required by...
2805 (pformat.o): ...this new explicit build target.
2806 (snprintf.o, vsnprintf.o): Declare prerequisites.
2808 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
2810 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2812 Lay foundations for new printf() function family implementation.
2814 * ofmt_stub.s: New file; implement forward compatibility stub for...
2815 (_get_output_format): ...this MSVCR80.DLL and later function.
2817 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
2818 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
2819 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
2820 (lib%.a): Include ofmt_stub.o when import library does not already
2821 advertise availability of the _get_output_format() function;
2822 Add alias stubs for MINGW_REPL_FUNCS, such that...
2823 (__msvcrt_printf): ...is an alias for Microsoft's printf().
2824 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
2825 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
2826 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
2827 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
2828 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
2829 (clean): Add msvcr*.def.
2831 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
2832 * configure: Regenerated.
2834 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2836 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
2837 (_imp____mb_cur_max_dll): Likewise.
2839 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
2841 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
2842 * include/wchar.h (swprintf, vswprintf): Likewise.
2844 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2846 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
2847 (_get_output_format, _set_output_format): Add references.
2849 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
2850 (_get_output_format, _set_output_format): Declare prototypes.
2851 (_TWO_DIGIT_EXPONENT): Define.
2852 Some other minor formatting adjustments.
2854 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2856 [mingw-Bugs-1801641]
2857 * include/wchar.h (_wfdopen): Const-ify second arg.
2858 * include/stdio.h (_wfdopen): Likewise.
2859 Thanks to <tdragon at users dot sourceforge net>
2861 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2863 Avoid precision errors in round(), lround() and llround() functions.
2865 * mingwex/math/round_generic.c: New file; it replaces...
2866 * mingwex/math/round.c: ...this; delete it.
2867 * mingwex/math/roundf.c: ...and this; ditto.
2868 * mingwex/math/roundl.c: ...and this; ditto.
2870 * mingwex/math/lround_generic.c: New file; it replaces...
2871 * mingwex/math/lround.c: ...this; delete it.
2872 * mingwex/math/lroundf.c: ...and this; ditto.
2873 * mingwex/math/lroundl.c: ...and this; ditto.
2874 * mingwex/math/llround.c: ...and this; ditto.
2875 * mingwex/math/llroundf.c: ...and this; ditto.
2876 * mingwex/math/llroundl.c: ...and this; ditto.
2878 * mingwex/math/round_internal.h: New file; it provides generic common
2879 code, which is shared by `round_generic.c' and `lround_generic.c'; the
2880 implementation is based on techniques suggested by Danny Smith and
2883 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
2884 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
2885 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
2886 `round_generic.c' and `lround_generic.c'.
2887 (MATH_OBJS): Factor out files listed in...
2888 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
2889 macros; define them; specify dependencies and build rules; add to...
2890 (LIB_OBJS): ...this list.
2892 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
2894 [ mingw-Bugs-1961893 ]
2895 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
2896 mode to 2 for E format.
2898 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
2900 * include/stdlib.h: Fix strtod under C++.
2902 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
2904 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
2905 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
2907 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
2909 * include/sys/types.h (useconds_t): typedef.
2910 * include/unistd.h (usleep): Add prototype.
2911 * mingwex/usleep.c: New file.
2912 * mingwex/makefile.in: Add usleep source and object.
2914 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2916 Make strtod() conform to C99.
2918 * include/stdlib.h (strtod): Declare this mingwex function, and...
2919 (_strtod): rename this MSVCRT counterpart.
2921 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2923 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2925 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2927 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2929 * include/process.h: Include stdint.h for intptr_t definition.
2930 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2931 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2932 _spawnvpe): Return intptr_t.
2933 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2934 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2936 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2938 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2939 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2940 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2941 _wspawnvp, _wspawnvpe): Return intptr_t.
2943 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2945 * include/wchar.h (fwide): Return success code rather than failure in inline
2947 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2948 code rather than failure.
2950 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2952 * include/math.h (float_t, double_t): Define.
2954 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2956 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2957 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2958 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2960 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2962 * include/complex.h: Don't condition contents on C99 or not
2965 2008-02-01 Brian Dessent <brian@dessent.net>
2967 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2968 the different runtime versions.
2970 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2972 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2973 (mbsinit): Likewise.
2975 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2977 * include/_mingw.h: Increment version to 3.14.
2979 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2981 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
2982 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
2983 * mingwex/math/log10f.S: Correct issue with comments.
2984 * mingwex/math/log10l.S: Ditto.
2985 * mingwex/math/log1p.S: Ditto.
2986 * mingwex/math/log1pf.S: Ditto.
2987 * mingwex/math/log1pl.S: Ditto.
2988 * mingwex/math/log2.S: Ditto.
2989 * mingwex/math/log2f.S: Ditto.
2990 * mingwex/math/log2l.S: Ditto.
2991 * mingwex/math/logf.S: Ditto.
2992 * mingwex/math/logl.S: Ditto.
2994 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
2996 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
2998 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
3000 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
3001 from '_fsize_t' to '__int64' to be consistent with the other ...64
3002 structures and the value set there is 8 bytes not 4. Add guard for both
3003 as the are only used by functions available from 6.1 on.
3005 * include/malloc.h (_HEAP_MAXREQ): Define.
3006 (_aligned_offset_recalloc): Define.
3007 (_aligned_recalloc()): Define.
3009 * include/math.h: fixed a typo in a comment.
3010 (atanhf): Fixed declaration.
3012 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
3013 to '__int64' to be consistent with the other ...64 structures and the value
3014 set there is 8 bytes not 4. Added guard as this function is only used by
3015 functions available from 6.1 on.
3017 * include/sys/stat.h: some members of 'stat' were declared with types with
3018 a prefixed underscore, while the ones without the underscore should have
3019 been used. Added guard to '__stat64' as it is only used by functions
3020 available from 6.1 on. Added the wide character versions of the
3021 exec()/spawn() family for completion
3022 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
3025 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
3026 from 'long' to 'time_t'
3027 (__timeb64): moved declaration of structure directly before the declaration
3028 of the function '_ftime64()', so it is guarded as well
3030 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
3031 before the declaration of the functions using it, so it is guarded as well
3033 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
3035 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
3036 case. Add missing break in 's'/LEN_S case.
3038 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
3040 Make snprintf() and vsnprintf() conform to C99.
3042 * include/stdio.h: Add note about incompatibility between...
3043 (snprintf, vsnprintf): These two mingwex functions, and...
3044 (_snprintf, _vsnprintf): these MSVCRT counterparts.
3046 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
3047 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
3049 * mingwex/stdio/snprintf.c: Delete.
3050 * mingwex/stdio/vsnprintf.c: Delete.
3052 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
3053 (vsnprintf): Alias to __mingw_vsnprintf.
3055 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3057 * include/_mingw.h: Increment version to 3.13.
3058 * Makefile.in: Reset CYGRELEASE to 1
3060 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3062 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
3063 resulting from incomplete removal of enclosing `for ...; do ...; done'
3064 loop from compound command; (reported by Greg Chicares).
3066 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3068 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
3071 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3073 [mingw-Bugs-1734142]
3074 * include/wchar.h (_wsystem) Declare.
3076 (_wgetenv): Declare.
3077 (_wsearchenv): Declare.
3078 (_wmakepath): Declare.
3079 (_wsplitpath): Declare.
3080 (_wfullpath): Declare.
3081 * include/stdlib.h (_wsystem) Declare.
3082 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
3083 _wfullpath): Move into _WSTDLIB_DEFINED guard.
3084 * include/tchar.h (_tsystem): New UNICODE mapping define.
3086 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
3088 * mingwex/gdtoa/mingw_snprintf.c: New file.
3089 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
3090 (GDTOA_OBJS): Add mingw_snprintf.o.
3092 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
3094 * msvcrt.def.in: Update comment.
3095 Exclude _ctype stub if using msvcr71.dll or newer.
3096 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
3097 * include/wctype.h: Likewise.
3099 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3101 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
3102 *include/dirent.h: Likewise.
3104 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3106 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
3107 * include/conio.h: Likewise.
3108 * include/ctype.h: Likewise.
3109 * include/direct.h: Likewise.
3110 * include/dos.h: Likewise.
3111 * include/errno.h: Likewise.
3112 * include/fenv.h: Likewise.
3113 * include/float.h: Likewise.
3114 * include/inttypes.h: Likewise.
3115 * include/io.h: Likewise.
3116 * include/libgen.h: Likewise.
3117 * include/locale.h: Likewise.
3118 * include/malloc.h: Likewise.
3119 * include/mbctype.h: Likewise.
3120 * include/mbstring.h: Likewise.
3121 * include/process.h: Likewise.
3122 * include/search.h: Likewise.
3123 * include/setjmp.h: Likewise.
3124 * include/signal.h: Likewise.
3125 * include/stdio.h: Likewise.
3126 * include/stdlib.h: Likewise.
3127 * include/string.h: Likewise.
3128 * include/time.h: Likewise.
3129 * include/wchar.h: Likewise.
3130 * include/sys/stat.h: Likewise.
3131 * include/sys/time.h: Likewise.
3132 * include/sys/timeb.h: Likewise.
3133 * include/sys/utime.h: Likewise.
3135 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
3137 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
3139 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
3141 Add POSIX binary tree search API.
3143 * mingwex/tfind.c: New file.
3144 * mingwex/tdelete.c: New file.
3145 * mingwex/tsearch.c: New file.
3146 * mingwex/twalk.c: New file.
3147 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
3148 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
3149 * include/search.h (tfind): Declare.
3156 (node_t): Define, on condition of _SEARCH_PRIVATE.
3158 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
3160 * include/_mingw.h (__MINGW_NOTHROW): Define.
3162 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3164 * include/stdio.h (vsnprintf): Remove inline definition.
3167 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3169 * CRTfmode.c: Nit-pick comment fix.
3171 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
3173 * CRTfmode.c: Fix nested comment.
3175 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
3177 * include/string.h (strcasecmp): Fix typo in declaration prototype.
3179 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
3181 * include/io.h (lseek64) : Add prototype.
3183 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
3185 * include/string.h (strcasecmp): Add prototype.
3186 (strncasecmp): Add prototype.
3188 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3190 * Makefile.in (CRT0S): Revert last change.
3191 * CRTfmode.c. Correct comment.
3193 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3195 * Makefile.in (CRT0S): Add back CRTfmode.o.
3197 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3199 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
3200 * include/io.h: Likewise.
3202 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
3204 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
3206 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3208 * include/stdint.h (intptr_t): Fix typo.
3209 Thanks to Charles Wilson for report.
3211 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
3213 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
3214 Condition on _WIN64.
3215 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
3216 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
3217 (PTRDIFF_MIN): Define as INTPTR_MIN.
3218 (PTRDIFF_MAX): Define as INTPTR_MAX.
3219 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
3220 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
3222 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3224 * Makefile.in: Removed mansuffix variable. Changed mansection to support
3225 Cygwin man page location.
3227 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3229 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
3230 support Cygwin man page location.
3232 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3234 * Include/_mingw.h: Increment version to 3.12.
3236 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
3238 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
3240 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3242 * Makefile.in: Tweak srcdist to fix build issue.
3244 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
3246 Add --enable-mingw-manpage-transform configure option.
3248 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
3249 * configure.in, Makefile.in: Use it.
3250 * configure: Regenerated.
3252 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
3254 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
3256 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3258 Add manpages for dirname and basename functions.
3260 * man: New directory.
3261 * man/dirname.man: New file; it sources both manpages.
3262 * Makefile.in: Add provisional rules to distribute them.
3264 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3266 * mingwex/basename.c: Make it work with path names containing
3267 multibyte character strings.
3268 * mingwex/dirname.c: Likewise.
3270 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3272 * include/io.h (__mingw_access): New static inline wrapper to restore
3273 pre-Vista 'access (fname, X_OK)' behaviour.
3274 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
3276 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3278 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
3280 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
3282 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
3284 * include/stdio.h (_unlink, unlink): Add prototypes.
3286 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
3288 * include/excpt.h: Replace "_try1" in comments with "__try1".
3290 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
3292 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3293 (ALL_CXXFLAGS): Likewise.
3294 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3295 (ALL_CXXFLAGS): Likewise.
3296 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3297 (ALL_CXXFLAGS): Likewise.
3299 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
3301 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
3303 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
3305 Expose some more msvcr80.dll functions.
3306 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
3307 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
3308 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
3309 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
3311 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3313 Expose some msvcr80.dll functions.
3314 * include/stdlib.h (_set_abort_behavior): Add prototype.
3315 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
3316 _set_abort_behavior mask argument.
3317 (_invalid_parameter_handler): Add typedef.
3318 (_set_invalid_parameter_handler): Add prototype.
3319 * include/stdio.h (_get_printf_count_output): Add prototype.
3320 (_set_printf_count_output): Add prototype.
3321 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
3322 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
3324 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3326 * include/_mingw.h (CRT_INLINE): Correct typo.
3328 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
3330 * include/io.h (X_OK): Define to F_OK.
3332 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
3334 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
3335 unconditionally. Change comment.
3336 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
3338 * include/io.h (rename): Declare.
3341 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3343 * include/libgen.h: New file; required by...
3344 * mingwex/basename.c, mingwex/dirname.c: New files.
3345 * mingwex/Makefile.in (DISTFILES): Add them...
3346 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
3347 (Dependencies): Typo; s/Dependancies/Dependencies/
3349 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
3351 * Makefile.in (VERSION): Let configure define it.
3353 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
3354 * configure.in: Use it.
3355 Correct quoting of autoconf macro arguments throughout.
3356 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
3357 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
3358 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
3359 (AC_CONFIG_FILES): Add, to generate Makefile.
3361 * configure: Regenerated.
3363 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
3365 * Makefile.in: Add aclocal.m4 to source release.
3366 * mingwex/Makefile.in: Ditto.
3367 * profile/Makefile.in: Ditto.
3369 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3371 * Include/_mingw.h: Increment version to 3.11.
3372 * Makefile.in: Ditto.
3374 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3376 [ mingw-Bugs-1590623 ]
3377 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
3380 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
3382 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
3383 correctly parenthesized.
3385 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3387 * mingwex/mb_wc_common.h (get_codepage): Get it
3390 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3392 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
3394 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
3396 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
3399 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
3401 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
3404 2006-09-11 Christopher Faylor <cgf@timesys.com>
3406 * Makefile.in: Semi-revert 2006-08-30 change.
3408 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3410 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
3411 (__MINGW_IMPORT): Ansify.
3412 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
3413 __MINGW_ATTRIB_DEPRECATED.
3415 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3417 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
3418 Redundant macros; deleted.
3420 * configure.in (LIB_AC_PROG_CC): Replaced by...
3421 (AC_PROG_CC): ...this.
3423 * configure: Regenerated.
3425 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
3427 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
3428 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
3429 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
3431 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
3433 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
3434 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
3435 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
3436 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
3438 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
3439 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
3440 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
3441 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
3442 * mingwex/wcstold.c: Avoid using strtold internals.
3443 * mingwex/wcstof.c: Rewrite.
3444 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
3445 (GDTOA_OBJS): Add to library.
3446 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
3447 (STDLIB_OBJS): Remove.
3448 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
3449 (Q8_OBJS): Add wcstof.o wcstold.o.
3450 * include/stdlib.h (strtof): Remove inline definition.
3452 * include/wchar.h (wcstof): Remove inline definition.
3454 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
3456 * Makefile.in: Add with_cross_host to allow more granular checks.
3457 Set installation directories accordingly. Override CC setting only
3458 if building a Cygwin target.
3459 * aclocal.m4: Regenerate.
3460 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
3461 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
3462 Test AC_ALLOCA only if building on a native system.
3463 * configure: Regenerate.
3465 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3467 * include/ctype.h: Fix typo.
3469 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3471 * include/ctype.h: Expose iswblank if __cplusplus.
3472 * include/wctype.h: Expose iswblank if __cplusplus.
3474 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3476 * include/ctype.h: Remove stray ')';
3478 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3480 * include/ctype.h (_BLANK): Expand comment.
3481 (isblank): Add prototype and inline definition.
3482 (iswblank): Add prototype and inline definition.
3483 * include/wctype.h (iswblank): Add prototype and inline definition.
3484 * mingwex/isblank.c: New file.
3485 * mingwex/iswblank.c: New file.
3486 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
3488 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
3490 * include/math.h (__INFF,__INFL): Remove '#'.
3492 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3494 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
3496 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3498 Support SSE float environment in fenv.h functions.
3499 * cpu_features.c: New file.
3500 * cpu_features.h: New file.
3501 * crt1.c: Include "cpu_features.h".
3502 (__mingw_CRTStartup): Call cpu_features_init().
3503 * Makefile.in (MING_OBJS): Add cpu_features.c.
3504 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
3505 * include/fenv,h ( fenv_t;): Append __mxcsr field.
3506 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
3507 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
3508 (__MXCSR_ROUND_FLAG_SHIFT): New define.
3509 * mingwex/feclearexcept.c: Include "cpu_features.h".
3510 Handle SSE environment.
3511 * mingwex/fegetenv.c: Likewise.
3512 * mingwex/feholdexcept.c: Likewise.
3513 * mingwex/fesetenv.c: Likewise.
3514 * mingwex/fesetexceptflag.c: Likewise.
3515 * mingwex/fesetround.c: Likewise.
3516 * mingwex/fetestexcept.c: Likewise.
3517 * mingwex/feupdateenv.c: Likewise.
3518 * mingwex/fegetround.c: Add comment.
3520 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3522 * Include/_mingw.h: Increment version to 3.10.
3523 * Makefile.in: Ditto.
3525 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3527 * mingwex/math/tgamma.c (SQTPI): Add braces.
3529 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3531 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
3532 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
3534 * mingwex/math/sf_erf.c (erff): Initialize z.
3536 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
3538 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3540 * Include/_mingw.h: Increment version to 3.10.
3541 * Makefile.in: Ditto.
3543 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3545 * include/sys/time.h (struct timezone): Define.
3546 * include/time.h: Correct comment about timezone.
3548 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3550 * configure.in (AC_CONFIG_AUX_DIR): Remove.
3551 * configure: Regenerate.
3553 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
3555 * configure: add srcdir as a possible location for install-sh.
3557 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3559 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
3560 (_topendir): Use it.
3562 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3564 * include/sys/time.h: Add header guard. Add extern "C" bracketing
3566 (gettimeofday): Add prototype.
3567 * mingwex/gettimeofday.c: New file.
3568 * mingwex/makefile.in: Add gettimeofday source and object.
3570 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3572 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
3573 else global library variable.
3574 (HUGEVALF): Likewise.
3575 (HUGEVALL): Likewise.
3576 (INFINITY): Likewise.
3579 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3581 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
3583 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3585 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
3587 2006-05-24 Christopher Faylor <cgf@timesys.com>
3589 * configure.in: Update to newer autoconf.
3590 (thanks to Steve Ellcey)
3591 * mingwex/configure.in: Ditto.
3592 * profile/configure.in: Ditto.
3593 * configure: Regenerate.
3594 * mingwex/configure: Ditto.
3595 * profile/configure: Ditto.
3596 * aclocal.m4: New file.
3597 * mingwex/aclocal.m4: Ditto.
3598 * profile/aclocal.m4: Ditto.
3600 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
3602 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
3603 Use supplied codepage as arg to WideCharToMultiByte.
3605 2006-02-13 Earnie Boyd <earnie@users.sf.net>
3607 * Makefile.in (libmsvcr80.a): Add import lib.
3608 (libmsvcr80d.a): Ditto.
3610 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3612 * Makefile.in: Bump cygwin build number.
3614 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3616 * Include/_mingw.h: Increment version to 3.9.
3617 * Makefile.in: Ditto.
3619 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3621 * include/limits.h (SSIZE_MAX): Define.
3622 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
3624 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
3626 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
3627 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
3629 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3631 * include/stddef.h: Remove.
3632 * include/stdarg.h: Remove.
3634 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3636 * mingwex/complex/csqrt.c (csqrt): The sign of real part
3637 of result is positive when real part of arg == 0;
3638 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
3639 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
3641 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3643 * include/time.h (_time64): Correct prototype.
3645 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
3647 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
3648 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
3649 to non-stop. Use "fnclex" to clear exception flags.
3651 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3653 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
3654 Avoid raising FP exceptions.
3656 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3658 * include/stdlib.h (strtof): Add prototype. Uglify
3659 parameter names in inline definition.
3661 (_Exit): Uglify parameter names in inline definition.
3662 (llabs): Add prototype.
3663 (_set_error_mode): Add prototype and input defines.
3665 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3667 * mingwex/fe*.c: Revert previous changes.
3668 * include/fenv.h: Revert previous changes.
3670 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3672 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
3673 Do not return a value.
3674 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
3675 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
3676 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
3677 * mingwex/fegetenv.c (fegetenv): Likewise.
3678 * mingwex/fesetenv.c (fesetenv): Likewise.
3679 * mingwex/feupdateenv.c (feupdateenv): Likewise.
3680 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
3681 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
3684 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3686 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
3687 getting filelength for SEEK_END.
3689 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3691 * Include/_mingw.h: Increment version to 3.8.
3692 * Makefile.in: Ditto.
3694 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3696 * include/wctype.h (towupper, towlower): Change arg and return value
3698 * include/ctype.h (towupper, towlower): Likewise.
3700 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3702 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
3703 a diagnostic, guarded by #ifdef DEBUG.
3704 (__mingwthr_remove_key_dtor): Likewise.
3706 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
3708 * moldname.def.in (sleep, beep, seterrormode): Remove.
3710 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3712 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
3713 (_MCOUNT_DECL): Use it.
3714 (MCOUNT): Save and restore eax, ecx, edx registers.
3715 * profile/mcount.c (_mcount): ANSI-fy.
3717 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3719 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
3720 guard __MINGW_ATTRIB macro definitions.
3721 * include/math.h (logb[fl]): Don't define inlines for
3722 GCC-4.0+ && __FAST_MATH__.
3723 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
3724 line-continuation backslashes.
3726 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
3728 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
3729 in GNUC version guard.
3731 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
3733 * crt1.c (_gnu_exception_handler): Handle illegal instruction
3734 OS exception as a signal if user has defined a SIGILL handler.
3736 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
3738 * mingwex/math/nexttoward.c: New file.
3739 * mingwex/math/nexttowardf.c: New file.
3740 * mingwex/math/nextafterl.c: Add nexttowardl alias.
3741 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
3743 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
3744 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
3747 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
3749 * mingwex/math/nextafterf.c (nextafterf): Correct
3751 * mingwex/math/nextafterl.c: New file.
3752 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
3753 (MATH_OBJS): Add nextafterl.o.
3754 * include/math.h (nextafterl): Uncomment prototype.
3756 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3758 * mingwex/math/erfl.c: New file.
3759 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
3760 (MATH_OBJS): Add erfl.o.
3761 * include/math.h (erfl, erfcl): Uncomment prototypes.
3763 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
3765 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
3766 #if (WCHAR_MAX <= WCHAR_MIN) is false.
3767 * include/stdint.h (WCHAR_MAX): Likewise.
3768 (WINT_MAX): Likewise.
3770 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
3772 * mingwex/math/signbit.c (__signbit): Make return value
3773 consistent with GCC's __builtin_signbit.
3774 * mingwex/math/signbitf.c (__signbitf): Likewise.
3775 * mingwex/math/signbitf.c (__signbitl): Likewise.
3776 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
3779 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
3781 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
3783 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
3784 Remove unused MBTOWC_FLAGS define.
3786 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
3788 * mingwex/mbrtowc.c: New file.
3789 * mingwex/wcrtomb.c: New file.
3790 * mingwex/btowc.c: New file.
3791 * mingwex/wctob.c: New file.
3792 * mingwex/mb_wc_common.h: New file.
3793 * mingwex/Makefile.in (DISTFILES): Add new files.
3794 (Q8_OBJS): Add new objects.
3795 * include/wchar.h: Adjust comment about mbrtowc() and related
3796 funcions. Add __restrict__ to pointer params in prototypes.
3797 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
3798 arg names from protototypes.
3800 2005-04-23 Wu Yongwei <adah@sh163.net>
3802 * mingwex/dirent.c: Formatting changes.
3803 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
3806 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
3808 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
3810 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
3812 * include/stdio.h (__mingw_fwrite): Change return value to
3814 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
3816 2005-03-15 Hans Leidekker <hans@it.vu.nl>
3818 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
3820 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3822 * include/wctype.h (wctrans): Remove _CRTIMP.
3823 (towctrans): Likewise.
3826 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3828 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
3830 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3832 * mingwex/wctype.c: New file.
3833 * mingwex/wctrans.c: New file.
3834 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
3835 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
3837 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3839 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
3841 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3843 * include/assert.h: Remove header guard. #undef assert macro.
3844 (_assert): Use __MINGW_ATTRIB_NORETURN define.
3846 2005-02-11 Gregory W. Chicares <chicares@cox.net>
3848 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
3849 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
3851 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
3852 * mingwex/math/expm1.c: New file.
3853 * mingwex/math/expm1f.c: New file.
3854 * mingwex/math/expm1l.c: New file.
3856 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3858 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
3859 * include/wchar.h (struct stat): Likewise.
3860 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
3862 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
3864 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3866 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
3867 string is not valid.
3869 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
3871 * include/malloc.h: Add missing return code defines for
3874 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
3876 * include/sys/stat.h (struct __stat64): Change st_size type to
3878 * include/wchar.h (struct __stat64): Change st_size type to __int64.
3880 2005-01-13 Earnie Boyd <earnie@users.sf.net>
3882 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3884 * include/errno.h (ELOOP): Ditto.
3885 * include/_mingw.h: Increment version to 3.7.
3886 * Makefile.in: Ditto.
3888 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3890 * include/tchar.h (_tfreopen): Add UNICODE mappings.
3892 2005-01-11 Earnie Boyd <earnie@users.sf.net>
3894 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3895 lstat): Conditionalize defines for __STRICT_ANSI__.
3897 2005-01-10 Earnie Boyd <earnie@users.sf.net>
3899 * include/errno.h (ELOOP): Add definition.
3901 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
3903 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
3904 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
3905 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
3906 ctanl.c ctanhl.c): New files.
3907 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3908 (COMPLEX_OBJS): Adjust.
3909 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
3910 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
3911 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
3914 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3916 * include/_mingw.h (__int16): Define as short.
3917 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3919 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3921 * include/stdio.h (P_tmpdir): Add define.
3923 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3925 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3927 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3929 * include/_mingw.h: Increment version to 3.6
3930 * Makefile.in: Ditto
3932 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3934 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3935 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3936 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3937 ctanf.c ctanhf.c): New files.
3938 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3939 (COMPLEX_OBJS): Adjust.
3940 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3941 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3942 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3945 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3947 * include/wchar.h (wcsdup): Correct prototype.
3948 * include/string.h (wcsdup): Correct prototype.
3950 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3952 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3954 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3956 * mingwex/math/fastmath.h: New file.
3957 * mingwex/math/asinh.c: New file.
3958 * mingwex/math/asinhf.c: New file.
3959 * mingwex/math/asinhl.c: New file.
3960 * mingwex/math/acosh.c: New file.
3961 * mingwex/math/acoshf.c: New file.
3962 * mingwex/math/acoshl.c: New file.
3963 * mingwex/math/atanh.c: New file.
3964 * mingwex/math/atanhf.c: New file.
3965 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3966 atanh, atanhf, atanhl): Add prototypes.
3967 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3968 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3969 Specify dependency on fastmath.h for new objects.
3971 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3973 * include/sys/stat.h (_S_IFLNK): Add definition.
3980 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3982 * include/sys/stat.h (_S_ISLNK): Add definition.
3985 2004-09-05 Earnie Boyd <earnie@users.sf.net>
3987 * include/_mingw.h: Increment minor version for 3.5 release.
3988 * Makefile.in: Ditto.
3989 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
3991 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3993 * include/malloc.h (__mingw_aligned_offset_malloc,
3994 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
3995 __mingw_aligned_realloc, __mingw_aligned_free): Add
3997 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
3998 tst-aligned-malloc.c.
3999 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
4001 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
4003 * mingwex/mingw-aligned-malloc.c: New file.
4004 * mingwex/tst-aligned-malloc.c: New file.
4006 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
4008 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
4009 noreturn attribute. Align stack to 16 bytes before passing args
4011 (mainCRTStartup): Change return to void.
4012 (WinMainCRTStartup): Likewise.
4014 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
4016 * profile/COPYING: New file.
4017 * profile/CYGWIN_LICENSE: New file.
4018 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
4020 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
4022 * mingwex/fopen64.c: Move.
4023 * mingwex/fseeko64.c: Move.
4024 * mingwex/ftello64.c: Move.
4025 * mingwex/lseek64.c: Move.
4026 * mingwex/stdio/fopen64.c: To here.
4027 * mingwex/stdio/fseeko64.c: To here.
4028 * mingwex/stdio/ftello64.c: To here.
4029 * mingwex/stdio/lseek64.c: To here.
4031 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
4033 * profile/gmon.c [__MINGW32__]: Include string.h for
4036 2004-08-08 Christopher Faylor <cgf@timesys.com>
4038 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
4040 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
4042 * include/complex.h: Remove __attribute__ ((const)) from
4043 transcendantal and trig functions. Replace __attribute__ ((const))
4044 with __MINGW_ATTRIB_CONST on other declarations.
4046 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
4048 * include/wchar.h: Reorganize, avoid including other headers.
4050 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
4052 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
4053 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
4056 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
4058 * include/dirent.h (struct _wdirent): Remove obsolete comment.
4060 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
4062 * include/string.h: Revert 2004-07-26 additions of
4065 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
4067 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
4068 (__convert_inf_to_maxnum): New.static inline.
4069 (reducl): Use it to protect against Inf - Inf.
4070 (__fast_ldexpl): New function. Use in lieu of ldexpl.
4072 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
4074 * mingwex/math/expl.c (expl): Move body of code to new static
4075 function __expl, removing tests for +/-Inf. Extern function
4076 expl calls __expl after testing for max, min log thresholds.
4078 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
4080 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
4081 * mingwex/stdio/vfscanf.c: Likewise.
4082 * mingwex/stdio/vswscanf.c: Likewise.
4083 * mingwex/stdio/vfwscanf.c: Likewise.
4085 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
4087 * include/_mingw.h: Use only two underscores to uglify
4088 __MINGW_ATTRIB_* macros.
4089 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
4090 * include/setjmp.h: Likewise.
4092 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
4094 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
4096 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
4098 * include/string.h: Group wide string functions together,
4099 and protect with _WSTRING_DEFINED.
4101 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
4103 * include/_mingw.h (__MINGW_ATTR_*): Replace with
4105 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
4106 __MINGW_ATTRIB_NORETURN, throughout.
4107 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
4109 (abs): Declare with __MINGW_ATTRIB_CONST.
4118 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
4120 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
4122 * include/_mingw.h: Undefine __attribute__.
4123 (__MINGW_ATTR_NORETURN): New define.
4124 (__MINGW_ATTR_CONST): New define.
4125 (__MINGW_ATTR_MALLOC): New define.
4126 (__MINGW_ATTR_PURE): New define.
4127 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
4130 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
4132 * include/time.h (__time64_t): Add missing ';'.
4134 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
4136 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
4137 (struct tm): Protect with _TM_DEFINED.
4139 2004-07-17 Christopher Faylor <cgf@timesys.com>
4141 * Makefile.in (CC): Strip inappropriate include file settings from any
4144 2004-07-15 "dgun" <dgun@umpire.com>
4146 * include/complex.h (conj): Correct typo in prototype.
4148 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
4150 * include/math.h: Add pragma GCC system_header.
4152 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
4154 * mingwex/complex/carg.c: New file.
4155 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
4157 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
4159 * Makefile.in (INCLUDES): Temporarily revert previous change.
4160 * mingwex/Makefile,in (INCLUDES): Ditto.
4161 * profile/Makefile,in (INCLUDES): Ditto.
4162 * mingwex/Makefile,in: Drop carg.o dependency.
4164 2004-07-14 Christopher Faylor <cgf@timesys.com>
4166 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
4168 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
4170 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
4172 * mingwex/Makefile,in (INCLUDES): Ditto.
4173 * profile/Makefile,in (INCLUDES): Ditto.
4175 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
4177 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
4179 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
4181 * mingwex/Makefile.in: Ditto.
4182 * profile/Makefile.in: Ditto.
4183 * include/limits.h: Change to new file header preamble.
4184 * include/_mingw.h: Increment minor version for 3.4 release.
4185 * Makefile.in: Ditto.
4187 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
4189 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
4191 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
4193 * include/unistd.h (ftruncate): Add inline definition.
4194 * mingwex/ftruncate.c: New file.
4195 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
4197 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
4199 * include/time.h: Do not include sys/types.h.
4201 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
4203 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
4204 (MATH_OBJS): Remove pow,o.
4205 * include/math.h (pow): Declare with _CRTIMP.
4206 Add comment on how to avoid excess precision problems.
4208 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
4210 * include/stdio.h (__mingw_fseeko64): Add prototype.
4211 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
4212 (__mingw_fwrite): Handle huge files.
4214 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
4215 Danny Smith <dannysmith@users.sourceforge.net>
4217 * include/stdio.h (fopen64): Add inline function.
4218 (fseeko64): Add prototype.
4219 (ftello64): Add inline function.
4220 * include/io.h (lseek64): Add inline function.
4221 * include/sys/types (off64_t): Add typedef.
4222 (fpos64_t): Add typedef.
4223 * mingwex/fopen64.c: New file.
4224 * mingwex/fseeko64.c: New file.
4225 * mingwex/ftello64.c: New file.
4226 * mingwex/lseek64.c: New file.
4227 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
4228 fseeko.64.c, ftello64.c, lseek64.c.
4229 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
4231 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
4233 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
4235 2004-04-22 Earnie Boyd <earnie@users.sf.net>
4237 * DISCLAIMER: Add words about "free to use".
4238 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
4239 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
4240 (inst_docdir): New variable.
4242 (FLAGS_TO_PASS): Include inst_docdir.
4243 (install-dirs): Add inst_docdir.
4244 (install): Add loop for INSTDOCS.
4245 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
4246 section to CONTRIBUTORS file. Remove RCS tags.
4248 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
4250 * mingwex/math/lround.c: Rewrite.
4251 * mingwex/math/lroundf.c: Rewrite.
4252 * mingwex/math/lroundl.c: Rewrite.
4253 * mingwex/math/llround.c: Rewrite.
4254 * mingwex/math/llroundf.c: Rewrite.
4255 * mingwex/math/llroundl.c: Rewrite.
4257 2004-04-20 Earnie Boyd <earnie@users.sf.net>
4259 * CONTRIBUTORS: New file.
4260 * DISCLAIMER: Ditto.
4261 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
4262 section to CONTRIBUTORS file. Remove RCS tags.
4263 * CRTFmode.c: Ditto.
4267 * crtdll.dev: Ditto.
4277 * msvcrt.def.in: Ditto.
4278 * strcasecmp.c: Ditto.
4281 * include/assert.h: Ditto.
4282 * include/conio.h: Ditto.
4283 * include/ctype.h: Ditto.
4284 * include/direct.h: Ditto.
4285 * include/dirent.h: Ditto.
4286 * include/dos.h: Ditto.
4287 * include/errno.h: Ditto.
4288 * include/excpt.h: Ditto.
4289 * include/fcntl.h: Ditto.
4290 * include/float.h: Ditto.
4291 * include/io.h: Ditto.
4292 * include/locale.h: Ditto.
4293 * include/malloc.h: Ditto.
4294 * include/math.h: Ditto.
4295 * include/process.h: Ditto.
4296 * include/setjmp.h: Ditto.
4297 * include/share.h: Ditto.
4298 * include/signal.h: Ditto.
4299 * include/stdio.h: Ditto.
4300 * include/stdlib.h: Ditto.
4301 * include/string.h: Ditto.
4302 * include/tchar.h: Ditto.
4303 * include/time.h: Ditto.
4304 * include/wchar.h: Ditto.
4305 * include/sys/locking.h: Ditto.
4306 * include/sys/param.h: Ditto.
4307 * include/sys/stat.h: Ditto.
4308 * include/sys/timeb.h: Ditto.
4309 * include/sys/types.h: Ditto.
4310 * include/sys/utime.h: Ditto.
4311 * mingwex/dirent.c: Ditto.
4313 2004-04-19 Earnie Boyd <earnie@users.sf.net>
4315 * include/_mingw.h: Revert to primary release 3 and increment minor
4317 * Makefile.in (VERSION): Ditto.
4319 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4321 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
4322 _fmode if not __MSVCRT__.
4324 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
4326 * include/io.h: (_findfirst): Correct prototype.
4328 2004-03-30 Hans Leidekker <hans@it.vu.nl>
4330 * include/io.h: (_findnext, _findclose): Correct prototype.
4332 2004-03-28 Hans Leidekker <hans@it.vu.nl>
4334 * include/math.h (FP_*): Add defines.
4336 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4338 * mingwex/math/round.c: Rewrite.
4339 * mingwex/math/roundf.c: Rewrite.
4340 * mingwex/math/roundl.c: Rewrite.
4342 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4344 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
4345 * include/time.h (__time64_t): Add typedef.
4346 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4347 (_ctime64): Likewise.
4348 (_wctime64): Likewise.
4349 (_gmtime64): Likewise.
4350 (_localtime64): Likewise.
4351 (wcsftime): Move into _WTIME_DEFINED block.
4352 Regroup non-ANSI prototypes.
4353 * include/io.h: Include <stdint.h>.
4354 (__finddata64_t): Add struct definition.
4355 (__wfinddata64_t): Likewise.
4356 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4357 (_findnext64): Likewise.
4358 (_wfindfirst64): Likewise.
4359 (_wfindnext64): Likewise.
4360 * include/sys/timeb.h (__timeb64): Add struct definition.
4361 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4362 * include/sys/utime.h (__utimbuf64): Add struct definition.
4363 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4364 (_futime64): Likewise.
4365 (_wutime64): Likewise.
4366 * include/sys/stat.h (__stat64): Add struct definition.
4367 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4368 (_stat64): Likewise.
4369 (_wstat64): Likewise.
4370 * include/sys/types.h (__time64_t): Add typedef.
4371 * include/wchar.h (__wfinddata64_t): Add structure definition.
4372 (__stat64): Likewise.
4373 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4374 (_wfindfirst64): Likewise.
4375 (_wfindnext64): Likewise.
4376 (_wutime64): Likewise.
4377 (_wstat64): Likewise.
4378 * include/malloc.h (_aligned_free): Add prototype for
4379 __MSVCRT_VERSION__ >= 0x0700.
4380 (_aligned_malloc): Likewise.
4381 (_aligned_offset_malloc): Likewise.
4382 (_aligned_offset_realloc): Likewise.
4383 (_aligned_realloc): Likewise.
4384 * include/string.h (_wcserror): Add prototype for
4385 __MSVCRT_VERSION__ >= 0x0700.
4386 (__wcserror): Likewise.
4387 * include/math.h (_set_SSE2_enable): Add prototype for
4388 __MSVCRT_VERSION__ >= 0x0701.
4390 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4392 * include/stdio.h (_fsopen): Add prototype.
4393 * include/tchar.h (_tfsopen): Add defines.
4394 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
4396 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
4398 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
4399 msvcr70.dll, and msvcr71.dll.
4400 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
4401 using basename of output def file.
4403 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
4405 * include/malloc.h: Remove __STRICT_ANSI__ guard.
4407 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
4409 * include/process.h: Remove the #endif associated with removal of
4410 __STRICT_ANSI__ guard from non-ANSI header.
4412 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4414 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
4415 * include/direct.h: Ditto.
4416 * include/dirent.h: Ditto.
4417 * include/dos.h: Ditto.
4418 * include/excpt.h: Ditto.
4420 * include/io.h: Ditto.
4421 * inlude/mem.h: Ditto.
4422 * include/memory.h: Ditto.
4423 * include/process.h: Ditto.
4424 * inlude/search.h: Ditto.
4425 * include/share.h: Ditto.
4426 * include/unistd.h: Ditto.
4427 * include/sys/fcntl.h: Ditto.
4428 * include/file.h: Ditto.
4429 * include/sys/locking.h: Ditto.
4430 * include/sys/param.h: Ditto.
4431 * include/sys/stat,h
4432 * include/sys/time.h: Ditto.
4433 * include/sys/timeb.h: Ditto.
4434 * include/sys/types.h: Ditto.
4435 * include/sys/unistd.h: Ditto.
4436 * include/sys/utime.h: Ditto.
4438 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
4440 * include/_mingw.h (__UNUSED_PARAM): Define macro.
4441 * include/wchar.h (fwide): Use it.
4444 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4446 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
4447 NetBSD getopt_long.c.
4449 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4451 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
4452 codes and handling of special chars.
4454 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
4456 * include/stdio.h (feof): Add inlined definition.
4459 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4461 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
4462 directly, rather than via scabnl.
4464 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4466 * mingwex/math/powl.c (powl): Return infinity if
4467 extended precision multiplication of x by log2(y)
4470 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
4472 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
4473 (__enan_NI16): Fix another one.
4474 (__enan_NBITS): Tidy.
4476 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4478 * include/stdint.h [__STDC_CONSTANT_MACROS]: Fix for 8 and 16 bit
4479 types. (Thanks to John Maddock for report.)
4481 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
4483 * include/tchar.h (_puttchar): Define.
4485 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
4487 * include/stdio.h:(_fileno): Define macro version after both
4488 fileno and _fileno functions declared.
4490 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
4491 * moldnames.def.in (rmtmp) Add stub.
4493 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
4495 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
4497 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4499 * include/math.h: Guard ISO C99 additions with __cplusplus
4502 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4504 * include/_mingw.h: Define __attribute__((x)) to nothing
4507 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4509 * include/complex.h: New file.
4510 * mingwex/complex: New directory.
4511 * mingwex/complex/cabs.c: New file.
4512 * mingwex/complex/cacos.c: New file.
4513 * mingwex/complex/cacosh.c: New file.
4514 * mingwex/complex/casin.c: New file.
4515 * mingwex/complex/casinh.c: New file.
4516 * mingwex/complex/catan.c: New file.
4517 * mingwex/complex/catanh.c: New file.
4518 * mingwex/complex/ccos.c: New file.
4519 * mingwex/complex/ccosh.c: New file.
4520 * mingwex/complex/cexp.c: New file.
4521 * mingwex/complex/cimag.c: New file.
4522 * mingwex/complex/clog.c: New file.
4523 * mingwex/complex/cpow.c: New file.
4524 * mingwex/complex/cproj.c: New file.
4525 * mingwex/complex/creal.c: New file.
4526 * mingwex/complex/csin.c: New file.
4527 * mingwex/complex/csinh.c: New file.
4528 * mingwex/complex/csqrt.c: New file.
4529 * mingwex/complex/ctan.c: New file.
4530 * mingwex/complex/ctanh.c: New file.
4531 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
4534 (COMPLEX_OBJS): New list of objects.
4535 (LIB_OBJS): Include it in the library.
4537 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4539 * include/math.h (cabs): Remove non-ISO prototype.
4541 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4543 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
4544 Use GCC __builtin's if available.
4545 (INFINITY, INFINITYF, INFINITYL): Likewise.
4547 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4549 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
4550 beyond approximation limit.
4551 * mingwex/math/sf_erf.c (erff): Likewise.
4553 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
4555 * include/stdio.h (getc): Cast result to unsigned char before
4558 (getchar): Likewise.
4559 (putchar): Likewise.
4560 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
4562 2003-10-10 Earnie Boyd <earnie@users.sf.net>
4564 * include/_mingw.h: Increment version to 3.2.
4565 * Makefile.in: Ditto.
4567 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4569 * include/sys/types.h: Revert last change.
4571 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4573 * include/sys/types.h (ssize_t): Correct the definition.
4575 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4577 * include/stdio.h (_filbuf): Add prototype.
4578 (_flsbuf): Add prototype.
4579 (getc): Add inline version.
4581 (getchar): Likewise.
4582 (putchar): Likewise.
4584 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4586 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
4589 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
4591 * include/stdlib.h: Guard non-ISO functions with
4592 !__STRICT_ANSI__, throughout.
4594 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4596 * include/io.h (_fileno): Remove prototype.
4598 (FILENAME_MAX): Define, if needed.
4599 Don't include <stdio.h>.
4600 * include/stdio.h (FILENAME_MAX): Protect against
4602 (_fileno): Define macro implementation.
4605 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4607 * include/inttypes.h: Include _mingw.h.
4609 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4611 * include/_mingw.h (__CRT_INLINE): Define.
4612 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
4614 * include/inttypes.h: Likewise.
4615 * include/math.h: Likewise.
4616 * include/stdio.h: Likewise.
4617 * include/stdlib.h: Likewise.
4618 * include/string.h: Likewise.
4619 * include/wchar.h: Likewise.
4620 * include/wctype.h: Likewise.
4622 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
4624 * mingwex/dirent.c (_topendir): Allocate enough memory for
4625 DIR struct in UNICODE case too.
4627 2003-09-15 Earnie Boyd <earnie@users.sf.net>
4629 * include/_mingw.h: Increment version to 3.2.
4630 * Makefile.in: Ditto.
4632 2003-07-03 Earnie Boyd <earnie@users.sf.net>
4634 * config.guess, config.sub: Update with versions from ftp.gnu.org.
4636 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4638 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
4639 * mingwex/math/truncf.c (truncf): Likewise.
4640 * mingwex/math/truncl.c (truncl): Likewise.
4641 * mingwex/math/modff.c (modff): Likewise.
4642 * mingwex/math/modfl.c (modfl): Likewise.
4644 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4646 * include/search.h: New file.
4647 * include/stdlib.h: Add comment about qsort, bsearch in
4649 * test_headers.c: Include search.h.
4650 * moldname.def.in (lfind, lsearch): Add.
4652 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4654 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
4655 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
4656 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
4658 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4660 * include/_mingw.h (small, hyper): Change to __small and __hyper to
4661 avoid user space name conflicts.
4663 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4665 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
4666 Note: Also added to w32api/include/basetyps.h.
4667 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
4668 Rename to Small (case difference).
4670 2003-06-18 Earnie Boyd <earnie@users.sf.net>
4672 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
4673 * mingwex/dirent.c: Modifications througout to fill d_name array.
4674 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
4675 libmsvcr71, including debug versions.
4676 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
4678 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
4680 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
4681 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
4683 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
4685 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
4687 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
4689 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
4691 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
4692 but still protect inline definition with __STRICT_ANSI__.
4694 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
4696 * string_old.c: Remove, splitting into...
4697 * strcasecmp.c: New file.
4698 * strncasecmp.c: New file.
4699 * wscmpi.c : New file.
4700 * ctype_old.c: Remove, splitting into...
4701 * isascii.c: New file.
4702 * iscsym.c: New file.
4703 * iscsymf.c: New file.
4704 * toascii.c: New file.
4705 * Makefile.in (MOLD_OBJS): Adjust.
4706 (SRCDIST_FILES): Adjust.
4708 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
4710 * include/math.h (fabs) : Remove inline definition.
4714 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4716 * include/_mingw.h: Change version to 3.0
4717 * Makefile.in: Ditto.
4719 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4721 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
4722 * mingwex/configure.in (W32API_INCLUDE): Ditto.
4723 * profile/configure.in (W32API_INCLUDE): Ditto.
4725 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4727 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
4728 of multiply defined symbols if the symbols is defined locally. E.G.:
4729 A local definition of malloc causes this problem.
4730 * configure: Regenerate.
4731 * profile/Makefile.in (W32API_INCLUDE): New variable.
4732 (ALL_CFLAGS): Use W32API_INCLUDE value.
4733 (ALL_CXXFLAGS): Ditto.
4734 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
4735 Thanks to Jeff Bonggren <jbon@users.sf.net>.
4736 * profile/configure.in (W32API_INCLUDE): Set default value.
4737 * profile/configure: Regenerate.
4738 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
4739 (ALL_CFLAGS): Use W32API-INCLUDE value.
4740 (ALL_CXXFLAGS): Ditto.
4741 * mingwex/configure.in (W32API_INCLUDE): Set default value.
4742 * mingwex/configure: Regenerate.
4744 2003-05-05 Earnie Boyd <earnie@users.sf.net>
4746 * Makefile.in (W32API_INCLUDE): New variable.
4747 (ALL_CFLAGS): Use W32API_INCLUDE value.
4748 (ALL_CXXFLAGS): Ditto.
4749 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
4750 (W32API_INCLUDE): Set default value.
4751 * configure: Regenerate.
4753 2003-04-11 Earnie Boyd <earnie@users.sf.net>
4755 * configure.in (LIBM_A): Define for cygwin target.
4756 * configure (LIBM_A): Ditto.
4758 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
4760 * include/time.h (strftime): Remove duplicate declaration.
4762 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4764 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
4766 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4768 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
4769 * mingwex/strtoimax.c (strtoimax): Likewise.
4770 * mingwex/wcstoimax.c (wcstoimax): Likewise.
4771 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
4772 * mingwex/fesentenv.c: Include float.h.
4773 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
4775 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
4777 * mingwex/math/tgammal.c: Likewise.
4779 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4781 * include/utime.h: New file, forwarding to sys/utime.h.
4783 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4785 * include/sys/param.h (MAXPATHLEN): Define.
4787 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4789 * include/tchar.h: Ansi-fy a comment.
4791 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4793 * profile/profile.h (mcount): Use __builtin_return_address
4794 rather than inline __asm statements.
4795 * profile/Makefile.in: Remove special rule for mcount.o
4796 Specify dependencies for mcount.o profil.o gmon.o.
4798 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4800 * include/stdlib.h (qsort): Remove const from first parm.
4801 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
4803 2003-03-03 Christopher Faylor <cgf@redhat.com>
4805 * mingwex/getopt.c: Refresh from NetBSD sources.
4807 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
4809 * mingwex/getopt.c: New file, copied from cygwin srcs.
4810 * include/getopt.h: New file, copied from cygwin srcs.
4811 * include/unistd.h: Include getopt.h.
4812 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
4813 (POSIX_OBJS): Add getopt.o.
4815 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
4817 * include/stdio.h (vscanf): Add prototype.
4823 * include/wchar.h (vwscanf): Add prototype.
4826 * mingwex/snprintf.c: Move to mingwex/stdio.
4827 * mingwex/vsnprintf.c: Ditto.
4828 * mingwex/snwprintf.c: Ditto.
4829 * mingwex/vsnwprintf.c: Ditto.
4830 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
4831 (STDIO_DISTFILES): Add.
4832 (DISTFILES): Adjust.
4833 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
4837 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
4839 * mingwex/stdio: New directory
4840 * mingwex/stdio/vfscanf.c: New file.
4841 * mingwex/stdio/vfwscanf.c: New file.
4842 * mingwex/stdio/vscanf.c: New file.
4843 * mingwex/stdio/vsscanf.c: New file.
4844 * mingwex/stdio/vswscanf.c: New file.
4845 * mingwex/stdio/vwscanf.c: New file.
4847 2003-02-25 Earnie Boyd <earnie@users.sf.net>
4849 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
4850 (libmsvcrt40.a): Ditto.
4852 2003-02-21 Earnie Boyd <earnie@users.sf.net>
4854 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
4856 * Makefile.in (libmsvcrtd.a): Add target library.
4857 (libmoldnamed.a): Ditto.
4858 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
4860 ($(srcdir)): Remove explicit reference for depencies of object targets.
4861 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
4862 msvcrt20.def, msvcrt40.def: Remove.
4863 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
4865 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
4867 * Makefile.in: Make sure libmingwex.a from current build tree is used.
4869 2003-02-14 Christopher Faylor <cgf@redhat.com>
4871 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
4872 ensure -mno-cygwin where appropriate. Filter out -O2.
4874 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
4876 * profile/Makefile.in (mcount.o): Use -O1 optimization
4879 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4881 * include/math.h: Remove _CRTIMP from pow() prototype,
4882 unless __NO_ISOCEXT.
4884 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4886 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
4888 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4890 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
4891 __declspec(dllimport) supported.
4892 (__cdecl): Define if not already defined.
4893 (__stdcall): Likewise.
4894 * include/dirent.h: Qualify fuctions with __cdecl.
4895 * include/fenv.h: Likewise.
4896 * include/inttypes.h: Likewise.
4897 * include/assert.h: Qualify fuctions with __cdecl. Qualify
4898 CRT dll imports with _CRTIMP.
4899 * include/conio.h: Likewise.
4900 * include/ctype.h: Likewise.
4901 * include/direct.h: Likewise.
4902 * include/dos.h: Likewise.
4903 * include/errno.h: Likewise.
4904 * include/float.h: Likewise.
4905 * include/io.h: Likewise.
4906 * include/locale.h: Likewise.
4907 * include/malloc.h: Likewise.
4908 * include/math.h: Likewise.
4909 * include/mbctype.h: Likewise.
4910 * include/mbstring.h: Likewise.
4911 * include/process.h: Likewise.
4912 * include/setjmp.h: Likewise.
4913 * include/signal.h: Likewise.
4914 * include/stdio.h: Likewise.
4915 * include/stdlib.h: Likewise.
4916 * include/string.h: Likewise.
4917 * include/time.h: Likewise.
4918 * include/wchar.h: Likewise.
4919 * include/wctype.h: Likewise.
4920 * include/sys/stat.h: Likewise.
4921 * include/sys/timeb.h: Likewise.
4922 * include/sys/utime.h: Likewise.
4924 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4925 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4927 * include/stdio.h (__VALIST): Guard against prior definition.
4929 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4931 * include/_mingw.h: Change version to 3.0
4932 * Makefile.in: Ditto.
4934 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4936 * include/stdlib.h: Make words after #endif a comment.
4938 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4940 * include/locale.h: Include stddef.h for definition of NULL.
4942 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4944 * include/math.h (tgamma): Correct typo in comment.
4946 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4948 * mingwex/mingw-fseek.c (INLINE): Remove define.
4949 (__mingw_is_win9x): Remove static inline function.
4950 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4952 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4954 * mingwex/math/llround.c: Correct function name and
4955 change return value to long long.
4957 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4959 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4960 (iswascii): Likewise. Correct mask.
4961 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4964 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4966 * include/stdlib.h (_osver, _winver, _winmajor,
4967 _winminor): Declare as direct imports from dll if
4968 __DECLSPEC_SUPPORTED.
4970 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4972 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4973 * pseudo-reloc-list.c: New file.
4974 * crt1.c (_pei386_runtime_relocator): Declare.
4975 (__mingw_CRTStartup): Call it.
4976 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4977 (DllMainCRTStartup): Call it.
4978 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
4981 2003-01-01 Egor Duda <deo@logos-m.ru>
4983 * pseudo-reloc.c: New file.
4985 2002-12-20 Earnie Boyd <earnie@users.sf.net>
4987 * include/_mingw.h: Increment version to 2.4.
4990 2002-12-12 Earnie Boyd <earnie@users.sf.net>
4992 * include/malloc.h (_alloca): Add definition.
4995 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
4997 * mingwex/math/s_erf.c: New file.
4998 * mingwex/math/sf_erf.c: New file.
4999 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
5000 (MATH_OBJS): Add new objects.
5001 * include/math.h (erf[f]): Add prototypes.
5002 (erfc[f]): Add prototypes.
5004 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
5006 * include/math.h: Add traditional/XOPEN math constants.
5008 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
5010 * mingwex/math/lgamma.c: New file.
5011 * mingwex/math/lgammaf.c: New file.
5012 * mingwex/math/lgammal.c: New file.
5013 * mingwex/math/tgamma.c: New file.
5014 * mingwex/math/tgammaf.c: New file.
5015 * mingwex/math/tgammal.c: New file.
5016 * mingwex/math/cephes_mconf (polevlf): Add float version.
5018 Define _CEPHES_USE_ERRNO.
5019 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
5020 (MATH_OBJS): Add new objects.
5021 * include/math.h (lgamma[fl]): Add prototypes.
5022 (tgamma[fl]): Add prototypes.
5024 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
5026 * mingwex/strtold.c: New file.
5027 * mingwex/wcstold.c: New file.
5028 * mingwex/ldtoa.c: New file.
5029 * mingwex/math/cephes_emath.h: New file.
5030 * mingwex/math/cephes_emath.c: New file.
5031 * mingwex/Makefile.in (DISTFILES): Add new files.
5032 (MATH_DISTFILES): Ditto.
5033 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
5034 (MATH_OBJS): Add cephes_emath.o.
5035 (LIB_OBJS): Add $(STDLIB_OBJS).
5036 * include/stdlib.h (strtold, wcstold): Add prototypes.
5037 * include/wchar.h (wcstold): Add prototype.
5039 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
5041 * include/math.h (sqrt): Remove inline definition.
5042 (sqrtf): Replace inline definition with prototype.
5044 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
5045 argument less than zero.
5046 * mingwex/math/sqrtf.c (sqrtl): Likewise.
5048 2002-10-30 Guido Serassio <serassio@libero.it>
5050 * include/stdio.h (_getmaxstdio): Add prototype.
5051 (_setmaxstdio): Likewise.
5053 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
5055 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
5057 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
5059 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
5061 Define WIN32_MEAN_AND_LEAN before including windows.h
5062 * include/stdlib.h (_fmode): Protect declaration as dllimported
5063 variable with __IN_MINGW_RUNTIME.
5065 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
5067 * crt1.c: Include stdlib.h.
5069 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
5071 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
5072 (MINGW_OBJS): Add txtmode.o.
5073 (SRCDIST_FILES): Add txtmode.c binmode.c.
5074 crt1.c: Don't include fcntrl.h, stdlib.h.
5075 (_fmode): Declare, without dllimport attribute.
5076 (__p__fmode): Declare access function for dll's _fmode.
5077 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
5079 * txtmode.c: New file.
5080 * binmode.c: New file.
5081 * samples/fmode/test2.c: New file.
5082 * samples/fmode/jamfile: Add test2.exe target.
5084 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
5086 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
5087 macros work with C89.
5088 (INTMAX_C, UINTMAX_C): Likewise.
5090 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
5092 * include/string.h (strcasecmp): Make extern __inline__.
5093 (strncasecmp): Likewise.
5094 (wcscmpi): Likewise.
5096 2002-10-08 Heiko Gerdau <hg@technosis.de>
5098 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
5099 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
5102 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
5104 * mingwex/math/powil.c: Rename powil to __powil.
5105 * mingwex/math/powl.c: Adjust declaration and call
5106 to __powil. Remove comment on powil.
5107 * mingwex/math/powi.c: New file.
5108 * mingwex/math/powif.c: New file.
5109 * mingwex/math/pow.c: New file.
5110 * mingwex/math/cephes_mconf.h. Add double and float
5111 versions of constants.
5112 (polevl): Add double precision function.
5114 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
5116 (MATH_OBJS): Add pow.o, powi.o, powif.o.
5118 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
5120 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
5121 (_imp____mbcur_max_dll): Likewise.
5123 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
5125 * include/fcntl.h (_fmode): Remove declarations and
5126 compatibility defines.
5127 (_setmode, setmode): Remove prototypes.
5128 * include/stdlib (_fmode): Add declarations and
5129 compatibility defines. Change type to int.
5130 * include/io.h (_setmode, setmode): Add prototypes.
5131 * samples/fmode/all.c: Adjust includes.
5132 * samples/fmode/test.c: Likewise.
5133 * crt1.c (_CRT_fmode): Declare as int.
5134 * CRTfmode.c (_CRT_fmode): Likewise.
5136 * include/stdlib: Remove comment about MB_CUR_MAX.
5138 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
5140 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
5141 (_imp____mbcur_max_dll): Likewise.
5143 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
5145 * mingwex/math/files.txt: Remove inadvertantly added file.
5147 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
5149 * include/string.h (_strerror): Move into #ifndef
5150 __STRICT_ANSI__ block.
5152 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
5154 * include/time.h (__need_NULL): Define before including
5155 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
5157 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
5159 * include/stdio.h: Correct comment about directory separator.
5161 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
5163 * include/sys/time.h (timeval): Add struct definition and
5164 associated macros (copied from w32api/include/winsock.h).
5166 2002-09-05 Earnie Boyd <earnie@users.sf.net>
5168 * include/_mingw.h: Increment version to 2.3.
5171 2002-09-05 Earnie Boyd <earnie@users.sf.net>
5173 * mingwex/fegetenv.c: Change to \n line endings.
5174 * mingwex/vsnprintf.c: Ditto.
5175 * mingwex/vsnwprintf.c: Ditto.
5177 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
5179 * mingwex/math/hypotl.c: Replace with version based on cephes
5182 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
5184 * include/sys/param.h: Add ENDIAN defines.
5185 * test_headers.c: Include sys/param.h.
5187 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
5189 * test_headers.c: Don't include varargs.h.
5190 * Makefile.in (test_headers): Don't use -std=xx
5193 2002-08-21 Earnie Boyd <earnie@users.sf.net>
5195 * include/sys/param.h: New File.
5197 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
5199 * include/math.h (asm): Change to __asm__ throughout.
5200 Expose ISO C99 functions if __GLIPCPP__.
5201 (hypotf): Use hypot, not _hypot in stub.
5203 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
5205 * include/tchar.h: Ansi-fy another comment.
5207 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
5209 * include/tchar.h: Ansi-fy comment.
5211 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
5213 * test_headers.c : New file.
5214 * Makefile.in (test_headers): New target, using it,
5215 (SRCDIST_FILES): Distribute it.
5217 2002-08-20 Earnie Boyd <earnie@users.sf.net>
5219 * include/_mingw.h: Increment version to 2.2.
5222 2002-08-14 Earnie Boyd <earnie@users.sf.net>
5224 * include/unistd.h: Add include of process.h.
5226 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
5228 * include/stdio.h (_fcloseall): Add prototype.
5230 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
5232 * include/tchar.h (_tfdopen): Correct typo.
5234 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
5236 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
5237 nextafter): Add non-underscored stubs.
5238 * moldname-msvcrt.def: Regenerate.
5239 * moldname-crtdll.def: Regenerate.
5240 * mingwex/math: New directory.
5241 * mingwex/rint.c: Move to mingwex/math.
5242 * mingwex/rintf.c: Ditto.
5243 * mingwex/rintl.c: Ditto.
5244 * mingwex/round.c: Ditto.
5245 * mingwex/roundf.c: Ditto.
5246 * mingwex/roundl.c: Ditto.
5247 * mingwex/rint.c: Ditto.
5248 * mingwex/rintf.c: Ditto.
5249 * mingwex/rintl.c: Ditto.
5250 * mingwex/trunc.c: Ditto.
5251 * mingwex/truncf.c: Ditto.
5252 * mingwex/truncl.c: Ditto.
5253 * mingwex/signbit.c: Ditto.
5254 * mingwex/signbitf.c: Ditto.
5255 * mingwex/signbitl.c: Ditto.
5256 * mingwex/copysignl.S: Ditto.
5257 * mingwex/fdim.c: Ditto.
5258 * mingwex/fdimf.c: Ditto.
5259 * mingwex/fdiml.c: Ditto.
5260 * mingwex/fmin.c: Ditto.
5261 * mingwex/fminf.c: Ditto.
5262 * mingwex/fminl.c: Ditto.
5263 * mingwex/fmax.c: Ditto.
5264 * mingwex/fmaxf.c: Ditto.
5265 * mingwex/fmaxl.c: Ditto.
5266 * mingwex/fma.c: Ditto.
5267 * mingwex/fmaf.c: Ditto.
5268 * mingwex/fmal.c: Ditto.
5269 * mingwex/fpclassify.c: Ditto.
5270 * mingwex/fpclassifyl.c: Ditto.
5271 * mingwex/fpclassifyl.c: Ditto.
5272 * mingwex/isnan.c: Ditto.
5273 * mingwex/isnanf.c: Ditto.
5274 * mingwex/isnanl.c: Ditto.
5275 * mingwex/fucom.c: Ditto.
5276 * mingwex/fp_consts.c: Ditto. Split out float and long double
5278 * mingwex/math_stubs.c: Remove.
5279 * mingwex/log2.c: Remove. Replaced by math/log2.S
5280 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
5281 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
5282 * mingwex/math/acosf.c : New file.
5283 * mingwex/math/acosl.c: New file.
5284 * mingwex/math/asinf.c: New file.
5285 * mingwex/math/asinl.c: New file.
5286 * mingwex/math/atan2f.c: New file.
5287 * mingwex/math/atan2l.c: New file.
5288 * mingwex/math/atanf.c: New file.
5289 * mingwex/math/atanl.c: New file.
5290 * mingwex/math/cbrt.c: New file.
5291 * mingwex/math/cbrtf.c: New file.
5292 * mingwex/math/cbrtl.c: New file.
5293 * mingwex/math/ceilf.S: New file.
5294 * mingwex/math/ceill.S: New file.
5295 * mingwex/math/cephes_ld.h: New file.
5296 * mingwex/math/copysign.S: New file.
5297 * mingwex/math/copysignf.S: New file.
5298 * mingwex/math/cosf.S: New file.
5299 * mingwex/math/coshf.c: New file.
5300 * mingwex/math/coshl.c: New file.
5301 * mingwex/math/cosl.S: New file.
5302 * mingwex/math/exp2.S: New file.
5303 * mingwex/math/exp2f.S: New file.
5304 * mingwex/math/exp2l.S: New file.
5305 * mingwex/math/expf.c: New file.
5306 * mingwex/math/expl.c: New file.
5307 * mingwex/math/fabs.c: New file.
5308 * mingwex/math/fabsf.c: New file.
5309 * mingwex/math/fabsl.c: New file.
5310 * mingwex/math/floorf.S: New file.
5311 * mingwex/math/floorl.S: New file.
5312 * mingwex/math/fmodf.c: New file.
5313 * mingwex/math/fmodl.c: New file.
5314 * mingwex/math/fp_consts.h: Ditto.
5315 * mingwex/math/fp_constsf.c: Ditto.
5316 * mingwex/math/fp_constsl.c: Ditto.
5317 * mingwex/math/frexpf.c: New file.
5318 * mingwex/math/frexpl.S: New file.
5319 * mingwex/math/hypotf.c: New file.
5320 * mingwex/math/hypotl.c: New file.
5321 * mingwex/math/ilogb.S: New file.
5322 * mingwex/math/ilogbf.S: New file.
5323 * mingwex/math/ilogbl.S: New file.
5324 * mingwex/math/ldexpf.c: New file.
5325 * mingwex/math/ldexpl.c: New file.
5326 * mingwex/math/llrint.c: New file.
5327 * mingwex/math/llrintf.c: New file.
5328 * mingwex/math/llrintl.c: New file.
5329 * mingwex/math/llround.c: New file.
5330 * mingwex/math/llroundf.c: New file.
5331 * mingwex/math/llroundl.c: New file.
5332 * mingwex/math/log10f.S: New file.
5333 * mingwex/math/log10l.S: New file.
5334 * mingwex/math/log1p.S: New file.
5335 * mingwex/math/log1pf.S: New file.
5336 * mingwex/math/log1pl.S: New file.
5337 * mingwex/math/log2.S: New file.
5338 * mingwex/math/log2f.S: New file.
5339 * mingwex/math/log2l.S: New file.
5340 * mingwex/math/logb.c: New file.
5341 * mingwex/math/logbf.c: New file.
5342 * mingwex/math/logbl.c: New file.
5343 * mingwex/math/logf.S: New file.
5344 * mingwex/math/logl.S: New file.
5345 * mingwex/math/lrint.c: New file.
5346 * mingwex/math/lrintf.c: New file.
5347 * mingwex/math/lrintl.c: New file.
5348 * mingwex/math/lround.c: New file.
5349 * mingwex/math/lroundf.c: New file.
5350 * mingwex/math/lroundl.c: New file.
5351 * mingwex/math/modff.c: New file.
5352 * mingwex/math/modfl.c: New file.
5353 * mingwex/math/nearbyint.S: New file.
5354 * mingwex/math/nearbyintf.S: New file.
5355 * mingwex/math/nearbyintl.S: New file.
5356 * mingwex/math/nextafterf.c: New file.
5357 * mingwex/math/powf.c: New file.
5358 * mingwex/math/powl.c: New file.
5359 * mingwex/math/powil.c: New file.
5360 * mingwex/math/remainder.S: New file.
5361 * mingwex/math/remainderf.S: New file.
5362 * mingwex/math/remainderl.S: New file.
5363 * mingwex/math/remquo.S: New file.
5364 * mingwex/math/remquof.S: New file.
5365 * mingwex/math/remquol.S: New file.
5366 * mingwex/math/scalbn.S: New file.
5367 * mingwex/math/scalbnf.S: New file.
5368 * mingwex/math/scalbnl.S: New file.
5369 * mingwex/math/sinf.S: New file.
5370 * mingwex/math/sinhf.c: New file.
5371 * mingwex/math/sinhl.c: New file.
5372 * mingwex/math/sinl.S: New file.
5373 * mingwex/math/sqrt.c: New file.
5374 * mingwex/math/sqrtf.c: New file.
5375 * mingwex/math/sqrtl.c: New file.
5376 * mingwex/math/tanf.S: New file.
5377 * mingwex/math/tanhf.c: New file.
5378 * mingwex/math/tanhl.c: New file.
5379 * mingwex/math/tanl.S: New file.
5380 * mingwex/Makefile.in: Adjust VPATH for source files in
5383 Add MATH_DISTFILES and use it to build source distro.
5384 * include/math.h: Add protypes for new functions and
5385 reorganise to reflect ANSI,C99 status.
5387 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
5389 * include/tchar.h (_getts): Define as _getws for _UNICODE.
5390 (_putts): Define as _putws for _UNICODE.
5391 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
5393 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
5395 * include/float.h: #include_next<float.h> before header guard.
5397 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
5399 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
5401 * include/excpt.h (): Include windef.h not windows.h.
5402 * include/fcntl.h (_O_SHORT_LIVED): Add define.
5403 (_chmod): Add prototype.
5404 (_creat): Correct prototype.
5405 (SH_DENY*): Rename defines to _SH_DENY*.
5406 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
5407 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
5408 _IOAPPEND): Add defines.
5409 (_wfindfirst): Correct prototype.
5410 (_wfdopen): Add prototype.
5411 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
5413 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
5415 (_wcsdup): Correct prototype.
5416 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
5417 _mbsncat being in string.h.
5418 * include/wchar.h (_wfindfirst): Correct prototype.
5419 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
5421 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5423 * include/_mingw.h: Increment to version 2.1.
5424 * Makefile.in: Ditto.
5426 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5428 * Makefile.in (conf_prefix): New variable.
5429 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
5430 (bindist): Use dist_prefix.
5432 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
5434 * include/_mingw.h: Increment version to 2.0.
5435 * Makefile.in: Ditto.
5437 Merge in mingwex branch.
5439 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
5441 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
5442 * mingwex/fdim.c: New file.
5443 * mingwex/fdimf.c: New file.
5444 * mingwex/fdiml.c: New file.
5445 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
5447 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
5449 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
5451 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
5453 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
5455 * mingwex/isnanl.c: New file.
5457 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5459 * include/stdint.h: Include <stddef.h> to get wchar_t and wint_t.
5460 (WINT_MAX): Define to ((wint_t)-1).
5462 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5464 * include/wctype.h: Replace 'inline' with '__inline__'.
5465 * include/inttypes.h: Likewise.
5467 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5469 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
5470 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
5472 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5474 * mingwex/snprintf.c: Split out vsnprintf to....
5475 * mingwex/vsnprintf.c: New file.
5476 * mingwex/snwprintf.c: Split out vsnwprintf to...
5477 * mingwex/vsnwprintf.c: New file.
5478 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
5480 2002-05-15 Pascal Obry <obry@gnat.com>
5482 * include/dirent.h (DIR): Change dd_stat type to int.
5485 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
5487 * include/stdio.h (vsnprintf): Change inline to __inline__;
5488 (vsnwprintf): Likewise.
5489 * include/wchar.h (vsnwprintf): Likewise.
5492 (mbsinit): Likewise.
5494 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
5496 Change FP default precison from 53 to 64-bit mantissa.
5498 * Makefile.in (CRT0S): Add CRT_fp8.o.
5499 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
5500 * include/float.h: Replace standard float.h defines with
5501 #include_next<float.h> to use GCC's defines. Adjust comments
5504 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5506 * include/dos.h: Change prefix "__imp_" to "_imp__" for
5507 __GNUC__ without __DECLSPEC_SUPPORTED.
5508 * include/fnctl.h: Likewise.
5509 * include/math.h: Likewise.
5510 * include/stdio.h: Likewise.
5511 * include/stdlib.h: Likewise.
5512 * include/time.h: Likewise.
5513 * include/wctype.h: Likewise.
5514 * include/ctype.h: Likewise.
5516 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5518 Add atexit support for dlls.
5519 * crt1.c (atexit): Force thunk to _imp__atexit.
5520 (_onexit): Force thunk to _imp___onexit.
5521 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
5522 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
5523 (__dll_exit): New function to run atexit-registered functions
5524 and flush output buffers on DLL_PROCESS_DETACH or failed
5526 (atexit): Force use of private atexit table via _dllonexit,
5527 (_onexit): New function. Force use of private atexit table via
5529 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
5530 _imp_<_symbol> is visible in import lib.
5531 * msvcrt20.def: Likewise.
5532 * msvcrt40.def: Likewise.
5533 * crtdll.def: Likewise.
5535 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5537 * include/fenv.h: Change header guard macro to _FENV_H_.
5538 (fenv_t, fexcept_t): Move into block protected by
5540 Cleanup some whitespace.
5541 * include/inttypes.h: Change header guard macro to
5544 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5546 * include/math.h (copysignl): Declare.
5547 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
5548 (MATHOBJS):Add copysignl.o.
5550 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5552 * include/math.h (__signbitl, __isnanl): Declare.
5554 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5556 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
5557 roundl, truncl, fmal, log2l): Declare.
5558 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
5559 || !defined __STRICT_ANSI__.
5560 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
5561 * mingwex/fmin.c (fmin): Likewise.
5562 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
5563 * mingwex/fminf.c (fminf): Likewise.
5564 * mingwex/fmaxl.c: New file.
5565 * mingwex/fminl.c: New file.
5566 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
5567 * mingwex/fpclassifyf.c: New file.
5568 * mingwex/fpclassifyl.c: New file.
5569 * mingwex/rint.c (rintf): Split out to...
5570 * mingwex/rintf.c: New file.
5571 * mingwex/rintl.c: New file.
5572 * mingwex/round.c (roundf): Split out to...
5573 * mingwex/roundf.c: New file.
5574 * mingwex/roundl.c: New file.
5575 * mingwex/trunc.c (truncf): Split out to...
5576 * mingwex/truncf.c: New file.
5577 * mingwex/truncl.c: New file.
5578 * mingwex/signbit.c (signbitf): Split out to...
5579 * mingwex/signbitf.c: New file.
5580 * mingwex/signbitl.c: New file.
5581 * mingwex/fmal.c: New file.
5582 * mingwex/copysignl.S: New file.
5583 * mingwex/log2l.c: New file.
5584 * mingwex/fp_consts.c: Add nanl definition.
5585 Comment out unused constants.
5586 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
5587 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
5588 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
5590 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
5591 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
5592 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
5594 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
5596 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
5598 Make wide char versions of opendir and friends.
5600 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
5602 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
5603 _wseekdir): Add prototypes for wide versions of corresponding
5605 * include/tchar.h; Add _UNICODE mappings for dirent.h
5606 structures and functions.
5607 * mingwex/dirent.c: Make _UNICODE neutral.
5608 * mingwex/wdirent.c: New file to define _UNICODE before
5610 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
5611 (POSIX_OBJS): Add wdirent.o.
5612 (wdirent.o): Specify dependency on dirent.c as well as
5614 * samples/dirent/wtest.c: New file, wide version of test.c.
5616 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5618 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
5619 ensure gcc include dir is searched despite -nostdinc.
5620 * profile/Makefile.in (INCLUDES): Likewise.
5621 * mingwex/Makefile.in (INCLUDES): Likewise.
5622 * include/stdarg.h: Replace with stub that just guards the
5623 real gcc system header with #ifndef RC_INVOKED
5624 * include/varargs.h: Likewise.
5625 * include/stddef.h: Likewise.
5626 * include/stdio.h: Include stdarg.h after defining
5628 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
5629 Replace va_list with __VALIST throughout.
5631 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5633 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
5634 * msvcrt.def (_fpreset): Mark as DATA so that only
5635 _imp___fpreset is exported.
5636 * msvcrt20.def (_fpreset): Likewise.
5637 * msvcrt40.def (_fpreset): Likewise.
5638 * crtdll.def (_fpreset): Likewise.
5639 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
5641 (fpreset): Add alias.
5642 (__CRT_PC): Delete definition. _fpreset does it now.
5643 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
5644 (fpreset): Add alias.
5645 (__CRT_PC): Delete definition.
5646 * moldname.def.in: Comment out fpreset.
5647 * moldname-msvcrt.def: Regenerate.
5648 * moldname-crtdll.def: Regenerate.
5649 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
5650 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
5651 with the _fpreset determined by startup CRT_fp object.
5653 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
5655 * CRT_fp8.c: New file.
5656 * CRT_fp10.c: New file.
5657 * crt1.c (__CRT_PC) Declare.
5658 (__CRT_fesetenv): New static function, using _CRT_PC.
5659 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
5660 (_gnu_exception_handler): Likewise.
5661 * Makefile.in (CRT0S): Add CRT_fp10.o.
5662 (MINGW_OBJS): Add CRT_fp8.o.
5663 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
5664 Add CRT_fp8.o, CRT_fp10.o dependancies.
5665 * include/float.h (_fpreset): Expand comment.
5666 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
5667 (extended precison) environmemt.
5668 (FE_PC53_ENV): New define for MSVCRT default environmemt.
5669 (FE_DFL_ENV): Define as FE_PC53_ENV.
5670 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
5671 precision control for default environment.
5673 * include/math.h: Fix long comment line.
5674 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
5676 * profile/configure: Regenerate.
5678 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
5680 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
5682 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
5684 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
5685 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
5686 (__mingw_fseek): New function to work around Win9x f/lseek bug.
5687 (__mingw_fwrite): Likewise.
5688 (__mingw_is_win9x): New helper function.
5690 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
5691 (__mingw_fseek): New prototype and define to replace fseek.
5692 (__mingw_fwrite): New prototype and define to replace fwrite.
5693 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
5694 * moldname-crtdll.def: Remove CR from end of line.
5695 * moldname-msvcrt.def: Ditto.
5697 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
5699 * profile/configure.in (CRT0S): Configure name of gcrt?.o
5700 based on target, building gcrt0.o for cygwin -mno-cygwin.
5701 * profile/configure: Regenerate.
5702 * profile/Makefile.in (CRT0S): Use name from configure.
5703 (gcrt0.o): New rule.
5704 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
5706 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5708 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
5709 _fpecode): Remove prototypes copied from float.h.
5710 (nan, nanf): Move into block protected against RC_INVOKED
5712 * include/stdlib.h (_Exit): Change from static inline to
5714 * mingwex/_Exit.c : New file.
5715 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
5717 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5719 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
5720 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
5721 (configdirs): Likewise.
5722 (LIBGMON_A): Define for cygwin target as well.
5723 * configure: Regenerate.
5724 * profile/configure.in (THREAD_DLL): Remove define.
5725 (LIBM_A): Remove define.
5726 (LIBGMON_A): Define for cygwin target as well.
5727 * profile/configure: Regenerate.
5728 * profile/makefile.in (install): Install to inst_libdir and
5730 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
5731 (OPTFLAGS): New define.
5732 (ALL_CFLAGS): Add $(OPTFLAGS).
5733 (ALL_CXXFLAGS): Same.
5734 (.c.o:): Remove ALL_CXXFLAGS.
5736 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
5738 * include/stdint.h: Add missing newline at eof.
5739 * include/stdio.h (snprintf): Add prototype.
5740 (vsnprintf): Add prototype and inline definition.
5741 (snwprintf): Add prototype.
5742 (vsnwprintf): Add prototype and inline definition.
5743 * include/wchar.h (snwprintf): Add prototype.
5744 (vsnwprintf): Add prototype and inline definition.
5745 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
5747 * mingwex/snprintf.c: New file.
5748 * mingwex/snwprintf.c: New file.
5750 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
5752 * configure.in: Add mingwex as SUBDIRS and configdirs.
5753 * configure: Regenerate.
5754 * Makefile.in (MINGW_OBJS): Remove dirent.o.
5755 (SRC_DIST_FILES): Remove dirent.c.
5757 * include/stdlib.h (_Exit): Add static inline
5759 (struct lldiv_t): Define.
5760 (lldiv): Add prototype.
5761 (llabs): Add extern inline function.
5762 (strtoll,strtoull): Add prototypes.
5763 (wcstol, wcstoul, wcstod): Group together.
5764 (strtof, wcstof): Add extern inline definitions.
5765 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
5766 and extern inline definitions.
5767 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
5768 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
5770 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
5771 (wcstof): Add extern inline definition.
5772 * include/math.h (nan, nanf): Add prototypes.
5773 (NAN, INFINITE): Define constants.
5774 (fpclassify, isnan ,signbit): Add macros and supporting float
5775 and double functions.
5776 (isfinite, isinf, isnormal): Add macros.
5777 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
5779 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
5780 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
5781 (copysign, logb, nextafter, scalb): Add prototypes and
5782 inline stubs for underscored versions in msvcrt.dll.
5783 * include/inttypes.h: New file.
5784 * include/fenv.h: New file
5786 Add new mingwex subdir and files.
5787 * mingwex: New directory.
5788 * mingwex/Makefile.in: New file.
5789 * mingwex/configure.in: New file.
5790 * mingwex/configure: Generate.
5791 * mingwex/dirent.c: Moved here from parent dir.
5792 * mingwex/atoll.c: New file.
5793 * mingwex/feclearexcept.c: New file.
5794 * mingwex/fegetenv.c: New file.
5795 * mingwex/fegetexceptflag.c: New file.
5796 * mingwex/fegetround.c: New file.
5797 * mingwex/feholdexcept.c: New file.
5798 * mingwex/feraiseexcept.c: New file.
5799 * mingwex/fesetenv.c: New file.
5800 * mingwex/fesetexceptflag.c: New file.
5801 * mingwex/fesetround.o: New file.
5802 * mingwex/fetestexcept.c: New file.
5803 * mingwex/feupdateenv.c: New file.
5804 * mingwex/fma.S: New file.
5805 * mingwex/fmaf.S: New file.
5806 * mingwex/fmax.c: New file.
5807 * mingwex/fmaxf.c: New file.
5808 * mingwex/fmin.c: New file.
5809 * mingwex/fminf.c: New file.
5810 * mingwex/fp_consts.c: New file.
5811 * mingwex/fpclassify.c: New file.
5812 * mingwex/fucom.c: New file.
5813 * mingwex/fwide.c: New file.
5814 * mingwex/imaxabs.c: New file.
5815 * mingwex/imaxdiv.c: New file.
5816 * mingwex/isnan.c: New file.
5817 * mingwex/isnanf.c: New file.
5818 * mingwex/lltoa.c: New file.
5819 * mingwex/lltow.c: New file.
5820 * mingwex/log2.c: New file.
5821 * mingwex/log2f.c: New file.
5822 * mingwex/math_stubs.c: New file.
5823 * mingwex/mbsinit.c: New file.
5824 * mingwex/rint.c: New file.
5825 * mingwex/round.c: New file.
5826 * mingwex/signbit.c: New file.
5827 * mingwex/sitest.c: New file.
5828 * mingwex/strtof.c: New file.
5829 * mingwex/strtoimax.c: New file.
5830 * mingwex/strtoumax.c: New file.
5831 * mingwex/testwmem.c: New file.
5832 * mingwex/trunc.c: New file.
5833 * mingwex/ulltoa.c: New file.
5834 * mingwex/ulltow.c: New file.
5835 * mingwex/wcstof.c: New file.
5836 * mingwex/wcstoimax.c: New file.
5837 * mingwex/wcstoumax.c: New file.
5838 * mingwex/wmemchr.c: New file.
5839 * mingwex/wmemcmp.c: New file.
5840 * mingwex/wmemcpy.c: New file.
5841 * mingwex/wmemmove.c: New file.
5842 * mingwex/wmemset.c: New file.
5843 * mingwex/wtoll.c: New file.
5845 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5847 * include/mbstring.h: New file.
5848 * include/mbctype.h: New file.
5850 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5852 * include/tchar.h (__TEXT): Make same as define in
5853 w32api/include/winnt.h.
5855 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5857 * include/tchar.h (_tputenv): Add UNICODE mappings.
5858 (_tsearchenv): Likewise.
5859 (_tmakepath): Likewise.
5860 (_tsplitpath): Likewise.
5861 (_tfullpath): Likewise.
5863 2002-04-18 Pascal Obry <obry@gnat.com>
5865 * dirent.c (opendir): Convert given pathname to
5868 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5870 * include/_mingw.h: Increment version.
5871 * Makefile.in: Ditto.
5873 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5875 * moldname-crtdll.def: Remove CR from end of line.
5876 * moldname-msvcrt.def: Ditto.
5877 * Makefile.in: Use bzip2 compression for Cygwin target.
5879 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
5881 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
5882 TLOSS, PLOSS): Move oldname defines back, following
5883 the underscored names.
5885 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
5887 * include/stdio.h (_snwprintf): Correct spelling.
5888 (_vsnwprintf): Likewise.
5889 * include/wchar.h (_snwprintf): Correct spelling.
5890 (_vsnwprintf): Likewise.
5892 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
5894 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
5895 (wpopen): Add if !(__CRTDLL__).
5896 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
5898 (moldname-crtdll.def rule): Likewise.
5899 * moldname-msvcrt.def: Regenerate.
5900 * moldname-crtdll.def: Regenerate.
5901 * include/stdio.h (wpopen):Use prototype, not a define.
5902 (_swnprintf): Add prototype.
5903 (_vswnprintf): Likewise.
5905 * include/wchar.h (_swnprintf): Add prototype.
5906 (_vswnprintf): Likewise.
5909 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5911 * include/malloc.h (_heapinfo): Correct structure definition.
5912 (_USEDENTRY,_FREEENTRY): Add defines.
5913 Add comment on platform support for _heap* functions.
5914 (_get_sbh_threshold): Add prototype.
5915 (_set_sbh_threshold): Likewise.
5916 (_expand): Likewise.
5918 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5920 * profile/profil.c: Update copyright info.
5921 * profile/profil.h: Likewise.
5922 * profile/gcrt0.c: Likewise.
5924 2002-01-25 Pascal Obry <obry@gnat.com>
5926 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5928 * profile/gmon.c: Define bzero as memset if mingw32.
5929 (monstartup): Use it.
5931 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5933 * include/tchar.h (_TCHAR): Add missing ;.
5935 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5937 * include/tchar.h (_TCHAR): Add typedefs.
5939 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5941 * include/stdlib.h (_onexit_t): Add typedef.
5942 (_onexit): Add prototype.
5944 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5946 * msvcrt.def: Revert accidental change.
5947 * include/stdlib.h: Ditto.
5949 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5951 * Makefile.in: Increment VERSION.
5952 * include/_mingw.h: Ditto.
5954 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5956 * include/strings.h: New File.
5958 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5960 * include/math.h (_FPCLASS* ): Add defines from float.h.
5961 (IEEE recommended functions): Add declarations from float.h.
5962 * include/float.h (_FPCLASS* ): Protect against redefinition.
5964 2001-11-29 Wu Yongwei <adah@netstd.com>
5966 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5967 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5968 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5969 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5970 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5971 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5972 Correct spelling of "disclaimed" in comments.
5973 * include/excpt.h: Another spelling correction.
5975 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5977 * include/errno.h: Fix "errno is not a prototype" warning.
5979 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
5981 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
5982 differences between ANSI and non-ANSI versions.
5983 (_ctype[],_pctype): Declare vars.
5984 (__ISCTYPE): New helper macro using _pctype.
5985 (is* ctype functions): Use __ISCTYPE to define inline versions.
5986 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
5988 (isw* ctype functions): Inline definitions.
5989 * include/wctype.h (_ctype[],_pctype): Declare vars.
5990 (isw* ctype functions): Inline definitions.
5993 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5995 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
5996 __fpecode): Use __STDC__ prototypes.
5999 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
6001 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
6002 * mthr_init.c (DllMain) Run dtors if a process terminates.
6003 * mthr.c (__mingwthr_add_key_dtor) Removed.
6004 (___mingwthr_add_key_dtor) New.
6005 (___mingwthr_remove_key_dtor) New.
6006 (__mingwthr_run_key_dtors) Complete rewrite.
6007 (__mingwthr_remove_key_dtor) New.
6009 2001-11-05 Egor Duda <deo@logos-m.ru>
6011 * Makefile.in: Delete unused executable after creating base-files.
6013 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
6015 * include/errno.h (_errno): Use __STDC__ prototype.
6016 Thanks to: Jim Barton.
6018 2001-11-04 "stefan" <stefan@lkcc.org>
6020 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
6022 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
6024 * include/io.h (_commit): Add declaration.
6025 Thanks to: "stefan" <stefan@lkcc.org>
6027 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
6029 * include/sys/stat.h: Make S_IS* macros safer.
6031 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
6033 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
6035 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
6037 * include/stdlib.h (__p__environ, __p__wenviron): Use
6038 __STDC__ prototypes.
6040 2001-09-19 Earnie Boyd <earnie@SF.net>
6042 * Makefile.in: Remove the /usr from the install target.
6043 (VERSION): Increment.
6044 include/_mingw.h: Ditto.
6046 2001-09-17 Earnie Boyd <earnie@SF.net>
6048 * Makefile.in: Increment version.
6049 * include/_mingw.h: Ditto.
6051 2001-09-10 Earnie Boyd <earnie@SF.net>
6053 * dossh: Remove inadvertantly imported file.
6055 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
6057 * dirent.c (opendir): Use GetFileAttributes rather than stat
6058 to determine if input arg is dir.
6060 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
6062 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
6064 * include/varargs.h (va_list): Ditto.
6065 * include/stdio.h (va_list): Ditto.
6067 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
6069 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
6070 * include/stdio.h (_IORW): Change constant to 0x0080.
6071 (TMP_MAX): Add new define.
6073 (_wP_tmpdir): Ditto.
6074 (L_tmpnam): Change constant to 16.
6076 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
6078 * include/malloc.h: Fix non-ANSI comment after #endif.
6080 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6082 * profile/configure.in: Make msvcrt.dll version default.
6083 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
6084 * provile/configure: Regenerate.
6086 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
6088 * include/stdio.h (swscanf): Make first arugument const.
6089 * include/wchar.h (swscanf): Ditto.
6090 * include/tchar.h (_tfopen): New _UNICODE define.
6092 (_tsetlocale): Ditto.
6094 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
6096 * profile/Makefile.in (mkinstalldirs): Correct relative path.
6098 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
6100 * include/_mingw.h: Change version to 1.0.
6103 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
6105 * include/tchar.h: (__TEXT): Remove undef.
6109 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
6111 * include/tchar.h: (__TEXT): Add private macro.
6112 (_TEXT): Modify definition to use __TEXT.
6114 This change allows the passing of a MACRO as an argument and have that
6115 MACRO resolved first.
6116 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
6118 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
6120 * Makefile.in: Increment version to 0.5
6121 * include/_mingw.h: Increment minor version
6123 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
6125 * include/assert.h: (assert): Remove ; from end of definition
6126 Thanks to: AJ Reins <tbisp@qwest.net>
6128 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
6130 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
6131 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
6133 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
6135 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
6137 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
6139 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
6140 are actually C functions. These functions are resolved via the
6141 -lmsvcp60 library and comments were placed in the header.
6143 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6145 * include/stdlib.h (__p__pgmptr): add prototype.
6146 (__p__wpgmptr): likewise.
6147 (_pgmptr_dll): move declaration from dos.h.
6148 (_wpgmptr_dll): likewise.
6149 (_pgmptr): conditional define (MSVCT/CRTDLL).
6150 (_wpgmptr): likewise.
6151 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
6152 (_os*_dll variables): likewise.
6153 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
6154 (_wpgmptr_dll): likewise.
6156 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6158 * include/stdint.h: New file.
6160 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
6162 * include/wchar.h: Protect prototypes only declared in the C++ STL
6163 from being declared unless __cplusplus is defined.
6165 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
6167 * include/stdlib.h: Apply Danny Smith patch 102730
6168 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6169 (_wgetenv) Correction to return type.
6171 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
6173 * include/locale.h: Apply Danny Smith patch 101834
6174 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6175 (LC_MIN) Add definition.
6177 (_wsetlocale) Add prototype.
6179 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
6181 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
6182 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
6183 Create a libcoldname.a for the oldname library for CRTDLL.
6184 Restrict libmoldname.a for the oldname library for MSVCRT.
6185 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
6186 Restructure the $target_os case logic.
6187 Always name the MinGW thread dll helper mingwm.
6188 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
6189 * configure: regenerate.
6191 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
6193 * Makefile.in: Fix bindist target to distribute the correct files.
6194 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
6195 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
6197 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
6199 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
6200 Add variables and targets to control binary and source distributions.
6201 Add variables and targets to control snapshot distribution.
6202 * profile/gmon.h: Add missing #endif for #ifndef.
6203 * profile/ChangeLog: Merge entries here and remove.
6204 * profile/Makefile.in: Add variables and targets to control
6208 * config.guess: ditto.
6209 * config.sub: ditto.
6210 * mkinstalldirs: ditto.
6211 * install-sh: ditto.
6212 * configure: regenerate.
6213 * profile/configure: ditto.
6215 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
6217 * Merge in changes from
6218 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6219 * include/direct.h: add guard around MSVCRT-only prototytpes
6220 * include/io.h: add __int64 struct definitions and function prototypes;
6221 add guard for MSVCRT-only prototypes
6222 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
6223 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
6224 put wchar functions together to make sync with wchar.h easier
6225 * include/stdlib.h: add wide char functions (__MSVCRT__)
6226 * include/string.h: add string collation functions ( __MSVCRT__)
6227 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
6228 * include/tchar.h: add macros and macro function definitions
6229 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
6230 enclose more functions in __MSVCRT__ guard;
6231 some oldname wide char function prototypes #if (0)'d
6232 * profile/gmon.h: add guard around BSD-ish typedefs
6234 2000-11-20 Christopher Faylor <cgf@cygnus.com>
6236 * Makefile.in: Use a different variable name for subdirectory since the
6237 previous one was used by the top level make.
6239 2000-11-19 Christopher Faylor <cgf@cygnus.com>
6241 * Makefile.in: Install mingw stuff in a subdirectory if building under
6244 2000-06-17 Christopher Faylor <cgf@cygnus.com>
6246 * Makefile.in (subdirs): Eliminate for loop.
6248 2000-06-17 Christopher Faylor <cgf@cygnus.com>
6250 * Makefile.in (subdirs): Previous change did not fix problem in
6253 2000-06-17 Christopher Faylor <cgf@cygnus.com>
6255 * Makefile.in: Avoid installing dll if we're cross building and the
6256 cross-host system isn't a Windows system.
6257 * configure.in: Detect cross-hosting situation and set appropriate
6258 variables in Makefile.in.
6259 * configure: Regenerate.
6261 2000-04-19 Christopher Faylor <cgf@cygnus.com>
6263 * configure.in: Change HEADER_SUBDIR to mingw32.
6264 * configure: Regenerate.
6266 2000-04-10 Christopher Faylor <cgf@cygnus.com>
6268 * include/string.h: Use proper prototype for _strerror.
6270 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
6272 * Makefile.in (subdirs): Workaround for broken shells.
6274 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
6276 * Snapshot 2000-02-03.
6278 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
6279 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
6280 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
6281 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
6284 * Makefile.in (all): Build CRT0S first.
6285 (libmingwthrd.a): Remove thread support DLL from dependency.
6287 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
6289 * Snapshot 2000-01-21.
6291 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
6293 Merge in changes from Cygwin:
6294 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
6295 (SUBDIRS): Likewise.
6296 * Makefile.in (HEADER_SUBDIRS): New variable.
6297 (install): Use to install Mingw headers to a subdirectory if building
6299 (DLL_CC_STUFF): Add DLL entry point.
6300 * configure: Regenerate.
6302 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
6304 * include/stdio.h (fsetpos): Fix prototype.
6305 (fpos_t): Fix for MSVCRT.
6306 * include/float.h (fpreset): Add prototype.
6307 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
6309 * include/time.h: Don't define tzname as a macro for CRTDLL, and
6310 export using libmoldname.a.
6311 * crtdll.def: Add DATA tags.
6312 * msvcrt.def: Likewise.
6313 * moldname.def.in: Likewise. Add fpreset. Export tzname for
6314 both MSVCRT and CRTDLL.
6315 * moldname-crtdll.def: Regenerate.
6316 * moldname-msvcrt.def: Regenerate.
6318 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
6320 * Snapshot 1999-12-21.
6322 * include/wctype.h: New file.
6323 * include/ctype.h (MB_CUR_MAX): Define.
6325 * include/stdlib.h (MB_CUR_MAX): Define.
6326 * include/wchar.h: Define stat, _stat structures here as well.
6327 * include/float.h: Add invalid subconditions (_SW) and floating
6328 point error (_FPE) macros.
6329 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
6330 (_TIME_T): Rename macro to _TIME_T_DEFINED.
6331 * include/sys/types.h: Likewise.
6333 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
6335 * profile/profil.c (profile_on): Set the profiler thread priority to
6336 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
6337 * Snapshot 1999-11-18.
6339 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
6341 Released 1999-11-07.
6343 * Makefile.in (CRT0S): Add crtst.o.
6344 (install): Install in subdirs as well.
6345 * dirent.h (struct _stat): Rename from struct stat.
6346 * include/tchar.h: Add some new macros. Thanks to
6347 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
6348 * profile/Makefile.in (install): Fix target.
6350 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6352 * Makefile.in: Add support for profile directory.
6353 * configure.in: Likewise.
6354 * configure: Regenerate.
6356 * profile: Imported profiling sources from winsup-19991026 snapshot.
6357 * profile/Makefile.in: New file.
6358 * profile/configure.in: New file.
6359 * profile/configure: Generate.
6360 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
6361 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
6362 * profile/gmon.c (unistd.h): Include conditionally.
6363 (sys/param.h): Likewise.
6364 * profile/mcount.c (sys/param.h): Likewise.
6365 * profile/profil.c (profile_on): thread id is DWORD, not int.
6368 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
6370 * include/stdlib.h: Add wide character version of argv/environ.
6372 * include/wchar.h: More wide character prototypes.
6373 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
6375 * dllcrt1.c (init.c): Don't include.
6376 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
6377 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
6379 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
6381 * moldname.def: Remove file.
6382 * moldname.def.in: And add this.
6383 * moldname-msvcrt.def: Generate from moldname.def.in.
6384 * moldname-crtdll.def: Likewise.
6386 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
6387 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
6388 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
6390 * Makefile.in: Update.
6391 * configure.in: Likewise. Also add *cygwin* target for building
6392 under Cygwin winsup.
6393 * configure: Regenerate.
6395 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
6397 * include/_mingw.h: Add version macros.
6398 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
6399 Also add wide character versions shared with wchar.h.
6400 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
6401 * include/io.h (sopen, _sopen): Fix prototype.
6402 Add wide character prototypes.
6403 * include/wchar.h: Likewise.
6404 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
6405 underscored versions. Potential incompatibility.
6406 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
6407 Add wide character prototypes.
6408 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
6411 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
6413 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
6414 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
6416 * configure: Rengerate.
6417 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
6418 dll name and crt's. CRTDLL and MSVCRT are meant to created
6419 separately, so remove all the *-msvcrt* targets.
6420 (libmingwthr.a): New target. Dummy thread support archive.
6421 (LIBS): Add libmingwthr.a.
6422 (CRT0S): Use CRT_ID. Add crtmt.o.
6423 (MINGW_OBJS): Add crtst.o.
6424 * main.c (WinMain): Fix prototype.
6425 * crtmt.c: New file.
6426 * crtst.c: New file.
6428 * include/process.h (_beginthreadex): Fix prototype.
6429 * include/_mingw.h (__int64): Define for __GNUC__.
6430 * include/tchar.h (_ttol): Add macro.
6431 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
6432 _i64tow, _ui64tow, _wtoi64): Add prototypes.
6434 Reported by Emanuele Aliberti <ea@iol.it>:
6435 * include/tchar.h (_ttoi): Add macro.
6437 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
6438 * include/stdio.h (_snprintf): Add prototype.
6439 (_vsnprintf): Likewise.
6441 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
6443 Reported by Tor Lillqvist <tml@iki.fi>:
6444 * include/stdlib.h (__p___argv): Fix return type.
6446 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6449 * include/errno.h (errno): It's linked in from startup, not imported.
6450 * include/stdlib.h (errno): Likewise.
6451 * include/io.h: Guard against conflicting macros and prototypes in
6453 * include/stdlib.h: Likewise.
6454 * include/string.h: Likewise.
6455 * include/time.h: Likewise.
6457 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6459 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
6460 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
6461 * Makefile.in (INCLUDES): Remove old windows32 include directory.
6463 * crt1.c (_gnu_exception_handler): Fix prototype.
6464 (__mingw_CRTStartup): New function based on mainCRTStartup.
6465 (mainCRTStartup): Set the app type for MSVCRT and call
6467 (WinMainCRTStartup): Likewise.
6468 * init.c (_startupinfo): Define.
6469 (_getmainargs): Add 5th parameter.
6470 (_mingw32_init_mainargs): Use.
6472 * ALL *.c files: Reformat according to GNU coding style.
6474 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
6476 * Makefile.in (INCLUDES): Add w32api include directory.
6478 * include/_mingw.h: New file.
6479 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
6480 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
6481 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
6482 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
6483 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
6484 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
6486 * include/stdlib.h (atexit): Fix prototype.
6488 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
6490 * include/stdio.h (_tempnam): Fix prototype.
6491 (tempnam): Likewise.
6492 * include/stdlib.h: Replace with GCC's version, and guard
6495 From Anders Norlander <anorland@hem2.passagen.se>:
6496 * include/stdlib.h (__argc): Declare.
6499 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
6501 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
6503 * Makefile.in (_libm_dummy.o): New target.
6506 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
6508 * Released 1999-03-16 along with egcs-1.1.2.
6510 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
6512 * Makefile.in (LIBS): Add libm.a.
6513 (libm.a): Dummy libm.a.
6515 * Makefile.in: Update from winsup 1999-02-08 snapshot.
6516 Preserve local changes.
6517 (mkinstalldirs): In ../, not ../../.
6518 (INCLUDES): Point to local windows32api headers and use -nostdinc.
6520 (LIBS): Add libmoldname-msvc.a.
6521 (libmoldname-msvc.a): Add target.
6522 (distclean): Add target.
6524 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
6526 * include/dir.h: Reintroduce as an obsolescent header.
6527 * crt1.c (signal.h): Include.
6528 (_gnu_exception_handler): New function to properly handle win32
6529 asynchronous signals.
6530 (mainCRTStartup): Use.
6532 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
6534 * include/direct.h: Include io.h instead of dir.h
6535 * include/dirent.h: Likewise.
6536 * include/dos.h: Likewise.
6537 * include/stdio.h: Replace reference to dir.h with io.h.
6539 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
6541 * 1999-01-01 release bundled with egcs-1.1.1.
6543 * include/io.h: Incorporate dir.h.
6544 * include/dir.h: Remove.
6545 * include/signal.h: Move RC_INVOKED up a bit.
6547 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
6549 * include/signal.h (sig_atomic_t): Define.
6551 * include/malloc.h: Import defs from deprecated alloc.h.
6552 * include/alloc.h: Remove.
6554 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
6555 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
6556 * include/sys/stat.h (struct stat): st_uid is of type short. Use
6557 _off_t instead of long for st_size.
6559 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
6561 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
6562 * include/stdlib.h: Here.
6564 * include/netdb.h: Remove.
6565 * include/arpa/inet.h: Remove.
6566 * include/netinet/in.h: Remove.
6567 * include/sys/socket.h: Remove.
6569 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
6573 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
6574 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
6576 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6578 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
6579 (jmpbuf): typedef using above.
6580 (setjmp, longjmp): Prototype using jmpbuf.
6582 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
6583 obsolescent imported names, ie., from __imp__ to _imp___.
6585 Also ignored empty include/sys/param.h and incorrect
6586 include/sys/times.h.
6588 * CRTinit.c: New file.
6589 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
6591 * include/io.h (umask): Fix prototype.
6592 * include/stdlib.h (OS constants): Replace with Colin's.
6593 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
6594 * include/sys/state.h: Merge.
6596 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6598 * include/assert.h (assert): Lose the trailing semicolon.
6600 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6602 * include/math.h (matherr): Declare.
6603 * include/stdio.h (fileno, _fileno): Declare.
6604 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
6607 * include/stdio.h (fdopen, _fdopen): Add const.
6608 (getw, putw): Declare.
6609 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
6611 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
6613 * include/time.h (_timezone): Undefine.
6614 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
6616 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
6618 * include/stdlib.h (environ): Use DLL version.
6619 * init.c (environ): Undefine it before use.
6621 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
6623 * Update to 980309 snapshot from Colin Peters.
6625 * include/utime.h: remove
6626 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
6627 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
6628 patches to define these.
6629 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6630 (_daylight, _timezone, _tzname, _tzset): Define.
6632 * include/netdb.h: Add from Colin's windows32api changes.
6633 * include/sys/socket.h: Likewise.
6634 * include/arpa/inet.h: Likewise.
6635 * include/netinet/in.h: Likewise.
6637 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
6639 * Update to 980128 snapshot from Colin Peters.
6641 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
6643 * configure.in (AC_INIT): Use dllmain.c instead of defunct
6645 * configure: Regenerate.
6647 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
6649 * Update to 971205 snapshot from Colin Peters. Lots of changes.
6650 Files renamed and include hierarchy loses directories named
6653 * include/dos.h: from Jan-Jaap.
6655 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
6657 Changes to conform to FSF tree.
6659 * crt1.c: Renamed from mcrt0.c.
6660 * dllcrt1.c: Renamed from dllcrt0.c.
6661 * Makefile.in: Update above. Also renamed libmoldnames.a to
6664 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
6666 * crtdll.def: Export all functions but the ones with funny names.
6667 * moldnames.def: Add fdopen since fileno is already there.
6668 * include/nonansi/dos.h: New file from Jan-Jaap.
6669 * include/errno.h: Add extern decl + various additions from JJ.
6670 * include/stdio.h: Likewise.
6671 * include/stdlib.h: Likewise.
6672 * include/nonansi/io.h: Likewise.
6673 * include/nonansi/process.h: Likewise.
6674 * include/sys/types.h: Likewise.
6676 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6678 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6680 * include/stdlib.h (free): Fix prototype to return void, not void*.
6681 * include/nonansi/process.h: Add P_* and WAIT_* defs.
6683 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
6684 * mcrt0.c: Likewise.
6686 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
6687 (libmoldnames.a): Add explicit rule to create it.
6689 1997-08-15 Rob Savoye <rob@cygnus.com>
6691 New directory for the minimalist cygwin environment.
6693 * crtglob.c: New file. Turn on file globbing support.
6694 * crt_noglob.c: New file. Turn off file globbing support.
6695 * ctype_old.c: New file. Wrappers for functions that don't
6697 * dirent.c: New file. Directory routines readdir, opendir, closedir.
6698 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
6699 * dllmain.c: New file. A stub DllMain function.
6700 * hugeval.c: New file. A gross hack to define HUGE_VAL.
6701 * init.c: New file. Common code to initialize standard file
6702 handles and command line arguments.
6703 * main.c: New file. A main for programs that only call WinMain.
6704 * mcrt0.c: New file. Default crt0 for mingw32.
6705 * oldnames.c: New File. Wrappers for functions that don't
6707 * string_old.c: New File.
6708 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
6709 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
6710 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
6711 * include/sys/types.h: New header file for mingw.
6712 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
6713 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
6714 utime.h,values.h,varargs.h}: New header files for mingw.
6715 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
6716 timeb.h,unistd.h}: New header files for mingw.
6717 * Makefile.in,configure.in: Build and configure support.
6718 * configure: Generated from autoconf 2.12 with Cygnus patches.