1 2016-11-27 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Work around another C++11 compliance issue; fix bug [#2321].
5 * include/excpt.h (__try1_setup, __except1_teardown): Add spaces to
6 separate each use of '__wsize' and '__ts' macros from all surrounding
7 string literals, to ensure that C++ parses them as distinct tokens.
9 2016-11-21 Keith Marshall <keithmarshall@users.sourceforge.net>
11 Replace defective powf() and powl() function implementations.
13 * mingwex/math/powf.c mingwex/math/powl.c: Delete; replaced by...
14 * mingwex/math/pow_generic.sx: ...this new file; it implements...
15 (__x87pow): ...this generic power function back-end, serving...
16 (pow, powf, powl): ...each of these front-end entry points.
18 * Makefile.in (libmingwex.a): Add x87pow.$OBJEXT
20 * include/math.h (powf): Remove inline implementation; it no longer
21 offers any inline advantage.
23 2016-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
25 Implement unit tests for power functions.
27 * tests/testsuite.at.in: m4_include...
28 * tests/Makefile.in (testsuite): ...and add dependency on...
29 * tests/powerfunc.at: ...this new file; it specifies unit tests to
30 check POSIX.1-2008 compliance of results and errno assignment from...
31 (pow, powf, powl): ...each of these functions.
33 2016-11-14 Keith Marshall <keithmarshall@users.sourceforge.net>
35 Add POSIX compliant errno assignments to log functions.
37 * include/errno.h: Make it assembly language compatible.
38 [__ASSEMBLER__]: Omit <_mingw.h>; do not declare prototype for...
39 (_errno): ...this accessor function; the declaration is syntactically
40 invalid, in assembly language code.
42 * mingwex/math/errno.sx: New file; when included by other assembly
43 language files, it provides bindings for assignement of any constant
44 defined in <errno.h> to the global errno variable, facilitated by...
45 (errno): ...this new GAS macro.
47 * mingwex/math/log_generic.sx: New file; it provides a generic back
48 end implementation for multiple logarithmic functions, accessed via...
49 (___x87log, ___x87log_chk): ...this pair of entry points, serving...
50 (log, logf, log): ...each of these primary functions; it replaces...
51 * mingwex/math/logf.s mingwex/math/logl.s: ...these; delete them.
53 * mingwex/math/log1p_generic.sx mingwex/math/log10_generic.sx
54 * mingwex/math/log2_generic.sx: New files; each acts as a wrapper for
55 log_generic.sx, providing the front end entry stubs for each of...
56 (log1p, log1pf, log1pl, log10, log10f, log10l, log2, log2f, log2l):
57 ...these functions; thus, they provide complete replacements for...
58 * mingwex/math/log1p.s mingwex/math/log1pf.s mingwex/math/log1pl.s
59 * mingwex/math/log10f.s mingwex/math/log10l.s mingwex/math/log2.s
60 * mingwex/math/log2f.s mingwex/math/log2l.s: ...these; delete them.
62 * mingwex/math/x87cvt_generic.sx: New file; it implements...
63 (___x87cvt, ___x87cvtf): ...this pair of return value conversion
64 routines, for conversion from the FPU's internal REAL10 data format,
65 to REAL8 and REAL4, for double and float functions respectively.
67 * Makefile.in (libmingwex.a): Add dependencies on...
68 (x87cvt.$OBJEXT), x87cvtf.$OBJEXT), x87log.$OBJEXT), x87logf.$OBJEXT):
69 ...these object modules; implement pattern rule to build them from...
70 (x87cvt_generic.sx, log_generic.sx): ...these generic sources; also
71 provide for building the respective log function entry stubs from
72 their respective generic sources.
74 2016-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
76 Implement unit tests for logarithmic functions.
78 * tests/testsuite.at.in: m4_include...
79 * tests/Makefile.in (testsuite): ...and add dependency on...
80 * tests/logarithms.at: ...this new file; it specifies unit tests to
81 check POSIX.1-2008 compliance of results and errno assignment from...
82 (log, logf, logl, log1p, log1pf, log1pl, log10, log10f, log10l, log2)
83 (log2f, log2l): ...each of these functions.
85 2016-11-02 Keith Marshall <keithmarshall@users.sourceforge.net>
87 Implement unit tests for ANSI printf() functions.
89 * tests/Makefile.in (testsuite): Add dependency for...
90 * tests/ansiprintf.at: ...this new file, and...
91 * tests/testsuite.at.in: ...m4_include it.
93 2016-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
95 Fix another printf() hex-float formatting bug.
97 * mingwex/stdio/pformat.c (__pformat_emit_xfloat)
98 [stream->flags & PFORMAT_ZEROFILL]: Ignore this; it should be...
99 [(stream->flags & PFORMAT_JUSTIFY) == PFORMAT_ZEROFILL]: ...thus.
101 2016-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
103 Merge post 2016-10-18 updates from legacy branch.
105 * include/io.h include/wchar.h: Updated.
106 * mingwex/stdio/pformat.c: Likewise.
108 2016-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
110 Work around MSDN inconsistencies in _finddata_t naming.
112 * include/io.h (_finddata64_t, _wfinddata64_): Define them
113 respectively as aberrant alternative data type names for each of...
114 (__finddata64_t, __wfinddata64_t): ...these original names.
115 (_wfinddata32_t): Similarly, define this with...
116 (__wfinddata32_t): ...this alternative name.
118 * include/wchar.h (_wfinddata32_t): Correct references in comments.
120 2016-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
122 Fix a potentially infinite printf() format conversion loop.
124 * mingwex/stdio/pformat.c (__pformat_emit_xfloat)
125 [value.__pformat_fpreg_mantissa == 0]: Do not attempt to normalize
126 it; there are no 1-bits to promote, so repeated shifting until one
127 appears in most significant position will never terminate.
129 2016-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
131 Merge mingwrt-3.22.4 updates into 5.0-active branch.
133 * configure.ac: Preserve original 5.0-active state.
134 * include/wchar.h: Update per 2016-10-17 commits.
136 2016-10-17 Keith Marshall <keithmarshall@users.sourceforge.net>
138 Prepare and tag mingwrt-3.22.4 patch release.
140 * configure.ac (AC_INIT): Increment patch level.
142 2016-10-17 Keith Marshall <keithmarshall@users.sourceforge.net>
144 Resolve an ANSI mode <string.h> vs. <wchar.h> conflict.
146 * include/wchar.h [!(_WCHAR_H && _STRING_H)]: Change condition...
147 [!(_WCHAR_H && (_STRING_H && !__STRICT_ANSI__))]: ...to this; the
148 guarded declarations are not exposed by including <string.h> when...
149 [__STRICT_ANSI__]: ...this is defined; hence, we must declare them
150 when including <wchar.h>, even after including <string.h>
152 2016-10-14 Keith Marshall <keithmarshall@users.sourceforge.net>
154 Add dependency tracking for tests/Makefile.
156 * tests/Makefile.in (top_builddir): Define it.
157 (Makefile): Add automatic rebuild rule, tracking both srcdir and
158 top_builddir prerequisite changes.
160 2016-10-14 Keith Marshall <keithmarshall@users.sourceforge.net>
162 Correct a minor typographic error.
164 * tests/atlocal.in (autoconf_input): Replace invalid AC_SUBST tag...
165 (configure_input): ...with this correctly named alternative.
167 2016-10-14 Keith Marshall <keithmarshall@users.sourceforge.net>
169 Merge mingwrt-3.22.3 updates into 5.0-active branch.
171 * configure.ac: Preserve original 5.0-active state.
172 * include/_mingw.h.in include/string.h include/sys/types.h
173 * include/io.h: Update per 2016-10-13 commits.
175 2016-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
177 Prepare and tag mingwrt-3.22.3 patch release.
179 * configure.ac (AC_INIT): Increment patch level.
181 2016-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
183 Emulate glibc <string.h> POSIX.1 non-compliance.
185 * include/_mingw.h.in (_EMULATE_GLIBC): New feature test macro.
186 [_GNU_SOURCE || _BSD_SOURCE || !__STRICT_ANSI__]: Enable it when...
187 [_XOPEN_SOURCE || _POSIX_C_SOURCE || _POSIX_SOURCE]: ...none of
188 these have been pre-defined by the user.
190 * include/string.h [_EMULATE_GLIBC]: Include <strings.h> in full...
191 (strcasecmp, strncasecmp): ...so prototypes for these are declared.
192 [!_EMULATE_GLIBC]: Preserve partial <strings.h> include, guarded by...
193 [__STRING_H_SOURCED__]: ...this context selector, so suppressing the
194 declarations of those function prototypes.
196 2016-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
198 Resolve some non-ANSI typedef omissions.
200 * include/sys/types.h (off_t, ssize_t): Always typedef them when...
201 [_POSIX_C_SOURCE || !_NO_OLDNAMES]: ...either of these prevails.
203 * include/io.h (_fsize_t): Do not suppress its typedef when...
204 [__STRICT_ANSI__]: ...this compiler option applies, irrespective of...
205 [!(_IO_H && _WCHAR_H)]: ...this, which otherwise causes supression.
207 2016-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
209 Prepare and tag mingwrt-3.22.2 patch release.
211 * configure.ac (AC_INIT): Increment patch level.
212 * config.guess config.sub: Delete, per 2016-07-16 commit.
213 * include/stdlib.h: Backport, per 2016-09-14 commit.
214 * include/wchar.h: Backport, per 2016-09-17 commits.
216 2016-09-17 Keith Marshall <keithmarshall@users.sourceforge.net>
218 Add missing <wchar.h> declarations when compiling C++.
220 * include/wchar.h (fwide, mbsinit, wmemset, wmemchr, wmemcpy)
221 (wmemmove, wcstoll, wcstoull): Declare each of these for either of...
222 [_ISOC99_SOURCE || __cplusplus]: ...these conditions, rather than...
223 [_ISOC99_SOURCE]: ...this alone.
225 2016-09-17 Keith Marshall <keithmarshall@users.sourceforge.net>
227 Stricter <wchar.h> ISO-C99 conformity filtering.
229 * include/wchar.h [__STRICT_ANSI__]: Do not include any part of...
230 (direct.h, io.h, sys/stat.h, locale.h, process.h): ...any of these.
232 2016-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
234 Relax strict ISO-C conformity to facilitate C99 support.
236 * include/stdlib.h (_atoi64, _exit) [__STRICT_ANSI__]: Convention
237 dictates that the Microsoft specific functions should not be declared;
238 however, C99 provides equivalents in atoll() and _Exit(), for which we
239 gratuituously use them to provide inline implementations; thus...
240 [_ISOC99_SOURCE && !__NO_INLINE__]: ...declare them anyway.
242 2016-09-13 Keith Marshall <keithmarshall@users.sourceforge.net>
244 Suppress expected header warnings when running testsuite.
246 * include/dir.h include/dos.h [__IN_MINGWRT_TESTSUITE__]: New feature
247 test; do not emit warning messages, which declare this pair of headers
248 to be obsolete. These warnings are expected, but their format may not
249 be deterministically predictable; there is no reason to fail any test
250 on account of any such expected warning message.
252 2016-09-13 Keith Marshall <keithmarshall@users.sourceforge.net>
254 Create a preliminary autotest framework.
256 * configure.ac (AC_TESTDIR): Initialize tests subdirectory.
257 (AC_PROG_CXX): Identify C++ compiler; the testsuite will use it.
258 (AC_CHECK_PROG): Check availability of autom4te; specify fallback.
259 (AC_CONFIG_FILES): Add instantiation requests for tests/atlocal,
260 tests/Makefile, and tests/testsuite.at.tmp
262 * tests/testsuite.at.in tests/atlocal.in tests/headers.at
263 * tests/Makefile.in: New files; implement them.
265 * Makefile.in (check, check-recursive, tests): Implement new goals.
266 (mingwrt-srcdist-files): Subdivide package files complement into...
267 (mingwrt-srcdist-package-files): ...this original collection, and...
268 (mingwrt-srcdist-testsuite-files): ...this additional set.
270 * test_headers.c: Superseded by autotest; delete it.
272 2016-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
274 Add pthreads-win32 courtesy support hooks.
276 * include/errno.h: Assert copyright; tidy layout.
277 (_ERRNO_H_): Rename this repeat inclusion guard macro as...
278 (_ERRNO_H): ...this, conforming to preferred naming convention.
279 [__PTW32_H]: Include "ptw32_errno.h".
281 * include/time.h [__SCHED_H_SOURCED__]
282 (struct timespec): Typedef it selectively; do not define...
285 2016-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
287 Implement POSIX printf() feature per request [#2310].
289 * mingwex/stdio/pformat.c [WITH_XSI_FEATURES]: Delete references.
290 (PFORMAT_GROUPED): New manifest constant; define it. It previously
291 appeared in an occluded XSI feature reference, but is now required.
292 (__pformat_t.tslen, __pformat_t.tschr, __pformat_t.grouping): New
293 structure member fields; they maintain control state as set up by...
294 (__pformat_enable_thousands_grouping): ...this new internal function.
295 (__pformat_int_bufsiz): Use it; it may request a size increment.
296 (__pformat_emit_digit, __pformat_emit_punct): New functions; they
297 handle output of digits, radix point, and thousands digits separator
298 punctuation for all numeric conversion formats, thus replacing...
299 (__pformat_emit_numeric_value, __pformat_emit_radix_point): ...these;
300 delete them, and update all callers to use appropriate replacements.
301 (__pformat_int) [PFORMAT_GROUPED]: Add and emit group separators.
302 (__pformat_xint_bufsiz): New internal function; it serves in place of
303 __pformat_int_bufsiz(), for those integer data conversion formats
304 which explicitly do not support thousands digits grouping, hence...
305 (__pformat_xint): ...use it, rather than __pformat_int_bufsiz().
306 (__pformat_adjust_for_grouping): New internal function; it adjusts the
307 __gdtoa radix point index for fixed point conversion formats, to allow
308 for the insertion of thousands digits group separators, hence...
309 (__pformat_emit_float): ...use it, and emit separators as appropriate.
310 (__pformat_emit_efloat) [PFORMAT_GROUPED]: Explicitly disable it.
311 (__pformat): Initialise stream references for __pformat_t.grouping,
312 __pformat_t.tslen, and _pformat_t.tschr, on entry; release any memory
313 allocated for __pformat_t.grouping, when done.
315 2016-08-01 Keith Marshall <keithmarshall@users.sourceforge.net>
317 Implement POSIX conforming getline() and getdelim() functions.
319 * mingwrt/mingwex/stdio/getdelim.c: New file.
320 * mingwrt/man/getline.3.man: Likewise.
322 * mingwrt/include/stdio.h [_POSIX_C_SOURCE >= 200809L]
323 (getdelim): New function, implemented externally; declare prototype.
324 (getline): New function; declare prototype; implement as __CRT_ALIAS
325 inline, with __LIBIMPL__ external representation.
327 * mingwrt/Makefile.in (libmingwex.a): Add getdelim.$OBJEXT
328 (mingwrt-man$man3ext): Add manpage dependency references to create...
329 (getline.$man3ext, getdelim.$man3ext): ...these; declare them as
330 distributable duplicates, to be generated from...
331 (getline.$man3ext.man): ...this common source.
333 2016-08-01 Keith Marshall <keithmarshall@users.sourceforge.net>
335 Merge mingwrt-3.22.1 legacy updates to 5.0-active branch.
337 * mingwex/math/powl.c: Update per issue [#2036] workaround.
338 * mingwex/stdio/pformat.c: Likewise, per issue [#2309] resolution,
339 and subsequent 2016-07-24 optimization.
341 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
343 Prepare and tag all files for release of mingwrt-3.22.1.
345 * configure.ac (AC_INIT): Adjust package version number; append
346 patch level identification.
348 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
350 Interim workaround for issue [#2306].
352 * mingwex/math/powl.c: Tidy layout; correct indentation.
353 (powl, reducl): Use ISO-C declaration syntax; K&R is obsolescent.
354 (powl) [OVERFLOW]: Correct representation of return value, using...
355 (INFINITYL): ...this manifest constant value, instead of...
358 2016-07-24 Keith Marshall <keithmarshall@users.sourceforge.net>
360 Optimize printf() field width accumulation function.
362 * mingwex/stdio/pformat.c (__imul10plus): Omit multiply by ten on
363 already accumulated zero total; it is unnecessary, since ten times
366 2016-07-22 Keith Marshall <keithmarshall@users.sourceforge.net>
368 Fix printf() field width parsing regression issue [#2309].
370 * mingwex/stdio/pformat.c (__imul10plus): Coerce any accumulated
371 negative total to zero; the only negative value to be handled is...
372 (PFORMAT_IGNORE): ...this; it ceases to be applicable, on first call
373 to __imul10plus(), to accumulate field width or precision.
375 2016-07-19 Keith Marshall <keithmarshall@users.sourceforge.net>
377 Update install-sh to match mingw.org/build-aux package.
379 * install-sh: Delete it; use version in parent directory instead,
380 recreating local copy, (as symlink, if supported), on demand.
382 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
384 Eliminate redundant configuration files.
386 * aclocal.m4 VERSION.m4: Delete them; restore them on demand, via...
387 * Makefile.in ($top_srcdir/../%): ...this symlink dependency rule.
389 * configure.ac (AC_PROG_LN_S): Add configuration check.
391 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
393 Merge mingwrt-3.22 packaging correction to 5.0-active branch.
395 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
397 Correct mingwrt-3.22 source package subdirectory omission.
399 * Makefile.in (mingwrt-srcdist-files): Add msvcrt-xref.
401 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
403 Discard redundant config.guess and config.sub files.
405 * config.guess config.sub: Delete them; they are no longer required.
407 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
409 Merge recent legacy branch updates to 5.0-active branch.
411 * Makefile.in include/ctype.h include/excpt.h include/stdint.h
412 * include/glob.h include/limits.h include/locale.h include/search.h
413 * include/stdio.h include/stdlib.h include/wchar.h include/wctype.h
414 * include/sys/param.h include/sys/stat.h mingwex/tdelete.c
415 * mingwex/tfind.c mingwex/tsearch.c mingwex/twalk.c: Updated.
417 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
419 Prepare and tag all files for release of mingwrt-3.22.
421 * configure.ac (AC_INIT): Adjust package version number.
423 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
425 Preserve kludge to evade GCC build failure on S_ISBLK misuse.
427 * include/sys/stat.h (_NO_UNSUPPORTED): New feature test macro; it
428 should be user defined, if desired, before inclusion; leave undefined.
429 [!_S_IFBLK && !_NO_UNSUPPORTED && !_NO_OLDNAMES] (S_ISBLK): Define it,
430 as appropriate for POSIX conforming usage; do not poison it.
432 2016-07-10 Keith Marshall <keithmarshall@users.sourceforge.net>
434 Fix C++ strict type checking inconsistency in <glob.h>
436 * include/glob.h (__ERRFUNC_P): New private macro; define it to match
437 the type signature of the error function pointer, to be passed to...
438 (glob): ...this function; use it to correctly represent error function
439 pointer argument in inline implementation.
441 2016-07-09 Keith Marshall <keithmarshall@users.sourceforge.net>
443 Factor out <ctype.h> vs. <wctype.h> duplicate elements.
445 * include/ctype.h: Assert copyright; tidy layout.
446 [!_CTYPE_H_]: Do not evaluate; rename macro to be tested, as...
447 [!_CTYPE_H]: ...this preferred multiple inclusion guard macro name.
448 (__CTYPE_H_SOURCED__): New macro; define it, and include <wctype.h>,
449 so requesting partial inclusion, to retrieve definitions for...
450 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
451 (_UPPER, WEOF): ...these macros; hence, do not define them locally.
452 (wint_t, wchar_t, wctype_t): Likewise these type definitions...
453 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
454 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
455 (iswupper, iswxdigit, towlower, towupper, is_wctype): ...these function
456 prototypes, and corresponding inline alternative implementations.
457 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
458 [__MSVCRT_VERSION__<=__MSVCR70_DLL]: Likewise.
460 * include/wctype.h: Assert copyright; tidy layout.
461 [!_WCTYPE_H_]: Do not evaluate; rename macro to be tested, as...
462 [!_WCTYPE_H]: ...this preferred multiple inclusion guard macro name;
463 do not define it when partial inclusion only is selected, by...
464 [__CTYPE_H_SOURCED__]: ...this; thence define only...
465 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
466 (_UPPER): ...these character characterisation macros...
467 (wint_t, wchar_t, wctype_t): ...these type definitions...
468 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
469 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
470 (iswupper, iswxdigit, towlower, towupper): ...these function
471 prototypes, with corresponding inline alternative implementations...
472 (is_wctype): ...this further prototype, qualified as deprecated...
473 (WEOF): ...and this status reporting macro.
474 (_ctype, _pctype, _pctype_dll, _imp___ctype, _imp___pctype): Delete
475 declarations, and associated definitions; they do not belong here.
476 (isleadbyte): Likewise, this Microsoft specific function prototype...
477 (_LEADBYTE): ...and this associated character classification macro.
478 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
480 2016-07-04 Keith Marshall <keithmarshall@users.sourceforge.net>
482 Do not pass MAKEFLAGS explicitly, when invoking recursive make.
484 * Makefile.in (install-strip, uninstall): Delete explicit $(MAKEFLAGS)
485 references from $(MAKE) command lines; make passes them implicitly.
487 2016-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
489 Rework tsearch and friends; resolve issues [#1512] and [#1576].
491 * include/search.h: Assert copyright; tidy layout.
492 (_SEARCH_H_): Rename this multiple inclusion guard macro...
493 (_SEARCH_H): ...to conform to this preferred standard convention.
494 (__search_comparator): New function prototype typedef; it provides a
495 convenient shorthand notation for argument declarations in functions
496 which require a comparator function pointer; use it where appropriate.
497 (tsearch, tfind, tdelete) [__MINGW_ATTRIB_NONNULL]: Apply to arguments
498 #2 and #3; was previously incorrectly applied to arguments #1 and #3.
499 (twalk) [__MINGW_ATTRIB_NONNULL]: Apply to both arguments #1 and #2.
500 [_SEARCH_PRIVATE] (__MINGW_ATTRIB_NONNULL): Suppress its effect, to
501 ensure that GCC does not optimize away checks within implementation.
502 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
504 * mingwex/tdelete.c: Tidy layout.
505 (tdelete): Reimplement it as a thin wrapper around...
506 (__tdelete): ...this; it encapsulates the original implementation as a
507 __CRT_ALIAS (inline) function, to simplify void ** --> node_t ** casts.
508 Remove unnecessary non-null assertions for arguments #1 and #3; prefer
509 to validate arguments #2 and #3 internally, and simply return NULL if
510 necessary; hence, do not include <assert.h>
512 * mingwex/tfind.c: Tidy layout.
513 (tfind): Similarly reimplement it as a thin wrapper around...
514 (__tfind): ...this __CRT_ALIAS (inline) encapsulation of the original.
515 Add non-null validation for argument #3; do not include <assert.h>
517 * mingwex/tsearch.c: Tidy layout.
518 (tsearch): Once again, reimplement it as a thin wrapper around...
519 (__tsearch): ...this __CRT_ALIAS variant. Add non-null validation for
520 argument #3; do not include <assert.h>
522 * mingwex/twalk.c: Tidy layout; do not include <assert.h>
524 2016-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
526 Rework __try1/__except1 to resolve issue [#1328].
528 * include/excpt.h: Assert copyright; tidy layout.
529 (_EXCPT_H_): Multiple inclusion guard macro renamed to...
530 (_EXCPT_H): ...this; update all references as appropriate.
531 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
532 (__typecast_alloca): New macro; define it, casting return type of...
533 (__builtin_alloca): ...this to a specified data type; use it in...
534 (__try1_setup, __except1_teardown): ...these new macros; define them
535 as parameterized templates, providing both -masm-att and -masm-intel
536 syntax implementations, with host specific word size and register
537 assignment parameter substitutions; use them to redefine...
538 (__try1, __except1): ...each of these, using __builtin_alloca to avoid
539 direct stack pushes when registering exception handlers; assign the
540 template parameters as appropriate to support implementation for...
541 [_WIN64, _WIN32]: ...either of these, as the host requires.
543 2016-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
545 Merge Cygwin CVS updates to legacy branch.
547 * include/stdio.h: Merge 2011-11-30 and 2012-08-02 commits.
548 (getc, getchar, putc, putchar): Declare function prototypes.
549 (fopen64, ftello64): Likewise; change implementation classification
550 from __CRT_INLINE to __CRT_ALIAS, to avoid C++ emitted code bloat.
551 (_lock_file, _unlock_file): Add prototypes; modify merge to...
552 [__MSVCRT_VERSION__>=__MSVCR80_DLL]: ...require this.
554 * include/stdint.h: Merge 2012-07-30 commit; include <_mingw.h>
556 * include/excpt.h: Merge 2012-08-01 commit.
557 (__try1, __except1) [_WIN64]: Add alternative implementations.
559 * include/stdlib.h: Merge 2012-08-02 commit.
560 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
561 (_strtoi64, _strtoui64, _wcstoi64, _wcstoui64): Declare prototypes.
562 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
563 (_strtoi64_l, _strtoui64_l, _wcstoi64_l, _wcstoui64_l): Likewise...
564 [!__have_typedef_locale_t] (__need_locale_t): ...and define to get...
565 (locale_t): ...this, by selective inclusion of <locale.h>
566 [__WCHAR_H_SOURCED] (_wcstoi64, _wcstoui64, _wcstoi64_l)
567 (_wcstoui64_l): Make these function prototypes available for selective
569 * include/wchar.h: ...this; merge 2012-08-02 commit.
570 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
571 (_wcstoi64, _wcstoui64): Note availability of function prototypes via
572 selective inclusion of their actual declarations from <stdlib.h>
573 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
574 (_wcstoi64_l, _wcstoui64_l): Likewise.
576 * include/limits.h: Merge 2012-08-02 commit.
577 [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
579 * include/sys/param.h: Merge 2012-08-02 commit.
580 [PATH_MAX not defined] (MAXPATHLEN): Define it explicitly.
581 [PATH_MAX defined] (MAXPATHLEN): Define it as an alias.
583 2016-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
585 Add typedef and access support for opaque locale_t objects.
587 * include/locale.h (locale_t, _locale_t): Define opaque types.
588 [__need_locale_t]: Make them selectively accessible; define...
589 (__have_typedef_locale_t): ...this, when they are available.
590 [_LOCALE_H] (_create_locale, _get_current_locale, _free_locale):
591 Declare function prototypes, on direct <locale.h> inclusion only.
592 [_LOCALE_H || _WCHAR_H] (_wcreate_locale): Likewise; this is to be
593 visible on direct inclusion, or when including <wchar.h>
595 * include/stdio.h [!(_STDIO_H && _WCHAR_T)]: Correct expression of...
596 [__MSVCR80_DLL || _WIN32_WINNT_VISTA]: ...this subsidiary condition;
597 for all cases when this is true, (including when [_STDIO_H] alone)...
598 [!__have_typedef_locale_t] (__need_locale_t): ...define this, and
599 include <locale.h>, for selective definition of...
602 2016-05-19 Keith Marshall <keithmarshall@users.sourceforge.net>
604 Occlude unsupported _S_IFBLK feature; resolve issue [#1146].
606 * include/sys/stat.h (_MINGW_S_IFBLK_KLUDGE): New feature test macro;
607 do not define it, and strongly recommend that it remains undefined.
608 [!_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Do not define them.
609 [!_MINGW_S_IFBLK_KLUDGE] (_S_ISBLK, S_ISBLK): Poison them.
610 [_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Adjust definitions; use a
611 modified value, which is guaranteed to be impossible to match in...
612 [_S_ISBLK, S_ISBLK]: ...these, thus enforcing false test results.
614 2016-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
616 Fix a typo in a <sys/stat.h> inline function definition.
618 * include/sys/stat.h [__MSVCRT_VERSION__ >= __MSVCR80_DLL]
619 (stat): First argument declared as 'int'; should be 'const char *';
622 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
624 Synchronize package version management with Win32-API.
626 * VERSION.m4: New file; link it to keep in sync with identically named
627 file in top level composite package source directory; it defines...
628 (__VERSION__): ...this new composite package version macro.
630 * aclocal.m4: Link it, to keep in sync with identically named files in
631 top level composite source and sibling w32api sub-package directories.
632 (__VERSION__): New macro; include VERSION.m4 to define it.
633 (__BUG_REPORT_URL__): New macro; define it.
635 * configure.ac (AC_INIT): Assign package version and bug report URL...
636 (__VERSION__, __BUG_REPORT_URL__): ...from these, as defined through
637 automatic inclusion of aclocal.m4
639 * Makefile.in (configure): Add dependency on VERSION.m4
641 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
643 Resolve some strnlen() implementation issues.
645 * mingwex/strnlen.s (__mingw_strnlen) [!NUL]: Correct termination
646 logic; should have used jnz, not jz, to skip endpoint adjustment on
647 scanning past a terminal NUL character code.
649 * include/string.h [_POSIX_C_SOURCE >= 200809L] (strnlen): Do not
650 #define it, as this breaks GCC compilation; use __CRT_ALIAS instead,
651 with __JMPSTUB__ referencing via "oldname" libraries.
653 * Makefile.in (jmpstub_awk_script, libimpl_awk_script): Adapt to
654 facilitate assignment of __JMPSTUB__ and __LIBIMPL__ references to
655 libraries other than libmingwex.a
656 (strnlen.jmpstub.$OBJEXT): Assign it to all "moldname" libraries prior
657 to libmoldname80.a, in addition to libcoldname.a, as specified by the
658 __JMPSTUB__ assignment within <string.h>
660 2016-05-03 Keith Marshall <keithmarshall@users.sourceforge.net>
662 Enforce consistent specification of package version.
664 * include/_mingw.h: Rename as...
665 * include/_mingw.h.in: ...this build-time template file.
666 (__MINGW32_VERSION): Redefine it, in terms of...
667 (%PACKAGE_VERSION_LONG%): ...this substitution template.
668 (__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION)
669 (__MINGW32_PATCHLEVEL): Likewise, redefine them in terms of...
670 (%PACKAGE_VERSION_MAJOR%, %PACKAGE_VERSION_MINOR%)
671 (%PACKAGE_VERSION_PATCH%): ...these.
673 * configure.ac (AC_CONFIG_SRCDIR): Adjust for renamed file.
674 (MINGW_AC_CONFIG_EXTRA_SRCDIR): Likewise, for similarly renamed
675 w32api/include/w32api.h.in file.
677 * Makefile.in (all-mingwrt-stage-1-only): Add dependency on...
678 (_mingw.h, w32api.h): ...these; add rule to generate them, using...
679 (PACKAGE_VERSION_SCRIPT, PACKAGE_VERSION_FORMAT): ...these new macros;
680 they apply appropriate substitutions to the renamed template files.
681 (install-mingwrt-headers): Explicitly add _mingwrt.h
683 2016-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
685 Make strnlen() available for all MSVCRT.DLL versions.
687 * msvcrt-xref/msvcrt.def.in (strnlen): Mark it as...
688 (__MINGW_DLSYM): ...this, excluding its exposure in libmsvcrt.dll, and
689 thus requiring a dlsym() lookup for versions which provide it.
691 * include/string.h [__MSVCRT_VERSION__>=__MSVCR80_DLL] (strnlen):
692 Declare prototype, for use from these non-free DLLs, otherwise...
693 [_POSIX_C_SOURCE >= 200809L] (strnlen): Define it as an alias for...
694 (__mingw_strnlen): ...this new libmingwex.a function.
696 * mingwex/strnlen.s: New file; it implements...
697 (__mingw_strnlen, __mingw_strnlen_s): ...these new functions.
699 * Makefile.in (libmingwex.a): Add requirement for...
700 (strnlen.$OBJEXT): ...this; add vpath specification for its source.
702 2016-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
704 Use correct paths for partially included header files.
706 * include/io.h include/process.h: Use 'iquote' #include "stdint.h", to
707 ensure that we get stdint.h from the same include directory.
708 * include/stdio.h: Likewise for #include "stdarg.h", and "sys/types.h"
709 * include/wchar.h: Likewise for all of #include "stdio.h", "stdlib.h",
710 "direct.h", "sys/stat.h", "io.h", "time.h", "locale.h", and "process.h"
711 * include/dir.h include/dos.h: Likewise for #include "io.h"
712 * include/direct.h: Likewise for #include "dos.h"
714 2016-04-13 Keith Marshall <keithmarshall@users.sourceforge.net>
716 Generalize procedure for installing manpages.
718 * man/dirname.man: Rename it as...
719 * man/dirname.3.man: ...this, with inherent MANSECT specification.
720 (TH): Use %PAGEREF% substitution for NAME, MANSECT, and DATE.
721 (MS-Windows): Do not append \[tm]; it doesn't render well in Windows
722 console. Further, correct typos; some syntactic adjustments.
724 * Makefile.in (%:%.man): New rule; define it.
725 (%.mancopy, %.mancopy-recursive): New rules; define and use with...
726 (reference_manpage): ...this new macro, defining it to map...
727 (dirname.3.man): ...this as the reference source file for both of...
728 (basename.3, dirname.3): ...these installed manpages.
729 (format_manpage): Add MANSECT and DATE to expansion of...
730 (%PAGEREF%): ...this sed substitution pattern.
732 2016-04-12 Keith Marshall <keithmarshall@users.sourceforge.net>
734 Update several incorrectly attributed header files.
736 * include/direct.h include/io.h include/locale.h include/math.h
737 * include/process.h include/stdio.h include/stdlib.h include/string.h
738 * include/sys/stat.h include/sys/types.h include/time.h: Identify the
739 original author as Colin Peters; Rob Savoye merely imported them into
740 the original CVS repository, when he created it.
742 * include/wchar.h: Likewise, imported by Rob Savoye, but the original
743 source file is unattributed.
745 2016-04-11 Keith Marshall <keithmarshall@users.sourceforge.net>
747 Eliminate all references to non-standard __NO_ISOCEXT macro.
749 * include/math.h: Tidy layout.
750 [!defined __NO_ISOCEXT]: Do not use this ugly double negative; in any
751 case, we do not want to encourage users to define such implementation
752 private macros; instead, prefer to make use of...
753 [defined _ISOC99_SOURCE]: ...this glibc compatible feature test.
754 [__STDC_VERSION__ >= 199901L]: Do not require this; it is implied, by
755 definition, in _ISOC99_SOURCE.
756 * include/stdio.h [!defined __NO_ISOCEXT]: Likewise; replace with...
757 [defined _ISOC99_SOURCE]: ...this, throughout.
759 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
761 Make resetting of __need_typedef requests more robust.
763 * include/sys/types.h [__need_off_t, __need___off64_t]
764 [__need_ssize_t, __need_time_t]: Move corresponding #undef out of, and
765 after the respective conditional blocks, which provide each associated
766 typedef, so ensuring that any repeat request is properly reset.
768 * include/time.h [__need_time_t]: Always delegate to <sys/types.h> for
769 typedef, and reset of request, even in cases where...
770 [_TIME_H]: ...this is already defined.
772 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
774 Add a missing comment terminator.
776 * include/io.h [!(defined _IO_H && defined _WCHAR_H)]: Properly
777 terminate the comment annotating the closing #endif statement.
779 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
781 Declare <dir.h> as formally deprecated.
783 * include/dir.h: Assert copyright.
784 (pragma GCC system_header): Declare it.
785 (_DIR_H): Define as multiple inclusion macro.
786 [!_DIR_H]: Emit "obsolete header" warning message.
788 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
790 Factor out <wchar.h> vs. <io.h> duplicate declarations.
792 * include/io.h: Assert copyright; tidy layout.
793 (_IO_H_): Rename this multiple inclusion guard macro...
794 (_IO_H): ...to this preferred form; do not define it when...
795 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
796 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
797 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
798 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
799 (_wfindnext64i32, _wfindfirst32, _wfindnext32, _findclose): ...only
800 these function prototypes, common to <wchar.h>, together with...
801 (_fsize_t, struct _wfinddata_t, struct _wfinddatai64_t)
802 (struct __wfinddata64_t, struct _wfinddata64i32_t)
803 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these
804 requisite data type definitions.
805 (pragma GCC system_header): Declare it.
806 (__need_intptr_t): Define, and include <stdint.h> to get...
807 (intptr_t): ...this typedef; neither define it locally, nor define...
808 (_INTPTR_T_DEFINED): ...this; delete all references.
809 (_FSIZE_T_DEFINED): Do not define it; delete all references; rather...
810 [!(defined _IO_H && defined _WCHAR)] (_fsize_t): Define it.
811 (FILENAME_MAX): Define it unconditionally.
812 (__struct_finddata_t): New temporary macro; define and use it to...
813 (struct _finddata_t, struct _wfinddata_t, struct _finddatai64_t)
814 (struct _wfinddatai64_t, struct __finddata64_t, struct __wfinddata64_t)
815 (struct _finddata64i32_t, struct _wfinddata64i32_t)
816 (struct _finddata32i64_t, struct _wfinddata32i64_t)
817 (struct __finddata32_t, struct __wfinddata32_t): ...define these.
819 * include/wchar.h (_WFINDDATA_T_DEFINED): Do not define it; delete all
820 references; filter out associated data type definitions, namely...
821 (struct _wfinddata_t, struct _wfinddatai64_t): ...these, and also...
822 (struct __wfinddata64_t, struct _wfinddata64i32_t): ...these, and...
823 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these.
824 (_WIO_DEFINED): Likewise, do not define it; delete all references;
825 filter out associated function prototype declarations for all of...
826 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
827 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
828 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
829 (_wfindnext64i32, _wfindfirst32, _wfindnext32): ...these; reproduce
830 them by selective inclusion of <io.h>.
832 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
834 Factor out <wchar.h> vs. <process.h> duplicate declarations.
836 * include/process.h: Assert copyright; tidy layout.
837 (_PROCESS_H_): Rename this multiple inclusion guard macro...
838 (_PROCESS_H): ...to this preferred form; do not define it when...
839 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
840 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
841 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
842 (_wspawnve, _wspawnvp, _wspawnvpe): ...only these functions.
843 [!__WCHAR_H_SOURCED__] (_PROCESS_H): Define it; declare all functions
844 normally specified herein, including those listed above, as required.
845 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
846 (__need_intptr_t): Define it prior to including <stdint.h>.
847 (pragma GCC system_header): Declare it.
849 * include/wchar.h (_WPROCESS_DEFINED): Delete it; filter out...
850 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
851 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
852 (_wspawnve, _wspawnvp, _wspawnvpe): ...these function prototypes;
853 reproduce them, by selective inclusion of <process.h>.
855 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
857 Enable selective retrieval of intptr typedefs from <stdint.h>.
859 * include/stdint.h: Assert copyright; tidy layout.
860 [__need_intptr_t || __need_uintptr_t] (_STDINT_H): Do not define it;
861 conceal all normally defined data types, except either or both of...
862 [__need_intptr_t] (intptr_t): ...this, and/or...
863 [__need_uintptr_t] (uintptr_t): ...this.
864 (pragma GCC system_header): Declare it.
866 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
868 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
870 * include/sys/stat.h: Assert copyright; tidy layout.
871 (pragma GCC system_header): Declare it.
872 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
873 (_SYS_STAT_H): ...this preferred naming convention; however, when...
874 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
875 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
876 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
877 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
878 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
879 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
880 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
881 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
882 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
883 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
884 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
885 (__struct_stat_defined): New macro; define, and use it to define...
886 (struct stat, struct _stat, struct _stati64, struct __stat64)
887 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
888 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
889 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
890 definition of types size_t and wchar_t; declare all header content,
891 including that declared when __WCHAR_H_SOURCED__ is defined, unless
892 already declared as a result of selective inclusion by <wchar.h>
893 (__need_size_t, __need_wchar_t): Do not define them; consequently,
894 there is no need to include <stddef.h>; do not do so.
896 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
897 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
898 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
899 (struct _stat64i32): Likewise; reproduce them by selective inclusion
902 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
904 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
906 * include/direct.h: Conditionally partition it, such that...
907 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
908 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
909 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
910 (_WDIRECT_DEFINED): Never define it; delete all references.
912 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
913 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
914 selectively #include <direct.h> to reproduce them.
916 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
918 Factor out <direct.h> vs. <dos.h> duplicate declarations.
920 * include/dos.h: Assert copyright; tidy layout.
921 (pragma GCC system_header): Declare it.
922 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
923 (_DOS_H): ...this preferred convention; do not define it when...
924 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
925 (struct _diskfree_t): ...this aggregate data type, together with...
926 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
927 (_getdiskfree): ...this associated function.
928 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
929 emit a warning that this header is obsolete, and should not be used.
930 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
931 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
932 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
933 neither is it necessary to #include <stddef.h>; do not do so. Also,
934 do not #include <_mingw.h> explicitly, but always #include <io.h>,
935 which will implicitly #include <_mingw.h> anyway.
937 * include/direct.h: Assert copyright; tidy layout.
938 (pragma GCC system_header): Declare it.
939 (_DIRECT_H_): Rename this multiple inclusion guard macro...
940 (_DIRECT_H): ...to adopt this preferred naming convention.
941 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
942 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
943 (_getdiskfree): Likewise, do not declare prototype; instead...
944 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
945 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
946 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
947 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
948 although needed, we may inherit it indirectly from <sys/types.h>,
949 included by <io.h> via <dos.h>.
951 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
953 Evade CPP mismatched apostrophe warnings in windres comments.
955 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
957 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
959 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
961 * include/locale.h: Assert copyright; tidy layout.
962 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
963 (_LOCALE_H): ...this; do not define it when...
964 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
965 (_wsetlocale): ...just this one visible function prototype.
966 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
967 (_WLOCALE_DEFINED): Do not define it; delete all references.
968 (pragma GCC system_header): Declare it.
970 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
971 visibility by selective inclusion of <locale.h> instead.
972 (_WLOCALE_DEFINED): Delete all references.
974 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
976 Resolve some "implicit function declaration" warnings.
978 * setargv.c (isspace): Include <ctype.h> for declaration.
979 * cpu_features.h (__cpu_features_init): Declare function prototype.
980 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
982 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
984 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
986 * include/stdlib.h [__WCHAR_H_SOURCED__]
987 (_STDLIB_H): Do not define it; restrict visible declarations to...
988 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
989 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
990 of regular <stdlib.h> content; full content is declared only when...
991 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
992 (_WSTDLIB_DEFINED): Do not define it; delete all references.
993 (pragma GCC system_header): Declare it; tidy layout.
995 * include/wchar.h: Delete duplicated declarations for...
996 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
997 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
998 include <stdlib.h> selectively, to maintain their visibility.
999 (_WSTDLIB_DEFINED): Delete all references.
1001 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1003 Relocate misplaced umask() function prototypes.
1005 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
1006 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
1007 here, but leave them for backward, or Microsoft, compatibility.
1009 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1011 Correct another _BEGIN_C_DECLS imbalance error.
1013 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
1014 unbalanced instance deleted; one correctly balanced instance remains.
1016 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1018 Support installation of headers with empty parts directory.
1020 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
1021 (install-mingwrt-headers): ...invoke it; if false, do not perform...
1022 (INSTALL_SUB_HEADERS): ...this.
1024 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1026 Reinstate typedef for non-standard off64_t.
1028 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
1029 (__off64_t): ...typedef derived from this; although non-standard, it
1030 is gratuitously required when building GCC's libgfortran.a
1032 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1034 Correct conditional compilation block nesting errors.
1036 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
1037 them balanced within, and around, conditional compilation blocks.
1039 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1041 Feature test _MINGW32_EXTENDED_SOURCE renamed.
1043 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
1044 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
1045 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
1046 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
1047 users should enable any conventional feature test which implies it.
1049 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
1050 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
1052 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1054 Correct atexit() and _onexit() export declaration regression.
1056 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
1057 as DATA; declare them accordingly.
1059 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1061 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
1063 * include/string.h: Tidy layout.
1064 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
1065 (_stricmp, _strnicmp): Include their prototypes, selectively from...
1066 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
1067 * include/parts/strings.h: ...from here; file is obsolete; delete it.
1069 * include/string.h (_wcscmpi): Define alias.
1070 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
1071 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
1072 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
1073 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
1074 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
1075 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
1076 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
1077 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
1079 * include/strings.h (_STRINGS_H): Do not define it, when...
1080 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
1081 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
1083 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1085 Refactor to make <parts/time.h> redundant.
1087 * include/sys/types.h (time_t, __time32_t, __time32_t)
1088 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
1089 * include/parts/time.h: ...from here; preserve selective exposure.
1091 * include/time.h (time_t, __time32_t, __time32_t): Get them...
1092 * include/sys/types.h: ...from here, by selective inclusion.
1094 * include/time.h (struct timespec, struct __mingw_extended_timespec)
1095 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
1096 * include/parts/time.h: ...from here; preserve selective exposure.
1098 * include/parts/time.h: Delete file; it is no longer required.
1100 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1102 Declare the nanosleep() function where POSIX expects it.
1104 * include/time.h (__mingw_sleep): Declare function prototype.
1105 (nanosleep): Declare prototype, and provide in-line implementation;
1106 this is a reproduction of the original implementation, relocated...
1107 * include/unistd.h (nanosleep): ...from here; remove it; hence...
1108 (struct timespec): ...this need not be declared here, and there is
1109 no need to include <parts/time.h>; remove reference.
1111 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1113 Refactor <time.h> vs. <wchar.h> to avoid duplication.
1115 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
1116 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
1117 (struct tm): Delete definition; delegate it, together with each of...
1118 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
1119 (wcsftime): ...these function prototypes; delete them, but note in
1120 comments, that they remain declared, via delegation to...
1121 * include/time.h: ...this; include it selectively, subject to...
1122 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
1123 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
1124 [_TIME_H]: Process all definitions and declarations; otherwise...
1125 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
1126 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
1127 (_WTIME_DEFINED): Obsolete macro; delete all references.
1129 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1131 Implement support for POSIX "%n$*m$" printf() format control.
1133 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
1134 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
1135 (__pformat_inline__): New macro; define, and use it where appropriate.
1136 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
1137 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
1138 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
1139 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
1140 (__pformat_argmap_t): ...this new union data type; define it.
1141 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
1142 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
1143 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
1144 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
1145 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
1146 (__pformat_length_modifier, __pformat_check_length_modifier): New
1147 locally defined static and/or inline functions; implement, and...
1148 (__pformat): ...use them.
1150 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1152 Add prototypes for Microsoft's _printf_p() family of functions.
1154 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
1155 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
1156 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
1157 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
1158 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
1159 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
1160 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
1161 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
1162 available for selective inclusion by both <stdio.h> and <wchar.h>...
1163 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
1165 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1167 Adapt msvcrt-xref to become msvcrt.def.in provider.
1169 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
1170 filter value assignment; scale it upwards, by a factor of 0x10000.
1171 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
1172 (%.def) [msvcr*]: Do not preserve comments; define...
1173 (__DLLNAME__): ...this preprocessor symbol.
1175 * msvcrt.def.in: Content is obsolete; delete file and replace with...
1176 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
1177 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
1178 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
1179 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
1180 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
1182 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1184 Import msvcrt-xref documentation resources.
1186 * msvcrt-xref: New directory.
1187 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
1188 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
1189 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
1190 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
1192 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1194 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
1196 * include/wchar.h: Some minor layout adjustments.
1197 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
1198 within the scope of reading <wchar.h>; undefine it at end of file.
1199 (struct tm): Do not define; it is sufficient to keep it opaque.
1200 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
1201 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
1202 directly; delegate to indirect definition by including <stdio.h>.
1203 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
1204 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
1205 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
1206 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
1207 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
1208 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
1209 indirectly, by selective inclusion from <stdio.h>; hence include it.
1211 * include/stdio.h: Assert copyright; tidy layout.
1212 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
1213 (_STDIO_H): ...this, but defined conditionally, subject to...
1214 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
1215 entities which are required by <wchar.h>; do not define...
1216 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
1217 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
1218 are normally specified within <stdio.h>, INCLUDING those specifically
1219 itemised above, as selectively required by <wchar.h>.
1221 * pseudo-reloc.c: Some minor layout adjustments.
1222 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
1223 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
1224 include <stddef.h> to guarantee it.
1226 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1228 Enable selective definition of POSIX system types.
1230 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
1231 any specific __need_TYPE selector having been set prior to inclusion;
1232 DO define it when no such selector is present, and undefine all such
1233 selectors as may have been set, after evaluation of their effects.
1234 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
1235 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
1236 accommodates reorganization of the file, to achieve a tidier layout.
1237 (__have_typedef_off_t): New repeat definition guard; define it for
1238 compilers which may choke on any repeated typedef for either of...
1239 (off_t, _off_t): ...these; make them selectively defineable for...
1240 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
1241 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
1242 in either case, redefine them in terms of...
1243 (__off32_t): ...this new internal type, for consistency with...
1244 (__off64_t): ...this previously defined non-standard type; also make
1245 it selectively defineable, either by...
1246 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
1247 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
1248 (__have_typedef___off64_t): New repeat definition guard; define it.
1249 (ssize_t, _ssize_t): Also make them selectively defineable, on...
1250 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
1251 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
1252 (__have_typedef_ssize_t): New repeat definition guard; define it.
1254 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1256 Avoid user namespace pollution by non-standard type 'off64_t'.
1258 * include/sys/types.h (off64_t): Rename it as...
1259 (__off64_t): ...this implementation-private alternative name, so
1260 eliminating the potential for user namespace pollution.
1262 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
1263 return type, and type of offset argument, in both prototype and inline
1264 implementation; note that this addresses the issue of pollution in the
1265 user namespace, while avoiding the issue of MinGW-Bug [#2024].
1267 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
1268 instead of 'off64_t', as offset argument type in function prototypes.
1269 (ftello64): Likewise, for return type of inline function.
1271 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
1272 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
1273 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
1275 * mingwex/stdio/fseeko64.c: Assert copyright.
1276 (fseeko64): Use '__off64_t' per modified function prototype.
1278 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1280 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
1282 * mingwex/ofmtctl.c: New file; it implements...
1283 (_mingw_output_format_control): ...this new function; it provides
1284 additional MinGW specific printf() format processing options.
1286 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
1288 * include/stdio.h (_mingw_output_format_control): Declare it.
1289 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
1290 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
1291 manifest constant expressions; define them.
1293 * mingwex/stdio/pformat.c: Revise licensing terms.
1294 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
1295 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
1296 modifier; this matches the behaviour specified by ISO-C99, else...
1297 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
1298 previous MSVC compatible behaviour, treating it as an `L' modifier.
1299 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
1301 * mingwex/ofmt.c (ARGLIST): Subsume references to...
1302 (ARGTYPE): ...this now obsolete macro; delete it throughout.
1303 (update_output_format_flag): New inline function; it restricts flag
1304 operations to affect only Microsoft's exponent digit bits.
1305 [FUNCTION == _set_output_format]: Use it.
1306 [FUNCTION == _get_output_format]: Likewise.
1308 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1310 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
1312 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
1313 defined, when implied by any STDC or POSIX version selection, viz. ...
1314 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
1316 * include/stdlib.h: Assert copyright; tidy layout.
1317 (_STDLIB_H_): Multiple inclusion guard macro renamed...
1318 (_STDLIB_H): ...to this, preferring no trailing underscore.
1319 [!defined __NO_ISOCEXT]: Delete double negative references; use...
1320 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
1321 (lldiv_t): ...defining this C99 specific aggregate data type, and...
1322 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
1323 (wcstold, _Exit): ...declaring these C99 function prototypes.
1324 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
1325 future removal; not in MSVCRT.DLL, these conform to no known standard.
1326 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
1327 (__strtod): ...this libmingwex.a provided function; it handles string
1328 representations of hexadecimal-floats, infinities and NaNs, whereas...
1329 (strtod): ...this MSVCRT.DLL implementation does not.
1330 (__MSVCRT_VERSION__): Prefer symbolic comparison...
1331 [>= __MSVCR80_DLL]: ...for this requirement.
1333 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1335 Rationalize definition of struct timespec.
1337 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
1338 tv_sec field, in place of anonymous union, thus avoiding missing brace
1339 warnings when initializing; leave a copy of the previous definition...
1340 (struct __mingw32_expanded_timespec): ...named thus.
1342 * include/unistd.h (nanosleep): Adjust inline implementation, to match
1343 altered specification of tv_sec field in struct timespec.
1345 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
1346 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
1348 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
1349 convenience function; defined as inline, with __LIBIMPL__ equivalent,
1350 it facilitates interpretation of an instance of struct timespec as if
1351 it were defined as struct __mingw32_expanded_timespec.
1353 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1355 Make strings.h mostly POSIX.1-2008 compliant.
1357 * include/strings.h: Rewritten. Do not include...
1358 (string.h): ...this; mandated by POSIX.1, it now defines...
1359 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
1360 prototypes, possible in-line implementations, and JMPSTUB references
1361 to corresponding external implementations, which will now become
1362 automatically created within libmingwex.a
1364 * include/parts/strings.h: New file; it declares prototypes for...
1365 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
1366 string.h, but we also require them in strings.h
1368 * include/parts/wchar.h: New file; it declares prototypes for all wide
1369 character functions which MSVC specifies in both wchar.h and string.h
1371 * include/string.h: Miscellaneous layout adjustments.
1372 (strcasecmp, strncasecmp): Delete; they belong in strings.h
1373 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
1374 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
1375 include them from parts/wchar.h instead.
1377 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
1378 prototypes; include them from parts/wchar.h instead, so making this
1379 guard macro redundant; delete it.
1381 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
1382 (wcscmpi.$OBJEXT): Implementations are now automatically generated
1383 from header file, for inclusion in libmingwex.a; remove free-standing
1384 implementations from the entire family of liboldname libraries, and...
1385 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
1386 files; they are no longer required.
1388 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1390 Incorporate build system updates from w32api package.
1392 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
1393 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
1394 (install-strip, uninstall): New make command goals; implement them.
1395 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
1396 (devdist, dlldist): ...these have no need to strip explicitly.
1397 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
1398 (install-mingwrt-headers): ...here.
1400 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1402 Adapt platform feature checks to NTDDI_VERSION conventions.
1404 * include/_mingw.h: Assert copyright; include w32api.h
1405 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
1406 to w32api/include/w32api.h, whence they remain in effect.
1407 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
1409 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1411 Correct mismatched #if/#endif from preceding commit.
1413 * include/_mingw.h (#pragma GCC system_header)
1414 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
1415 correcting for inadvertent removal of matching #endif introduced by
1416 preceding 2015-06-19 commit.
1418 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1420 Define symbolic names for alternative Microsoft runtime DLLs.
1422 * include/msvcrtver.h: New file; it assigns a value for...
1423 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
1424 (__MSVCR60_DLL): ...this new manifest constant, with each of...
1425 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
1426 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
1427 ...these also defined, as user assignable alternatives.
1429 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
1430 to establish its default value.
1432 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1434 Track dependencies on modified system header files.
1436 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
1438 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1440 Correct an anomaly in stage 1 only build procedure.
1442 * Makefile.in (all-gcc): New goal; it is an alias for...
1443 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
1444 (all-mingwrt-stage-1-only): ...this; upate all references.
1445 (active-goals): Adjusted accordingly; it now reguires...
1446 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
1447 (install): Adjusted, as directed by...
1448 (DEFAULT_MAKECMDGOALS): ...this.
1450 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1452 Prefer our hypot() implementation in complex maths operations.
1454 * mingwex/complex/cabs_generic.c: New file; it replaces...
1455 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
1456 * mingwex/complex/cabsl.c: ...these.
1458 * mingwex/complex/catan_generic.c: New file; it replaces...
1459 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
1460 * mingwex/complex/catanl.c: ...these.
1462 * mingwex/complex/clog_generic.c: New file; it replaces...
1463 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
1464 * mingwex/complex/clogl.c: ...these.
1466 * mingwex/complex/cpow_generic.c: New file; it replaces...
1467 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
1468 * mingwex/complex/cpowl.c: ...these.
1470 * mingwex/complex/csqrt_generic.c: Do not use...
1471 (_hypot): ...this Microsoft form of function reference; use...
1472 (hypot): ...this ANSI standard form instead.
1474 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1476 Correct C++ compilation anomaly with hypotf() in cmath header.
1478 * include/math.h: Add copyright notice; generally tidy layout.
1479 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1480 (hypotf): Delete inline implementation; it did not properly handle
1481 range errors, and was uncompilable with optimization when any g++
1482 option implying __STRICT_ANSI__ conformity was specified.
1483 (_MATH_H_): Rename this multiple inclusion guard...
1484 (_MATH_H): ...to this.
1486 * mingwex/math/hypot_generic.c: New file; it implements...
1487 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
1488 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
1490 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1492 Prepare and tag all files for release of mingwrt-3.21.1.
1494 * configure.ac (AC_INIT): Adjust package version argument.
1495 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
1496 (__MINGW32_VERSION): ...increment this to match.
1498 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1500 Refactor to avoid possible time_t conflicts across headers.
1502 * include/parts/time.h (struct timespec): Make it more descriptive of,
1503 and better able to accommodate, potential ambiguity relating to...
1504 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
1505 whence they may be identically imported into each of...
1506 * include/sys/types.h include/time.h include/wchar.h: these; delete
1507 duplicate typedefs, and import accordingly.
1509 * include/sys/types.h: Add licence; general comment additions.
1510 (_TYPES_H_): Rename multiple inclusion guard macro...
1511 (_SYS_TYPES_H): ...to this.
1513 * include/time.h: Add licence; general comment/layout adjustments.
1514 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1515 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
1516 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
1517 (_TIME_H_): Rename multiple inclusion guard macro...
1518 (_TIME_H): ...to this.
1520 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
1521 (struct timespec): ...of this.
1523 * include/wchar.h: Add licence; general comment/layout adjustments.
1524 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1525 [GCC] (system_header): Add pragma, identifying header as such.
1526 (_WCHAR_H_): Rename multiple inclusion guard macro...
1527 (_WCHAR_H): ...to this.
1529 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1531 Remove obsolete varargs.h header file.
1533 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
1534 a GCC header which is no longer supported, and was always intended for
1535 ultimate removal; now is the long overdue time to do so.
1537 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1539 Correct improper unistd.h function attribute declarations.
1541 * include/unistd.h (_cdecl): Correct usage throughout; should be...
1544 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1546 Fix GLOB_DOOFFS initialization bug.
1548 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
1549 (gl_data->gl_offs): ...this is properly initialized to zero.
1551 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1553 Tag all files for release of mingwrt-3.21.
1555 * include/_mingw.h: Adjust version accordingly.
1557 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1559 Improve usage notes in stdlib.h, for mkstemp() function.
1561 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
1562 an original comment, explaining the need to use _O_TEMPORARY, from...
1563 * mingwex/mkstemp.c: ...here; delete trailing white space.
1565 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1567 Eliminate some potential definition inconsistencies.
1569 * include/stdio.h: Cosmetic formatting change, relating to...
1570 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
1571 unconditionally; this allows the compiler to check for consistency
1572 with their primary definitions in stdio.h
1574 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1576 Suppress expected warning diagnostics in LIBIMPL builds.
1578 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
1579 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
1580 GCC flag to supress warnings relating to deprecated declarations.
1582 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1584 Provide more POSIX conforming sleep() functions.
1586 * include/sys/types.h (useconds_t): Make it explicitly long; int may
1587 be okay, but doesn't guarantee enough bits; mark as deprecated, since
1588 POSIX has declared it "obsolete", and no longer specifies it.
1590 * mingwex/usleep.c: Delete file; it provided an implementation of...
1591 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
1592 its error handling was hopelessly broken; replace it with...
1593 * mingwex/nsleep.c: ...this new file; it implements...
1594 (__mingw_sleep): ...this generic helper function; it supports sleep
1595 capability with interval specification to nanosecond precision.
1597 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
1598 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
1599 (sleep, nanosleep): ...these current POSIX functions, and also...
1600 (usleep): ...this obsolete one; mark it as deprecated.
1602 * include/parts: New directory; it is intended to host partial header
1603 implementations, for content which must be shared among arbitrary sets
1604 of multiple standard header files.
1606 * include/parts/time.h: New file; nominally declaring time.h content.
1607 (struct timespec): Declare it; it is currently used within unistd.h,
1608 to facilitate the __CRT_INLINE implementation of nanosleep().
1610 * Makefile.in (libmingwex.a): Remove reference to...
1611 (usleep.$OBJEXT): ...this; replace it with a reference to...
1612 (nsleep.$OBJEXT): ...this alternative.
1613 (mingwrt-includedirs): Add prerequisite to create...
1614 ($includedir/parts): ...this new directory; it is populated by...
1615 (install-mingwrt-headers): ...this rule; add requisite command.
1617 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1619 Delete an unnecessary Unicode wrapper file.
1621 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
1622 UTF-16LE API from dirent.c, without any need for this wrapper.
1624 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1626 Some further inline function rationalization.
1628 * include/io.h (_CRTALIAS): Replace all references...
1629 (__CRT_ALIAS): ...using this syntactically preferred form.
1630 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
1631 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1633 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
1634 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1636 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
1637 * mingwex/ftruncate.c: Likewise.
1639 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1640 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
1642 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1644 Some POSIX feature test adjustments.
1646 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
1647 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
1648 (mkdtemp): This didn't become available until SUSv4, so requires...
1649 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
1651 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1653 Another CRT_INLINE function implementation rationalization.
1655 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
1656 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
1657 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1659 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
1660 (libmingwex.a): Delete obsolete dependency on...
1661 (imaxabs.$OBJEXT): ...this.
1663 * mingwex/imaxabs.c: File is now redundant; delete it.
1665 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1667 More rationalization of CRT_INLINE function implementations.
1669 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
1670 (ftello64): Add __LIBIMPL__ specification for extern implementation.
1671 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1673 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
1674 * mingwex/stdio/ftell064.c: Likewise.
1676 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1677 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
1679 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1681 Don't implicitly define _POSIX_C_SOURCE too early.
1683 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
1684 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
1685 that it is not accidentally activated by implied _POSIX_C_SOURCE.
1687 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1689 Correct complex arcsin computation per issue [#2245].
1691 * mingwex/complex/casin_generic.c: New file; it replaces...
1692 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
1693 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
1695 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1697 Correct complex square root computation per issue [#2246].
1699 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
1700 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
1701 (hypot): ...this libmoldname.a indirection.
1703 * mingwex/complex/csqrt_generic.c: New file; it replaces...
1704 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
1705 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
1707 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1709 Adjust header guards to resolve issue [#2244].
1711 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
1712 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
1713 ...when any of these prevail, or as appropriate to correspond with...
1714 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
1716 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
1717 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
1718 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
1719 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
1721 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1723 Add implementation of mkstemp() and mkdtemp() functions.
1725 * mingwex/cryptnam.c: New file; it implements...
1726 (__mingw_crypto_tmpname): ...this helper function; it generates a
1727 cryptographically secure sequence of characters, used as the random
1728 component in temporary file and directory names.
1730 * mingwex/mkstemp.c: New file; it implements...
1731 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
1733 * mingwex/mkdtemp.c: New file; it implements...
1734 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
1736 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
1737 function implementation, with LIBIMPL extern semantics, in terms of...
1738 (__mingw_mkstemp): ...this; also declare prototype, and define...
1739 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
1740 (_MKSTEMP_SETMODE): New macro; define it, also providing...
1741 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
1742 (mkdtemp): Declare prototype; provide inline implementation, with
1743 JMPSTUB extern semantics, in terms of...
1744 (__mingw_mkdtemp): ...this; declare prototype.
1746 * Makefile.in (libmingwex.a): Add dependency rule, to include...
1747 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
1749 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1751 More JMPSTUB rationalization of inline functions.
1753 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
1754 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
1755 appropriate MSVCRT.DLL equivalent entry point.
1757 * mingwex/_Exit.c: File is now redundant; delete it.
1758 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
1759 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
1761 * Makefile.in (jmpstub_awk_script): Add support for...
1762 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
1763 (libmingwex.a): Remove dependencies on deleted files, namely...
1764 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
1765 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
1767 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1769 Correct omission of complex conjugate functions from libmingwex.a
1771 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
1772 (creal, crealf, creall): Likewise, for consistency of implementation.
1773 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
1775 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
1776 declarations; they should be interpreted analogously to __CRT_ALIAS.
1777 (libmingwex.a): Remove object file references for functions which are
1778 now declared as LIBIMPL, and sort the remainder in ASCII collating
1779 order; deleted function references comprise the set consisting of...
1780 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
1781 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
1782 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
1784 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
1785 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
1786 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
1787 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
1788 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
1790 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1792 Back-port improved asinh() implementation from 4.0-dev branch.
1794 * mingwex/math/asinh_generic.c: New file; it replaces...
1795 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
1796 ...all of these; delete them.
1798 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1800 Enable remake of lost LIBIMPL object files.
1802 * Makefile.in (libimpl_remake): New macro; define it, and...
1803 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
1805 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1807 Implement more robust _get_output_format fallback handling.
1809 * mingwex/ofmt.c: New file; it implements...
1810 (__mingw_output_format_flag): ...backing store, used by...
1811 (__mingw_get_output_format, __mingw_set_output_format): ...these
1812 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
1813 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
1814 version specific Microsoft APIs, which are also supported by some
1815 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
1816 (__mingw_get_output_format_fallback): Implement; it is aliased to...
1817 (__mingw_set_output_format_fallback): ...this; together they provide
1818 the emulation support for the preceding pair of functions, when they
1819 are not available within the run-time platform MSVCRT.DLL
1820 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1821 Implement them; they wrap, and if necessary emulate...
1822 (_get_printf_count_output, _set_printf_count_output): ...these.
1823 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
1824 (__mingw_set_printf_count_output_fallback): ...this; together they are
1825 required to support emulation of the preceding pair of functions, when
1826 they are not available within the run-time platform MSVCRT.DLL
1828 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
1829 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
1830 (__mingw_get_output_format, __mingw_set_output_format)
1831 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1832 Unconditionally declare their prototypes, for subsequent inline use.
1833 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
1834 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
1835 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
1836 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
1837 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
1838 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
1839 represent a compilable token.
1841 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
1842 _get_output_format; consult __mingw_output_format_flag directly.
1844 * ofmt_stub.s: No longer required; delete it.
1846 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
1847 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
1848 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
1849 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
1850 all are compiled from ofmt.c
1852 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1854 Do some more essential build tree clean up.
1856 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
1857 in the way of a successful rebuild from clean.
1859 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1861 Implement wrappers for emulation of POSIX dlfcn API.
1863 * include/dlfcn.h: New file; it declares the API.
1864 * mingwex/dlfcn.c: New file; implement it, with access via...
1865 (__mingw_dlfcn): ...this publicly addressable vector table.
1867 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1868 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1869 (__LIBIMPL__): ...this automatic interface generator; implement it.
1870 (libstub_refnames): New macro; it is adapted from and replaces...
1871 (jmpstub_refs): ...this; when it is then invoked twice to build...
1872 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1873 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1874 (libimpl_awk_script): New inline script; it handles automated builds
1875 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1876 (libimpl_sed_script): New inline script; it prepares intermediate C
1877 source code for LIBIMPL interfaces, as required to satisfy these...
1878 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1879 (LIBIMPL_CFLAGS): New macro; define it.
1881 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1883 Move libgen functions to __mingw_ pseudo-namespace.
1885 * mingwex/dirname.c (dirname): Rename function, as implemented...
1886 (__mingwex_dirname): ...to this.
1888 * mingwex/basename.c (basename): Rename function, as implemented...
1889 (__mingwex_basename): ...to this.
1891 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1892 prototypes, matching and augmenting original declarations for...
1893 (dirname, basename): ...these; reimplement as inline aliases, with
1894 __JMPSTUB__ references to the renamed implementation entry points.
1896 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1898 Implement new command line argument globbing strategy.
1900 * include/_mingw.h: Backport feature defines from master...
1901 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1902 constants; define them. They select the preferred globbing algorithm.
1903 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1904 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1905 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1906 they enable optional additional features supported by this algorithm.
1907 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1909 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1911 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1912 * setargv.c: ...new file; it implements the initialization mechanism
1913 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1914 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1915 it invokes the algorithm via an API similar to that described by MSDN,
1916 while continuing to support our original _CRT_glob interpretation.
1917 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1918 algorithm, via the MSDN-alike API, by calling back to...
1920 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1921 relocated to here, as a publicly addressable function; formerly...
1922 (__mingw_CRTStartup): ...called directly from here, we now redirect
1923 the call through _setargv(), whence it may be called indirectly.
1925 * init.c: Redundant file; delete it. It originally provided...
1926 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1927 original static attribute removed, to allow global addressing.
1929 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1931 Backport glob implementation from master to legacy.
1933 * include/glob.h: New file; copy it from master branch.
1934 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1935 (glob, globfree): ...each of these, respectively.
1937 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1938 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1939 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1940 (accept_glob_nocheck_match): New static function; it adds support for
1941 avoidance of globbing on patterns with no globbing token, so avoiding
1942 the case transliteration effect reported as MinGW-Bug #2106.
1943 (glob_match): Use it.
1945 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1947 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1949 Implement conventionally named dirent function trampolines.
1951 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1952 which redirects a conventionally named function call to its __mingw_
1953 pseudo-namespace implementation.
1955 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1956 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1957 appropriate protocol for compiling *.sx files, (supported natively by
1958 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1960 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1961 yet provide it, so we define it ourselves; deploy it for *.sx files.
1962 (Makefile.stub): New sinclude file; create it dynamically, using...
1963 (jmpstub_awk_script): ...this new inline script, which is based on...
1964 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1965 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1966 (mostlyclean-local): Remove Makefile.stub; do likewise...
1967 (Makefile): ...when remaking this, to ensure that both will be
1970 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1972 Make dirent implementation namespace and time_t clean.
1974 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1975 macros; define them. They facilitate identification of symbols which
1976 must be compiled with `extern "C"' binding, when compiling C++ code.
1977 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1978 (_CRTALIAS): ...this, which is to be considered as deprecated.
1979 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1980 __CRT_ALIAS build hints, while remaining transparent to GCC.
1981 (UNICODE, _UNICODE) [user defined]: Define consistently.
1983 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1984 4.0-dev branch, with additional ABI changes to improve stability).
1985 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1986 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1987 Add `__mingw_' prefix to all publicly exposed symbol names.
1988 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1989 implemented functions; they replace Microsoft's ambiguously defined
1990 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1991 resulting from the ambiguous size of Microsoft's time_t.
1993 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1994 removing unnecessary time_t and file size fields; (our replacements
1995 for _findfirst, and _findnext do not require them to be present).
1996 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1997 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1998 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1999 Adjust prototypes, making them inline aliases for public symbols which
2000 are now qualified by the `__mingw_' prefix; add build hints to support
2001 compilation of addressable stubs, with the original symbol names.
2002 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
2003 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
2004 BSD compatibility, but are fundamentally unsupported on MS-Windows).
2005 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
2006 New macros; define them. (These show availability of optional fields
2007 within the dirent struct, which client code may wish to access).
2009 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2011 Correct improper naming of assembly language source files.
2013 * mingwex/math/*.S: Rename all files with this extension...
2014 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
2015 not extended `assembler-with-cpp' as implied by the former extension);
2016 adjust all internal `.file <name>' references accordingly.
2018 * Makefile.in (vpath %.S): Adjust reference to locate files....
2019 (vpath %.s): ...now renamed thus.
2021 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2023 Streamline the build system infrastructure.
2025 * configure.ac: New file; it replaces...
2026 * configure.in: ...this; (name is obsolete); delete it.
2028 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
2029 make invocations, when processing subdirectories, and add automatic
2030 dependency tracking for all generated files.
2032 * configure: Delete it; as a generated file, it doesn't belong in SCM.
2034 * mingwex/Makefile.in: No longer required; delete it.
2035 * profile/Makefile.in: Likewise.
2037 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
2038 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
2040 * jamfile: Delete it; it hasn't been updated in ages, is likely no
2041 longer relevant, and I have no desire to maintain it.
2043 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
2045 Add another more rigorous __STRICT_ANSI__ filter.
2047 * include/limits.h [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
2048 * include/sys/param.h [PATH_MAX defined] (MAXPATHLEN): Alias it.
2049 [PATH_MAX not defined] (MAXPATHLEN): Define it directly.
2051 2012-08-02 Ivan Maidanski <ivmai@users.sourceforge.net>
2053 Add missing function prototypes per issue [#1305].
2055 * include/process.h [#ifndef _WPROCESS_DEFINED]
2056 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve)
2057 (_wexecvp, _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe)
2058 (_wspawnv, _wspawnve, _wspawnvp, _wspawnvpe): Declare them.
2060 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
2062 Add function prototype declarations per issue [#1293].
2064 * include/stdio.h (_lock_file, _unlock_file): Declare them.
2066 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
2068 Apply some more rigorous __STRICT_ANSI__ filtering.
2070 * include/stdio.h (_getws, _putws, _wfdopen, _wfopen)
2071 (_wfreopen, _wfsopen, _wtmpnam, _wtempnam, _wrename, _wremove)
2072 (_wperror, _wpopen): Do not declare these functions unless...
2073 [#ifndef __STRICT_ANSI__]: ...this is satisfied.
2075 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
2077 Add string to 64-bit integer conversion function prototypes.
2079 * include/stdlib.h (_strtoi64, _strtoi64_l, _strtoui64, _strtoui64_l)
2080 (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l): Declare them.
2081 * include/wchar.h (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l):
2082 Likewise; these are duplicates of the <stdlib.h> declarations.
2084 2012-08-01 Earnie Boyd <earnie@users.sourceforge.net>
2086 Update for _WIN64 exception handler readiness.
2088 * include/excpt.h [_WIN64] (__try1, __except1): Add alternative inline
2089 assembly code implementation, based on X86-64 architecture.
2091 2012-07-30 Earnie Boyd <earnie@users.sourceforge.net>
2093 Correct missing inclusion of <_mingw.h>.
2095 * include/stdint.h: Add omitted #include; all mingwrt headers are
2096 expected to include this; it is required to define __int64.
2098 2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>
2100 Correct prototypes for _wfindfirst()/_wfindnext() function family.
2102 * include/io.h (_wfindfirst, _wfindfirst32, _wfindfirsti64)
2103 (_wfindfirst32i64, _wfindfirst64i32): Return type changed to intptr_t.
2104 (_wfindnext, _wfindnext32, _wfindnexti64, _wfindnext32i64)
2105 (_wfindnext64i32, _wfindnext64): Type of parameter #1 must match.
2107 2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
2109 Avoid potential GCC "missing function prototype" warnings.
2111 * include/stdio.h (getc, putc, getchar, putchar, fopen64)
2112 (ftello64): Provide a function prototype declaration for each of
2113 these, prior to the corresponding inline implementation.
2115 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2117 * include/_mingw.h: Increment version to 3.20.
2119 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2121 * tlsmthread.c: Update to reflect changes in tlssup.c.
2122 * tlssup.c: code clean-up.
2124 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2126 * include/_mingw.h: Increment version to 3.19.
2128 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2130 * include/float.h: Modify guard to accomodate CLang.
2132 Thanks to Ruben Van Boxem for the report.
2134 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2136 * tlssup.c: Remove mingwm10.dll fallback.
2138 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2140 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
2142 Thanks to bvassche for the report.
2144 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2146 Correct checking for short option matches in getopt_long_only().
2148 * mingwex/getopt.c (getopt_verify): New static inline function.
2149 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
2150 possible short option match after failing to match, or ambiguously
2151 matching as a long option.
2153 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2155 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
2157 Thanks to cgf for the report.
2159 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2161 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
2162 compiles with __STRICT_ANSI__.
2164 Thanks to Felipe Contreras for the report.
2166 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2168 * include/stdlib.h (strtod): Remove possible static declaration to resolve
2171 Thanks to Tobias Burnus for the report.
2173 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2175 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
2176 by wrapping the functions in brackets.
2178 Thanks to Kai Tietz for the report.
2180 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
2182 * Makefile.in: Add support for msvcr100.dll.
2183 * msvcrt.def.in: Ditto.
2185 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
2187 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
2188 not always available, go the long way and use the explicit named union
2189 members, which are also declared in winnt.h.
2191 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
2193 * mingwex/isblank.c: Fix typo in declaration.
2195 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
2197 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
2198 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
2199 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
2200 is included before <ctype.h>.
2202 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2204 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
2206 Thanks to Jim Bell for the report and Greg Chicares for the fix.
2208 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
2210 Correct hexadecimal formatting of double and long double values.
2212 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
2213 (__pformat) [A format]: Cast double values to long double, and use...
2214 (__pformat_xldouble): ...this instead, with corrected adjustment of
2215 exponent and alignment of mantissa, when formatting subnormals.
2217 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
2219 * include/dirent.h (dd_handle): Define as intptr_t.
2221 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
2223 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
2226 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2228 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
2229 semantically identical MAX_PATH; correct value is 260.
2231 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2233 Accept that mingwrt headers are not guaranteed to precede GCC's in the
2234 system include search path; (issue reported by Mark Brand).
2236 * include/float.h: Add multiple inclusion guard around...
2237 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
2238 only when this define does not indicate that it has already been seen;
2239 update comments to document rationale; move it within the scope of...
2240 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
2241 GCC's float.h, after an appropriate complementary modification, need
2242 not perform a further include path search when this implementation
2243 specific extension has already been processed.
2245 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
2247 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
2248 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
2249 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
2250 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
2251 _findnexti64): Correct definition.
2253 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
2255 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
2257 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2259 * include/_mingw.h: Increment version to 3.18.
2261 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
2263 * include/stdio.h: (_vscprintf, _vscwprintf)
2264 * include/tchar.h: (_vsctprintf)
2266 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
2268 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
2269 (initial implementation)
2271 * new type: __time32_t
2273 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
2274 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
2275 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
2277 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
2278 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
2279 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
2280 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
2281 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
2282 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
2283 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
2284 _wstat32i64, _wstat64i32,_wutime32
2286 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
2287 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
2288 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
2289 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
2290 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
2292 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
2294 Implement TLS Callback.
2296 * tlsmcrt.c: New file.
2297 * tlsmthread.c: Ditto.
2300 * Makefile.in: Include new files.
2301 * crt1.c: Implement TLS Callback.
2303 * mthr_stub.c: Remove.
2305 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2307 * include/_mingw.h: Increment version to 3.17.
2309 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2311 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
2312 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
2314 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2316 * include/io.h (_open_osfhandle): Correct definition.
2318 Thanks to Alexander Shaduri for the information.
2320 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
2322 Final sync of pseudo-reloc.c with mingw64 and cygwin
2323 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
2324 regarding error messages.
2326 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
2328 Honor DESTDIR for winsup/mingw and winsup/w32api.
2329 Detect and report error if installation paths are win32
2330 format, but DESTDIR is non-empty.
2332 * Makefile.in (DESTDIR): Honor per convention.
2333 (need-DESTDIR-compatibility): New macro; define it and a
2335 (fail-DESTDIR-compatibility): New dependency goal.
2336 (install-dirs): Require need-DESTDIR-compatibility.
2337 * mingwex/Makefile.in (DESTDIR): Honor per convention.
2338 (need-DESTDIR-compatibility): New macro; define it and a
2340 (fail-DESTDIR-compatibility): New dependency goal.
2341 (install): Require need-DESTDIR-compatibility.
2342 * profile/Makefile.in: Ditto.
2344 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
2346 Sync pseudo-reloc.c with mingw64
2347 * psuedo-reloc.c: Remove unnecessary includes.
2348 Forward declare _pei386_runtime_relocator.
2349 Decorate _image_base__ symbol with macro for
2350 mingw64 compatibility. Whitespace changes.
2351 (__print_reloc_error): Renamed to...
2352 (__report_error): This. "Returns" void, and
2353 always aborts. Now used on all platforms.
2354 (__write_memory): Remove special case error handling
2355 for different platforms - always call __report_error.
2356 (do_pseudo_reloc): Remove special case error handling
2357 for different platforms - always call __report_error.
2358 (_pei386_runtime_relocator): Decorate _image_base__
2359 symbol with mingw64 compatibility macro.
2361 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
2363 Sync pseudo-reloc.c with cygwin/lib/
2364 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
2365 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
2366 for fatal error handling that is consistent with cygwin process
2367 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
2368 is unique to each address space, across fork().
2369 [CYGWIN] (__print_reloc_error): New function for reporting
2370 errors in a manner supported by cygwin at this early stage of
2371 the process life-cycle.
2372 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
2373 performed only once for each address space, but are repeated
2374 after fork() in the new address space.
2375 [MINGW] (__write_memory): Ensure that b is always initialized
2376 by call to VirtualQuery, even if -DNDEBUG.
2378 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2380 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
2381 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
2383 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
2384 (PFORMAT_HASHED): ...this formatting attribute; honour only user
2385 specified format qualifiers, except in special case...
2386 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
2387 (PFORMAT_ZEROFILL): ...this default formatting attribute...
2388 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
2391 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2393 Avoid multiple link time definitions of _printf() for C++;
2394 (problem reported by Alexander Shaduri, via MinGW-users ML).
2396 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
2397 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
2399 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2401 * include/_mingw.h: Increment version to 3.16.
2403 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2405 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
2406 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
2407 __fp_unordered_compare): Add prototypes.
2408 * include/stdio.h (vsnwprintf): Add prototype.
2409 * include/wchar.h (vsnwprintf): Add prototype.
2410 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
2411 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
2413 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2415 Correct disposition of wchar_t output in printf().
2417 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
2418 (argval): ...this, in inner scope, with singular type `wchar_t'; use
2419 it to pass one wchar to __pformat_wputchars(), for output.
2421 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2423 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
2425 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2427 Convert to monolithic configuration procedure.
2429 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
2430 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
2431 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
2432 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
2433 (CRT0S): Relocate from `profile'; define it as appropriate.
2434 (LIBM_A): Define and AC_SUBST it unconditionally.
2435 (AC_CONFIG_SUBDIRS): Remove; none to configure.
2436 (AC_OUTPUT_FILES): Add `Makefile' for each of...
2437 (mingwex, profile): ...these subdirectories.
2439 * configure: Regenerated.
2441 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
2442 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
2443 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
2444 (SUBDIRS): Define explicitly, to run recursive `make' in...
2445 (mingwex, profile): ...these; simplify build commands...
2446 (rootme, rootsrc): ...without these shell variables.
2447 (all, subdirs): Delete redundant build commands.
2448 (FIXME): Flag various issues for follow up.
2450 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
2451 (top_srcdir): ...this new macro; let AC_SUBST define it.
2452 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2453 (Makefile): Make it depend on...
2454 (top_builddir/config.status): ...this, itself depending on...
2455 (top_srcdir/configure): ...this.
2456 (FIXME): Flag various issues for follow up.
2458 * mingwex/aclocal.m4: File no longer required; delete it.
2459 * mingwex/configure mingwex/configure.in: Likewise.
2461 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
2462 (top_srcdir): ...this new macro; let AC_SUBST define it.
2463 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2464 (Makefile): Make it depend on...
2465 (top_builddir/config.status): ...this, itself depending on...
2466 (top_srcdir/configure): ...this.
2467 (FIXME): Flag various issues for follow up.
2469 * profile/aclocal.m4: File no longer required; delete it.
2470 * profile/configure profile/configure.in: Likewise.
2472 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2474 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
2475 to complaints that it causes issues.
2477 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
2479 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
2481 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2483 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
2484 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
2485 to all inline functions.
2487 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2489 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
2490 * CRT_fp10.c: Ditto.
2492 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2494 * cpu_features.c: replace gcc-specific construct with portable alternative
2495 and match the code a few lines above.
2496 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
2498 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2500 * include/_mingw.h: Changes required for PCC compiler.
2502 2009-07-18 Jeff Lu <jll544@yahoo.com>
2504 * mingwex/usleep.c: round up to next ms
2506 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2508 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
2509 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
2510 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
2511 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
2513 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2515 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
2517 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
2519 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
2520 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
2521 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
2522 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
2523 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
2524 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
2525 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
2526 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
2527 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
2528 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
2529 sources as of Apr. 20, 2009. Update further to match the sources in
2530 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
2531 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
2532 double/ulong union from U to dbl_union for better grepping and white-
2535 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2537 * include/stdlib.h (_wtof): Define.
2539 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
2541 * include/stdint.h (int_fast8_t): Specify as signed char.
2542 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
2543 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
2545 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
2547 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
2549 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2551 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
2552 (Requested by Robert Riebisch)
2554 * mingwex/getopt.c (getopt_parse): Track external increments of...
2555 (optind): ...this global variable.
2557 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2559 * include/_mingw.h: Increment version to 3.15.2.
2561 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2563 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
2564 Also add tentative support for BSD specific `optreset' feature.
2566 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
2567 (__mingw_optreset): ...this new global variable.
2569 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
2570 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
2573 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2575 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
2576 Correct mishandling of invalid characters in printf() format specs.
2578 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
2579 (backtrack): ...this new automatic variable, at start of each format
2580 conversion specification substring; use it to backtrack, and print the
2581 substring literally, if any invalid character is encountered.
2583 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
2585 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
2586 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
2587 ___unguarded_readlc_active_add_func, __crtCompareStringW,
2588 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
2589 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
2590 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
2591 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
2592 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
2593 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
2594 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
2595 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
2596 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
2597 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
2598 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
2600 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
2602 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
2604 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2606 Correct some binary distribution packaging defects.
2608 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
2609 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
2610 intermediate goals; they make packages of files, as specified by...
2611 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
2612 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
2614 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2616 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
2617 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
2619 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
2620 of radix point conditional on precision != 0 or `#' flag specified.
2622 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2624 Fix MinGW-Bug [2160227]
2625 Eliminate conflicting declarations and implementations of scalb().
2627 * moldname.def.in (scalb): Comment out of EXPORTS list.
2628 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
2629 with GCC's built-in declaration.
2631 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
2633 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
2635 * mingwex/Makefile.in: Ditto.
2636 * profile/Makefile.in: Ditto.
2637 * configure.in: Record mingw front-end for building under Cygwin.
2638 * mingwex/configure.in: Ditto.
2639 * profile/configure.in: Ditto.
2640 * configure: Regenerate.
2641 * mingwex/configure: Ditto.
2642 * profile/configure: Ditto.
2644 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2646 Use de-facto standard Makefile goals to invoke test suite.
2648 * Makefile.in: Some minor formatting adjustments.
2649 (test_headers): Unconventionally named goal renamed to...
2650 (check-headers): ...this; make it a prerequisite of...
2651 (check): ...this new conventionally named goal.
2653 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2655 Make strtod() inline definition C89 compliant.
2656 (Issue reported by Ilya Shestopalov and Ian Puleston)
2657 (Correction identified by Danny Smith)
2659 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
2660 reformat inline function definition.
2662 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2664 * include/_mingw.h: Increment version to 3.15.1 and introduce
2665 __MINGW32_PATCHLEVEL variable.
2667 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2669 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
2670 (Reported by Christian Franke)
2672 * mingwex/getopt.c (optind): Make global variable value conform to
2673 behaviour specified by POSIX; do not use it for internal state in...
2674 (getopt_parse): ...this static function; use...
2675 (optbase): ...this new static local variable instead.
2676 (getopt_resolved): Update `optind' as required.
2678 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2680 Improve package identification in configure script.
2682 * configure.ac (AC_INIT): Redefine parameters...
2683 (PACKAGE_NAME): Set to `MinGW Runtime'.
2684 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
2685 (PACKAGE_TARNAME): Set to `mingwrt'.
2686 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
2687 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
2688 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
2690 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
2691 (PACKAGE_TARNAME): ...this.
2693 * configure: Regenerated.
2695 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2697 Fix MinGW-Bug [2125708].
2698 (Reported by Alexandr Zamaraev).
2700 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
2701 not wanted here; remove it; replace it by...
2702 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
2703 (_invalid_parameter_handler): ...this function typedef.
2705 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
2707 * Makefile.in: Don't include host_os as part of snapshot filename.
2709 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2711 Fix MinGW-Bug [2119504].
2712 (Reported by Peiyuan Song).
2714 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
2715 (*retindex): ...this already correctly assigned return variable...
2716 (opt[index].val): ...with this; this should have been assigned to...
2717 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
2719 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2721 Fix MinGW-Bug [2117379].
2722 (Reported by Peiyuan Song).
2724 * include/stdio.h (__argv): Replace all references in function
2725 prototype argument lists and inline function local variables, with ...
2726 (__local_argv): ...this, to avoid potential conflict with ...
2727 * include/stdlib (__argv): ...this #defined macro.
2729 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2731 * include/_mingw.h: Increment version to 3.15.
2733 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2735 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
2736 naming standard for Cygwin.
2738 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2740 Reimplement getopt.c to add getopt_long_only() function.
2742 (N.B. this reimplementation removes support for BSD/Mac-OS-X
2743 `optreset' nonsense; user code should set `optind = 0' instead,
2744 to reinitialise option scanning).
2746 * mingwex/getopt.c: Delete all content; reimplement it.
2747 * include/getopt.h: Likewise.
2749 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
2750 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
2752 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2754 Implement conditional replacement for printf() family functions.
2756 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
2757 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
2758 flag for use in user specified __MINGW_FEATURES__ attribute.
2759 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
2760 currently unused: reserved as components of...
2761 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
2762 a __MINGW_FEATURES__ enhancement to setlocale().
2764 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
2765 (__mingw_fprintf, __mingw_vfprintf): Likewise.
2766 (__mingw_sprintf, __mingw_vsprintf): Likewise.
2767 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
2768 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
2769 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
2770 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
2771 usage; link to DLL import stub, importing from MSVCRT.
2772 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2773 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2774 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
2775 locally defined static stub implementation.
2776 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2777 __mingw_fprintf and __mingw_sprintf respectively.
2778 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
2779 static inline implementation for C++ and GNU C, or locally defined
2780 static stub otherwise.
2781 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2782 __mingw_vfprintf and __mingw_vsprintf respectively.
2784 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2786 Avoid access violations, passing NULL to printf( "...%s..." );
2787 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
2789 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
2790 for argument value, if caller passes a NULL pointer.
2791 (__pformat_wcputs): Likewise, substitute L"(null)".
2793 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2795 Add missing dependencies for building libmingwex.a.
2797 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
2798 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
2799 (pformat.h): ...this.
2801 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2803 Add replacements for remaining members of printf() family.
2805 * mingwex/stdio/printf.c: New file.
2806 * mingwex/stdio/fprintf.c: New file.
2807 * mingwex/stdio/sprintf.c: New file.
2808 * mingwex/stdio/vprintf.c: New file.
2809 * mingwex/stdio/vfprintf.c: New file.
2810 * mingwex/stdio/vsprintf.c: New file.
2812 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2813 (STDIO_OBJS): Add their corresponding object files.
2815 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2817 Replace __mingw_snprintf() with new generic family implementation;
2818 likewise, replace __mingw_vsnprintf().
2820 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
2821 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
2822 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2823 (GDTOA_DISTFILES): Remove mingw_snprintf.c
2824 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
2825 (GDTOA_OBJS): Remove mingw_snprintf.o
2826 (PFORMAT_CFLAGS): New macro; define it, as required by...
2827 (pformat.o): ...this new explicit build target.
2828 (snprintf.o, vsnprintf.o): Declare prerequisites.
2830 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
2832 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2834 Lay foundations for new printf() function family implementation.
2836 * ofmt_stub.s: New file; implement forward compatibility stub for...
2837 (_get_output_format): ...this MSVCR80.DLL and later function.
2839 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
2840 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
2841 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
2842 (lib%.a): Include ofmt_stub.o when import library does not already
2843 advertise availability of the _get_output_format() function;
2844 Add alias stubs for MINGW_REPL_FUNCS, such that...
2845 (__msvcrt_printf): ...is an alias for Microsoft's printf().
2846 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
2847 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
2848 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
2849 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
2850 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
2851 (clean): Add msvcr*.def.
2853 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
2854 * configure: Regenerated.
2856 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2858 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
2859 (_imp____mb_cur_max_dll): Likewise.
2861 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
2863 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
2864 * include/wchar.h (swprintf, vswprintf): Likewise.
2866 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2868 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
2869 (_get_output_format, _set_output_format): Add references.
2871 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
2872 (_get_output_format, _set_output_format): Declare prototypes.
2873 (_TWO_DIGIT_EXPONENT): Define.
2874 Some other minor formatting adjustments.
2876 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2878 [mingw-Bugs-1801641]
2879 * include/wchar.h (_wfdopen): Const-ify second arg.
2880 * include/stdio.h (_wfdopen): Likewise.
2881 Thanks to <tdragon at users dot sourceforge net>
2883 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2885 Avoid precision errors in round(), lround() and llround() functions.
2887 * mingwex/math/round_generic.c: New file; it replaces...
2888 * mingwex/math/round.c: ...this; delete it.
2889 * mingwex/math/roundf.c: ...and this; ditto.
2890 * mingwex/math/roundl.c: ...and this; ditto.
2892 * mingwex/math/lround_generic.c: New file; it replaces...
2893 * mingwex/math/lround.c: ...this; delete it.
2894 * mingwex/math/lroundf.c: ...and this; ditto.
2895 * mingwex/math/lroundl.c: ...and this; ditto.
2896 * mingwex/math/llround.c: ...and this; ditto.
2897 * mingwex/math/llroundf.c: ...and this; ditto.
2898 * mingwex/math/llroundl.c: ...and this; ditto.
2900 * mingwex/math/round_internal.h: New file; it provides generic common
2901 code, which is shared by `round_generic.c' and `lround_generic.c'; the
2902 implementation is based on techniques suggested by Danny Smith and
2905 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
2906 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
2907 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
2908 `round_generic.c' and `lround_generic.c'.
2909 (MATH_OBJS): Factor out files listed in...
2910 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
2911 macros; define them; specify dependencies and build rules; add to...
2912 (LIB_OBJS): ...this list.
2914 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
2916 [ mingw-Bugs-1961893 ]
2917 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
2918 mode to 2 for E format.
2920 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
2922 * include/stdlib.h: Fix strtod under C++.
2924 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
2926 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
2927 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
2929 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
2931 * include/sys/types.h (useconds_t): typedef.
2932 * include/unistd.h (usleep): Add prototype.
2933 * mingwex/usleep.c: New file.
2934 * mingwex/makefile.in: Add usleep source and object.
2936 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2938 Make strtod() conform to C99.
2940 * include/stdlib.h (strtod): Declare this mingwex function, and...
2941 (_strtod): rename this MSVCRT counterpart.
2943 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2945 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2947 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2949 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2951 * include/process.h: Include stdint.h for intptr_t definition.
2952 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2953 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2954 _spawnvpe): Return intptr_t.
2955 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2956 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2958 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2960 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2961 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2962 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2963 _wspawnvp, _wspawnvpe): Return intptr_t.
2965 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2967 * include/wchar.h (fwide): Return success code rather than failure in inline
2969 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2970 code rather than failure.
2972 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2974 * include/math.h (float_t, double_t): Define.
2976 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2978 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2979 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2980 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2982 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2984 * include/complex.h: Don't condition contents on C99 or not
2987 2008-02-01 Brian Dessent <brian@dessent.net>
2989 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2990 the different runtime versions.
2992 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2994 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2995 (mbsinit): Likewise.
2997 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2999 * include/_mingw.h: Increment version to 3.14.
3001 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3003 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
3004 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
3005 * mingwex/math/log10f.S: Correct issue with comments.
3006 * mingwex/math/log10l.S: Ditto.
3007 * mingwex/math/log1p.S: Ditto.
3008 * mingwex/math/log1pf.S: Ditto.
3009 * mingwex/math/log1pl.S: Ditto.
3010 * mingwex/math/log2.S: Ditto.
3011 * mingwex/math/log2f.S: Ditto.
3012 * mingwex/math/log2l.S: Ditto.
3013 * mingwex/math/logf.S: Ditto.
3014 * mingwex/math/logl.S: Ditto.
3016 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3018 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
3020 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
3022 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
3023 from '_fsize_t' to '__int64' to be consistent with the other ...64
3024 structures and the value set there is 8 bytes not 4. Add guard for both
3025 as the are only used by functions available from 6.1 on.
3027 * include/malloc.h (_HEAP_MAXREQ): Define.
3028 (_aligned_offset_recalloc): Define.
3029 (_aligned_recalloc()): Define.
3031 * include/math.h: fixed a typo in a comment.
3032 (atanhf): Fixed declaration.
3034 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
3035 to '__int64' to be consistent with the other ...64 structures and the value
3036 set there is 8 bytes not 4. Added guard as this function is only used by
3037 functions available from 6.1 on.
3039 * include/sys/stat.h: some members of 'stat' were declared with types with
3040 a prefixed underscore, while the ones without the underscore should have
3041 been used. Added guard to '__stat64' as it is only used by functions
3042 available from 6.1 on. Added the wide character versions of the
3043 exec()/spawn() family for completion
3044 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
3047 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
3048 from 'long' to 'time_t'
3049 (__timeb64): moved declaration of structure directly before the declaration
3050 of the function '_ftime64()', so it is guarded as well
3052 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
3053 before the declaration of the functions using it, so it is guarded as well
3055 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
3057 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
3058 case. Add missing break in 's'/LEN_S case.
3060 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
3062 Make snprintf() and vsnprintf() conform to C99.
3064 * include/stdio.h: Add note about incompatibility between...
3065 (snprintf, vsnprintf): These two mingwex functions, and...
3066 (_snprintf, _vsnprintf): these MSVCRT counterparts.
3068 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
3069 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
3071 * mingwex/stdio/snprintf.c: Delete.
3072 * mingwex/stdio/vsnprintf.c: Delete.
3074 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
3075 (vsnprintf): Alias to __mingw_vsnprintf.
3077 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3079 * include/_mingw.h: Increment version to 3.13.
3080 * Makefile.in: Reset CYGRELEASE to 1
3082 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3084 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
3085 resulting from incomplete removal of enclosing `for ...; do ...; done'
3086 loop from compound command; (reported by Greg Chicares).
3088 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3090 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
3093 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3095 [mingw-Bugs-1734142]
3096 * include/wchar.h (_wsystem) Declare.
3098 (_wgetenv): Declare.
3099 (_wsearchenv): Declare.
3100 (_wmakepath): Declare.
3101 (_wsplitpath): Declare.
3102 (_wfullpath): Declare.
3103 * include/stdlib.h (_wsystem) Declare.
3104 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
3105 _wfullpath): Move into _WSTDLIB_DEFINED guard.
3106 * include/tchar.h (_tsystem): New UNICODE mapping define.
3108 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
3110 * mingwex/gdtoa/mingw_snprintf.c: New file.
3111 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
3112 (GDTOA_OBJS): Add mingw_snprintf.o.
3114 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
3116 * msvcrt.def.in: Update comment.
3117 Exclude _ctype stub if using msvcr71.dll or newer.
3118 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
3119 * include/wctype.h: Likewise.
3121 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3123 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
3124 *include/dirent.h: Likewise.
3126 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3128 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
3129 * include/conio.h: Likewise.
3130 * include/ctype.h: Likewise.
3131 * include/direct.h: Likewise.
3132 * include/dos.h: Likewise.
3133 * include/errno.h: Likewise.
3134 * include/fenv.h: Likewise.
3135 * include/float.h: Likewise.
3136 * include/inttypes.h: Likewise.
3137 * include/io.h: Likewise.
3138 * include/libgen.h: Likewise.
3139 * include/locale.h: Likewise.
3140 * include/malloc.h: Likewise.
3141 * include/mbctype.h: Likewise.
3142 * include/mbstring.h: Likewise.
3143 * include/process.h: Likewise.
3144 * include/search.h: Likewise.
3145 * include/setjmp.h: Likewise.
3146 * include/signal.h: Likewise.
3147 * include/stdio.h: Likewise.
3148 * include/stdlib.h: Likewise.
3149 * include/string.h: Likewise.
3150 * include/time.h: Likewise.
3151 * include/wchar.h: Likewise.
3152 * include/sys/stat.h: Likewise.
3153 * include/sys/time.h: Likewise.
3154 * include/sys/timeb.h: Likewise.
3155 * include/sys/utime.h: Likewise.
3157 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
3159 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
3161 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
3163 Add POSIX binary tree search API.
3165 * mingwex/tfind.c: New file.
3166 * mingwex/tdelete.c: New file.
3167 * mingwex/tsearch.c: New file.
3168 * mingwex/twalk.c: New file.
3169 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
3170 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
3171 * include/search.h (tfind): Declare.
3178 (node_t): Define, on condition of _SEARCH_PRIVATE.
3180 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
3182 * include/_mingw.h (__MINGW_NOTHROW): Define.
3184 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3186 * include/stdio.h (vsnprintf): Remove inline definition.
3189 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3191 * CRTfmode.c: Nit-pick comment fix.
3193 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
3195 * CRTfmode.c: Fix nested comment.
3197 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
3199 * include/string.h (strcasecmp): Fix typo in declaration prototype.
3201 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
3203 * include/io.h (lseek64) : Add prototype.
3205 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
3207 * include/string.h (strcasecmp): Add prototype.
3208 (strncasecmp): Add prototype.
3210 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3212 * Makefile.in (CRT0S): Revert last change.
3213 * CRTfmode.c. Correct comment.
3215 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3217 * Makefile.in (CRT0S): Add back CRTfmode.o.
3219 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3221 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
3222 * include/io.h: Likewise.
3224 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
3226 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
3228 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3230 * include/stdint.h (intptr_t): Fix typo.
3231 Thanks to Charles Wilson for report.
3233 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
3235 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
3236 Condition on _WIN64.
3237 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
3238 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
3239 (PTRDIFF_MIN): Define as INTPTR_MIN.
3240 (PTRDIFF_MAX): Define as INTPTR_MAX.
3241 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
3242 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
3244 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3246 * Makefile.in: Removed mansuffix variable. Changed mansection to support
3247 Cygwin man page location.
3249 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3251 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
3252 support Cygwin man page location.
3254 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3256 * Include/_mingw.h: Increment version to 3.12.
3258 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
3260 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
3262 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3264 * Makefile.in: Tweak srcdist to fix build issue.
3266 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
3268 Add --enable-mingw-manpage-transform configure option.
3270 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
3271 * configure.in, Makefile.in: Use it.
3272 * configure: Regenerated.
3274 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
3276 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
3278 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3280 Add manpages for dirname and basename functions.
3282 * man: New directory.
3283 * man/dirname.man: New file; it sources both manpages.
3284 * Makefile.in: Add provisional rules to distribute them.
3286 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3288 * mingwex/basename.c: Make it work with path names containing
3289 multibyte character strings.
3290 * mingwex/dirname.c: Likewise.
3292 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3294 * include/io.h (__mingw_access): New static inline wrapper to restore
3295 pre-Vista 'access (fname, X_OK)' behaviour.
3296 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
3298 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3300 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
3302 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
3304 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
3306 * include/stdio.h (_unlink, unlink): Add prototypes.
3308 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
3310 * include/excpt.h: Replace "_try1" in comments with "__try1".
3312 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
3314 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3315 (ALL_CXXFLAGS): Likewise.
3316 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3317 (ALL_CXXFLAGS): Likewise.
3318 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3319 (ALL_CXXFLAGS): Likewise.
3321 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
3323 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
3325 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
3327 Expose some more msvcr80.dll functions.
3328 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
3329 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
3330 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
3331 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
3333 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3335 Expose some msvcr80.dll functions.
3336 * include/stdlib.h (_set_abort_behavior): Add prototype.
3337 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
3338 _set_abort_behavior mask argument.
3339 (_invalid_parameter_handler): Add typedef.
3340 (_set_invalid_parameter_handler): Add prototype.
3341 * include/stdio.h (_get_printf_count_output): Add prototype.
3342 (_set_printf_count_output): Add prototype.
3343 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
3344 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
3346 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3348 * include/_mingw.h (CRT_INLINE): Correct typo.
3350 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
3352 * include/io.h (X_OK): Define to F_OK.
3354 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
3356 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
3357 unconditionally. Change comment.
3358 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
3360 * include/io.h (rename): Declare.
3363 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3365 * include/libgen.h: New file; required by...
3366 * mingwex/basename.c, mingwex/dirname.c: New files.
3367 * mingwex/Makefile.in (DISTFILES): Add them...
3368 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
3369 (Dependencies): Typo; s/Dependancies/Dependencies/
3371 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
3373 * Makefile.in (VERSION): Let configure define it.
3375 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
3376 * configure.in: Use it.
3377 Correct quoting of autoconf macro arguments throughout.
3378 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
3379 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
3380 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
3381 (AC_CONFIG_FILES): Add, to generate Makefile.
3383 * configure: Regenerated.
3385 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
3387 * Makefile.in: Add aclocal.m4 to source release.
3388 * mingwex/Makefile.in: Ditto.
3389 * profile/Makefile.in: Ditto.
3391 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3393 * Include/_mingw.h: Increment version to 3.11.
3394 * Makefile.in: Ditto.
3396 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3398 [ mingw-Bugs-1590623 ]
3399 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
3402 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
3404 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
3405 correctly parenthesized.
3407 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3409 * mingwex/mb_wc_common.h (get_codepage): Get it
3412 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3414 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
3416 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
3418 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
3421 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
3423 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
3426 2006-09-11 Christopher Faylor <cgf@timesys.com>
3428 * Makefile.in: Semi-revert 2006-08-30 change.
3430 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3432 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
3433 (__MINGW_IMPORT): Ansify.
3434 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
3435 __MINGW_ATTRIB_DEPRECATED.
3437 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3439 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
3440 Redundant macros; deleted.
3442 * configure.in (LIB_AC_PROG_CC): Replaced by...
3443 (AC_PROG_CC): ...this.
3445 * configure: Regenerated.
3447 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
3449 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
3450 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
3451 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
3453 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
3455 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
3456 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
3457 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
3458 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
3460 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
3461 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
3462 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
3463 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
3464 * mingwex/wcstold.c: Avoid using strtold internals.
3465 * mingwex/wcstof.c: Rewrite.
3466 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
3467 (GDTOA_OBJS): Add to library.
3468 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
3469 (STDLIB_OBJS): Remove.
3470 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
3471 (Q8_OBJS): Add wcstof.o wcstold.o.
3472 * include/stdlib.h (strtof): Remove inline definition.
3474 * include/wchar.h (wcstof): Remove inline definition.
3476 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
3478 * Makefile.in: Add with_cross_host to allow more granular checks.
3479 Set installation directories accordingly. Override CC setting only
3480 if building a Cygwin target.
3481 * aclocal.m4: Regenerate.
3482 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
3483 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
3484 Test AC_ALLOCA only if building on a native system.
3485 * configure: Regenerate.
3487 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3489 * include/ctype.h: Fix typo.
3491 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3493 * include/ctype.h: Expose iswblank if __cplusplus.
3494 * include/wctype.h: Expose iswblank if __cplusplus.
3496 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3498 * include/ctype.h: Remove stray ')';
3500 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3502 * include/ctype.h (_BLANK): Expand comment.
3503 (isblank): Add prototype and inline definition.
3504 (iswblank): Add prototype and inline definition.
3505 * include/wctype.h (iswblank): Add prototype and inline definition.
3506 * mingwex/isblank.c: New file.
3507 * mingwex/iswblank.c: New file.
3508 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
3510 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
3512 * include/math.h (__INFF,__INFL): Remove '#'.
3514 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3516 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
3518 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3520 Support SSE float environment in fenv.h functions.
3521 * cpu_features.c: New file.
3522 * cpu_features.h: New file.
3523 * crt1.c: Include "cpu_features.h".
3524 (__mingw_CRTStartup): Call cpu_features_init().
3525 * Makefile.in (MING_OBJS): Add cpu_features.c.
3526 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
3527 * include/fenv,h ( fenv_t;): Append __mxcsr field.
3528 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
3529 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
3530 (__MXCSR_ROUND_FLAG_SHIFT): New define.
3531 * mingwex/feclearexcept.c: Include "cpu_features.h".
3532 Handle SSE environment.
3533 * mingwex/fegetenv.c: Likewise.
3534 * mingwex/feholdexcept.c: Likewise.
3535 * mingwex/fesetenv.c: Likewise.
3536 * mingwex/fesetexceptflag.c: Likewise.
3537 * mingwex/fesetround.c: Likewise.
3538 * mingwex/fetestexcept.c: Likewise.
3539 * mingwex/feupdateenv.c: Likewise.
3540 * mingwex/fegetround.c: Add comment.
3542 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3544 * Include/_mingw.h: Increment version to 3.10.
3545 * Makefile.in: Ditto.
3547 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3549 * mingwex/math/tgamma.c (SQTPI): Add braces.
3551 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3553 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
3554 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
3556 * mingwex/math/sf_erf.c (erff): Initialize z.
3558 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
3560 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3562 * Include/_mingw.h: Increment version to 3.10.
3563 * Makefile.in: Ditto.
3565 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3567 * include/sys/time.h (struct timezone): Define.
3568 * include/time.h: Correct comment about timezone.
3570 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3572 * configure.in (AC_CONFIG_AUX_DIR): Remove.
3573 * configure: Regenerate.
3575 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
3577 * configure: add srcdir as a possible location for install-sh.
3579 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3581 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
3582 (_topendir): Use it.
3584 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3586 * include/sys/time.h: Add header guard. Add extern "C" bracketing
3588 (gettimeofday): Add prototype.
3589 * mingwex/gettimeofday.c: New file.
3590 * mingwex/makefile.in: Add gettimeofday source and object.
3592 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3594 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
3595 else global library variable.
3596 (HUGEVALF): Likewise.
3597 (HUGEVALL): Likewise.
3598 (INFINITY): Likewise.
3601 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3603 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
3605 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3607 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
3609 2006-05-24 Christopher Faylor <cgf@timesys.com>
3611 * configure.in: Update to newer autoconf.
3612 (thanks to Steve Ellcey)
3613 * mingwex/configure.in: Ditto.
3614 * profile/configure.in: Ditto.
3615 * configure: Regenerate.
3616 * mingwex/configure: Ditto.
3617 * profile/configure: Ditto.
3618 * aclocal.m4: New file.
3619 * mingwex/aclocal.m4: Ditto.
3620 * profile/aclocal.m4: Ditto.
3622 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
3624 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
3625 Use supplied codepage as arg to WideCharToMultiByte.
3627 2006-02-13 Earnie Boyd <earnie@users.sf.net>
3629 * Makefile.in (libmsvcr80.a): Add import lib.
3630 (libmsvcr80d.a): Ditto.
3632 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3634 * Makefile.in: Bump cygwin build number.
3636 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3638 * Include/_mingw.h: Increment version to 3.9.
3639 * Makefile.in: Ditto.
3641 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3643 * include/limits.h (SSIZE_MAX): Define.
3644 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
3646 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
3648 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
3649 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
3651 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3653 * include/stddef.h: Remove.
3654 * include/stdarg.h: Remove.
3656 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3658 * mingwex/complex/csqrt.c (csqrt): The sign of real part
3659 of result is positive when real part of arg == 0;
3660 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
3661 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
3663 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3665 * include/time.h (_time64): Correct prototype.
3667 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
3669 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
3670 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
3671 to non-stop. Use "fnclex" to clear exception flags.
3673 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3675 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
3676 Avoid raising FP exceptions.
3678 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3680 * include/stdlib.h (strtof): Add prototype. Uglify
3681 parameter names in inline definition.
3683 (_Exit): Uglify parameter names in inline definition.
3684 (llabs): Add prototype.
3685 (_set_error_mode): Add prototype and input defines.
3687 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3689 * mingwex/fe*.c: Revert previous changes.
3690 * include/fenv.h: Revert previous changes.
3692 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3694 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
3695 Do not return a value.
3696 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
3697 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
3698 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
3699 * mingwex/fegetenv.c (fegetenv): Likewise.
3700 * mingwex/fesetenv.c (fesetenv): Likewise.
3701 * mingwex/feupdateenv.c (feupdateenv): Likewise.
3702 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
3703 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
3706 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3708 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
3709 getting filelength for SEEK_END.
3711 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3713 * Include/_mingw.h: Increment version to 3.8.
3714 * Makefile.in: Ditto.
3716 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3718 * include/wctype.h (towupper, towlower): Change arg and return value
3720 * include/ctype.h (towupper, towlower): Likewise.
3722 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3724 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
3725 a diagnostic, guarded by #ifdef DEBUG.
3726 (__mingwthr_remove_key_dtor): Likewise.
3728 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
3730 * moldname.def.in (sleep, beep, seterrormode): Remove.
3732 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3734 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
3735 (_MCOUNT_DECL): Use it.
3736 (MCOUNT): Save and restore eax, ecx, edx registers.
3737 * profile/mcount.c (_mcount): ANSI-fy.
3739 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3741 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
3742 guard __MINGW_ATTRIB macro definitions.
3743 * include/math.h (logb[fl]): Don't define inlines for
3744 GCC-4.0+ && __FAST_MATH__.
3745 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
3746 line-continuation backslashes.
3748 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
3750 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
3751 in GNUC version guard.
3753 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
3755 * crt1.c (_gnu_exception_handler): Handle illegal instruction
3756 OS exception as a signal if user has defined a SIGILL handler.
3758 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
3760 * mingwex/math/nexttoward.c: New file.
3761 * mingwex/math/nexttowardf.c: New file.
3762 * mingwex/math/nextafterl.c: Add nexttowardl alias.
3763 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
3765 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
3766 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
3769 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
3771 * mingwex/math/nextafterf.c (nextafterf): Correct
3773 * mingwex/math/nextafterl.c: New file.
3774 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
3775 (MATH_OBJS): Add nextafterl.o.
3776 * include/math.h (nextafterl): Uncomment prototype.
3778 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3780 * mingwex/math/erfl.c: New file.
3781 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
3782 (MATH_OBJS): Add erfl.o.
3783 * include/math.h (erfl, erfcl): Uncomment prototypes.
3785 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
3787 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
3788 #if (WCHAR_MAX <= WCHAR_MIN) is false.
3789 * include/stdint.h (WCHAR_MAX): Likewise.
3790 (WINT_MAX): Likewise.
3792 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
3794 * mingwex/math/signbit.c (__signbit): Make return value
3795 consistent with GCC's __builtin_signbit.
3796 * mingwex/math/signbitf.c (__signbitf): Likewise.
3797 * mingwex/math/signbitf.c (__signbitl): Likewise.
3798 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
3801 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
3803 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
3805 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
3806 Remove unused MBTOWC_FLAGS define.
3808 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
3810 * mingwex/mbrtowc.c: New file.
3811 * mingwex/wcrtomb.c: New file.
3812 * mingwex/btowc.c: New file.
3813 * mingwex/wctob.c: New file.
3814 * mingwex/mb_wc_common.h: New file.
3815 * mingwex/Makefile.in (DISTFILES): Add new files.
3816 (Q8_OBJS): Add new objects.
3817 * include/wchar.h: Adjust comment about mbrtowc() and related
3818 funcions. Add __restrict__ to pointer params in prototypes.
3819 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
3820 arg names from protototypes.
3822 2005-04-23 Wu Yongwei <adah@sh163.net>
3824 * mingwex/dirent.c: Formatting changes.
3825 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
3828 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
3830 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
3832 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
3834 * include/stdio.h (__mingw_fwrite): Change return value to
3836 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
3838 2005-03-15 Hans Leidekker <hans@it.vu.nl>
3840 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
3842 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3844 * include/wctype.h (wctrans): Remove _CRTIMP.
3845 (towctrans): Likewise.
3848 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3850 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
3852 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3854 * mingwex/wctype.c: New file.
3855 * mingwex/wctrans.c: New file.
3856 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
3857 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
3859 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3861 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
3863 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3865 * include/assert.h: Remove header guard. #undef assert macro.
3866 (_assert): Use __MINGW_ATTRIB_NORETURN define.
3868 2005-02-11 Gregory W. Chicares <chicares@cox.net>
3870 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
3871 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
3873 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
3874 * mingwex/math/expm1.c: New file.
3875 * mingwex/math/expm1f.c: New file.
3876 * mingwex/math/expm1l.c: New file.
3878 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3880 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
3881 * include/wchar.h (struct stat): Likewise.
3882 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
3884 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
3886 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3888 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
3889 string is not valid.
3891 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
3893 * include/malloc.h: Add missing return code defines for
3896 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
3898 * include/sys/stat.h (struct __stat64): Change st_size type to
3900 * include/wchar.h (struct __stat64): Change st_size type to __int64.
3902 2005-01-13 Earnie Boyd <earnie@users.sf.net>
3904 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3906 * include/errno.h (ELOOP): Ditto.
3907 * include/_mingw.h: Increment version to 3.7.
3908 * Makefile.in: Ditto.
3910 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3912 * include/tchar.h (_tfreopen): Add UNICODE mappings.
3914 2005-01-11 Earnie Boyd <earnie@users.sf.net>
3916 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3917 lstat): Conditionalize defines for __STRICT_ANSI__.
3919 2005-01-10 Earnie Boyd <earnie@users.sf.net>
3921 * include/errno.h (ELOOP): Add definition.
3923 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
3925 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
3926 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
3927 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
3928 ctanl.c ctanhl.c): New files.
3929 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3930 (COMPLEX_OBJS): Adjust.
3931 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
3932 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
3933 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
3936 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3938 * include/_mingw.h (__int16): Define as short.
3939 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3941 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3943 * include/stdio.h (P_tmpdir): Add define.
3945 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3947 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3949 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3951 * include/_mingw.h: Increment version to 3.6
3952 * Makefile.in: Ditto
3954 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3956 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3957 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3958 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3959 ctanf.c ctanhf.c): New files.
3960 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3961 (COMPLEX_OBJS): Adjust.
3962 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3963 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3964 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3967 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3969 * include/wchar.h (wcsdup): Correct prototype.
3970 * include/string.h (wcsdup): Correct prototype.
3972 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3974 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3976 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3978 * mingwex/math/fastmath.h: New file.
3979 * mingwex/math/asinh.c: New file.
3980 * mingwex/math/asinhf.c: New file.
3981 * mingwex/math/asinhl.c: New file.
3982 * mingwex/math/acosh.c: New file.
3983 * mingwex/math/acoshf.c: New file.
3984 * mingwex/math/acoshl.c: New file.
3985 * mingwex/math/atanh.c: New file.
3986 * mingwex/math/atanhf.c: New file.
3987 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3988 atanh, atanhf, atanhl): Add prototypes.
3989 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3990 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3991 Specify dependency on fastmath.h for new objects.
3993 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3995 * include/sys/stat.h (_S_IFLNK): Add definition.
4002 2004-09-08 Earnie Boyd <earnie@users.sf.net>
4004 * include/sys/stat.h (_S_ISLNK): Add definition.
4007 2004-09-05 Earnie Boyd <earnie@users.sf.net>
4009 * include/_mingw.h: Increment minor version for 3.5 release.
4010 * Makefile.in: Ditto.
4011 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
4013 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
4015 * include/malloc.h (__mingw_aligned_offset_malloc,
4016 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
4017 __mingw_aligned_realloc, __mingw_aligned_free): Add
4019 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
4020 tst-aligned-malloc.c.
4021 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
4023 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
4025 * mingwex/mingw-aligned-malloc.c: New file.
4026 * mingwex/tst-aligned-malloc.c: New file.
4028 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
4030 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
4031 noreturn attribute. Align stack to 16 bytes before passing args
4033 (mainCRTStartup): Change return to void.
4034 (WinMainCRTStartup): Likewise.
4036 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
4038 * profile/COPYING: New file.
4039 * profile/CYGWIN_LICENSE: New file.
4040 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
4042 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
4044 * mingwex/fopen64.c: Move.
4045 * mingwex/fseeko64.c: Move.
4046 * mingwex/ftello64.c: Move.
4047 * mingwex/lseek64.c: Move.
4048 * mingwex/stdio/fopen64.c: To here.
4049 * mingwex/stdio/fseeko64.c: To here.
4050 * mingwex/stdio/ftello64.c: To here.
4051 * mingwex/stdio/lseek64.c: To here.
4053 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
4055 * profile/gmon.c [__MINGW32__]: Include string.h for
4058 2004-08-08 Christopher Faylor <cgf@timesys.com>
4060 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
4062 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
4064 * include/complex.h: Remove __attribute__ ((const)) from
4065 transcendantal and trig functions. Replace __attribute__ ((const))
4066 with __MINGW_ATTRIB_CONST on other declarations.
4068 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
4070 * include/wchar.h: Reorganize, avoid including other headers.
4072 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
4074 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
4075 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
4078 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
4080 * include/dirent.h (struct _wdirent): Remove obsolete comment.
4082 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
4084 * include/string.h: Revert 2004-07-26 additions of
4087 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
4089 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
4090 (__convert_inf_to_maxnum): New.static inline.
4091 (reducl): Use it to protect against Inf - Inf.
4092 (__fast_ldexpl): New function. Use in lieu of ldexpl.
4094 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
4096 * mingwex/math/expl.c (expl): Move body of code to new static
4097 function __expl, removing tests for +/-Inf. Extern function
4098 expl calls __expl after testing for max, min log thresholds.
4100 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
4102 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
4103 * mingwex/stdio/vfscanf.c: Likewise.
4104 * mingwex/stdio/vswscanf.c: Likewise.
4105 * mingwex/stdio/vfwscanf.c: Likewise.
4107 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
4109 * include/_mingw.h: Use only two underscores to uglify
4110 __MINGW_ATTRIB_* macros.
4111 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
4112 * include/setjmp.h: Likewise.
4114 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
4116 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
4118 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
4120 * include/string.h: Group wide string functions together,
4121 and protect with _WSTRING_DEFINED.
4123 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
4125 * include/_mingw.h (__MINGW_ATTR_*): Replace with
4127 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
4128 __MINGW_ATTRIB_NORETURN, throughout.
4129 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
4131 (abs): Declare with __MINGW_ATTRIB_CONST.
4140 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
4142 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
4144 * include/_mingw.h: Undefine __attribute__.
4145 (__MINGW_ATTR_NORETURN): New define.
4146 (__MINGW_ATTR_CONST): New define.
4147 (__MINGW_ATTR_MALLOC): New define.
4148 (__MINGW_ATTR_PURE): New define.
4149 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
4152 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
4154 * include/time.h (__time64_t): Add missing ';'.
4156 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
4158 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
4159 (struct tm): Protect with _TM_DEFINED.
4161 2004-07-17 Christopher Faylor <cgf@timesys.com>
4163 * Makefile.in (CC): Strip inappropriate include file settings from any
4166 2004-07-15 "dgun" <dgun@umpire.com>
4168 * include/complex.h (conj): Correct typo in prototype.
4170 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
4172 * include/math.h: Add pragma GCC system_header.
4174 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
4176 * mingwex/complex/carg.c: New file.
4177 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
4179 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
4181 * Makefile.in (INCLUDES): Temporarily revert previous change.
4182 * mingwex/Makefile,in (INCLUDES): Ditto.
4183 * profile/Makefile,in (INCLUDES): Ditto.
4184 * mingwex/Makefile,in: Drop carg.o dependency.
4186 2004-07-14 Christopher Faylor <cgf@timesys.com>
4188 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
4190 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
4192 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
4194 * mingwex/Makefile,in (INCLUDES): Ditto.
4195 * profile/Makefile,in (INCLUDES): Ditto.
4197 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
4199 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
4201 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
4203 * mingwex/Makefile.in: Ditto.
4204 * profile/Makefile.in: Ditto.
4205 * include/limits.h: Change to new file header preamble.
4206 * include/_mingw.h: Increment minor version for 3.4 release.
4207 * Makefile.in: Ditto.
4209 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
4211 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
4213 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
4215 * include/unistd.h (ftruncate): Add inline definition.
4216 * mingwex/ftruncate.c: New file.
4217 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
4219 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
4221 * include/time.h: Do not include sys/types.h.
4223 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
4225 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
4226 (MATH_OBJS): Remove pow,o.
4227 * include/math.h (pow): Declare with _CRTIMP.
4228 Add comment on how to avoid excess precision problems.
4230 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
4232 * include/stdio.h (__mingw_fseeko64): Add prototype.
4233 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
4234 (__mingw_fwrite): Handle huge files.
4236 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
4237 Danny Smith <dannysmith@users.sourceforge.net>
4239 * include/stdio.h (fopen64): Add inline function.
4240 (fseeko64): Add prototype.
4241 (ftello64): Add inline function.
4242 * include/io.h (lseek64): Add inline function.
4243 * include/sys/types (off64_t): Add typedef.
4244 (fpos64_t): Add typedef.
4245 * mingwex/fopen64.c: New file.
4246 * mingwex/fseeko64.c: New file.
4247 * mingwex/ftello64.c: New file.
4248 * mingwex/lseek64.c: New file.
4249 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
4250 fseeko.64.c, ftello64.c, lseek64.c.
4251 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
4253 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
4255 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
4257 2004-04-22 Earnie Boyd <earnie@users.sf.net>
4259 * DISCLAIMER: Add words about "free to use".
4260 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
4261 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
4262 (inst_docdir): New variable.
4264 (FLAGS_TO_PASS): Include inst_docdir.
4265 (install-dirs): Add inst_docdir.
4266 (install): Add loop for INSTDOCS.
4267 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
4268 section to CONTRIBUTORS file. Remove RCS tags.
4270 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
4272 * mingwex/math/lround.c: Rewrite.
4273 * mingwex/math/lroundf.c: Rewrite.
4274 * mingwex/math/lroundl.c: Rewrite.
4275 * mingwex/math/llround.c: Rewrite.
4276 * mingwex/math/llroundf.c: Rewrite.
4277 * mingwex/math/llroundl.c: Rewrite.
4279 2004-04-20 Earnie Boyd <earnie@users.sf.net>
4281 * CONTRIBUTORS: New file.
4282 * DISCLAIMER: Ditto.
4283 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
4284 section to CONTRIBUTORS file. Remove RCS tags.
4285 * CRTFmode.c: Ditto.
4289 * crtdll.dev: Ditto.
4299 * msvcrt.def.in: Ditto.
4300 * strcasecmp.c: Ditto.
4303 * include/assert.h: Ditto.
4304 * include/conio.h: Ditto.
4305 * include/ctype.h: Ditto.
4306 * include/direct.h: Ditto.
4307 * include/dirent.h: Ditto.
4308 * include/dos.h: Ditto.
4309 * include/errno.h: Ditto.
4310 * include/excpt.h: Ditto.
4311 * include/fcntl.h: Ditto.
4312 * include/float.h: Ditto.
4313 * include/io.h: Ditto.
4314 * include/locale.h: Ditto.
4315 * include/malloc.h: Ditto.
4316 * include/math.h: Ditto.
4317 * include/process.h: Ditto.
4318 * include/setjmp.h: Ditto.
4319 * include/share.h: Ditto.
4320 * include/signal.h: Ditto.
4321 * include/stdio.h: Ditto.
4322 * include/stdlib.h: Ditto.
4323 * include/string.h: Ditto.
4324 * include/tchar.h: Ditto.
4325 * include/time.h: Ditto.
4326 * include/wchar.h: Ditto.
4327 * include/sys/locking.h: Ditto.
4328 * include/sys/param.h: Ditto.
4329 * include/sys/stat.h: Ditto.
4330 * include/sys/timeb.h: Ditto.
4331 * include/sys/types.h: Ditto.
4332 * include/sys/utime.h: Ditto.
4333 * mingwex/dirent.c: Ditto.
4335 2004-04-19 Earnie Boyd <earnie@users.sf.net>
4337 * include/_mingw.h: Revert to primary release 3 and increment minor
4339 * Makefile.in (VERSION): Ditto.
4341 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4343 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
4344 _fmode if not __MSVCRT__.
4346 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
4348 * include/io.h: (_findfirst): Correct prototype.
4350 2004-03-30 Hans Leidekker <hans@it.vu.nl>
4352 * include/io.h: (_findnext, _findclose): Correct prototype.
4354 2004-03-28 Hans Leidekker <hans@it.vu.nl>
4356 * include/math.h (FP_*): Add defines.
4358 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4360 * mingwex/math/round.c: Rewrite.
4361 * mingwex/math/roundf.c: Rewrite.
4362 * mingwex/math/roundl.c: Rewrite.
4364 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4366 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
4367 * include/time.h (__time64_t): Add typedef.
4368 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4369 (_ctime64): Likewise.
4370 (_wctime64): Likewise.
4371 (_gmtime64): Likewise.
4372 (_localtime64): Likewise.
4373 (wcsftime): Move into _WTIME_DEFINED block.
4374 Regroup non-ANSI prototypes.
4375 * include/io.h: Include <stdint.h>.
4376 (__finddata64_t): Add struct definition.
4377 (__wfinddata64_t): Likewise.
4378 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4379 (_findnext64): Likewise.
4380 (_wfindfirst64): Likewise.
4381 (_wfindnext64): Likewise.
4382 * include/sys/timeb.h (__timeb64): Add struct definition.
4383 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4384 * include/sys/utime.h (__utimbuf64): Add struct definition.
4385 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4386 (_futime64): Likewise.
4387 (_wutime64): Likewise.
4388 * include/sys/stat.h (__stat64): Add struct definition.
4389 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4390 (_stat64): Likewise.
4391 (_wstat64): Likewise.
4392 * include/sys/types.h (__time64_t): Add typedef.
4393 * include/wchar.h (__wfinddata64_t): Add structure definition.
4394 (__stat64): Likewise.
4395 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4396 (_wfindfirst64): Likewise.
4397 (_wfindnext64): Likewise.
4398 (_wutime64): Likewise.
4399 (_wstat64): Likewise.
4400 * include/malloc.h (_aligned_free): Add prototype for
4401 __MSVCRT_VERSION__ >= 0x0700.
4402 (_aligned_malloc): Likewise.
4403 (_aligned_offset_malloc): Likewise.
4404 (_aligned_offset_realloc): Likewise.
4405 (_aligned_realloc): Likewise.
4406 * include/string.h (_wcserror): Add prototype for
4407 __MSVCRT_VERSION__ >= 0x0700.
4408 (__wcserror): Likewise.
4409 * include/math.h (_set_SSE2_enable): Add prototype for
4410 __MSVCRT_VERSION__ >= 0x0701.
4412 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4414 * include/stdio.h (_fsopen): Add prototype.
4415 * include/tchar.h (_tfsopen): Add defines.
4416 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
4418 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
4420 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
4421 msvcr70.dll, and msvcr71.dll.
4422 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
4423 using basename of output def file.
4425 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
4427 * include/malloc.h: Remove __STRICT_ANSI__ guard.
4429 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
4431 * include/process.h: Remove the #endif associated with removal of
4432 __STRICT_ANSI__ guard from non-ANSI header.
4434 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4436 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
4437 * include/direct.h: Ditto.
4438 * include/dirent.h: Ditto.
4439 * include/dos.h: Ditto.
4440 * include/excpt.h: Ditto.
4442 * include/io.h: Ditto.
4443 * inlude/mem.h: Ditto.
4444 * include/memory.h: Ditto.
4445 * include/process.h: Ditto.
4446 * inlude/search.h: Ditto.
4447 * include/share.h: Ditto.
4448 * include/unistd.h: Ditto.
4449 * include/sys/fcntl.h: Ditto.
4450 * include/file.h: Ditto.
4451 * include/sys/locking.h: Ditto.
4452 * include/sys/param.h: Ditto.
4453 * include/sys/stat,h
4454 * include/sys/time.h: Ditto.
4455 * include/sys/timeb.h: Ditto.
4456 * include/sys/types.h: Ditto.
4457 * include/sys/unistd.h: Ditto.
4458 * include/sys/utime.h: Ditto.
4460 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
4462 * include/_mingw.h (__UNUSED_PARAM): Define macro.
4463 * include/wchar.h (fwide): Use it.
4466 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4468 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
4469 NetBSD getopt_long.c.
4471 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4473 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
4474 codes and handling of special chars.
4476 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
4478 * include/stdio.h (feof): Add inlined definition.
4481 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4483 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
4484 directly, rather than via scabnl.
4486 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4488 * mingwex/math/powl.c (powl): Return infinity if
4489 extended precision multiplication of x by log2(y)
4492 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
4494 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
4495 (__enan_NI16): Fix another one.
4496 (__enan_NBITS): Tidy.
4498 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4500 * include/stdint.h [__STDC_CONSTANT_MACROS]: Fix for 8 and 16 bit
4501 types. (Thanks to John Maddock for report.)
4503 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
4505 * include/tchar.h (_puttchar): Define.
4507 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
4509 * include/stdio.h:(_fileno): Define macro version after both
4510 fileno and _fileno functions declared.
4512 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
4513 * moldnames.def.in (rmtmp) Add stub.
4515 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
4517 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
4519 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4521 * include/math.h: Guard ISO C99 additions with __cplusplus
4524 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4526 * include/_mingw.h: Define __attribute__((x)) to nothing
4529 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4531 * include/complex.h: New file.
4532 * mingwex/complex: New directory.
4533 * mingwex/complex/cabs.c: New file.
4534 * mingwex/complex/cacos.c: New file.
4535 * mingwex/complex/cacosh.c: New file.
4536 * mingwex/complex/casin.c: New file.
4537 * mingwex/complex/casinh.c: New file.
4538 * mingwex/complex/catan.c: New file.
4539 * mingwex/complex/catanh.c: New file.
4540 * mingwex/complex/ccos.c: New file.
4541 * mingwex/complex/ccosh.c: New file.
4542 * mingwex/complex/cexp.c: New file.
4543 * mingwex/complex/cimag.c: New file.
4544 * mingwex/complex/clog.c: New file.
4545 * mingwex/complex/cpow.c: New file.
4546 * mingwex/complex/cproj.c: New file.
4547 * mingwex/complex/creal.c: New file.
4548 * mingwex/complex/csin.c: New file.
4549 * mingwex/complex/csinh.c: New file.
4550 * mingwex/complex/csqrt.c: New file.
4551 * mingwex/complex/ctan.c: New file.
4552 * mingwex/complex/ctanh.c: New file.
4553 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
4556 (COMPLEX_OBJS): New list of objects.
4557 (LIB_OBJS): Include it in the library.
4559 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4561 * include/math.h (cabs): Remove non-ISO prototype.
4563 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4565 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
4566 Use GCC __builtin's if available.
4567 (INFINITY, INFINITYF, INFINITYL): Likewise.
4569 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4571 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
4572 beyond approximation limit.
4573 * mingwex/math/sf_erf.c (erff): Likewise.
4575 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
4577 * include/stdio.h (getc): Cast result to unsigned char before
4580 (getchar): Likewise.
4581 (putchar): Likewise.
4582 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
4584 2003-10-10 Earnie Boyd <earnie@users.sf.net>
4586 * include/_mingw.h: Increment version to 3.2.
4587 * Makefile.in: Ditto.
4589 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4591 * include/sys/types.h: Revert last change.
4593 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4595 * include/sys/types.h (ssize_t): Correct the definition.
4597 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4599 * include/stdio.h (_filbuf): Add prototype.
4600 (_flsbuf): Add prototype.
4601 (getc): Add inline version.
4603 (getchar): Likewise.
4604 (putchar): Likewise.
4606 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4608 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
4611 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
4613 * include/stdlib.h: Guard non-ISO functions with
4614 !__STRICT_ANSI__, throughout.
4616 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4618 * include/io.h (_fileno): Remove prototype.
4620 (FILENAME_MAX): Define, if needed.
4621 Don't include <stdio.h>.
4622 * include/stdio.h (FILENAME_MAX): Protect against
4624 (_fileno): Define macro implementation.
4627 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4629 * include/inttypes.h: Include _mingw.h.
4631 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4633 * include/_mingw.h (__CRT_INLINE): Define.
4634 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
4636 * include/inttypes.h: Likewise.
4637 * include/math.h: Likewise.
4638 * include/stdio.h: Likewise.
4639 * include/stdlib.h: Likewise.
4640 * include/string.h: Likewise.
4641 * include/wchar.h: Likewise.
4642 * include/wctype.h: Likewise.
4644 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
4646 * mingwex/dirent.c (_topendir): Allocate enough memory for
4647 DIR struct in UNICODE case too.
4649 2003-09-15 Earnie Boyd <earnie@users.sf.net>
4651 * include/_mingw.h: Increment version to 3.2.
4652 * Makefile.in: Ditto.
4654 2003-07-03 Earnie Boyd <earnie@users.sf.net>
4656 * config.guess, config.sub: Update with versions from ftp.gnu.org.
4658 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4660 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
4661 * mingwex/math/truncf.c (truncf): Likewise.
4662 * mingwex/math/truncl.c (truncl): Likewise.
4663 * mingwex/math/modff.c (modff): Likewise.
4664 * mingwex/math/modfl.c (modfl): Likewise.
4666 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4668 * include/search.h: New file.
4669 * include/stdlib.h: Add comment about qsort, bsearch in
4671 * test_headers.c: Include search.h.
4672 * moldname.def.in (lfind, lsearch): Add.
4674 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4676 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
4677 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
4678 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
4680 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4682 * include/_mingw.h (small, hyper): Change to __small and __hyper to
4683 avoid user space name conflicts.
4685 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4687 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
4688 Note: Also added to w32api/include/basetyps.h.
4689 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
4690 Rename to Small (case difference).
4692 2003-06-18 Earnie Boyd <earnie@users.sf.net>
4694 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
4695 * mingwex/dirent.c: Modifications througout to fill d_name array.
4696 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
4697 libmsvcr71, including debug versions.
4698 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
4700 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
4702 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
4703 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
4705 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
4707 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
4709 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
4711 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
4713 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
4714 but still protect inline definition with __STRICT_ANSI__.
4716 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
4718 * string_old.c: Remove, splitting into...
4719 * strcasecmp.c: New file.
4720 * strncasecmp.c: New file.
4721 * wscmpi.c : New file.
4722 * ctype_old.c: Remove, splitting into...
4723 * isascii.c: New file.
4724 * iscsym.c: New file.
4725 * iscsymf.c: New file.
4726 * toascii.c: New file.
4727 * Makefile.in (MOLD_OBJS): Adjust.
4728 (SRCDIST_FILES): Adjust.
4730 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
4732 * include/math.h (fabs) : Remove inline definition.
4736 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4738 * include/_mingw.h: Change version to 3.0
4739 * Makefile.in: Ditto.
4741 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4743 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
4744 * mingwex/configure.in (W32API_INCLUDE): Ditto.
4745 * profile/configure.in (W32API_INCLUDE): Ditto.
4747 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4749 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
4750 of multiply defined symbols if the symbols is defined locally. E.G.:
4751 A local definition of malloc causes this problem.
4752 * configure: Regenerate.
4753 * profile/Makefile.in (W32API_INCLUDE): New variable.
4754 (ALL_CFLAGS): Use W32API_INCLUDE value.
4755 (ALL_CXXFLAGS): Ditto.
4756 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
4757 Thanks to Jeff Bonggren <jbon@users.sf.net>.
4758 * profile/configure.in (W32API_INCLUDE): Set default value.
4759 * profile/configure: Regenerate.
4760 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
4761 (ALL_CFLAGS): Use W32API-INCLUDE value.
4762 (ALL_CXXFLAGS): Ditto.
4763 * mingwex/configure.in (W32API_INCLUDE): Set default value.
4764 * mingwex/configure: Regenerate.
4766 2003-05-05 Earnie Boyd <earnie@users.sf.net>
4768 * Makefile.in (W32API_INCLUDE): New variable.
4769 (ALL_CFLAGS): Use W32API_INCLUDE value.
4770 (ALL_CXXFLAGS): Ditto.
4771 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
4772 (W32API_INCLUDE): Set default value.
4773 * configure: Regenerate.
4775 2003-04-11 Earnie Boyd <earnie@users.sf.net>
4777 * configure.in (LIBM_A): Define for cygwin target.
4778 * configure (LIBM_A): Ditto.
4780 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
4782 * include/time.h (strftime): Remove duplicate declaration.
4784 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4786 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
4788 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4790 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
4791 * mingwex/strtoimax.c (strtoimax): Likewise.
4792 * mingwex/wcstoimax.c (wcstoimax): Likewise.
4793 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
4794 * mingwex/fesentenv.c: Include float.h.
4795 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
4797 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
4799 * mingwex/math/tgammal.c: Likewise.
4801 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4803 * include/utime.h: New file, forwarding to sys/utime.h.
4805 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4807 * include/sys/param.h (MAXPATHLEN): Define.
4809 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4811 * include/tchar.h: Ansi-fy a comment.
4813 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4815 * profile/profile.h (mcount): Use __builtin_return_address
4816 rather than inline __asm statements.
4817 * profile/Makefile.in: Remove special rule for mcount.o
4818 Specify dependencies for mcount.o profil.o gmon.o.
4820 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4822 * include/stdlib.h (qsort): Remove const from first parm.
4823 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
4825 2003-03-03 Christopher Faylor <cgf@redhat.com>
4827 * mingwex/getopt.c: Refresh from NetBSD sources.
4829 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
4831 * mingwex/getopt.c: New file, copied from cygwin srcs.
4832 * include/getopt.h: New file, copied from cygwin srcs.
4833 * include/unistd.h: Include getopt.h.
4834 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
4835 (POSIX_OBJS): Add getopt.o.
4837 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
4839 * include/stdio.h (vscanf): Add prototype.
4845 * include/wchar.h (vwscanf): Add prototype.
4848 * mingwex/snprintf.c: Move to mingwex/stdio.
4849 * mingwex/vsnprintf.c: Ditto.
4850 * mingwex/snwprintf.c: Ditto.
4851 * mingwex/vsnwprintf.c: Ditto.
4852 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
4853 (STDIO_DISTFILES): Add.
4854 (DISTFILES): Adjust.
4855 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
4859 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
4861 * mingwex/stdio: New directory
4862 * mingwex/stdio/vfscanf.c: New file.
4863 * mingwex/stdio/vfwscanf.c: New file.
4864 * mingwex/stdio/vscanf.c: New file.
4865 * mingwex/stdio/vsscanf.c: New file.
4866 * mingwex/stdio/vswscanf.c: New file.
4867 * mingwex/stdio/vwscanf.c: New file.
4869 2003-02-25 Earnie Boyd <earnie@users.sf.net>
4871 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
4872 (libmsvcrt40.a): Ditto.
4874 2003-02-21 Earnie Boyd <earnie@users.sf.net>
4876 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
4878 * Makefile.in (libmsvcrtd.a): Add target library.
4879 (libmoldnamed.a): Ditto.
4880 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
4882 ($(srcdir)): Remove explicit reference for depencies of object targets.
4883 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
4884 msvcrt20.def, msvcrt40.def: Remove.
4885 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
4887 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
4889 * Makefile.in: Make sure libmingwex.a from current build tree is used.
4891 2003-02-14 Christopher Faylor <cgf@redhat.com>
4893 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
4894 ensure -mno-cygwin where appropriate. Filter out -O2.
4896 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
4898 * profile/Makefile.in (mcount.o): Use -O1 optimization
4901 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4903 * include/math.h: Remove _CRTIMP from pow() prototype,
4904 unless __NO_ISOCEXT.
4906 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4908 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
4910 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4912 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
4913 __declspec(dllimport) supported.
4914 (__cdecl): Define if not already defined.
4915 (__stdcall): Likewise.
4916 * include/dirent.h: Qualify fuctions with __cdecl.
4917 * include/fenv.h: Likewise.
4918 * include/inttypes.h: Likewise.
4919 * include/assert.h: Qualify fuctions with __cdecl. Qualify
4920 CRT dll imports with _CRTIMP.
4921 * include/conio.h: Likewise.
4922 * include/ctype.h: Likewise.
4923 * include/direct.h: Likewise.
4924 * include/dos.h: Likewise.
4925 * include/errno.h: Likewise.
4926 * include/float.h: Likewise.
4927 * include/io.h: Likewise.
4928 * include/locale.h: Likewise.
4929 * include/malloc.h: Likewise.
4930 * include/math.h: Likewise.
4931 * include/mbctype.h: Likewise.
4932 * include/mbstring.h: Likewise.
4933 * include/process.h: Likewise.
4934 * include/setjmp.h: Likewise.
4935 * include/signal.h: Likewise.
4936 * include/stdio.h: Likewise.
4937 * include/stdlib.h: Likewise.
4938 * include/string.h: Likewise.
4939 * include/time.h: Likewise.
4940 * include/wchar.h: Likewise.
4941 * include/wctype.h: Likewise.
4942 * include/sys/stat.h: Likewise.
4943 * include/sys/timeb.h: Likewise.
4944 * include/sys/utime.h: Likewise.
4946 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4947 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4949 * include/stdio.h (__VALIST): Guard against prior definition.
4951 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4953 * include/_mingw.h: Change version to 3.0
4954 * Makefile.in: Ditto.
4956 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4958 * include/stdlib.h: Make words after #endif a comment.
4960 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4962 * include/locale.h: Include stddef.h for definition of NULL.
4964 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4966 * include/math.h (tgamma): Correct typo in comment.
4968 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4970 * mingwex/mingw-fseek.c (INLINE): Remove define.
4971 (__mingw_is_win9x): Remove static inline function.
4972 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4974 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4976 * mingwex/math/llround.c: Correct function name and
4977 change return value to long long.
4979 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4981 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4982 (iswascii): Likewise. Correct mask.
4983 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4986 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4988 * include/stdlib.h (_osver, _winver, _winmajor,
4989 _winminor): Declare as direct imports from dll if
4990 __DECLSPEC_SUPPORTED.
4992 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4994 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4995 * pseudo-reloc-list.c: New file.
4996 * crt1.c (_pei386_runtime_relocator): Declare.
4997 (__mingw_CRTStartup): Call it.
4998 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4999 (DllMainCRTStartup): Call it.
5000 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
5003 2003-01-01 Egor Duda <deo@logos-m.ru>
5005 * pseudo-reloc.c: New file.
5007 2002-12-20 Earnie Boyd <earnie@users.sf.net>
5009 * include/_mingw.h: Increment version to 2.4.
5012 2002-12-12 Earnie Boyd <earnie@users.sf.net>
5014 * include/malloc.h (_alloca): Add definition.
5017 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
5019 * mingwex/math/s_erf.c: New file.
5020 * mingwex/math/sf_erf.c: New file.
5021 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
5022 (MATH_OBJS): Add new objects.
5023 * include/math.h (erf[f]): Add prototypes.
5024 (erfc[f]): Add prototypes.
5026 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
5028 * include/math.h: Add traditional/XOPEN math constants.
5030 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
5032 * mingwex/math/lgamma.c: New file.
5033 * mingwex/math/lgammaf.c: New file.
5034 * mingwex/math/lgammal.c: New file.
5035 * mingwex/math/tgamma.c: New file.
5036 * mingwex/math/tgammaf.c: New file.
5037 * mingwex/math/tgammal.c: New file.
5038 * mingwex/math/cephes_mconf (polevlf): Add float version.
5040 Define _CEPHES_USE_ERRNO.
5041 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
5042 (MATH_OBJS): Add new objects.
5043 * include/math.h (lgamma[fl]): Add prototypes.
5044 (tgamma[fl]): Add prototypes.
5046 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
5048 * mingwex/strtold.c: New file.
5049 * mingwex/wcstold.c: New file.
5050 * mingwex/ldtoa.c: New file.
5051 * mingwex/math/cephes_emath.h: New file.
5052 * mingwex/math/cephes_emath.c: New file.
5053 * mingwex/Makefile.in (DISTFILES): Add new files.
5054 (MATH_DISTFILES): Ditto.
5055 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
5056 (MATH_OBJS): Add cephes_emath.o.
5057 (LIB_OBJS): Add $(STDLIB_OBJS).
5058 * include/stdlib.h (strtold, wcstold): Add prototypes.
5059 * include/wchar.h (wcstold): Add prototype.
5061 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
5063 * include/math.h (sqrt): Remove inline definition.
5064 (sqrtf): Replace inline definition with prototype.
5066 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
5067 argument less than zero.
5068 * mingwex/math/sqrtf.c (sqrtl): Likewise.
5070 2002-10-30 Guido Serassio <serassio@libero.it>
5072 * include/stdio.h (_getmaxstdio): Add prototype.
5073 (_setmaxstdio): Likewise.
5075 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
5077 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
5079 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
5081 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
5083 Define WIN32_MEAN_AND_LEAN before including windows.h
5084 * include/stdlib.h (_fmode): Protect declaration as dllimported
5085 variable with __IN_MINGW_RUNTIME.
5087 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
5089 * crt1.c: Include stdlib.h.
5091 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
5093 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
5094 (MINGW_OBJS): Add txtmode.o.
5095 (SRCDIST_FILES): Add txtmode.c binmode.c.
5096 crt1.c: Don't include fcntrl.h, stdlib.h.
5097 (_fmode): Declare, without dllimport attribute.
5098 (__p__fmode): Declare access function for dll's _fmode.
5099 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
5101 * txtmode.c: New file.
5102 * binmode.c: New file.
5103 * samples/fmode/test2.c: New file.
5104 * samples/fmode/jamfile: Add test2.exe target.
5106 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
5108 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
5109 macros work with C89.
5110 (INTMAX_C, UINTMAX_C): Likewise.
5112 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
5114 * include/string.h (strcasecmp): Make extern __inline__.
5115 (strncasecmp): Likewise.
5116 (wcscmpi): Likewise.
5118 2002-10-08 Heiko Gerdau <hg@technosis.de>
5120 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
5121 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
5124 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
5126 * mingwex/math/powil.c: Rename powil to __powil.
5127 * mingwex/math/powl.c: Adjust declaration and call
5128 to __powil. Remove comment on powil.
5129 * mingwex/math/powi.c: New file.
5130 * mingwex/math/powif.c: New file.
5131 * mingwex/math/pow.c: New file.
5132 * mingwex/math/cephes_mconf.h. Add double and float
5133 versions of constants.
5134 (polevl): Add double precision function.
5136 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
5138 (MATH_OBJS): Add pow.o, powi.o, powif.o.
5140 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
5142 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
5143 (_imp____mbcur_max_dll): Likewise.
5145 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
5147 * include/fcntl.h (_fmode): Remove declarations and
5148 compatibility defines.
5149 (_setmode, setmode): Remove prototypes.
5150 * include/stdlib (_fmode): Add declarations and
5151 compatibility defines. Change type to int.
5152 * include/io.h (_setmode, setmode): Add prototypes.
5153 * samples/fmode/all.c: Adjust includes.
5154 * samples/fmode/test.c: Likewise.
5155 * crt1.c (_CRT_fmode): Declare as int.
5156 * CRTfmode.c (_CRT_fmode): Likewise.
5158 * include/stdlib: Remove comment about MB_CUR_MAX.
5160 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
5162 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
5163 (_imp____mbcur_max_dll): Likewise.
5165 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
5167 * mingwex/math/files.txt: Remove inadvertantly added file.
5169 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
5171 * include/string.h (_strerror): Move into #ifndef
5172 __STRICT_ANSI__ block.
5174 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
5176 * include/time.h (__need_NULL): Define before including
5177 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
5179 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
5181 * include/stdio.h: Correct comment about directory separator.
5183 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
5185 * include/sys/time.h (timeval): Add struct definition and
5186 associated macros (copied from w32api/include/winsock.h).
5188 2002-09-05 Earnie Boyd <earnie@users.sf.net>
5190 * include/_mingw.h: Increment version to 2.3.
5193 2002-09-05 Earnie Boyd <earnie@users.sf.net>
5195 * mingwex/fegetenv.c: Change to \n line endings.
5196 * mingwex/vsnprintf.c: Ditto.
5197 * mingwex/vsnwprintf.c: Ditto.
5199 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
5201 * mingwex/math/hypotl.c: Replace with version based on cephes
5204 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
5206 * include/sys/param.h: Add ENDIAN defines.
5207 * test_headers.c: Include sys/param.h.
5209 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
5211 * test_headers.c: Don't include varargs.h.
5212 * Makefile.in (test_headers): Don't use -std=xx
5215 2002-08-21 Earnie Boyd <earnie@users.sf.net>
5217 * include/sys/param.h: New File.
5219 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
5221 * include/math.h (asm): Change to __asm__ throughout.
5222 Expose ISO C99 functions if __GLIPCPP__.
5223 (hypotf): Use hypot, not _hypot in stub.
5225 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
5227 * include/tchar.h: Ansi-fy another comment.
5229 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
5231 * include/tchar.h: Ansi-fy comment.
5233 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
5235 * test_headers.c : New file.
5236 * Makefile.in (test_headers): New target, using it,
5237 (SRCDIST_FILES): Distribute it.
5239 2002-08-20 Earnie Boyd <earnie@users.sf.net>
5241 * include/_mingw.h: Increment version to 2.2.
5244 2002-08-14 Earnie Boyd <earnie@users.sf.net>
5246 * include/unistd.h: Add include of process.h.
5248 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
5250 * include/stdio.h (_fcloseall): Add prototype.
5252 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
5254 * include/tchar.h (_tfdopen): Correct typo.
5256 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
5258 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
5259 nextafter): Add non-underscored stubs.
5260 * moldname-msvcrt.def: Regenerate.
5261 * moldname-crtdll.def: Regenerate.
5262 * mingwex/math: New directory.
5263 * mingwex/rint.c: Move to mingwex/math.
5264 * mingwex/rintf.c: Ditto.
5265 * mingwex/rintl.c: Ditto.
5266 * mingwex/round.c: Ditto.
5267 * mingwex/roundf.c: Ditto.
5268 * mingwex/roundl.c: Ditto.
5269 * mingwex/rint.c: Ditto.
5270 * mingwex/rintf.c: Ditto.
5271 * mingwex/rintl.c: Ditto.
5272 * mingwex/trunc.c: Ditto.
5273 * mingwex/truncf.c: Ditto.
5274 * mingwex/truncl.c: Ditto.
5275 * mingwex/signbit.c: Ditto.
5276 * mingwex/signbitf.c: Ditto.
5277 * mingwex/signbitl.c: Ditto.
5278 * mingwex/copysignl.S: Ditto.
5279 * mingwex/fdim.c: Ditto.
5280 * mingwex/fdimf.c: Ditto.
5281 * mingwex/fdiml.c: Ditto.
5282 * mingwex/fmin.c: Ditto.
5283 * mingwex/fminf.c: Ditto.
5284 * mingwex/fminl.c: Ditto.
5285 * mingwex/fmax.c: Ditto.
5286 * mingwex/fmaxf.c: Ditto.
5287 * mingwex/fmaxl.c: Ditto.
5288 * mingwex/fma.c: Ditto.
5289 * mingwex/fmaf.c: Ditto.
5290 * mingwex/fmal.c: Ditto.
5291 * mingwex/fpclassify.c: Ditto.
5292 * mingwex/fpclassifyl.c: Ditto.
5293 * mingwex/fpclassifyl.c: Ditto.
5294 * mingwex/isnan.c: Ditto.
5295 * mingwex/isnanf.c: Ditto.
5296 * mingwex/isnanl.c: Ditto.
5297 * mingwex/fucom.c: Ditto.
5298 * mingwex/fp_consts.c: Ditto. Split out float and long double
5300 * mingwex/math_stubs.c: Remove.
5301 * mingwex/log2.c: Remove. Replaced by math/log2.S
5302 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
5303 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
5304 * mingwex/math/acosf.c : New file.
5305 * mingwex/math/acosl.c: New file.
5306 * mingwex/math/asinf.c: New file.
5307 * mingwex/math/asinl.c: New file.
5308 * mingwex/math/atan2f.c: New file.
5309 * mingwex/math/atan2l.c: New file.
5310 * mingwex/math/atanf.c: New file.
5311 * mingwex/math/atanl.c: New file.
5312 * mingwex/math/cbrt.c: New file.
5313 * mingwex/math/cbrtf.c: New file.
5314 * mingwex/math/cbrtl.c: New file.
5315 * mingwex/math/ceilf.S: New file.
5316 * mingwex/math/ceill.S: New file.
5317 * mingwex/math/cephes_ld.h: New file.
5318 * mingwex/math/copysign.S: New file.
5319 * mingwex/math/copysignf.S: New file.
5320 * mingwex/math/cosf.S: New file.
5321 * mingwex/math/coshf.c: New file.
5322 * mingwex/math/coshl.c: New file.
5323 * mingwex/math/cosl.S: New file.
5324 * mingwex/math/exp2.S: New file.
5325 * mingwex/math/exp2f.S: New file.
5326 * mingwex/math/exp2l.S: New file.
5327 * mingwex/math/expf.c: New file.
5328 * mingwex/math/expl.c: New file.
5329 * mingwex/math/fabs.c: New file.
5330 * mingwex/math/fabsf.c: New file.
5331 * mingwex/math/fabsl.c: New file.
5332 * mingwex/math/floorf.S: New file.
5333 * mingwex/math/floorl.S: New file.
5334 * mingwex/math/fmodf.c: New file.
5335 * mingwex/math/fmodl.c: New file.
5336 * mingwex/math/fp_consts.h: Ditto.
5337 * mingwex/math/fp_constsf.c: Ditto.
5338 * mingwex/math/fp_constsl.c: Ditto.
5339 * mingwex/math/frexpf.c: New file.
5340 * mingwex/math/frexpl.S: New file.
5341 * mingwex/math/hypotf.c: New file.
5342 * mingwex/math/hypotl.c: New file.
5343 * mingwex/math/ilogb.S: New file.
5344 * mingwex/math/ilogbf.S: New file.
5345 * mingwex/math/ilogbl.S: New file.
5346 * mingwex/math/ldexpf.c: New file.
5347 * mingwex/math/ldexpl.c: New file.
5348 * mingwex/math/llrint.c: New file.
5349 * mingwex/math/llrintf.c: New file.
5350 * mingwex/math/llrintl.c: New file.
5351 * mingwex/math/llround.c: New file.
5352 * mingwex/math/llroundf.c: New file.
5353 * mingwex/math/llroundl.c: New file.
5354 * mingwex/math/log10f.S: New file.
5355 * mingwex/math/log10l.S: New file.
5356 * mingwex/math/log1p.S: New file.
5357 * mingwex/math/log1pf.S: New file.
5358 * mingwex/math/log1pl.S: New file.
5359 * mingwex/math/log2.S: New file.
5360 * mingwex/math/log2f.S: New file.
5361 * mingwex/math/log2l.S: New file.
5362 * mingwex/math/logb.c: New file.
5363 * mingwex/math/logbf.c: New file.
5364 * mingwex/math/logbl.c: New file.
5365 * mingwex/math/logf.S: New file.
5366 * mingwex/math/logl.S: New file.
5367 * mingwex/math/lrint.c: New file.
5368 * mingwex/math/lrintf.c: New file.
5369 * mingwex/math/lrintl.c: New file.
5370 * mingwex/math/lround.c: New file.
5371 * mingwex/math/lroundf.c: New file.
5372 * mingwex/math/lroundl.c: New file.
5373 * mingwex/math/modff.c: New file.
5374 * mingwex/math/modfl.c: New file.
5375 * mingwex/math/nearbyint.S: New file.
5376 * mingwex/math/nearbyintf.S: New file.
5377 * mingwex/math/nearbyintl.S: New file.
5378 * mingwex/math/nextafterf.c: New file.
5379 * mingwex/math/powf.c: New file.
5380 * mingwex/math/powl.c: New file.
5381 * mingwex/math/powil.c: New file.
5382 * mingwex/math/remainder.S: New file.
5383 * mingwex/math/remainderf.S: New file.
5384 * mingwex/math/remainderl.S: New file.
5385 * mingwex/math/remquo.S: New file.
5386 * mingwex/math/remquof.S: New file.
5387 * mingwex/math/remquol.S: New file.
5388 * mingwex/math/scalbn.S: New file.
5389 * mingwex/math/scalbnf.S: New file.
5390 * mingwex/math/scalbnl.S: New file.
5391 * mingwex/math/sinf.S: New file.
5392 * mingwex/math/sinhf.c: New file.
5393 * mingwex/math/sinhl.c: New file.
5394 * mingwex/math/sinl.S: New file.
5395 * mingwex/math/sqrt.c: New file.
5396 * mingwex/math/sqrtf.c: New file.
5397 * mingwex/math/sqrtl.c: New file.
5398 * mingwex/math/tanf.S: New file.
5399 * mingwex/math/tanhf.c: New file.
5400 * mingwex/math/tanhl.c: New file.
5401 * mingwex/math/tanl.S: New file.
5402 * mingwex/Makefile.in: Adjust VPATH for source files in
5405 Add MATH_DISTFILES and use it to build source distro.
5406 * include/math.h: Add protypes for new functions and
5407 reorganise to reflect ANSI,C99 status.
5409 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
5411 * include/tchar.h (_getts): Define as _getws for _UNICODE.
5412 (_putts): Define as _putws for _UNICODE.
5413 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
5415 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
5417 * include/float.h: #include_next<float.h> before header guard.
5419 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
5421 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
5423 * include/excpt.h (): Include windef.h not windows.h.
5424 * include/fcntl.h (_O_SHORT_LIVED): Add define.
5425 (_chmod): Add prototype.
5426 (_creat): Correct prototype.
5427 (SH_DENY*): Rename defines to _SH_DENY*.
5428 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
5429 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
5430 _IOAPPEND): Add defines.
5431 (_wfindfirst): Correct prototype.
5432 (_wfdopen): Add prototype.
5433 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
5435 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
5437 (_wcsdup): Correct prototype.
5438 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
5439 _mbsncat being in string.h.
5440 * include/wchar.h (_wfindfirst): Correct prototype.
5441 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
5443 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5445 * include/_mingw.h: Increment to version 2.1.
5446 * Makefile.in: Ditto.
5448 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5450 * Makefile.in (conf_prefix): New variable.
5451 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
5452 (bindist): Use dist_prefix.
5454 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
5456 * include/_mingw.h: Increment version to 2.0.
5457 * Makefile.in: Ditto.
5459 Merge in mingwex branch.
5461 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
5463 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
5464 * mingwex/fdim.c: New file.
5465 * mingwex/fdimf.c: New file.
5466 * mingwex/fdiml.c: New file.
5467 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
5469 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
5471 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
5473 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
5475 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
5477 * mingwex/isnanl.c: New file.
5479 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5481 * include/stdint.h: Include <stddef.h> to get wchar_t and wint_t.
5482 (WINT_MAX): Define to ((wint_t)-1).
5484 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5486 * include/wctype.h: Replace 'inline' with '__inline__'.
5487 * include/inttypes.h: Likewise.
5489 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5491 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
5492 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
5494 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5496 * mingwex/snprintf.c: Split out vsnprintf to....
5497 * mingwex/vsnprintf.c: New file.
5498 * mingwex/snwprintf.c: Split out vsnwprintf to...
5499 * mingwex/vsnwprintf.c: New file.
5500 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
5502 2002-05-15 Pascal Obry <obry@gnat.com>
5504 * include/dirent.h (DIR): Change dd_stat type to int.
5507 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
5509 * include/stdio.h (vsnprintf): Change inline to __inline__;
5510 (vsnwprintf): Likewise.
5511 * include/wchar.h (vsnwprintf): Likewise.
5514 (mbsinit): Likewise.
5516 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
5518 Change FP default precison from 53 to 64-bit mantissa.
5520 * Makefile.in (CRT0S): Add CRT_fp8.o.
5521 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
5522 * include/float.h: Replace standard float.h defines with
5523 #include_next<float.h> to use GCC's defines. Adjust comments
5526 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5528 * include/dos.h: Change prefix "__imp_" to "_imp__" for
5529 __GNUC__ without __DECLSPEC_SUPPORTED.
5530 * include/fnctl.h: Likewise.
5531 * include/math.h: Likewise.
5532 * include/stdio.h: Likewise.
5533 * include/stdlib.h: Likewise.
5534 * include/time.h: Likewise.
5535 * include/wctype.h: Likewise.
5536 * include/ctype.h: Likewise.
5538 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5540 Add atexit support for dlls.
5541 * crt1.c (atexit): Force thunk to _imp__atexit.
5542 (_onexit): Force thunk to _imp___onexit.
5543 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
5544 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
5545 (__dll_exit): New function to run atexit-registered functions
5546 and flush output buffers on DLL_PROCESS_DETACH or failed
5548 (atexit): Force use of private atexit table via _dllonexit,
5549 (_onexit): New function. Force use of private atexit table via
5551 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
5552 _imp_<_symbol> is visible in import lib.
5553 * msvcrt20.def: Likewise.
5554 * msvcrt40.def: Likewise.
5555 * crtdll.def: Likewise.
5557 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5559 * include/fenv.h: Change header guard macro to _FENV_H_.
5560 (fenv_t, fexcept_t): Move into block protected by
5562 Cleanup some whitespace.
5563 * include/inttypes.h: Change header guard macro to
5566 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5568 * include/math.h (copysignl): Declare.
5569 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
5570 (MATHOBJS):Add copysignl.o.
5572 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5574 * include/math.h (__signbitl, __isnanl): Declare.
5576 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5578 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
5579 roundl, truncl, fmal, log2l): Declare.
5580 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
5581 || !defined __STRICT_ANSI__.
5582 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
5583 * mingwex/fmin.c (fmin): Likewise.
5584 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
5585 * mingwex/fminf.c (fminf): Likewise.
5586 * mingwex/fmaxl.c: New file.
5587 * mingwex/fminl.c: New file.
5588 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
5589 * mingwex/fpclassifyf.c: New file.
5590 * mingwex/fpclassifyl.c: New file.
5591 * mingwex/rint.c (rintf): Split out to...
5592 * mingwex/rintf.c: New file.
5593 * mingwex/rintl.c: New file.
5594 * mingwex/round.c (roundf): Split out to...
5595 * mingwex/roundf.c: New file.
5596 * mingwex/roundl.c: New file.
5597 * mingwex/trunc.c (truncf): Split out to...
5598 * mingwex/truncf.c: New file.
5599 * mingwex/truncl.c: New file.
5600 * mingwex/signbit.c (signbitf): Split out to...
5601 * mingwex/signbitf.c: New file.
5602 * mingwex/signbitl.c: New file.
5603 * mingwex/fmal.c: New file.
5604 * mingwex/copysignl.S: New file.
5605 * mingwex/log2l.c: New file.
5606 * mingwex/fp_consts.c: Add nanl definition.
5607 Comment out unused constants.
5608 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
5609 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
5610 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
5612 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
5613 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
5614 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
5616 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
5618 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
5620 Make wide char versions of opendir and friends.
5622 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
5624 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
5625 _wseekdir): Add prototypes for wide versions of corresponding
5627 * include/tchar.h; Add _UNICODE mappings for dirent.h
5628 structures and functions.
5629 * mingwex/dirent.c: Make _UNICODE neutral.
5630 * mingwex/wdirent.c: New file to define _UNICODE before
5632 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
5633 (POSIX_OBJS): Add wdirent.o.
5634 (wdirent.o): Specify dependency on dirent.c as well as
5636 * samples/dirent/wtest.c: New file, wide version of test.c.
5638 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5640 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
5641 ensure gcc include dir is searched despite -nostdinc.
5642 * profile/Makefile.in (INCLUDES): Likewise.
5643 * mingwex/Makefile.in (INCLUDES): Likewise.
5644 * include/stdarg.h: Replace with stub that just guards the
5645 real gcc system header with #ifndef RC_INVOKED
5646 * include/varargs.h: Likewise.
5647 * include/stddef.h: Likewise.
5648 * include/stdio.h: Include stdarg.h after defining
5650 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
5651 Replace va_list with __VALIST throughout.
5653 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5655 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
5656 * msvcrt.def (_fpreset): Mark as DATA so that only
5657 _imp___fpreset is exported.
5658 * msvcrt20.def (_fpreset): Likewise.
5659 * msvcrt40.def (_fpreset): Likewise.
5660 * crtdll.def (_fpreset): Likewise.
5661 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
5663 (fpreset): Add alias.
5664 (__CRT_PC): Delete definition. _fpreset does it now.
5665 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
5666 (fpreset): Add alias.
5667 (__CRT_PC): Delete definition.
5668 * moldname.def.in: Comment out fpreset.
5669 * moldname-msvcrt.def: Regenerate.
5670 * moldname-crtdll.def: Regenerate.
5671 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
5672 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
5673 with the _fpreset determined by startup CRT_fp object.
5675 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
5677 * CRT_fp8.c: New file.
5678 * CRT_fp10.c: New file.
5679 * crt1.c (__CRT_PC) Declare.
5680 (__CRT_fesetenv): New static function, using _CRT_PC.
5681 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
5682 (_gnu_exception_handler): Likewise.
5683 * Makefile.in (CRT0S): Add CRT_fp10.o.
5684 (MINGW_OBJS): Add CRT_fp8.o.
5685 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
5686 Add CRT_fp8.o, CRT_fp10.o dependancies.
5687 * include/float.h (_fpreset): Expand comment.
5688 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
5689 (extended precison) environmemt.
5690 (FE_PC53_ENV): New define for MSVCRT default environmemt.
5691 (FE_DFL_ENV): Define as FE_PC53_ENV.
5692 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
5693 precision control for default environment.
5695 * include/math.h: Fix long comment line.
5696 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
5698 * profile/configure: Regenerate.
5700 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
5702 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
5704 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
5706 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
5707 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
5708 (__mingw_fseek): New function to work around Win9x f/lseek bug.
5709 (__mingw_fwrite): Likewise.
5710 (__mingw_is_win9x): New helper function.
5712 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
5713 (__mingw_fseek): New prototype and define to replace fseek.
5714 (__mingw_fwrite): New prototype and define to replace fwrite.
5715 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
5716 * moldname-crtdll.def: Remove CR from end of line.
5717 * moldname-msvcrt.def: Ditto.
5719 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
5721 * profile/configure.in (CRT0S): Configure name of gcrt?.o
5722 based on target, building gcrt0.o for cygwin -mno-cygwin.
5723 * profile/configure: Regenerate.
5724 * profile/Makefile.in (CRT0S): Use name from configure.
5725 (gcrt0.o): New rule.
5726 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
5728 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5730 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
5731 _fpecode): Remove prototypes copied from float.h.
5732 (nan, nanf): Move into block protected against RC_INVOKED
5734 * include/stdlib.h (_Exit): Change from static inline to
5736 * mingwex/_Exit.c : New file.
5737 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
5739 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5741 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
5742 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
5743 (configdirs): Likewise.
5744 (LIBGMON_A): Define for cygwin target as well.
5745 * configure: Regenerate.
5746 * profile/configure.in (THREAD_DLL): Remove define.
5747 (LIBM_A): Remove define.
5748 (LIBGMON_A): Define for cygwin target as well.
5749 * profile/configure: Regenerate.
5750 * profile/makefile.in (install): Install to inst_libdir and
5752 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
5753 (OPTFLAGS): New define.
5754 (ALL_CFLAGS): Add $(OPTFLAGS).
5755 (ALL_CXXFLAGS): Same.
5756 (.c.o:): Remove ALL_CXXFLAGS.
5758 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
5760 * include/stdint.h: Add missing newline at eof.
5761 * include/stdio.h (snprintf): Add prototype.
5762 (vsnprintf): Add prototype and inline definition.
5763 (snwprintf): Add prototype.
5764 (vsnwprintf): Add prototype and inline definition.
5765 * include/wchar.h (snwprintf): Add prototype.
5766 (vsnwprintf): Add prototype and inline definition.
5767 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
5769 * mingwex/snprintf.c: New file.
5770 * mingwex/snwprintf.c: New file.
5772 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
5774 * configure.in: Add mingwex as SUBDIRS and configdirs.
5775 * configure: Regenerate.
5776 * Makefile.in (MINGW_OBJS): Remove dirent.o.
5777 (SRC_DIST_FILES): Remove dirent.c.
5779 * include/stdlib.h (_Exit): Add static inline
5781 (struct lldiv_t): Define.
5782 (lldiv): Add prototype.
5783 (llabs): Add extern inline function.
5784 (strtoll,strtoull): Add prototypes.
5785 (wcstol, wcstoul, wcstod): Group together.
5786 (strtof, wcstof): Add extern inline definitions.
5787 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
5788 and extern inline definitions.
5789 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
5790 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
5792 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
5793 (wcstof): Add extern inline definition.
5794 * include/math.h (nan, nanf): Add prototypes.
5795 (NAN, INFINITE): Define constants.
5796 (fpclassify, isnan ,signbit): Add macros and supporting float
5797 and double functions.
5798 (isfinite, isinf, isnormal): Add macros.
5799 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
5801 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
5802 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
5803 (copysign, logb, nextafter, scalb): Add prototypes and
5804 inline stubs for underscored versions in msvcrt.dll.
5805 * include/inttypes.h: New file.
5806 * include/fenv.h: New file
5808 Add new mingwex subdir and files.
5809 * mingwex: New directory.
5810 * mingwex/Makefile.in: New file.
5811 * mingwex/configure.in: New file.
5812 * mingwex/configure: Generate.
5813 * mingwex/dirent.c: Moved here from parent dir.
5814 * mingwex/atoll.c: New file.
5815 * mingwex/feclearexcept.c: New file.
5816 * mingwex/fegetenv.c: New file.
5817 * mingwex/fegetexceptflag.c: New file.
5818 * mingwex/fegetround.c: New file.
5819 * mingwex/feholdexcept.c: New file.
5820 * mingwex/feraiseexcept.c: New file.
5821 * mingwex/fesetenv.c: New file.
5822 * mingwex/fesetexceptflag.c: New file.
5823 * mingwex/fesetround.o: New file.
5824 * mingwex/fetestexcept.c: New file.
5825 * mingwex/feupdateenv.c: New file.
5826 * mingwex/fma.S: New file.
5827 * mingwex/fmaf.S: New file.
5828 * mingwex/fmax.c: New file.
5829 * mingwex/fmaxf.c: New file.
5830 * mingwex/fmin.c: New file.
5831 * mingwex/fminf.c: New file.
5832 * mingwex/fp_consts.c: New file.
5833 * mingwex/fpclassify.c: New file.
5834 * mingwex/fucom.c: New file.
5835 * mingwex/fwide.c: New file.
5836 * mingwex/imaxabs.c: New file.
5837 * mingwex/imaxdiv.c: New file.
5838 * mingwex/isnan.c: New file.
5839 * mingwex/isnanf.c: New file.
5840 * mingwex/lltoa.c: New file.
5841 * mingwex/lltow.c: New file.
5842 * mingwex/log2.c: New file.
5843 * mingwex/log2f.c: New file.
5844 * mingwex/math_stubs.c: New file.
5845 * mingwex/mbsinit.c: New file.
5846 * mingwex/rint.c: New file.
5847 * mingwex/round.c: New file.
5848 * mingwex/signbit.c: New file.
5849 * mingwex/sitest.c: New file.
5850 * mingwex/strtof.c: New file.
5851 * mingwex/strtoimax.c: New file.
5852 * mingwex/strtoumax.c: New file.
5853 * mingwex/testwmem.c: New file.
5854 * mingwex/trunc.c: New file.
5855 * mingwex/ulltoa.c: New file.
5856 * mingwex/ulltow.c: New file.
5857 * mingwex/wcstof.c: New file.
5858 * mingwex/wcstoimax.c: New file.
5859 * mingwex/wcstoumax.c: New file.
5860 * mingwex/wmemchr.c: New file.
5861 * mingwex/wmemcmp.c: New file.
5862 * mingwex/wmemcpy.c: New file.
5863 * mingwex/wmemmove.c: New file.
5864 * mingwex/wmemset.c: New file.
5865 * mingwex/wtoll.c: New file.
5867 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5869 * include/mbstring.h: New file.
5870 * include/mbctype.h: New file.
5872 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5874 * include/tchar.h (__TEXT): Make same as define in
5875 w32api/include/winnt.h.
5877 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5879 * include/tchar.h (_tputenv): Add UNICODE mappings.
5880 (_tsearchenv): Likewise.
5881 (_tmakepath): Likewise.
5882 (_tsplitpath): Likewise.
5883 (_tfullpath): Likewise.
5885 2002-04-18 Pascal Obry <obry@gnat.com>
5887 * dirent.c (opendir): Convert given pathname to
5890 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5892 * include/_mingw.h: Increment version.
5893 * Makefile.in: Ditto.
5895 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5897 * moldname-crtdll.def: Remove CR from end of line.
5898 * moldname-msvcrt.def: Ditto.
5899 * Makefile.in: Use bzip2 compression for Cygwin target.
5901 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
5903 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
5904 TLOSS, PLOSS): Move oldname defines back, following
5905 the underscored names.
5907 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
5909 * include/stdio.h (_snwprintf): Correct spelling.
5910 (_vsnwprintf): Likewise.
5911 * include/wchar.h (_snwprintf): Correct spelling.
5912 (_vsnwprintf): Likewise.
5914 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
5916 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
5917 (wpopen): Add if !(__CRTDLL__).
5918 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
5920 (moldname-crtdll.def rule): Likewise.
5921 * moldname-msvcrt.def: Regenerate.
5922 * moldname-crtdll.def: Regenerate.
5923 * include/stdio.h (wpopen):Use prototype, not a define.
5924 (_swnprintf): Add prototype.
5925 (_vswnprintf): Likewise.
5927 * include/wchar.h (_swnprintf): Add prototype.
5928 (_vswnprintf): Likewise.
5931 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5933 * include/malloc.h (_heapinfo): Correct structure definition.
5934 (_USEDENTRY,_FREEENTRY): Add defines.
5935 Add comment on platform support for _heap* functions.
5936 (_get_sbh_threshold): Add prototype.
5937 (_set_sbh_threshold): Likewise.
5938 (_expand): Likewise.
5940 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5942 * profile/profil.c: Update copyright info.
5943 * profile/profil.h: Likewise.
5944 * profile/gcrt0.c: Likewise.
5946 2002-01-25 Pascal Obry <obry@gnat.com>
5948 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5950 * profile/gmon.c: Define bzero as memset if mingw32.
5951 (monstartup): Use it.
5953 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5955 * include/tchar.h (_TCHAR): Add missing ;.
5957 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5959 * include/tchar.h (_TCHAR): Add typedefs.
5961 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5963 * include/stdlib.h (_onexit_t): Add typedef.
5964 (_onexit): Add prototype.
5966 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5968 * msvcrt.def: Revert accidental change.
5969 * include/stdlib.h: Ditto.
5971 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5973 * Makefile.in: Increment VERSION.
5974 * include/_mingw.h: Ditto.
5976 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5978 * include/strings.h: New File.
5980 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5982 * include/math.h (_FPCLASS* ): Add defines from float.h.
5983 (IEEE recommended functions): Add declarations from float.h.
5984 * include/float.h (_FPCLASS* ): Protect against redefinition.
5986 2001-11-29 Wu Yongwei <adah@netstd.com>
5988 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5989 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5990 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5991 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5992 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5993 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5994 Correct spelling of "disclaimed" in comments.
5995 * include/excpt.h: Another spelling correction.
5997 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5999 * include/errno.h: Fix "errno is not a prototype" warning.
6001 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
6003 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
6004 differences between ANSI and non-ANSI versions.
6005 (_ctype[],_pctype): Declare vars.
6006 (__ISCTYPE): New helper macro using _pctype.
6007 (is* ctype functions): Use __ISCTYPE to define inline versions.
6008 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
6010 (isw* ctype functions): Inline definitions.
6011 * include/wctype.h (_ctype[],_pctype): Declare vars.
6012 (isw* ctype functions): Inline definitions.
6015 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
6017 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
6018 __fpecode): Use __STDC__ prototypes.
6021 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
6023 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
6024 * mthr_init.c (DllMain) Run dtors if a process terminates.
6025 * mthr.c (__mingwthr_add_key_dtor) Removed.
6026 (___mingwthr_add_key_dtor) New.
6027 (___mingwthr_remove_key_dtor) New.
6028 (__mingwthr_run_key_dtors) Complete rewrite.
6029 (__mingwthr_remove_key_dtor) New.
6031 2001-11-05 Egor Duda <deo@logos-m.ru>
6033 * Makefile.in: Delete unused executable after creating base-files.
6035 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
6037 * include/errno.h (_errno): Use __STDC__ prototype.
6038 Thanks to: Jim Barton.
6040 2001-11-04 "stefan" <stefan@lkcc.org>
6042 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
6044 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
6046 * include/io.h (_commit): Add declaration.
6047 Thanks to: "stefan" <stefan@lkcc.org>
6049 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
6051 * include/sys/stat.h: Make S_IS* macros safer.
6053 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
6055 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
6057 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
6059 * include/stdlib.h (__p__environ, __p__wenviron): Use
6060 __STDC__ prototypes.
6062 2001-09-19 Earnie Boyd <earnie@SF.net>
6064 * Makefile.in: Remove the /usr from the install target.
6065 (VERSION): Increment.
6066 include/_mingw.h: Ditto.
6068 2001-09-17 Earnie Boyd <earnie@SF.net>
6070 * Makefile.in: Increment version.
6071 * include/_mingw.h: Ditto.
6073 2001-09-10 Earnie Boyd <earnie@SF.net>
6075 * dossh: Remove inadvertantly imported file.
6077 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
6079 * dirent.c (opendir): Use GetFileAttributes rather than stat
6080 to determine if input arg is dir.
6082 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
6084 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
6086 * include/varargs.h (va_list): Ditto.
6087 * include/stdio.h (va_list): Ditto.
6089 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
6091 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
6092 * include/stdio.h (_IORW): Change constant to 0x0080.
6093 (TMP_MAX): Add new define.
6095 (_wP_tmpdir): Ditto.
6096 (L_tmpnam): Change constant to 16.
6098 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
6100 * include/malloc.h: Fix non-ANSI comment after #endif.
6102 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6104 * profile/configure.in: Make msvcrt.dll version default.
6105 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
6106 * provile/configure: Regenerate.
6108 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
6110 * include/stdio.h (swscanf): Make first arugument const.
6111 * include/wchar.h (swscanf): Ditto.
6112 * include/tchar.h (_tfopen): New _UNICODE define.
6114 (_tsetlocale): Ditto.
6116 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
6118 * profile/Makefile.in (mkinstalldirs): Correct relative path.
6120 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
6122 * include/_mingw.h: Change version to 1.0.
6125 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
6127 * include/tchar.h: (__TEXT): Remove undef.
6131 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
6133 * include/tchar.h: (__TEXT): Add private macro.
6134 (_TEXT): Modify definition to use __TEXT.
6136 This change allows the passing of a MACRO as an argument and have that
6137 MACRO resolved first.
6138 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
6140 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
6142 * Makefile.in: Increment version to 0.5
6143 * include/_mingw.h: Increment minor version
6145 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
6147 * include/assert.h: (assert): Remove ; from end of definition
6148 Thanks to: AJ Reins <tbisp@qwest.net>
6150 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
6152 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
6153 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
6155 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
6157 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
6159 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
6161 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
6162 are actually C functions. These functions are resolved via the
6163 -lmsvcp60 library and comments were placed in the header.
6165 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6167 * include/stdlib.h (__p__pgmptr): add prototype.
6168 (__p__wpgmptr): likewise.
6169 (_pgmptr_dll): move declaration from dos.h.
6170 (_wpgmptr_dll): likewise.
6171 (_pgmptr): conditional define (MSVCT/CRTDLL).
6172 (_wpgmptr): likewise.
6173 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
6174 (_os*_dll variables): likewise.
6175 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
6176 (_wpgmptr_dll): likewise.
6178 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6180 * include/stdint.h: New file.
6182 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
6184 * include/wchar.h: Protect prototypes only declared in the C++ STL
6185 from being declared unless __cplusplus is defined.
6187 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
6189 * include/stdlib.h: Apply Danny Smith patch 102730
6190 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6191 (_wgetenv) Correction to return type.
6193 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
6195 * include/locale.h: Apply Danny Smith patch 101834
6196 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6197 (LC_MIN) Add definition.
6199 (_wsetlocale) Add prototype.
6201 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
6203 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
6204 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
6205 Create a libcoldname.a for the oldname library for CRTDLL.
6206 Restrict libmoldname.a for the oldname library for MSVCRT.
6207 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
6208 Restructure the $target_os case logic.
6209 Always name the MinGW thread dll helper mingwm.
6210 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
6211 * configure: regenerate.
6213 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
6215 * Makefile.in: Fix bindist target to distribute the correct files.
6216 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
6217 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
6219 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
6221 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
6222 Add variables and targets to control binary and source distributions.
6223 Add variables and targets to control snapshot distribution.
6224 * profile/gmon.h: Add missing #endif for #ifndef.
6225 * profile/ChangeLog: Merge entries here and remove.
6226 * profile/Makefile.in: Add variables and targets to control
6230 * config.guess: ditto.
6231 * config.sub: ditto.
6232 * mkinstalldirs: ditto.
6233 * install-sh: ditto.
6234 * configure: regenerate.
6235 * profile/configure: ditto.
6237 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
6239 * Merge in changes from
6240 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6241 * include/direct.h: add guard around MSVCRT-only prototytpes
6242 * include/io.h: add __int64 struct definitions and function prototypes;
6243 add guard for MSVCRT-only prototypes
6244 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
6245 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
6246 put wchar functions together to make sync with wchar.h easier
6247 * include/stdlib.h: add wide char functions (__MSVCRT__)
6248 * include/string.h: add string collation functions ( __MSVCRT__)
6249 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
6250 * include/tchar.h: add macros and macro function definitions
6251 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
6252 enclose more functions in __MSVCRT__ guard;
6253 some oldname wide char function prototypes #if (0)'d
6254 * profile/gmon.h: add guard around BSD-ish typedefs
6256 2000-11-20 Christopher Faylor <cgf@cygnus.com>
6258 * Makefile.in: Use a different variable name for subdirectory since the
6259 previous one was used by the top level make.
6261 2000-11-19 Christopher Faylor <cgf@cygnus.com>
6263 * Makefile.in: Install mingw stuff in a subdirectory if building under
6266 2000-06-17 Christopher Faylor <cgf@cygnus.com>
6268 * Makefile.in (subdirs): Eliminate for loop.
6270 2000-06-17 Christopher Faylor <cgf@cygnus.com>
6272 * Makefile.in (subdirs): Previous change did not fix problem in
6275 2000-06-17 Christopher Faylor <cgf@cygnus.com>
6277 * Makefile.in: Avoid installing dll if we're cross building and the
6278 cross-host system isn't a Windows system.
6279 * configure.in: Detect cross-hosting situation and set appropriate
6280 variables in Makefile.in.
6281 * configure: Regenerate.
6283 2000-04-19 Christopher Faylor <cgf@cygnus.com>
6285 * configure.in: Change HEADER_SUBDIR to mingw32.
6286 * configure: Regenerate.
6288 2000-04-10 Christopher Faylor <cgf@cygnus.com>
6290 * include/string.h: Use proper prototype for _strerror.
6292 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
6294 * Makefile.in (subdirs): Workaround for broken shells.
6296 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
6298 * Snapshot 2000-02-03.
6300 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
6301 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
6302 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
6303 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
6306 * Makefile.in (all): Build CRT0S first.
6307 (libmingwthrd.a): Remove thread support DLL from dependency.
6309 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
6311 * Snapshot 2000-01-21.
6313 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
6315 Merge in changes from Cygwin:
6316 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
6317 (SUBDIRS): Likewise.
6318 * Makefile.in (HEADER_SUBDIRS): New variable.
6319 (install): Use to install Mingw headers to a subdirectory if building
6321 (DLL_CC_STUFF): Add DLL entry point.
6322 * configure: Regenerate.
6324 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
6326 * include/stdio.h (fsetpos): Fix prototype.
6327 (fpos_t): Fix for MSVCRT.
6328 * include/float.h (fpreset): Add prototype.
6329 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
6331 * include/time.h: Don't define tzname as a macro for CRTDLL, and
6332 export using libmoldname.a.
6333 * crtdll.def: Add DATA tags.
6334 * msvcrt.def: Likewise.
6335 * moldname.def.in: Likewise. Add fpreset. Export tzname for
6336 both MSVCRT and CRTDLL.
6337 * moldname-crtdll.def: Regenerate.
6338 * moldname-msvcrt.def: Regenerate.
6340 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
6342 * Snapshot 1999-12-21.
6344 * include/wctype.h: New file.
6345 * include/ctype.h (MB_CUR_MAX): Define.
6347 * include/stdlib.h (MB_CUR_MAX): Define.
6348 * include/wchar.h: Define stat, _stat structures here as well.
6349 * include/float.h: Add invalid subconditions (_SW) and floating
6350 point error (_FPE) macros.
6351 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
6352 (_TIME_T): Rename macro to _TIME_T_DEFINED.
6353 * include/sys/types.h: Likewise.
6355 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
6357 * profile/profil.c (profile_on): Set the profiler thread priority to
6358 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
6359 * Snapshot 1999-11-18.
6361 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
6363 Released 1999-11-07.
6365 * Makefile.in (CRT0S): Add crtst.o.
6366 (install): Install in subdirs as well.
6367 * dirent.h (struct _stat): Rename from struct stat.
6368 * include/tchar.h: Add some new macros. Thanks to
6369 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
6370 * profile/Makefile.in (install): Fix target.
6372 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6374 * Makefile.in: Add support for profile directory.
6375 * configure.in: Likewise.
6376 * configure: Regenerate.
6378 * profile: Imported profiling sources from winsup-19991026 snapshot.
6379 * profile/Makefile.in: New file.
6380 * profile/configure.in: New file.
6381 * profile/configure: Generate.
6382 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
6383 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
6384 * profile/gmon.c (unistd.h): Include conditionally.
6385 (sys/param.h): Likewise.
6386 * profile/mcount.c (sys/param.h): Likewise.
6387 * profile/profil.c (profile_on): thread id is DWORD, not int.
6390 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
6392 * include/stdlib.h: Add wide character version of argv/environ.
6394 * include/wchar.h: More wide character prototypes.
6395 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
6397 * dllcrt1.c (init.c): Don't include.
6398 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
6399 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
6401 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
6403 * moldname.def: Remove file.
6404 * moldname.def.in: And add this.
6405 * moldname-msvcrt.def: Generate from moldname.def.in.
6406 * moldname-crtdll.def: Likewise.
6408 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
6409 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
6410 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
6412 * Makefile.in: Update.
6413 * configure.in: Likewise. Also add *cygwin* target for building
6414 under Cygwin winsup.
6415 * configure: Regenerate.
6417 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
6419 * include/_mingw.h: Add version macros.
6420 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
6421 Also add wide character versions shared with wchar.h.
6422 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
6423 * include/io.h (sopen, _sopen): Fix prototype.
6424 Add wide character prototypes.
6425 * include/wchar.h: Likewise.
6426 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
6427 underscored versions. Potential incompatibility.
6428 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
6429 Add wide character prototypes.
6430 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
6433 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
6435 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
6436 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
6438 * configure: Rengerate.
6439 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
6440 dll name and crt's. CRTDLL and MSVCRT are meant to created
6441 separately, so remove all the *-msvcrt* targets.
6442 (libmingwthr.a): New target. Dummy thread support archive.
6443 (LIBS): Add libmingwthr.a.
6444 (CRT0S): Use CRT_ID. Add crtmt.o.
6445 (MINGW_OBJS): Add crtst.o.
6446 * main.c (WinMain): Fix prototype.
6447 * crtmt.c: New file.
6448 * crtst.c: New file.
6450 * include/process.h (_beginthreadex): Fix prototype.
6451 * include/_mingw.h (__int64): Define for __GNUC__.
6452 * include/tchar.h (_ttol): Add macro.
6453 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
6454 _i64tow, _ui64tow, _wtoi64): Add prototypes.
6456 Reported by Emanuele Aliberti <ea@iol.it>:
6457 * include/tchar.h (_ttoi): Add macro.
6459 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
6460 * include/stdio.h (_snprintf): Add prototype.
6461 (_vsnprintf): Likewise.
6463 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
6465 Reported by Tor Lillqvist <tml@iki.fi>:
6466 * include/stdlib.h (__p___argv): Fix return type.
6468 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6471 * include/errno.h (errno): It's linked in from startup, not imported.
6472 * include/stdlib.h (errno): Likewise.
6473 * include/io.h: Guard against conflicting macros and prototypes in
6475 * include/stdlib.h: Likewise.
6476 * include/string.h: Likewise.
6477 * include/time.h: Likewise.
6479 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6481 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
6482 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
6483 * Makefile.in (INCLUDES): Remove old windows32 include directory.
6485 * crt1.c (_gnu_exception_handler): Fix prototype.
6486 (__mingw_CRTStartup): New function based on mainCRTStartup.
6487 (mainCRTStartup): Set the app type for MSVCRT and call
6489 (WinMainCRTStartup): Likewise.
6490 * init.c (_startupinfo): Define.
6491 (_getmainargs): Add 5th parameter.
6492 (_mingw32_init_mainargs): Use.
6494 * ALL *.c files: Reformat according to GNU coding style.
6496 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
6498 * Makefile.in (INCLUDES): Add w32api include directory.
6500 * include/_mingw.h: New file.
6501 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
6502 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
6503 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
6504 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
6505 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
6506 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
6508 * include/stdlib.h (atexit): Fix prototype.
6510 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
6512 * include/stdio.h (_tempnam): Fix prototype.
6513 (tempnam): Likewise.
6514 * include/stdlib.h: Replace with GCC's version, and guard
6517 From Anders Norlander <anorland@hem2.passagen.se>:
6518 * include/stdlib.h (__argc): Declare.
6521 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
6523 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
6525 * Makefile.in (_libm_dummy.o): New target.
6528 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
6530 * Released 1999-03-16 along with egcs-1.1.2.
6532 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
6534 * Makefile.in (LIBS): Add libm.a.
6535 (libm.a): Dummy libm.a.
6537 * Makefile.in: Update from winsup 1999-02-08 snapshot.
6538 Preserve local changes.
6539 (mkinstalldirs): In ../, not ../../.
6540 (INCLUDES): Point to local windows32api headers and use -nostdinc.
6542 (LIBS): Add libmoldname-msvc.a.
6543 (libmoldname-msvc.a): Add target.
6544 (distclean): Add target.
6546 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
6548 * include/dir.h: Reintroduce as an obsolescent header.
6549 * crt1.c (signal.h): Include.
6550 (_gnu_exception_handler): New function to properly handle win32
6551 asynchronous signals.
6552 (mainCRTStartup): Use.
6554 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
6556 * include/direct.h: Include io.h instead of dir.h
6557 * include/dirent.h: Likewise.
6558 * include/dos.h: Likewise.
6559 * include/stdio.h: Replace reference to dir.h with io.h.
6561 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
6563 * 1999-01-01 release bundled with egcs-1.1.1.
6565 * include/io.h: Incorporate dir.h.
6566 * include/dir.h: Remove.
6567 * include/signal.h: Move RC_INVOKED up a bit.
6569 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
6571 * include/signal.h (sig_atomic_t): Define.
6573 * include/malloc.h: Import defs from deprecated alloc.h.
6574 * include/alloc.h: Remove.
6576 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
6577 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
6578 * include/sys/stat.h (struct stat): st_uid is of type short. Use
6579 _off_t instead of long for st_size.
6581 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
6583 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
6584 * include/stdlib.h: Here.
6586 * include/netdb.h: Remove.
6587 * include/arpa/inet.h: Remove.
6588 * include/netinet/in.h: Remove.
6589 * include/sys/socket.h: Remove.
6591 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
6595 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
6596 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
6598 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6600 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
6601 (jmpbuf): typedef using above.
6602 (setjmp, longjmp): Prototype using jmpbuf.
6604 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
6605 obsolescent imported names, ie., from __imp__ to _imp___.
6607 Also ignored empty include/sys/param.h and incorrect
6608 include/sys/times.h.
6610 * CRTinit.c: New file.
6611 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
6613 * include/io.h (umask): Fix prototype.
6614 * include/stdlib.h (OS constants): Replace with Colin's.
6615 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
6616 * include/sys/state.h: Merge.
6618 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6620 * include/assert.h (assert): Lose the trailing semicolon.
6622 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6624 * include/math.h (matherr): Declare.
6625 * include/stdio.h (fileno, _fileno): Declare.
6626 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
6629 * include/stdio.h (fdopen, _fdopen): Add const.
6630 (getw, putw): Declare.
6631 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
6633 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
6635 * include/time.h (_timezone): Undefine.
6636 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
6638 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
6640 * include/stdlib.h (environ): Use DLL version.
6641 * init.c (environ): Undefine it before use.
6643 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
6645 * Update to 980309 snapshot from Colin Peters.
6647 * include/utime.h: remove
6648 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
6649 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
6650 patches to define these.
6651 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6652 (_daylight, _timezone, _tzname, _tzset): Define.
6654 * include/netdb.h: Add from Colin's windows32api changes.
6655 * include/sys/socket.h: Likewise.
6656 * include/arpa/inet.h: Likewise.
6657 * include/netinet/in.h: Likewise.
6659 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
6661 * Update to 980128 snapshot from Colin Peters.
6663 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
6665 * configure.in (AC_INIT): Use dllmain.c instead of defunct
6667 * configure: Regenerate.
6669 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
6671 * Update to 971205 snapshot from Colin Peters. Lots of changes.
6672 Files renamed and include hierarchy loses directories named
6675 * include/dos.h: from Jan-Jaap.
6677 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
6679 Changes to conform to FSF tree.
6681 * crt1.c: Renamed from mcrt0.c.
6682 * dllcrt1.c: Renamed from dllcrt0.c.
6683 * Makefile.in: Update above. Also renamed libmoldnames.a to
6686 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
6688 * crtdll.def: Export all functions but the ones with funny names.
6689 * moldnames.def: Add fdopen since fileno is already there.
6690 * include/nonansi/dos.h: New file from Jan-Jaap.
6691 * include/errno.h: Add extern decl + various additions from JJ.
6692 * include/stdio.h: Likewise.
6693 * include/stdlib.h: Likewise.
6694 * include/nonansi/io.h: Likewise.
6695 * include/nonansi/process.h: Likewise.
6696 * include/sys/types.h: Likewise.
6698 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6700 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6702 * include/stdlib.h (free): Fix prototype to return void, not void*.
6703 * include/nonansi/process.h: Add P_* and WAIT_* defs.
6705 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
6706 * mcrt0.c: Likewise.
6708 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
6709 (libmoldnames.a): Add explicit rule to create it.
6711 1997-08-15 Rob Savoye <rob@cygnus.com>
6713 New directory for the minimalist cygwin environment.
6715 * crtglob.c: New file. Turn on file globbing support.
6716 * crt_noglob.c: New file. Turn off file globbing support.
6717 * ctype_old.c: New file. Wrappers for functions that don't
6719 * dirent.c: New file. Directory routines readdir, opendir, closedir.
6720 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
6721 * dllmain.c: New file. A stub DllMain function.
6722 * hugeval.c: New file. A gross hack to define HUGE_VAL.
6723 * init.c: New file. Common code to initialize standard file
6724 handles and command line arguments.
6725 * main.c: New file. A main for programs that only call WinMain.
6726 * mcrt0.c: New file. Default crt0 for mingw32.
6727 * oldnames.c: New File. Wrappers for functions that don't
6729 * string_old.c: New File.
6730 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
6731 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
6732 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
6733 * include/sys/types.h: New header file for mingw.
6734 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
6735 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
6736 utime.h,values.h,varargs.h}: New header files for mingw.
6737 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
6738 timeb.h,unistd.h}: New header files for mingw.
6739 * Makefile.in,configure.in: Build and configure support.
6740 * configure: Generated from autoconf 2.12 with Cygnus patches.