1 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Adapt platform feature checks to NTDDI_VERSION conventions.
5 * include/_mingw.h: Assert copyright; include w32api.h
6 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
7 to w32api/include/w32api.h, whence they remain in effect.
8 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
10 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
12 Correct mismatched #if/#endif from preceding commit.
14 * include/_mingw.h (#pragma GCC system_header)
15 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
16 correcting for inadvertent removal of matching #endif introduced by
17 preceding 2015-06-19 commit.
19 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
21 Define symbolic names for alternative Microsoft runtime DLLs.
23 * include/msvcrtver.h: New file; it assigns a value for...
24 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
25 (__MSVCR60_DLL): ...this new manifest constant, with each of...
26 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
27 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
28 ...these also defined, as user assignable alternatives.
30 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
31 to establish its default value.
33 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
35 Track dependencies on modified system header files.
37 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
39 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
41 Correct an anomaly in stage 1 only build procedure.
43 * Makefile.in (all-gcc): New goal; it is an alias for...
44 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
45 (all-mingwrt-stage-1-only): ...this; upate all references.
46 (active-goals): Adjusted accordingly; it now reguires...
47 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
48 (install): Adjusted, as directed by...
49 (DEFAULT_MAKECMDGOALS): ...this.
51 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
53 Prefer our hypot() implementation in complex maths operations.
55 * mingwex/complex/cabs_generic.c: New file; it replaces...
56 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
57 * mingwex/complex/cabsl.c: ...these.
59 * mingwex/complex/catan_generic.c: New file; it replaces...
60 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
61 * mingwex/complex/catanl.c: ...these.
63 * mingwex/complex/clog_generic.c: New file; it replaces...
64 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
65 * mingwex/complex/clogl.c: ...these.
67 * mingwex/complex/cpow_generic.c: New file; it replaces...
68 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
69 * mingwex/complex/cpowl.c: ...these.
71 * mingwex/complex/csqrt_generic.c: Do not use...
72 (_hypot): ...this Microsoft form of function reference; use...
73 (hypot): ...this ANSI standard form instead.
75 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
77 Correct C++ compilation anomaly with hypotf() in cmath header.
79 * include/math.h: Add copyright notice; generally tidy layout.
80 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
81 (hypotf): Delete inline implementation; it did not properly handle
82 range errors, and was uncompilable with optimization when any g++
83 option implying __STRICT_ANSI__ conformity was specified.
84 (_MATH_H_): Rename this multiple inclusion guard...
85 (_MATH_H): ...to this.
87 * mingwex/math/hypot_generic.c: New file; it implements...
88 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
89 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
91 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
93 Prepare and tag all files for release of mingwrt-3.21.1.
95 * configure.ac (AC_INIT): Adjust package version argument.
96 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
97 (__MINGW32_VERSION): ...increment this to match.
99 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
101 Refactor to avoid possible time_t conflicts across headers.
103 * include/parts/time.h (struct timespec): Make it more descriptive of,
104 and better able to accommodate, potential ambiguity relating to...
105 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
106 whence they may be identically imported into each of...
107 * include/sys/types.h include/time.h include/wchar.h: these; delete
108 duplicate typedefs, and import accordingly.
110 * include/sys/types.h: Add licence; general comment additions.
111 (_TYPES_H_): Rename multiple inclusion guard macro...
112 (_SYS_TYPES_H): ...to this.
114 * include/time.h: Add licence; general comment/layout adjustments.
115 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
116 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
117 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
118 (_TIME_H_): Rename multiple inclusion guard macro...
119 (_TIME_H): ...to this.
121 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
122 (struct timespec): ...of this.
124 * include/wchar.h: Add licence; general comment/layout adjustments.
125 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
126 [GCC] (system_header): Add pragma, identifying header as such.
127 (_WCHAR_H_): Rename multiple inclusion guard macro...
128 (_WCHAR_H): ...to this.
130 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
132 Remove obsolete varargs.h header file.
134 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
135 a GCC header which is no longer supported, and was always intended for
136 ultimate removal; now is the long overdue time to do so.
138 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
140 Correct improper unistd.h function attribute declarations.
142 * include/unistd.h (_cdecl): Correct usage throughout; should be...
145 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
147 Fix GLOB_DOOFFS initialization bug.
149 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
150 (gl_data->gl_offs): ...this is properly initialized to zero.
152 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
154 Tag all files for release of mingwrt-3.21.
156 * include/_mingw.h: Adjust version accordingly.
158 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
160 Improve usage notes in stdlib.h, for mkstemp() function.
162 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
163 an original comment, explaining the need to use _O_TEMPORARY, from...
164 * mingwex/mkstemp.c: ...here; delete trailing white space.
166 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
168 Eliminate some potential definition inconsistencies.
170 * include/stdio.h: Cosmetic formatting change, relating to...
171 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
172 unconditionally; this allows the compiler to check for consistency
173 with their primary definitions in stdio.h
175 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
177 Suppress expected warning diagnostics in LIBIMPL builds.
179 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
180 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
181 GCC flag to supress warnings relating to deprecated declarations.
183 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
185 Provide more POSIX conforming sleep() functions.
187 * include/sys/types.h (useconds_t): Make it explicitly long; int may
188 be okay, but doesn't guarantee enough bits; mark as deprecated, since
189 POSIX has declared it "obsolete", and no longer specifies it.
191 * mingwex/usleep.c: Delete file; it provided an implementation of...
192 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
193 its error handling was hopelessly broken; replace it with...
194 * mingwex/nsleep.c: ...this new file; it implements...
195 (__mingw_sleep): ...this generic helper function; it supports sleep
196 capability with interval specification to nanosecond precision.
198 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
199 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
200 (sleep, nanosleep): ...these current POSIX functions, and also...
201 (usleep): ...this obsolete one; mark it as deprecated.
203 * include/parts: New directory; it is intended to host partial header
204 implementations, for content which must be shared among arbitrary sets
205 of multiple standard header files.
207 * include/parts/time.h: New file; nominally declaring time.h content.
208 (struct timespec): Declare it; it is currently used within unistd.h,
209 to facilitate the __CRT_INLINE implementation of nanosleep().
211 * Makefile.in (libmingwex.a): Remove reference to...
212 (usleep.$OBJEXT): ...this; replace it with a reference to...
213 (nsleep.$OBJEXT): ...this alternative.
214 (mingwrt-includedirs): Add prerequisite to create...
215 ($includedir/parts): ...this new directory; it is populated by...
216 (install-mingwrt-headers): ...this rule; add requisite command.
218 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
220 Delete an unnecessary Unicode wrapper file.
222 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
223 UTF-16LE API from dirent.c, without any need for this wrapper.
225 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
227 Some further inline function rationalization.
229 * include/io.h (_CRTALIAS): Replace all references...
230 (__CRT_ALIAS): ...using this syntactically preferred form.
231 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
232 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
234 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
235 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
237 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
238 * mingwex/ftruncate.c: Likewise.
240 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
241 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
243 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
245 Some POSIX feature test adjustments.
247 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
248 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
249 (mkdtemp): This didn't become available until SUSv4, so requires...
250 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
252 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
254 Another CRT_INLINE function implementation rationalization.
256 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
257 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
258 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
260 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
261 (libmingwex.a): Delete obsolete dependency on...
262 (imaxabs.$OBJEXT): ...this.
264 * mingwex/imaxabs.c: File is now redundant; delete it.
266 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
268 More rationalization of CRT_INLINE function implementations.
270 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
271 (ftello64): Add __LIBIMPL__ specification for extern implementation.
272 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
274 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
275 * mingwex/stdio/ftell064.c: Likewise.
277 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
278 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
280 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
282 Don't implicitly define _POSIX_C_SOURCE too early.
284 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
285 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
286 that it is not accidentally activated by implied _POSIX_C_SOURCE.
288 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
290 Correct complex arcsin computation per issue [#2245].
292 * mingwex/complex/casin_generic.c: New file; it replaces...
293 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
294 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
296 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
298 Correct complex square root computation per issue [#2246].
300 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
301 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
302 (hypot): ...this libmoldname.a indirection.
304 * mingwex/complex/csqrt_generic.c: New file; it replaces...
305 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
306 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
308 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
310 Adjust header guards to resolve issue [#2244].
312 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
313 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
314 ...when any of these prevail, or as appropriate to correspond with...
315 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
317 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
318 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
319 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
320 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
322 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
324 Add implementation of mkstemp() and mkdtemp() functions.
326 * mingwex/cryptnam.c: New file; it implements...
327 (__mingw_crypto_tmpname): ...this helper function; it generates a
328 cryptographically secure sequence of characters, used as the random
329 component in temporary file and directory names.
331 * mingwex/mkstemp.c: New file; it implements...
332 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
334 * mingwex/mkdtemp.c: New file; it implements...
335 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
337 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
338 function implementation, with LIBIMPL extern semantics, in terms of...
339 (__mingw_mkstemp): ...this; also declare prototype, and define...
340 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
341 (_MKSTEMP_SETMODE): New macro; define it, also providing...
342 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
343 (mkdtemp): Declare prototype; provide inline implementation, with
344 JMPSTUB extern semantics, in terms of...
345 (__mingw_mkdtemp): ...this; declare prototype.
347 * Makefile.in (libmingwex.a): Add dependency rule, to include...
348 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
350 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
352 More JMPSTUB rationalization of inline functions.
354 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
355 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
356 appropriate MSVCRT.DLL equivalent entry point.
358 * mingwex/_Exit.c: File is now redundant; delete it.
359 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
360 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
362 * Makefile.in (jmpstub_awk_script): Add support for...
363 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
364 (libmingwex.a): Remove dependencies on deleted files, namely...
365 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
366 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
368 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
370 Correct omission of complex conjugate functions from libmingwex.a
372 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
373 (creal, crealf, creall): Likewise, for consistency of implementation.
374 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
376 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
377 declarations; they should be interpreted analogously to __CRT_ALIAS.
378 (libmingwex.a): Remove object file references for functions which are
379 now declared as LIBIMPL, and sort the remainder in ASCII collating
380 order; deleted function references comprise the set consisting of...
381 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
382 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
383 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
385 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
386 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
387 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
388 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
389 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
391 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
393 Back-port improved asinh() implementation from 4.0-dev branch.
395 * mingwex/math/asinh_generic.c: New file; it replaces...
396 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
397 ...all of these; delete them.
399 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
401 Enable remake of lost LIBIMPL object files.
403 * Makefile.in (libimpl_remake): New macro; define it, and...
404 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
406 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
408 Implement more robust _get_output_format fallback handling.
410 * mingwex/ofmt.c: New file; it implements...
411 (__mingw_output_format_flag): ...backing store, used by...
412 (__mingw_get_output_format, __mingw_set_output_format): ...these
413 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
414 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
415 version specific Microsoft APIs, which are also supported by some
416 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
417 (__mingw_get_output_format_fallback): Implement; it is aliased to...
418 (__mingw_set_output_format_fallback): ...this; together they provide
419 the emulation support for the preceding pair of functions, when they
420 are not available within the run-time platform MSVCRT.DLL
421 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
422 Implement them; they wrap, and if necessary emulate...
423 (_get_printf_count_output, _set_printf_count_output): ...these.
424 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
425 (__mingw_set_printf_count_output_fallback): ...this; together they are
426 required to support emulation of the preceding pair of functions, when
427 they are not available within the run-time platform MSVCRT.DLL
429 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
430 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
431 (__mingw_get_output_format, __mingw_set_output_format)
432 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
433 Unconditionally declare their prototypes, for subsequent inline use.
434 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
435 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
436 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
437 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
438 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
439 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
440 represent a compilable token.
442 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
443 _get_output_format; consult __mingw_output_format_flag directly.
445 * ofmt_stub.s: No longer required; delete it.
447 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
448 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
449 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
450 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
451 all are compiled from ofmt.c
453 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
455 Do some more essential build tree clean up.
457 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
458 in the way of a successful rebuild from clean.
460 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
462 Implement wrappers for emulation of POSIX dlfcn API.
464 * include/dlfcn.h: New file; it declares the API.
465 * mingwex/dlfcn.c: New file; implement it, with access via...
466 (__mingw_dlfcn): ...this publicly addressable vector table.
468 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
469 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
470 (__LIBIMPL__): ...this automatic interface generator; implement it.
471 (libstub_refnames): New macro; it is adapted from and replaces...
472 (jmpstub_refs): ...this; when it is then invoked twice to build...
473 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
474 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
475 (libimpl_awk_script): New inline script; it handles automated builds
476 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
477 (libimpl_sed_script): New inline script; it prepares intermediate C
478 source code for LIBIMPL interfaces, as required to satisfy these...
479 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
480 (LIBIMPL_CFLAGS): New macro; define it.
482 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
484 Move libgen functions to __mingw_ pseudo-namespace.
486 * mingwex/dirname.c (dirname): Rename function, as implemented...
487 (__mingwex_dirname): ...to this.
489 * mingwex/basename.c (basename): Rename function, as implemented...
490 (__mingwex_basename): ...to this.
492 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
493 prototypes, matching and augmenting original declarations for...
494 (dirname, basename): ...these; reimplement as inline aliases, with
495 __JMPSTUB__ references to the renamed implementation entry points.
497 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
499 Implement new command line argument globbing strategy.
501 * include/_mingw.h: Backport feature defines from master...
502 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
503 constants; define them. They select the preferred globbing algorithm.
504 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
505 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
506 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
507 they enable optional additional features supported by this algorithm.
508 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
510 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
512 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
513 * setargv.c: ...new file; it implements the initialization mechanism
514 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
515 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
516 it invokes the algorithm via an API similar to that described by MSDN,
517 while continuing to support our original _CRT_glob interpretation.
518 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
519 algorithm, via the MSDN-alike API, by calling back to...
521 * crt1.c (_mingw32_init_mainargs): ...this original function, now
522 relocated to here, as a publicly addressable function; formerly...
523 (__mingw_CRTStartup): ...called directly from here, we now redirect
524 the call through _setargv(), whence it may be called indirectly.
526 * init.c: Redundant file; delete it. It originally provided...
527 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
528 original static attribute removed, to allow global addressing.
530 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
532 Backport glob implementation from master to legacy.
534 * include/glob.h: New file; copy it from master branch.
535 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
536 (glob, globfree): ...each of these, respectively.
538 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
539 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
540 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
541 (accept_glob_nocheck_match): New static function; it adds support for
542 avoidance of globbing on patterns with no globbing token, so avoiding
543 the case transliteration effect reported as MinGW-Bug #2106.
544 (glob_match): Use it.
546 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
548 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
550 Implement conventionally named dirent function trampolines.
552 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
553 which redirects a conventionally named function call to its __mingw_
554 pseudo-namespace implementation.
556 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
557 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
558 appropriate protocol for compiling *.sx files, (supported natively by
559 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
561 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
562 yet provide it, so we define it ourselves; deploy it for *.sx files.
563 (Makefile.stub): New sinclude file; create it dynamically, using...
564 (jmpstub_awk_script): ...this new inline script, which is based on...
565 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
566 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
567 (mostlyclean-local): Remove Makefile.stub; do likewise...
568 (Makefile): ...when remaking this, to ensure that both will be
571 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
573 Make dirent implementation namespace and time_t clean.
575 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
576 macros; define them. They facilitate identification of symbols which
577 must be compiled with `extern "C"' binding, when compiling C++ code.
578 (__CRT_ALIAS): New macro; define it. It is intended to replace...
579 (_CRTALIAS): ...this, which is to be considered as deprecated.
580 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
581 __CRT_ALIAS build hints, while remaining transparent to GCC.
582 (UNICODE, _UNICODE) [user defined]: Define consistently.
584 * mingwex/dirent.c: Reimplement; (this is a back-port from the
585 4.0-dev branch, with additional ABI changes to improve stability).
586 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
587 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
588 Add `__mingw_' prefix to all publicly exposed symbol names.
589 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
590 implemented functions; they replace Microsoft's ambiguously defined
591 _findfirst, _findnext, and _findclose, so avoiding ABI instability
592 resulting from the ambiguous size of Microsoft's time_t.
594 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
595 removing unnecessary time_t and file size fields; (our replacements
596 for _findfirst, and _findnext do not require them to be present).
597 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
598 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
599 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
600 Adjust prototypes, making them inline aliases for public symbols which
601 are now qualified by the `__mingw_' prefix; add build hints to support
602 compilation of addressable stubs, with the original symbol names.
603 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
604 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
605 BSD compatibility, but are fundamentally unsupported on MS-Windows).
606 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
607 New macros; define them. (These show availability of optional fields
608 within the dirent struct, which client code may wish to access).
610 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
612 Correct improper naming of assembly language source files.
614 * mingwex/math/*.S: Rename all files with this extension...
615 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
616 not extended `assembler-with-cpp' as implied by the former extension);
617 adjust all internal `.file <name>' references accordingly.
619 * Makefile.in (vpath %.S): Adjust reference to locate files....
620 (vpath %.s): ...now renamed thus.
622 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
624 Streamline the build system infrastructure.
626 * configure.ac: New file; it replaces...
627 * configure.in: ...this; (name is obsolete); delete it.
629 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
630 make invocations, when processing subdirectories, and add automatic
631 dependency tracking for all generated files.
633 * configure: Delete it; as a generated file, it doesn't belong in SCM.
635 * mingwex/Makefile.in: No longer required; delete it.
636 * profile/Makefile.in: Likewise.
638 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
639 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
641 * jamfile: Delete it; it hasn't been updated in ages, is likely no
642 longer relevant, and I have no desire to maintain it.
644 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
646 * include/_mingw.h: Increment version to 3.20.
648 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
650 * tlsmthread.c: Update to reflect changes in tlssup.c.
651 * tlssup.c: code clean-up.
653 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
655 * include/_mingw.h: Increment version to 3.19.
657 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
659 * include/float.h: Modify guard to accomodate CLang.
661 Thanks to Ruben Van Boxem for the report.
663 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
665 * tlssup.c: Remove mingwm10.dll fallback.
667 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
669 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
671 Thanks to bvassche for the report.
673 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
675 Correct checking for short option matches in getopt_long_only().
677 * mingwex/getopt.c (getopt_verify): New static inline function.
678 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
679 possible short option match after failing to match, or ambiguously
680 matching as a long option.
682 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
684 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
686 Thanks to cgf for the report.
688 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
690 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
691 compiles with __STRICT_ANSI__.
693 Thanks to Felipe Contreras for the report.
695 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
697 * include/stdlib.h (strtod): Remove possible static declaration to resolve
700 Thanks to Tobias Burnus for the report.
702 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
704 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
705 by wrapping the functions in brackets.
707 Thanks to Kai Tietz for the report.
709 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
711 * Makefile.in: Add support for msvcr100.dll.
712 * msvcrt.def.in: Ditto.
714 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
716 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
717 not always available, go the long way and use the explicit named union
718 members, which are also declared in winnt.h.
720 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
722 * mingwex/isblank.c: Fix typo in declaration.
724 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
726 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
727 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
728 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
729 is included before <ctype.h>.
731 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
733 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
735 Thanks to Jim Bell for the report and Greg Chicares for the fix.
737 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
739 Correct hexadecimal formatting of double and long double values.
741 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
742 (__pformat) [A format]: Cast double values to long double, and use...
743 (__pformat_xldouble): ...this instead, with corrected adjustment of
744 exponent and alignment of mantissa, when formatting subnormals.
746 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
748 * include/dirent.h (dd_handle): Define as intptr_t.
750 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
752 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
755 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
757 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
758 semantically identical MAX_PATH; correct value is 260.
760 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
762 Accept that mingwrt headers are not guaranteed to precede GCC's in the
763 system include search path; (issue reported by Mark Brand).
765 * include/float.h: Add multiple inclusion guard around...
766 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
767 only when this define does not indicate that it has already been seen;
768 update comments to document rationale; move it within the scope of...
769 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
770 GCC's float.h, after an appropriate complementary modification, need
771 not perform a further include path search when this implementation
772 specific extension has already been processed.
774 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
776 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
777 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
778 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
779 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
780 _findnexti64): Correct definition.
782 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
784 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
786 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
788 * include/_mingw.h: Increment version to 3.18.
790 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
792 * include/stdio.h: (_vscprintf, _vscwprintf)
793 * include/tchar.h: (_vsctprintf)
795 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
797 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
798 (initial implementation)
800 * new type: __time32_t
802 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
803 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
804 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
806 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
807 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
808 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
809 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
810 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
811 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
812 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
813 _wstat32i64, _wstat64i32,_wutime32
815 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
816 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
817 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
818 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
819 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
821 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
823 Implement TLS Callback.
825 * tlsmcrt.c: New file.
826 * tlsmthread.c: Ditto.
829 * Makefile.in: Include new files.
830 * crt1.c: Implement TLS Callback.
832 * mthr_stub.c: Remove.
834 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
836 * include/_mingw.h: Increment version to 3.17.
838 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
840 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
841 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
843 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
845 * include/io.h (_open_osfhandle): Correct definition.
847 Thanks to Alexander Shaduri for the information.
849 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
851 Final sync of pseudo-reloc.c with mingw64 and cygwin
852 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
853 regarding error messages.
855 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
857 Honor DESTDIR for winsup/mingw and winsup/w32api.
858 Detect and report error if installation paths are win32
859 format, but DESTDIR is non-empty.
861 * Makefile.in (DESTDIR): Honor per convention.
862 (need-DESTDIR-compatibility): New macro; define it and a
864 (fail-DESTDIR-compatibility): New dependency goal.
865 (install-dirs): Require need-DESTDIR-compatibility.
866 * mingwex/Makefile.in (DESTDIR): Honor per convention.
867 (need-DESTDIR-compatibility): New macro; define it and a
869 (fail-DESTDIR-compatibility): New dependency goal.
870 (install): Require need-DESTDIR-compatibility.
871 * profile/Makefile.in: Ditto.
873 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
875 Sync pseudo-reloc.c with mingw64
876 * psuedo-reloc.c: Remove unnecessary includes.
877 Forward declare _pei386_runtime_relocator.
878 Decorate _image_base__ symbol with macro for
879 mingw64 compatibility. Whitespace changes.
880 (__print_reloc_error): Renamed to...
881 (__report_error): This. "Returns" void, and
882 always aborts. Now used on all platforms.
883 (__write_memory): Remove special case error handling
884 for different platforms - always call __report_error.
885 (do_pseudo_reloc): Remove special case error handling
886 for different platforms - always call __report_error.
887 (_pei386_runtime_relocator): Decorate _image_base__
888 symbol with mingw64 compatibility macro.
890 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
892 Sync pseudo-reloc.c with cygwin/lib/
893 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
894 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
895 for fatal error handling that is consistent with cygwin process
896 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
897 is unique to each address space, across fork().
898 [CYGWIN] (__print_reloc_error): New function for reporting
899 errors in a manner supported by cygwin at this early stage of
900 the process life-cycle.
901 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
902 performed only once for each address space, but are repeated
903 after fork() in the new address space.
904 [MINGW] (__write_memory): Ensure that b is always initialized
905 by call to VirtualQuery, even if -DNDEBUG.
907 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
909 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
910 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
912 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
913 (PFORMAT_HASHED): ...this formatting attribute; honour only user
914 specified format qualifiers, except in special case...
915 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
916 (PFORMAT_ZEROFILL): ...this default formatting attribute...
917 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
920 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
922 Avoid multiple link time definitions of _printf() for C++;
923 (problem reported by Alexander Shaduri, via MinGW-users ML).
925 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
926 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
928 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
930 * include/_mingw.h: Increment version to 3.16.
932 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
934 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
935 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
936 __fp_unordered_compare): Add prototypes.
937 * include/stdio.h (vsnwprintf): Add prototype.
938 * include/wchar.h (vsnwprintf): Add prototype.
939 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
940 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
942 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
944 Correct disposition of wchar_t output in printf().
946 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
947 (argval): ...this, in inner scope, with singular type `wchar_t'; use
948 it to pass one wchar to __pformat_wputchars(), for output.
950 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
952 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
954 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
956 Convert to monolithic configuration procedure.
958 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
959 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
960 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
961 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
962 (CRT0S): Relocate from `profile'; define it as appropriate.
963 (LIBM_A): Define and AC_SUBST it unconditionally.
964 (AC_CONFIG_SUBDIRS): Remove; none to configure.
965 (AC_OUTPUT_FILES): Add `Makefile' for each of...
966 (mingwex, profile): ...these subdirectories.
968 * configure: Regenerated.
970 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
971 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
972 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
973 (SUBDIRS): Define explicitly, to run recursive `make' in...
974 (mingwex, profile): ...these; simplify build commands...
975 (rootme, rootsrc): ...without these shell variables.
976 (all, subdirs): Delete redundant build commands.
977 (FIXME): Flag various issues for follow up.
979 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
980 (top_srcdir): ...this new macro; let AC_SUBST define it.
981 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
982 (Makefile): Make it depend on...
983 (top_builddir/config.status): ...this, itself depending on...
984 (top_srcdir/configure): ...this.
985 (FIXME): Flag various issues for follow up.
987 * mingwex/aclocal.m4: File no longer required; delete it.
988 * mingwex/configure mingwex/configure.in: Likewise.
990 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
991 (top_srcdir): ...this new macro; let AC_SUBST define it.
992 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
993 (Makefile): Make it depend on...
994 (top_builddir/config.status): ...this, itself depending on...
995 (top_srcdir/configure): ...this.
996 (FIXME): Flag various issues for follow up.
998 * profile/aclocal.m4: File no longer required; delete it.
999 * profile/configure profile/configure.in: Likewise.
1001 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1003 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
1004 to complaints that it causes issues.
1006 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
1008 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
1010 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1012 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
1013 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
1014 to all inline functions.
1016 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1018 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
1019 * CRT_fp10.c: Ditto.
1021 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1023 * cpu_features.c: replace gcc-specific construct with portable alternative
1024 and match the code a few lines above.
1025 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
1027 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1029 * include/_mingw.h: Changes required for PCC compiler.
1031 2009-07-18 Jeff Lu <jll544@yahoo.com>
1033 * mingwex/usleep.c: round up to next ms
1035 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1037 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
1038 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
1039 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
1040 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
1042 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1044 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
1046 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
1048 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
1049 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
1050 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
1051 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
1052 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
1053 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
1054 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
1055 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
1056 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
1057 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
1058 sources as of Apr. 20, 2009. Update further to match the sources in
1059 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
1060 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
1061 double/ulong union from U to dbl_union for better grepping and white-
1064 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1066 * include/stdlib.h (_wtof): Define.
1068 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
1070 * include/stdint.h (int_fast8_t): Specify as signed char.
1071 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
1072 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1074 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1076 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1078 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1080 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1081 (Requested by Robert Riebisch)
1083 * mingwex/getopt.c (getopt_parse): Track external increments of...
1084 (optind): ...this global variable.
1086 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1088 * include/_mingw.h: Increment version to 3.15.2.
1090 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1092 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1093 Also add tentative support for BSD specific `optreset' feature.
1095 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1096 (__mingw_optreset): ...this new global variable.
1098 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1099 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1102 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1104 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1105 Correct mishandling of invalid characters in printf() format specs.
1107 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1108 (backtrack): ...this new automatic variable, at start of each format
1109 conversion specification substring; use it to backtrack, and print the
1110 substring literally, if any invalid character is encountered.
1112 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1114 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1115 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1116 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1117 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1118 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1119 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1120 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1121 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1122 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1123 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1124 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1125 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1126 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1127 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1129 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1131 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1133 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1135 Correct some binary distribution packaging defects.
1137 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1138 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1139 intermediate goals; they make packages of files, as specified by...
1140 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1141 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1143 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1145 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1146 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1148 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1149 of radix point conditional on precision != 0 or `#' flag specified.
1151 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1153 Fix MinGW-Bug [2160227]
1154 Eliminate conflicting declarations and implementations of scalb().
1156 * moldname.def.in (scalb): Comment out of EXPORTS list.
1157 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1158 with GCC's built-in declaration.
1160 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1162 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1164 * mingwex/Makefile.in: Ditto.
1165 * profile/Makefile.in: Ditto.
1166 * configure.in: Record mingw front-end for building under Cygwin.
1167 * mingwex/configure.in: Ditto.
1168 * profile/configure.in: Ditto.
1169 * configure: Regenerate.
1170 * mingwex/configure: Ditto.
1171 * profile/configure: Ditto.
1173 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1175 Use de-facto standard Makefile goals to invoke test suite.
1177 * Makefile.in: Some minor formatting adjustments.
1178 (test_headers): Unconventionally named goal renamed to...
1179 (check-headers): ...this; make it a prerequisite of...
1180 (check): ...this new conventionally named goal.
1182 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1184 Make strtod() inline definition C89 compliant.
1185 (Issue reported by Ilya Shestopalov and Ian Puleston)
1186 (Correction identified by Danny Smith)
1188 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1189 reformat inline function definition.
1191 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1193 * include/_mingw.h: Increment version to 3.15.1 and introduce
1194 __MINGW32_PATCHLEVEL variable.
1196 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1198 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1199 (Reported by Christian Franke)
1201 * mingwex/getopt.c (optind): Make global variable value conform to
1202 behaviour specified by POSIX; do not use it for internal state in...
1203 (getopt_parse): ...this static function; use...
1204 (optbase): ...this new static local variable instead.
1205 (getopt_resolved): Update `optind' as required.
1207 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1209 Improve package identification in configure script.
1211 * configure.ac (AC_INIT): Redefine parameters...
1212 (PACKAGE_NAME): Set to `MinGW Runtime'.
1213 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
1214 (PACKAGE_TARNAME): Set to `mingwrt'.
1215 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
1216 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
1217 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
1219 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
1220 (PACKAGE_TARNAME): ...this.
1222 * configure: Regenerated.
1224 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1226 Fix MinGW-Bug [2125708].
1227 (Reported by Alexandr Zamaraev).
1229 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
1230 not wanted here; remove it; replace it by...
1231 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
1232 (_invalid_parameter_handler): ...this function typedef.
1234 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
1236 * Makefile.in: Don't include host_os as part of snapshot filename.
1238 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1240 Fix MinGW-Bug [2119504].
1241 (Reported by Peiyuan Song).
1243 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
1244 (*retindex): ...this already correctly assigned return variable...
1245 (opt[index].val): ...with this; this should have been assigned to...
1246 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
1248 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1250 Fix MinGW-Bug [2117379].
1251 (Reported by Peiyuan Song).
1253 * include/stdio.h (__argv): Replace all references in function
1254 prototype argument lists and inline function local variables, with ...
1255 (__local_argv): ...this, to avoid potential conflict with ...
1256 * include/stdlib (__argv): ...this #defined macro.
1258 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1260 * include/_mingw.h: Increment version to 3.15.
1262 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1264 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
1265 naming standard for Cygwin.
1267 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1269 Reimplement getopt.c to add getopt_long_only() function.
1271 (N.B. this reimplementation removes support for BSD/Mac-OS-X
1272 `optreset' nonsense; user code should set `optind = 0' instead,
1273 to reinitialise option scanning).
1275 * mingwex/getopt.c: Delete all content; reimplement it.
1276 * include/getopt.h: Likewise.
1278 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
1279 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
1281 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1283 Implement conditional replacement for printf() family functions.
1285 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
1286 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
1287 flag for use in user specified __MINGW_FEATURES__ attribute.
1288 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
1289 currently unused: reserved as components of...
1290 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
1291 a __MINGW_FEATURES__ enhancement to setlocale().
1293 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
1294 (__mingw_fprintf, __mingw_vfprintf): Likewise.
1295 (__mingw_sprintf, __mingw_vsprintf): Likewise.
1296 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
1297 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
1298 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
1299 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
1300 usage; link to DLL import stub, importing from MSVCRT.
1301 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1302 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1303 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
1304 locally defined static stub implementation.
1305 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1306 __mingw_fprintf and __mingw_sprintf respectively.
1307 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
1308 static inline implementation for C++ and GNU C, or locally defined
1309 static stub otherwise.
1310 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1311 __mingw_vfprintf and __mingw_vsprintf respectively.
1313 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1315 Avoid access violations, passing NULL to printf( "...%s..." );
1316 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
1318 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
1319 for argument value, if caller passes a NULL pointer.
1320 (__pformat_wcputs): Likewise, substitute L"(null)".
1322 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1324 Add missing dependencies for building libmingwex.a.
1326 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
1327 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
1328 (pformat.h): ...this.
1330 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1332 Add replacements for remaining members of printf() family.
1334 * mingwex/stdio/printf.c: New file.
1335 * mingwex/stdio/fprintf.c: New file.
1336 * mingwex/stdio/sprintf.c: New file.
1337 * mingwex/stdio/vprintf.c: New file.
1338 * mingwex/stdio/vfprintf.c: New file.
1339 * mingwex/stdio/vsprintf.c: New file.
1341 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1342 (STDIO_OBJS): Add their corresponding object files.
1344 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1346 Replace __mingw_snprintf() with new generic family implementation;
1347 likewise, replace __mingw_vsnprintf().
1349 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
1350 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
1351 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1352 (GDTOA_DISTFILES): Remove mingw_snprintf.c
1353 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
1354 (GDTOA_OBJS): Remove mingw_snprintf.o
1355 (PFORMAT_CFLAGS): New macro; define it, as required by...
1356 (pformat.o): ...this new explicit build target.
1357 (snprintf.o, vsnprintf.o): Declare prerequisites.
1359 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
1361 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1363 Lay foundations for new printf() function family implementation.
1365 * ofmt_stub.s: New file; implement forward compatibility stub for...
1366 (_get_output_format): ...this MSVCR80.DLL and later function.
1368 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
1369 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
1370 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
1371 (lib%.a): Include ofmt_stub.o when import library does not already
1372 advertise availability of the _get_output_format() function;
1373 Add alias stubs for MINGW_REPL_FUNCS, such that...
1374 (__msvcrt_printf): ...is an alias for Microsoft's printf().
1375 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
1376 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
1377 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
1378 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
1379 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
1380 (clean): Add msvcr*.def.
1382 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
1383 * configure: Regenerated.
1385 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1387 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
1388 (_imp____mb_cur_max_dll): Likewise.
1390 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
1392 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
1393 * include/wchar.h (swprintf, vswprintf): Likewise.
1395 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1397 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
1398 (_get_output_format, _set_output_format): Add references.
1400 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
1401 (_get_output_format, _set_output_format): Declare prototypes.
1402 (_TWO_DIGIT_EXPONENT): Define.
1403 Some other minor formatting adjustments.
1405 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1407 [mingw-Bugs-1801641]
1408 * include/wchar.h (_wfdopen): Const-ify second arg.
1409 * include/stdio.h (_wfdopen): Likewise.
1410 Thanks to <tdragon at users dot sourceforge net>
1412 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1414 Avoid precision errors in round(), lround() and llround() functions.
1416 * mingwex/math/round_generic.c: New file; it replaces...
1417 * mingwex/math/round.c: ...this; delete it.
1418 * mingwex/math/roundf.c: ...and this; ditto.
1419 * mingwex/math/roundl.c: ...and this; ditto.
1421 * mingwex/math/lround_generic.c: New file; it replaces...
1422 * mingwex/math/lround.c: ...this; delete it.
1423 * mingwex/math/lroundf.c: ...and this; ditto.
1424 * mingwex/math/lroundl.c: ...and this; ditto.
1425 * mingwex/math/llround.c: ...and this; ditto.
1426 * mingwex/math/llroundf.c: ...and this; ditto.
1427 * mingwex/math/llroundl.c: ...and this; ditto.
1429 * mingwex/math/round_internal.h: New file; it provides generic common
1430 code, which is shared by `round_generic.c' and `lround_generic.c'; the
1431 implementation is based on techniques suggested by Danny Smith and
1434 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
1435 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
1436 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
1437 `round_generic.c' and `lround_generic.c'.
1438 (MATH_OBJS): Factor out files listed in...
1439 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
1440 macros; define them; specify dependencies and build rules; add to...
1441 (LIB_OBJS): ...this list.
1443 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
1445 [ mingw-Bugs-1961893 ]
1446 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
1447 mode to 2 for E format.
1449 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
1451 * include/stdlib.h: Fix strtod under C++.
1453 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
1455 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
1456 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
1458 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
1460 * include/sys/types.h (useconds_t): typedef.
1461 * include/unistd.h (usleep): Add prototype.
1462 * mingwex/usleep.c: New file.
1463 * mingwex/makefile.in: Add usleep source and object.
1465 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
1467 Make strtod() conform to C99.
1469 * include/stdlib.h (strtod): Declare this mingwex function, and...
1470 (_strtod): rename this MSVCRT counterpart.
1472 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
1474 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
1476 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
1478 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1480 * include/process.h: Include stdint.h for intptr_t definition.
1481 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
1482 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
1483 _spawnvpe): Return intptr_t.
1484 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
1485 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
1487 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
1489 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
1490 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
1491 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
1492 _wspawnvp, _wspawnvpe): Return intptr_t.
1494 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1496 * include/wchar.h (fwide): Return success code rather than failure in inline
1498 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
1499 code rather than failure.
1501 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
1503 * include/math.h (float_t, double_t): Define.
1505 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
1507 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
1508 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
1509 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
1511 2008-02-28 Joseph Myers <joseph@codesourcery.com>
1513 * include/complex.h: Don't condition contents on C99 or not
1516 2008-02-01 Brian Dessent <brian@dessent.net>
1518 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
1519 the different runtime versions.
1521 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
1523 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
1524 (mbsinit): Likewise.
1526 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1528 * include/_mingw.h: Increment version to 3.14.
1530 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1532 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
1533 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
1534 * mingwex/math/log10f.S: Correct issue with comments.
1535 * mingwex/math/log10l.S: Ditto.
1536 * mingwex/math/log1p.S: Ditto.
1537 * mingwex/math/log1pf.S: Ditto.
1538 * mingwex/math/log1pl.S: Ditto.
1539 * mingwex/math/log2.S: Ditto.
1540 * mingwex/math/log2f.S: Ditto.
1541 * mingwex/math/log2l.S: Ditto.
1542 * mingwex/math/logf.S: Ditto.
1543 * mingwex/math/logl.S: Ditto.
1545 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
1547 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
1549 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
1551 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
1552 from '_fsize_t' to '__int64' to be consistent with the other ...64
1553 structures and the value set there is 8 bytes not 4. Add guard for both
1554 as the are only used by functions available from 6.1 on.
1556 * include/malloc.h (_HEAP_MAXREQ): Define.
1557 (_aligned_offset_recalloc): Define.
1558 (_aligned_recalloc()): Define.
1560 * include/math.h: fixed a typo in a comment.
1561 (atanhf): Fixed declaration.
1563 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
1564 to '__int64' to be consistent with the other ...64 structures and the value
1565 set there is 8 bytes not 4. Added guard as this function is only used by
1566 functions available from 6.1 on.
1568 * include/sys/stat.h: some members of 'stat' were declared with types with
1569 a prefixed underscore, while the ones without the underscore should have
1570 been used. Added guard to '__stat64' as it is only used by functions
1571 available from 6.1 on. Added the wide character versions of the
1572 exec()/spawn() family for completion
1573 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
1576 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
1577 from 'long' to 'time_t'
1578 (__timeb64): moved declaration of structure directly before the declaration
1579 of the function '_ftime64()', so it is guarded as well
1581 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
1582 before the declaration of the functions using it, so it is guarded as well
1584 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
1586 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
1587 case. Add missing break in 's'/LEN_S case.
1589 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1591 Make snprintf() and vsnprintf() conform to C99.
1593 * include/stdio.h: Add note about incompatibility between...
1594 (snprintf, vsnprintf): These two mingwex functions, and...
1595 (_snprintf, _vsnprintf): these MSVCRT counterparts.
1597 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
1598 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
1600 * mingwex/stdio/snprintf.c: Delete.
1601 * mingwex/stdio/vsnprintf.c: Delete.
1603 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
1604 (vsnprintf): Alias to __mingw_vsnprintf.
1606 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1608 * include/_mingw.h: Increment version to 3.13.
1609 * Makefile.in: Reset CYGRELEASE to 1
1611 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1613 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
1614 resulting from incomplete removal of enclosing `for ...; do ...; done'
1615 loop from compound command; (reported by Greg Chicares).
1617 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
1619 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
1622 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
1624 [mingw-Bugs-1734142]
1625 * include/wchar.h (_wsystem) Declare.
1627 (_wgetenv): Declare.
1628 (_wsearchenv): Declare.
1629 (_wmakepath): Declare.
1630 (_wsplitpath): Declare.
1631 (_wfullpath): Declare.
1632 * include/stdlib.h (_wsystem) Declare.
1633 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
1634 _wfullpath): Move into _WSTDLIB_DEFINED guard.
1635 * include/tchar.h (_tsystem): New UNICODE mapping define.
1637 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
1639 * mingwex/gdtoa/mingw_snprintf.c: New file.
1640 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
1641 (GDTOA_OBJS): Add mingw_snprintf.o.
1643 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
1645 * msvcrt.def.in: Update comment.
1646 Exclude _ctype stub if using msvcr71.dll or newer.
1647 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
1648 * include/wctype.h: Likewise.
1650 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1652 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
1653 *include/dirent.h: Likewise.
1655 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1657 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
1658 * include/conio.h: Likewise.
1659 * include/ctype.h: Likewise.
1660 * include/direct.h: Likewise.
1661 * include/dos.h: Likewise.
1662 * include/errno.h: Likewise.
1663 * include/fenv.h: Likewise.
1664 * include/float.h: Likewise.
1665 * include/inttypes.h: Likewise.
1666 * include/io.h: Likewise.
1667 * include/libgen.h: Likewise.
1668 * include/locale.h: Likewise.
1669 * include/malloc.h: Likewise.
1670 * include/mbctype.h: Likewise.
1671 * include/mbstring.h: Likewise.
1672 * include/process.h: Likewise.
1673 * include/search.h: Likewise.
1674 * include/setjmp.h: Likewise.
1675 * include/signal.h: Likewise.
1676 * include/stdio.h: Likewise.
1677 * include/stdlib.h: Likewise.
1678 * include/string.h: Likewise.
1679 * include/time.h: Likewise.
1680 * include/wchar.h: Likewise.
1681 * include/sys/stat.h: Likewise.
1682 * include/sys/time.h: Likewise.
1683 * include/sys/timeb.h: Likewise.
1684 * include/sys/utime.h: Likewise.
1686 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1688 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
1690 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1692 Add POSIX binary tree search API.
1694 * mingwex/tfind.c: New file.
1695 * mingwex/tdelete.c: New file.
1696 * mingwex/tsearch.c: New file.
1697 * mingwex/twalk.c: New file.
1698 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
1699 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
1700 * include/search.h (tfind): Declare.
1707 (node_t): Define, on condition of _SEARCH_PRIVATE.
1709 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1711 * include/_mingw.h (__MINGW_NOTHROW): Define.
1713 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
1715 * include/stdio.h (vsnprintf): Remove inline definition.
1718 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
1720 * CRTfmode.c: Nit-pick comment fix.
1722 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
1724 * CRTfmode.c: Fix nested comment.
1726 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
1728 * include/string.h (strcasecmp): Fix typo in declaration prototype.
1730 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1732 * include/io.h (lseek64) : Add prototype.
1734 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1736 * include/string.h (strcasecmp): Add prototype.
1737 (strncasecmp): Add prototype.
1739 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
1741 * Makefile.in (CRT0S): Revert last change.
1742 * CRTfmode.c. Correct comment.
1744 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
1746 * Makefile.in (CRT0S): Add back CRTfmode.o.
1748 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
1750 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
1751 * include/io.h: Likewise.
1753 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
1755 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
1757 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
1759 * include/stdint.h (intptr_t): Fix typo.
1760 Thanks to Charles Wilson for report.
1762 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
1764 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
1765 Condition on _WIN64.
1766 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
1767 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
1768 (PTRDIFF_MIN): Define as INTPTR_MIN.
1769 (PTRDIFF_MAX): Define as INTPTR_MAX.
1770 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
1771 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
1773 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1775 * Makefile.in: Removed mansuffix variable. Changed mansection to support
1776 Cygwin man page location.
1778 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1780 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
1781 support Cygwin man page location.
1783 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1785 * Include/_mingw.h: Increment version to 3.12.
1787 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
1789 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
1791 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1793 * Makefile.in: Tweak srcdist to fix build issue.
1795 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1797 Add --enable-mingw-manpage-transform configure option.
1799 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
1800 * configure.in, Makefile.in: Use it.
1801 * configure: Regenerated.
1803 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
1805 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
1807 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1809 Add manpages for dirname and basename functions.
1811 * man: New directory.
1812 * man/dirname.man: New file; it sources both manpages.
1813 * Makefile.in: Add provisional rules to distribute them.
1815 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1817 * mingwex/basename.c: Make it work with path names containing
1818 multibyte character strings.
1819 * mingwex/dirname.c: Likewise.
1821 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
1823 * include/io.h (__mingw_access): New static inline wrapper to restore
1824 pre-Vista 'access (fname, X_OK)' behaviour.
1825 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
1827 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
1829 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
1831 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
1833 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
1835 * include/stdio.h (_unlink, unlink): Add prototypes.
1837 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
1839 * include/excpt.h: Replace "_try1" in comments with "__try1".
1841 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
1843 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
1844 (ALL_CXXFLAGS): Likewise.
1845 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
1846 (ALL_CXXFLAGS): Likewise.
1847 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
1848 (ALL_CXXFLAGS): Likewise.
1850 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
1852 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
1854 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
1856 Expose some more msvcr80.dll functions.
1857 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
1858 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
1859 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
1860 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
1862 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
1864 Expose some msvcr80.dll functions.
1865 * include/stdlib.h (_set_abort_behavior): Add prototype.
1866 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
1867 _set_abort_behavior mask argument.
1868 (_invalid_parameter_handler): Add typedef.
1869 (_set_invalid_parameter_handler): Add prototype.
1870 * include/stdio.h (_get_printf_count_output): Add prototype.
1871 (_set_printf_count_output): Add prototype.
1872 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
1873 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
1875 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
1877 * include/_mingw.h (CRT_INLINE): Correct typo.
1879 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
1881 * include/io.h (X_OK): Define to F_OK.
1883 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
1885 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
1886 unconditionally. Change comment.
1887 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
1889 * include/io.h (rename): Declare.
1892 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1894 * include/libgen.h: New file; required by...
1895 * mingwex/basename.c, mingwex/dirname.c: New files.
1896 * mingwex/Makefile.in (DISTFILES): Add them...
1897 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
1898 (Dependencies): Typo; s/Dependancies/Dependencies/
1900 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1902 * Makefile.in (VERSION): Let configure define it.
1904 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
1905 * configure.in: Use it.
1906 Correct quoting of autoconf macro arguments throughout.
1907 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
1908 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
1909 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
1910 (AC_CONFIG_FILES): Add, to generate Makefile.
1912 * configure: Regenerated.
1914 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
1916 * Makefile.in: Add aclocal.m4 to source release.
1917 * mingwex/Makefile.in: Ditto.
1918 * profile/Makefile.in: Ditto.
1920 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1922 * Include/_mingw.h: Increment version to 3.11.
1923 * Makefile.in: Ditto.
1925 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
1927 [ mingw-Bugs-1590623 ]
1928 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
1931 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
1933 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
1934 correctly parenthesized.
1936 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
1938 * mingwex/mb_wc_common.h (get_codepage): Get it
1941 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
1943 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
1945 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
1947 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
1950 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
1952 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
1955 2006-09-11 Christopher Faylor <cgf@timesys.com>
1957 * Makefile.in: Semi-revert 2006-08-30 change.
1959 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1961 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
1962 (__MINGW_IMPORT): Ansify.
1963 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
1964 __MINGW_ATTRIB_DEPRECATED.
1966 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1968 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
1969 Redundant macros; deleted.
1971 * configure.in (LIB_AC_PROG_CC): Replaced by...
1972 (AC_PROG_CC): ...this.
1974 * configure: Regenerated.
1976 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
1978 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
1979 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
1980 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
1982 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
1984 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
1985 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
1986 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
1987 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
1989 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
1990 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
1991 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
1992 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
1993 * mingwex/wcstold.c: Avoid using strtold internals.
1994 * mingwex/wcstof.c: Rewrite.
1995 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
1996 (GDTOA_OBJS): Add to library.
1997 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
1998 (STDLIB_OBJS): Remove.
1999 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
2000 (Q8_OBJS): Add wcstof.o wcstold.o.
2001 * include/stdlib.h (strtof): Remove inline definition.
2003 * include/wchar.h (wcstof): Remove inline definition.
2005 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
2007 * Makefile.in: Add with_cross_host to allow more granular checks.
2008 Set installation directories accordingly. Override CC setting only
2009 if building a Cygwin target.
2010 * aclocal.m4: Regenerate.
2011 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
2012 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
2013 Test AC_ALLOCA only if building on a native system.
2014 * configure: Regenerate.
2016 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2018 * include/ctype.h: Fix typo.
2020 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2022 * include/ctype.h: Expose iswblank if __cplusplus.
2023 * include/wctype.h: Expose iswblank if __cplusplus.
2025 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2027 * include/ctype.h: Remove stray ')';
2029 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2031 * include/ctype.h (_BLANK): Expand comment.
2032 (isblank): Add prototype and inline definition.
2033 (iswblank): Add prototype and inline definition.
2034 * include/wctype.h (iswblank): Add prototype and inline definition.
2035 * mingwex/isblank.c: New file.
2036 * mingwex/iswblank.c: New file.
2037 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2039 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
2041 * include/math.h (__INFF,__INFL): Remove '#'.
2043 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2045 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2047 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
2049 Support SSE float environment in fenv.h functions.
2050 * cpu_features.c: New file.
2051 * cpu_features.h: New file.
2052 * crt1.c: Include "cpu_features.h".
2053 (__mingw_CRTStartup): Call cpu_features_init().
2054 * Makefile.in (MING_OBJS): Add cpu_features.c.
2055 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
2056 * include/fenv,h ( fenv_t;): Append __mxcsr field.
2057 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
2058 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
2059 (__MXCSR_ROUND_FLAG_SHIFT): New define.
2060 * mingwex/feclearexcept.c: Include "cpu_features.h".
2061 Handle SSE environment.
2062 * mingwex/fegetenv.c: Likewise.
2063 * mingwex/feholdexcept.c: Likewise.
2064 * mingwex/fesetenv.c: Likewise.
2065 * mingwex/fesetexceptflag.c: Likewise.
2066 * mingwex/fesetround.c: Likewise.
2067 * mingwex/fetestexcept.c: Likewise.
2068 * mingwex/feupdateenv.c: Likewise.
2069 * mingwex/fegetround.c: Add comment.
2071 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2073 * Include/_mingw.h: Increment version to 3.10.
2074 * Makefile.in: Ditto.
2076 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2078 * mingwex/math/tgamma.c (SQTPI): Add braces.
2080 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2082 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2083 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2085 * mingwex/math/sf_erf.c (erff): Initialize z.
2087 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2089 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2091 * Include/_mingw.h: Increment version to 3.10.
2092 * Makefile.in: Ditto.
2094 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2096 * include/sys/time.h (struct timezone): Define.
2097 * include/time.h: Correct comment about timezone.
2099 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2101 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2102 * configure: Regenerate.
2104 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2106 * configure: add srcdir as a possible location for install-sh.
2108 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2110 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2111 (_topendir): Use it.
2113 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2115 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2117 (gettimeofday): Add prototype.
2118 * mingwex/gettimeofday.c: New file.
2119 * mingwex/makefile.in: Add gettimeofday source and object.
2121 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2123 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2124 else global library variable.
2125 (HUGEVALF): Likewise.
2126 (HUGEVALL): Likewise.
2127 (INFINITY): Likewise.
2130 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2132 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2134 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2136 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2138 2006-05-24 Christopher Faylor <cgf@timesys.com>
2140 * configure.in: Update to newer autoconf.
2141 (thanks to Steve Ellcey)
2142 * mingwex/configure.in: Ditto.
2143 * profile/configure.in: Ditto.
2144 * configure: Regenerate.
2145 * mingwex/configure: Ditto.
2146 * profile/configure: Ditto.
2147 * aclocal.m4: New file.
2148 * mingwex/aclocal.m4: Ditto.
2149 * profile/aclocal.m4: Ditto.
2151 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2153 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2154 Use supplied codepage as arg to WideCharToMultiByte.
2156 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2158 * Makefile.in (libmsvcr80.a): Add import lib.
2159 (libmsvcr80d.a): Ditto.
2161 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2163 * Makefile.in: Bump cygwin build number.
2165 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2167 * Include/_mingw.h: Increment version to 3.9.
2168 * Makefile.in: Ditto.
2170 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2172 * include/limits.h (SSIZE_MAX): Define.
2173 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2175 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2177 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2178 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2180 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2182 * include/stddef.h: Remove.
2183 * include/stdarg.h: Remove.
2185 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2187 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2188 of result is positive when real part of arg == 0;
2189 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2190 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2192 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2194 * include/time.h (_time64): Correct prototype.
2196 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2198 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2199 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2200 to non-stop. Use "fnclex" to clear exception flags.
2202 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
2204 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
2205 Avoid raising FP exceptions.
2207 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2209 * include/stdlib.h (strtof): Add prototype. Uglify
2210 parameter names in inline definition.
2212 (_Exit): Uglify parameter names in inline definition.
2213 (llabs): Add prototype.
2214 (_set_error_mode): Add prototype and input defines.
2216 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2218 * mingwex/fe*.c: Revert previous changes.
2219 * include/fenv.h: Revert previous changes.
2221 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2223 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
2224 Do not return a value.
2225 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
2226 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
2227 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
2228 * mingwex/fegetenv.c (fegetenv): Likewise.
2229 * mingwex/fesetenv.c (fesetenv): Likewise.
2230 * mingwex/feupdateenv.c (feupdateenv): Likewise.
2231 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
2232 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
2235 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2237 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
2238 getting filelength for SEEK_END.
2240 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2242 * Include/_mingw.h: Increment version to 3.8.
2243 * Makefile.in: Ditto.
2245 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2247 * include/wctype.h (towupper, towlower): Change arg and return value
2249 * include/ctype.h (towupper, towlower): Likewise.
2251 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2253 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
2254 a diagnostic, guarded by #ifdef DEBUG.
2255 (__mingwthr_remove_key_dtor): Likewise.
2257 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2259 * moldname.def.in (sleep, beep, seterrormode): Remove.
2261 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2263 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
2264 (_MCOUNT_DECL): Use it.
2265 (MCOUNT): Save and restore eax, ecx, edx registers.
2266 * profile/mcount.c (_mcount): ANSI-fy.
2268 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2270 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
2271 guard __MINGW_ATTRIB macro definitions.
2272 * include/math.h (logb[fl]): Don't define inlines for
2273 GCC-4.0+ && __FAST_MATH__.
2274 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
2275 line-continuation backslashes.
2277 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
2279 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
2280 in GNUC version guard.
2282 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
2284 * crt1.c (_gnu_exception_handler): Handle illegal instruction
2285 OS exception as a signal if user has defined a SIGILL handler.
2287 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
2289 * mingwex/math/nexttoward.c: New file.
2290 * mingwex/math/nexttowardf.c: New file.
2291 * mingwex/math/nextafterl.c: Add nexttowardl alias.
2292 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
2294 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
2295 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
2298 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
2300 * mingwex/math/nextafterf.c (nextafterf): Correct
2302 * mingwex/math/nextafterl.c: New file.
2303 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
2304 (MATH_OBJS): Add nextafterl.o.
2305 * include/math.h (nextafterl): Uncomment prototype.
2307 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2309 * mingwex/math/erfl.c: New file.
2310 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
2311 (MATH_OBJS): Add erfl.o.
2312 * include/math.h (erfl, erfcl): Uncomment prototypes.
2314 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
2316 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
2317 #if (WCHAR_MAX <= WCHAR_MIN) is false.
2318 * include/stdint.h (WCHAR_MAX): Likwise.
2319 (WINT_MAX): Likewise.
2321 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
2323 * mingwex/math/signbit.c (__signbit): Make return value
2324 consistent with GCC's __builtin_signbit.
2325 * mingwex/math/signbitf.c (__signbitf): Likewise.
2326 * mingwex/math/signbitf.c (__signbitl): Likewise.
2327 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
2330 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
2332 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
2334 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
2335 Remove unused MBTOWC_FLAGS define.
2337 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
2339 * mingwex/mbrtowc.c: New file.
2340 * mingwex/wcrtomb.c: New file.
2341 * mingwex/btowc.c: New file.
2342 * mingwex/wctob.c: New file.
2343 * mingwex/mb_wc_common.h: New file.
2344 * mingwex/Makefile.in (DISTFILES): Add new files.
2345 (Q8_OBJS): Add new objects.
2346 * include/wchar.h: Adjust comment about mbrtowc() and related
2347 funcions. Add __restrict__ to pointer params in prototypes.
2348 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
2349 arg names from protototypes.
2351 2005-04-23 Wu Yongwei <adah@sh163.net>
2353 * mingwex/dirent.c: Formatting changes.
2354 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
2357 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
2359 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
2361 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
2363 * include/stdio.h (__mingw_fwrite): Change return value to
2365 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
2367 2005-03-15 Hans Leidekker <hans@it.vu.nl>
2369 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
2371 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2373 * include/wctype.h (wctrans): Remove _CRTIMP.
2374 (towctrans): Likewise.
2377 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2379 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
2381 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2383 * mingwex/wctype.c: New file.
2384 * mingwex/wctrans.c: New file.
2385 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
2386 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
2388 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2390 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
2392 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2394 * include/assert.h: Remove header guard. #undef assert macro.
2395 (_assert): Use __MINGW_ATTRIB_NORETURN define.
2397 2005-02-11 Gregory W. Chicares <chicares@cox.net>
2399 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
2400 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
2402 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
2403 * mingwex/math/expm1.c: New file.
2404 * mingwex/math/expm1f.c: New file.
2405 * mingwex/math/expm1l.c: New file.
2407 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
2409 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
2410 * include/wchar.h (struct stat): Likwwise.
2411 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
2413 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
2415 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
2417 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
2418 string is not valid.
2420 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
2422 * include/malloc.h: Add missing return code defines for
2425 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
2427 * include/sys/stat.h (struct __stat64): Change st_size type to
2429 * include/wchar.h (struct __stat64): Change st_size type to __int64.
2431 2005-01-13 Earnie Boyd <earnie@users.sf.net>
2433 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2435 * include/errno.h (ELOOP): Ditto.
2436 * include/_mingw.h: Increment version to 3.7.
2437 * Makefile.in: Ditto.
2439 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
2441 * include/tchar.h (_tfreopen): Add UNICODE mappings.
2443 2005-01-11 Earnie Boyd <earnie@users.sf.net>
2445 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2446 lstat): Conditionalize defines for __STRICT_ANSI__.
2448 2005-01-10 Earnie Boyd <earnie@users.sf.net>
2450 * include/errno.h (ELOOP): Add definition.
2452 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
2454 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
2455 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
2456 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
2457 ctanl.c ctanhl.c): New files.
2458 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2459 (COMPLEX_OBJS): Adjust.
2460 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
2461 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
2462 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
2465 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2467 * include/_mingw.h (__int16): Define as short.
2468 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
2470 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2472 * include/stdio.h (P_tmpdir): Add define.
2474 2005-01-03 Earnie Boyd <earnie@users.sf.net>
2476 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
2478 2005-01-02 Earnie Boyd <earnie@users.sf.net>
2480 * include/_mingw.h: Increment version to 3.6
2481 * Makefile.in: Ditto
2483 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
2485 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
2486 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
2487 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
2488 ctanf.c ctanhf.c): New files.
2489 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2490 (COMPLEX_OBJS): Adjust.
2491 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
2492 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
2493 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
2496 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
2498 * include/wchar.h (wcsdup): Correct prototype.
2499 * include/string.h (wcsdup): Correct prototype.
2501 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2503 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
2505 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2507 * mingwex/math/fastmath.h: New file.
2508 * mingwex/math/asinh.c: New file.
2509 * mingwex/math/asinhf.c: New file.
2510 * mingwex/math/asinhl.c: New file.
2511 * mingwex/math/acosh.c: New file.
2512 * mingwex/math/acoshf.c: New file.
2513 * mingwex/math/acoshl.c: New file.
2514 * mingwex/math/atanh.c: New file.
2515 * mingwex/math/atanhf.c: New file.
2516 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
2517 atanh, atanhf, atanhl): Add prototypes.
2518 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
2519 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
2520 Specify dependency on fastmath.h for new objects.
2522 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2524 * include/sys/stat.h (_S_IFLNK): Add definition.
2531 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2533 * include/sys/stat.h (_S_ISLNK): Add definition.
2536 2004-09-05 Earnie Boyd <earnie@users.sf.net>
2538 * include/_mingw.h: Increment minor version for 3.5 release.
2539 * Makefile.in: Ditto.
2540 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
2542 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2544 * include/malloc.h (__mingw_aligned_offset_malloc,
2545 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
2546 __mingw_aligned_realloc, __mingw_aligned_free): Add
2548 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
2549 tst-aligned-malloc.c.
2550 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
2552 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
2554 * mingwex/mingw-aligned-malloc.c: New file.
2555 * mingwex/tst-aligned-malloc.c: New file.
2557 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2559 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
2560 noreturn attribute. Align stack to 16 bytes before passing args
2562 (mainCRTStartup): Change return to void.
2563 (WinMainCRTStartup): Likewise.
2565 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2567 * profile/COPYING: New file.
2568 * profile/CYGWIN_LICENSE: New file.
2569 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
2571 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2573 * mingwex/fopen64.c: Move.
2574 * mingwex/fseeko64.c: Move.
2575 * mingwex/ftello64.c: Move.
2576 * mingwex/lseek64.c: Move.
2577 * mingwex/stdio/fopen64.c: To here.
2578 * mingwex/stdio/fseeko64.c: To here.
2579 * mingwex/stdio/ftello64.c: To here.
2580 * mingwex/stdio/lseek64.c: To here.
2582 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2584 * profile/gmon.c [__MINGW32__]: Include string.h for
2587 2004-08-08 Christopher Faylor <cgf@timesys.com>
2589 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
2591 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2593 * include/complex.h: Remove __attribute__ ((const)) from
2594 transcendantal and trig functions. Replace __attribute__ ((const))
2595 with __MINGW_ATTRIB_CONST on other declarations.
2597 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2599 * include/wchar.h: Reorganize, avoid including other headers.
2601 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2603 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
2604 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
2607 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2609 * include/dirent.h (struct _wdirent): Remove obsolete comment.
2611 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2613 * include/string.h: Revert 2004-07-26 additions of
2616 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
2618 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
2619 (__convert_inf_to_maxnum): New.static inline.
2620 (reducl): Use it to protect against Inf - Inf.
2621 (__fast_ldexpl): New function. Use in lieu of ldexpl.
2623 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
2625 * mingwex/math/expl.c (expl): Move body of code to new static
2626 function __expl, removing tests for +/-Inf. Extern function
2627 expl calls __expl after testing for max, min log thresholds.
2629 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2631 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
2632 * mingwex/stdio/vfscanf.c: Likewise.
2633 * mingwex/stdio/vswscanf.c: Likewise.
2634 * mingwex/stdio/vfwscanf.c: Likewise.
2636 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2638 * include/_mingw.h: Use only two underscores to uglify
2639 __MINGW_ATTRIB_* macros.
2640 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
2641 * include/setjmp.h: Likewise.
2643 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
2645 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
2647 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
2649 * include/string.h: Group wide string functions together,
2650 and protect with _WSTRING_DEFINED.
2652 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
2654 * include/_mingw.h (__MINGW_ATTR_*): Replace with
2656 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
2657 __MINGW_ATTRIB_NORETURN, throughout.
2658 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
2660 (abs): Declare with __MINGW_ATTRIB_CONST.
2669 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
2671 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
2673 * include/_mingw.h: Undefine __attribute__.
2674 (__MINGW_ATTR_NORETURN): New define.
2675 (__MINGW_ATTR_CONST): New define.
2676 (__MINGW_ATTR_MALLOC): New define.
2677 (__MINGW_ATTR_PURE): New define.
2678 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
2681 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2683 * include/time.h (__time64_t): Add missing ';'.
2685 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
2687 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
2688 (struct tm): Protect with _TM_DEFINED.
2690 2004-07-17 Christopher Faylor <cgf@timesys.com>
2692 * Makefile.in (CC): Strip inappropriate include file settings from any
2695 2004-07-15 "dgun" <dgun@umpire.com>
2697 * include/complex.h (conj): Correct typo in prototype.
2699 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
2701 * include/math.h: Add pragma GCC system_header.
2703 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
2705 * mingwex/complex/carg.c: New file.
2706 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
2708 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
2710 * Makefile.in (INCLUDES): Temporarily revert previous change.
2711 * mingwex/Makefile,in (INCLUDES): Ditto.
2712 * profile/Makefile,in (INCLUDES): Ditto.
2713 * mingwex/Makefile,in: Drop carg.o dependency.
2715 2004-07-14 Christopher Faylor <cgf@timesys.com>
2717 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
2719 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
2721 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
2723 * mingwex/Makefile,in (INCLUDES): Ditto.
2724 * profile/Makefile,in (INCLUDES): Ditto.
2726 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
2728 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
2730 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
2732 * mingwex/Makefile.in: Ditto.
2733 * profile/Makefile.in: Ditto.
2734 * include/limits.h: Change to new file header preamble.
2735 * include/_mingw.h: Increment minor version for 3.4 release.
2736 * Makefile.in: Ditto.
2738 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2740 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
2742 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
2744 * include/unistd.h (ftruncate): Add inline definition.
2745 * mingwex/ftruncate.c: New file.
2746 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
2748 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
2750 * include/time.h: Do not include sys/types.h.
2752 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
2754 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
2755 (MATH_OBJS): Remove pow,o.
2756 * include/math.h (pow): Declare with _CRTIMP.
2757 Add comment on how to avoid excess precision problems.
2759 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
2761 * include/stdio.h (__mingw_fseeko64): Add prototype.
2762 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
2763 (__mingw_fwrite): Handle huge files.
2765 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
2766 Danny Smith <dannysmith@users.sourceforge.net>
2768 * include/stdio.h (fopen64): Add inline function.
2769 (fseeko64): Add prototype.
2770 (ftello64): Add inline function.
2771 * include/io.h (lseek64): Add inline function.
2772 * include/sys/types (off64_t): Add typedef.
2773 (fpos64_t): Add typedef.
2774 * mingwex/fopen64.c: New file.
2775 * mingwex/fseeko64.c: New file.
2776 * mingwex/ftello64.c: New file.
2777 * mingwex/lseek64.c: New file.
2778 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
2779 fseeko.64.c, ftello64.c, lseek64.c.
2780 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
2782 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
2784 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
2786 2004-04-22 Earnie Boyd <earnie@users.sf.net>
2788 * DISCLAIMER: Add words about "free to use".
2789 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
2790 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
2791 (inst_docdir): New variable.
2793 (FLAGS_TO_PASS): Include inst_docdir.
2794 (install-dirs): Add inst_docdir.
2795 (install): Add loop for INSTDOCS.
2796 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
2797 section to CONTRIBUTORS file. Remove RCS tags.
2799 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
2801 * mingwex/math/lround.c: Rewrite.
2802 * mingwex/math/lroundf.c: Rewrite.
2803 * mingwex/math/lroundl.c: Rewrite.
2804 * mingwex/math/llround.c: Rewrite.
2805 * mingwex/math/llroundf.c: Rewrite.
2806 * mingwex/math/llroundl.c: Rewrite.
2808 2004-04-20 Earnie Boyd <earnie@users.sf.net>
2810 * CONTRIBUTORS: New file.
2811 * DISCLAIMER: Ditto.
2812 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
2813 section to CONTRIBUTORS file. Remove RCS tags.
2814 * CRTFmode.c: Ditto.
2818 * crtdll.dev: Ditto.
2828 * msvcrt.def.in: Ditto.
2829 * strcasecmp.c: Ditto.
2832 * include/assert.h: Ditto.
2833 * include/conio.h: Ditto.
2834 * include/ctype.h: Ditto.
2835 * include/direct.h: Ditto.
2836 * include/dirent.h: Ditto.
2837 * include/dos.h: Ditto.
2838 * include/errno.h: Ditto.
2839 * include/excpt.h: Ditto.
2840 * include/fcntl.h: Ditto.
2841 * include/float.h: Ditto.
2842 * include/io.h: Ditto.
2843 * include/locale.h: Ditto.
2844 * include/malloc.h: Ditto.
2845 * include/math.h: Ditto.
2846 * include/process.h: Ditto.
2847 * include/setjmp.h: Ditto.
2848 * include/share.h: Ditto.
2849 * include/signal.h: Ditto.
2850 * include/stdio.h: Ditto.
2851 * include/stdlib.h: Ditto.
2852 * include/string.h: Ditto.
2853 * include/tchar.h: Ditto.
2854 * include/time.h: Ditto.
2855 * include/wchar.h: Ditto.
2856 * include/sys/locking.h: Ditto.
2857 * include/sys/param.h: Ditto.
2858 * include/sys/stat.h: Ditto.
2859 * include/sys/timeb.h: Ditto.
2860 * include/sys/types.h: Ditto.
2861 * include/sys/utime.h: Ditto.
2862 * mingwex/dirent.c: Ditto.
2864 2004-04-19 Earnie Boyd <earnie@users.sf.net>
2866 * include/_mingw.h: Revert to primary release 3 and increment minor
2868 * Makefile.in (VERSION): Ditto.
2870 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
2872 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
2873 _fmode if not __MSVCRT__.
2875 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
2877 * include/io.h: (_findfirst): Correct prototype.
2879 2004-03-30 Hans Leidekker <hans@it.vu.nl>
2881 * include/io.h: (_findnext, _findclose): Correct prototype.
2883 2004-03-28 Hans Leidekker <hans@it.vu.nl>
2885 * include/math.h (FP_*): Add defines.
2887 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
2889 * mingwex/math/round.c: Rewrite.
2890 * mingwex/math/roundf.c: Rewrite.
2891 * mingwex/math/roundl.c: Rewrite.
2893 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
2895 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
2896 * include/time.h (__time64_t): Add typedef.
2897 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
2898 (_ctime64): Likewise.
2899 (_wctime64): Likewise.
2900 (_gmtime64): Likewise.
2901 (_localtime64): Likewise.
2902 (wcsftime): Move into _WTIME_DEFINED block.
2903 Regroup non-ANSI prototypes.
2904 * include/io.h: Include <stdint.h>.
2905 (__finddata64_t): Add struct definition.
2906 (__wfinddata64_t): Likewise.
2907 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
2908 (_findnext64): Likewise.
2909 (_wfindfirst64): Likewise.
2910 (_wfindnext64): Likewise.
2911 * include/sys/timeb.h (__timeb64): Add struct definition.
2912 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
2913 * include/sys/utime.h (__utimbuf64): Add struct definition.
2914 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
2915 (_futime64): Likewise.
2916 (_wutime64): Likewise.
2917 * include/sys/stat.h (__stat64): Add struct definition.
2918 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
2919 (_stat64): Likewise.
2920 (_wstat64): Likwise.
2921 * include/sys/types.h (__time64_t): Add typedef.
2922 * include/wchar.h (__wfinddata64_t): Add structure definition.
2923 (__stat64): Likewise.
2924 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
2925 (_wfindfirst64): Likewise.
2926 (_wfindnext64): Likewise.
2927 (_wutime64): Likewise.
2928 (_wstat64): Likwise.
2929 * include/malloc.h (_aligned_free): Add prototype for
2930 __MSVCRT_VERSION__ >= 0x0700.
2931 (_aligned_malloc): Likewise.
2932 (_aligned_offset_malloc): Likewise.
2933 (_aligned_offset_realloc): Likewise.
2934 (_aligned_realloc): Likewise.
2935 * include/string.h (_wcserror): Add prototype for
2936 __MSVCRT_VERSION__ >= 0x0700.
2937 (__wcserror): Likewise.
2938 * include/math.h (_set_SSE2_enable): Add prototype for
2939 __MSVCRT_VERSION__ >= 0x0701.
2941 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
2943 * include/stdio.h (_fsopen): Add prototype.
2944 * include/tchar.h (_tfsopen): Add defines.
2945 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
2947 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
2949 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
2950 msvcr70.dll, and msvcr71.dll.
2951 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
2952 using basename of output def file.
2954 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
2956 * include/malloc.h: Remove __STRICT_ANSI__ guard.
2958 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
2960 * include/process.h: Remove the #endif associated with removal of
2961 __STRICT_ANSI__ guard from non-ANSI header.
2963 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
2965 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
2966 * include/direct.h: Ditto.
2967 * include/dirent.h: Ditto.
2968 * include/dos.h: Ditto.
2969 * include/excpt.h: Ditto.
2971 * include/io.h: Ditto.
2972 * inlude/mem.h: Ditto.
2973 * include/memory.h: Ditto.
2974 * include/process.h: Ditto.
2975 * inlude/search.h: Ditto.
2976 * include/share.h: Ditto.
2977 * include/unistd.h: Ditto.
2978 * include/sys/fcntl.h: Ditto.
2979 * include/file.h: Ditto.
2980 * include/sys/locking.h: Ditto.
2981 * include/sys/param.h: Ditto.
2982 * include/sys/stat,h
2983 * include/sys/time.h: Ditto.
2984 * include/sys/timeb.h: Ditto.
2985 * include/sys/types.h: Ditto.
2986 * include/sys/unistd.h: Ditto.
2987 * include/sys/utime.h: Ditto.
2989 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
2991 * include/_mingw.h (__UNUSED_PARAM): Define macro.
2992 * include/wchar.h (fwide): Use it.
2995 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
2997 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
2998 NetBSD getopt_long.c.
3000 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3002 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
3003 codes and handling of special chars.
3005 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
3007 * include/stdio.h (feof): Add inlined definition.
3010 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3012 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
3013 directly, rather than via scabnl.
3015 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3017 * mingwex/math/powl.c (powl): Return infinity if
3018 extended precision multiplication of x by log2(y)
3021 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3023 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
3024 (__enan_NI16): Fix another one.
3025 (__enan_NBITS): Tidy.
3027 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3029 * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
3030 types. (Thanks to John Maddock for report.)
3032 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
3034 * include/tchar.h (_puttchar): Define.
3036 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
3038 * include/stdio.h:(_fileno): Define macro version after both
3039 fileno and _fileno functions declared.
3041 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
3042 * moldnames.def.in (rmtmp) Add stub.
3044 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
3046 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
3048 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
3050 * include/math.h: Guard ISO C99 additions with __cplusplus
3053 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3055 * include/_mingw.h: Define __attribute__((x)) to nothing
3058 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3060 * include/complex.h: New file.
3061 * mingwex/complex: New directory.
3062 * mingwex/complex/cabs.c: New file.
3063 * mingwex/complex/cacos.c: New file.
3064 * mingwex/complex/cacosh.c: New file.
3065 * mingwex/complex/casin.c: New file.
3066 * mingwex/complex/casinh.c: New file.
3067 * mingwex/complex/catan.c: New file.
3068 * mingwex/complex/catanh.c: New file.
3069 * mingwex/complex/ccos.c: New file.
3070 * mingwex/complex/ccosh.c: New file.
3071 * mingwex/complex/cexp.c: New file.
3072 * mingwex/complex/cimag.c: New file.
3073 * mingwex/complex/clog.c: New file.
3074 * mingwex/complex/cpow.c: New file.
3075 * mingwex/complex/cproj.c: New file.
3076 * mingwex/complex/creal.c: New file.
3077 * mingwex/complex/csin.c: New file.
3078 * mingwex/complex/csinh.c: New file.
3079 * mingwex/complex/csqrt.c: New file.
3080 * mingwex/complex/ctan.c: New file.
3081 * mingwex/complex/ctanh.c: New file.
3082 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3085 (COMPLEX_OBJS): New list of objects.
3086 (LIB_OBJS): Include it in the library.
3088 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3090 * include/math.h (cabs): Remove non-ISO prototype.
3092 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3094 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3095 Use GCC __builtin's if available.
3096 (INFINITY, INFINITYF, INFINITYL): Likewise.
3098 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3100 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3101 beyond approximation limit.
3102 * mingwex/math/sf_erf.c (erff): Likewise.
3104 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3106 * include/stdio.h (getc): Cast result to unsigned char before
3109 (getchar): Likewise.
3110 (putchar): Likewise.
3111 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3113 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3115 * include/_mingw.h: Increment version to 3.2.
3116 * Makefile.in: Ditto.
3118 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3120 * include/sys/types.h: Revert last change.
3122 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3124 * include/sys/types.h (ssize_t): Correct the definition.
3126 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3128 * include/stdio.h (_filbuf): Add prototype.
3129 (_flsbuf): Add prototype.
3130 (getc): Add inline version.
3132 (getchar): Likewise.
3133 (putchar): Likewise.
3135 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3137 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3140 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3142 * include/stdlib.h: Guard non-ISO functions with
3143 !__STRICT_ANSI__, throughout.
3145 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3147 * include/io.h (_fileno): Remove prototype.
3149 (FILENAME_MAX): Define, if needed.
3150 Don't include <stdio.h>.
3151 * include/stdio.h (FILENAME_MAX): Protect against
3153 (_fileno): Define macro implementation.
3156 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3158 * include/inttypes.h: Include _mingw.h.
3160 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3162 * include/_mingw.h (__CRT_INLINE): Define.
3163 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3165 * include/inttypes.h: Likewise.
3166 * include/math.h: Likewise.
3167 * include/stdio.h: Likewise.
3168 * include/stdlib.h: Likewise.
3169 * include/string.h: Likewise.
3170 * include/wchar.h: Likewise.
3171 * include/wctype.h: Likewise.
3173 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3175 * mingwex/dirent.c (_topendir): Allocate enough memory for
3176 DIR struct in UNICODE case too.
3178 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3180 * include/_mingw.h: Increment version to 3.2.
3181 * Makefile.in: Ditto.
3183 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3185 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3187 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3189 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3190 * mingwex/math/truncf.c (truncf): Likewise.
3191 * mingwex/math/truncl.c (truncl): Likewise.
3192 * mingwex/math/modff.c (modff): Likewise.
3193 * mingwex/math/modfl.c (modfl): Likewise.
3195 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3197 * include/search.h: New file.
3198 * include/stdlib.h: Add comment about qsort, bsearch in
3200 * test_headers.c: Include search.h.
3201 * moldname.def.in (lfind, lsearch): Add.
3203 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3205 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
3206 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
3207 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
3209 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3211 * include/_mingw.h (small, hyper): Change to __small and __hyper to
3212 avoid user space name conflicts.
3214 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3216 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
3217 Note: Also added to w32api/include/basetyps.h.
3218 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
3219 Rename to Small (case difference).
3221 2003-06-18 Earnie Boyd <earnie@users.sf.net>
3223 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
3224 * mingwex/dirent.c: Modifications througout to fill d_name array.
3225 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
3226 libmsvcr71, including debug versions.
3227 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
3229 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
3231 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
3232 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
3234 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
3236 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
3238 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
3240 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
3242 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
3243 but still protect inline definition with __STRICT_ANSI__.
3245 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
3247 * string_old.c: Remove, splitting into...
3248 * strcasecmp.c: New file.
3249 * strncasecmp.c: New file.
3250 * wscmpi.c : New file.
3251 * ctype_old.c: Remove, splitting into...
3252 * isascii.c: New file.
3253 * iscsym.c: New file.
3254 * iscsymf.c: New file.
3255 * toascii.c: New file.
3256 * Makefile.in (MOLD_OBJS): Adjust.
3257 (SRCDIST_FILES): Adjust.
3259 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
3261 * include/math.h (fabs) : Remove inline definition.
3265 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3267 * include/_mingw.h: Change version to 3.0
3268 * Makefile.in: Ditto.
3270 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3272 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
3273 * mingwex/configure.in (W32API_INCLUDE): Ditto.
3274 * profile/configure.in (W32API_INCLUDE): Ditto.
3276 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3278 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
3279 of multiply defined symbols if the symbols is defined locally. E.G.:
3280 A local definition of malloc causes this problem.
3281 * configure: Regenerate.
3282 * profile/Makefile.in (W32API_INCLUDE): New variable.
3283 (ALL_CFLAGS): Use W32API_INCLUDE value.
3284 (ALL_CXXFLAGS): Ditto.
3285 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
3286 Thanks to Jeff Bonggren <jbon@users.sf.net>.
3287 * profile/configure.in (W32API_INCLUDE): Set default value.
3288 * profile/configure: Regenerate.
3289 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
3290 (ALL_CFLAGS): Use W32API-INCLUDE value.
3291 (ALL_CXXFLAGS): Ditto.
3292 * mingwex/configure.in (W32API_INCLUDE): Set default value.
3293 * mingwex/configure: Regenerate.
3295 2003-05-05 Earnie Boyd <earnie@users.sf.net>
3297 * Makefile.in (W32API_INCLUDE): New variable.
3298 (ALL_CFLAGS): Use W32API_INCLUDE value.
3299 (ALL_CXXFLAGS): Ditto.
3300 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
3301 (W32API_INCLUDE): Set default value.
3302 * configure: Regenerate.
3304 2003-04-11 Earnie Boyd <earnie@users.sf.net>
3306 * configure.in (LIBM_A): Define for cygwin target.
3307 * configure (LIBM_A): Ditto.
3309 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
3311 * include/time.h (strftime): Remove duplicate declaration.
3313 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3315 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
3317 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3319 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
3320 * mingwex/strtoimax.c (strtoimax): Likewise.
3321 * mingwex/wcstoimax.c (wcstoimax): Likewise.
3322 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
3323 * mingwex/fesentenv.c: Include float.h.
3324 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
3326 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
3328 * mingwex/math/tgammal.c: Likewise.
3330 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3332 * include/utime.h: New file, forwarding to sys/utime.h.
3334 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3336 * include/sys/param.h (MAXPATHLEN): Define.
3338 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3340 * include/tchar.h: Ansi-fy a comment.
3342 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3344 * profile/profile.h (mcount): Use __builtin_return_address
3345 rather than inline __asm statements.
3346 * profile/Makefile.in: Remove special rule for mcount.o
3347 Specify dependencies for mcount.o profil.o gmon.o.
3349 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3351 * include/stdlib.h (qsort): Remove const from first parm.
3352 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
3354 2003-03-03 Christopher Faylor <cgf@redhat.com>
3356 * mingwex/getopt.c: Refresh from NetBSD sources.
3358 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
3360 * mingwex/getopt.c: New file, copied from cygwin srcs.
3361 * include/getopt.h: New file, copied from cygwin srcs.
3362 * include/unistd.h: Include getopt.h.
3363 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
3364 (POSIX_OBJS): Add getopt.o.
3366 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
3368 * include/stdio.h (vscanf): Add prototype.
3374 * include/wchar.h (vwscanf): Add prototype.
3377 * mingwex/snprintf.c: Move to mingwex/stdio.
3378 * mingwex/vsnprintf.c: Ditto.
3379 * mingwex/snwprintf.c: Ditto.
3380 * mingwex/vsnwprintf.c: Ditto.
3381 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
3382 (STDIO_DISTFILES): Add.
3383 (DISTFILES): Adjust.
3384 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
3388 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
3390 * mingwex/stdio: New directory
3391 * mingwex/stdio/vfscanf.c: New file.
3392 * mingwex/stdio/vfwscanf.c: New file.
3393 * mingwex/stdio/vscanf.c: New file.
3394 * mingwex/stdio/vsscanf.c: New file.
3395 * mingwex/stdio/vswscanf.c: New file.
3396 * mingwex/stdio/vwscanf.c: New file.
3398 2003-02-25 Earnie Boyd <earnie@users.sf.net>
3400 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
3401 (libmsvcrt40.a): Ditto.
3403 2003-02-21 Earnie Boyd <earnie@users.sf.net>
3405 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
3407 * Makefile.in (libmsvcrtd.a): Add target library.
3408 (libmoldnamed.a): Ditto.
3409 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
3411 ($(srcdir)): Remove explicit reference for depencies of object targets.
3412 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
3413 msvcrt20.def, msvcrt40.def: Remove.
3414 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
3416 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
3418 * Makefile.in: Make sure libmingwex.a from current build tree is used.
3420 2003-02-14 Christopher Faylor <cgf@redhat.com>
3422 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
3423 ensure -mno-cygwin where appropriate. Filter out -O2.
3425 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
3427 * profile/Makefile.in (mcount.o): Use -O1 optimization
3430 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3432 * include/math.h: Remove _CRTIMP from pow() prototype,
3433 unless __NO_ISOCEXT.
3435 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3437 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
3439 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3441 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
3442 __declspec(dllimport) supported.
3443 (__cdecl): Define if not already defined.
3444 (__stdcall): Likewise.
3445 * include/dirent.h: Qualify fuctions with __cdecl.
3446 * include/fenv.h: Likewise.
3447 * include/inttypes.h: Likewise.
3448 * include/assert.h: Qualify fuctions with __cdecl. Qualify
3449 CRT dll imports with _CRTIMP.
3450 * include/conio.h: Likewise.
3451 * include/ctype.h: Likewise.
3452 * include/direct.h: Likewise.
3453 * include/dos.h: Likewise.
3454 * include/errno.h: Likewise.
3455 * include/float.h: Likewise.
3456 * include/io.h: Likewise.
3457 * include/locale.h: Likewise.
3458 * include/malloc.h: Likewise.
3459 * include/math.h: Likewise.
3460 * include/mbctype.h: Likewise.
3461 * include/mbstring.h: Likewise.
3462 * include/process.h: Likewise.
3463 * include/setjmp.h: Likewise.
3464 * include/signal.h: Likewise.
3465 * include/stdio.h: Likewise.
3466 * include/stdlib.h: Likewise.
3467 * include/string.h: Likewise.
3468 * include/time.h: Likewise.
3469 * include/wchar.h: Likewise.
3470 * include/wctype.h: Likewise.
3471 * include/sys/stat.h: Likewise.
3472 * include/sys/timeb.h: Likewise.
3473 * include/sys/utime.h: Likewise.
3475 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
3476 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
3478 * include/stdio.h (__VALIST): Guard against prior definition.
3480 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3482 * include/_mingw.h: Change version to 3.0
3483 * Makefile.in: Ditto.
3485 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3487 * include/stdlib.h: Make words after #endif a comment.
3489 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3491 * include/locale.h: Include stddef.h for definition of NULL.
3493 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3495 * include/math.h (tgamma): Correct typo in comment.
3497 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3499 * mingwex/mingw-fseek.c (INLINE): Remove define.
3500 (__mingw_is_win9x): Remove static inline function.
3501 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
3503 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3505 * mingwex/math/llround.c: Correct function name and
3506 change return value to long long.
3508 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
3510 * include/ctype.h (__isascii): Don't cast arg to unsigned.
3511 (iswascii): Likewise. Correct mask.
3512 * include/wctype.h (iswascii): Don't cast arg to unsigned.
3515 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
3517 * include/stdlib.h (_osver, _winver, _winmajor,
3518 _winminor): Declare as direct imports from dll if
3519 __DECLSPEC_SUPPORTED.
3521 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
3523 * pseudo-reloc.c (do_pseudo_reloc): Make static.
3524 * pseudo-reloc-list.c: New file.
3525 * crt1.c (_pei386_runtime_relocator): Declare.
3526 (__mingw_CRTStartup): Call it.
3527 * dllcrt1.c (_pei386_runtime_relocator): Declare.
3528 (DllMainCRTStartup): Call it.
3529 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
3532 2003-01-01 Egor Duda <deo@logos-m.ru>
3534 * pseudo-reloc.c: New file.
3536 2002-12-20 Earnie Boyd <earnie@users.sf.net>
3538 * include/_mingw.h: Increment version to 2.4.
3541 2002-12-12 Earnie Boyd <earnie@users.sf.net>
3543 * include/malloc.h (_alloca): Add definition.
3546 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
3548 * mingwex/math/s_erf.c: New file.
3549 * mingwex/math/sf_erf.c: New file.
3550 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3551 (MATH_OBJS): Add new objects.
3552 * include/math.h (erf[f]): Add prototypes.
3553 (erfc[f]): Add prototypes.
3555 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
3557 * include/math.h: Add traditional/XOPEN math constants.
3559 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
3561 * mingwex/math/lgamma.c: New file.
3562 * mingwex/math/lgammaf.c: New file.
3563 * mingwex/math/lgammal.c: New file.
3564 * mingwex/math/tgamma.c: New file.
3565 * mingwex/math/tgammaf.c: New file.
3566 * mingwex/math/tgammal.c: New file.
3567 * mingwex/math/cephes_mconf (polevlf): Add float version.
3569 Define _CEPHES_USE_ERRNO.
3570 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3571 (MATH_OBJS): Add new objects.
3572 * include/math.h (lgamma[fl]): Add prototypes.
3573 (tgamma[fl]): Add prototypes.
3575 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
3577 * mingwex/strtold.c: New file.
3578 * mingwex/wcstold.c: New file.
3579 * mingwex/ldtoa.c: New file.
3580 * mingwex/math/cephes_emath.h: New file.
3581 * mingwex/math/cephes_emath.c: New file.
3582 * mingwex/Makefile.in (DISTFILES): Add new files.
3583 (MATH_DISTFILES): Ditto.
3584 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
3585 (MATH_OBJS): Add cephes_emath.o.
3586 (LIB_OBJS): Add $(STDLIB_OBJS).
3587 * include/stdlib.h (strtold, wcstold): Add prototypes.
3588 * include/wchar.h (wcstold): Add prototype.
3590 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3592 * include/math.h (sqrt): Remove inline definition.
3593 (sqrtf): Replace inline definition with prototype.
3595 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
3596 argument less than zero.
3597 * mingwex/math/sqrtf.c (sqrtl): Likewise.
3599 2002-10-30 Guido Serassio <serassio@libero.it>
3601 * include/stdio.h (_getmaxstdio): Add prototype.
3602 (_setmaxstdio): Likewise.
3604 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
3606 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
3608 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3610 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
3612 Define WIN32_MEAN_AND_LEAN before including windows.h
3613 * include/stdlib.h (_fmode): Protect declaration as dllimported
3614 variable with __IN_MINGW_RUNTIME.
3616 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3618 * crt1.c: Include stdlib.h.
3620 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3622 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
3623 (MINGW_OBJS): Add txtmode.o.
3624 (SRCDIST_FILES): Add txtmode.c binmode.c.
3625 crt1.c: Don't include fcntrl.h, stdlib.h.
3626 (_fmode): Declare, without dllimport attribute.
3627 (__p__fmode): Declare access function for dll's _fmode.
3628 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
3630 * txtmode.c: New file.
3631 * binmode.c: New file.
3632 * samples/fmode/test2.c: New file.
3633 * samples/fmode/jamfile: Add test2.exe target.
3635 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
3637 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
3638 macros work with C89.
3639 (INTMAX_C, UINTMAX_C): Likewise.
3641 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
3643 * include/string.h (strcasecmp): Make extern __inline__.
3644 (strncasecmp): Likewise.
3645 (wcscmpi): Likewise.
3647 2002-10-08 Heiko Gerdau <hg@technosis.de>
3649 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
3650 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
3653 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3655 * mingwex/math/powil.c: Rename powil to __powil.
3656 * mingwex/math/powl.c: Adjust declaration and call
3657 to __powil. Remove comment on powil.
3658 * mingwex/math/powi.c: New file.
3659 * mingwex/math/powif.c: New file.
3660 * mingwex/math/pow.c: New file.
3661 * mingwex/math/cephes_mconf.h. Add double and float
3662 versions of constants.
3663 (polevl): Add double precision function.
3665 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
3667 (MATH_OBJS): Add pow.o, powi.o, powif.o.
3669 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3671 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
3672 (_imp____mbcur_max_dll): Likewise.
3674 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3676 * include/fcntl.h (_fmode): Remove declarations and
3677 compatibility defines.
3678 (_setmode, setmode): Remove prototypes.
3679 * include/stdlib (_fmode): Add declarations and
3680 compatibility defines. Change type to int.
3681 * include/io.h (_setmode, setmode): Add prototypes.
3682 * samples/fmode/all.c: Adjust includes.
3683 * samples/fmode/test.c: Likewise.
3684 * crt1.c (_CRT_fmode): Declare as int.
3685 * CRTfmode.c (_CRT_fmode): Likewise.
3687 * include/stdlib: Remove comment about MB_CUR_MAX.
3689 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
3691 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
3692 (_imp____mbcur_max_dll): Likewise.
3694 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3696 * mingwex/math/files.txt: Remove inadvertantly added file.
3698 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3700 * include/string.h (_strerror): Move into #ifndef
3701 __STRICT_ANSI__ block.
3703 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
3705 * include/time.h (__need_NULL): Define before including
3706 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
3708 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
3710 * include/stdio.h: Correct comment about directory separator.
3712 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
3714 * include/sys/time.h (timeval): Add struct definition and
3715 associated macros (copied from w32api/include/winsock.h).
3717 2002-09-05 Earnie Boyd <earnie@users.sf.net>
3719 * include/_mingw.h: Increment version to 2.3.
3722 2002-09-05 Earnie Boyd <earnie@users.sf.net>
3724 * mingwex/fegetenv.c: Change to \n line endings.
3725 * mingwex/vsnprintf.c: Ditto.
3726 * mingwex/vsnwprintf.c: Ditto.
3728 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
3730 * mingwex/math/hypotl.c: Replace with version based on cephes
3733 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
3735 * include/sys/param.h: Add ENDIAN defines.
3736 * test_headers.c: Include sys/param.h.
3738 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
3740 * test_headers.c: Don't include varargs.h.
3741 * Makefile.in (test_headers): Don't use -std=xx
3744 2002-08-21 Earnie Boyd <earnie@users.sf.net>
3746 * include/sys/param.h: New File.
3748 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
3750 * include/math.h (asm): Change to __asm__ throughout.
3751 Expose ISO C99 functions if __GLIPCPP__.
3752 (hypotf): Use hypot, not _hypot in stub.
3754 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
3756 * include/tchar.h: Ansi-fy another comment.
3758 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
3760 * include/tchar.h: Ansi-fy comment.
3762 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
3764 * test_headers.c : New file.
3765 * Makefile.in (test_headers): New target, using it,
3766 (SRCDIST_FILES): Distribute it.
3768 2002-08-20 Earnie Boyd <earnie@users.sf.net>
3770 * include/_mingw.h: Increment version to 2.2.
3773 2002-08-14 Earnie Boyd <earnie@users.sf.net>
3775 * include/unistd.h: Add include of process.h.
3777 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3779 * include/stdio.h (_fcloseall): Add prototype.
3781 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
3783 * include/tchar.h (_tfdopen): Correct typo.
3785 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
3787 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
3788 nextafter): Add non-underscored stubs.
3789 * moldname-msvcrt.def: Regenerate.
3790 * moldname-crtdll.def: Regenerate.
3791 * mingwex/math: New directory.
3792 * mingwex/rint.c: Move to mingwex/math.
3793 * mingwex/rintf.c: Ditto.
3794 * mingwex/rintl.c: Ditto.
3795 * mingwex/round.c: Ditto.
3796 * mingwex/roundf.c: Ditto.
3797 * mingwex/roundl.c: Ditto.
3798 * mingwex/rint.c: Ditto.
3799 * mingwex/rintf.c: Ditto.
3800 * mingwex/rintl.c: Ditto.
3801 * mingwex/trunc.c: Ditto.
3802 * mingwex/truncf.c: Ditto.
3803 * mingwex/truncl.c: Ditto.
3804 * mingwex/signbit.c: Ditto.
3805 * mingwex/signbitf.c: Ditto.
3806 * mingwex/signbitl.c: Ditto.
3807 * mingwex/copysignl.S: Ditto.
3808 * mingwex/fdim.c: Ditto.
3809 * mingwex/fdimf.c: Ditto.
3810 * mingwex/fdiml.c: Ditto.
3811 * mingwex/fmin.c: Ditto.
3812 * mingwex/fminf.c: Ditto.
3813 * mingwex/fminl.c: Ditto.
3814 * mingwex/fmax.c: Ditto.
3815 * mingwex/fmaxf.c: Ditto.
3816 * mingwex/fmaxl.c: Ditto.
3817 * mingwex/fma.c: Ditto.
3818 * mingwex/fmaf.c: Ditto.
3819 * mingwex/fmal.c: Ditto.
3820 * mingwex/fpclassify.c: Ditto.
3821 * mingwex/fpclassifyl.c: Ditto.
3822 * mingwex/fpclassifyl.c: Ditto.
3823 * mingwex/isnan.c: Ditto.
3824 * mingwex/isnanf.c: Ditto.
3825 * mingwex/isnanl.c: Ditto.
3826 * mingwex/fucom.c: Ditto.
3827 * mingwex/fp_consts.c: Ditto. Split out float and long double
3829 * mingwex/math_stubs.c: Remove.
3830 * mingwex/log2.c: Remove. Replaced by math/log2.S
3831 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
3832 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
3833 * mingwex/math/acosf.c : New file.
3834 * mingwex/math/acosl.c: New file.
3835 * mingwex/math/asinf.c: New file.
3836 * mingwex/math/asinl.c: New file.
3837 * mingwex/math/atan2f.c: New file.
3838 * mingwex/math/atan2l.c: New file.
3839 * mingwex/math/atanf.c: New file.
3840 * mingwex/math/atanl.c: New file.
3841 * mingwex/math/cbrt.c: New file.
3842 * mingwex/math/cbrtf.c: New file.
3843 * mingwex/math/cbrtl.c: New file.
3844 * mingwex/math/ceilf.S: New file.
3845 * mingwex/math/ceill.S: New file.
3846 * mingwex/math/cephes_ld.h: New file.
3847 * mingwex/math/copysign.S: New file.
3848 * mingwex/math/copysignf.S: New file.
3849 * mingwex/math/cosf.S: New file.
3850 * mingwex/math/coshf.c: New file.
3851 * mingwex/math/coshl.c: New file.
3852 * mingwex/math/cosl.S: New file.
3853 * mingwex/math/exp2.S: New file.
3854 * mingwex/math/exp2f.S: New file.
3855 * mingwex/math/exp2l.S: New file.
3856 * mingwex/math/expf.c: New file.
3857 * mingwex/math/expl.c: New file.
3858 * mingwex/math/fabs.c: New file.
3859 * mingwex/math/fabsf.c: New file.
3860 * mingwex/math/fabsl.c: New file.
3861 * mingwex/math/floorf.S: New file.
3862 * mingwex/math/floorl.S: New file.
3863 * mingwex/math/fmodf.c: New file.
3864 * mingwex/math/fmodl.c: New file.
3865 * mingwex/math/fp_consts.h: Ditto.
3866 * mingwex/math/fp_constsf.c: Ditto.
3867 * mingwex/math/fp_constsl.c: Ditto.
3868 * mingwex/math/frexpf.c: New file.
3869 * mingwex/math/frexpl.S: New file.
3870 * mingwex/math/hypotf.c: New file.
3871 * mingwex/math/hypotl.c: New file.
3872 * mingwex/math/ilogb.S: New file.
3873 * mingwex/math/ilogbf.S: New file.
3874 * mingwex/math/ilogbl.S: New file.
3875 * mingwex/math/ldexpf.c: New file.
3876 * mingwex/math/ldexpl.c: New file.
3877 * mingwex/math/llrint.c: New file.
3878 * mingwex/math/llrintf.c: New file.
3879 * mingwex/math/llrintl.c: New file.
3880 * mingwex/math/llround.c: New file.
3881 * mingwex/math/llroundf.c: New file.
3882 * mingwex/math/llroundl.c: New file.
3883 * mingwex/math/log10f.S: New file.
3884 * mingwex/math/log10l.S: New file.
3885 * mingwex/math/log1p.S: New file.
3886 * mingwex/math/log1pf.S: New file.
3887 * mingwex/math/log1pl.S: New file.
3888 * mingwex/math/log2.S: New file.
3889 * mingwex/math/log2f.S: New file.
3890 * mingwex/math/log2l.S: New file.
3891 * mingwex/math/logb.c: New file.
3892 * mingwex/math/logbf.c: New file.
3893 * mingwex/math/logbl.c: New file.
3894 * mingwex/math/logf.S: New file.
3895 * mingwex/math/logl.S: New file.
3896 * mingwex/math/lrint.c: New file.
3897 * mingwex/math/lrintf.c: New file.
3898 * mingwex/math/lrintl.c: New file.
3899 * mingwex/math/lround.c: New file.
3900 * mingwex/math/lroundf.c: New file.
3901 * mingwex/math/lroundl.c: New file.
3902 * mingwex/math/modff.c: New file.
3903 * mingwex/math/modfl.c: New file.
3904 * mingwex/math/nearbyint.S: New file.
3905 * mingwex/math/nearbyintf.S: New file.
3906 * mingwex/math/nearbyintl.S: New file.
3907 * mingwex/math/nextafterf.c: New file.
3908 * mingwex/math/powf.c: New file.
3909 * mingwex/math/powl.c: New file.
3910 * mingwex/math/powil.c: New file.
3911 * mingwex/math/remainder.S: New file.
3912 * mingwex/math/remainderf.S: New file.
3913 * mingwex/math/remainderl.S: New file.
3914 * mingwex/math/remquo.S: New file.
3915 * mingwex/math/remquof.S: New file.
3916 * mingwex/math/remquol.S: New file.
3917 * mingwex/math/scalbn.S: New file.
3918 * mingwex/math/scalbnf.S: New file.
3919 * mingwex/math/scalbnl.S: New file.
3920 * mingwex/math/sinf.S: New file.
3921 * mingwex/math/sinhf.c: New file.
3922 * mingwex/math/sinhl.c: New file.
3923 * mingwex/math/sinl.S: New file.
3924 * mingwex/math/sqrt.c: New file.
3925 * mingwex/math/sqrtf.c: New file.
3926 * mingwex/math/sqrtl.c: New file.
3927 * mingwex/math/tanf.S: New file.
3928 * mingwex/math/tanhf.c: New file.
3929 * mingwex/math/tanhl.c: New file.
3930 * mingwex/math/tanl.S: New file.
3931 * mingwex/Makefile.in: Adjust VPATH for source files in
3934 Add MATH_DISTFILES and use it to build source distro.
3935 * include/math.h: Add protypes for new functions and
3936 reorganise to reflect ANSI,C99 status.
3938 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
3940 * include/tchar.h (_getts): Define as _getws for _UNICODE.
3941 (_putts): Define as _putws for _UNICODE.
3942 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
3944 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3946 * include/float.h: #include_next<float.h> before header guard.
3948 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
3950 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
3952 * include/excpt.h (): Include windef.h not windows.h.
3953 * include/fcntl.h (_O_SHORT_LIVED): Add define.
3954 (_chmod): Add prototype.
3955 (_creat): Correct prototype.
3956 (SH_DENY*): Rename defines to _SH_DENY*.
3957 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
3958 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
3959 _IOAPPEND): Add defines.
3960 (_wfindfirst): Correct prototype.
3961 (_wfdopen): Add prototype.
3962 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
3964 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
3966 (_wcsdup): Correct prototype.
3967 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
3968 _mbsncat being in string.h.
3969 * include/wchar.h (_wfindfirst): Correct prototype.
3970 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
3972 2002-06-15 Earnie Boyd <earnie@users.sf.net>
3974 * include/_mingw.h: Increment to version 2.1.
3975 * Makefile.in: Ditto.
3977 2002-06-15 Earnie Boyd <earnie@users.sf.net>
3979 * Makefile.in (conf_prefix): New variable.
3980 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
3981 (bindist): Use dist_prefix.
3983 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3985 * include/_mingw.h: Increment version to 2.0.
3986 * Makefile.in: Ditto.
3988 Merge in mingwex branch.
3990 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
3992 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
3993 * mingwex/fdim.c: New file.
3994 * mingwex/fdimf.c: New file.
3995 * mingwex/fdiml.c: New file.
3996 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
3998 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
4000 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
4002 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
4004 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
4006 * mingwex/isnanl.c: New file.
4008 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4010 * include/stdint.h: Include stddef.h to get
4012 (WINT_MAX): Define to ((wint_t)-1).
4014 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4016 * include/wctype.h: Replace 'inline' with '__inline__'.
4017 * include/inttypes.h: Likewise.
4019 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4021 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
4022 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
4024 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4026 * mingwex/snprintf.c: Split out vsnprintf to....
4027 * mingwex/vsnprintf.c: New file.
4028 * mingwex/snwprintf.c: Split out vsnwprintf to...
4029 * mingwex/vsnwprintf.c: New file.
4030 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
4032 2002-05-15 Pascal Obry <obry@gnat.com>
4034 * include/dirent.h (DIR): Change dd_stat type to int.
4037 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
4039 * include/stdio.h (vsnprintf): Change inline to __inline__;
4040 (vsnwprintf): Likewise.
4041 * include/wchar.h (vsnwprintf): Likewise.
4044 (mbsinit): Likewise.
4046 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
4048 Change FP default precison from 53 to 64-bit mantissa.
4050 * Makefile.in (CRT0S): Add CRT_fp8.o.
4051 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
4052 * include/float.h: Replace standard float.h defines with
4053 #include_next<float.h> to use GCC's defines. Adjust comments
4056 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4058 * include/dos.h: Change prefix "__imp_" to "_imp__" for
4059 __GNUC__ without __DECLSPEC_SUPPORTED.
4060 * include/fnctl.h: Likewise.
4061 * include/math.h: Likewise.
4062 * include/stdio.h: Likewise.
4063 * include/stdlib.h: Likewise.
4064 * include/time.h: Likewise.
4065 * include/wctype.h: Likewise.
4066 * include/ctype.h: Likewise.
4068 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4070 Add atexit support for dlls.
4071 * crt1.c (atexit): Force thunk to _imp__atexit.
4072 (_onexit): Force thunk to _imp___onexit.
4073 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4074 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4075 (__dll_exit): New function to run atexit-registered functions
4076 and flush output buffers on DLL_PROCESS_DETACH or failed
4078 (atexit): Force use of private atexit table via _dllonexit,
4079 (_onexit): New function. Force use of private atexit table via
4081 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4082 _imp_<_symbol> is visible in import lib.
4083 * msvcrt20.def: Likewise.
4084 * msvcrt40.def: Likewise.
4085 * crtdll.def: Likewise.
4087 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4089 * include/fenv.h: Change header guard macro to _FENV_H_.
4090 (fenv_t, fexcept_t): Move into block protected by
4092 Cleanup some whitespace.
4093 * include/inttypes.h: Change header guard macro to
4096 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4098 * include/math.h (copysignl): Declare.
4099 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4100 (MATHOBJS):Add copysignl.o.
4102 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4104 * include/math.h (__signbitl, __isnanl): Declare.
4106 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4108 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4109 roundl, truncl, fmal, log2l): Declare.
4110 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4111 || !defined __STRICT_ANSI__.
4112 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4113 * mingwex/fmin.c (fmin): Likewise.
4114 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4115 * mingwex/fminf.c (fminf): Likewise.
4116 * mingwex/fmaxl.c: New file.
4117 * mingwex/fminl.c: New file.
4118 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4119 * mingwex/fpclassifyf.c: New file.
4120 * mingwex/fpclassifyl.c: New file.
4121 * mingwex/rint.c (rintf): Split out to...
4122 * mingwex/rintf.c: New file.
4123 * mingwex/rintl.c: New file.
4124 * mingwex/round.c (roundf): Split out to...
4125 * mingwex/roundf.c: New file.
4126 * mingwex/roundl.c: New file.
4127 * mingwex/trunc.c (truncf): Split out to...
4128 * mingwex/truncf.c: New file.
4129 * mingwex/truncl.c: New file.
4130 * mingwex/signbit.c (signbitf): Split out to...
4131 * mingwex/signbitf.c: New file.
4132 * mingwex/signbitl.c: New file.
4133 * mingwex/fmal.c: New file.
4134 * mingwex/copysignl.S: New file.
4135 * mingwex/log2l.c: New file.
4136 * mingwex/fp_consts.c: Add nanl definition.
4137 Comment out unused constants.
4138 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4139 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4140 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4142 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4143 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4144 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4146 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4148 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4150 Make wide char versions of opendir and friends.
4152 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4154 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4155 _wseekdir): Add prototypes for wide versions of corresponding
4157 * include/tchar.h; Add _UNICODE mappings for dirent.h
4158 structures and functions.
4159 * mingwex/dirent.c: Make _UNICODE neutral.
4160 * mingwex/wdirent.c: New file to define _UNICODE before
4162 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4163 (POSIX_OBJS): Add wdirent.o.
4164 (wdirent.o): Specify dependency on dirent.c as well as
4166 * samples/dirent/wtest.c: New file, wide version of test.c.
4168 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4170 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4171 ensure gcc include dir is searched despite -nostdinc.
4172 * profile/Makefile.in (INCLUDES): Likewise.
4173 * mingwex/Makefile.in (INCLUDES): Likewise.
4174 * include/stdarg.h: Replace with stub that just guards the
4175 real gcc system header with #ifndef RC_INVOKED
4176 * include/varargs.h: Likewise.
4177 * include/stddef.h: Likewise.
4178 * include/stdio.h: Include stdarg.h after defining
4180 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4181 Replace va_list with __VALIST throughout.
4183 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4185 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4186 * msvcrt.def (_fpreset): Mark as DATA so that only
4187 _imp___fpreset is exported.
4188 * msvcrt20.def (_fpreset): Likewise.
4189 * msvcrt40.def (_fpreset): Likewise.
4190 * crtdll.def (_fpreset): Likewise.
4191 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4193 (fpreset): Add alias.
4194 (__CRT_PC): Delete definition. _fpreset does it now.
4195 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4196 (fpreset): Add alias.
4197 (__CRT_PC): Delete definition.
4198 * moldname.def.in: Comment out fpreset.
4199 * moldname-msvcrt.def: Regenerate.
4200 * moldname-crtdll.def: Regenerate.
4201 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4202 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
4203 with the _fpreset determined by startup CRT_fp object.
4205 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
4207 * CRT_fp8.c: New file.
4208 * CRT_fp10.c: New file.
4209 * crt1.c (__CRT_PC) Declare.
4210 (__CRT_fesetenv): New static function, using _CRT_PC.
4211 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
4212 (_gnu_exception_handler): Likewise.
4213 * Makefile.in (CRT0S): Add CRT_fp10.o.
4214 (MINGW_OBJS): Add CRT_fp8.o.
4215 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
4216 Add CRT_fp8.o, CRT_fp10.o dependancies.
4217 * include/float.h (_fpreset): Expand comment.
4218 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
4219 (extended precison) environmemt.
4220 (FE_PC53_ENV): New define for MSVCRT default environmemt.
4221 (FE_DFL_ENV): Define as FE_PC53_ENV.
4222 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
4223 precision control for default environment.
4225 * include/math.h: Fix long comment line.
4226 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
4228 * profile/configure: Regenerate.
4230 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
4232 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
4234 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
4236 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
4237 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
4238 (__mingw_fseek): New function to work around Win9x f/lseek bug.
4239 (__mingw_fwrite): Likewise.
4240 (__mingw_is_win9x): New helper function.
4242 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
4243 (__mingw_fseek): New prototype and define to replace fseek.
4244 (__mingw_fwrite): New prototype and define to replace fwrite.
4245 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
4246 * moldname-crtdll.def: Remove CR from end of line.
4247 * moldname-msvcrt.def: Ditto.
4249 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
4251 * profile/configure.in (CRT0S): Configure name of gcrt?.o
4252 based on target, building gcrt0.o for cygwin -mno-cygwin.
4253 * profile/configure: Regenerate.
4254 * profile/Makefile.in (CRT0S): Use name from configure.
4255 (gcrt0.o): New rule.
4256 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
4258 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4260 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
4261 _fpecode): Remove prototypes copied from float.h.
4262 (nan, nanf): Move into block protected against RC_INVOKED
4264 * include/stdlib.h (_Exit): Change from static inline to
4266 * mingwex/_Exit.c : New file.
4267 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
4269 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4271 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
4272 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
4273 (configdirs): Likewise.
4274 (LIBGMON_A): Define for cygwin target as well.
4275 * configure: Regenerate.
4276 * profile/configure.in (THREAD_DLL): Remove define.
4277 (LIBM_A): Remove define.
4278 (LIBGMON_A): Define for cygwin target as well.
4279 * profile/configure: Regenerate.
4280 * profile/makefile.in (install): Install to inst_libdir and
4282 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
4283 (OPTFLAGS): New define.
4284 (ALL_CFLAGS): Add $(OPTFLAGS).
4285 (ALL_CXXFLAGS): Same.
4286 (.c.o:): Remove ALL_CXXFLAGS.
4288 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4290 * include/stdint.h: Add missing newline at eof.
4291 * include/stdio.h (snprintf): Add prototype.
4292 (vsnprintf): Add prototype and inline definition.
4293 (snwprintf): Add prototype.
4294 (vsnwprintf): Add prototype and inline definition.
4295 * include/wchar.h (snwprintf): Add prototype.
4296 (vsnwprintf): Add prototype and inline definition.
4297 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
4299 * mingwex/snprintf.c: New file.
4300 * mingwex/snwprintf.c: New file.
4302 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
4304 * configure.in: Add mingwex as SUBDIRS and configdirs.
4305 * configure: Regenerate.
4306 * Makefile.in (MINGW_OBJS): Remove dirent.o.
4307 (SRC_DIST_FILES): Remove dirent.c.
4309 * include/stdlib.h (_Exit): Add static inline
4311 (struct lldiv_t): Define.
4312 (lldiv): Add prototype.
4313 (llabs): Add extern inline function.
4314 (strtoll,strtoull): Add prototypes.
4315 (wcstol, wcstoul, wcstod): Group together.
4316 (strtof, wcstof): Add extern inline definitions.
4317 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
4318 and extern inline definitions.
4319 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
4320 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
4322 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
4323 (wcstof): Add extern inline definition.
4324 * include/math.h (nan, nanf): Add prototypes.
4325 (NAN, INFINITE): Define constants.
4326 (fpclassify, isnan ,signbit): Add macros and supporting float
4327 and double functions.
4328 (isfinite, isinf, isnormal): Add macros.
4329 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
4331 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
4332 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
4333 (copysign, logb, nextafter, scalb): Add prototypes and
4334 inline stubs for underscored versions in msvcrt.dll.
4335 * include/inttypes.h: New file.
4336 * include/fenv.h: New file
4338 Add new mingwex subdir and files.
4339 * mingwex: New directory.
4340 * mingwex/Makefile.in: New file.
4341 * mingwex/configure.in: New file.
4342 * mingwex/configure: Generate.
4343 * mingwex/dirent.c: Moved here from parent dir.
4344 * mingwex/atoll.c: New file.
4345 * mingwex/feclearexcept.c: New file.
4346 * mingwex/fegetenv.c: New file.
4347 * mingwex/fegetexceptflag.c: New file.
4348 * mingwex/fegetround.c: New file.
4349 * mingwex/feholdexcept.c: New file.
4350 * mingwex/feraiseexcept.c: New file.
4351 * mingwex/fesetenv.c: New file.
4352 * mingwex/fesetexceptflag.c: New file.
4353 * mingwex/fesetround.o: New file.
4354 * mingwex/fetestexcept.c: New file.
4355 * mingwex/feupdateenv.c: New file.
4356 * mingwex/fma.S: New file.
4357 * mingwex/fmaf.S: New file.
4358 * mingwex/fmax.c: New file.
4359 * mingwex/fmaxf.c: New file.
4360 * mingwex/fmin.c: New file.
4361 * mingwex/fminf.c: New file.
4362 * mingwex/fp_consts.c: New file.
4363 * mingwex/fpclassify.c: New file.
4364 * mingwex/fucom.c: New file.
4365 * mingwex/fwide.c: New file.
4366 * mingwex/imaxabs.c: New file.
4367 * mingwex/imaxdiv.c: New file.
4368 * mingwex/isnan.c: New file.
4369 * mingwex/isnanf.c: New file.
4370 * mingwex/lltoa.c: New file.
4371 * mingwex/lltow.c: New file.
4372 * mingwex/log2.c: New file.
4373 * mingwex/log2f.c: New file.
4374 * mingwex/math_stubs.c: New file.
4375 * mingwex/mbsinit.c: New file.
4376 * mingwex/rint.c: New file.
4377 * mingwex/round.c: New file.
4378 * mingwex/signbit.c: New file.
4379 * mingwex/sitest.c: New file.
4380 * mingwex/strtof.c: New file.
4381 * mingwex/strtoimax.c: New file.
4382 * mingwex/strtoumax.c: New file.
4383 * mingwex/testwmem.c: New file.
4384 * mingwex/trunc.c: New file.
4385 * mingwex/ulltoa.c: New file.
4386 * mingwex/ulltow.c: New file.
4387 * mingwex/wcstof.c: New file.
4388 * mingwex/wcstoimax.c: New file.
4389 * mingwex/wcstoumax.c: New file.
4390 * mingwex/wmemchr.c: New file.
4391 * mingwex/wmemcmp.c: New file.
4392 * mingwex/wmemcpy.c: New file.
4393 * mingwex/wmemmove.c: New file.
4394 * mingwex/wmemset.c: New file.
4395 * mingwex/wtoll.c: New file.
4397 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4399 * include/mbstring.h: New file.
4400 * include/mbctype.h: New file.
4402 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4404 * include/tchar.h (__TEXT): Make same as define in
4405 w32api/include/winnt.h.
4407 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4409 * include/tchar.h (_tputenv): Add UNICODE mappings.
4410 (_tsearchenv): Likewise.
4411 (_tmakepath): Likewise.
4412 (_tsplitpath): Likewise.
4413 (_tfullpath): Likewise.
4415 2002-04-18 Pascal Obry <obry@gnat.com>
4417 * dirent.c (opendir): Convert given pathname to
4420 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4422 * include/_mingw.h: Increment version.
4423 * Makefile.in: Ditto.
4425 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4427 * moldname-crtdll.def: Remove CR from end of line.
4428 * moldname-msvcrt.def: Ditto.
4429 * Makefile.in: Use bzip2 compression for Cygwin target.
4431 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
4433 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
4434 TLOSS, PLOSS): Move oldname defines back, following
4435 the underscored names.
4437 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
4439 * include/stdio.h (_snwprintf): Correct spelling.
4440 (_vsnwprintf): Likewise.
4441 * include/wchar.h (_snwprintf): Correct spelling.
4442 (_vsnwprintf): Likewise.
4444 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
4446 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
4447 (wpopen): Add if !(__CRTDLL__).
4448 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
4450 (moldname-crtdll.def rule): Likewise.
4451 * moldname-msvcrt.def: Regenerate.
4452 * moldname-crtdll.def: Regenerate.
4453 * include/stdio.h (wpopen):Use prototype, not a define.
4454 (_swnprintf): Add prototype.
4455 (_vswnprintf): Likewise.
4457 * include/wchar.h (_swnprintf): Add prototype.
4458 (_vswnprintf): Likewise.
4461 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
4463 * include/malloc.h (_heapinfo): Correct structure definition.
4464 (_USEDENTRY,_FREEENTRY): Add defines.
4465 Add comment on platform support for _heap* functions.
4466 (_get_sbh_threshold): Add prototype.
4467 (_set_sbh_threshold): Likewise.
4468 (_expand): Likewise.
4470 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4472 * profile/profil.c: Update copyright info.
4473 * profile/profil.h: Likewise.
4474 * profile/gcrt0.c: Likewise.
4476 2002-01-25 Pascal Obry <obry@gnat.com>
4478 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
4480 * profile/gmon.c: Define bzero as memset if mingw32.
4481 (monstartup): Use it.
4483 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4485 * include/tchar.h (_TCHAR): Add missing ;.
4487 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4489 * include/tchar.h (_TCHAR): Add typedefs.
4491 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4493 * include/stdlib.h (_onexit_t): Add typedef.
4494 (_onexit): Add prototype.
4496 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
4498 * msvcrt.def: Revert accidental change.
4499 * include/stdlib.h: Ditto.
4501 2001-12-07 Earnie Boyd <earnie@users.sf.net>
4503 * Makefile.in: Increment VERSION.
4504 * include/_mingw.h: Ditto.
4506 2001-12-05 Earnie Boyd <earnie@users.sf.net>
4508 * include/strings.h: New File.
4510 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
4512 * include/math.h (_FPCLASS* ): Add defines from float.h.
4513 (IEEE recommended functions): Add declarations from float.h.
4514 * include/float.h (_FPCLASS* ): Protect against redefinition.
4516 2001-11-29 Wu Yongwei <adah@netstd.com>
4518 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
4519 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
4520 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
4521 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
4522 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
4523 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
4524 Correct spelling of "disclaimed" in comments.
4525 * include/excpt.h: Another spelling correction.
4527 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
4529 * include/errno.h: Fix "errno is not a prototype" warning.
4531 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
4533 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
4534 differences between ANSI and non-ANSI versions.
4535 (_ctype[],_pctype): Declare vars.
4536 (__ISCTYPE): New helper macro using _pctype.
4537 (is* ctype functions): Use __ISCTYPE to define inline versions.
4538 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
4540 (isw* ctype functions): Inline definitions.
4541 * include/wctype.h (_ctype[],_pctype): Declare vars.
4542 (isw* ctype functions): Inline definitions.
4545 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4547 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
4548 __fpecode): Use __STDC__ prototypes.
4551 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
4553 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
4554 * mthr_init.c (DllMain) Run dtors if a process terminates.
4555 * mthr.c (__mingwthr_add_key_dtor) Removed.
4556 (___mingwthr_add_key_dtor) New.
4557 (___mingwthr_remove_key_dtor) New.
4558 (__mingwthr_run_key_dtors) Complete rewrite.
4559 (__mingwthr_remove_key_dtor) New.
4561 2001-11-05 Egor Duda <deo@logos-m.ru>
4563 * Makefile.in: Delete unused executable after creating base-files.
4565 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4567 * include/errno.h (_errno): Use __STDC__ prototype.
4568 Thanks to: Jim Barton.
4570 2001-11-04 "stefan" <stefan@lkcc.org>
4572 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
4574 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4576 * include/io.h (_commit): Add declaration.
4577 Thanks to: "stefan" <stefan@lkcc.org>
4579 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4581 * include/sys/stat.h: Make S_IS* macros safer.
4583 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4585 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
4587 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
4589 * include/stdlib.h (__p__environ, __p__wenviron): Use
4590 __STDC__ prototypes.
4592 2001-09-19 Earnie Boyd <earnie@SF.net>
4594 * Makefile.in: Remove the /usr from the install target.
4595 (VERSION): Increment.
4596 include/_mingw.h: Ditto.
4598 2001-09-17 Earnie Boyd <earnie@SF.net>
4600 * Makefile.in: Increment version.
4601 * include/_mingw.h: Ditto.
4603 2001-09-10 Earnie Boyd <earnie@SF.net>
4605 * dossh: Remove inadvertantly imported file.
4607 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
4609 * dirent.c (opendir): Use GetFileAttributes rather than stat
4610 to determine if input arg is dir.
4612 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
4614 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
4616 * include/varargs.h (va_list): Ditto.
4617 * include/stdio.h (va_list): Ditto.
4619 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
4621 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
4622 * include/stdio.h (_IORW): Change constant to 0x0080.
4623 (TMP_MAX): Add new define.
4625 (_wP_tmpdir): Ditto.
4626 (L_tmpnam): Change constant to 16.
4628 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
4630 * include/malloc.h: Fix non-ANSI comment after #endif.
4632 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4634 * profile/configure.in: Make msvcrt.dll version default.
4635 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
4636 * provile/configure: Regenerate.
4638 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
4640 * include/stdio.h (swscanf): Make first arugument const.
4641 * include/wchar.h (swscanf): Ditto.
4642 * include/tchar.h (_tfopen): New _UNICODE define.
4644 (_tsetlocale): Ditto.
4646 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
4648 * profile/Makefile.in (mkinstalldirs): Correct relative path.
4650 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
4652 * include/_mingw.h: Change version to 1.0.
4655 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
4657 * include/tchar.h: (__TEXT): Remove undef.
4661 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
4663 * include/tchar.h: (__TEXT): Add private macro.
4664 (_TEXT): Modify definition to use __TEXT.
4666 This change allows the passing of a MACRO as an argument and have that
4667 MACRO resolved first.
4668 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
4670 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
4672 * Makefile.in: Increment version to 0.5
4673 * include/_mingw.h: Increment minor version
4675 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
4677 * include/assert.h: (assert): Remove ; from end of definition
4678 Thanks to: AJ Reins <tbisp@qwest.net>
4680 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
4682 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
4683 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
4685 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
4687 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
4689 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
4691 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
4692 are actually C functions. These functions are resolved via the
4693 -lmsvcp60 library and comments were placed in the header.
4695 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4697 * include/stdlib.h (__p__pgmptr): add prototype.
4698 (__p__wpgmptr): likewise.
4699 (_pgmptr_dll): move declaration from dos.h.
4700 (_wpgmptr_dll): likewise.
4701 (_pgmptr): conditional define (MSVCT/CRTDLL).
4702 (_wpgmptr): likewise.
4703 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
4704 (_os*_dll variables): likewise.
4705 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
4706 (_wpgmptr_dll): likewise.
4708 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4710 * include/stdint.h: New file.
4712 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
4714 * include/wchar.h: Protect prototypes only declared in the C++ STL
4715 from being declared unless __cplusplus is defined.
4717 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
4719 * include/stdlib.h: Apply Danny Smith patch 102730
4720 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4721 (_wgetenv) Correction to return type.
4723 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
4725 * include/locale.h: Apply Danny Smith patch 101834
4726 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4727 (LC_MIN) Add definition.
4729 (_wsetlocale) Add prototype.
4731 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
4733 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
4734 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
4735 Create a libcoldname.a for the oldname library for CRTDLL.
4736 Restrict libmoldname.a for the oldname library for MSVCRT.
4737 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
4738 Restructure the $target_os case logic.
4739 Always name the MinGW thread dll helper mingwm.
4740 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
4741 * configure: regenerate.
4743 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
4745 * Makefile.in: Fix bindist target to distribute the correct files.
4746 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
4747 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
4749 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
4751 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
4752 Add variables and targets to control binary and source distributions.
4753 Add variables and targets to control snapshot distribution.
4754 * profile/gmon.h: Add missing #endif for #ifndef.
4755 * profile/ChangeLog: Merge entries here and remove.
4756 * profile/Makefile.in: Add variables and targets to control
4760 * config.guess: ditto.
4761 * config.sub: ditto.
4762 * mkinstalldirs: ditto.
4763 * install-sh: ditto.
4764 * configure: regenerate.
4765 * profile/configure: ditto.
4767 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
4769 * Merge in changes from
4770 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4771 * include/direct.h: add guard around MSVCRT-only prototytpes
4772 * include/io.h: add __int64 struct definitions and function prototypes;
4773 add guard for MSVCRT-only prototypes
4774 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
4775 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
4776 put wchar functions together to make sync with wchar.h easier
4777 * include/stdlib.h: add wide char functions (__MSVCRT__)
4778 * include/string.h: add string collation functions ( __MSVCRT__)
4779 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
4780 * include/tchar.h: add macros and macro function definitions
4781 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
4782 enclose more functions in __MSVCRT__ guard;
4783 some oldname wide char function prototypes #if (0)'d
4784 * profile/gmon.h: add guard around BSD-ish typedefs
4786 2000-11-20 Christopher Faylor <cgf@cygnus.com>
4788 * Makefile.in: Use a different variable name for subdirectory since the
4789 previous one was used by the top level make.
4791 2000-11-19 Christopher Faylor <cgf@cygnus.com>
4793 * Makefile.in: Install mingw stuff in a subdirectory if building under
4796 2000-06-17 Christopher Faylor <cgf@cygnus.com>
4798 * Makefile.in (subdirs): Eliminate for loop.
4800 2000-06-17 Christopher Faylor <cgf@cygnus.com>
4802 * Makefile.in (subdirs): Previous change did not fix problem in
4805 2000-06-17 Christopher Faylor <cgf@cygnus.com>
4807 * Makefile.in: Avoid installing dll if we're cross building and the
4808 cross-host system isn't a Windows system.
4809 * configure.in: Detect cross-hosting situation and set appropriate
4810 variables in Makefile.in.
4811 * configure: Regenerate.
4813 2000-04-19 Christopher Faylor <cgf@cygnus.com>
4815 * configure.in: Change HEADER_SUBDIR to mingw32.
4816 * configure: Regenerate.
4818 2000-04-10 Christopher Faylor <cgf@cygnus.com>
4820 * include/string.h: Use proper prototype for _strerror.
4822 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
4824 * Makefile.in (subdirs): Workaround for broken shells.
4826 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
4828 * Snapshot 2000-02-03.
4830 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
4831 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
4832 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
4833 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
4836 * Makefile.in (all): Build CRT0S first.
4837 (libmingwthrd.a): Remove thread support DLL from dependency.
4839 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
4841 * Snapshot 2000-01-21.
4843 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
4845 Merge in changes from Cygwin:
4846 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
4847 (SUBDIRS): Likewise.
4848 * Makefile.in (HEADER_SUBDIRS): New variable.
4849 (install): Use to install Mingw headers to a subdirectory if building
4851 (DLL_CC_STUFF): Add DLL entry point.
4852 * configure: Regenerate.
4854 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
4856 * include/stdio.h (fsetpos): Fix prototype.
4857 (fpos_t): Fix for MSVCRT.
4858 * include/float.h (fpreset): Add prototype.
4859 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
4861 * include/time.h: Don't define tzname as a macro for CRTDLL, and
4862 export using libmoldname.a.
4863 * crtdll.def: Add DATA tags.
4864 * msvcrt.def: Likewise.
4865 * moldname.def.in: Likewise. Add fpreset. Export tzname for
4866 both MSVCRT and CRTDLL.
4867 * moldname-crtdll.def: Regenerate.
4868 * moldname-msvcrt.def: Regenerate.
4870 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
4872 * Snapshot 1999-12-21.
4874 * include/wctype.h: New file.
4875 * include/ctype.h (MB_CUR_MAX): Define.
4877 * include/stdlib.h (MB_CUR_MAX): Define.
4878 * include/wchar.h: Define stat, _stat structures here as well.
4879 * include/float.h: Add invalid subconditions (_SW) and floating
4880 point error (_FPE) macros.
4881 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
4882 (_TIME_T): Rename macro to _TIME_T_DEFINED.
4883 * include/sys/types.h: Likewise.
4885 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
4887 * profile/profil.c (profile_on): Set the profiler thread priority to
4888 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
4889 * Snapshot 1999-11-18.
4891 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
4893 Released 1999-11-07.
4895 * Makefile.in (CRT0S): Add crtst.o.
4896 (install): Install in subdirs as well.
4897 * dirent.h (struct _stat): Rename from struct stat.
4898 * include/tchar.h: Add some new macros. Thanks to
4899 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
4900 * profile/Makefile.in (install): Fix target.
4902 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
4904 * Makefile.in: Add support for profile directory.
4905 * configure.in: Likewise.
4906 * configure: Regenerate.
4908 * profile: Imported profiling sources from winsup-19991026 snapshot.
4909 * profile/Makefile.in: New file.
4910 * profile/configure.in: New file.
4911 * profile/configure: Generate.
4912 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
4913 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
4914 * profile/gmon.c (unistd.h): Include conditionally.
4915 (sys/param.h): Likewise.
4916 * profile/mcount.c (sys/param.h): Likewise.
4917 * profile/profil.c (profile_on): thread id is DWORD, not int.
4920 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
4922 * include/stdlib.h: Add wide character version of argv/environ.
4924 * include/wchar.h: More wide character prototypes.
4925 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
4927 * dllcrt1.c (init.c): Don't include.
4928 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
4929 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
4931 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
4933 * moldname.def: Remove file.
4934 * moldname.def.in: And add this.
4935 * moldname-msvcrt.def: Generate from moldname.def.in.
4936 * moldname-crtdll.def: Likewise.
4938 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
4939 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
4940 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
4942 * Makefile.in: Update.
4943 * configure.in: Likewise. Also add *cygwin* target for building
4944 under Cygwin winsup.
4945 * configure: Regenerate.
4947 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
4949 * include/_mingw.h: Add version macros.
4950 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
4951 Also add wide character versions shared with wchar.h.
4952 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
4953 * include/io.h (sopen, _sopen): Fix prototype.
4954 Add wide character prototypes.
4955 * include/wchar.h: Likewise.
4956 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
4957 underscored versions. Potential incompatibility.
4958 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
4959 Add wide character prototypes.
4960 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
4963 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
4965 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
4966 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
4968 * configure: Rengerate.
4969 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
4970 dll name and crt's. CRTDLL and MSVCRT are meant to created
4971 separately, so remove all the *-msvcrt* targets.
4972 (libmingwthr.a): New target. Dummy thread support archive.
4973 (LIBS): Add libmingwthr.a.
4974 (CRT0S): Use CRT_ID. Add crtmt.o.
4975 (MINGW_OBJS): Add crtst.o.
4976 * main.c (WinMain): Fix prototype.
4977 * crtmt.c: New file.
4978 * crtst.c: New file.
4980 * include/process.h (_beginthreadex): Fix prototype.
4981 * include/_mingw.h (__int64): Define for __GNUC__.
4982 * include/tchar.h (_ttol): Add macro.
4983 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
4984 _i64tow, _ui64tow, _wtoi64): Add prototypes.
4986 Reported by Emanuele Aliberti <ea@iol.it>:
4987 * include/tchar.h (_ttoi): Add macro.
4989 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
4990 * include/stdio.h (_snprintf): Add prototype.
4991 (_vsnprintf): Likewise.
4993 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
4995 Reported by Tor Lillqvist <tml@iki.fi>:
4996 * include/stdlib.h (__p___argv): Fix return type.
4998 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5001 * include/errno.h (errno): It's linked in from startup, not imported.
5002 * include/stdlib.h (errno): Likewise.
5003 * include/io.h: Guard against conflicting macros and prototypes in
5005 * include/stdlib.h: Likewise.
5006 * include/string.h: Likewise.
5007 * include/time.h: Likewise.
5009 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5011 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
5012 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
5013 * Makefile.in (INCLUDES): Remove old windows32 include directory.
5015 * crt1.c (_gnu_exception_handler): Fix prototype.
5016 (__mingw_CRTStartup): New function based on mainCRTStartup.
5017 (mainCRTStartup): Set the app type for MSVCRT and call
5019 (WinMainCRTStartup): Likewise.
5020 * init.c (_startupinfo): Define.
5021 (_getmainargs): Add 5th parameter.
5022 (_mingw32_init_mainargs): Use.
5024 * ALL *.c files: Reformat according to GNU coding style.
5026 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
5028 * Makefile.in (INCLUDES): Add w32api include directory.
5030 * include/_mingw.h: New file.
5031 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
5032 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
5033 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
5034 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
5035 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
5036 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
5038 * include/stdlib.h (atexit): Fix prototype.
5040 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
5042 * include/stdio.h (_tempnam): Fix prototype.
5043 (tempnam): Likewise.
5044 * include/stdlib.h: Replace with GCC's version, and guard
5047 From Anders Norlander <anorland@hem2.passagen.se>:
5048 * include/stdlib.h (__argc): Declare.
5051 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
5053 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
5055 * Makefile.in (_libm_dummy.o): New target.
5058 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
5060 * Released 1999-03-16 along with egcs-1.1.2.
5062 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
5064 * Makefile.in (LIBS): Add libm.a.
5065 (libm.a): Dummy libm.a.
5067 * Makefile.in: Update from winsup 1999-02-08 snapshot.
5068 Preserve local changes.
5069 (mkinstalldirs): In ../, not ../../.
5070 (INCLUDES): Point to local windows32api headers and use -nostdinc.
5072 (LIBS): Add libmoldname-msvc.a.
5073 (libmoldname-msvc.a): Add target.
5074 (distclean): Add target.
5076 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5078 * include/dir.h: Reintroduce as an obsolescent header.
5079 * crt1.c (signal.h): Include.
5080 (_gnu_exception_handler): New function to properly handle win32
5081 asynchronous signals.
5082 (mainCRTStartup): Use.
5084 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5086 * include/direct.h: Include io.h instead of dir.h
5087 * include/dirent.h: Likewise.
5088 * include/dos.h: Likewise.
5089 * include/stdio.h: Replace reference to dir.h with io.h.
5091 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5093 * 1999-01-01 release bundled with egcs-1.1.1.
5095 * include/io.h: Incorporate dir.h.
5096 * include/dir.h: Remove.
5097 * include/signal.h: Move RC_INVOKED up a bit.
5099 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5101 * include/signal.h (sig_atomic_t): Define.
5103 * include/malloc.h: Import defs from deprecated alloc.h.
5104 * include/alloc.h: Remove.
5106 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5107 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5108 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5109 _off_t instead of long for st_size.
5111 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5113 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5114 * include/stdlib.h: Here.
5116 * include/netdb.h: Remove.
5117 * include/arpa/inet.h: Remove.
5118 * include/netinet/in.h: Remove.
5119 * include/sys/socket.h: Remove.
5121 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5125 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5126 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5128 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5130 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5131 (jmpbuf): typedef using above.
5132 (setjmp, longjmp): Prototype using jmpbuf.
5134 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5135 obsolescent imported names, ie., from __imp__ to _imp___.
5137 Also ignored empty include/sys/param.h and incorrect
5138 include/sys/times.h.
5140 * CRTinit.c: New file.
5141 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5143 * include/io.h (umask): Fix prototype.
5144 * include/stdlib.h (OS constants): Replace with Colin's.
5145 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5146 * include/sys/state.h: Merge.
5148 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5150 * include/assert.h (assert): Lose the trailing semicolon.
5152 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5154 * include/math.h (matherr): Declare.
5155 * include/stdio.h (fileno, _fileno): Declare.
5156 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5159 * include/stdio.h (fdopen, _fdopen): Add const.
5160 (getw, putw): Declare.
5161 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5163 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5165 * include/time.h (_timezone): Undefine.
5166 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5168 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5170 * include/stdlib.h (environ): Use DLL version.
5171 * init.c (environ): Undefine it before use.
5173 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5175 * Update to 980309 snapshot from Colin Peters.
5177 * include/utime.h: remove
5178 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5179 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5180 patches to define these.
5181 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5182 (_daylight, _timezone, _tzname, _tzset): Define.
5184 * include/netdb.h: Add from Colin's windows32api changes.
5185 * include/sys/socket.h: Likewise.
5186 * include/arpa/inet.h: Likewise.
5187 * include/netinet/in.h: Likewise.
5189 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5191 * Update to 980128 snapshot from Colin Peters.
5193 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5195 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5197 * configure: Regenerate.
5199 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5201 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5202 Files renamed and include hierarchy loses directories named
5205 * include/dos.h: from Jan-Jaap.
5207 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
5209 Changes to conform to FSF tree.
5211 * crt1.c: Renamed from mcrt0.c.
5212 * dllcrt1.c: Renamed from dllcrt0.c.
5213 * Makefile.in: Update above. Also renamed libmoldnames.a to
5216 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
5218 * crtdll.def: Export all functions but the ones with funny names.
5219 * moldnames.def: Add fdopen since fileno is already there.
5220 * include/nonansi/dos.h: New file from Jan-Jaap.
5221 * include/errno.h: Add extern decl + various additions from JJ.
5222 * include/stdio.h: Likewise.
5223 * include/stdlib.h: Likewise.
5224 * include/nonansi/io.h: Likewise.
5225 * include/nonansi/process.h: Likewise.
5226 * include/sys/types.h: Likewise.
5228 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5230 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5232 * include/stdlib.h (free): Fix prototype to return void, not void*.
5233 * include/nonansi/process.h: Add P_* and WAIT_* defs.
5235 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
5236 * mcrt0.c: Likewise.
5238 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
5239 (libmoldnames.a): Add explicit rule to create it.
5241 1997-08-15 Rob Savoye <rob@cygnus.com>
5243 New directory for the minimalist cygwin environment.
5245 * crtglob.c: New file. Turn on file globbing support.
5246 * crt_noglob.c: New file. Turn off file globbing support.
5247 * ctype_old.c: New file. Wrappers for functions that don't
5249 * dirent.c: New file. Directory routines readdir, opendir, closedir.
5250 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
5251 * dllmain.c: New file. A stub DllMain function.
5252 * hugeval.c: New file. A gross hack to define HUGE_VAL.
5253 * init.c: New file. Common code to initialize standard file
5254 handles and command line arguments.
5255 * main.c: New file. A main for programs that only call WinMain.
5256 * mcrt0.c: New file. Default crt0 for mingw32.
5257 * oldnames.c: New File. Wrappers for functions that don't
5259 * string_old.c: New File.
5260 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
5261 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
5262 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
5263 * include/sys/types.h: New header file for mingw.
5264 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
5265 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
5266 utime.h,values.h,varargs.h}: New header files for mingw.
5267 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
5268 timeb.h,unistd.h}: New header files for mingw.
5269 * Makefile.in,configure.in: Build and configure support.
5270 * configure: Generated from autoconf 2.12 with Cygnus patches.