1 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Correct C++ compilation anomaly with hypotf() in cmath header.
5 * include/math.h: Add copyright notice; generally tidy layout.
6 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
7 (hypotf): Delete inline implementation; it did not properly handle
8 range errors, and was uncompilable with optimization when any g++
9 option implying __STRICT_ANSI__ conformity was specified.
10 (_MATH_H_): Rename this multiple inclusion guard...
11 (_MATH_H): ...to this.
13 * mingwex/math/hypot_generic.c: New file; it implements...
14 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
15 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
17 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
19 Prepare and tag all files for release of mingwrt-3.21.1.
21 * configure.ac (AC_INIT): Adjust package version argument.
22 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
23 (__MINGW32_VERSION): ...increment this to match.
25 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
27 Refactor to avoid possible time_t conflicts across headers.
29 * include/parts/time.h (struct timespec): Make it more descriptive of,
30 and better able to accommodate, potential ambiguity relating to...
31 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
32 whence they may be identically imported into each of...
33 * include/sys/types.h include/time.h include/wchar.h: these; delete
34 duplicate typedefs, and import accordingly.
36 * include/sys/types.h: Add licence; general comment additions.
37 (_TYPES_H_): Rename multiple inclusion guard macro...
38 (_SYS_TYPES_H): ...to this.
40 * include/time.h: Add licence; general comment/layout adjustments.
41 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
42 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
43 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
44 (_TIME_H_): Rename multiple inclusion guard macro...
45 (_TIME_H): ...to this.
47 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
48 (struct timespec): ...of this.
50 * include/wchar.h: Add licence; general comment/layout adjustments.
51 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
52 [GCC] (system_header): Add pragma, identifying header as such.
53 (_WCHAR_H_): Rename multiple inclusion guard macro...
54 (_WCHAR_H): ...to this.
56 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
58 Remove obsolete varargs.h header file.
60 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
61 a GCC header which is no longer supported, and was always intended for
62 ultimate removal; now is the long overdue time to do so.
64 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
66 Correct improper unistd.h function attribute declarations.
68 * include/unistd.h (_cdecl): Correct usage throughout; should be...
71 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
73 Fix GLOB_DOOFFS initialization bug.
75 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
76 (gl_data->gl_offs): ...this is properly initialized to zero.
78 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
80 Tag all files for release of mingwrt-3.21.
82 * include/_mingw.h: Adjust version accordingly.
84 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
86 Improve usage notes in stdlib.h, for mkstemp() function.
88 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
89 an original comment, explaining the need to use _O_TEMPORARY, from...
90 * mingwex/mkstemp.c: ...here; delete trailing white space.
92 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
94 Eliminate some potential definition inconsistencies.
96 * include/stdio.h: Cosmetic formatting change, relating to...
97 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
98 unconditionally; this allows the compiler to check for consistency
99 with their primary definitions in stdio.h
101 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
103 Suppress expected warning diagnostics in LIBIMPL builds.
105 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
106 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
107 GCC flag to supress warnings relating to deprecated declarations.
109 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
111 Provide more POSIX conforming sleep() functions.
113 * include/sys/types.h (useconds_t): Make it explicitly long; int may
114 be okay, but doesn't guarantee enough bits; mark as deprecated, since
115 POSIX has declared it "obsolete", and no longer specifies it.
117 * mingwex/usleep.c: Delete file; it provided an implementation of...
118 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
119 its error handling was hopelessly broken; replace it with...
120 * mingwex/nsleep.c: ...this new file; it implements...
121 (__mingw_sleep): ...this generic helper function; it supports sleep
122 capability with interval specification to nanosecond precision.
124 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
125 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
126 (sleep, nanosleep): ...these current POSIX functions, and also...
127 (usleep): ...this obsolete one; mark it as deprecated.
129 * include/parts: New directory; it is intended to host partial header
130 implementations, for content which must be shared among arbitrary sets
131 of multiple standard header files.
133 * include/parts/time.h: New file; nominally declaring time.h content.
134 (struct timespec): Declare it; it is currently used within unistd.h,
135 to facilitate the __CRT_INLINE implementation of nanosleep().
137 * Makefile.in (libmingwex.a): Remove reference to...
138 (usleep.$OBJEXT): ...this; replace it with a reference to...
139 (nsleep.$OBJEXT): ...this alternative.
140 (mingwrt-includedirs): Add prerequisite to create...
141 ($includedir/parts): ...this new directory; it is populated by...
142 (install-mingwrt-headers): ...this rule; add requisite command.
144 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
146 Delete an unnecessary Unicode wrapper file.
148 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
149 UTF-16LE API from dirent.c, without any need for this wrapper.
151 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
153 Some further inline function rationalization.
155 * include/io.h (_CRTALIAS): Replace all references...
156 (__CRT_ALIAS): ...using this syntactically preferred form.
157 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
158 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
160 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
161 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
163 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
164 * mingwex/ftruncate.c: Likewise.
166 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
167 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
169 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
171 Some POSIX feature test adjustments.
173 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
174 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
175 (mkdtemp): This didn't become available until SUSv4, so requires...
176 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
178 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
180 Another CRT_INLINE function implementation rationalization.
182 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
183 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
184 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
186 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
187 (libmingwex.a): Delete obsolete dependency on...
188 (imaxabs.$OBJEXT): ...this.
190 * mingwex/imaxabs.c: File is now redundant; delete it.
192 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
194 More rationalization of CRT_INLINE function implementations.
196 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
197 (ftello64): Add __LIBIMPL__ specification for extern implementation.
198 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
200 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
201 * mingwex/stdio/ftell064.c: Likewise.
203 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
204 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
206 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
208 Don't implicitly define _POSIX_C_SOURCE too early.
210 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
211 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
212 that it is not accidentally activated by implied _POSIX_C_SOURCE.
214 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
216 Correct complex arcsin computation per issue [#2245].
218 * mingwex/complex/casin_generic.c: New file; it replaces...
219 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
220 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
222 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
224 Correct complex square root computation per issue [#2246].
226 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
227 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
228 (hypot): ...this libmoldname.a indirection.
230 * mingwex/complex/csqrt_generic.c: New file; it replaces...
231 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
232 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
234 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
236 Adjust header guards to resolve issue [#2244].
238 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
239 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
240 ...when any of these prevail, or as appropriate to correspond with...
241 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
243 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
244 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
245 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
246 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
248 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
250 Add implementation of mkstemp() and mkdtemp() functions.
252 * mingwex/cryptnam.c: New file; it implements...
253 (__mingw_crypto_tmpname): ...this helper function; it generates a
254 cryptographically secure sequence of characters, used as the random
255 component in temporary file and directory names.
257 * mingwex/mkstemp.c: New file; it implements...
258 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
260 * mingwex/mkdtemp.c: New file; it implements...
261 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
263 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
264 function implementation, with LIBIMPL extern semantics, in terms of...
265 (__mingw_mkstemp): ...this; also declare prototype, and define...
266 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
267 (_MKSTEMP_SETMODE): New macro; define it, also providing...
268 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
269 (mkdtemp): Declare prototype; provide inline implementation, with
270 JMPSTUB extern semantics, in terms of...
271 (__mingw_mkdtemp): ...this; declare prototype.
273 * Makefile.in (libmingwex.a): Add dependency rule, to include...
274 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
276 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
278 More JMPSTUB rationalization of inline functions.
280 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
281 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
282 appropriate MSVCRT.DLL equivalent entry point.
284 * mingwex/_Exit.c: File is now redundant; delete it.
285 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
286 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
288 * Makefile.in (jmpstub_awk_script): Add support for...
289 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
290 (libmingwex.a): Remove dependencies on deleted files, namely...
291 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
292 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
294 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
296 Correct omission of complex conjugate functions from libmingwex.a
298 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
299 (creal, crealf, creall): Likewise, for consistency of implementation.
300 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
302 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
303 declarations; they should be interpreted analogously to __CRT_ALIAS.
304 (libmingwex.a): Remove object file references for functions which are
305 now declared as LIBIMPL, and sort the remainder in ASCII collating
306 order; deleted function references comprise the set consisting of...
307 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
308 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
309 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
311 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
312 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
313 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
314 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
315 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
317 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
319 Back-port improved asinh() implementation from 4.0-dev branch.
321 * mingwex/math/asinh_generic.c: New file; it replaces...
322 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
323 ...all of these; delete them.
325 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
327 Enable remake of lost LIBIMPL object files.
329 * Makefile.in (libimpl_remake): New macro; define it, and...
330 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
332 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
334 Implement more robust _get_output_format fallback handling.
336 * mingwex/ofmt.c: New file; it implements...
337 (__mingw_output_format_flag): ...backing store, used by...
338 (__mingw_get_output_format, __mingw_set_output_format): ...these
339 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
340 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
341 version specific Microsoft APIs, which are also supported by some
342 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
343 (__mingw_get_output_format_fallback): Implement; it is aliased to...
344 (__mingw_set_output_format_fallback): ...this; together they provide
345 the emulation support for the preceding pair of functions, when they
346 are not available within the run-time platform MSVCRT.DLL
347 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
348 Implement them; they wrap, and if necessary emulate...
349 (_get_printf_count_output, _set_printf_count_output): ...these.
350 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
351 (__mingw_set_printf_count_output_fallback): ...this; together they are
352 required to support emulation of the preceding pair of functions, when
353 they are not available within the run-time platform MSVCRT.DLL
355 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
356 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
357 (__mingw_get_output_format, __mingw_set_output_format)
358 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
359 Unconditionally declare their prototypes, for subsequent inline use.
360 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
361 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
362 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
363 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
364 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
365 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
366 represent a compilable token.
368 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
369 _get_output_format; consult __mingw_output_format_flag directly.
371 * ofmt_stub.s: No longer required; delete it.
373 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
374 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
375 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
376 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
377 all are compiled from ofmt.c
379 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
381 Do some more essential build tree clean up.
383 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
384 in the way of a successful rebuild from clean.
386 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
388 Implement wrappers for emulation of POSIX dlfcn API.
390 * include/dlfcn.h: New file; it declares the API.
391 * mingwex/dlfcn.c: New file; implement it, with access via...
392 (__mingw_dlfcn): ...this publicly addressable vector table.
394 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
395 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
396 (__LIBIMPL__): ...this automatic interface generator; implement it.
397 (libstub_refnames): New macro; it is adapted from and replaces...
398 (jmpstub_refs): ...this; when it is then invoked twice to build...
399 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
400 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
401 (libimpl_awk_script): New inline script; it handles automated builds
402 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
403 (libimpl_sed_script): New inline script; it prepares intermediate C
404 source code for LIBIMPL interfaces, as required to satisfy these...
405 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
406 (LIBIMPL_CFLAGS): New macro; define it.
408 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
410 Move libgen functions to __mingw_ pseudo-namespace.
412 * mingwex/dirname.c (dirname): Rename function, as implemented...
413 (__mingwex_dirname): ...to this.
415 * mingwex/basename.c (basename): Rename function, as implemented...
416 (__mingwex_basename): ...to this.
418 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
419 prototypes, matching and augmenting original declarations for...
420 (dirname, basename): ...these; reimplement as inline aliases, with
421 __JMPSTUB__ references to the renamed implementation entry points.
423 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
425 Implement new command line argument globbing strategy.
427 * include/_mingw.h: Backport feature defines from master...
428 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
429 constants; define them. They select the preferred globbing algorithm.
430 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
431 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
432 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
433 they enable optional additional features supported by this algorithm.
434 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
436 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
438 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
439 * setargv.c: ...new file; it implements the initialization mechanism
440 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
441 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
442 it invokes the algorithm via an API similar to that described by MSDN,
443 while continuing to support our original _CRT_glob interpretation.
444 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
445 algorithm, via the MSDN-alike API, by calling back to...
447 * crt1.c (_mingw32_init_mainargs): ...this original function, now
448 relocated to here, as a publicly addressable function; formerly...
449 (__mingw_CRTStartup): ...called directly from here, we now redirect
450 the call through _setargv(), whence it may be called indirectly.
452 * init.c: Redundant file; delete it. It originally provided...
453 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
454 original static attribute removed, to allow global addressing.
456 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
458 Backport glob implementation from master to legacy.
460 * include/glob.h: New file; copy it from master branch.
461 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
462 (glob, globfree): ...each of these, respectively.
464 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
465 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
466 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
467 (accept_glob_nocheck_match): New static function; it adds support for
468 avoidance of globbing on patterns with no globbing token, so avoiding
469 the case transliteration effect reported as MinGW-Bug #2106.
470 (glob_match): Use it.
472 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
474 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
476 Implement conventionally named dirent function trampolines.
478 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
479 which redirects a conventionally named function call to its __mingw_
480 pseudo-namespace implementation.
482 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
483 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
484 appropriate protocol for compiling *.sx files, (supported natively by
485 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
487 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
488 yet provide it, so we define it ourselves; deploy it for *.sx files.
489 (Makefile.stub): New sinclude file; create it dynamically, using...
490 (jmpstub_awk_script): ...this new inline script, which is based on...
491 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
492 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
493 (mostlyclean-local): Remove Makefile.stub; do likewise...
494 (Makefile): ...when remaking this, to ensure that both will be
497 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
499 Make dirent implementation namespace and time_t clean.
501 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
502 macros; define them. They facilitate identification of symbols which
503 must be compiled with `extern "C"' binding, when compiling C++ code.
504 (__CRT_ALIAS): New macro; define it. It is intended to replace...
505 (_CRTALIAS): ...this, which is to be considered as deprecated.
506 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
507 __CRT_ALIAS build hints, while remaining transparent to GCC.
508 (UNICODE, _UNICODE) [user defined]: Define consistently.
510 * mingwex/dirent.c: Reimplement; (this is a back-port from the
511 4.0-dev branch, with additional ABI changes to improve stability).
512 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
513 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
514 Add `__mingw_' prefix to all publicly exposed symbol names.
515 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
516 implemented functions; they replace Microsoft's ambiguously defined
517 _findfirst, _findnext, and _findclose, so avoiding ABI instability
518 resulting from the ambiguous size of Microsoft's time_t.
520 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
521 removing unnecessary time_t and file size fields; (our replacements
522 for _findfirst, and _findnext do not require them to be present).
523 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
524 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
525 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
526 Adjust prototypes, making them inline aliases for public symbols which
527 are now qualified by the `__mingw_' prefix; add build hints to support
528 compilation of addressable stubs, with the original symbol names.
529 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
530 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
531 BSD compatibility, but are fundamentally unsupported on MS-Windows).
532 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
533 New macros; define them. (These show availability of optional fields
534 within the dirent struct, which client code may wish to access).
536 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
538 Correct improper naming of assembly language source files.
540 * mingwex/math/*.S: Rename all files with this extension...
541 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
542 not extended `assembler-with-cpp' as implied by the former extension);
543 adjust all internal `.file <name>' references accordingly.
545 * Makefile.in (vpath %.S): Adjust reference to locate files....
546 (vpath %.s): ...now renamed thus.
548 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
550 Streamline the build system infrastructure.
552 * configure.ac: New file; it replaces...
553 * configure.in: ...this; (name is obsolete); delete it.
555 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
556 make invocations, when processing subdirectories, and add automatic
557 dependency tracking for all generated files.
559 * configure: Delete it; as a generated file, it doesn't belong in SCM.
561 * mingwex/Makefile.in: No longer required; delete it.
562 * profile/Makefile.in: Likewise.
564 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
565 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
567 * jamfile: Delete it; it hasn't been updated in ages, is likely no
568 longer relevant, and I have no desire to maintain it.
570 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
572 * include/_mingw.h: Increment version to 3.20.
574 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
576 * tlsmthread.c: Update to reflect changes in tlssup.c.
577 * tlssup.c: code clean-up.
579 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
581 * include/_mingw.h: Increment version to 3.19.
583 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
585 * include/float.h: Modify guard to accomodate CLang.
587 Thanks to Ruben Van Boxem for the report.
589 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
591 * tlssup.c: Remove mingwm10.dll fallback.
593 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
595 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
597 Thanks to bvassche for the report.
599 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
601 Correct checking for short option matches in getopt_long_only().
603 * mingwex/getopt.c (getopt_verify): New static inline function.
604 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
605 possible short option match after failing to match, or ambiguously
606 matching as a long option.
608 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
610 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
612 Thanks to cgf for the report.
614 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
616 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
617 compiles with __STRICT_ANSI__.
619 Thanks to Felipe Contreras for the report.
621 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
623 * include/stdlib.h (strtod): Remove possible static declaration to resolve
626 Thanks to Tobias Burnus for the report.
628 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
630 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
631 by wrapping the functions in brackets.
633 Thanks to Kai Tietz for the report.
635 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
637 * Makefile.in: Add support for msvcr100.dll.
638 * msvcrt.def.in: Ditto.
640 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
642 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
643 not always available, go the long way and use the explicit named union
644 members, which are also declared in winnt.h.
646 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
648 * mingwex/isblank.c: Fix typo in declaration.
650 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
652 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
653 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
654 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
655 is included before <ctype.h>.
657 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
659 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
661 Thanks to Jim Bell for the report and Greg Chicares for the fix.
663 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
665 Correct hexadecimal formatting of double and long double values.
667 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
668 (__pformat) [A format]: Cast double values to long double, and use...
669 (__pformat_xldouble): ...this instead, with corrected adjustment of
670 exponent and alignment of mantissa, when formatting subnormals.
672 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
674 * include/dirent.h (dd_handle): Define as intptr_t.
676 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
678 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
681 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
683 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
684 semantically identical MAX_PATH; correct value is 260.
686 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
688 Accept that mingwrt headers are not guaranteed to precede GCC's in the
689 system include search path; (issue reported by Mark Brand).
691 * include/float.h: Add multiple inclusion guard around...
692 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
693 only when this define does not indicate that it has already been seen;
694 update comments to document rationale; move it within the scope of...
695 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
696 GCC's float.h, after an appropriate complementary modification, need
697 not perform a further include path search when this implementation
698 specific extension has already been processed.
700 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
702 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
703 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
704 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
705 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
706 _findnexti64): Correct definition.
708 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
710 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
712 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
714 * include/_mingw.h: Increment version to 3.18.
716 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
718 * include/stdio.h: (_vscprintf, _vscwprintf)
719 * include/tchar.h: (_vsctprintf)
721 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
723 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
724 (initial implementation)
726 * new type: __time32_t
728 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
729 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
730 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
732 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
733 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
734 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
735 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
736 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
737 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
738 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
739 _wstat32i64, _wstat64i32,_wutime32
741 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
742 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
743 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
744 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
745 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
747 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
749 Implement TLS Callback.
751 * tlsmcrt.c: New file.
752 * tlsmthread.c: Ditto.
755 * Makefile.in: Include new files.
756 * crt1.c: Implement TLS Callback.
758 * mthr_stub.c: Remove.
760 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
762 * include/_mingw.h: Increment version to 3.17.
764 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
766 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
767 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
769 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
771 * include/io.h (_open_osfhandle): Correct definition.
773 Thanks to Alexander Shaduri for the information.
775 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
777 Final sync of pseudo-reloc.c with mingw64 and cygwin
778 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
779 regarding error messages.
781 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
783 Honor DESTDIR for winsup/mingw and winsup/w32api.
784 Detect and report error if installation paths are win32
785 format, but DESTDIR is non-empty.
787 * Makefile.in (DESTDIR): Honor per convention.
788 (need-DESTDIR-compatibility): New macro; define it and a
790 (fail-DESTDIR-compatibility): New dependency goal.
791 (install-dirs): Require need-DESTDIR-compatibility.
792 * mingwex/Makefile.in (DESTDIR): Honor per convention.
793 (need-DESTDIR-compatibility): New macro; define it and a
795 (fail-DESTDIR-compatibility): New dependency goal.
796 (install): Require need-DESTDIR-compatibility.
797 * profile/Makefile.in: Ditto.
799 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
801 Sync pseudo-reloc.c with mingw64
802 * psuedo-reloc.c: Remove unnecessary includes.
803 Forward declare _pei386_runtime_relocator.
804 Decorate _image_base__ symbol with macro for
805 mingw64 compatibility. Whitespace changes.
806 (__print_reloc_error): Renamed to...
807 (__report_error): This. "Returns" void, and
808 always aborts. Now used on all platforms.
809 (__write_memory): Remove special case error handling
810 for different platforms - always call __report_error.
811 (do_pseudo_reloc): Remove special case error handling
812 for different platforms - always call __report_error.
813 (_pei386_runtime_relocator): Decorate _image_base__
814 symbol with mingw64 compatibility macro.
816 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
818 Sync pseudo-reloc.c with cygwin/lib/
819 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
820 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
821 for fatal error handling that is consistent with cygwin process
822 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
823 is unique to each address space, across fork().
824 [CYGWIN] (__print_reloc_error): New function for reporting
825 errors in a manner supported by cygwin at this early stage of
826 the process life-cycle.
827 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
828 performed only once for each address space, but are repeated
829 after fork() in the new address space.
830 [MINGW] (__write_memory): Ensure that b is always initialized
831 by call to VirtualQuery, even if -DNDEBUG.
833 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
835 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
836 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
838 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
839 (PFORMAT_HASHED): ...this formatting attribute; honour only user
840 specified format qualifiers, except in special case...
841 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
842 (PFORMAT_ZEROFILL): ...this default formatting attribute...
843 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
846 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
848 Avoid multiple link time definitions of _printf() for C++;
849 (problem reported by Alexander Shaduri, via MinGW-users ML).
851 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
852 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
854 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
856 * include/_mingw.h: Increment version to 3.16.
858 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
860 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
861 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
862 __fp_unordered_compare): Add prototypes.
863 * include/stdio.h (vsnwprintf): Add prototype.
864 * include/wchar.h (vsnwprintf): Add prototype.
865 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
866 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
868 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
870 Correct disposition of wchar_t output in printf().
872 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
873 (argval): ...this, in inner scope, with singular type `wchar_t'; use
874 it to pass one wchar to __pformat_wputchars(), for output.
876 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
878 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
880 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
882 Convert to monolithic configuration procedure.
884 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
885 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
886 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
887 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
888 (CRT0S): Relocate from `profile'; define it as appropriate.
889 (LIBM_A): Define and AC_SUBST it unconditionally.
890 (AC_CONFIG_SUBDIRS): Remove; none to configure.
891 (AC_OUTPUT_FILES): Add `Makefile' for each of...
892 (mingwex, profile): ...these subdirectories.
894 * configure: Regenerated.
896 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
897 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
898 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
899 (SUBDIRS): Define explicitly, to run recursive `make' in...
900 (mingwex, profile): ...these; simplify build commands...
901 (rootme, rootsrc): ...without these shell variables.
902 (all, subdirs): Delete redundant build commands.
903 (FIXME): Flag various issues for follow up.
905 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
906 (top_srcdir): ...this new macro; let AC_SUBST define it.
907 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
908 (Makefile): Make it depend on...
909 (top_builddir/config.status): ...this, itself depending on...
910 (top_srcdir/configure): ...this.
911 (FIXME): Flag various issues for follow up.
913 * mingwex/aclocal.m4: File no longer required; delete it.
914 * mingwex/configure mingwex/configure.in: Likewise.
916 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
917 (top_srcdir): ...this new macro; let AC_SUBST define it.
918 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
919 (Makefile): Make it depend on...
920 (top_builddir/config.status): ...this, itself depending on...
921 (top_srcdir/configure): ...this.
922 (FIXME): Flag various issues for follow up.
924 * profile/aclocal.m4: File no longer required; delete it.
925 * profile/configure profile/configure.in: Likewise.
927 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
929 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
930 to complaints that it causes issues.
932 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
934 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
936 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
938 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
939 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
940 to all inline functions.
942 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
944 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
947 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
949 * cpu_features.c: replace gcc-specific construct with portable alternative
950 and match the code a few lines above.
951 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
953 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
955 * include/_mingw.h: Changes required for PCC compiler.
957 2009-07-18 Jeff Lu <jll544@yahoo.com>
959 * mingwex/usleep.c: round up to next ms
961 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
963 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
964 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
965 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
966 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
968 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
970 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
972 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
974 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
975 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
976 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
977 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
978 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
979 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
980 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
981 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
982 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
983 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
984 sources as of Apr. 20, 2009. Update further to match the sources in
985 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
986 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
987 double/ulong union from U to dbl_union for better grepping and white-
990 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
992 * include/stdlib.h (_wtof): Define.
994 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
996 * include/stdint.h (int_fast8_t): Specify as signed char.
997 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
998 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1000 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1002 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1004 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1006 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1007 (Requested by Robert Riebisch)
1009 * mingwex/getopt.c (getopt_parse): Track external increments of...
1010 (optind): ...this global variable.
1012 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1014 * include/_mingw.h: Increment version to 3.15.2.
1016 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1018 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1019 Also add tentative support for BSD specific `optreset' feature.
1021 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1022 (__mingw_optreset): ...this new global variable.
1024 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1025 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1028 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1030 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1031 Correct mishandling of invalid characters in printf() format specs.
1033 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1034 (backtrack): ...this new automatic variable, at start of each format
1035 conversion specification substring; use it to backtrack, and print the
1036 substring literally, if any invalid character is encountered.
1038 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1040 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1041 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1042 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1043 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1044 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1045 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1046 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1047 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1048 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1049 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1050 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1051 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1052 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1053 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1055 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1057 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1059 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1061 Correct some binary distribution packaging defects.
1063 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1064 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1065 intermediate goals; they make packages of files, as specified by...
1066 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1067 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1069 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1071 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1072 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1074 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1075 of radix point conditional on precision != 0 or `#' flag specified.
1077 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1079 Fix MinGW-Bug [2160227]
1080 Eliminate conflicting declarations and implementations of scalb().
1082 * moldname.def.in (scalb): Comment out of EXPORTS list.
1083 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1084 with GCC's built-in declaration.
1086 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1088 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1090 * mingwex/Makefile.in: Ditto.
1091 * profile/Makefile.in: Ditto.
1092 * configure.in: Record mingw front-end for building under Cygwin.
1093 * mingwex/configure.in: Ditto.
1094 * profile/configure.in: Ditto.
1095 * configure: Regenerate.
1096 * mingwex/configure: Ditto.
1097 * profile/configure: Ditto.
1099 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1101 Use de-facto standard Makefile goals to invoke test suite.
1103 * Makefile.in: Some minor formatting adjustments.
1104 (test_headers): Unconventionally named goal renamed to...
1105 (check-headers): ...this; make it a prerequisite of...
1106 (check): ...this new conventionally named goal.
1108 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1110 Make strtod() inline definition C89 compliant.
1111 (Issue reported by Ilya Shestopalov and Ian Puleston)
1112 (Correction identified by Danny Smith)
1114 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1115 reformat inline function definition.
1117 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1119 * include/_mingw.h: Increment version to 3.15.1 and introduce
1120 __MINGW32_PATCHLEVEL variable.
1122 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1124 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1125 (Reported by Christian Franke)
1127 * mingwex/getopt.c (optind): Make global variable value conform to
1128 behaviour specified by POSIX; do not use it for internal state in...
1129 (getopt_parse): ...this static function; use...
1130 (optbase): ...this new static local variable instead.
1131 (getopt_resolved): Update `optind' as required.
1133 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1135 Improve package identification in configure script.
1137 * configure.ac (AC_INIT): Redefine parameters...
1138 (PACKAGE_NAME): Set to `MinGW Runtime'.
1139 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
1140 (PACKAGE_TARNAME): Set to `mingwrt'.
1141 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
1142 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
1143 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
1145 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
1146 (PACKAGE_TARNAME): ...this.
1148 * configure: Regenerated.
1150 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1152 Fix MinGW-Bug [2125708].
1153 (Reported by Alexandr Zamaraev).
1155 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
1156 not wanted here; remove it; replace it by...
1157 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
1158 (_invalid_parameter_handler): ...this function typedef.
1160 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
1162 * Makefile.in: Don't include host_os as part of snapshot filename.
1164 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1166 Fix MinGW-Bug [2119504].
1167 (Reported by Peiyuan Song).
1169 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
1170 (*retindex): ...this already correctly assigned return variable...
1171 (opt[index].val): ...with this; this should have been assigned to...
1172 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
1174 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1176 Fix MinGW-Bug [2117379].
1177 (Reported by Peiyuan Song).
1179 * include/stdio.h (__argv): Replace all references in function
1180 prototype argument lists and inline function local variables, with ...
1181 (__local_argv): ...this, to avoid potential conflict with ...
1182 * include/stdlib (__argv): ...this #defined macro.
1184 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1186 * include/_mingw.h: Increment version to 3.15.
1188 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1190 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
1191 naming standard for Cygwin.
1193 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1195 Reimplement getopt.c to add getopt_long_only() function.
1197 (N.B. this reimplementation removes support for BSD/Mac-OS-X
1198 `optreset' nonsense; user code should set `optind = 0' instead,
1199 to reinitialise option scanning).
1201 * mingwex/getopt.c: Delete all content; reimplement it.
1202 * include/getopt.h: Likewise.
1204 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
1205 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
1207 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1209 Implement conditional replacement for printf() family functions.
1211 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
1212 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
1213 flag for use in user specified __MINGW_FEATURES__ attribute.
1214 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
1215 currently unused: reserved as components of...
1216 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
1217 a __MINGW_FEATURES__ enhancement to setlocale().
1219 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
1220 (__mingw_fprintf, __mingw_vfprintf): Likewise.
1221 (__mingw_sprintf, __mingw_vsprintf): Likewise.
1222 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
1223 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
1224 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
1225 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
1226 usage; link to DLL import stub, importing from MSVCRT.
1227 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1228 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1229 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
1230 locally defined static stub implementation.
1231 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1232 __mingw_fprintf and __mingw_sprintf respectively.
1233 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
1234 static inline implementation for C++ and GNU C, or locally defined
1235 static stub otherwise.
1236 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1237 __mingw_vfprintf and __mingw_vsprintf respectively.
1239 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1241 Avoid access violations, passing NULL to printf( "...%s..." );
1242 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
1244 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
1245 for argument value, if caller passes a NULL pointer.
1246 (__pformat_wcputs): Likewise, substitute L"(null)".
1248 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1250 Add missing dependencies for building libmingwex.a.
1252 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
1253 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
1254 (pformat.h): ...this.
1256 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1258 Add replacements for remaining members of printf() family.
1260 * mingwex/stdio/printf.c: New file.
1261 * mingwex/stdio/fprintf.c: New file.
1262 * mingwex/stdio/sprintf.c: New file.
1263 * mingwex/stdio/vprintf.c: New file.
1264 * mingwex/stdio/vfprintf.c: New file.
1265 * mingwex/stdio/vsprintf.c: New file.
1267 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1268 (STDIO_OBJS): Add their corresponding object files.
1270 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1272 Replace __mingw_snprintf() with new generic family implementation;
1273 likewise, replace __mingw_vsnprintf().
1275 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
1276 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
1277 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1278 (GDTOA_DISTFILES): Remove mingw_snprintf.c
1279 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
1280 (GDTOA_OBJS): Remove mingw_snprintf.o
1281 (PFORMAT_CFLAGS): New macro; define it, as required by...
1282 (pformat.o): ...this new explicit build target.
1283 (snprintf.o, vsnprintf.o): Declare prerequisites.
1285 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
1287 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1289 Lay foundations for new printf() function family implementation.
1291 * ofmt_stub.s: New file; implement forward compatibility stub for...
1292 (_get_output_format): ...this MSVCR80.DLL and later function.
1294 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
1295 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
1296 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
1297 (lib%.a): Include ofmt_stub.o when import library does not already
1298 advertise availability of the _get_output_format() function;
1299 Add alias stubs for MINGW_REPL_FUNCS, such that...
1300 (__msvcrt_printf): ...is an alias for Microsoft's printf().
1301 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
1302 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
1303 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
1304 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
1305 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
1306 (clean): Add msvcr*.def.
1308 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
1309 * configure: Regenerated.
1311 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1313 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
1314 (_imp____mb_cur_max_dll): Likewise.
1316 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
1318 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
1319 * include/wchar.h (swprintf, vswprintf): Likewise.
1321 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1323 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
1324 (_get_output_format, _set_output_format): Add references.
1326 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
1327 (_get_output_format, _set_output_format): Declare prototypes.
1328 (_TWO_DIGIT_EXPONENT): Define.
1329 Some other minor formatting adjustments.
1331 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1333 [mingw-Bugs-1801641]
1334 * include/wchar.h (_wfdopen): Const-ify second arg.
1335 * include/stdio.h (_wfdopen): Likewise.
1336 Thanks to <tdragon at users dot sourceforge net>
1338 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1340 Avoid precision errors in round(), lround() and llround() functions.
1342 * mingwex/math/round_generic.c: New file; it replaces...
1343 * mingwex/math/round.c: ...this; delete it.
1344 * mingwex/math/roundf.c: ...and this; ditto.
1345 * mingwex/math/roundl.c: ...and this; ditto.
1347 * mingwex/math/lround_generic.c: New file; it replaces...
1348 * mingwex/math/lround.c: ...this; delete it.
1349 * mingwex/math/lroundf.c: ...and this; ditto.
1350 * mingwex/math/lroundl.c: ...and this; ditto.
1351 * mingwex/math/llround.c: ...and this; ditto.
1352 * mingwex/math/llroundf.c: ...and this; ditto.
1353 * mingwex/math/llroundl.c: ...and this; ditto.
1355 * mingwex/math/round_internal.h: New file; it provides generic common
1356 code, which is shared by `round_generic.c' and `lround_generic.c'; the
1357 implementation is based on techniques suggested by Danny Smith and
1360 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
1361 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
1362 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
1363 `round_generic.c' and `lround_generic.c'.
1364 (MATH_OBJS): Factor out files listed in...
1365 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
1366 macros; define them; specify dependencies and build rules; add to...
1367 (LIB_OBJS): ...this list.
1369 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
1371 [ mingw-Bugs-1961893 ]
1372 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
1373 mode to 2 for E format.
1375 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
1377 * include/stdlib.h: Fix strtod under C++.
1379 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
1381 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
1382 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
1384 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
1386 * include/sys/types.h (useconds_t): typedef.
1387 * include/unistd.h (usleep): Add prototype.
1388 * mingwex/usleep.c: New file.
1389 * mingwex/makefile.in: Add usleep source and object.
1391 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
1393 Make strtod() conform to C99.
1395 * include/stdlib.h (strtod): Declare this mingwex function, and...
1396 (_strtod): rename this MSVCRT counterpart.
1398 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
1400 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
1402 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
1404 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1406 * include/process.h: Include stdint.h for intptr_t definition.
1407 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
1408 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
1409 _spawnvpe): Return intptr_t.
1410 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
1411 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
1413 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
1415 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
1416 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
1417 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
1418 _wspawnvp, _wspawnvpe): Return intptr_t.
1420 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1422 * include/wchar.h (fwide): Return success code rather than failure in inline
1424 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
1425 code rather than failure.
1427 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
1429 * include/math.h (float_t, double_t): Define.
1431 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
1433 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
1434 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
1435 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
1437 2008-02-28 Joseph Myers <joseph@codesourcery.com>
1439 * include/complex.h: Don't condition contents on C99 or not
1442 2008-02-01 Brian Dessent <brian@dessent.net>
1444 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
1445 the different runtime versions.
1447 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
1449 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
1450 (mbsinit): Likewise.
1452 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1454 * include/_mingw.h: Increment version to 3.14.
1456 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1458 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
1459 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
1460 * mingwex/math/log10f.S: Correct issue with comments.
1461 * mingwex/math/log10l.S: Ditto.
1462 * mingwex/math/log1p.S: Ditto.
1463 * mingwex/math/log1pf.S: Ditto.
1464 * mingwex/math/log1pl.S: Ditto.
1465 * mingwex/math/log2.S: Ditto.
1466 * mingwex/math/log2f.S: Ditto.
1467 * mingwex/math/log2l.S: Ditto.
1468 * mingwex/math/logf.S: Ditto.
1469 * mingwex/math/logl.S: Ditto.
1471 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
1473 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
1475 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
1477 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
1478 from '_fsize_t' to '__int64' to be consistent with the other ...64
1479 structures and the value set there is 8 bytes not 4. Add guard for both
1480 as the are only used by functions available from 6.1 on.
1482 * include/malloc.h (_HEAP_MAXREQ): Define.
1483 (_aligned_offset_recalloc): Define.
1484 (_aligned_recalloc()): Define.
1486 * include/math.h: fixed a typo in a comment.
1487 (atanhf): Fixed declaration.
1489 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
1490 to '__int64' to be consistent with the other ...64 structures and the value
1491 set there is 8 bytes not 4. Added guard as this function is only used by
1492 functions available from 6.1 on.
1494 * include/sys/stat.h: some members of 'stat' were declared with types with
1495 a prefixed underscore, while the ones without the underscore should have
1496 been used. Added guard to '__stat64' as it is only used by functions
1497 available from 6.1 on. Added the wide character versions of the
1498 exec()/spawn() family for completion
1499 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
1502 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
1503 from 'long' to 'time_t'
1504 (__timeb64): moved declaration of structure directly before the declaration
1505 of the function '_ftime64()', so it is guarded as well
1507 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
1508 before the declaration of the functions using it, so it is guarded as well
1510 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
1512 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
1513 case. Add missing break in 's'/LEN_S case.
1515 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1517 Make snprintf() and vsnprintf() conform to C99.
1519 * include/stdio.h: Add note about incompatibility between...
1520 (snprintf, vsnprintf): These two mingwex functions, and...
1521 (_snprintf, _vsnprintf): these MSVCRT counterparts.
1523 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
1524 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
1526 * mingwex/stdio/snprintf.c: Delete.
1527 * mingwex/stdio/vsnprintf.c: Delete.
1529 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
1530 (vsnprintf): Alias to __mingw_vsnprintf.
1532 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1534 * include/_mingw.h: Increment version to 3.13.
1535 * Makefile.in: Reset CYGRELEASE to 1
1537 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1539 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
1540 resulting from incomplete removal of enclosing `for ...; do ...; done'
1541 loop from compound command; (reported by Greg Chicares).
1543 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
1545 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
1548 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
1550 [mingw-Bugs-1734142]
1551 * include/wchar.h (_wsystem) Declare.
1553 (_wgetenv): Declare.
1554 (_wsearchenv): Declare.
1555 (_wmakepath): Declare.
1556 (_wsplitpath): Declare.
1557 (_wfullpath): Declare.
1558 * include/stdlib.h (_wsystem) Declare.
1559 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
1560 _wfullpath): Move into _WSTDLIB_DEFINED guard.
1561 * include/tchar.h (_tsystem): New UNICODE mapping define.
1563 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
1565 * mingwex/gdtoa/mingw_snprintf.c: New file.
1566 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
1567 (GDTOA_OBJS): Add mingw_snprintf.o.
1569 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
1571 * msvcrt.def.in: Update comment.
1572 Exclude _ctype stub if using msvcr71.dll or newer.
1573 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
1574 * include/wctype.h: Likewise.
1576 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1578 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
1579 *include/dirent.h: Likewise.
1581 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1583 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
1584 * include/conio.h: Likewise.
1585 * include/ctype.h: Likewise.
1586 * include/direct.h: Likewise.
1587 * include/dos.h: Likewise.
1588 * include/errno.h: Likewise.
1589 * include/fenv.h: Likewise.
1590 * include/float.h: Likewise.
1591 * include/inttypes.h: Likewise.
1592 * include/io.h: Likewise.
1593 * include/libgen.h: Likewise.
1594 * include/locale.h: Likewise.
1595 * include/malloc.h: Likewise.
1596 * include/mbctype.h: Likewise.
1597 * include/mbstring.h: Likewise.
1598 * include/process.h: Likewise.
1599 * include/search.h: Likewise.
1600 * include/setjmp.h: Likewise.
1601 * include/signal.h: Likewise.
1602 * include/stdio.h: Likewise.
1603 * include/stdlib.h: Likewise.
1604 * include/string.h: Likewise.
1605 * include/time.h: Likewise.
1606 * include/wchar.h: Likewise.
1607 * include/sys/stat.h: Likewise.
1608 * include/sys/time.h: Likewise.
1609 * include/sys/timeb.h: Likewise.
1610 * include/sys/utime.h: Likewise.
1612 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1614 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
1616 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1618 Add POSIX binary tree search API.
1620 * mingwex/tfind.c: New file.
1621 * mingwex/tdelete.c: New file.
1622 * mingwex/tsearch.c: New file.
1623 * mingwex/twalk.c: New file.
1624 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
1625 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
1626 * include/search.h (tfind): Declare.
1633 (node_t): Define, on condition of _SEARCH_PRIVATE.
1635 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1637 * include/_mingw.h (__MINGW_NOTHROW): Define.
1639 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
1641 * include/stdio.h (vsnprintf): Remove inline definition.
1644 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
1646 * CRTfmode.c: Nit-pick comment fix.
1648 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
1650 * CRTfmode.c: Fix nested comment.
1652 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
1654 * include/string.h (strcasecmp): Fix typo in declaration prototype.
1656 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1658 * include/io.h (lseek64) : Add prototype.
1660 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1662 * include/string.h (strcasecmp): Add prototype.
1663 (strncasecmp): Add prototype.
1665 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
1667 * Makefile.in (CRT0S): Revert last change.
1668 * CRTfmode.c. Correct comment.
1670 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
1672 * Makefile.in (CRT0S): Add back CRTfmode.o.
1674 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
1676 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
1677 * include/io.h: Likewise.
1679 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
1681 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
1683 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
1685 * include/stdint.h (intptr_t): Fix typo.
1686 Thanks to Charles Wilson for report.
1688 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
1690 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
1691 Condition on _WIN64.
1692 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
1693 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
1694 (PTRDIFF_MIN): Define as INTPTR_MIN.
1695 (PTRDIFF_MAX): Define as INTPTR_MAX.
1696 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
1697 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
1699 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1701 * Makefile.in: Removed mansuffix variable. Changed mansection to support
1702 Cygwin man page location.
1704 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1706 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
1707 support Cygwin man page location.
1709 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1711 * Include/_mingw.h: Increment version to 3.12.
1713 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
1715 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
1717 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1719 * Makefile.in: Tweak srcdist to fix build issue.
1721 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1723 Add --enable-mingw-manpage-transform configure option.
1725 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
1726 * configure.in, Makefile.in: Use it.
1727 * configure: Regenerated.
1729 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
1731 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
1733 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1735 Add manpages for dirname and basename functions.
1737 * man: New directory.
1738 * man/dirname.man: New file; it sources both manpages.
1739 * Makefile.in: Add provisional rules to distribute them.
1741 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1743 * mingwex/basename.c: Make it work with path names containing
1744 multibyte character strings.
1745 * mingwex/dirname.c: Likewise.
1747 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
1749 * include/io.h (__mingw_access): New static inline wrapper to restore
1750 pre-Vista 'access (fname, X_OK)' behaviour.
1751 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
1753 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
1755 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
1757 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
1759 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
1761 * include/stdio.h (_unlink, unlink): Add prototypes.
1763 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
1765 * include/excpt.h: Replace "_try1" in comments with "__try1".
1767 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
1769 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
1770 (ALL_CXXFLAGS): Likewise.
1771 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
1772 (ALL_CXXFLAGS): Likewise.
1773 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
1774 (ALL_CXXFLAGS): Likewise.
1776 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
1778 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
1780 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
1782 Expose some more msvcr80.dll functions.
1783 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
1784 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
1785 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
1786 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
1788 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
1790 Expose some msvcr80.dll functions.
1791 * include/stdlib.h (_set_abort_behavior): Add prototype.
1792 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
1793 _set_abort_behavior mask argument.
1794 (_invalid_parameter_handler): Add typedef.
1795 (_set_invalid_parameter_handler): Add prototype.
1796 * include/stdio.h (_get_printf_count_output): Add prototype.
1797 (_set_printf_count_output): Add prototype.
1798 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
1799 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
1801 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
1803 * include/_mingw.h (CRT_INLINE): Correct typo.
1805 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
1807 * include/io.h (X_OK): Define to F_OK.
1809 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
1811 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
1812 unconditionally. Change comment.
1813 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
1815 * include/io.h (rename): Declare.
1818 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1820 * include/libgen.h: New file; required by...
1821 * mingwex/basename.c, mingwex/dirname.c: New files.
1822 * mingwex/Makefile.in (DISTFILES): Add them...
1823 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
1824 (Dependencies): Typo; s/Dependancies/Dependencies/
1826 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1828 * Makefile.in (VERSION): Let configure define it.
1830 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
1831 * configure.in: Use it.
1832 Correct quoting of autoconf macro arguments throughout.
1833 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
1834 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
1835 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
1836 (AC_CONFIG_FILES): Add, to generate Makefile.
1838 * configure: Regenerated.
1840 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
1842 * Makefile.in: Add aclocal.m4 to source release.
1843 * mingwex/Makefile.in: Ditto.
1844 * profile/Makefile.in: Ditto.
1846 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1848 * Include/_mingw.h: Increment version to 3.11.
1849 * Makefile.in: Ditto.
1851 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
1853 [ mingw-Bugs-1590623 ]
1854 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
1857 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
1859 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
1860 correctly parenthesized.
1862 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
1864 * mingwex/mb_wc_common.h (get_codepage): Get it
1867 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
1869 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
1871 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
1873 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
1876 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
1878 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
1881 2006-09-11 Christopher Faylor <cgf@timesys.com>
1883 * Makefile.in: Semi-revert 2006-08-30 change.
1885 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1887 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
1888 (__MINGW_IMPORT): Ansify.
1889 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
1890 __MINGW_ATTRIB_DEPRECATED.
1892 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1894 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
1895 Redundant macros; deleted.
1897 * configure.in (LIB_AC_PROG_CC): Replaced by...
1898 (AC_PROG_CC): ...this.
1900 * configure: Regenerated.
1902 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
1904 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
1905 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
1906 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
1908 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
1910 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
1911 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
1912 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
1913 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
1915 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
1916 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
1917 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
1918 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
1919 * mingwex/wcstold.c: Avoid using strtold internals.
1920 * mingwex/wcstof.c: Rewrite.
1921 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
1922 (GDTOA_OBJS): Add to library.
1923 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
1924 (STDLIB_OBJS): Remove.
1925 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
1926 (Q8_OBJS): Add wcstof.o wcstold.o.
1927 * include/stdlib.h (strtof): Remove inline definition.
1929 * include/wchar.h (wcstof): Remove inline definition.
1931 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
1933 * Makefile.in: Add with_cross_host to allow more granular checks.
1934 Set installation directories accordingly. Override CC setting only
1935 if building a Cygwin target.
1936 * aclocal.m4: Regenerate.
1937 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
1938 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
1939 Test AC_ALLOCA only if building on a native system.
1940 * configure: Regenerate.
1942 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1944 * include/ctype.h: Fix typo.
1946 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
1948 * include/ctype.h: Expose iswblank if __cplusplus.
1949 * include/wctype.h: Expose iswblank if __cplusplus.
1951 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
1953 * include/ctype.h: Remove stray ')';
1955 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
1957 * include/ctype.h (_BLANK): Expand comment.
1958 (isblank): Add prototype and inline definition.
1959 (iswblank): Add prototype and inline definition.
1960 * include/wctype.h (iswblank): Add prototype and inline definition.
1961 * mingwex/isblank.c: New file.
1962 * mingwex/iswblank.c: New file.
1963 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
1965 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
1967 * include/math.h (__INFF,__INFL): Remove '#'.
1969 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
1971 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
1973 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
1975 Support SSE float environment in fenv.h functions.
1976 * cpu_features.c: New file.
1977 * cpu_features.h: New file.
1978 * crt1.c: Include "cpu_features.h".
1979 (__mingw_CRTStartup): Call cpu_features_init().
1980 * Makefile.in (MING_OBJS): Add cpu_features.c.
1981 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
1982 * include/fenv,h ( fenv_t;): Append __mxcsr field.
1983 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
1984 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
1985 (__MXCSR_ROUND_FLAG_SHIFT): New define.
1986 * mingwex/feclearexcept.c: Include "cpu_features.h".
1987 Handle SSE environment.
1988 * mingwex/fegetenv.c: Likewise.
1989 * mingwex/feholdexcept.c: Likewise.
1990 * mingwex/fesetenv.c: Likewise.
1991 * mingwex/fesetexceptflag.c: Likewise.
1992 * mingwex/fesetround.c: Likewise.
1993 * mingwex/fetestexcept.c: Likewise.
1994 * mingwex/feupdateenv.c: Likewise.
1995 * mingwex/fegetround.c: Add comment.
1997 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1999 * Include/_mingw.h: Increment version to 3.10.
2000 * Makefile.in: Ditto.
2002 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2004 * mingwex/math/tgamma.c (SQTPI): Add braces.
2006 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2008 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2009 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2011 * mingwex/math/sf_erf.c (erff): Initialize z.
2013 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2015 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2017 * Include/_mingw.h: Increment version to 3.10.
2018 * Makefile.in: Ditto.
2020 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2022 * include/sys/time.h (struct timezone): Define.
2023 * include/time.h: Correct comment about timezone.
2025 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2027 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2028 * configure: Regenerate.
2030 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2032 * configure: add srcdir as a possible location for install-sh.
2034 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2036 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2037 (_topendir): Use it.
2039 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2041 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2043 (gettimeofday): Add prototype.
2044 * mingwex/gettimeofday.c: New file.
2045 * mingwex/makefile.in: Add gettimeofday source and object.
2047 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2049 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2050 else global library variable.
2051 (HUGEVALF): Likewise.
2052 (HUGEVALL): Likewise.
2053 (INFINITY): Likewise.
2056 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2058 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2060 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2062 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2064 2006-05-24 Christopher Faylor <cgf@timesys.com>
2066 * configure.in: Update to newer autoconf.
2067 (thanks to Steve Ellcey)
2068 * mingwex/configure.in: Ditto.
2069 * profile/configure.in: Ditto.
2070 * configure: Regenerate.
2071 * mingwex/configure: Ditto.
2072 * profile/configure: Ditto.
2073 * aclocal.m4: New file.
2074 * mingwex/aclocal.m4: Ditto.
2075 * profile/aclocal.m4: Ditto.
2077 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2079 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2080 Use supplied codepage as arg to WideCharToMultiByte.
2082 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2084 * Makefile.in (libmsvcr80.a): Add import lib.
2085 (libmsvcr80d.a): Ditto.
2087 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2089 * Makefile.in: Bump cygwin build number.
2091 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2093 * Include/_mingw.h: Increment version to 3.9.
2094 * Makefile.in: Ditto.
2096 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2098 * include/limits.h (SSIZE_MAX): Define.
2099 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2101 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2103 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2104 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2106 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2108 * include/stddef.h: Remove.
2109 * include/stdarg.h: Remove.
2111 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2113 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2114 of result is positive when real part of arg == 0;
2115 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2116 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2118 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2120 * include/time.h (_time64): Correct prototype.
2122 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2124 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2125 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2126 to non-stop. Use "fnclex" to clear exception flags.
2128 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
2130 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
2131 Avoid raising FP exceptions.
2133 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2135 * include/stdlib.h (strtof): Add prototype. Uglify
2136 parameter names in inline definition.
2138 (_Exit): Uglify parameter names in inline definition.
2139 (llabs): Add prototype.
2140 (_set_error_mode): Add prototype and input defines.
2142 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2144 * mingwex/fe*.c: Revert previous changes.
2145 * include/fenv.h: Revert previous changes.
2147 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2149 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
2150 Do not return a value.
2151 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
2152 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
2153 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
2154 * mingwex/fegetenv.c (fegetenv): Likewise.
2155 * mingwex/fesetenv.c (fesetenv): Likewise.
2156 * mingwex/feupdateenv.c (feupdateenv): Likewise.
2157 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
2158 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
2161 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2163 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
2164 getting filelength for SEEK_END.
2166 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2168 * Include/_mingw.h: Increment version to 3.8.
2169 * Makefile.in: Ditto.
2171 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2173 * include/wctype.h (towupper, towlower): Change arg and return value
2175 * include/ctype.h (towupper, towlower): Likewise.
2177 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2179 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
2180 a diagnostic, guarded by #ifdef DEBUG.
2181 (__mingwthr_remove_key_dtor): Likewise.
2183 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2185 * moldname.def.in (sleep, beep, seterrormode): Remove.
2187 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2189 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
2190 (_MCOUNT_DECL): Use it.
2191 (MCOUNT): Save and restore eax, ecx, edx registers.
2192 * profile/mcount.c (_mcount): ANSI-fy.
2194 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2196 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
2197 guard __MINGW_ATTRIB macro definitions.
2198 * include/math.h (logb[fl]): Don't define inlines for
2199 GCC-4.0+ && __FAST_MATH__.
2200 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
2201 line-continuation backslashes.
2203 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
2205 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
2206 in GNUC version guard.
2208 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
2210 * crt1.c (_gnu_exception_handler): Handle illegal instruction
2211 OS exception as a signal if user has defined a SIGILL handler.
2213 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
2215 * mingwex/math/nexttoward.c: New file.
2216 * mingwex/math/nexttowardf.c: New file.
2217 * mingwex/math/nextafterl.c: Add nexttowardl alias.
2218 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
2220 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
2221 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
2224 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
2226 * mingwex/math/nextafterf.c (nextafterf): Correct
2228 * mingwex/math/nextafterl.c: New file.
2229 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
2230 (MATH_OBJS): Add nextafterl.o.
2231 * include/math.h (nextafterl): Uncomment prototype.
2233 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2235 * mingwex/math/erfl.c: New file.
2236 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
2237 (MATH_OBJS): Add erfl.o.
2238 * include/math.h (erfl, erfcl): Uncomment prototypes.
2240 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
2242 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
2243 #if (WCHAR_MAX <= WCHAR_MIN) is false.
2244 * include/stdint.h (WCHAR_MAX): Likwise.
2245 (WINT_MAX): Likewise.
2247 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
2249 * mingwex/math/signbit.c (__signbit): Make return value
2250 consistent with GCC's __builtin_signbit.
2251 * mingwex/math/signbitf.c (__signbitf): Likewise.
2252 * mingwex/math/signbitf.c (__signbitl): Likewise.
2253 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
2256 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
2258 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
2260 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
2261 Remove unused MBTOWC_FLAGS define.
2263 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
2265 * mingwex/mbrtowc.c: New file.
2266 * mingwex/wcrtomb.c: New file.
2267 * mingwex/btowc.c: New file.
2268 * mingwex/wctob.c: New file.
2269 * mingwex/mb_wc_common.h: New file.
2270 * mingwex/Makefile.in (DISTFILES): Add new files.
2271 (Q8_OBJS): Add new objects.
2272 * include/wchar.h: Adjust comment about mbrtowc() and related
2273 funcions. Add __restrict__ to pointer params in prototypes.
2274 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
2275 arg names from protototypes.
2277 2005-04-23 Wu Yongwei <adah@sh163.net>
2279 * mingwex/dirent.c: Formatting changes.
2280 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
2283 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
2285 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
2287 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
2289 * include/stdio.h (__mingw_fwrite): Change return value to
2291 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
2293 2005-03-15 Hans Leidekker <hans@it.vu.nl>
2295 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
2297 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2299 * include/wctype.h (wctrans): Remove _CRTIMP.
2300 (towctrans): Likewise.
2303 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2305 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
2307 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2309 * mingwex/wctype.c: New file.
2310 * mingwex/wctrans.c: New file.
2311 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
2312 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
2314 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2316 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
2318 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2320 * include/assert.h: Remove header guard. #undef assert macro.
2321 (_assert): Use __MINGW_ATTRIB_NORETURN define.
2323 2005-02-11 Gregory W. Chicares <chicares@cox.net>
2325 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
2326 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
2328 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
2329 * mingwex/math/expm1.c: New file.
2330 * mingwex/math/expm1f.c: New file.
2331 * mingwex/math/expm1l.c: New file.
2333 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
2335 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
2336 * include/wchar.h (struct stat): Likwwise.
2337 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
2339 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
2341 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
2343 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
2344 string is not valid.
2346 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
2348 * include/malloc.h: Add missing return code defines for
2351 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
2353 * include/sys/stat.h (struct __stat64): Change st_size type to
2355 * include/wchar.h (struct __stat64): Change st_size type to __int64.
2357 2005-01-13 Earnie Boyd <earnie@users.sf.net>
2359 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2361 * include/errno.h (ELOOP): Ditto.
2362 * include/_mingw.h: Increment version to 3.7.
2363 * Makefile.in: Ditto.
2365 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
2367 * include/tchar.h (_tfreopen): Add UNICODE mappings.
2369 2005-01-11 Earnie Boyd <earnie@users.sf.net>
2371 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2372 lstat): Conditionalize defines for __STRICT_ANSI__.
2374 2005-01-10 Earnie Boyd <earnie@users.sf.net>
2376 * include/errno.h (ELOOP): Add definition.
2378 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
2380 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
2381 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
2382 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
2383 ctanl.c ctanhl.c): New files.
2384 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2385 (COMPLEX_OBJS): Adjust.
2386 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
2387 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
2388 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
2391 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2393 * include/_mingw.h (__int16): Define as short.
2394 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
2396 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2398 * include/stdio.h (P_tmpdir): Add define.
2400 2005-01-03 Earnie Boyd <earnie@users.sf.net>
2402 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
2404 2005-01-02 Earnie Boyd <earnie@users.sf.net>
2406 * include/_mingw.h: Increment version to 3.6
2407 * Makefile.in: Ditto
2409 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
2411 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
2412 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
2413 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
2414 ctanf.c ctanhf.c): New files.
2415 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2416 (COMPLEX_OBJS): Adjust.
2417 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
2418 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
2419 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
2422 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
2424 * include/wchar.h (wcsdup): Correct prototype.
2425 * include/string.h (wcsdup): Correct prototype.
2427 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2429 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
2431 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2433 * mingwex/math/fastmath.h: New file.
2434 * mingwex/math/asinh.c: New file.
2435 * mingwex/math/asinhf.c: New file.
2436 * mingwex/math/asinhl.c: New file.
2437 * mingwex/math/acosh.c: New file.
2438 * mingwex/math/acoshf.c: New file.
2439 * mingwex/math/acoshl.c: New file.
2440 * mingwex/math/atanh.c: New file.
2441 * mingwex/math/atanhf.c: New file.
2442 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
2443 atanh, atanhf, atanhl): Add prototypes.
2444 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
2445 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
2446 Specify dependency on fastmath.h for new objects.
2448 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2450 * include/sys/stat.h (_S_IFLNK): Add definition.
2457 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2459 * include/sys/stat.h (_S_ISLNK): Add definition.
2462 2004-09-05 Earnie Boyd <earnie@users.sf.net>
2464 * include/_mingw.h: Increment minor version for 3.5 release.
2465 * Makefile.in: Ditto.
2466 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
2468 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2470 * include/malloc.h (__mingw_aligned_offset_malloc,
2471 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
2472 __mingw_aligned_realloc, __mingw_aligned_free): Add
2474 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
2475 tst-aligned-malloc.c.
2476 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
2478 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
2480 * mingwex/mingw-aligned-malloc.c: New file.
2481 * mingwex/tst-aligned-malloc.c: New file.
2483 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2485 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
2486 noreturn attribute. Align stack to 16 bytes before passing args
2488 (mainCRTStartup): Change return to void.
2489 (WinMainCRTStartup): Likewise.
2491 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2493 * profile/COPYING: New file.
2494 * profile/CYGWIN_LICENSE: New file.
2495 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
2497 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2499 * mingwex/fopen64.c: Move.
2500 * mingwex/fseeko64.c: Move.
2501 * mingwex/ftello64.c: Move.
2502 * mingwex/lseek64.c: Move.
2503 * mingwex/stdio/fopen64.c: To here.
2504 * mingwex/stdio/fseeko64.c: To here.
2505 * mingwex/stdio/ftello64.c: To here.
2506 * mingwex/stdio/lseek64.c: To here.
2508 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2510 * profile/gmon.c [__MINGW32__]: Include string.h for
2513 2004-08-08 Christopher Faylor <cgf@timesys.com>
2515 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
2517 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2519 * include/complex.h: Remove __attribute__ ((const)) from
2520 transcendantal and trig functions. Replace __attribute__ ((const))
2521 with __MINGW_ATTRIB_CONST on other declarations.
2523 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2525 * include/wchar.h: Reorganize, avoid including other headers.
2527 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2529 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
2530 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
2533 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2535 * include/dirent.h (struct _wdirent): Remove obsolete comment.
2537 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2539 * include/string.h: Revert 2004-07-26 additions of
2542 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
2544 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
2545 (__convert_inf_to_maxnum): New.static inline.
2546 (reducl): Use it to protect against Inf - Inf.
2547 (__fast_ldexpl): New function. Use in lieu of ldexpl.
2549 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
2551 * mingwex/math/expl.c (expl): Move body of code to new static
2552 function __expl, removing tests for +/-Inf. Extern function
2553 expl calls __expl after testing for max, min log thresholds.
2555 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2557 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
2558 * mingwex/stdio/vfscanf.c: Likewise.
2559 * mingwex/stdio/vswscanf.c: Likewise.
2560 * mingwex/stdio/vfwscanf.c: Likewise.
2562 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2564 * include/_mingw.h: Use only two underscores to uglify
2565 __MINGW_ATTRIB_* macros.
2566 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
2567 * include/setjmp.h: Likewise.
2569 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
2571 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
2573 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
2575 * include/string.h: Group wide string functions together,
2576 and protect with _WSTRING_DEFINED.
2578 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
2580 * include/_mingw.h (__MINGW_ATTR_*): Replace with
2582 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
2583 __MINGW_ATTRIB_NORETURN, throughout.
2584 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
2586 (abs): Declare with __MINGW_ATTRIB_CONST.
2595 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
2597 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
2599 * include/_mingw.h: Undefine __attribute__.
2600 (__MINGW_ATTR_NORETURN): New define.
2601 (__MINGW_ATTR_CONST): New define.
2602 (__MINGW_ATTR_MALLOC): New define.
2603 (__MINGW_ATTR_PURE): New define.
2604 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
2607 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2609 * include/time.h (__time64_t): Add missing ';'.
2611 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
2613 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
2614 (struct tm): Protect with _TM_DEFINED.
2616 2004-07-17 Christopher Faylor <cgf@timesys.com>
2618 * Makefile.in (CC): Strip inappropriate include file settings from any
2621 2004-07-15 "dgun" <dgun@umpire.com>
2623 * include/complex.h (conj): Correct typo in prototype.
2625 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
2627 * include/math.h: Add pragma GCC system_header.
2629 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
2631 * mingwex/complex/carg.c: New file.
2632 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
2634 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
2636 * Makefile.in (INCLUDES): Temporarily revert previous change.
2637 * mingwex/Makefile,in (INCLUDES): Ditto.
2638 * profile/Makefile,in (INCLUDES): Ditto.
2639 * mingwex/Makefile,in: Drop carg.o dependency.
2641 2004-07-14 Christopher Faylor <cgf@timesys.com>
2643 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
2645 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
2647 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
2649 * mingwex/Makefile,in (INCLUDES): Ditto.
2650 * profile/Makefile,in (INCLUDES): Ditto.
2652 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
2654 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
2656 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
2658 * mingwex/Makefile.in: Ditto.
2659 * profile/Makefile.in: Ditto.
2660 * include/limits.h: Change to new file header preamble.
2661 * include/_mingw.h: Increment minor version for 3.4 release.
2662 * Makefile.in: Ditto.
2664 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2666 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
2668 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
2670 * include/unistd.h (ftruncate): Add inline definition.
2671 * mingwex/ftruncate.c: New file.
2672 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
2674 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
2676 * include/time.h: Do not include sys/types.h.
2678 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
2680 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
2681 (MATH_OBJS): Remove pow,o.
2682 * include/math.h (pow): Declare with _CRTIMP.
2683 Add comment on how to avoid excess precision problems.
2685 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
2687 * include/stdio.h (__mingw_fseeko64): Add prototype.
2688 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
2689 (__mingw_fwrite): Handle huge files.
2691 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
2692 Danny Smith <dannysmith@users.sourceforge.net>
2694 * include/stdio.h (fopen64): Add inline function.
2695 (fseeko64): Add prototype.
2696 (ftello64): Add inline function.
2697 * include/io.h (lseek64): Add inline function.
2698 * include/sys/types (off64_t): Add typedef.
2699 (fpos64_t): Add typedef.
2700 * mingwex/fopen64.c: New file.
2701 * mingwex/fseeko64.c: New file.
2702 * mingwex/ftello64.c: New file.
2703 * mingwex/lseek64.c: New file.
2704 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
2705 fseeko.64.c, ftello64.c, lseek64.c.
2706 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
2708 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
2710 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
2712 2004-04-22 Earnie Boyd <earnie@users.sf.net>
2714 * DISCLAIMER: Add words about "free to use".
2715 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
2716 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
2717 (inst_docdir): New variable.
2719 (FLAGS_TO_PASS): Include inst_docdir.
2720 (install-dirs): Add inst_docdir.
2721 (install): Add loop for INSTDOCS.
2722 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
2723 section to CONTRIBUTORS file. Remove RCS tags.
2725 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
2727 * mingwex/math/lround.c: Rewrite.
2728 * mingwex/math/lroundf.c: Rewrite.
2729 * mingwex/math/lroundl.c: Rewrite.
2730 * mingwex/math/llround.c: Rewrite.
2731 * mingwex/math/llroundf.c: Rewrite.
2732 * mingwex/math/llroundl.c: Rewrite.
2734 2004-04-20 Earnie Boyd <earnie@users.sf.net>
2736 * CONTRIBUTORS: New file.
2737 * DISCLAIMER: Ditto.
2738 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
2739 section to CONTRIBUTORS file. Remove RCS tags.
2740 * CRTFmode.c: Ditto.
2744 * crtdll.dev: Ditto.
2754 * msvcrt.def.in: Ditto.
2755 * strcasecmp.c: Ditto.
2758 * include/assert.h: Ditto.
2759 * include/conio.h: Ditto.
2760 * include/ctype.h: Ditto.
2761 * include/direct.h: Ditto.
2762 * include/dirent.h: Ditto.
2763 * include/dos.h: Ditto.
2764 * include/errno.h: Ditto.
2765 * include/excpt.h: Ditto.
2766 * include/fcntl.h: Ditto.
2767 * include/float.h: Ditto.
2768 * include/io.h: Ditto.
2769 * include/locale.h: Ditto.
2770 * include/malloc.h: Ditto.
2771 * include/math.h: Ditto.
2772 * include/process.h: Ditto.
2773 * include/setjmp.h: Ditto.
2774 * include/share.h: Ditto.
2775 * include/signal.h: Ditto.
2776 * include/stdio.h: Ditto.
2777 * include/stdlib.h: Ditto.
2778 * include/string.h: Ditto.
2779 * include/tchar.h: Ditto.
2780 * include/time.h: Ditto.
2781 * include/wchar.h: Ditto.
2782 * include/sys/locking.h: Ditto.
2783 * include/sys/param.h: Ditto.
2784 * include/sys/stat.h: Ditto.
2785 * include/sys/timeb.h: Ditto.
2786 * include/sys/types.h: Ditto.
2787 * include/sys/utime.h: Ditto.
2788 * mingwex/dirent.c: Ditto.
2790 2004-04-19 Earnie Boyd <earnie@users.sf.net>
2792 * include/_mingw.h: Revert to primary release 3 and increment minor
2794 * Makefile.in (VERSION): Ditto.
2796 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
2798 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
2799 _fmode if not __MSVCRT__.
2801 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
2803 * include/io.h: (_findfirst): Correct prototype.
2805 2004-03-30 Hans Leidekker <hans@it.vu.nl>
2807 * include/io.h: (_findnext, _findclose): Correct prototype.
2809 2004-03-28 Hans Leidekker <hans@it.vu.nl>
2811 * include/math.h (FP_*): Add defines.
2813 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
2815 * mingwex/math/round.c: Rewrite.
2816 * mingwex/math/roundf.c: Rewrite.
2817 * mingwex/math/roundl.c: Rewrite.
2819 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
2821 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
2822 * include/time.h (__time64_t): Add typedef.
2823 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
2824 (_ctime64): Likewise.
2825 (_wctime64): Likewise.
2826 (_gmtime64): Likewise.
2827 (_localtime64): Likewise.
2828 (wcsftime): Move into _WTIME_DEFINED block.
2829 Regroup non-ANSI prototypes.
2830 * include/io.h: Include <stdint.h>.
2831 (__finddata64_t): Add struct definition.
2832 (__wfinddata64_t): Likewise.
2833 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
2834 (_findnext64): Likewise.
2835 (_wfindfirst64): Likewise.
2836 (_wfindnext64): Likewise.
2837 * include/sys/timeb.h (__timeb64): Add struct definition.
2838 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
2839 * include/sys/utime.h (__utimbuf64): Add struct definition.
2840 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
2841 (_futime64): Likewise.
2842 (_wutime64): Likewise.
2843 * include/sys/stat.h (__stat64): Add struct definition.
2844 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
2845 (_stat64): Likewise.
2846 (_wstat64): Likwise.
2847 * include/sys/types.h (__time64_t): Add typedef.
2848 * include/wchar.h (__wfinddata64_t): Add structure definition.
2849 (__stat64): Likewise.
2850 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
2851 (_wfindfirst64): Likewise.
2852 (_wfindnext64): Likewise.
2853 (_wutime64): Likewise.
2854 (_wstat64): Likwise.
2855 * include/malloc.h (_aligned_free): Add prototype for
2856 __MSVCRT_VERSION__ >= 0x0700.
2857 (_aligned_malloc): Likewise.
2858 (_aligned_offset_malloc): Likewise.
2859 (_aligned_offset_realloc): Likewise.
2860 (_aligned_realloc): Likewise.
2861 * include/string.h (_wcserror): Add prototype for
2862 __MSVCRT_VERSION__ >= 0x0700.
2863 (__wcserror): Likewise.
2864 * include/math.h (_set_SSE2_enable): Add prototype for
2865 __MSVCRT_VERSION__ >= 0x0701.
2867 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
2869 * include/stdio.h (_fsopen): Add prototype.
2870 * include/tchar.h (_tfsopen): Add defines.
2871 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
2873 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
2875 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
2876 msvcr70.dll, and msvcr71.dll.
2877 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
2878 using basename of output def file.
2880 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
2882 * include/malloc.h: Remove __STRICT_ANSI__ guard.
2884 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
2886 * include/process.h: Remove the #endif associated with removal of
2887 __STRICT_ANSI__ guard from non-ANSI header.
2889 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
2891 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
2892 * include/direct.h: Ditto.
2893 * include/dirent.h: Ditto.
2894 * include/dos.h: Ditto.
2895 * include/excpt.h: Ditto.
2897 * include/io.h: Ditto.
2898 * inlude/mem.h: Ditto.
2899 * include/memory.h: Ditto.
2900 * include/process.h: Ditto.
2901 * inlude/search.h: Ditto.
2902 * include/share.h: Ditto.
2903 * include/unistd.h: Ditto.
2904 * include/sys/fcntl.h: Ditto.
2905 * include/file.h: Ditto.
2906 * include/sys/locking.h: Ditto.
2907 * include/sys/param.h: Ditto.
2908 * include/sys/stat,h
2909 * include/sys/time.h: Ditto.
2910 * include/sys/timeb.h: Ditto.
2911 * include/sys/types.h: Ditto.
2912 * include/sys/unistd.h: Ditto.
2913 * include/sys/utime.h: Ditto.
2915 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
2917 * include/_mingw.h (__UNUSED_PARAM): Define macro.
2918 * include/wchar.h (fwide): Use it.
2921 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
2923 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
2924 NetBSD getopt_long.c.
2926 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
2928 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
2929 codes and handling of special chars.
2931 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
2933 * include/stdio.h (feof): Add inlined definition.
2936 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
2938 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
2939 directly, rather than via scabnl.
2941 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
2943 * mingwex/math/powl.c (powl): Return infinity if
2944 extended precision multiplication of x by log2(y)
2947 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
2949 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
2950 (__enan_NI16): Fix another one.
2951 (__enan_NBITS): Tidy.
2953 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
2955 * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
2956 types. (Thanks to John Maddock for report.)
2958 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
2960 * include/tchar.h (_puttchar): Define.
2962 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
2964 * include/stdio.h:(_fileno): Define macro version after both
2965 fileno and _fileno functions declared.
2967 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
2968 * moldnames.def.in (rmtmp) Add stub.
2970 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
2972 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
2974 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
2976 * include/math.h: Guard ISO C99 additions with __cplusplus
2979 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
2981 * include/_mingw.h: Define __attribute__((x)) to nothing
2984 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
2986 * include/complex.h: New file.
2987 * mingwex/complex: New directory.
2988 * mingwex/complex/cabs.c: New file.
2989 * mingwex/complex/cacos.c: New file.
2990 * mingwex/complex/cacosh.c: New file.
2991 * mingwex/complex/casin.c: New file.
2992 * mingwex/complex/casinh.c: New file.
2993 * mingwex/complex/catan.c: New file.
2994 * mingwex/complex/catanh.c: New file.
2995 * mingwex/complex/ccos.c: New file.
2996 * mingwex/complex/ccosh.c: New file.
2997 * mingwex/complex/cexp.c: New file.
2998 * mingwex/complex/cimag.c: New file.
2999 * mingwex/complex/clog.c: New file.
3000 * mingwex/complex/cpow.c: New file.
3001 * mingwex/complex/cproj.c: New file.
3002 * mingwex/complex/creal.c: New file.
3003 * mingwex/complex/csin.c: New file.
3004 * mingwex/complex/csinh.c: New file.
3005 * mingwex/complex/csqrt.c: New file.
3006 * mingwex/complex/ctan.c: New file.
3007 * mingwex/complex/ctanh.c: New file.
3008 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3011 (COMPLEX_OBJS): New list of objects.
3012 (LIB_OBJS): Include it in the library.
3014 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3016 * include/math.h (cabs): Remove non-ISO prototype.
3018 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3020 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3021 Use GCC __builtin's if available.
3022 (INFINITY, INFINITYF, INFINITYL): Likewise.
3024 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3026 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3027 beyond approximation limit.
3028 * mingwex/math/sf_erf.c (erff): Likewise.
3030 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3032 * include/stdio.h (getc): Cast result to unsigned char before
3035 (getchar): Likewise.
3036 (putchar): Likewise.
3037 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3039 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3041 * include/_mingw.h: Increment version to 3.2.
3042 * Makefile.in: Ditto.
3044 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3046 * include/sys/types.h: Revert last change.
3048 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3050 * include/sys/types.h (ssize_t): Correct the definition.
3052 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3054 * include/stdio.h (_filbuf): Add prototype.
3055 (_flsbuf): Add prototype.
3056 (getc): Add inline version.
3058 (getchar): Likewise.
3059 (putchar): Likewise.
3061 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3063 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3066 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3068 * include/stdlib.h: Guard non-ISO functions with
3069 !__STRICT_ANSI__, throughout.
3071 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3073 * include/io.h (_fileno): Remove prototype.
3075 (FILENAME_MAX): Define, if needed.
3076 Don't include <stdio.h>.
3077 * include/stdio.h (FILENAME_MAX): Protect against
3079 (_fileno): Define macro implementation.
3082 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3084 * include/inttypes.h: Include _mingw.h.
3086 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3088 * include/_mingw.h (__CRT_INLINE): Define.
3089 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3091 * include/inttypes.h: Likewise.
3092 * include/math.h: Likewise.
3093 * include/stdio.h: Likewise.
3094 * include/stdlib.h: Likewise.
3095 * include/string.h: Likewise.
3096 * include/wchar.h: Likewise.
3097 * include/wctype.h: Likewise.
3099 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3101 * mingwex/dirent.c (_topendir): Allocate enough memory for
3102 DIR struct in UNICODE case too.
3104 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3106 * include/_mingw.h: Increment version to 3.2.
3107 * Makefile.in: Ditto.
3109 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3111 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3113 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3115 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3116 * mingwex/math/truncf.c (truncf): Likewise.
3117 * mingwex/math/truncl.c (truncl): Likewise.
3118 * mingwex/math/modff.c (modff): Likewise.
3119 * mingwex/math/modfl.c (modfl): Likewise.
3121 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3123 * include/search.h: New file.
3124 * include/stdlib.h: Add comment about qsort, bsearch in
3126 * test_headers.c: Include search.h.
3127 * moldname.def.in (lfind, lsearch): Add.
3129 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3131 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
3132 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
3133 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
3135 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3137 * include/_mingw.h (small, hyper): Change to __small and __hyper to
3138 avoid user space name conflicts.
3140 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3142 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
3143 Note: Also added to w32api/include/basetyps.h.
3144 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
3145 Rename to Small (case difference).
3147 2003-06-18 Earnie Boyd <earnie@users.sf.net>
3149 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
3150 * mingwex/dirent.c: Modifications througout to fill d_name array.
3151 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
3152 libmsvcr71, including debug versions.
3153 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
3155 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
3157 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
3158 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
3160 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
3162 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
3164 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
3166 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
3168 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
3169 but still protect inline definition with __STRICT_ANSI__.
3171 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
3173 * string_old.c: Remove, splitting into...
3174 * strcasecmp.c: New file.
3175 * strncasecmp.c: New file.
3176 * wscmpi.c : New file.
3177 * ctype_old.c: Remove, splitting into...
3178 * isascii.c: New file.
3179 * iscsym.c: New file.
3180 * iscsymf.c: New file.
3181 * toascii.c: New file.
3182 * Makefile.in (MOLD_OBJS): Adjust.
3183 (SRCDIST_FILES): Adjust.
3185 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
3187 * include/math.h (fabs) : Remove inline definition.
3191 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3193 * include/_mingw.h: Change version to 3.0
3194 * Makefile.in: Ditto.
3196 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3198 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
3199 * mingwex/configure.in (W32API_INCLUDE): Ditto.
3200 * profile/configure.in (W32API_INCLUDE): Ditto.
3202 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3204 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
3205 of multiply defined symbols if the symbols is defined locally. E.G.:
3206 A local definition of malloc causes this problem.
3207 * configure: Regenerate.
3208 * profile/Makefile.in (W32API_INCLUDE): New variable.
3209 (ALL_CFLAGS): Use W32API_INCLUDE value.
3210 (ALL_CXXFLAGS): Ditto.
3211 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
3212 Thanks to Jeff Bonggren <jbon@users.sf.net>.
3213 * profile/configure.in (W32API_INCLUDE): Set default value.
3214 * profile/configure: Regenerate.
3215 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
3216 (ALL_CFLAGS): Use W32API-INCLUDE value.
3217 (ALL_CXXFLAGS): Ditto.
3218 * mingwex/configure.in (W32API_INCLUDE): Set default value.
3219 * mingwex/configure: Regenerate.
3221 2003-05-05 Earnie Boyd <earnie@users.sf.net>
3223 * Makefile.in (W32API_INCLUDE): New variable.
3224 (ALL_CFLAGS): Use W32API_INCLUDE value.
3225 (ALL_CXXFLAGS): Ditto.
3226 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
3227 (W32API_INCLUDE): Set default value.
3228 * configure: Regenerate.
3230 2003-04-11 Earnie Boyd <earnie@users.sf.net>
3232 * configure.in (LIBM_A): Define for cygwin target.
3233 * configure (LIBM_A): Ditto.
3235 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
3237 * include/time.h (strftime): Remove duplicate declaration.
3239 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3241 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
3243 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3245 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
3246 * mingwex/strtoimax.c (strtoimax): Likewise.
3247 * mingwex/wcstoimax.c (wcstoimax): Likewise.
3248 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
3249 * mingwex/fesentenv.c: Include float.h.
3250 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
3252 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
3254 * mingwex/math/tgammal.c: Likewise.
3256 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3258 * include/utime.h: New file, forwarding to sys/utime.h.
3260 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3262 * include/sys/param.h (MAXPATHLEN): Define.
3264 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3266 * include/tchar.h: Ansi-fy a comment.
3268 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3270 * profile/profile.h (mcount): Use __builtin_return_address
3271 rather than inline __asm statements.
3272 * profile/Makefile.in: Remove special rule for mcount.o
3273 Specify dependencies for mcount.o profil.o gmon.o.
3275 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3277 * include/stdlib.h (qsort): Remove const from first parm.
3278 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
3280 2003-03-03 Christopher Faylor <cgf@redhat.com>
3282 * mingwex/getopt.c: Refresh from NetBSD sources.
3284 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
3286 * mingwex/getopt.c: New file, copied from cygwin srcs.
3287 * include/getopt.h: New file, copied from cygwin srcs.
3288 * include/unistd.h: Include getopt.h.
3289 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
3290 (POSIX_OBJS): Add getopt.o.
3292 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
3294 * include/stdio.h (vscanf): Add prototype.
3300 * include/wchar.h (vwscanf): Add prototype.
3303 * mingwex/snprintf.c: Move to mingwex/stdio.
3304 * mingwex/vsnprintf.c: Ditto.
3305 * mingwex/snwprintf.c: Ditto.
3306 * mingwex/vsnwprintf.c: Ditto.
3307 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
3308 (STDIO_DISTFILES): Add.
3309 (DISTFILES): Adjust.
3310 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
3314 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
3316 * mingwex/stdio: New directory
3317 * mingwex/stdio/vfscanf.c: New file.
3318 * mingwex/stdio/vfwscanf.c: New file.
3319 * mingwex/stdio/vscanf.c: New file.
3320 * mingwex/stdio/vsscanf.c: New file.
3321 * mingwex/stdio/vswscanf.c: New file.
3322 * mingwex/stdio/vwscanf.c: New file.
3324 2003-02-25 Earnie Boyd <earnie@users.sf.net>
3326 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
3327 (libmsvcrt40.a): Ditto.
3329 2003-02-21 Earnie Boyd <earnie@users.sf.net>
3331 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
3333 * Makefile.in (libmsvcrtd.a): Add target library.
3334 (libmoldnamed.a): Ditto.
3335 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
3337 ($(srcdir)): Remove explicit reference for depencies of object targets.
3338 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
3339 msvcrt20.def, msvcrt40.def: Remove.
3340 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
3342 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
3344 * Makefile.in: Make sure libmingwex.a from current build tree is used.
3346 2003-02-14 Christopher Faylor <cgf@redhat.com>
3348 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
3349 ensure -mno-cygwin where appropriate. Filter out -O2.
3351 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
3353 * profile/Makefile.in (mcount.o): Use -O1 optimization
3356 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3358 * include/math.h: Remove _CRTIMP from pow() prototype,
3359 unless __NO_ISOCEXT.
3361 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3363 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
3365 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3367 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
3368 __declspec(dllimport) supported.
3369 (__cdecl): Define if not already defined.
3370 (__stdcall): Likewise.
3371 * include/dirent.h: Qualify fuctions with __cdecl.
3372 * include/fenv.h: Likewise.
3373 * include/inttypes.h: Likewise.
3374 * include/assert.h: Qualify fuctions with __cdecl. Qualify
3375 CRT dll imports with _CRTIMP.
3376 * include/conio.h: Likewise.
3377 * include/ctype.h: Likewise.
3378 * include/direct.h: Likewise.
3379 * include/dos.h: Likewise.
3380 * include/errno.h: Likewise.
3381 * include/float.h: Likewise.
3382 * include/io.h: Likewise.
3383 * include/locale.h: Likewise.
3384 * include/malloc.h: Likewise.
3385 * include/math.h: Likewise.
3386 * include/mbctype.h: Likewise.
3387 * include/mbstring.h: Likewise.
3388 * include/process.h: Likewise.
3389 * include/setjmp.h: Likewise.
3390 * include/signal.h: Likewise.
3391 * include/stdio.h: Likewise.
3392 * include/stdlib.h: Likewise.
3393 * include/string.h: Likewise.
3394 * include/time.h: Likewise.
3395 * include/wchar.h: Likewise.
3396 * include/wctype.h: Likewise.
3397 * include/sys/stat.h: Likewise.
3398 * include/sys/timeb.h: Likewise.
3399 * include/sys/utime.h: Likewise.
3401 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
3402 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
3404 * include/stdio.h (__VALIST): Guard against prior definition.
3406 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3408 * include/_mingw.h: Change version to 3.0
3409 * Makefile.in: Ditto.
3411 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3413 * include/stdlib.h: Make words after #endif a comment.
3415 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3417 * include/locale.h: Include stddef.h for definition of NULL.
3419 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3421 * include/math.h (tgamma): Correct typo in comment.
3423 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3425 * mingwex/mingw-fseek.c (INLINE): Remove define.
3426 (__mingw_is_win9x): Remove static inline function.
3427 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
3429 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3431 * mingwex/math/llround.c: Correct function name and
3432 change return value to long long.
3434 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
3436 * include/ctype.h (__isascii): Don't cast arg to unsigned.
3437 (iswascii): Likewise. Correct mask.
3438 * include/wctype.h (iswascii): Don't cast arg to unsigned.
3441 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
3443 * include/stdlib.h (_osver, _winver, _winmajor,
3444 _winminor): Declare as direct imports from dll if
3445 __DECLSPEC_SUPPORTED.
3447 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
3449 * pseudo-reloc.c (do_pseudo_reloc): Make static.
3450 * pseudo-reloc-list.c: New file.
3451 * crt1.c (_pei386_runtime_relocator): Declare.
3452 (__mingw_CRTStartup): Call it.
3453 * dllcrt1.c (_pei386_runtime_relocator): Declare.
3454 (DllMainCRTStartup): Call it.
3455 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
3458 2003-01-01 Egor Duda <deo@logos-m.ru>
3460 * pseudo-reloc.c: New file.
3462 2002-12-20 Earnie Boyd <earnie@users.sf.net>
3464 * include/_mingw.h: Increment version to 2.4.
3467 2002-12-12 Earnie Boyd <earnie@users.sf.net>
3469 * include/malloc.h (_alloca): Add definition.
3472 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
3474 * mingwex/math/s_erf.c: New file.
3475 * mingwex/math/sf_erf.c: New file.
3476 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3477 (MATH_OBJS): Add new objects.
3478 * include/math.h (erf[f]): Add prototypes.
3479 (erfc[f]): Add prototypes.
3481 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
3483 * include/math.h: Add traditional/XOPEN math constants.
3485 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
3487 * mingwex/math/lgamma.c: New file.
3488 * mingwex/math/lgammaf.c: New file.
3489 * mingwex/math/lgammal.c: New file.
3490 * mingwex/math/tgamma.c: New file.
3491 * mingwex/math/tgammaf.c: New file.
3492 * mingwex/math/tgammal.c: New file.
3493 * mingwex/math/cephes_mconf (polevlf): Add float version.
3495 Define _CEPHES_USE_ERRNO.
3496 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3497 (MATH_OBJS): Add new objects.
3498 * include/math.h (lgamma[fl]): Add prototypes.
3499 (tgamma[fl]): Add prototypes.
3501 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
3503 * mingwex/strtold.c: New file.
3504 * mingwex/wcstold.c: New file.
3505 * mingwex/ldtoa.c: New file.
3506 * mingwex/math/cephes_emath.h: New file.
3507 * mingwex/math/cephes_emath.c: New file.
3508 * mingwex/Makefile.in (DISTFILES): Add new files.
3509 (MATH_DISTFILES): Ditto.
3510 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
3511 (MATH_OBJS): Add cephes_emath.o.
3512 (LIB_OBJS): Add $(STDLIB_OBJS).
3513 * include/stdlib.h (strtold, wcstold): Add prototypes.
3514 * include/wchar.h (wcstold): Add prototype.
3516 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3518 * include/math.h (sqrt): Remove inline definition.
3519 (sqrtf): Replace inline definition with prototype.
3521 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
3522 argument less than zero.
3523 * mingwex/math/sqrtf.c (sqrtl): Likewise.
3525 2002-10-30 Guido Serassio <serassio@libero.it>
3527 * include/stdio.h (_getmaxstdio): Add prototype.
3528 (_setmaxstdio): Likewise.
3530 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
3532 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
3534 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3536 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
3538 Define WIN32_MEAN_AND_LEAN before including windows.h
3539 * include/stdlib.h (_fmode): Protect declaration as dllimported
3540 variable with __IN_MINGW_RUNTIME.
3542 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3544 * crt1.c: Include stdlib.h.
3546 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3548 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
3549 (MINGW_OBJS): Add txtmode.o.
3550 (SRCDIST_FILES): Add txtmode.c binmode.c.
3551 crt1.c: Don't include fcntrl.h, stdlib.h.
3552 (_fmode): Declare, without dllimport attribute.
3553 (__p__fmode): Declare access function for dll's _fmode.
3554 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
3556 * txtmode.c: New file.
3557 * binmode.c: New file.
3558 * samples/fmode/test2.c: New file.
3559 * samples/fmode/jamfile: Add test2.exe target.
3561 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
3563 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
3564 macros work with C89.
3565 (INTMAX_C, UINTMAX_C): Likewise.
3567 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
3569 * include/string.h (strcasecmp): Make extern __inline__.
3570 (strncasecmp): Likewise.
3571 (wcscmpi): Likewise.
3573 2002-10-08 Heiko Gerdau <hg@technosis.de>
3575 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
3576 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
3579 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3581 * mingwex/math/powil.c: Rename powil to __powil.
3582 * mingwex/math/powl.c: Adjust declaration and call
3583 to __powil. Remove comment on powil.
3584 * mingwex/math/powi.c: New file.
3585 * mingwex/math/powif.c: New file.
3586 * mingwex/math/pow.c: New file.
3587 * mingwex/math/cephes_mconf.h. Add double and float
3588 versions of constants.
3589 (polevl): Add double precision function.
3591 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
3593 (MATH_OBJS): Add pow.o, powi.o, powif.o.
3595 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3597 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
3598 (_imp____mbcur_max_dll): Likewise.
3600 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3602 * include/fcntl.h (_fmode): Remove declarations and
3603 compatibility defines.
3604 (_setmode, setmode): Remove prototypes.
3605 * include/stdlib (_fmode): Add declarations and
3606 compatibility defines. Change type to int.
3607 * include/io.h (_setmode, setmode): Add prototypes.
3608 * samples/fmode/all.c: Adjust includes.
3609 * samples/fmode/test.c: Likewise.
3610 * crt1.c (_CRT_fmode): Declare as int.
3611 * CRTfmode.c (_CRT_fmode): Likewise.
3613 * include/stdlib: Remove comment about MB_CUR_MAX.
3615 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
3617 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
3618 (_imp____mbcur_max_dll): Likewise.
3620 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3622 * mingwex/math/files.txt: Remove inadvertantly added file.
3624 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3626 * include/string.h (_strerror): Move into #ifndef
3627 __STRICT_ANSI__ block.
3629 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
3631 * include/time.h (__need_NULL): Define before including
3632 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
3634 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
3636 * include/stdio.h: Correct comment about directory separator.
3638 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
3640 * include/sys/time.h (timeval): Add struct definition and
3641 associated macros (copied from w32api/include/winsock.h).
3643 2002-09-05 Earnie Boyd <earnie@users.sf.net>
3645 * include/_mingw.h: Increment version to 2.3.
3648 2002-09-05 Earnie Boyd <earnie@users.sf.net>
3650 * mingwex/fegetenv.c: Change to \n line endings.
3651 * mingwex/vsnprintf.c: Ditto.
3652 * mingwex/vsnwprintf.c: Ditto.
3654 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
3656 * mingwex/math/hypotl.c: Replace with version based on cephes
3659 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
3661 * include/sys/param.h: Add ENDIAN defines.
3662 * test_headers.c: Include sys/param.h.
3664 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
3666 * test_headers.c: Don't include varargs.h.
3667 * Makefile.in (test_headers): Don't use -std=xx
3670 2002-08-21 Earnie Boyd <earnie@users.sf.net>
3672 * include/sys/param.h: New File.
3674 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
3676 * include/math.h (asm): Change to __asm__ throughout.
3677 Expose ISO C99 functions if __GLIPCPP__.
3678 (hypotf): Use hypot, not _hypot in stub.
3680 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
3682 * include/tchar.h: Ansi-fy another comment.
3684 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
3686 * include/tchar.h: Ansi-fy comment.
3688 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
3690 * test_headers.c : New file.
3691 * Makefile.in (test_headers): New target, using it,
3692 (SRCDIST_FILES): Distribute it.
3694 2002-08-20 Earnie Boyd <earnie@users.sf.net>
3696 * include/_mingw.h: Increment version to 2.2.
3699 2002-08-14 Earnie Boyd <earnie@users.sf.net>
3701 * include/unistd.h: Add include of process.h.
3703 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3705 * include/stdio.h (_fcloseall): Add prototype.
3707 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
3709 * include/tchar.h (_tfdopen): Correct typo.
3711 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
3713 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
3714 nextafter): Add non-underscored stubs.
3715 * moldname-msvcrt.def: Regenerate.
3716 * moldname-crtdll.def: Regenerate.
3717 * mingwex/math: New directory.
3718 * mingwex/rint.c: Move to mingwex/math.
3719 * mingwex/rintf.c: Ditto.
3720 * mingwex/rintl.c: Ditto.
3721 * mingwex/round.c: Ditto.
3722 * mingwex/roundf.c: Ditto.
3723 * mingwex/roundl.c: Ditto.
3724 * mingwex/rint.c: Ditto.
3725 * mingwex/rintf.c: Ditto.
3726 * mingwex/rintl.c: Ditto.
3727 * mingwex/trunc.c: Ditto.
3728 * mingwex/truncf.c: Ditto.
3729 * mingwex/truncl.c: Ditto.
3730 * mingwex/signbit.c: Ditto.
3731 * mingwex/signbitf.c: Ditto.
3732 * mingwex/signbitl.c: Ditto.
3733 * mingwex/copysignl.S: Ditto.
3734 * mingwex/fdim.c: Ditto.
3735 * mingwex/fdimf.c: Ditto.
3736 * mingwex/fdiml.c: Ditto.
3737 * mingwex/fmin.c: Ditto.
3738 * mingwex/fminf.c: Ditto.
3739 * mingwex/fminl.c: Ditto.
3740 * mingwex/fmax.c: Ditto.
3741 * mingwex/fmaxf.c: Ditto.
3742 * mingwex/fmaxl.c: Ditto.
3743 * mingwex/fma.c: Ditto.
3744 * mingwex/fmaf.c: Ditto.
3745 * mingwex/fmal.c: Ditto.
3746 * mingwex/fpclassify.c: Ditto.
3747 * mingwex/fpclassifyl.c: Ditto.
3748 * mingwex/fpclassifyl.c: Ditto.
3749 * mingwex/isnan.c: Ditto.
3750 * mingwex/isnanf.c: Ditto.
3751 * mingwex/isnanl.c: Ditto.
3752 * mingwex/fucom.c: Ditto.
3753 * mingwex/fp_consts.c: Ditto. Split out float and long double
3755 * mingwex/math_stubs.c: Remove.
3756 * mingwex/log2.c: Remove. Replaced by math/log2.S
3757 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
3758 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
3759 * mingwex/math/acosf.c : New file.
3760 * mingwex/math/acosl.c: New file.
3761 * mingwex/math/asinf.c: New file.
3762 * mingwex/math/asinl.c: New file.
3763 * mingwex/math/atan2f.c: New file.
3764 * mingwex/math/atan2l.c: New file.
3765 * mingwex/math/atanf.c: New file.
3766 * mingwex/math/atanl.c: New file.
3767 * mingwex/math/cbrt.c: New file.
3768 * mingwex/math/cbrtf.c: New file.
3769 * mingwex/math/cbrtl.c: New file.
3770 * mingwex/math/ceilf.S: New file.
3771 * mingwex/math/ceill.S: New file.
3772 * mingwex/math/cephes_ld.h: New file.
3773 * mingwex/math/copysign.S: New file.
3774 * mingwex/math/copysignf.S: New file.
3775 * mingwex/math/cosf.S: New file.
3776 * mingwex/math/coshf.c: New file.
3777 * mingwex/math/coshl.c: New file.
3778 * mingwex/math/cosl.S: New file.
3779 * mingwex/math/exp2.S: New file.
3780 * mingwex/math/exp2f.S: New file.
3781 * mingwex/math/exp2l.S: New file.
3782 * mingwex/math/expf.c: New file.
3783 * mingwex/math/expl.c: New file.
3784 * mingwex/math/fabs.c: New file.
3785 * mingwex/math/fabsf.c: New file.
3786 * mingwex/math/fabsl.c: New file.
3787 * mingwex/math/floorf.S: New file.
3788 * mingwex/math/floorl.S: New file.
3789 * mingwex/math/fmodf.c: New file.
3790 * mingwex/math/fmodl.c: New file.
3791 * mingwex/math/fp_consts.h: Ditto.
3792 * mingwex/math/fp_constsf.c: Ditto.
3793 * mingwex/math/fp_constsl.c: Ditto.
3794 * mingwex/math/frexpf.c: New file.
3795 * mingwex/math/frexpl.S: New file.
3796 * mingwex/math/hypotf.c: New file.
3797 * mingwex/math/hypotl.c: New file.
3798 * mingwex/math/ilogb.S: New file.
3799 * mingwex/math/ilogbf.S: New file.
3800 * mingwex/math/ilogbl.S: New file.
3801 * mingwex/math/ldexpf.c: New file.
3802 * mingwex/math/ldexpl.c: New file.
3803 * mingwex/math/llrint.c: New file.
3804 * mingwex/math/llrintf.c: New file.
3805 * mingwex/math/llrintl.c: New file.
3806 * mingwex/math/llround.c: New file.
3807 * mingwex/math/llroundf.c: New file.
3808 * mingwex/math/llroundl.c: New file.
3809 * mingwex/math/log10f.S: New file.
3810 * mingwex/math/log10l.S: New file.
3811 * mingwex/math/log1p.S: New file.
3812 * mingwex/math/log1pf.S: New file.
3813 * mingwex/math/log1pl.S: New file.
3814 * mingwex/math/log2.S: New file.
3815 * mingwex/math/log2f.S: New file.
3816 * mingwex/math/log2l.S: New file.
3817 * mingwex/math/logb.c: New file.
3818 * mingwex/math/logbf.c: New file.
3819 * mingwex/math/logbl.c: New file.
3820 * mingwex/math/logf.S: New file.
3821 * mingwex/math/logl.S: New file.
3822 * mingwex/math/lrint.c: New file.
3823 * mingwex/math/lrintf.c: New file.
3824 * mingwex/math/lrintl.c: New file.
3825 * mingwex/math/lround.c: New file.
3826 * mingwex/math/lroundf.c: New file.
3827 * mingwex/math/lroundl.c: New file.
3828 * mingwex/math/modff.c: New file.
3829 * mingwex/math/modfl.c: New file.
3830 * mingwex/math/nearbyint.S: New file.
3831 * mingwex/math/nearbyintf.S: New file.
3832 * mingwex/math/nearbyintl.S: New file.
3833 * mingwex/math/nextafterf.c: New file.
3834 * mingwex/math/powf.c: New file.
3835 * mingwex/math/powl.c: New file.
3836 * mingwex/math/powil.c: New file.
3837 * mingwex/math/remainder.S: New file.
3838 * mingwex/math/remainderf.S: New file.
3839 * mingwex/math/remainderl.S: New file.
3840 * mingwex/math/remquo.S: New file.
3841 * mingwex/math/remquof.S: New file.
3842 * mingwex/math/remquol.S: New file.
3843 * mingwex/math/scalbn.S: New file.
3844 * mingwex/math/scalbnf.S: New file.
3845 * mingwex/math/scalbnl.S: New file.
3846 * mingwex/math/sinf.S: New file.
3847 * mingwex/math/sinhf.c: New file.
3848 * mingwex/math/sinhl.c: New file.
3849 * mingwex/math/sinl.S: New file.
3850 * mingwex/math/sqrt.c: New file.
3851 * mingwex/math/sqrtf.c: New file.
3852 * mingwex/math/sqrtl.c: New file.
3853 * mingwex/math/tanf.S: New file.
3854 * mingwex/math/tanhf.c: New file.
3855 * mingwex/math/tanhl.c: New file.
3856 * mingwex/math/tanl.S: New file.
3857 * mingwex/Makefile.in: Adjust VPATH for source files in
3860 Add MATH_DISTFILES and use it to build source distro.
3861 * include/math.h: Add protypes for new functions and
3862 reorganise to reflect ANSI,C99 status.
3864 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
3866 * include/tchar.h (_getts): Define as _getws for _UNICODE.
3867 (_putts): Define as _putws for _UNICODE.
3868 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
3870 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3872 * include/float.h: #include_next<float.h> before header guard.
3874 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
3876 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
3878 * include/excpt.h (): Include windef.h not windows.h.
3879 * include/fcntl.h (_O_SHORT_LIVED): Add define.
3880 (_chmod): Add prototype.
3881 (_creat): Correct prototype.
3882 (SH_DENY*): Rename defines to _SH_DENY*.
3883 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
3884 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
3885 _IOAPPEND): Add defines.
3886 (_wfindfirst): Correct prototype.
3887 (_wfdopen): Add prototype.
3888 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
3890 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
3892 (_wcsdup): Correct prototype.
3893 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
3894 _mbsncat being in string.h.
3895 * include/wchar.h (_wfindfirst): Correct prototype.
3896 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
3898 2002-06-15 Earnie Boyd <earnie@users.sf.net>
3900 * include/_mingw.h: Increment to version 2.1.
3901 * Makefile.in: Ditto.
3903 2002-06-15 Earnie Boyd <earnie@users.sf.net>
3905 * Makefile.in (conf_prefix): New variable.
3906 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
3907 (bindist): Use dist_prefix.
3909 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3911 * include/_mingw.h: Increment version to 2.0.
3912 * Makefile.in: Ditto.
3914 Merge in mingwex branch.
3916 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
3918 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
3919 * mingwex/fdim.c: New file.
3920 * mingwex/fdimf.c: New file.
3921 * mingwex/fdiml.c: New file.
3922 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
3924 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
3926 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
3928 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
3930 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
3932 * mingwex/isnanl.c: New file.
3934 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
3936 * include/stdint.h: Include stddef.h to get
3938 (WINT_MAX): Define to ((wint_t)-1).
3940 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
3942 * include/wctype.h: Replace 'inline' with '__inline__'.
3943 * include/inttypes.h: Likewise.
3945 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
3947 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
3948 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
3950 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
3952 * mingwex/snprintf.c: Split out vsnprintf to....
3953 * mingwex/vsnprintf.c: New file.
3954 * mingwex/snwprintf.c: Split out vsnwprintf to...
3955 * mingwex/vsnwprintf.c: New file.
3956 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
3958 2002-05-15 Pascal Obry <obry@gnat.com>
3960 * include/dirent.h (DIR): Change dd_stat type to int.
3963 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
3965 * include/stdio.h (vsnprintf): Change inline to __inline__;
3966 (vsnwprintf): Likewise.
3967 * include/wchar.h (vsnwprintf): Likewise.
3970 (mbsinit): Likewise.
3972 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
3974 Change FP default precison from 53 to 64-bit mantissa.
3976 * Makefile.in (CRT0S): Add CRT_fp8.o.
3977 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
3978 * include/float.h: Replace standard float.h defines with
3979 #include_next<float.h> to use GCC's defines. Adjust comments
3982 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
3984 * include/dos.h: Change prefix "__imp_" to "_imp__" for
3985 __GNUC__ without __DECLSPEC_SUPPORTED.
3986 * include/fnctl.h: Likewise.
3987 * include/math.h: Likewise.
3988 * include/stdio.h: Likewise.
3989 * include/stdlib.h: Likewise.
3990 * include/time.h: Likewise.
3991 * include/wctype.h: Likewise.
3992 * include/ctype.h: Likewise.
3994 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
3996 Add atexit support for dlls.
3997 * crt1.c (atexit): Force thunk to _imp__atexit.
3998 (_onexit): Force thunk to _imp___onexit.
3999 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4000 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4001 (__dll_exit): New function to run atexit-registered functions
4002 and flush output buffers on DLL_PROCESS_DETACH or failed
4004 (atexit): Force use of private atexit table via _dllonexit,
4005 (_onexit): New function. Force use of private atexit table via
4007 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4008 _imp_<_symbol> is visible in import lib.
4009 * msvcrt20.def: Likewise.
4010 * msvcrt40.def: Likewise.
4011 * crtdll.def: Likewise.
4013 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4015 * include/fenv.h: Change header guard macro to _FENV_H_.
4016 (fenv_t, fexcept_t): Move into block protected by
4018 Cleanup some whitespace.
4019 * include/inttypes.h: Change header guard macro to
4022 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4024 * include/math.h (copysignl): Declare.
4025 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4026 (MATHOBJS):Add copysignl.o.
4028 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4030 * include/math.h (__signbitl, __isnanl): Declare.
4032 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4034 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4035 roundl, truncl, fmal, log2l): Declare.
4036 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4037 || !defined __STRICT_ANSI__.
4038 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4039 * mingwex/fmin.c (fmin): Likewise.
4040 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4041 * mingwex/fminf.c (fminf): Likewise.
4042 * mingwex/fmaxl.c: New file.
4043 * mingwex/fminl.c: New file.
4044 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4045 * mingwex/fpclassifyf.c: New file.
4046 * mingwex/fpclassifyl.c: New file.
4047 * mingwex/rint.c (rintf): Split out to...
4048 * mingwex/rintf.c: New file.
4049 * mingwex/rintl.c: New file.
4050 * mingwex/round.c (roundf): Split out to...
4051 * mingwex/roundf.c: New file.
4052 * mingwex/roundl.c: New file.
4053 * mingwex/trunc.c (truncf): Split out to...
4054 * mingwex/truncf.c: New file.
4055 * mingwex/truncl.c: New file.
4056 * mingwex/signbit.c (signbitf): Split out to...
4057 * mingwex/signbitf.c: New file.
4058 * mingwex/signbitl.c: New file.
4059 * mingwex/fmal.c: New file.
4060 * mingwex/copysignl.S: New file.
4061 * mingwex/log2l.c: New file.
4062 * mingwex/fp_consts.c: Add nanl definition.
4063 Comment out unused constants.
4064 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4065 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4066 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4068 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4069 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4070 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4072 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4074 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4076 Make wide char versions of opendir and friends.
4078 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4080 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4081 _wseekdir): Add prototypes for wide versions of corresponding
4083 * include/tchar.h; Add _UNICODE mappings for dirent.h
4084 structures and functions.
4085 * mingwex/dirent.c: Make _UNICODE neutral.
4086 * mingwex/wdirent.c: New file to define _UNICODE before
4088 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4089 (POSIX_OBJS): Add wdirent.o.
4090 (wdirent.o): Specify dependency on dirent.c as well as
4092 * samples/dirent/wtest.c: New file, wide version of test.c.
4094 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4096 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4097 ensure gcc include dir is searched despite -nostdinc.
4098 * profile/Makefile.in (INCLUDES): Likewise.
4099 * mingwex/Makefile.in (INCLUDES): Likewise.
4100 * include/stdarg.h: Replace with stub that just guards the
4101 real gcc system header with #ifndef RC_INVOKED
4102 * include/varargs.h: Likewise.
4103 * include/stddef.h: Likewise.
4104 * include/stdio.h: Include stdarg.h after defining
4106 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4107 Replace va_list with __VALIST throughout.
4109 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4111 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4112 * msvcrt.def (_fpreset): Mark as DATA so that only
4113 _imp___fpreset is exported.
4114 * msvcrt20.def (_fpreset): Likewise.
4115 * msvcrt40.def (_fpreset): Likewise.
4116 * crtdll.def (_fpreset): Likewise.
4117 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4119 (fpreset): Add alias.
4120 (__CRT_PC): Delete definition. _fpreset does it now.
4121 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4122 (fpreset): Add alias.
4123 (__CRT_PC): Delete definition.
4124 * moldname.def.in: Comment out fpreset.
4125 * moldname-msvcrt.def: Regenerate.
4126 * moldname-crtdll.def: Regenerate.
4127 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4128 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
4129 with the _fpreset determined by startup CRT_fp object.
4131 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
4133 * CRT_fp8.c: New file.
4134 * CRT_fp10.c: New file.
4135 * crt1.c (__CRT_PC) Declare.
4136 (__CRT_fesetenv): New static function, using _CRT_PC.
4137 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
4138 (_gnu_exception_handler): Likewise.
4139 * Makefile.in (CRT0S): Add CRT_fp10.o.
4140 (MINGW_OBJS): Add CRT_fp8.o.
4141 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
4142 Add CRT_fp8.o, CRT_fp10.o dependancies.
4143 * include/float.h (_fpreset): Expand comment.
4144 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
4145 (extended precison) environmemt.
4146 (FE_PC53_ENV): New define for MSVCRT default environmemt.
4147 (FE_DFL_ENV): Define as FE_PC53_ENV.
4148 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
4149 precision control for default environment.
4151 * include/math.h: Fix long comment line.
4152 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
4154 * profile/configure: Regenerate.
4156 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
4158 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
4160 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
4162 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
4163 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
4164 (__mingw_fseek): New function to work around Win9x f/lseek bug.
4165 (__mingw_fwrite): Likewise.
4166 (__mingw_is_win9x): New helper function.
4168 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
4169 (__mingw_fseek): New prototype and define to replace fseek.
4170 (__mingw_fwrite): New prototype and define to replace fwrite.
4171 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
4172 * moldname-crtdll.def: Remove CR from end of line.
4173 * moldname-msvcrt.def: Ditto.
4175 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
4177 * profile/configure.in (CRT0S): Configure name of gcrt?.o
4178 based on target, building gcrt0.o for cygwin -mno-cygwin.
4179 * profile/configure: Regenerate.
4180 * profile/Makefile.in (CRT0S): Use name from configure.
4181 (gcrt0.o): New rule.
4182 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
4184 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4186 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
4187 _fpecode): Remove prototypes copied from float.h.
4188 (nan, nanf): Move into block protected against RC_INVOKED
4190 * include/stdlib.h (_Exit): Change from static inline to
4192 * mingwex/_Exit.c : New file.
4193 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
4195 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4197 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
4198 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
4199 (configdirs): Likewise.
4200 (LIBGMON_A): Define for cygwin target as well.
4201 * configure: Regenerate.
4202 * profile/configure.in (THREAD_DLL): Remove define.
4203 (LIBM_A): Remove define.
4204 (LIBGMON_A): Define for cygwin target as well.
4205 * profile/configure: Regenerate.
4206 * profile/makefile.in (install): Install to inst_libdir and
4208 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
4209 (OPTFLAGS): New define.
4210 (ALL_CFLAGS): Add $(OPTFLAGS).
4211 (ALL_CXXFLAGS): Same.
4212 (.c.o:): Remove ALL_CXXFLAGS.
4214 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4216 * include/stdint.h: Add missing newline at eof.
4217 * include/stdio.h (snprintf): Add prototype.
4218 (vsnprintf): Add prototype and inline definition.
4219 (snwprintf): Add prototype.
4220 (vsnwprintf): Add prototype and inline definition.
4221 * include/wchar.h (snwprintf): Add prototype.
4222 (vsnwprintf): Add prototype and inline definition.
4223 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
4225 * mingwex/snprintf.c: New file.
4226 * mingwex/snwprintf.c: New file.
4228 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
4230 * configure.in: Add mingwex as SUBDIRS and configdirs.
4231 * configure: Regenerate.
4232 * Makefile.in (MINGW_OBJS): Remove dirent.o.
4233 (SRC_DIST_FILES): Remove dirent.c.
4235 * include/stdlib.h (_Exit): Add static inline
4237 (struct lldiv_t): Define.
4238 (lldiv): Add prototype.
4239 (llabs): Add extern inline function.
4240 (strtoll,strtoull): Add prototypes.
4241 (wcstol, wcstoul, wcstod): Group together.
4242 (strtof, wcstof): Add extern inline definitions.
4243 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
4244 and extern inline definitions.
4245 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
4246 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
4248 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
4249 (wcstof): Add extern inline definition.
4250 * include/math.h (nan, nanf): Add prototypes.
4251 (NAN, INFINITE): Define constants.
4252 (fpclassify, isnan ,signbit): Add macros and supporting float
4253 and double functions.
4254 (isfinite, isinf, isnormal): Add macros.
4255 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
4257 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
4258 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
4259 (copysign, logb, nextafter, scalb): Add prototypes and
4260 inline stubs for underscored versions in msvcrt.dll.
4261 * include/inttypes.h: New file.
4262 * include/fenv.h: New file
4264 Add new mingwex subdir and files.
4265 * mingwex: New directory.
4266 * mingwex/Makefile.in: New file.
4267 * mingwex/configure.in: New file.
4268 * mingwex/configure: Generate.
4269 * mingwex/dirent.c: Moved here from parent dir.
4270 * mingwex/atoll.c: New file.
4271 * mingwex/feclearexcept.c: New file.
4272 * mingwex/fegetenv.c: New file.
4273 * mingwex/fegetexceptflag.c: New file.
4274 * mingwex/fegetround.c: New file.
4275 * mingwex/feholdexcept.c: New file.
4276 * mingwex/feraiseexcept.c: New file.
4277 * mingwex/fesetenv.c: New file.
4278 * mingwex/fesetexceptflag.c: New file.
4279 * mingwex/fesetround.o: New file.
4280 * mingwex/fetestexcept.c: New file.
4281 * mingwex/feupdateenv.c: New file.
4282 * mingwex/fma.S: New file.
4283 * mingwex/fmaf.S: New file.
4284 * mingwex/fmax.c: New file.
4285 * mingwex/fmaxf.c: New file.
4286 * mingwex/fmin.c: New file.
4287 * mingwex/fminf.c: New file.
4288 * mingwex/fp_consts.c: New file.
4289 * mingwex/fpclassify.c: New file.
4290 * mingwex/fucom.c: New file.
4291 * mingwex/fwide.c: New file.
4292 * mingwex/imaxabs.c: New file.
4293 * mingwex/imaxdiv.c: New file.
4294 * mingwex/isnan.c: New file.
4295 * mingwex/isnanf.c: New file.
4296 * mingwex/lltoa.c: New file.
4297 * mingwex/lltow.c: New file.
4298 * mingwex/log2.c: New file.
4299 * mingwex/log2f.c: New file.
4300 * mingwex/math_stubs.c: New file.
4301 * mingwex/mbsinit.c: New file.
4302 * mingwex/rint.c: New file.
4303 * mingwex/round.c: New file.
4304 * mingwex/signbit.c: New file.
4305 * mingwex/sitest.c: New file.
4306 * mingwex/strtof.c: New file.
4307 * mingwex/strtoimax.c: New file.
4308 * mingwex/strtoumax.c: New file.
4309 * mingwex/testwmem.c: New file.
4310 * mingwex/trunc.c: New file.
4311 * mingwex/ulltoa.c: New file.
4312 * mingwex/ulltow.c: New file.
4313 * mingwex/wcstof.c: New file.
4314 * mingwex/wcstoimax.c: New file.
4315 * mingwex/wcstoumax.c: New file.
4316 * mingwex/wmemchr.c: New file.
4317 * mingwex/wmemcmp.c: New file.
4318 * mingwex/wmemcpy.c: New file.
4319 * mingwex/wmemmove.c: New file.
4320 * mingwex/wmemset.c: New file.
4321 * mingwex/wtoll.c: New file.
4323 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4325 * include/mbstring.h: New file.
4326 * include/mbctype.h: New file.
4328 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4330 * include/tchar.h (__TEXT): Make same as define in
4331 w32api/include/winnt.h.
4333 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4335 * include/tchar.h (_tputenv): Add UNICODE mappings.
4336 (_tsearchenv): Likewise.
4337 (_tmakepath): Likewise.
4338 (_tsplitpath): Likewise.
4339 (_tfullpath): Likewise.
4341 2002-04-18 Pascal Obry <obry@gnat.com>
4343 * dirent.c (opendir): Convert given pathname to
4346 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4348 * include/_mingw.h: Increment version.
4349 * Makefile.in: Ditto.
4351 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4353 * moldname-crtdll.def: Remove CR from end of line.
4354 * moldname-msvcrt.def: Ditto.
4355 * Makefile.in: Use bzip2 compression for Cygwin target.
4357 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
4359 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
4360 TLOSS, PLOSS): Move oldname defines back, following
4361 the underscored names.
4363 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
4365 * include/stdio.h (_snwprintf): Correct spelling.
4366 (_vsnwprintf): Likewise.
4367 * include/wchar.h (_snwprintf): Correct spelling.
4368 (_vsnwprintf): Likewise.
4370 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
4372 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
4373 (wpopen): Add if !(__CRTDLL__).
4374 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
4376 (moldname-crtdll.def rule): Likewise.
4377 * moldname-msvcrt.def: Regenerate.
4378 * moldname-crtdll.def: Regenerate.
4379 * include/stdio.h (wpopen):Use prototype, not a define.
4380 (_swnprintf): Add prototype.
4381 (_vswnprintf): Likewise.
4383 * include/wchar.h (_swnprintf): Add prototype.
4384 (_vswnprintf): Likewise.
4387 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
4389 * include/malloc.h (_heapinfo): Correct structure definition.
4390 (_USEDENTRY,_FREEENTRY): Add defines.
4391 Add comment on platform support for _heap* functions.
4392 (_get_sbh_threshold): Add prototype.
4393 (_set_sbh_threshold): Likewise.
4394 (_expand): Likewise.
4396 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4398 * profile/profil.c: Update copyright info.
4399 * profile/profil.h: Likewise.
4400 * profile/gcrt0.c: Likewise.
4402 2002-01-25 Pascal Obry <obry@gnat.com>
4404 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
4406 * profile/gmon.c: Define bzero as memset if mingw32.
4407 (monstartup): Use it.
4409 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4411 * include/tchar.h (_TCHAR): Add missing ;.
4413 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4415 * include/tchar.h (_TCHAR): Add typedefs.
4417 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4419 * include/stdlib.h (_onexit_t): Add typedef.
4420 (_onexit): Add prototype.
4422 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
4424 * msvcrt.def: Revert accidental change.
4425 * include/stdlib.h: Ditto.
4427 2001-12-07 Earnie Boyd <earnie@users.sf.net>
4429 * Makefile.in: Increment VERSION.
4430 * include/_mingw.h: Ditto.
4432 2001-12-05 Earnie Boyd <earnie@users.sf.net>
4434 * include/strings.h: New File.
4436 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
4438 * include/math.h (_FPCLASS* ): Add defines from float.h.
4439 (IEEE recommended functions): Add declarations from float.h.
4440 * include/float.h (_FPCLASS* ): Protect against redefinition.
4442 2001-11-29 Wu Yongwei <adah@netstd.com>
4444 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
4445 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
4446 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
4447 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
4448 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
4449 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
4450 Correct spelling of "disclaimed" in comments.
4451 * include/excpt.h: Another spelling correction.
4453 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
4455 * include/errno.h: Fix "errno is not a prototype" warning.
4457 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
4459 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
4460 differences between ANSI and non-ANSI versions.
4461 (_ctype[],_pctype): Declare vars.
4462 (__ISCTYPE): New helper macro using _pctype.
4463 (is* ctype functions): Use __ISCTYPE to define inline versions.
4464 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
4466 (isw* ctype functions): Inline definitions.
4467 * include/wctype.h (_ctype[],_pctype): Declare vars.
4468 (isw* ctype functions): Inline definitions.
4471 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4473 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
4474 __fpecode): Use __STDC__ prototypes.
4477 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
4479 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
4480 * mthr_init.c (DllMain) Run dtors if a process terminates.
4481 * mthr.c (__mingwthr_add_key_dtor) Removed.
4482 (___mingwthr_add_key_dtor) New.
4483 (___mingwthr_remove_key_dtor) New.
4484 (__mingwthr_run_key_dtors) Complete rewrite.
4485 (__mingwthr_remove_key_dtor) New.
4487 2001-11-05 Egor Duda <deo@logos-m.ru>
4489 * Makefile.in: Delete unused executable after creating base-files.
4491 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4493 * include/errno.h (_errno): Use __STDC__ prototype.
4494 Thanks to: Jim Barton.
4496 2001-11-04 "stefan" <stefan@lkcc.org>
4498 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
4500 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4502 * include/io.h (_commit): Add declaration.
4503 Thanks to: "stefan" <stefan@lkcc.org>
4505 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4507 * include/sys/stat.h: Make S_IS* macros safer.
4509 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4511 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
4513 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
4515 * include/stdlib.h (__p__environ, __p__wenviron): Use
4516 __STDC__ prototypes.
4518 2001-09-19 Earnie Boyd <earnie@SF.net>
4520 * Makefile.in: Remove the /usr from the install target.
4521 (VERSION): Increment.
4522 include/_mingw.h: Ditto.
4524 2001-09-17 Earnie Boyd <earnie@SF.net>
4526 * Makefile.in: Increment version.
4527 * include/_mingw.h: Ditto.
4529 2001-09-10 Earnie Boyd <earnie@SF.net>
4531 * dossh: Remove inadvertantly imported file.
4533 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
4535 * dirent.c (opendir): Use GetFileAttributes rather than stat
4536 to determine if input arg is dir.
4538 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
4540 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
4542 * include/varargs.h (va_list): Ditto.
4543 * include/stdio.h (va_list): Ditto.
4545 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
4547 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
4548 * include/stdio.h (_IORW): Change constant to 0x0080.
4549 (TMP_MAX): Add new define.
4551 (_wP_tmpdir): Ditto.
4552 (L_tmpnam): Change constant to 16.
4554 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
4556 * include/malloc.h: Fix non-ANSI comment after #endif.
4558 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4560 * profile/configure.in: Make msvcrt.dll version default.
4561 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
4562 * provile/configure: Regenerate.
4564 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
4566 * include/stdio.h (swscanf): Make first arugument const.
4567 * include/wchar.h (swscanf): Ditto.
4568 * include/tchar.h (_tfopen): New _UNICODE define.
4570 (_tsetlocale): Ditto.
4572 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
4574 * profile/Makefile.in (mkinstalldirs): Correct relative path.
4576 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
4578 * include/_mingw.h: Change version to 1.0.
4581 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
4583 * include/tchar.h: (__TEXT): Remove undef.
4587 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
4589 * include/tchar.h: (__TEXT): Add private macro.
4590 (_TEXT): Modify definition to use __TEXT.
4592 This change allows the passing of a MACRO as an argument and have that
4593 MACRO resolved first.
4594 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
4596 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
4598 * Makefile.in: Increment version to 0.5
4599 * include/_mingw.h: Increment minor version
4601 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
4603 * include/assert.h: (assert): Remove ; from end of definition
4604 Thanks to: AJ Reins <tbisp@qwest.net>
4606 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
4608 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
4609 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
4611 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
4613 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
4615 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
4617 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
4618 are actually C functions. These functions are resolved via the
4619 -lmsvcp60 library and comments were placed in the header.
4621 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4623 * include/stdlib.h (__p__pgmptr): add prototype.
4624 (__p__wpgmptr): likewise.
4625 (_pgmptr_dll): move declaration from dos.h.
4626 (_wpgmptr_dll): likewise.
4627 (_pgmptr): conditional define (MSVCT/CRTDLL).
4628 (_wpgmptr): likewise.
4629 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
4630 (_os*_dll variables): likewise.
4631 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
4632 (_wpgmptr_dll): likewise.
4634 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4636 * include/stdint.h: New file.
4638 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
4640 * include/wchar.h: Protect prototypes only declared in the C++ STL
4641 from being declared unless __cplusplus is defined.
4643 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
4645 * include/stdlib.h: Apply Danny Smith patch 102730
4646 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4647 (_wgetenv) Correction to return type.
4649 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
4651 * include/locale.h: Apply Danny Smith patch 101834
4652 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4653 (LC_MIN) Add definition.
4655 (_wsetlocale) Add prototype.
4657 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
4659 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
4660 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
4661 Create a libcoldname.a for the oldname library for CRTDLL.
4662 Restrict libmoldname.a for the oldname library for MSVCRT.
4663 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
4664 Restructure the $target_os case logic.
4665 Always name the MinGW thread dll helper mingwm.
4666 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
4667 * configure: regenerate.
4669 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
4671 * Makefile.in: Fix bindist target to distribute the correct files.
4672 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
4673 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
4675 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
4677 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
4678 Add variables and targets to control binary and source distributions.
4679 Add variables and targets to control snapshot distribution.
4680 * profile/gmon.h: Add missing #endif for #ifndef.
4681 * profile/ChangeLog: Merge entries here and remove.
4682 * profile/Makefile.in: Add variables and targets to control
4686 * config.guess: ditto.
4687 * config.sub: ditto.
4688 * mkinstalldirs: ditto.
4689 * install-sh: ditto.
4690 * configure: regenerate.
4691 * profile/configure: ditto.
4693 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
4695 * Merge in changes from
4696 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4697 * include/direct.h: add guard around MSVCRT-only prototytpes
4698 * include/io.h: add __int64 struct definitions and function prototypes;
4699 add guard for MSVCRT-only prototypes
4700 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
4701 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
4702 put wchar functions together to make sync with wchar.h easier
4703 * include/stdlib.h: add wide char functions (__MSVCRT__)
4704 * include/string.h: add string collation functions ( __MSVCRT__)
4705 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
4706 * include/tchar.h: add macros and macro function definitions
4707 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
4708 enclose more functions in __MSVCRT__ guard;
4709 some oldname wide char function prototypes #if (0)'d
4710 * profile/gmon.h: add guard around BSD-ish typedefs
4712 2000-11-20 Christopher Faylor <cgf@cygnus.com>
4714 * Makefile.in: Use a different variable name for subdirectory since the
4715 previous one was used by the top level make.
4717 2000-11-19 Christopher Faylor <cgf@cygnus.com>
4719 * Makefile.in: Install mingw stuff in a subdirectory if building under
4722 2000-06-17 Christopher Faylor <cgf@cygnus.com>
4724 * Makefile.in (subdirs): Eliminate for loop.
4726 2000-06-17 Christopher Faylor <cgf@cygnus.com>
4728 * Makefile.in (subdirs): Previous change did not fix problem in
4731 2000-06-17 Christopher Faylor <cgf@cygnus.com>
4733 * Makefile.in: Avoid installing dll if we're cross building and the
4734 cross-host system isn't a Windows system.
4735 * configure.in: Detect cross-hosting situation and set appropriate
4736 variables in Makefile.in.
4737 * configure: Regenerate.
4739 2000-04-19 Christopher Faylor <cgf@cygnus.com>
4741 * configure.in: Change HEADER_SUBDIR to mingw32.
4742 * configure: Regenerate.
4744 2000-04-10 Christopher Faylor <cgf@cygnus.com>
4746 * include/string.h: Use proper prototype for _strerror.
4748 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
4750 * Makefile.in (subdirs): Workaround for broken shells.
4752 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
4754 * Snapshot 2000-02-03.
4756 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
4757 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
4758 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
4759 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
4762 * Makefile.in (all): Build CRT0S first.
4763 (libmingwthrd.a): Remove thread support DLL from dependency.
4765 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
4767 * Snapshot 2000-01-21.
4769 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
4771 Merge in changes from Cygwin:
4772 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
4773 (SUBDIRS): Likewise.
4774 * Makefile.in (HEADER_SUBDIRS): New variable.
4775 (install): Use to install Mingw headers to a subdirectory if building
4777 (DLL_CC_STUFF): Add DLL entry point.
4778 * configure: Regenerate.
4780 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
4782 * include/stdio.h (fsetpos): Fix prototype.
4783 (fpos_t): Fix for MSVCRT.
4784 * include/float.h (fpreset): Add prototype.
4785 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
4787 * include/time.h: Don't define tzname as a macro for CRTDLL, and
4788 export using libmoldname.a.
4789 * crtdll.def: Add DATA tags.
4790 * msvcrt.def: Likewise.
4791 * moldname.def.in: Likewise. Add fpreset. Export tzname for
4792 both MSVCRT and CRTDLL.
4793 * moldname-crtdll.def: Regenerate.
4794 * moldname-msvcrt.def: Regenerate.
4796 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
4798 * Snapshot 1999-12-21.
4800 * include/wctype.h: New file.
4801 * include/ctype.h (MB_CUR_MAX): Define.
4803 * include/stdlib.h (MB_CUR_MAX): Define.
4804 * include/wchar.h: Define stat, _stat structures here as well.
4805 * include/float.h: Add invalid subconditions (_SW) and floating
4806 point error (_FPE) macros.
4807 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
4808 (_TIME_T): Rename macro to _TIME_T_DEFINED.
4809 * include/sys/types.h: Likewise.
4811 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
4813 * profile/profil.c (profile_on): Set the profiler thread priority to
4814 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
4815 * Snapshot 1999-11-18.
4817 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
4819 Released 1999-11-07.
4821 * Makefile.in (CRT0S): Add crtst.o.
4822 (install): Install in subdirs as well.
4823 * dirent.h (struct _stat): Rename from struct stat.
4824 * include/tchar.h: Add some new macros. Thanks to
4825 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
4826 * profile/Makefile.in (install): Fix target.
4828 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
4830 * Makefile.in: Add support for profile directory.
4831 * configure.in: Likewise.
4832 * configure: Regenerate.
4834 * profile: Imported profiling sources from winsup-19991026 snapshot.
4835 * profile/Makefile.in: New file.
4836 * profile/configure.in: New file.
4837 * profile/configure: Generate.
4838 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
4839 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
4840 * profile/gmon.c (unistd.h): Include conditionally.
4841 (sys/param.h): Likewise.
4842 * profile/mcount.c (sys/param.h): Likewise.
4843 * profile/profil.c (profile_on): thread id is DWORD, not int.
4846 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
4848 * include/stdlib.h: Add wide character version of argv/environ.
4850 * include/wchar.h: More wide character prototypes.
4851 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
4853 * dllcrt1.c (init.c): Don't include.
4854 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
4855 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
4857 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
4859 * moldname.def: Remove file.
4860 * moldname.def.in: And add this.
4861 * moldname-msvcrt.def: Generate from moldname.def.in.
4862 * moldname-crtdll.def: Likewise.
4864 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
4865 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
4866 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
4868 * Makefile.in: Update.
4869 * configure.in: Likewise. Also add *cygwin* target for building
4870 under Cygwin winsup.
4871 * configure: Regenerate.
4873 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
4875 * include/_mingw.h: Add version macros.
4876 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
4877 Also add wide character versions shared with wchar.h.
4878 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
4879 * include/io.h (sopen, _sopen): Fix prototype.
4880 Add wide character prototypes.
4881 * include/wchar.h: Likewise.
4882 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
4883 underscored versions. Potential incompatibility.
4884 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
4885 Add wide character prototypes.
4886 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
4889 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
4891 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
4892 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
4894 * configure: Rengerate.
4895 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
4896 dll name and crt's. CRTDLL and MSVCRT are meant to created
4897 separately, so remove all the *-msvcrt* targets.
4898 (libmingwthr.a): New target. Dummy thread support archive.
4899 (LIBS): Add libmingwthr.a.
4900 (CRT0S): Use CRT_ID. Add crtmt.o.
4901 (MINGW_OBJS): Add crtst.o.
4902 * main.c (WinMain): Fix prototype.
4903 * crtmt.c: New file.
4904 * crtst.c: New file.
4906 * include/process.h (_beginthreadex): Fix prototype.
4907 * include/_mingw.h (__int64): Define for __GNUC__.
4908 * include/tchar.h (_ttol): Add macro.
4909 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
4910 _i64tow, _ui64tow, _wtoi64): Add prototypes.
4912 Reported by Emanuele Aliberti <ea@iol.it>:
4913 * include/tchar.h (_ttoi): Add macro.
4915 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
4916 * include/stdio.h (_snprintf): Add prototype.
4917 (_vsnprintf): Likewise.
4919 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
4921 Reported by Tor Lillqvist <tml@iki.fi>:
4922 * include/stdlib.h (__p___argv): Fix return type.
4924 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
4927 * include/errno.h (errno): It's linked in from startup, not imported.
4928 * include/stdlib.h (errno): Likewise.
4929 * include/io.h: Guard against conflicting macros and prototypes in
4931 * include/stdlib.h: Likewise.
4932 * include/string.h: Likewise.
4933 * include/time.h: Likewise.
4935 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
4937 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
4938 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
4939 * Makefile.in (INCLUDES): Remove old windows32 include directory.
4941 * crt1.c (_gnu_exception_handler): Fix prototype.
4942 (__mingw_CRTStartup): New function based on mainCRTStartup.
4943 (mainCRTStartup): Set the app type for MSVCRT and call
4945 (WinMainCRTStartup): Likewise.
4946 * init.c (_startupinfo): Define.
4947 (_getmainargs): Add 5th parameter.
4948 (_mingw32_init_mainargs): Use.
4950 * ALL *.c files: Reformat according to GNU coding style.
4952 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
4954 * Makefile.in (INCLUDES): Add w32api include directory.
4956 * include/_mingw.h: New file.
4957 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
4958 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
4959 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
4960 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
4961 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
4962 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
4964 * include/stdlib.h (atexit): Fix prototype.
4966 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
4968 * include/stdio.h (_tempnam): Fix prototype.
4969 (tempnam): Likewise.
4970 * include/stdlib.h: Replace with GCC's version, and guard
4973 From Anders Norlander <anorland@hem2.passagen.se>:
4974 * include/stdlib.h (__argc): Declare.
4977 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
4979 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
4981 * Makefile.in (_libm_dummy.o): New target.
4984 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
4986 * Released 1999-03-16 along with egcs-1.1.2.
4988 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
4990 * Makefile.in (LIBS): Add libm.a.
4991 (libm.a): Dummy libm.a.
4993 * Makefile.in: Update from winsup 1999-02-08 snapshot.
4994 Preserve local changes.
4995 (mkinstalldirs): In ../, not ../../.
4996 (INCLUDES): Point to local windows32api headers and use -nostdinc.
4998 (LIBS): Add libmoldname-msvc.a.
4999 (libmoldname-msvc.a): Add target.
5000 (distclean): Add target.
5002 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5004 * include/dir.h: Reintroduce as an obsolescent header.
5005 * crt1.c (signal.h): Include.
5006 (_gnu_exception_handler): New function to properly handle win32
5007 asynchronous signals.
5008 (mainCRTStartup): Use.
5010 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5012 * include/direct.h: Include io.h instead of dir.h
5013 * include/dirent.h: Likewise.
5014 * include/dos.h: Likewise.
5015 * include/stdio.h: Replace reference to dir.h with io.h.
5017 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5019 * 1999-01-01 release bundled with egcs-1.1.1.
5021 * include/io.h: Incorporate dir.h.
5022 * include/dir.h: Remove.
5023 * include/signal.h: Move RC_INVOKED up a bit.
5025 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5027 * include/signal.h (sig_atomic_t): Define.
5029 * include/malloc.h: Import defs from deprecated alloc.h.
5030 * include/alloc.h: Remove.
5032 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5033 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5034 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5035 _off_t instead of long for st_size.
5037 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5039 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5040 * include/stdlib.h: Here.
5042 * include/netdb.h: Remove.
5043 * include/arpa/inet.h: Remove.
5044 * include/netinet/in.h: Remove.
5045 * include/sys/socket.h: Remove.
5047 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5051 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5052 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5054 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5056 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5057 (jmpbuf): typedef using above.
5058 (setjmp, longjmp): Prototype using jmpbuf.
5060 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5061 obsolescent imported names, ie., from __imp__ to _imp___.
5063 Also ignored empty include/sys/param.h and incorrect
5064 include/sys/times.h.
5066 * CRTinit.c: New file.
5067 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5069 * include/io.h (umask): Fix prototype.
5070 * include/stdlib.h (OS constants): Replace with Colin's.
5071 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5072 * include/sys/state.h: Merge.
5074 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5076 * include/assert.h (assert): Lose the trailing semicolon.
5078 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5080 * include/math.h (matherr): Declare.
5081 * include/stdio.h (fileno, _fileno): Declare.
5082 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5085 * include/stdio.h (fdopen, _fdopen): Add const.
5086 (getw, putw): Declare.
5087 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5089 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5091 * include/time.h (_timezone): Undefine.
5092 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5094 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5096 * include/stdlib.h (environ): Use DLL version.
5097 * init.c (environ): Undefine it before use.
5099 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5101 * Update to 980309 snapshot from Colin Peters.
5103 * include/utime.h: remove
5104 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5105 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5106 patches to define these.
5107 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5108 (_daylight, _timezone, _tzname, _tzset): Define.
5110 * include/netdb.h: Add from Colin's windows32api changes.
5111 * include/sys/socket.h: Likewise.
5112 * include/arpa/inet.h: Likewise.
5113 * include/netinet/in.h: Likewise.
5115 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5117 * Update to 980128 snapshot from Colin Peters.
5119 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5121 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5123 * configure: Regenerate.
5125 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5127 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5128 Files renamed and include hierarchy loses directories named
5131 * include/dos.h: from Jan-Jaap.
5133 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
5135 Changes to conform to FSF tree.
5137 * crt1.c: Renamed from mcrt0.c.
5138 * dllcrt1.c: Renamed from dllcrt0.c.
5139 * Makefile.in: Update above. Also renamed libmoldnames.a to
5142 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
5144 * crtdll.def: Export all functions but the ones with funny names.
5145 * moldnames.def: Add fdopen since fileno is already there.
5146 * include/nonansi/dos.h: New file from Jan-Jaap.
5147 * include/errno.h: Add extern decl + various additions from JJ.
5148 * include/stdio.h: Likewise.
5149 * include/stdlib.h: Likewise.
5150 * include/nonansi/io.h: Likewise.
5151 * include/nonansi/process.h: Likewise.
5152 * include/sys/types.h: Likewise.
5154 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5156 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5158 * include/stdlib.h (free): Fix prototype to return void, not void*.
5159 * include/nonansi/process.h: Add P_* and WAIT_* defs.
5161 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
5162 * mcrt0.c: Likewise.
5164 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
5165 (libmoldnames.a): Add explicit rule to create it.
5167 1997-08-15 Rob Savoye <rob@cygnus.com>
5169 New directory for the minimalist cygwin environment.
5171 * crtglob.c: New file. Turn on file globbing support.
5172 * crt_noglob.c: New file. Turn off file globbing support.
5173 * ctype_old.c: New file. Wrappers for functions that don't
5175 * dirent.c: New file. Directory routines readdir, opendir, closedir.
5176 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
5177 * dllmain.c: New file. A stub DllMain function.
5178 * hugeval.c: New file. A gross hack to define HUGE_VAL.
5179 * init.c: New file. Common code to initialize standard file
5180 handles and command line arguments.
5181 * main.c: New file. A main for programs that only call WinMain.
5182 * mcrt0.c: New file. Default crt0 for mingw32.
5183 * oldnames.c: New File. Wrappers for functions that don't
5185 * string_old.c: New File.
5186 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
5187 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
5188 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
5189 * include/sys/types.h: New header file for mingw.
5190 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
5191 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
5192 utime.h,values.h,varargs.h}: New header files for mingw.
5193 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
5194 timeb.h,unistd.h}: New header files for mingw.
5195 * Makefile.in,configure.in: Build and configure support.
5196 * configure: Generated from autoconf 2.12 with Cygnus patches.