1 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
5 * include/wchar.h: Some minor layout adjustments.
6 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
7 within the scope of reading <wchar.h>; undefine it at end of file.
8 (struct tm): Do not define; it is sufficient to keep it opaque.
9 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
10 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
11 directly; delegate to indirect definition by including <stdio.h>.
12 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
13 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
14 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
15 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
16 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
17 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
18 indirectly, by selective inclusion from <stdio.h>; hence include it.
20 * include/stdio.h: Assert copyright; tidy layout.
21 [__WCHAR_H_SOURCED__]: Selectively define and declare only those
22 entities which are required by <wchar.h>; do not define...
23 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
24 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
25 are normally specified within <stdio.h>, INCLUDING those specifically
26 itemised above, as selectively required by <wchar.h>.
28 * pseudo-reloc.c: Some minor layout adjustments.
29 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
30 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
31 include <stdint.h> to guarantee it.
33 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
35 Enable selective definition of POSIX system types.
37 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
38 any specific __need_TYPE selector having been set prior to inclusion;
39 DO define it when no such selector is present, and undefine all such
40 selectors as may have been set, after evaluation of their effects.
41 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
42 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
43 accommodates reorganization of the file, to achieve a tidier layout.
44 (__have_typedef_off_t): New repeat definition guard; define it for
45 compilers which may choke on any repeated typedef for either of...
46 (off_t, _off_t): ...these; make them selectively defineable for...
47 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
48 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
49 in either case, redefine them in terms of...
50 (__off32_t): ...this new internal type, for consistency with...
51 (__off64_t): ...this previously defined non-standard type; also make
52 it selectively defineable, either by...
53 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
54 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
55 (__have_typedef___off64_t): New repeat definition guard; define it.
56 (ssize_t, _ssize_t): Also make them selectively defineable, on...
57 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
58 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
59 (__have_typedef_ssize_t): New repeat definition guard; define it.
61 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
63 Avoid user namespace pollution by non-standard type 'off64_t'.
65 * include/sys/types.h (off64_t): Rename it as...
66 (__off64_t): ...this implementation-private alternative name, so
67 eliminating the potential for user namespace pollution.
69 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
70 return type, and type of offset argument, in both prototype and inline
71 implementation; note that this addresses the issue of pollution in the
72 user namespace, while avoiding the issue of MinGW-Bug [#].
74 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
75 instead of 'off64_t', as offset argument type in function prototypes.
76 (ftello64): Likewise, for return type of inline function.
78 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
79 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
80 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
82 * mingwex/stdio/fseeko64.c: Assert copyright.
83 (fseeko64): Use '__off64_t' per modified function prototype.
85 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
87 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
89 * mingwex/ofmtctl.c: New file; it implements...
90 (_mingw_output_format_control): ...this new function; it provides
91 additional MinGW specific printf() format processing options.
93 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
95 * include/stdio.h (_mingw_output_format_control): Declare it.
96 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
97 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
98 manifest constant expressions; define them.
100 * mingwex/stdio/pformat.c: Revise licensing terms.
101 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
102 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
103 modifier; this matches the behaviour specified by ISO-C99, else...
104 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
105 previous MSVC compatible behaviour, treating it as an `L' modifier.
106 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
108 * mingwex/ofmt.c (ARGLIST): Subsume references to...
109 (ARGTYPE): ...this now obsolete macro; delete it throughout.
110 (update_output_format_flag): New inline function; it restricts flag
111 operations to affect only Microsoft's exponent digit bits.
112 [FUNCTION == _set_output_format]: Use it.
113 [FUNCTION == _get_output_format]: Likewise.
115 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
117 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
119 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
120 defined, when implied by any STDC or POSIX version selection, viz. ...
121 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
123 * include/stdlib.h: Assert copyright; tidy layout.
124 (_STDLIB_H_): Multiple inclusion guard macro renamed...
125 (_STDLIB_H): ...to this, preferring no trailing underscore.
126 [!defined __NO_ISOCEXT]: Delete double negative references; use...
127 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
128 (lldiv_t): ...defining this C99 specific aggregate data type, and...
129 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
130 (wcstold, _Exit): ...declaring these C99 function prototypes.
131 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
132 future removal; not in MSVCRT.DLL, these conform to no known standard.
133 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
134 (__strtod): ...this libmingwex.a provided function; it handles string
135 representations of hexadecimal-floats, infinities and NaNs, whereas...
136 (strtod): ...this MSVCRT.DLL implementation does not.
137 (__MSVCRT_VERSION__): Prefer symbolic comparison...
138 [>= __MSVCR80_DLL]: ...for this requirement.
140 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
142 Rationalize definition of struct timespec.
144 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
145 tv_sec field, in place of anonymous union, thus avoiding missing brace
146 warnings when initializing; leave a copy of the previous definition...
147 (struct __mingw32_expanded_timespec): ...named thus.
149 * include/unistd.h (nanosleep): Adjust inline implementation, to match
150 altered specification of tv_sec field in struct timespec.
152 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
153 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
155 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
156 convenience function; defined as inline, with __LIBIMPL__ equivalent,
157 it facilitates interpretation of an instance of struct timespec as if
158 it were defined as struct __mingw32_expanded_timespec.
160 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
162 Make strings.h mostly POSIX.1-2008 compliant.
164 * include/strings.h: Rewritten. Do not include...
165 (string.h): ...this; mandated by POSIX.1, it now defines...
166 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
167 prototypes, possible in-line implementations, and JMPSTUB references
168 to corresponding external implementations, which will now become
169 automatically created within libmingwex.a
171 * include/parts/strings.h: New file; it declares prototypes for...
172 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
173 string.h, but we also require them in strings.h
175 * include/parts/wchar.h: New file; it declares prototypes for all wide
176 character functions which MSVC specifies in both wchar.h and string.h
178 * include/string.h: Miscellaneous layout adjustments.
179 (strcasecmp, strncasecmp): Delete; they belong in strings.h
180 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
181 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
182 include them from parts/wchar.h instead.
184 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
185 prototypes; include them from parts/wchar.h instead, so making this
186 guard macro redundant; delete it.
188 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
189 (wcscmpi.$OBJEXT): Implementations are now automatically generated
190 from header file, for inclusion in libmingwex.a; remove free-standing
191 implementations from the entire family of liboldname libraries, and...
192 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
193 files; they are no longer required.
195 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
197 Incorporate build system updates from w32api package.
199 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
200 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
201 (install-strip, uninstall): New make command goals; implement them.
202 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
203 (devdist, dlldist): ...these have no need to strip explicitly.
204 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
205 (install-mingwrt-headers): ...here.
207 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
209 Adapt platform feature checks to NTDDI_VERSION conventions.
211 * include/_mingw.h: Assert copyright; include w32api.h
212 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
213 to w32api/include/w32api.h, whence they remain in effect.
214 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
216 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
218 Correct mismatched #if/#endif from preceding commit.
220 * include/_mingw.h (#pragma GCC system_header)
221 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
222 correcting for inadvertent removal of matching #endif introduced by
223 preceding 2015-06-19 commit.
225 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
227 Define symbolic names for alternative Microsoft runtime DLLs.
229 * include/msvcrtver.h: New file; it assigns a value for...
230 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
231 (__MSVCR60_DLL): ...this new manifest constant, with each of...
232 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
233 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
234 ...these also defined, as user assignable alternatives.
236 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
237 to establish its default value.
239 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
241 Track dependencies on modified system header files.
243 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
245 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
247 Correct an anomaly in stage 1 only build procedure.
249 * Makefile.in (all-gcc): New goal; it is an alias for...
250 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
251 (all-mingwrt-stage-1-only): ...this; upate all references.
252 (active-goals): Adjusted accordingly; it now reguires...
253 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
254 (install): Adjusted, as directed by...
255 (DEFAULT_MAKECMDGOALS): ...this.
257 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
259 Prefer our hypot() implementation in complex maths operations.
261 * mingwex/complex/cabs_generic.c: New file; it replaces...
262 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
263 * mingwex/complex/cabsl.c: ...these.
265 * mingwex/complex/catan_generic.c: New file; it replaces...
266 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
267 * mingwex/complex/catanl.c: ...these.
269 * mingwex/complex/clog_generic.c: New file; it replaces...
270 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
271 * mingwex/complex/clogl.c: ...these.
273 * mingwex/complex/cpow_generic.c: New file; it replaces...
274 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
275 * mingwex/complex/cpowl.c: ...these.
277 * mingwex/complex/csqrt_generic.c: Do not use...
278 (_hypot): ...this Microsoft form of function reference; use...
279 (hypot): ...this ANSI standard form instead.
281 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
283 Correct C++ compilation anomaly with hypotf() in cmath header.
285 * include/math.h: Add copyright notice; generally tidy layout.
286 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
287 (hypotf): Delete inline implementation; it did not properly handle
288 range errors, and was uncompilable with optimization when any g++
289 option implying __STRICT_ANSI__ conformity was specified.
290 (_MATH_H_): Rename this multiple inclusion guard...
291 (_MATH_H): ...to this.
293 * mingwex/math/hypot_generic.c: New file; it implements...
294 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
295 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
297 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
299 Prepare and tag all files for release of mingwrt-3.21.1.
301 * configure.ac (AC_INIT): Adjust package version argument.
302 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
303 (__MINGW32_VERSION): ...increment this to match.
305 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
307 Refactor to avoid possible time_t conflicts across headers.
309 * include/parts/time.h (struct timespec): Make it more descriptive of,
310 and better able to accommodate, potential ambiguity relating to...
311 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
312 whence they may be identically imported into each of...
313 * include/sys/types.h include/time.h include/wchar.h: these; delete
314 duplicate typedefs, and import accordingly.
316 * include/sys/types.h: Add licence; general comment additions.
317 (_TYPES_H_): Rename multiple inclusion guard macro...
318 (_SYS_TYPES_H): ...to this.
320 * include/time.h: Add licence; general comment/layout adjustments.
321 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
322 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
323 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
324 (_TIME_H_): Rename multiple inclusion guard macro...
325 (_TIME_H): ...to this.
327 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
328 (struct timespec): ...of this.
330 * include/wchar.h: Add licence; general comment/layout adjustments.
331 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
332 [GCC] (system_header): Add pragma, identifying header as such.
333 (_WCHAR_H_): Rename multiple inclusion guard macro...
334 (_WCHAR_H): ...to this.
336 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
338 Remove obsolete varargs.h header file.
340 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
341 a GCC header which is no longer supported, and was always intended for
342 ultimate removal; now is the long overdue time to do so.
344 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
346 Correct improper unistd.h function attribute declarations.
348 * include/unistd.h (_cdecl): Correct usage throughout; should be...
351 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
353 Fix GLOB_DOOFFS initialization bug.
355 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
356 (gl_data->gl_offs): ...this is properly initialized to zero.
358 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
360 Tag all files for release of mingwrt-3.21.
362 * include/_mingw.h: Adjust version accordingly.
364 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
366 Improve usage notes in stdlib.h, for mkstemp() function.
368 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
369 an original comment, explaining the need to use _O_TEMPORARY, from...
370 * mingwex/mkstemp.c: ...here; delete trailing white space.
372 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
374 Eliminate some potential definition inconsistencies.
376 * include/stdio.h: Cosmetic formatting change, relating to...
377 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
378 unconditionally; this allows the compiler to check for consistency
379 with their primary definitions in stdio.h
381 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
383 Suppress expected warning diagnostics in LIBIMPL builds.
385 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
386 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
387 GCC flag to supress warnings relating to deprecated declarations.
389 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
391 Provide more POSIX conforming sleep() functions.
393 * include/sys/types.h (useconds_t): Make it explicitly long; int may
394 be okay, but doesn't guarantee enough bits; mark as deprecated, since
395 POSIX has declared it "obsolete", and no longer specifies it.
397 * mingwex/usleep.c: Delete file; it provided an implementation of...
398 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
399 its error handling was hopelessly broken; replace it with...
400 * mingwex/nsleep.c: ...this new file; it implements...
401 (__mingw_sleep): ...this generic helper function; it supports sleep
402 capability with interval specification to nanosecond precision.
404 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
405 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
406 (sleep, nanosleep): ...these current POSIX functions, and also...
407 (usleep): ...this obsolete one; mark it as deprecated.
409 * include/parts: New directory; it is intended to host partial header
410 implementations, for content which must be shared among arbitrary sets
411 of multiple standard header files.
413 * include/parts/time.h: New file; nominally declaring time.h content.
414 (struct timespec): Declare it; it is currently used within unistd.h,
415 to facilitate the __CRT_INLINE implementation of nanosleep().
417 * Makefile.in (libmingwex.a): Remove reference to...
418 (usleep.$OBJEXT): ...this; replace it with a reference to...
419 (nsleep.$OBJEXT): ...this alternative.
420 (mingwrt-includedirs): Add prerequisite to create...
421 ($includedir/parts): ...this new directory; it is populated by...
422 (install-mingwrt-headers): ...this rule; add requisite command.
424 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
426 Delete an unnecessary Unicode wrapper file.
428 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
429 UTF-16LE API from dirent.c, without any need for this wrapper.
431 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
433 Some further inline function rationalization.
435 * include/io.h (_CRTALIAS): Replace all references...
436 (__CRT_ALIAS): ...using this syntactically preferred form.
437 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
438 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
440 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
441 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
443 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
444 * mingwex/ftruncate.c: Likewise.
446 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
447 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
449 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
451 Some POSIX feature test adjustments.
453 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
454 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
455 (mkdtemp): This didn't become available until SUSv4, so requires...
456 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
458 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
460 Another CRT_INLINE function implementation rationalization.
462 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
463 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
464 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
466 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
467 (libmingwex.a): Delete obsolete dependency on...
468 (imaxabs.$OBJEXT): ...this.
470 * mingwex/imaxabs.c: File is now redundant; delete it.
472 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
474 More rationalization of CRT_INLINE function implementations.
476 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
477 (ftello64): Add __LIBIMPL__ specification for extern implementation.
478 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
480 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
481 * mingwex/stdio/ftell064.c: Likewise.
483 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
484 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
486 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
488 Don't implicitly define _POSIX_C_SOURCE too early.
490 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
491 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
492 that it is not accidentally activated by implied _POSIX_C_SOURCE.
494 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
496 Correct complex arcsin computation per issue [#2245].
498 * mingwex/complex/casin_generic.c: New file; it replaces...
499 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
500 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
502 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
504 Correct complex square root computation per issue [#2246].
506 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
507 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
508 (hypot): ...this libmoldname.a indirection.
510 * mingwex/complex/csqrt_generic.c: New file; it replaces...
511 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
512 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
514 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
516 Adjust header guards to resolve issue [#2244].
518 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
519 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
520 ...when any of these prevail, or as appropriate to correspond with...
521 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
523 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
524 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
525 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
526 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
528 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
530 Add implementation of mkstemp() and mkdtemp() functions.
532 * mingwex/cryptnam.c: New file; it implements...
533 (__mingw_crypto_tmpname): ...this helper function; it generates a
534 cryptographically secure sequence of characters, used as the random
535 component in temporary file and directory names.
537 * mingwex/mkstemp.c: New file; it implements...
538 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
540 * mingwex/mkdtemp.c: New file; it implements...
541 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
543 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
544 function implementation, with LIBIMPL extern semantics, in terms of...
545 (__mingw_mkstemp): ...this; also declare prototype, and define...
546 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
547 (_MKSTEMP_SETMODE): New macro; define it, also providing...
548 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
549 (mkdtemp): Declare prototype; provide inline implementation, with
550 JMPSTUB extern semantics, in terms of...
551 (__mingw_mkdtemp): ...this; declare prototype.
553 * Makefile.in (libmingwex.a): Add dependency rule, to include...
554 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
556 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
558 More JMPSTUB rationalization of inline functions.
560 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
561 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
562 appropriate MSVCRT.DLL equivalent entry point.
564 * mingwex/_Exit.c: File is now redundant; delete it.
565 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
566 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
568 * Makefile.in (jmpstub_awk_script): Add support for...
569 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
570 (libmingwex.a): Remove dependencies on deleted files, namely...
571 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
572 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
574 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
576 Correct omission of complex conjugate functions from libmingwex.a
578 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
579 (creal, crealf, creall): Likewise, for consistency of implementation.
580 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
582 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
583 declarations; they should be interpreted analogously to __CRT_ALIAS.
584 (libmingwex.a): Remove object file references for functions which are
585 now declared as LIBIMPL, and sort the remainder in ASCII collating
586 order; deleted function references comprise the set consisting of...
587 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
588 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
589 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
591 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
592 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
593 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
594 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
595 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
597 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
599 Back-port improved asinh() implementation from 4.0-dev branch.
601 * mingwex/math/asinh_generic.c: New file; it replaces...
602 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
603 ...all of these; delete them.
605 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
607 Enable remake of lost LIBIMPL object files.
609 * Makefile.in (libimpl_remake): New macro; define it, and...
610 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
612 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
614 Implement more robust _get_output_format fallback handling.
616 * mingwex/ofmt.c: New file; it implements...
617 (__mingw_output_format_flag): ...backing store, used by...
618 (__mingw_get_output_format, __mingw_set_output_format): ...these
619 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
620 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
621 version specific Microsoft APIs, which are also supported by some
622 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
623 (__mingw_get_output_format_fallback): Implement; it is aliased to...
624 (__mingw_set_output_format_fallback): ...this; together they provide
625 the emulation support for the preceding pair of functions, when they
626 are not available within the run-time platform MSVCRT.DLL
627 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
628 Implement them; they wrap, and if necessary emulate...
629 (_get_printf_count_output, _set_printf_count_output): ...these.
630 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
631 (__mingw_set_printf_count_output_fallback): ...this; together they are
632 required to support emulation of the preceding pair of functions, when
633 they are not available within the run-time platform MSVCRT.DLL
635 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
636 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
637 (__mingw_get_output_format, __mingw_set_output_format)
638 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
639 Unconditionally declare their prototypes, for subsequent inline use.
640 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
641 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
642 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
643 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
644 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
645 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
646 represent a compilable token.
648 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
649 _get_output_format; consult __mingw_output_format_flag directly.
651 * ofmt_stub.s: No longer required; delete it.
653 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
654 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
655 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
656 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
657 all are compiled from ofmt.c
659 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
661 Do some more essential build tree clean up.
663 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
664 in the way of a successful rebuild from clean.
666 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
668 Implement wrappers for emulation of POSIX dlfcn API.
670 * include/dlfcn.h: New file; it declares the API.
671 * mingwex/dlfcn.c: New file; implement it, with access via...
672 (__mingw_dlfcn): ...this publicly addressable vector table.
674 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
675 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
676 (__LIBIMPL__): ...this automatic interface generator; implement it.
677 (libstub_refnames): New macro; it is adapted from and replaces...
678 (jmpstub_refs): ...this; when it is then invoked twice to build...
679 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
680 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
681 (libimpl_awk_script): New inline script; it handles automated builds
682 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
683 (libimpl_sed_script): New inline script; it prepares intermediate C
684 source code for LIBIMPL interfaces, as required to satisfy these...
685 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
686 (LIBIMPL_CFLAGS): New macro; define it.
688 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
690 Move libgen functions to __mingw_ pseudo-namespace.
692 * mingwex/dirname.c (dirname): Rename function, as implemented...
693 (__mingwex_dirname): ...to this.
695 * mingwex/basename.c (basename): Rename function, as implemented...
696 (__mingwex_basename): ...to this.
698 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
699 prototypes, matching and augmenting original declarations for...
700 (dirname, basename): ...these; reimplement as inline aliases, with
701 __JMPSTUB__ references to the renamed implementation entry points.
703 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
705 Implement new command line argument globbing strategy.
707 * include/_mingw.h: Backport feature defines from master...
708 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
709 constants; define them. They select the preferred globbing algorithm.
710 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
711 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
712 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
713 they enable optional additional features supported by this algorithm.
714 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
716 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
718 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
719 * setargv.c: ...new file; it implements the initialization mechanism
720 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
721 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
722 it invokes the algorithm via an API similar to that described by MSDN,
723 while continuing to support our original _CRT_glob interpretation.
724 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
725 algorithm, via the MSDN-alike API, by calling back to...
727 * crt1.c (_mingw32_init_mainargs): ...this original function, now
728 relocated to here, as a publicly addressable function; formerly...
729 (__mingw_CRTStartup): ...called directly from here, we now redirect
730 the call through _setargv(), whence it may be called indirectly.
732 * init.c: Redundant file; delete it. It originally provided...
733 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
734 original static attribute removed, to allow global addressing.
736 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
738 Backport glob implementation from master to legacy.
740 * include/glob.h: New file; copy it from master branch.
741 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
742 (glob, globfree): ...each of these, respectively.
744 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
745 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
746 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
747 (accept_glob_nocheck_match): New static function; it adds support for
748 avoidance of globbing on patterns with no globbing token, so avoiding
749 the case transliteration effect reported as MinGW-Bug #2106.
750 (glob_match): Use it.
752 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
754 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
756 Implement conventionally named dirent function trampolines.
758 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
759 which redirects a conventionally named function call to its __mingw_
760 pseudo-namespace implementation.
762 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
763 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
764 appropriate protocol for compiling *.sx files, (supported natively by
765 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
767 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
768 yet provide it, so we define it ourselves; deploy it for *.sx files.
769 (Makefile.stub): New sinclude file; create it dynamically, using...
770 (jmpstub_awk_script): ...this new inline script, which is based on...
771 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
772 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
773 (mostlyclean-local): Remove Makefile.stub; do likewise...
774 (Makefile): ...when remaking this, to ensure that both will be
777 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
779 Make dirent implementation namespace and time_t clean.
781 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
782 macros; define them. They facilitate identification of symbols which
783 must be compiled with `extern "C"' binding, when compiling C++ code.
784 (__CRT_ALIAS): New macro; define it. It is intended to replace...
785 (_CRTALIAS): ...this, which is to be considered as deprecated.
786 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
787 __CRT_ALIAS build hints, while remaining transparent to GCC.
788 (UNICODE, _UNICODE) [user defined]: Define consistently.
790 * mingwex/dirent.c: Reimplement; (this is a back-port from the
791 4.0-dev branch, with additional ABI changes to improve stability).
792 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
793 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
794 Add `__mingw_' prefix to all publicly exposed symbol names.
795 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
796 implemented functions; they replace Microsoft's ambiguously defined
797 _findfirst, _findnext, and _findclose, so avoiding ABI instability
798 resulting from the ambiguous size of Microsoft's time_t.
800 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
801 removing unnecessary time_t and file size fields; (our replacements
802 for _findfirst, and _findnext do not require them to be present).
803 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
804 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
805 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
806 Adjust prototypes, making them inline aliases for public symbols which
807 are now qualified by the `__mingw_' prefix; add build hints to support
808 compilation of addressable stubs, with the original symbol names.
809 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
810 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
811 BSD compatibility, but are fundamentally unsupported on MS-Windows).
812 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
813 New macros; define them. (These show availability of optional fields
814 within the dirent struct, which client code may wish to access).
816 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
818 Correct improper naming of assembly language source files.
820 * mingwex/math/*.S: Rename all files with this extension...
821 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
822 not extended `assembler-with-cpp' as implied by the former extension);
823 adjust all internal `.file <name>' references accordingly.
825 * Makefile.in (vpath %.S): Adjust reference to locate files....
826 (vpath %.s): ...now renamed thus.
828 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
830 Streamline the build system infrastructure.
832 * configure.ac: New file; it replaces...
833 * configure.in: ...this; (name is obsolete); delete it.
835 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
836 make invocations, when processing subdirectories, and add automatic
837 dependency tracking for all generated files.
839 * configure: Delete it; as a generated file, it doesn't belong in SCM.
841 * mingwex/Makefile.in: No longer required; delete it.
842 * profile/Makefile.in: Likewise.
844 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
845 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
847 * jamfile: Delete it; it hasn't been updated in ages, is likely no
848 longer relevant, and I have no desire to maintain it.
850 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
852 * include/_mingw.h: Increment version to 3.20.
854 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
856 * tlsmthread.c: Update to reflect changes in tlssup.c.
857 * tlssup.c: code clean-up.
859 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
861 * include/_mingw.h: Increment version to 3.19.
863 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
865 * include/float.h: Modify guard to accomodate CLang.
867 Thanks to Ruben Van Boxem for the report.
869 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
871 * tlssup.c: Remove mingwm10.dll fallback.
873 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
875 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
877 Thanks to bvassche for the report.
879 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
881 Correct checking for short option matches in getopt_long_only().
883 * mingwex/getopt.c (getopt_verify): New static inline function.
884 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
885 possible short option match after failing to match, or ambiguously
886 matching as a long option.
888 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
890 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
892 Thanks to cgf for the report.
894 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
896 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
897 compiles with __STRICT_ANSI__.
899 Thanks to Felipe Contreras for the report.
901 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
903 * include/stdlib.h (strtod): Remove possible static declaration to resolve
906 Thanks to Tobias Burnus for the report.
908 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
910 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
911 by wrapping the functions in brackets.
913 Thanks to Kai Tietz for the report.
915 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
917 * Makefile.in: Add support for msvcr100.dll.
918 * msvcrt.def.in: Ditto.
920 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
922 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
923 not always available, go the long way and use the explicit named union
924 members, which are also declared in winnt.h.
926 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
928 * mingwex/isblank.c: Fix typo in declaration.
930 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
932 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
933 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
934 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
935 is included before <ctype.h>.
937 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
939 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
941 Thanks to Jim Bell for the report and Greg Chicares for the fix.
943 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
945 Correct hexadecimal formatting of double and long double values.
947 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
948 (__pformat) [A format]: Cast double values to long double, and use...
949 (__pformat_xldouble): ...this instead, with corrected adjustment of
950 exponent and alignment of mantissa, when formatting subnormals.
952 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
954 * include/dirent.h (dd_handle): Define as intptr_t.
956 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
958 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
961 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
963 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
964 semantically identical MAX_PATH; correct value is 260.
966 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
968 Accept that mingwrt headers are not guaranteed to precede GCC's in the
969 system include search path; (issue reported by Mark Brand).
971 * include/float.h: Add multiple inclusion guard around...
972 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
973 only when this define does not indicate that it has already been seen;
974 update comments to document rationale; move it within the scope of...
975 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
976 GCC's float.h, after an appropriate complementary modification, need
977 not perform a further include path search when this implementation
978 specific extension has already been processed.
980 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
982 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
983 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
984 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
985 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
986 _findnexti64): Correct definition.
988 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
990 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
992 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
994 * include/_mingw.h: Increment version to 3.18.
996 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
998 * include/stdio.h: (_vscprintf, _vscwprintf)
999 * include/tchar.h: (_vsctprintf)
1001 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1003 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1004 (initial implementation)
1006 * new type: __time32_t
1008 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1009 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1010 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1012 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1013 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1014 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1015 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1016 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1017 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1018 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1019 _wstat32i64, _wstat64i32,_wutime32
1021 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1022 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1023 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1024 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1025 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1027 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1029 Implement TLS Callback.
1031 * tlsmcrt.c: New file.
1032 * tlsmthread.c: Ditto.
1035 * Makefile.in: Include new files.
1036 * crt1.c: Implement TLS Callback.
1038 * mthr_stub.c: Remove.
1040 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1042 * include/_mingw.h: Increment version to 3.17.
1044 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1046 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1047 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1049 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1051 * include/io.h (_open_osfhandle): Correct definition.
1053 Thanks to Alexander Shaduri for the information.
1055 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1057 Final sync of pseudo-reloc.c with mingw64 and cygwin
1058 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1059 regarding error messages.
1061 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1063 Honor DESTDIR for winsup/mingw and winsup/w32api.
1064 Detect and report error if installation paths are win32
1065 format, but DESTDIR is non-empty.
1067 * Makefile.in (DESTDIR): Honor per convention.
1068 (need-DESTDIR-compatibility): New macro; define it and a
1070 (fail-DESTDIR-compatibility): New dependency goal.
1071 (install-dirs): Require need-DESTDIR-compatibility.
1072 * mingwex/Makefile.in (DESTDIR): Honor per convention.
1073 (need-DESTDIR-compatibility): New macro; define it and a
1075 (fail-DESTDIR-compatibility): New dependency goal.
1076 (install): Require need-DESTDIR-compatibility.
1077 * profile/Makefile.in: Ditto.
1079 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1081 Sync pseudo-reloc.c with mingw64
1082 * psuedo-reloc.c: Remove unnecessary includes.
1083 Forward declare _pei386_runtime_relocator.
1084 Decorate _image_base__ symbol with macro for
1085 mingw64 compatibility. Whitespace changes.
1086 (__print_reloc_error): Renamed to...
1087 (__report_error): This. "Returns" void, and
1088 always aborts. Now used on all platforms.
1089 (__write_memory): Remove special case error handling
1090 for different platforms - always call __report_error.
1091 (do_pseudo_reloc): Remove special case error handling
1092 for different platforms - always call __report_error.
1093 (_pei386_runtime_relocator): Decorate _image_base__
1094 symbol with mingw64 compatibility macro.
1096 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1098 Sync pseudo-reloc.c with cygwin/lib/
1099 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1100 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1101 for fatal error handling that is consistent with cygwin process
1102 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1103 is unique to each address space, across fork().
1104 [CYGWIN] (__print_reloc_error): New function for reporting
1105 errors in a manner supported by cygwin at this early stage of
1106 the process life-cycle.
1107 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1108 performed only once for each address space, but are repeated
1109 after fork() in the new address space.
1110 [MINGW] (__write_memory): Ensure that b is always initialized
1111 by call to VirtualQuery, even if -DNDEBUG.
1113 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1115 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1116 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1118 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1119 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1120 specified format qualifiers, except in special case...
1121 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1122 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1123 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1126 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1128 Avoid multiple link time definitions of _printf() for C++;
1129 (problem reported by Alexander Shaduri, via MinGW-users ML).
1131 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
1132 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
1134 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1136 * include/_mingw.h: Increment version to 3.16.
1138 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
1140 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
1141 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
1142 __fp_unordered_compare): Add prototypes.
1143 * include/stdio.h (vsnwprintf): Add prototype.
1144 * include/wchar.h (vsnwprintf): Add prototype.
1145 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
1146 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
1148 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1150 Correct disposition of wchar_t output in printf().
1152 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
1153 (argval): ...this, in inner scope, with singular type `wchar_t'; use
1154 it to pass one wchar to __pformat_wputchars(), for output.
1156 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1158 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
1160 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1162 Convert to monolithic configuration procedure.
1164 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
1165 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
1166 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
1167 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
1168 (CRT0S): Relocate from `profile'; define it as appropriate.
1169 (LIBM_A): Define and AC_SUBST it unconditionally.
1170 (AC_CONFIG_SUBDIRS): Remove; none to configure.
1171 (AC_OUTPUT_FILES): Add `Makefile' for each of...
1172 (mingwex, profile): ...these subdirectories.
1174 * configure: Regenerated.
1176 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
1177 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
1178 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
1179 (SUBDIRS): Define explicitly, to run recursive `make' in...
1180 (mingwex, profile): ...these; simplify build commands...
1181 (rootme, rootsrc): ...without these shell variables.
1182 (all, subdirs): Delete redundant build commands.
1183 (FIXME): Flag various issues for follow up.
1185 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
1186 (top_srcdir): ...this new macro; let AC_SUBST define it.
1187 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1188 (Makefile): Make it depend on...
1189 (top_builddir/config.status): ...this, itself depending on...
1190 (top_srcdir/configure): ...this.
1191 (FIXME): Flag various issues for follow up.
1193 * mingwex/aclocal.m4: File no longer required; delete it.
1194 * mingwex/configure mingwex/configure.in: Likewise.
1196 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
1197 (top_srcdir): ...this new macro; let AC_SUBST define it.
1198 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1199 (Makefile): Make it depend on...
1200 (top_builddir/config.status): ...this, itself depending on...
1201 (top_srcdir/configure): ...this.
1202 (FIXME): Flag various issues for follow up.
1204 * profile/aclocal.m4: File no longer required; delete it.
1205 * profile/configure profile/configure.in: Likewise.
1207 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1209 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
1210 to complaints that it causes issues.
1212 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
1214 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
1216 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1218 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
1219 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
1220 to all inline functions.
1222 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1224 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
1225 * CRT_fp10.c: Ditto.
1227 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1229 * cpu_features.c: replace gcc-specific construct with portable alternative
1230 and match the code a few lines above.
1231 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
1233 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1235 * include/_mingw.h: Changes required for PCC compiler.
1237 2009-07-18 Jeff Lu <jll544@yahoo.com>
1239 * mingwex/usleep.c: round up to next ms
1241 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1243 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
1244 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
1245 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
1246 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
1248 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1250 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
1252 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
1254 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
1255 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
1256 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
1257 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
1258 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
1259 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
1260 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
1261 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
1262 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
1263 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
1264 sources as of Apr. 20, 2009. Update further to match the sources in
1265 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
1266 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
1267 double/ulong union from U to dbl_union for better grepping and white-
1270 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1272 * include/stdlib.h (_wtof): Define.
1274 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
1276 * include/stdint.h (int_fast8_t): Specify as signed char.
1277 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
1278 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1280 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1282 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1284 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1286 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1287 (Requested by Robert Riebisch)
1289 * mingwex/getopt.c (getopt_parse): Track external increments of...
1290 (optind): ...this global variable.
1292 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1294 * include/_mingw.h: Increment version to 3.15.2.
1296 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1298 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1299 Also add tentative support for BSD specific `optreset' feature.
1301 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1302 (__mingw_optreset): ...this new global variable.
1304 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1305 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1308 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1310 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1311 Correct mishandling of invalid characters in printf() format specs.
1313 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1314 (backtrack): ...this new automatic variable, at start of each format
1315 conversion specification substring; use it to backtrack, and print the
1316 substring literally, if any invalid character is encountered.
1318 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1320 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1321 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1322 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1323 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1324 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1325 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1326 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1327 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1328 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1329 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1330 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1331 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1332 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1333 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1335 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1337 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1339 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1341 Correct some binary distribution packaging defects.
1343 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1344 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1345 intermediate goals; they make packages of files, as specified by...
1346 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1347 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1349 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1351 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1352 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1354 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1355 of radix point conditional on precision != 0 or `#' flag specified.
1357 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1359 Fix MinGW-Bug [2160227]
1360 Eliminate conflicting declarations and implementations of scalb().
1362 * moldname.def.in (scalb): Comment out of EXPORTS list.
1363 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1364 with GCC's built-in declaration.
1366 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1368 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1370 * mingwex/Makefile.in: Ditto.
1371 * profile/Makefile.in: Ditto.
1372 * configure.in: Record mingw front-end for building under Cygwin.
1373 * mingwex/configure.in: Ditto.
1374 * profile/configure.in: Ditto.
1375 * configure: Regenerate.
1376 * mingwex/configure: Ditto.
1377 * profile/configure: Ditto.
1379 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1381 Use de-facto standard Makefile goals to invoke test suite.
1383 * Makefile.in: Some minor formatting adjustments.
1384 (test_headers): Unconventionally named goal renamed to...
1385 (check-headers): ...this; make it a prerequisite of...
1386 (check): ...this new conventionally named goal.
1388 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1390 Make strtod() inline definition C89 compliant.
1391 (Issue reported by Ilya Shestopalov and Ian Puleston)
1392 (Correction identified by Danny Smith)
1394 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1395 reformat inline function definition.
1397 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1399 * include/_mingw.h: Increment version to 3.15.1 and introduce
1400 __MINGW32_PATCHLEVEL variable.
1402 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1404 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1405 (Reported by Christian Franke)
1407 * mingwex/getopt.c (optind): Make global variable value conform to
1408 behaviour specified by POSIX; do not use it for internal state in...
1409 (getopt_parse): ...this static function; use...
1410 (optbase): ...this new static local variable instead.
1411 (getopt_resolved): Update `optind' as required.
1413 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1415 Improve package identification in configure script.
1417 * configure.ac (AC_INIT): Redefine parameters...
1418 (PACKAGE_NAME): Set to `MinGW Runtime'.
1419 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
1420 (PACKAGE_TARNAME): Set to `mingwrt'.
1421 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
1422 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
1423 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
1425 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
1426 (PACKAGE_TARNAME): ...this.
1428 * configure: Regenerated.
1430 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1432 Fix MinGW-Bug [2125708].
1433 (Reported by Alexandr Zamaraev).
1435 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
1436 not wanted here; remove it; replace it by...
1437 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
1438 (_invalid_parameter_handler): ...this function typedef.
1440 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
1442 * Makefile.in: Don't include host_os as part of snapshot filename.
1444 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1446 Fix MinGW-Bug [2119504].
1447 (Reported by Peiyuan Song).
1449 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
1450 (*retindex): ...this already correctly assigned return variable...
1451 (opt[index].val): ...with this; this should have been assigned to...
1452 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
1454 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1456 Fix MinGW-Bug [2117379].
1457 (Reported by Peiyuan Song).
1459 * include/stdio.h (__argv): Replace all references in function
1460 prototype argument lists and inline function local variables, with ...
1461 (__local_argv): ...this, to avoid potential conflict with ...
1462 * include/stdlib (__argv): ...this #defined macro.
1464 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1466 * include/_mingw.h: Increment version to 3.15.
1468 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1470 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
1471 naming standard for Cygwin.
1473 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1475 Reimplement getopt.c to add getopt_long_only() function.
1477 (N.B. this reimplementation removes support for BSD/Mac-OS-X
1478 `optreset' nonsense; user code should set `optind = 0' instead,
1479 to reinitialise option scanning).
1481 * mingwex/getopt.c: Delete all content; reimplement it.
1482 * include/getopt.h: Likewise.
1484 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
1485 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
1487 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1489 Implement conditional replacement for printf() family functions.
1491 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
1492 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
1493 flag for use in user specified __MINGW_FEATURES__ attribute.
1494 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
1495 currently unused: reserved as components of...
1496 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
1497 a __MINGW_FEATURES__ enhancement to setlocale().
1499 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
1500 (__mingw_fprintf, __mingw_vfprintf): Likewise.
1501 (__mingw_sprintf, __mingw_vsprintf): Likewise.
1502 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
1503 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
1504 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
1505 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
1506 usage; link to DLL import stub, importing from MSVCRT.
1507 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1508 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1509 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
1510 locally defined static stub implementation.
1511 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1512 __mingw_fprintf and __mingw_sprintf respectively.
1513 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
1514 static inline implementation for C++ and GNU C, or locally defined
1515 static stub otherwise.
1516 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1517 __mingw_vfprintf and __mingw_vsprintf respectively.
1519 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1521 Avoid access violations, passing NULL to printf( "...%s..." );
1522 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
1524 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
1525 for argument value, if caller passes a NULL pointer.
1526 (__pformat_wcputs): Likewise, substitute L"(null)".
1528 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1530 Add missing dependencies for building libmingwex.a.
1532 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
1533 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
1534 (pformat.h): ...this.
1536 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1538 Add replacements for remaining members of printf() family.
1540 * mingwex/stdio/printf.c: New file.
1541 * mingwex/stdio/fprintf.c: New file.
1542 * mingwex/stdio/sprintf.c: New file.
1543 * mingwex/stdio/vprintf.c: New file.
1544 * mingwex/stdio/vfprintf.c: New file.
1545 * mingwex/stdio/vsprintf.c: New file.
1547 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1548 (STDIO_OBJS): Add their corresponding object files.
1550 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1552 Replace __mingw_snprintf() with new generic family implementation;
1553 likewise, replace __mingw_vsnprintf().
1555 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
1556 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
1557 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1558 (GDTOA_DISTFILES): Remove mingw_snprintf.c
1559 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
1560 (GDTOA_OBJS): Remove mingw_snprintf.o
1561 (PFORMAT_CFLAGS): New macro; define it, as required by...
1562 (pformat.o): ...this new explicit build target.
1563 (snprintf.o, vsnprintf.o): Declare prerequisites.
1565 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
1567 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1569 Lay foundations for new printf() function family implementation.
1571 * ofmt_stub.s: New file; implement forward compatibility stub for...
1572 (_get_output_format): ...this MSVCR80.DLL and later function.
1574 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
1575 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
1576 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
1577 (lib%.a): Include ofmt_stub.o when import library does not already
1578 advertise availability of the _get_output_format() function;
1579 Add alias stubs for MINGW_REPL_FUNCS, such that...
1580 (__msvcrt_printf): ...is an alias for Microsoft's printf().
1581 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
1582 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
1583 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
1584 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
1585 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
1586 (clean): Add msvcr*.def.
1588 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
1589 * configure: Regenerated.
1591 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1593 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
1594 (_imp____mb_cur_max_dll): Likewise.
1596 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
1598 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
1599 * include/wchar.h (swprintf, vswprintf): Likewise.
1601 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1603 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
1604 (_get_output_format, _set_output_format): Add references.
1606 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
1607 (_get_output_format, _set_output_format): Declare prototypes.
1608 (_TWO_DIGIT_EXPONENT): Define.
1609 Some other minor formatting adjustments.
1611 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1613 [mingw-Bugs-1801641]
1614 * include/wchar.h (_wfdopen): Const-ify second arg.
1615 * include/stdio.h (_wfdopen): Likewise.
1616 Thanks to <tdragon at users dot sourceforge net>
1618 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1620 Avoid precision errors in round(), lround() and llround() functions.
1622 * mingwex/math/round_generic.c: New file; it replaces...
1623 * mingwex/math/round.c: ...this; delete it.
1624 * mingwex/math/roundf.c: ...and this; ditto.
1625 * mingwex/math/roundl.c: ...and this; ditto.
1627 * mingwex/math/lround_generic.c: New file; it replaces...
1628 * mingwex/math/lround.c: ...this; delete it.
1629 * mingwex/math/lroundf.c: ...and this; ditto.
1630 * mingwex/math/lroundl.c: ...and this; ditto.
1631 * mingwex/math/llround.c: ...and this; ditto.
1632 * mingwex/math/llroundf.c: ...and this; ditto.
1633 * mingwex/math/llroundl.c: ...and this; ditto.
1635 * mingwex/math/round_internal.h: New file; it provides generic common
1636 code, which is shared by `round_generic.c' and `lround_generic.c'; the
1637 implementation is based on techniques suggested by Danny Smith and
1640 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
1641 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
1642 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
1643 `round_generic.c' and `lround_generic.c'.
1644 (MATH_OBJS): Factor out files listed in...
1645 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
1646 macros; define them; specify dependencies and build rules; add to...
1647 (LIB_OBJS): ...this list.
1649 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
1651 [ mingw-Bugs-1961893 ]
1652 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
1653 mode to 2 for E format.
1655 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
1657 * include/stdlib.h: Fix strtod under C++.
1659 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
1661 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
1662 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
1664 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
1666 * include/sys/types.h (useconds_t): typedef.
1667 * include/unistd.h (usleep): Add prototype.
1668 * mingwex/usleep.c: New file.
1669 * mingwex/makefile.in: Add usleep source and object.
1671 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
1673 Make strtod() conform to C99.
1675 * include/stdlib.h (strtod): Declare this mingwex function, and...
1676 (_strtod): rename this MSVCRT counterpart.
1678 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
1680 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
1682 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
1684 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1686 * include/process.h: Include stdint.h for intptr_t definition.
1687 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
1688 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
1689 _spawnvpe): Return intptr_t.
1690 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
1691 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
1693 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
1695 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
1696 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
1697 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
1698 _wspawnvp, _wspawnvpe): Return intptr_t.
1700 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1702 * include/wchar.h (fwide): Return success code rather than failure in inline
1704 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
1705 code rather than failure.
1707 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
1709 * include/math.h (float_t, double_t): Define.
1711 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
1713 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
1714 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
1715 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
1717 2008-02-28 Joseph Myers <joseph@codesourcery.com>
1719 * include/complex.h: Don't condition contents on C99 or not
1722 2008-02-01 Brian Dessent <brian@dessent.net>
1724 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
1725 the different runtime versions.
1727 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
1729 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
1730 (mbsinit): Likewise.
1732 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1734 * include/_mingw.h: Increment version to 3.14.
1736 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1738 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
1739 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
1740 * mingwex/math/log10f.S: Correct issue with comments.
1741 * mingwex/math/log10l.S: Ditto.
1742 * mingwex/math/log1p.S: Ditto.
1743 * mingwex/math/log1pf.S: Ditto.
1744 * mingwex/math/log1pl.S: Ditto.
1745 * mingwex/math/log2.S: Ditto.
1746 * mingwex/math/log2f.S: Ditto.
1747 * mingwex/math/log2l.S: Ditto.
1748 * mingwex/math/logf.S: Ditto.
1749 * mingwex/math/logl.S: Ditto.
1751 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
1753 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
1755 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
1757 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
1758 from '_fsize_t' to '__int64' to be consistent with the other ...64
1759 structures and the value set there is 8 bytes not 4. Add guard for both
1760 as the are only used by functions available from 6.1 on.
1762 * include/malloc.h (_HEAP_MAXREQ): Define.
1763 (_aligned_offset_recalloc): Define.
1764 (_aligned_recalloc()): Define.
1766 * include/math.h: fixed a typo in a comment.
1767 (atanhf): Fixed declaration.
1769 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
1770 to '__int64' to be consistent with the other ...64 structures and the value
1771 set there is 8 bytes not 4. Added guard as this function is only used by
1772 functions available from 6.1 on.
1774 * include/sys/stat.h: some members of 'stat' were declared with types with
1775 a prefixed underscore, while the ones without the underscore should have
1776 been used. Added guard to '__stat64' as it is only used by functions
1777 available from 6.1 on. Added the wide character versions of the
1778 exec()/spawn() family for completion
1779 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
1782 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
1783 from 'long' to 'time_t'
1784 (__timeb64): moved declaration of structure directly before the declaration
1785 of the function '_ftime64()', so it is guarded as well
1787 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
1788 before the declaration of the functions using it, so it is guarded as well
1790 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
1792 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
1793 case. Add missing break in 's'/LEN_S case.
1795 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1797 Make snprintf() and vsnprintf() conform to C99.
1799 * include/stdio.h: Add note about incompatibility between...
1800 (snprintf, vsnprintf): These two mingwex functions, and...
1801 (_snprintf, _vsnprintf): these MSVCRT counterparts.
1803 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
1804 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
1806 * mingwex/stdio/snprintf.c: Delete.
1807 * mingwex/stdio/vsnprintf.c: Delete.
1809 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
1810 (vsnprintf): Alias to __mingw_vsnprintf.
1812 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1814 * include/_mingw.h: Increment version to 3.13.
1815 * Makefile.in: Reset CYGRELEASE to 1
1817 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1819 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
1820 resulting from incomplete removal of enclosing `for ...; do ...; done'
1821 loop from compound command; (reported by Greg Chicares).
1823 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
1825 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
1828 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
1830 [mingw-Bugs-1734142]
1831 * include/wchar.h (_wsystem) Declare.
1833 (_wgetenv): Declare.
1834 (_wsearchenv): Declare.
1835 (_wmakepath): Declare.
1836 (_wsplitpath): Declare.
1837 (_wfullpath): Declare.
1838 * include/stdlib.h (_wsystem) Declare.
1839 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
1840 _wfullpath): Move into _WSTDLIB_DEFINED guard.
1841 * include/tchar.h (_tsystem): New UNICODE mapping define.
1843 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
1845 * mingwex/gdtoa/mingw_snprintf.c: New file.
1846 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
1847 (GDTOA_OBJS): Add mingw_snprintf.o.
1849 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
1851 * msvcrt.def.in: Update comment.
1852 Exclude _ctype stub if using msvcr71.dll or newer.
1853 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
1854 * include/wctype.h: Likewise.
1856 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1858 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
1859 *include/dirent.h: Likewise.
1861 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1863 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
1864 * include/conio.h: Likewise.
1865 * include/ctype.h: Likewise.
1866 * include/direct.h: Likewise.
1867 * include/dos.h: Likewise.
1868 * include/errno.h: Likewise.
1869 * include/fenv.h: Likewise.
1870 * include/float.h: Likewise.
1871 * include/inttypes.h: Likewise.
1872 * include/io.h: Likewise.
1873 * include/libgen.h: Likewise.
1874 * include/locale.h: Likewise.
1875 * include/malloc.h: Likewise.
1876 * include/mbctype.h: Likewise.
1877 * include/mbstring.h: Likewise.
1878 * include/process.h: Likewise.
1879 * include/search.h: Likewise.
1880 * include/setjmp.h: Likewise.
1881 * include/signal.h: Likewise.
1882 * include/stdio.h: Likewise.
1883 * include/stdlib.h: Likewise.
1884 * include/string.h: Likewise.
1885 * include/time.h: Likewise.
1886 * include/wchar.h: Likewise.
1887 * include/sys/stat.h: Likewise.
1888 * include/sys/time.h: Likewise.
1889 * include/sys/timeb.h: Likewise.
1890 * include/sys/utime.h: Likewise.
1892 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1894 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
1896 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1898 Add POSIX binary tree search API.
1900 * mingwex/tfind.c: New file.
1901 * mingwex/tdelete.c: New file.
1902 * mingwex/tsearch.c: New file.
1903 * mingwex/twalk.c: New file.
1904 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
1905 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
1906 * include/search.h (tfind): Declare.
1913 (node_t): Define, on condition of _SEARCH_PRIVATE.
1915 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1917 * include/_mingw.h (__MINGW_NOTHROW): Define.
1919 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
1921 * include/stdio.h (vsnprintf): Remove inline definition.
1924 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
1926 * CRTfmode.c: Nit-pick comment fix.
1928 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
1930 * CRTfmode.c: Fix nested comment.
1932 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
1934 * include/string.h (strcasecmp): Fix typo in declaration prototype.
1936 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1938 * include/io.h (lseek64) : Add prototype.
1940 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1942 * include/string.h (strcasecmp): Add prototype.
1943 (strncasecmp): Add prototype.
1945 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
1947 * Makefile.in (CRT0S): Revert last change.
1948 * CRTfmode.c. Correct comment.
1950 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
1952 * Makefile.in (CRT0S): Add back CRTfmode.o.
1954 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
1956 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
1957 * include/io.h: Likewise.
1959 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
1961 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
1963 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
1965 * include/stdint.h (intptr_t): Fix typo.
1966 Thanks to Charles Wilson for report.
1968 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
1970 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
1971 Condition on _WIN64.
1972 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
1973 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
1974 (PTRDIFF_MIN): Define as INTPTR_MIN.
1975 (PTRDIFF_MAX): Define as INTPTR_MAX.
1976 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
1977 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
1979 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1981 * Makefile.in: Removed mansuffix variable. Changed mansection to support
1982 Cygwin man page location.
1984 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1986 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
1987 support Cygwin man page location.
1989 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1991 * Include/_mingw.h: Increment version to 3.12.
1993 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
1995 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
1997 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1999 * Makefile.in: Tweak srcdist to fix build issue.
2001 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2003 Add --enable-mingw-manpage-transform configure option.
2005 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2006 * configure.in, Makefile.in: Use it.
2007 * configure: Regenerated.
2009 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2011 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2013 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2015 Add manpages for dirname and basename functions.
2017 * man: New directory.
2018 * man/dirname.man: New file; it sources both manpages.
2019 * Makefile.in: Add provisional rules to distribute them.
2021 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2023 * mingwex/basename.c: Make it work with path names containing
2024 multibyte character strings.
2025 * mingwex/dirname.c: Likewise.
2027 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2029 * include/io.h (__mingw_access): New static inline wrapper to restore
2030 pre-Vista 'access (fname, X_OK)' behaviour.
2031 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2033 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2035 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2037 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2039 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2041 * include/stdio.h (_unlink, unlink): Add prototypes.
2043 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2045 * include/excpt.h: Replace "_try1" in comments with "__try1".
2047 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2049 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2050 (ALL_CXXFLAGS): Likewise.
2051 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2052 (ALL_CXXFLAGS): Likewise.
2053 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2054 (ALL_CXXFLAGS): Likewise.
2056 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2058 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2060 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2062 Expose some more msvcr80.dll functions.
2063 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2064 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2065 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2066 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2068 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2070 Expose some msvcr80.dll functions.
2071 * include/stdlib.h (_set_abort_behavior): Add prototype.
2072 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2073 _set_abort_behavior mask argument.
2074 (_invalid_parameter_handler): Add typedef.
2075 (_set_invalid_parameter_handler): Add prototype.
2076 * include/stdio.h (_get_printf_count_output): Add prototype.
2077 (_set_printf_count_output): Add prototype.
2078 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2079 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2081 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2083 * include/_mingw.h (CRT_INLINE): Correct typo.
2085 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2087 * include/io.h (X_OK): Define to F_OK.
2089 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2091 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2092 unconditionally. Change comment.
2093 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2095 * include/io.h (rename): Declare.
2098 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2100 * include/libgen.h: New file; required by...
2101 * mingwex/basename.c, mingwex/dirname.c: New files.
2102 * mingwex/Makefile.in (DISTFILES): Add them...
2103 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2104 (Dependencies): Typo; s/Dependancies/Dependencies/
2106 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2108 * Makefile.in (VERSION): Let configure define it.
2110 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2111 * configure.in: Use it.
2112 Correct quoting of autoconf macro arguments throughout.
2113 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2114 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2115 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2116 (AC_CONFIG_FILES): Add, to generate Makefile.
2118 * configure: Regenerated.
2120 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2122 * Makefile.in: Add aclocal.m4 to source release.
2123 * mingwex/Makefile.in: Ditto.
2124 * profile/Makefile.in: Ditto.
2126 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2128 * Include/_mingw.h: Increment version to 3.11.
2129 * Makefile.in: Ditto.
2131 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
2133 [ mingw-Bugs-1590623 ]
2134 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
2137 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
2139 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
2140 correctly parenthesized.
2142 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2144 * mingwex/mb_wc_common.h (get_codepage): Get it
2147 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2149 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
2151 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
2153 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
2156 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
2158 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
2161 2006-09-11 Christopher Faylor <cgf@timesys.com>
2163 * Makefile.in: Semi-revert 2006-08-30 change.
2165 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2167 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
2168 (__MINGW_IMPORT): Ansify.
2169 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
2170 __MINGW_ATTRIB_DEPRECATED.
2172 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2174 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
2175 Redundant macros; deleted.
2177 * configure.in (LIB_AC_PROG_CC): Replaced by...
2178 (AC_PROG_CC): ...this.
2180 * configure: Regenerated.
2182 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
2184 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
2185 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
2186 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
2188 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
2190 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
2191 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
2192 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
2193 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
2195 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
2196 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
2197 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
2198 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
2199 * mingwex/wcstold.c: Avoid using strtold internals.
2200 * mingwex/wcstof.c: Rewrite.
2201 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
2202 (GDTOA_OBJS): Add to library.
2203 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
2204 (STDLIB_OBJS): Remove.
2205 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
2206 (Q8_OBJS): Add wcstof.o wcstold.o.
2207 * include/stdlib.h (strtof): Remove inline definition.
2209 * include/wchar.h (wcstof): Remove inline definition.
2211 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
2213 * Makefile.in: Add with_cross_host to allow more granular checks.
2214 Set installation directories accordingly. Override CC setting only
2215 if building a Cygwin target.
2216 * aclocal.m4: Regenerate.
2217 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
2218 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
2219 Test AC_ALLOCA only if building on a native system.
2220 * configure: Regenerate.
2222 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2224 * include/ctype.h: Fix typo.
2226 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2228 * include/ctype.h: Expose iswblank if __cplusplus.
2229 * include/wctype.h: Expose iswblank if __cplusplus.
2231 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2233 * include/ctype.h: Remove stray ')';
2235 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2237 * include/ctype.h (_BLANK): Expand comment.
2238 (isblank): Add prototype and inline definition.
2239 (iswblank): Add prototype and inline definition.
2240 * include/wctype.h (iswblank): Add prototype and inline definition.
2241 * mingwex/isblank.c: New file.
2242 * mingwex/iswblank.c: New file.
2243 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2245 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
2247 * include/math.h (__INFF,__INFL): Remove '#'.
2249 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2251 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2253 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
2255 Support SSE float environment in fenv.h functions.
2256 * cpu_features.c: New file.
2257 * cpu_features.h: New file.
2258 * crt1.c: Include "cpu_features.h".
2259 (__mingw_CRTStartup): Call cpu_features_init().
2260 * Makefile.in (MING_OBJS): Add cpu_features.c.
2261 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
2262 * include/fenv,h ( fenv_t;): Append __mxcsr field.
2263 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
2264 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
2265 (__MXCSR_ROUND_FLAG_SHIFT): New define.
2266 * mingwex/feclearexcept.c: Include "cpu_features.h".
2267 Handle SSE environment.
2268 * mingwex/fegetenv.c: Likewise.
2269 * mingwex/feholdexcept.c: Likewise.
2270 * mingwex/fesetenv.c: Likewise.
2271 * mingwex/fesetexceptflag.c: Likewise.
2272 * mingwex/fesetround.c: Likewise.
2273 * mingwex/fetestexcept.c: Likewise.
2274 * mingwex/feupdateenv.c: Likewise.
2275 * mingwex/fegetround.c: Add comment.
2277 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2279 * Include/_mingw.h: Increment version to 3.10.
2280 * Makefile.in: Ditto.
2282 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2284 * mingwex/math/tgamma.c (SQTPI): Add braces.
2286 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2288 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2289 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2291 * mingwex/math/sf_erf.c (erff): Initialize z.
2293 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2295 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2297 * Include/_mingw.h: Increment version to 3.10.
2298 * Makefile.in: Ditto.
2300 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2302 * include/sys/time.h (struct timezone): Define.
2303 * include/time.h: Correct comment about timezone.
2305 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2307 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2308 * configure: Regenerate.
2310 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2312 * configure: add srcdir as a possible location for install-sh.
2314 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2316 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2317 (_topendir): Use it.
2319 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2321 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2323 (gettimeofday): Add prototype.
2324 * mingwex/gettimeofday.c: New file.
2325 * mingwex/makefile.in: Add gettimeofday source and object.
2327 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2329 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2330 else global library variable.
2331 (HUGEVALF): Likewise.
2332 (HUGEVALL): Likewise.
2333 (INFINITY): Likewise.
2336 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2338 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2340 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2342 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2344 2006-05-24 Christopher Faylor <cgf@timesys.com>
2346 * configure.in: Update to newer autoconf.
2347 (thanks to Steve Ellcey)
2348 * mingwex/configure.in: Ditto.
2349 * profile/configure.in: Ditto.
2350 * configure: Regenerate.
2351 * mingwex/configure: Ditto.
2352 * profile/configure: Ditto.
2353 * aclocal.m4: New file.
2354 * mingwex/aclocal.m4: Ditto.
2355 * profile/aclocal.m4: Ditto.
2357 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2359 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2360 Use supplied codepage as arg to WideCharToMultiByte.
2362 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2364 * Makefile.in (libmsvcr80.a): Add import lib.
2365 (libmsvcr80d.a): Ditto.
2367 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2369 * Makefile.in: Bump cygwin build number.
2371 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2373 * Include/_mingw.h: Increment version to 3.9.
2374 * Makefile.in: Ditto.
2376 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2378 * include/limits.h (SSIZE_MAX): Define.
2379 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2381 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2383 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2384 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2386 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2388 * include/stddef.h: Remove.
2389 * include/stdarg.h: Remove.
2391 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2393 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2394 of result is positive when real part of arg == 0;
2395 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2396 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2398 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2400 * include/time.h (_time64): Correct prototype.
2402 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2404 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2405 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2406 to non-stop. Use "fnclex" to clear exception flags.
2408 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
2410 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
2411 Avoid raising FP exceptions.
2413 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2415 * include/stdlib.h (strtof): Add prototype. Uglify
2416 parameter names in inline definition.
2418 (_Exit): Uglify parameter names in inline definition.
2419 (llabs): Add prototype.
2420 (_set_error_mode): Add prototype and input defines.
2422 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2424 * mingwex/fe*.c: Revert previous changes.
2425 * include/fenv.h: Revert previous changes.
2427 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2429 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
2430 Do not return a value.
2431 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
2432 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
2433 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
2434 * mingwex/fegetenv.c (fegetenv): Likewise.
2435 * mingwex/fesetenv.c (fesetenv): Likewise.
2436 * mingwex/feupdateenv.c (feupdateenv): Likewise.
2437 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
2438 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
2441 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2443 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
2444 getting filelength for SEEK_END.
2446 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2448 * Include/_mingw.h: Increment version to 3.8.
2449 * Makefile.in: Ditto.
2451 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2453 * include/wctype.h (towupper, towlower): Change arg and return value
2455 * include/ctype.h (towupper, towlower): Likewise.
2457 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2459 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
2460 a diagnostic, guarded by #ifdef DEBUG.
2461 (__mingwthr_remove_key_dtor): Likewise.
2463 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2465 * moldname.def.in (sleep, beep, seterrormode): Remove.
2467 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2469 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
2470 (_MCOUNT_DECL): Use it.
2471 (MCOUNT): Save and restore eax, ecx, edx registers.
2472 * profile/mcount.c (_mcount): ANSI-fy.
2474 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2476 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
2477 guard __MINGW_ATTRIB macro definitions.
2478 * include/math.h (logb[fl]): Don't define inlines for
2479 GCC-4.0+ && __FAST_MATH__.
2480 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
2481 line-continuation backslashes.
2483 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
2485 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
2486 in GNUC version guard.
2488 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
2490 * crt1.c (_gnu_exception_handler): Handle illegal instruction
2491 OS exception as a signal if user has defined a SIGILL handler.
2493 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
2495 * mingwex/math/nexttoward.c: New file.
2496 * mingwex/math/nexttowardf.c: New file.
2497 * mingwex/math/nextafterl.c: Add nexttowardl alias.
2498 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
2500 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
2501 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
2504 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
2506 * mingwex/math/nextafterf.c (nextafterf): Correct
2508 * mingwex/math/nextafterl.c: New file.
2509 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
2510 (MATH_OBJS): Add nextafterl.o.
2511 * include/math.h (nextafterl): Uncomment prototype.
2513 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2515 * mingwex/math/erfl.c: New file.
2516 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
2517 (MATH_OBJS): Add erfl.o.
2518 * include/math.h (erfl, erfcl): Uncomment prototypes.
2520 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
2522 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
2523 #if (WCHAR_MAX <= WCHAR_MIN) is false.
2524 * include/stdint.h (WCHAR_MAX): Likwise.
2525 (WINT_MAX): Likewise.
2527 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
2529 * mingwex/math/signbit.c (__signbit): Make return value
2530 consistent with GCC's __builtin_signbit.
2531 * mingwex/math/signbitf.c (__signbitf): Likewise.
2532 * mingwex/math/signbitf.c (__signbitl): Likewise.
2533 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
2536 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
2538 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
2540 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
2541 Remove unused MBTOWC_FLAGS define.
2543 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
2545 * mingwex/mbrtowc.c: New file.
2546 * mingwex/wcrtomb.c: New file.
2547 * mingwex/btowc.c: New file.
2548 * mingwex/wctob.c: New file.
2549 * mingwex/mb_wc_common.h: New file.
2550 * mingwex/Makefile.in (DISTFILES): Add new files.
2551 (Q8_OBJS): Add new objects.
2552 * include/wchar.h: Adjust comment about mbrtowc() and related
2553 funcions. Add __restrict__ to pointer params in prototypes.
2554 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
2555 arg names from protototypes.
2557 2005-04-23 Wu Yongwei <adah@sh163.net>
2559 * mingwex/dirent.c: Formatting changes.
2560 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
2563 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
2565 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
2567 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
2569 * include/stdio.h (__mingw_fwrite): Change return value to
2571 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
2573 2005-03-15 Hans Leidekker <hans@it.vu.nl>
2575 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
2577 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2579 * include/wctype.h (wctrans): Remove _CRTIMP.
2580 (towctrans): Likewise.
2583 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2585 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
2587 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2589 * mingwex/wctype.c: New file.
2590 * mingwex/wctrans.c: New file.
2591 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
2592 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
2594 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2596 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
2598 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2600 * include/assert.h: Remove header guard. #undef assert macro.
2601 (_assert): Use __MINGW_ATTRIB_NORETURN define.
2603 2005-02-11 Gregory W. Chicares <chicares@cox.net>
2605 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
2606 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
2608 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
2609 * mingwex/math/expm1.c: New file.
2610 * mingwex/math/expm1f.c: New file.
2611 * mingwex/math/expm1l.c: New file.
2613 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
2615 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
2616 * include/wchar.h (struct stat): Likwwise.
2617 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
2619 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
2621 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
2623 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
2624 string is not valid.
2626 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
2628 * include/malloc.h: Add missing return code defines for
2631 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
2633 * include/sys/stat.h (struct __stat64): Change st_size type to
2635 * include/wchar.h (struct __stat64): Change st_size type to __int64.
2637 2005-01-13 Earnie Boyd <earnie@users.sf.net>
2639 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2641 * include/errno.h (ELOOP): Ditto.
2642 * include/_mingw.h: Increment version to 3.7.
2643 * Makefile.in: Ditto.
2645 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
2647 * include/tchar.h (_tfreopen): Add UNICODE mappings.
2649 2005-01-11 Earnie Boyd <earnie@users.sf.net>
2651 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2652 lstat): Conditionalize defines for __STRICT_ANSI__.
2654 2005-01-10 Earnie Boyd <earnie@users.sf.net>
2656 * include/errno.h (ELOOP): Add definition.
2658 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
2660 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
2661 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
2662 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
2663 ctanl.c ctanhl.c): New files.
2664 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2665 (COMPLEX_OBJS): Adjust.
2666 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
2667 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
2668 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
2671 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2673 * include/_mingw.h (__int16): Define as short.
2674 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
2676 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2678 * include/stdio.h (P_tmpdir): Add define.
2680 2005-01-03 Earnie Boyd <earnie@users.sf.net>
2682 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
2684 2005-01-02 Earnie Boyd <earnie@users.sf.net>
2686 * include/_mingw.h: Increment version to 3.6
2687 * Makefile.in: Ditto
2689 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
2691 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
2692 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
2693 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
2694 ctanf.c ctanhf.c): New files.
2695 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2696 (COMPLEX_OBJS): Adjust.
2697 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
2698 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
2699 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
2702 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
2704 * include/wchar.h (wcsdup): Correct prototype.
2705 * include/string.h (wcsdup): Correct prototype.
2707 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2709 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
2711 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2713 * mingwex/math/fastmath.h: New file.
2714 * mingwex/math/asinh.c: New file.
2715 * mingwex/math/asinhf.c: New file.
2716 * mingwex/math/asinhl.c: New file.
2717 * mingwex/math/acosh.c: New file.
2718 * mingwex/math/acoshf.c: New file.
2719 * mingwex/math/acoshl.c: New file.
2720 * mingwex/math/atanh.c: New file.
2721 * mingwex/math/atanhf.c: New file.
2722 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
2723 atanh, atanhf, atanhl): Add prototypes.
2724 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
2725 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
2726 Specify dependency on fastmath.h for new objects.
2728 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2730 * include/sys/stat.h (_S_IFLNK): Add definition.
2737 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2739 * include/sys/stat.h (_S_ISLNK): Add definition.
2742 2004-09-05 Earnie Boyd <earnie@users.sf.net>
2744 * include/_mingw.h: Increment minor version for 3.5 release.
2745 * Makefile.in: Ditto.
2746 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
2748 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2750 * include/malloc.h (__mingw_aligned_offset_malloc,
2751 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
2752 __mingw_aligned_realloc, __mingw_aligned_free): Add
2754 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
2755 tst-aligned-malloc.c.
2756 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
2758 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
2760 * mingwex/mingw-aligned-malloc.c: New file.
2761 * mingwex/tst-aligned-malloc.c: New file.
2763 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2765 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
2766 noreturn attribute. Align stack to 16 bytes before passing args
2768 (mainCRTStartup): Change return to void.
2769 (WinMainCRTStartup): Likewise.
2771 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2773 * profile/COPYING: New file.
2774 * profile/CYGWIN_LICENSE: New file.
2775 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
2777 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2779 * mingwex/fopen64.c: Move.
2780 * mingwex/fseeko64.c: Move.
2781 * mingwex/ftello64.c: Move.
2782 * mingwex/lseek64.c: Move.
2783 * mingwex/stdio/fopen64.c: To here.
2784 * mingwex/stdio/fseeko64.c: To here.
2785 * mingwex/stdio/ftello64.c: To here.
2786 * mingwex/stdio/lseek64.c: To here.
2788 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2790 * profile/gmon.c [__MINGW32__]: Include string.h for
2793 2004-08-08 Christopher Faylor <cgf@timesys.com>
2795 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
2797 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2799 * include/complex.h: Remove __attribute__ ((const)) from
2800 transcendantal and trig functions. Replace __attribute__ ((const))
2801 with __MINGW_ATTRIB_CONST on other declarations.
2803 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2805 * include/wchar.h: Reorganize, avoid including other headers.
2807 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2809 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
2810 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
2813 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2815 * include/dirent.h (struct _wdirent): Remove obsolete comment.
2817 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2819 * include/string.h: Revert 2004-07-26 additions of
2822 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
2824 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
2825 (__convert_inf_to_maxnum): New.static inline.
2826 (reducl): Use it to protect against Inf - Inf.
2827 (__fast_ldexpl): New function. Use in lieu of ldexpl.
2829 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
2831 * mingwex/math/expl.c (expl): Move body of code to new static
2832 function __expl, removing tests for +/-Inf. Extern function
2833 expl calls __expl after testing for max, min log thresholds.
2835 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2837 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
2838 * mingwex/stdio/vfscanf.c: Likewise.
2839 * mingwex/stdio/vswscanf.c: Likewise.
2840 * mingwex/stdio/vfwscanf.c: Likewise.
2842 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2844 * include/_mingw.h: Use only two underscores to uglify
2845 __MINGW_ATTRIB_* macros.
2846 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
2847 * include/setjmp.h: Likewise.
2849 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
2851 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
2853 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
2855 * include/string.h: Group wide string functions together,
2856 and protect with _WSTRING_DEFINED.
2858 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
2860 * include/_mingw.h (__MINGW_ATTR_*): Replace with
2862 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
2863 __MINGW_ATTRIB_NORETURN, throughout.
2864 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
2866 (abs): Declare with __MINGW_ATTRIB_CONST.
2875 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
2877 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
2879 * include/_mingw.h: Undefine __attribute__.
2880 (__MINGW_ATTR_NORETURN): New define.
2881 (__MINGW_ATTR_CONST): New define.
2882 (__MINGW_ATTR_MALLOC): New define.
2883 (__MINGW_ATTR_PURE): New define.
2884 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
2887 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2889 * include/time.h (__time64_t): Add missing ';'.
2891 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
2893 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
2894 (struct tm): Protect with _TM_DEFINED.
2896 2004-07-17 Christopher Faylor <cgf@timesys.com>
2898 * Makefile.in (CC): Strip inappropriate include file settings from any
2901 2004-07-15 "dgun" <dgun@umpire.com>
2903 * include/complex.h (conj): Correct typo in prototype.
2905 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
2907 * include/math.h: Add pragma GCC system_header.
2909 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
2911 * mingwex/complex/carg.c: New file.
2912 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
2914 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
2916 * Makefile.in (INCLUDES): Temporarily revert previous change.
2917 * mingwex/Makefile,in (INCLUDES): Ditto.
2918 * profile/Makefile,in (INCLUDES): Ditto.
2919 * mingwex/Makefile,in: Drop carg.o dependency.
2921 2004-07-14 Christopher Faylor <cgf@timesys.com>
2923 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
2925 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
2927 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
2929 * mingwex/Makefile,in (INCLUDES): Ditto.
2930 * profile/Makefile,in (INCLUDES): Ditto.
2932 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
2934 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
2936 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
2938 * mingwex/Makefile.in: Ditto.
2939 * profile/Makefile.in: Ditto.
2940 * include/limits.h: Change to new file header preamble.
2941 * include/_mingw.h: Increment minor version for 3.4 release.
2942 * Makefile.in: Ditto.
2944 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2946 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
2948 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
2950 * include/unistd.h (ftruncate): Add inline definition.
2951 * mingwex/ftruncate.c: New file.
2952 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
2954 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
2956 * include/time.h: Do not include sys/types.h.
2958 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
2960 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
2961 (MATH_OBJS): Remove pow,o.
2962 * include/math.h (pow): Declare with _CRTIMP.
2963 Add comment on how to avoid excess precision problems.
2965 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
2967 * include/stdio.h (__mingw_fseeko64): Add prototype.
2968 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
2969 (__mingw_fwrite): Handle huge files.
2971 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
2972 Danny Smith <dannysmith@users.sourceforge.net>
2974 * include/stdio.h (fopen64): Add inline function.
2975 (fseeko64): Add prototype.
2976 (ftello64): Add inline function.
2977 * include/io.h (lseek64): Add inline function.
2978 * include/sys/types (off64_t): Add typedef.
2979 (fpos64_t): Add typedef.
2980 * mingwex/fopen64.c: New file.
2981 * mingwex/fseeko64.c: New file.
2982 * mingwex/ftello64.c: New file.
2983 * mingwex/lseek64.c: New file.
2984 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
2985 fseeko.64.c, ftello64.c, lseek64.c.
2986 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
2988 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
2990 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
2992 2004-04-22 Earnie Boyd <earnie@users.sf.net>
2994 * DISCLAIMER: Add words about "free to use".
2995 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
2996 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
2997 (inst_docdir): New variable.
2999 (FLAGS_TO_PASS): Include inst_docdir.
3000 (install-dirs): Add inst_docdir.
3001 (install): Add loop for INSTDOCS.
3002 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3003 section to CONTRIBUTORS file. Remove RCS tags.
3005 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3007 * mingwex/math/lround.c: Rewrite.
3008 * mingwex/math/lroundf.c: Rewrite.
3009 * mingwex/math/lroundl.c: Rewrite.
3010 * mingwex/math/llround.c: Rewrite.
3011 * mingwex/math/llroundf.c: Rewrite.
3012 * mingwex/math/llroundl.c: Rewrite.
3014 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3016 * CONTRIBUTORS: New file.
3017 * DISCLAIMER: Ditto.
3018 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3019 section to CONTRIBUTORS file. Remove RCS tags.
3020 * CRTFmode.c: Ditto.
3024 * crtdll.dev: Ditto.
3034 * msvcrt.def.in: Ditto.
3035 * strcasecmp.c: Ditto.
3038 * include/assert.h: Ditto.
3039 * include/conio.h: Ditto.
3040 * include/ctype.h: Ditto.
3041 * include/direct.h: Ditto.
3042 * include/dirent.h: Ditto.
3043 * include/dos.h: Ditto.
3044 * include/errno.h: Ditto.
3045 * include/excpt.h: Ditto.
3046 * include/fcntl.h: Ditto.
3047 * include/float.h: Ditto.
3048 * include/io.h: Ditto.
3049 * include/locale.h: Ditto.
3050 * include/malloc.h: Ditto.
3051 * include/math.h: Ditto.
3052 * include/process.h: Ditto.
3053 * include/setjmp.h: Ditto.
3054 * include/share.h: Ditto.
3055 * include/signal.h: Ditto.
3056 * include/stdio.h: Ditto.
3057 * include/stdlib.h: Ditto.
3058 * include/string.h: Ditto.
3059 * include/tchar.h: Ditto.
3060 * include/time.h: Ditto.
3061 * include/wchar.h: Ditto.
3062 * include/sys/locking.h: Ditto.
3063 * include/sys/param.h: Ditto.
3064 * include/sys/stat.h: Ditto.
3065 * include/sys/timeb.h: Ditto.
3066 * include/sys/types.h: Ditto.
3067 * include/sys/utime.h: Ditto.
3068 * mingwex/dirent.c: Ditto.
3070 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3072 * include/_mingw.h: Revert to primary release 3 and increment minor
3074 * Makefile.in (VERSION): Ditto.
3076 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3078 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3079 _fmode if not __MSVCRT__.
3081 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3083 * include/io.h: (_findfirst): Correct prototype.
3085 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3087 * include/io.h: (_findnext, _findclose): Correct prototype.
3089 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3091 * include/math.h (FP_*): Add defines.
3093 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3095 * mingwex/math/round.c: Rewrite.
3096 * mingwex/math/roundf.c: Rewrite.
3097 * mingwex/math/roundl.c: Rewrite.
3099 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3101 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3102 * include/time.h (__time64_t): Add typedef.
3103 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3104 (_ctime64): Likewise.
3105 (_wctime64): Likewise.
3106 (_gmtime64): Likewise.
3107 (_localtime64): Likewise.
3108 (wcsftime): Move into _WTIME_DEFINED block.
3109 Regroup non-ANSI prototypes.
3110 * include/io.h: Include <stdint.h>.
3111 (__finddata64_t): Add struct definition.
3112 (__wfinddata64_t): Likewise.
3113 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3114 (_findnext64): Likewise.
3115 (_wfindfirst64): Likewise.
3116 (_wfindnext64): Likewise.
3117 * include/sys/timeb.h (__timeb64): Add struct definition.
3118 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3119 * include/sys/utime.h (__utimbuf64): Add struct definition.
3120 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3121 (_futime64): Likewise.
3122 (_wutime64): Likewise.
3123 * include/sys/stat.h (__stat64): Add struct definition.
3124 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3125 (_stat64): Likewise.
3126 (_wstat64): Likwise.
3127 * include/sys/types.h (__time64_t): Add typedef.
3128 * include/wchar.h (__wfinddata64_t): Add structure definition.
3129 (__stat64): Likewise.
3130 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3131 (_wfindfirst64): Likewise.
3132 (_wfindnext64): Likewise.
3133 (_wutime64): Likewise.
3134 (_wstat64): Likwise.
3135 * include/malloc.h (_aligned_free): Add prototype for
3136 __MSVCRT_VERSION__ >= 0x0700.
3137 (_aligned_malloc): Likewise.
3138 (_aligned_offset_malloc): Likewise.
3139 (_aligned_offset_realloc): Likewise.
3140 (_aligned_realloc): Likewise.
3141 * include/string.h (_wcserror): Add prototype for
3142 __MSVCRT_VERSION__ >= 0x0700.
3143 (__wcserror): Likewise.
3144 * include/math.h (_set_SSE2_enable): Add prototype for
3145 __MSVCRT_VERSION__ >= 0x0701.
3147 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3149 * include/stdio.h (_fsopen): Add prototype.
3150 * include/tchar.h (_tfsopen): Add defines.
3151 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
3153 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3155 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
3156 msvcr70.dll, and msvcr71.dll.
3157 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
3158 using basename of output def file.
3160 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3162 * include/malloc.h: Remove __STRICT_ANSI__ guard.
3164 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
3166 * include/process.h: Remove the #endif associated with removal of
3167 __STRICT_ANSI__ guard from non-ANSI header.
3169 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3171 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
3172 * include/direct.h: Ditto.
3173 * include/dirent.h: Ditto.
3174 * include/dos.h: Ditto.
3175 * include/excpt.h: Ditto.
3177 * include/io.h: Ditto.
3178 * inlude/mem.h: Ditto.
3179 * include/memory.h: Ditto.
3180 * include/process.h: Ditto.
3181 * inlude/search.h: Ditto.
3182 * include/share.h: Ditto.
3183 * include/unistd.h: Ditto.
3184 * include/sys/fcntl.h: Ditto.
3185 * include/file.h: Ditto.
3186 * include/sys/locking.h: Ditto.
3187 * include/sys/param.h: Ditto.
3188 * include/sys/stat,h
3189 * include/sys/time.h: Ditto.
3190 * include/sys/timeb.h: Ditto.
3191 * include/sys/types.h: Ditto.
3192 * include/sys/unistd.h: Ditto.
3193 * include/sys/utime.h: Ditto.
3195 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
3197 * include/_mingw.h (__UNUSED_PARAM): Define macro.
3198 * include/wchar.h (fwide): Use it.
3201 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3203 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
3204 NetBSD getopt_long.c.
3206 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3208 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
3209 codes and handling of special chars.
3211 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
3213 * include/stdio.h (feof): Add inlined definition.
3216 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3218 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
3219 directly, rather than via scabnl.
3221 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3223 * mingwex/math/powl.c (powl): Return infinity if
3224 extended precision multiplication of x by log2(y)
3227 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3229 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
3230 (__enan_NI16): Fix another one.
3231 (__enan_NBITS): Tidy.
3233 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3235 * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
3236 types. (Thanks to John Maddock for report.)
3238 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
3240 * include/tchar.h (_puttchar): Define.
3242 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
3244 * include/stdio.h:(_fileno): Define macro version after both
3245 fileno and _fileno functions declared.
3247 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
3248 * moldnames.def.in (rmtmp) Add stub.
3250 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
3252 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
3254 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
3256 * include/math.h: Guard ISO C99 additions with __cplusplus
3259 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3261 * include/_mingw.h: Define __attribute__((x)) to nothing
3264 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3266 * include/complex.h: New file.
3267 * mingwex/complex: New directory.
3268 * mingwex/complex/cabs.c: New file.
3269 * mingwex/complex/cacos.c: New file.
3270 * mingwex/complex/cacosh.c: New file.
3271 * mingwex/complex/casin.c: New file.
3272 * mingwex/complex/casinh.c: New file.
3273 * mingwex/complex/catan.c: New file.
3274 * mingwex/complex/catanh.c: New file.
3275 * mingwex/complex/ccos.c: New file.
3276 * mingwex/complex/ccosh.c: New file.
3277 * mingwex/complex/cexp.c: New file.
3278 * mingwex/complex/cimag.c: New file.
3279 * mingwex/complex/clog.c: New file.
3280 * mingwex/complex/cpow.c: New file.
3281 * mingwex/complex/cproj.c: New file.
3282 * mingwex/complex/creal.c: New file.
3283 * mingwex/complex/csin.c: New file.
3284 * mingwex/complex/csinh.c: New file.
3285 * mingwex/complex/csqrt.c: New file.
3286 * mingwex/complex/ctan.c: New file.
3287 * mingwex/complex/ctanh.c: New file.
3288 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3291 (COMPLEX_OBJS): New list of objects.
3292 (LIB_OBJS): Include it in the library.
3294 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3296 * include/math.h (cabs): Remove non-ISO prototype.
3298 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3300 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3301 Use GCC __builtin's if available.
3302 (INFINITY, INFINITYF, INFINITYL): Likewise.
3304 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3306 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3307 beyond approximation limit.
3308 * mingwex/math/sf_erf.c (erff): Likewise.
3310 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3312 * include/stdio.h (getc): Cast result to unsigned char before
3315 (getchar): Likewise.
3316 (putchar): Likewise.
3317 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3319 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3321 * include/_mingw.h: Increment version to 3.2.
3322 * Makefile.in: Ditto.
3324 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3326 * include/sys/types.h: Revert last change.
3328 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3330 * include/sys/types.h (ssize_t): Correct the definition.
3332 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3334 * include/stdio.h (_filbuf): Add prototype.
3335 (_flsbuf): Add prototype.
3336 (getc): Add inline version.
3338 (getchar): Likewise.
3339 (putchar): Likewise.
3341 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3343 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3346 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3348 * include/stdlib.h: Guard non-ISO functions with
3349 !__STRICT_ANSI__, throughout.
3351 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3353 * include/io.h (_fileno): Remove prototype.
3355 (FILENAME_MAX): Define, if needed.
3356 Don't include <stdio.h>.
3357 * include/stdio.h (FILENAME_MAX): Protect against
3359 (_fileno): Define macro implementation.
3362 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3364 * include/inttypes.h: Include _mingw.h.
3366 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3368 * include/_mingw.h (__CRT_INLINE): Define.
3369 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3371 * include/inttypes.h: Likewise.
3372 * include/math.h: Likewise.
3373 * include/stdio.h: Likewise.
3374 * include/stdlib.h: Likewise.
3375 * include/string.h: Likewise.
3376 * include/wchar.h: Likewise.
3377 * include/wctype.h: Likewise.
3379 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3381 * mingwex/dirent.c (_topendir): Allocate enough memory for
3382 DIR struct in UNICODE case too.
3384 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3386 * include/_mingw.h: Increment version to 3.2.
3387 * Makefile.in: Ditto.
3389 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3391 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3393 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3395 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3396 * mingwex/math/truncf.c (truncf): Likewise.
3397 * mingwex/math/truncl.c (truncl): Likewise.
3398 * mingwex/math/modff.c (modff): Likewise.
3399 * mingwex/math/modfl.c (modfl): Likewise.
3401 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3403 * include/search.h: New file.
3404 * include/stdlib.h: Add comment about qsort, bsearch in
3406 * test_headers.c: Include search.h.
3407 * moldname.def.in (lfind, lsearch): Add.
3409 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3411 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
3412 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
3413 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
3415 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3417 * include/_mingw.h (small, hyper): Change to __small and __hyper to
3418 avoid user space name conflicts.
3420 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3422 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
3423 Note: Also added to w32api/include/basetyps.h.
3424 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
3425 Rename to Small (case difference).
3427 2003-06-18 Earnie Boyd <earnie@users.sf.net>
3429 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
3430 * mingwex/dirent.c: Modifications througout to fill d_name array.
3431 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
3432 libmsvcr71, including debug versions.
3433 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
3435 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
3437 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
3438 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
3440 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
3442 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
3444 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
3446 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
3448 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
3449 but still protect inline definition with __STRICT_ANSI__.
3451 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
3453 * string_old.c: Remove, splitting into...
3454 * strcasecmp.c: New file.
3455 * strncasecmp.c: New file.
3456 * wscmpi.c : New file.
3457 * ctype_old.c: Remove, splitting into...
3458 * isascii.c: New file.
3459 * iscsym.c: New file.
3460 * iscsymf.c: New file.
3461 * toascii.c: New file.
3462 * Makefile.in (MOLD_OBJS): Adjust.
3463 (SRCDIST_FILES): Adjust.
3465 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
3467 * include/math.h (fabs) : Remove inline definition.
3471 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3473 * include/_mingw.h: Change version to 3.0
3474 * Makefile.in: Ditto.
3476 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3478 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
3479 * mingwex/configure.in (W32API_INCLUDE): Ditto.
3480 * profile/configure.in (W32API_INCLUDE): Ditto.
3482 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3484 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
3485 of multiply defined symbols if the symbols is defined locally. E.G.:
3486 A local definition of malloc causes this problem.
3487 * configure: Regenerate.
3488 * profile/Makefile.in (W32API_INCLUDE): New variable.
3489 (ALL_CFLAGS): Use W32API_INCLUDE value.
3490 (ALL_CXXFLAGS): Ditto.
3491 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
3492 Thanks to Jeff Bonggren <jbon@users.sf.net>.
3493 * profile/configure.in (W32API_INCLUDE): Set default value.
3494 * profile/configure: Regenerate.
3495 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
3496 (ALL_CFLAGS): Use W32API-INCLUDE value.
3497 (ALL_CXXFLAGS): Ditto.
3498 * mingwex/configure.in (W32API_INCLUDE): Set default value.
3499 * mingwex/configure: Regenerate.
3501 2003-05-05 Earnie Boyd <earnie@users.sf.net>
3503 * Makefile.in (W32API_INCLUDE): New variable.
3504 (ALL_CFLAGS): Use W32API_INCLUDE value.
3505 (ALL_CXXFLAGS): Ditto.
3506 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
3507 (W32API_INCLUDE): Set default value.
3508 * configure: Regenerate.
3510 2003-04-11 Earnie Boyd <earnie@users.sf.net>
3512 * configure.in (LIBM_A): Define for cygwin target.
3513 * configure (LIBM_A): Ditto.
3515 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
3517 * include/time.h (strftime): Remove duplicate declaration.
3519 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3521 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
3523 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3525 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
3526 * mingwex/strtoimax.c (strtoimax): Likewise.
3527 * mingwex/wcstoimax.c (wcstoimax): Likewise.
3528 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
3529 * mingwex/fesentenv.c: Include float.h.
3530 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
3532 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
3534 * mingwex/math/tgammal.c: Likewise.
3536 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3538 * include/utime.h: New file, forwarding to sys/utime.h.
3540 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3542 * include/sys/param.h (MAXPATHLEN): Define.
3544 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3546 * include/tchar.h: Ansi-fy a comment.
3548 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3550 * profile/profile.h (mcount): Use __builtin_return_address
3551 rather than inline __asm statements.
3552 * profile/Makefile.in: Remove special rule for mcount.o
3553 Specify dependencies for mcount.o profil.o gmon.o.
3555 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3557 * include/stdlib.h (qsort): Remove const from first parm.
3558 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
3560 2003-03-03 Christopher Faylor <cgf@redhat.com>
3562 * mingwex/getopt.c: Refresh from NetBSD sources.
3564 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
3566 * mingwex/getopt.c: New file, copied from cygwin srcs.
3567 * include/getopt.h: New file, copied from cygwin srcs.
3568 * include/unistd.h: Include getopt.h.
3569 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
3570 (POSIX_OBJS): Add getopt.o.
3572 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
3574 * include/stdio.h (vscanf): Add prototype.
3580 * include/wchar.h (vwscanf): Add prototype.
3583 * mingwex/snprintf.c: Move to mingwex/stdio.
3584 * mingwex/vsnprintf.c: Ditto.
3585 * mingwex/snwprintf.c: Ditto.
3586 * mingwex/vsnwprintf.c: Ditto.
3587 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
3588 (STDIO_DISTFILES): Add.
3589 (DISTFILES): Adjust.
3590 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
3594 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
3596 * mingwex/stdio: New directory
3597 * mingwex/stdio/vfscanf.c: New file.
3598 * mingwex/stdio/vfwscanf.c: New file.
3599 * mingwex/stdio/vscanf.c: New file.
3600 * mingwex/stdio/vsscanf.c: New file.
3601 * mingwex/stdio/vswscanf.c: New file.
3602 * mingwex/stdio/vwscanf.c: New file.
3604 2003-02-25 Earnie Boyd <earnie@users.sf.net>
3606 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
3607 (libmsvcrt40.a): Ditto.
3609 2003-02-21 Earnie Boyd <earnie@users.sf.net>
3611 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
3613 * Makefile.in (libmsvcrtd.a): Add target library.
3614 (libmoldnamed.a): Ditto.
3615 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
3617 ($(srcdir)): Remove explicit reference for depencies of object targets.
3618 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
3619 msvcrt20.def, msvcrt40.def: Remove.
3620 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
3622 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
3624 * Makefile.in: Make sure libmingwex.a from current build tree is used.
3626 2003-02-14 Christopher Faylor <cgf@redhat.com>
3628 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
3629 ensure -mno-cygwin where appropriate. Filter out -O2.
3631 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
3633 * profile/Makefile.in (mcount.o): Use -O1 optimization
3636 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3638 * include/math.h: Remove _CRTIMP from pow() prototype,
3639 unless __NO_ISOCEXT.
3641 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3643 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
3645 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3647 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
3648 __declspec(dllimport) supported.
3649 (__cdecl): Define if not already defined.
3650 (__stdcall): Likewise.
3651 * include/dirent.h: Qualify fuctions with __cdecl.
3652 * include/fenv.h: Likewise.
3653 * include/inttypes.h: Likewise.
3654 * include/assert.h: Qualify fuctions with __cdecl. Qualify
3655 CRT dll imports with _CRTIMP.
3656 * include/conio.h: Likewise.
3657 * include/ctype.h: Likewise.
3658 * include/direct.h: Likewise.
3659 * include/dos.h: Likewise.
3660 * include/errno.h: Likewise.
3661 * include/float.h: Likewise.
3662 * include/io.h: Likewise.
3663 * include/locale.h: Likewise.
3664 * include/malloc.h: Likewise.
3665 * include/math.h: Likewise.
3666 * include/mbctype.h: Likewise.
3667 * include/mbstring.h: Likewise.
3668 * include/process.h: Likewise.
3669 * include/setjmp.h: Likewise.
3670 * include/signal.h: Likewise.
3671 * include/stdio.h: Likewise.
3672 * include/stdlib.h: Likewise.
3673 * include/string.h: Likewise.
3674 * include/time.h: Likewise.
3675 * include/wchar.h: Likewise.
3676 * include/wctype.h: Likewise.
3677 * include/sys/stat.h: Likewise.
3678 * include/sys/timeb.h: Likewise.
3679 * include/sys/utime.h: Likewise.
3681 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
3682 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
3684 * include/stdio.h (__VALIST): Guard against prior definition.
3686 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3688 * include/_mingw.h: Change version to 3.0
3689 * Makefile.in: Ditto.
3691 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3693 * include/stdlib.h: Make words after #endif a comment.
3695 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3697 * include/locale.h: Include stddef.h for definition of NULL.
3699 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3701 * include/math.h (tgamma): Correct typo in comment.
3703 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3705 * mingwex/mingw-fseek.c (INLINE): Remove define.
3706 (__mingw_is_win9x): Remove static inline function.
3707 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
3709 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3711 * mingwex/math/llround.c: Correct function name and
3712 change return value to long long.
3714 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
3716 * include/ctype.h (__isascii): Don't cast arg to unsigned.
3717 (iswascii): Likewise. Correct mask.
3718 * include/wctype.h (iswascii): Don't cast arg to unsigned.
3721 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
3723 * include/stdlib.h (_osver, _winver, _winmajor,
3724 _winminor): Declare as direct imports from dll if
3725 __DECLSPEC_SUPPORTED.
3727 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
3729 * pseudo-reloc.c (do_pseudo_reloc): Make static.
3730 * pseudo-reloc-list.c: New file.
3731 * crt1.c (_pei386_runtime_relocator): Declare.
3732 (__mingw_CRTStartup): Call it.
3733 * dllcrt1.c (_pei386_runtime_relocator): Declare.
3734 (DllMainCRTStartup): Call it.
3735 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
3738 2003-01-01 Egor Duda <deo@logos-m.ru>
3740 * pseudo-reloc.c: New file.
3742 2002-12-20 Earnie Boyd <earnie@users.sf.net>
3744 * include/_mingw.h: Increment version to 2.4.
3747 2002-12-12 Earnie Boyd <earnie@users.sf.net>
3749 * include/malloc.h (_alloca): Add definition.
3752 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
3754 * mingwex/math/s_erf.c: New file.
3755 * mingwex/math/sf_erf.c: New file.
3756 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3757 (MATH_OBJS): Add new objects.
3758 * include/math.h (erf[f]): Add prototypes.
3759 (erfc[f]): Add prototypes.
3761 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
3763 * include/math.h: Add traditional/XOPEN math constants.
3765 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
3767 * mingwex/math/lgamma.c: New file.
3768 * mingwex/math/lgammaf.c: New file.
3769 * mingwex/math/lgammal.c: New file.
3770 * mingwex/math/tgamma.c: New file.
3771 * mingwex/math/tgammaf.c: New file.
3772 * mingwex/math/tgammal.c: New file.
3773 * mingwex/math/cephes_mconf (polevlf): Add float version.
3775 Define _CEPHES_USE_ERRNO.
3776 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3777 (MATH_OBJS): Add new objects.
3778 * include/math.h (lgamma[fl]): Add prototypes.
3779 (tgamma[fl]): Add prototypes.
3781 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
3783 * mingwex/strtold.c: New file.
3784 * mingwex/wcstold.c: New file.
3785 * mingwex/ldtoa.c: New file.
3786 * mingwex/math/cephes_emath.h: New file.
3787 * mingwex/math/cephes_emath.c: New file.
3788 * mingwex/Makefile.in (DISTFILES): Add new files.
3789 (MATH_DISTFILES): Ditto.
3790 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
3791 (MATH_OBJS): Add cephes_emath.o.
3792 (LIB_OBJS): Add $(STDLIB_OBJS).
3793 * include/stdlib.h (strtold, wcstold): Add prototypes.
3794 * include/wchar.h (wcstold): Add prototype.
3796 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3798 * include/math.h (sqrt): Remove inline definition.
3799 (sqrtf): Replace inline definition with prototype.
3801 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
3802 argument less than zero.
3803 * mingwex/math/sqrtf.c (sqrtl): Likewise.
3805 2002-10-30 Guido Serassio <serassio@libero.it>
3807 * include/stdio.h (_getmaxstdio): Add prototype.
3808 (_setmaxstdio): Likewise.
3810 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
3812 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
3814 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3816 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
3818 Define WIN32_MEAN_AND_LEAN before including windows.h
3819 * include/stdlib.h (_fmode): Protect declaration as dllimported
3820 variable with __IN_MINGW_RUNTIME.
3822 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3824 * crt1.c: Include stdlib.h.
3826 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3828 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
3829 (MINGW_OBJS): Add txtmode.o.
3830 (SRCDIST_FILES): Add txtmode.c binmode.c.
3831 crt1.c: Don't include fcntrl.h, stdlib.h.
3832 (_fmode): Declare, without dllimport attribute.
3833 (__p__fmode): Declare access function for dll's _fmode.
3834 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
3836 * txtmode.c: New file.
3837 * binmode.c: New file.
3838 * samples/fmode/test2.c: New file.
3839 * samples/fmode/jamfile: Add test2.exe target.
3841 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
3843 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
3844 macros work with C89.
3845 (INTMAX_C, UINTMAX_C): Likewise.
3847 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
3849 * include/string.h (strcasecmp): Make extern __inline__.
3850 (strncasecmp): Likewise.
3851 (wcscmpi): Likewise.
3853 2002-10-08 Heiko Gerdau <hg@technosis.de>
3855 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
3856 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
3859 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3861 * mingwex/math/powil.c: Rename powil to __powil.
3862 * mingwex/math/powl.c: Adjust declaration and call
3863 to __powil. Remove comment on powil.
3864 * mingwex/math/powi.c: New file.
3865 * mingwex/math/powif.c: New file.
3866 * mingwex/math/pow.c: New file.
3867 * mingwex/math/cephes_mconf.h. Add double and float
3868 versions of constants.
3869 (polevl): Add double precision function.
3871 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
3873 (MATH_OBJS): Add pow.o, powi.o, powif.o.
3875 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3877 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
3878 (_imp____mbcur_max_dll): Likewise.
3880 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3882 * include/fcntl.h (_fmode): Remove declarations and
3883 compatibility defines.
3884 (_setmode, setmode): Remove prototypes.
3885 * include/stdlib (_fmode): Add declarations and
3886 compatibility defines. Change type to int.
3887 * include/io.h (_setmode, setmode): Add prototypes.
3888 * samples/fmode/all.c: Adjust includes.
3889 * samples/fmode/test.c: Likewise.
3890 * crt1.c (_CRT_fmode): Declare as int.
3891 * CRTfmode.c (_CRT_fmode): Likewise.
3893 * include/stdlib: Remove comment about MB_CUR_MAX.
3895 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
3897 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
3898 (_imp____mbcur_max_dll): Likewise.
3900 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3902 * mingwex/math/files.txt: Remove inadvertantly added file.
3904 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3906 * include/string.h (_strerror): Move into #ifndef
3907 __STRICT_ANSI__ block.
3909 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
3911 * include/time.h (__need_NULL): Define before including
3912 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
3914 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
3916 * include/stdio.h: Correct comment about directory separator.
3918 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
3920 * include/sys/time.h (timeval): Add struct definition and
3921 associated macros (copied from w32api/include/winsock.h).
3923 2002-09-05 Earnie Boyd <earnie@users.sf.net>
3925 * include/_mingw.h: Increment version to 2.3.
3928 2002-09-05 Earnie Boyd <earnie@users.sf.net>
3930 * mingwex/fegetenv.c: Change to \n line endings.
3931 * mingwex/vsnprintf.c: Ditto.
3932 * mingwex/vsnwprintf.c: Ditto.
3934 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
3936 * mingwex/math/hypotl.c: Replace with version based on cephes
3939 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
3941 * include/sys/param.h: Add ENDIAN defines.
3942 * test_headers.c: Include sys/param.h.
3944 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
3946 * test_headers.c: Don't include varargs.h.
3947 * Makefile.in (test_headers): Don't use -std=xx
3950 2002-08-21 Earnie Boyd <earnie@users.sf.net>
3952 * include/sys/param.h: New File.
3954 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
3956 * include/math.h (asm): Change to __asm__ throughout.
3957 Expose ISO C99 functions if __GLIPCPP__.
3958 (hypotf): Use hypot, not _hypot in stub.
3960 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
3962 * include/tchar.h: Ansi-fy another comment.
3964 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
3966 * include/tchar.h: Ansi-fy comment.
3968 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
3970 * test_headers.c : New file.
3971 * Makefile.in (test_headers): New target, using it,
3972 (SRCDIST_FILES): Distribute it.
3974 2002-08-20 Earnie Boyd <earnie@users.sf.net>
3976 * include/_mingw.h: Increment version to 2.2.
3979 2002-08-14 Earnie Boyd <earnie@users.sf.net>
3981 * include/unistd.h: Add include of process.h.
3983 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3985 * include/stdio.h (_fcloseall): Add prototype.
3987 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
3989 * include/tchar.h (_tfdopen): Correct typo.
3991 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
3993 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
3994 nextafter): Add non-underscored stubs.
3995 * moldname-msvcrt.def: Regenerate.
3996 * moldname-crtdll.def: Regenerate.
3997 * mingwex/math: New directory.
3998 * mingwex/rint.c: Move to mingwex/math.
3999 * mingwex/rintf.c: Ditto.
4000 * mingwex/rintl.c: Ditto.
4001 * mingwex/round.c: Ditto.
4002 * mingwex/roundf.c: Ditto.
4003 * mingwex/roundl.c: Ditto.
4004 * mingwex/rint.c: Ditto.
4005 * mingwex/rintf.c: Ditto.
4006 * mingwex/rintl.c: Ditto.
4007 * mingwex/trunc.c: Ditto.
4008 * mingwex/truncf.c: Ditto.
4009 * mingwex/truncl.c: Ditto.
4010 * mingwex/signbit.c: Ditto.
4011 * mingwex/signbitf.c: Ditto.
4012 * mingwex/signbitl.c: Ditto.
4013 * mingwex/copysignl.S: Ditto.
4014 * mingwex/fdim.c: Ditto.
4015 * mingwex/fdimf.c: Ditto.
4016 * mingwex/fdiml.c: Ditto.
4017 * mingwex/fmin.c: Ditto.
4018 * mingwex/fminf.c: Ditto.
4019 * mingwex/fminl.c: Ditto.
4020 * mingwex/fmax.c: Ditto.
4021 * mingwex/fmaxf.c: Ditto.
4022 * mingwex/fmaxl.c: Ditto.
4023 * mingwex/fma.c: Ditto.
4024 * mingwex/fmaf.c: Ditto.
4025 * mingwex/fmal.c: Ditto.
4026 * mingwex/fpclassify.c: Ditto.
4027 * mingwex/fpclassifyl.c: Ditto.
4028 * mingwex/fpclassifyl.c: Ditto.
4029 * mingwex/isnan.c: Ditto.
4030 * mingwex/isnanf.c: Ditto.
4031 * mingwex/isnanl.c: Ditto.
4032 * mingwex/fucom.c: Ditto.
4033 * mingwex/fp_consts.c: Ditto. Split out float and long double
4035 * mingwex/math_stubs.c: Remove.
4036 * mingwex/log2.c: Remove. Replaced by math/log2.S
4037 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4038 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4039 * mingwex/math/acosf.c : New file.
4040 * mingwex/math/acosl.c: New file.
4041 * mingwex/math/asinf.c: New file.
4042 * mingwex/math/asinl.c: New file.
4043 * mingwex/math/atan2f.c: New file.
4044 * mingwex/math/atan2l.c: New file.
4045 * mingwex/math/atanf.c: New file.
4046 * mingwex/math/atanl.c: New file.
4047 * mingwex/math/cbrt.c: New file.
4048 * mingwex/math/cbrtf.c: New file.
4049 * mingwex/math/cbrtl.c: New file.
4050 * mingwex/math/ceilf.S: New file.
4051 * mingwex/math/ceill.S: New file.
4052 * mingwex/math/cephes_ld.h: New file.
4053 * mingwex/math/copysign.S: New file.
4054 * mingwex/math/copysignf.S: New file.
4055 * mingwex/math/cosf.S: New file.
4056 * mingwex/math/coshf.c: New file.
4057 * mingwex/math/coshl.c: New file.
4058 * mingwex/math/cosl.S: New file.
4059 * mingwex/math/exp2.S: New file.
4060 * mingwex/math/exp2f.S: New file.
4061 * mingwex/math/exp2l.S: New file.
4062 * mingwex/math/expf.c: New file.
4063 * mingwex/math/expl.c: New file.
4064 * mingwex/math/fabs.c: New file.
4065 * mingwex/math/fabsf.c: New file.
4066 * mingwex/math/fabsl.c: New file.
4067 * mingwex/math/floorf.S: New file.
4068 * mingwex/math/floorl.S: New file.
4069 * mingwex/math/fmodf.c: New file.
4070 * mingwex/math/fmodl.c: New file.
4071 * mingwex/math/fp_consts.h: Ditto.
4072 * mingwex/math/fp_constsf.c: Ditto.
4073 * mingwex/math/fp_constsl.c: Ditto.
4074 * mingwex/math/frexpf.c: New file.
4075 * mingwex/math/frexpl.S: New file.
4076 * mingwex/math/hypotf.c: New file.
4077 * mingwex/math/hypotl.c: New file.
4078 * mingwex/math/ilogb.S: New file.
4079 * mingwex/math/ilogbf.S: New file.
4080 * mingwex/math/ilogbl.S: New file.
4081 * mingwex/math/ldexpf.c: New file.
4082 * mingwex/math/ldexpl.c: New file.
4083 * mingwex/math/llrint.c: New file.
4084 * mingwex/math/llrintf.c: New file.
4085 * mingwex/math/llrintl.c: New file.
4086 * mingwex/math/llround.c: New file.
4087 * mingwex/math/llroundf.c: New file.
4088 * mingwex/math/llroundl.c: New file.
4089 * mingwex/math/log10f.S: New file.
4090 * mingwex/math/log10l.S: New file.
4091 * mingwex/math/log1p.S: New file.
4092 * mingwex/math/log1pf.S: New file.
4093 * mingwex/math/log1pl.S: New file.
4094 * mingwex/math/log2.S: New file.
4095 * mingwex/math/log2f.S: New file.
4096 * mingwex/math/log2l.S: New file.
4097 * mingwex/math/logb.c: New file.
4098 * mingwex/math/logbf.c: New file.
4099 * mingwex/math/logbl.c: New file.
4100 * mingwex/math/logf.S: New file.
4101 * mingwex/math/logl.S: New file.
4102 * mingwex/math/lrint.c: New file.
4103 * mingwex/math/lrintf.c: New file.
4104 * mingwex/math/lrintl.c: New file.
4105 * mingwex/math/lround.c: New file.
4106 * mingwex/math/lroundf.c: New file.
4107 * mingwex/math/lroundl.c: New file.
4108 * mingwex/math/modff.c: New file.
4109 * mingwex/math/modfl.c: New file.
4110 * mingwex/math/nearbyint.S: New file.
4111 * mingwex/math/nearbyintf.S: New file.
4112 * mingwex/math/nearbyintl.S: New file.
4113 * mingwex/math/nextafterf.c: New file.
4114 * mingwex/math/powf.c: New file.
4115 * mingwex/math/powl.c: New file.
4116 * mingwex/math/powil.c: New file.
4117 * mingwex/math/remainder.S: New file.
4118 * mingwex/math/remainderf.S: New file.
4119 * mingwex/math/remainderl.S: New file.
4120 * mingwex/math/remquo.S: New file.
4121 * mingwex/math/remquof.S: New file.
4122 * mingwex/math/remquol.S: New file.
4123 * mingwex/math/scalbn.S: New file.
4124 * mingwex/math/scalbnf.S: New file.
4125 * mingwex/math/scalbnl.S: New file.
4126 * mingwex/math/sinf.S: New file.
4127 * mingwex/math/sinhf.c: New file.
4128 * mingwex/math/sinhl.c: New file.
4129 * mingwex/math/sinl.S: New file.
4130 * mingwex/math/sqrt.c: New file.
4131 * mingwex/math/sqrtf.c: New file.
4132 * mingwex/math/sqrtl.c: New file.
4133 * mingwex/math/tanf.S: New file.
4134 * mingwex/math/tanhf.c: New file.
4135 * mingwex/math/tanhl.c: New file.
4136 * mingwex/math/tanl.S: New file.
4137 * mingwex/Makefile.in: Adjust VPATH for source files in
4140 Add MATH_DISTFILES and use it to build source distro.
4141 * include/math.h: Add protypes for new functions and
4142 reorganise to reflect ANSI,C99 status.
4144 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
4146 * include/tchar.h (_getts): Define as _getws for _UNICODE.
4147 (_putts): Define as _putws for _UNICODE.
4148 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
4150 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
4152 * include/float.h: #include_next<float.h> before header guard.
4154 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
4156 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
4158 * include/excpt.h (): Include windef.h not windows.h.
4159 * include/fcntl.h (_O_SHORT_LIVED): Add define.
4160 (_chmod): Add prototype.
4161 (_creat): Correct prototype.
4162 (SH_DENY*): Rename defines to _SH_DENY*.
4163 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
4164 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
4165 _IOAPPEND): Add defines.
4166 (_wfindfirst): Correct prototype.
4167 (_wfdopen): Add prototype.
4168 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
4170 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
4172 (_wcsdup): Correct prototype.
4173 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
4174 _mbsncat being in string.h.
4175 * include/wchar.h (_wfindfirst): Correct prototype.
4176 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
4178 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4180 * include/_mingw.h: Increment to version 2.1.
4181 * Makefile.in: Ditto.
4183 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4185 * Makefile.in (conf_prefix): New variable.
4186 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
4187 (bindist): Use dist_prefix.
4189 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
4191 * include/_mingw.h: Increment version to 2.0.
4192 * Makefile.in: Ditto.
4194 Merge in mingwex branch.
4196 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
4198 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
4199 * mingwex/fdim.c: New file.
4200 * mingwex/fdimf.c: New file.
4201 * mingwex/fdiml.c: New file.
4202 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
4204 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
4206 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
4208 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
4210 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
4212 * mingwex/isnanl.c: New file.
4214 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4216 * include/stdint.h: Include stddef.h to get
4218 (WINT_MAX): Define to ((wint_t)-1).
4220 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4222 * include/wctype.h: Replace 'inline' with '__inline__'.
4223 * include/inttypes.h: Likewise.
4225 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4227 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
4228 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
4230 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4232 * mingwex/snprintf.c: Split out vsnprintf to....
4233 * mingwex/vsnprintf.c: New file.
4234 * mingwex/snwprintf.c: Split out vsnwprintf to...
4235 * mingwex/vsnwprintf.c: New file.
4236 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
4238 2002-05-15 Pascal Obry <obry@gnat.com>
4240 * include/dirent.h (DIR): Change dd_stat type to int.
4243 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
4245 * include/stdio.h (vsnprintf): Change inline to __inline__;
4246 (vsnwprintf): Likewise.
4247 * include/wchar.h (vsnwprintf): Likewise.
4250 (mbsinit): Likewise.
4252 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
4254 Change FP default precison from 53 to 64-bit mantissa.
4256 * Makefile.in (CRT0S): Add CRT_fp8.o.
4257 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
4258 * include/float.h: Replace standard float.h defines with
4259 #include_next<float.h> to use GCC's defines. Adjust comments
4262 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4264 * include/dos.h: Change prefix "__imp_" to "_imp__" for
4265 __GNUC__ without __DECLSPEC_SUPPORTED.
4266 * include/fnctl.h: Likewise.
4267 * include/math.h: Likewise.
4268 * include/stdio.h: Likewise.
4269 * include/stdlib.h: Likewise.
4270 * include/time.h: Likewise.
4271 * include/wctype.h: Likewise.
4272 * include/ctype.h: Likewise.
4274 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4276 Add atexit support for dlls.
4277 * crt1.c (atexit): Force thunk to _imp__atexit.
4278 (_onexit): Force thunk to _imp___onexit.
4279 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4280 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4281 (__dll_exit): New function to run atexit-registered functions
4282 and flush output buffers on DLL_PROCESS_DETACH or failed
4284 (atexit): Force use of private atexit table via _dllonexit,
4285 (_onexit): New function. Force use of private atexit table via
4287 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4288 _imp_<_symbol> is visible in import lib.
4289 * msvcrt20.def: Likewise.
4290 * msvcrt40.def: Likewise.
4291 * crtdll.def: Likewise.
4293 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4295 * include/fenv.h: Change header guard macro to _FENV_H_.
4296 (fenv_t, fexcept_t): Move into block protected by
4298 Cleanup some whitespace.
4299 * include/inttypes.h: Change header guard macro to
4302 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4304 * include/math.h (copysignl): Declare.
4305 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4306 (MATHOBJS):Add copysignl.o.
4308 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4310 * include/math.h (__signbitl, __isnanl): Declare.
4312 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4314 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4315 roundl, truncl, fmal, log2l): Declare.
4316 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4317 || !defined __STRICT_ANSI__.
4318 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4319 * mingwex/fmin.c (fmin): Likewise.
4320 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4321 * mingwex/fminf.c (fminf): Likewise.
4322 * mingwex/fmaxl.c: New file.
4323 * mingwex/fminl.c: New file.
4324 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4325 * mingwex/fpclassifyf.c: New file.
4326 * mingwex/fpclassifyl.c: New file.
4327 * mingwex/rint.c (rintf): Split out to...
4328 * mingwex/rintf.c: New file.
4329 * mingwex/rintl.c: New file.
4330 * mingwex/round.c (roundf): Split out to...
4331 * mingwex/roundf.c: New file.
4332 * mingwex/roundl.c: New file.
4333 * mingwex/trunc.c (truncf): Split out to...
4334 * mingwex/truncf.c: New file.
4335 * mingwex/truncl.c: New file.
4336 * mingwex/signbit.c (signbitf): Split out to...
4337 * mingwex/signbitf.c: New file.
4338 * mingwex/signbitl.c: New file.
4339 * mingwex/fmal.c: New file.
4340 * mingwex/copysignl.S: New file.
4341 * mingwex/log2l.c: New file.
4342 * mingwex/fp_consts.c: Add nanl definition.
4343 Comment out unused constants.
4344 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4345 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4346 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4348 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4349 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4350 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4352 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4354 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4356 Make wide char versions of opendir and friends.
4358 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4360 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4361 _wseekdir): Add prototypes for wide versions of corresponding
4363 * include/tchar.h; Add _UNICODE mappings for dirent.h
4364 structures and functions.
4365 * mingwex/dirent.c: Make _UNICODE neutral.
4366 * mingwex/wdirent.c: New file to define _UNICODE before
4368 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4369 (POSIX_OBJS): Add wdirent.o.
4370 (wdirent.o): Specify dependency on dirent.c as well as
4372 * samples/dirent/wtest.c: New file, wide version of test.c.
4374 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4376 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4377 ensure gcc include dir is searched despite -nostdinc.
4378 * profile/Makefile.in (INCLUDES): Likewise.
4379 * mingwex/Makefile.in (INCLUDES): Likewise.
4380 * include/stdarg.h: Replace with stub that just guards the
4381 real gcc system header with #ifndef RC_INVOKED
4382 * include/varargs.h: Likewise.
4383 * include/stddef.h: Likewise.
4384 * include/stdio.h: Include stdarg.h after defining
4386 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4387 Replace va_list with __VALIST throughout.
4389 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4391 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4392 * msvcrt.def (_fpreset): Mark as DATA so that only
4393 _imp___fpreset is exported.
4394 * msvcrt20.def (_fpreset): Likewise.
4395 * msvcrt40.def (_fpreset): Likewise.
4396 * crtdll.def (_fpreset): Likewise.
4397 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4399 (fpreset): Add alias.
4400 (__CRT_PC): Delete definition. _fpreset does it now.
4401 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4402 (fpreset): Add alias.
4403 (__CRT_PC): Delete definition.
4404 * moldname.def.in: Comment out fpreset.
4405 * moldname-msvcrt.def: Regenerate.
4406 * moldname-crtdll.def: Regenerate.
4407 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4408 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
4409 with the _fpreset determined by startup CRT_fp object.
4411 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
4413 * CRT_fp8.c: New file.
4414 * CRT_fp10.c: New file.
4415 * crt1.c (__CRT_PC) Declare.
4416 (__CRT_fesetenv): New static function, using _CRT_PC.
4417 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
4418 (_gnu_exception_handler): Likewise.
4419 * Makefile.in (CRT0S): Add CRT_fp10.o.
4420 (MINGW_OBJS): Add CRT_fp8.o.
4421 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
4422 Add CRT_fp8.o, CRT_fp10.o dependancies.
4423 * include/float.h (_fpreset): Expand comment.
4424 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
4425 (extended precison) environmemt.
4426 (FE_PC53_ENV): New define for MSVCRT default environmemt.
4427 (FE_DFL_ENV): Define as FE_PC53_ENV.
4428 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
4429 precision control for default environment.
4431 * include/math.h: Fix long comment line.
4432 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
4434 * profile/configure: Regenerate.
4436 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
4438 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
4440 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
4442 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
4443 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
4444 (__mingw_fseek): New function to work around Win9x f/lseek bug.
4445 (__mingw_fwrite): Likewise.
4446 (__mingw_is_win9x): New helper function.
4448 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
4449 (__mingw_fseek): New prototype and define to replace fseek.
4450 (__mingw_fwrite): New prototype and define to replace fwrite.
4451 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
4452 * moldname-crtdll.def: Remove CR from end of line.
4453 * moldname-msvcrt.def: Ditto.
4455 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
4457 * profile/configure.in (CRT0S): Configure name of gcrt?.o
4458 based on target, building gcrt0.o for cygwin -mno-cygwin.
4459 * profile/configure: Regenerate.
4460 * profile/Makefile.in (CRT0S): Use name from configure.
4461 (gcrt0.o): New rule.
4462 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
4464 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4466 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
4467 _fpecode): Remove prototypes copied from float.h.
4468 (nan, nanf): Move into block protected against RC_INVOKED
4470 * include/stdlib.h (_Exit): Change from static inline to
4472 * mingwex/_Exit.c : New file.
4473 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
4475 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4477 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
4478 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
4479 (configdirs): Likewise.
4480 (LIBGMON_A): Define for cygwin target as well.
4481 * configure: Regenerate.
4482 * profile/configure.in (THREAD_DLL): Remove define.
4483 (LIBM_A): Remove define.
4484 (LIBGMON_A): Define for cygwin target as well.
4485 * profile/configure: Regenerate.
4486 * profile/makefile.in (install): Install to inst_libdir and
4488 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
4489 (OPTFLAGS): New define.
4490 (ALL_CFLAGS): Add $(OPTFLAGS).
4491 (ALL_CXXFLAGS): Same.
4492 (.c.o:): Remove ALL_CXXFLAGS.
4494 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4496 * include/stdint.h: Add missing newline at eof.
4497 * include/stdio.h (snprintf): Add prototype.
4498 (vsnprintf): Add prototype and inline definition.
4499 (snwprintf): Add prototype.
4500 (vsnwprintf): Add prototype and inline definition.
4501 * include/wchar.h (snwprintf): Add prototype.
4502 (vsnwprintf): Add prototype and inline definition.
4503 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
4505 * mingwex/snprintf.c: New file.
4506 * mingwex/snwprintf.c: New file.
4508 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
4510 * configure.in: Add mingwex as SUBDIRS and configdirs.
4511 * configure: Regenerate.
4512 * Makefile.in (MINGW_OBJS): Remove dirent.o.
4513 (SRC_DIST_FILES): Remove dirent.c.
4515 * include/stdlib.h (_Exit): Add static inline
4517 (struct lldiv_t): Define.
4518 (lldiv): Add prototype.
4519 (llabs): Add extern inline function.
4520 (strtoll,strtoull): Add prototypes.
4521 (wcstol, wcstoul, wcstod): Group together.
4522 (strtof, wcstof): Add extern inline definitions.
4523 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
4524 and extern inline definitions.
4525 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
4526 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
4528 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
4529 (wcstof): Add extern inline definition.
4530 * include/math.h (nan, nanf): Add prototypes.
4531 (NAN, INFINITE): Define constants.
4532 (fpclassify, isnan ,signbit): Add macros and supporting float
4533 and double functions.
4534 (isfinite, isinf, isnormal): Add macros.
4535 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
4537 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
4538 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
4539 (copysign, logb, nextafter, scalb): Add prototypes and
4540 inline stubs for underscored versions in msvcrt.dll.
4541 * include/inttypes.h: New file.
4542 * include/fenv.h: New file
4544 Add new mingwex subdir and files.
4545 * mingwex: New directory.
4546 * mingwex/Makefile.in: New file.
4547 * mingwex/configure.in: New file.
4548 * mingwex/configure: Generate.
4549 * mingwex/dirent.c: Moved here from parent dir.
4550 * mingwex/atoll.c: New file.
4551 * mingwex/feclearexcept.c: New file.
4552 * mingwex/fegetenv.c: New file.
4553 * mingwex/fegetexceptflag.c: New file.
4554 * mingwex/fegetround.c: New file.
4555 * mingwex/feholdexcept.c: New file.
4556 * mingwex/feraiseexcept.c: New file.
4557 * mingwex/fesetenv.c: New file.
4558 * mingwex/fesetexceptflag.c: New file.
4559 * mingwex/fesetround.o: New file.
4560 * mingwex/fetestexcept.c: New file.
4561 * mingwex/feupdateenv.c: New file.
4562 * mingwex/fma.S: New file.
4563 * mingwex/fmaf.S: New file.
4564 * mingwex/fmax.c: New file.
4565 * mingwex/fmaxf.c: New file.
4566 * mingwex/fmin.c: New file.
4567 * mingwex/fminf.c: New file.
4568 * mingwex/fp_consts.c: New file.
4569 * mingwex/fpclassify.c: New file.
4570 * mingwex/fucom.c: New file.
4571 * mingwex/fwide.c: New file.
4572 * mingwex/imaxabs.c: New file.
4573 * mingwex/imaxdiv.c: New file.
4574 * mingwex/isnan.c: New file.
4575 * mingwex/isnanf.c: New file.
4576 * mingwex/lltoa.c: New file.
4577 * mingwex/lltow.c: New file.
4578 * mingwex/log2.c: New file.
4579 * mingwex/log2f.c: New file.
4580 * mingwex/math_stubs.c: New file.
4581 * mingwex/mbsinit.c: New file.
4582 * mingwex/rint.c: New file.
4583 * mingwex/round.c: New file.
4584 * mingwex/signbit.c: New file.
4585 * mingwex/sitest.c: New file.
4586 * mingwex/strtof.c: New file.
4587 * mingwex/strtoimax.c: New file.
4588 * mingwex/strtoumax.c: New file.
4589 * mingwex/testwmem.c: New file.
4590 * mingwex/trunc.c: New file.
4591 * mingwex/ulltoa.c: New file.
4592 * mingwex/ulltow.c: New file.
4593 * mingwex/wcstof.c: New file.
4594 * mingwex/wcstoimax.c: New file.
4595 * mingwex/wcstoumax.c: New file.
4596 * mingwex/wmemchr.c: New file.
4597 * mingwex/wmemcmp.c: New file.
4598 * mingwex/wmemcpy.c: New file.
4599 * mingwex/wmemmove.c: New file.
4600 * mingwex/wmemset.c: New file.
4601 * mingwex/wtoll.c: New file.
4603 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4605 * include/mbstring.h: New file.
4606 * include/mbctype.h: New file.
4608 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4610 * include/tchar.h (__TEXT): Make same as define in
4611 w32api/include/winnt.h.
4613 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4615 * include/tchar.h (_tputenv): Add UNICODE mappings.
4616 (_tsearchenv): Likewise.
4617 (_tmakepath): Likewise.
4618 (_tsplitpath): Likewise.
4619 (_tfullpath): Likewise.
4621 2002-04-18 Pascal Obry <obry@gnat.com>
4623 * dirent.c (opendir): Convert given pathname to
4626 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4628 * include/_mingw.h: Increment version.
4629 * Makefile.in: Ditto.
4631 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4633 * moldname-crtdll.def: Remove CR from end of line.
4634 * moldname-msvcrt.def: Ditto.
4635 * Makefile.in: Use bzip2 compression for Cygwin target.
4637 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
4639 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
4640 TLOSS, PLOSS): Move oldname defines back, following
4641 the underscored names.
4643 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
4645 * include/stdio.h (_snwprintf): Correct spelling.
4646 (_vsnwprintf): Likewise.
4647 * include/wchar.h (_snwprintf): Correct spelling.
4648 (_vsnwprintf): Likewise.
4650 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
4652 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
4653 (wpopen): Add if !(__CRTDLL__).
4654 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
4656 (moldname-crtdll.def rule): Likewise.
4657 * moldname-msvcrt.def: Regenerate.
4658 * moldname-crtdll.def: Regenerate.
4659 * include/stdio.h (wpopen):Use prototype, not a define.
4660 (_swnprintf): Add prototype.
4661 (_vswnprintf): Likewise.
4663 * include/wchar.h (_swnprintf): Add prototype.
4664 (_vswnprintf): Likewise.
4667 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
4669 * include/malloc.h (_heapinfo): Correct structure definition.
4670 (_USEDENTRY,_FREEENTRY): Add defines.
4671 Add comment on platform support for _heap* functions.
4672 (_get_sbh_threshold): Add prototype.
4673 (_set_sbh_threshold): Likewise.
4674 (_expand): Likewise.
4676 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4678 * profile/profil.c: Update copyright info.
4679 * profile/profil.h: Likewise.
4680 * profile/gcrt0.c: Likewise.
4682 2002-01-25 Pascal Obry <obry@gnat.com>
4684 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
4686 * profile/gmon.c: Define bzero as memset if mingw32.
4687 (monstartup): Use it.
4689 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4691 * include/tchar.h (_TCHAR): Add missing ;.
4693 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4695 * include/tchar.h (_TCHAR): Add typedefs.
4697 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4699 * include/stdlib.h (_onexit_t): Add typedef.
4700 (_onexit): Add prototype.
4702 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
4704 * msvcrt.def: Revert accidental change.
4705 * include/stdlib.h: Ditto.
4707 2001-12-07 Earnie Boyd <earnie@users.sf.net>
4709 * Makefile.in: Increment VERSION.
4710 * include/_mingw.h: Ditto.
4712 2001-12-05 Earnie Boyd <earnie@users.sf.net>
4714 * include/strings.h: New File.
4716 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
4718 * include/math.h (_FPCLASS* ): Add defines from float.h.
4719 (IEEE recommended functions): Add declarations from float.h.
4720 * include/float.h (_FPCLASS* ): Protect against redefinition.
4722 2001-11-29 Wu Yongwei <adah@netstd.com>
4724 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
4725 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
4726 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
4727 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
4728 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
4729 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
4730 Correct spelling of "disclaimed" in comments.
4731 * include/excpt.h: Another spelling correction.
4733 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
4735 * include/errno.h: Fix "errno is not a prototype" warning.
4737 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
4739 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
4740 differences between ANSI and non-ANSI versions.
4741 (_ctype[],_pctype): Declare vars.
4742 (__ISCTYPE): New helper macro using _pctype.
4743 (is* ctype functions): Use __ISCTYPE to define inline versions.
4744 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
4746 (isw* ctype functions): Inline definitions.
4747 * include/wctype.h (_ctype[],_pctype): Declare vars.
4748 (isw* ctype functions): Inline definitions.
4751 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4753 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
4754 __fpecode): Use __STDC__ prototypes.
4757 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
4759 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
4760 * mthr_init.c (DllMain) Run dtors if a process terminates.
4761 * mthr.c (__mingwthr_add_key_dtor) Removed.
4762 (___mingwthr_add_key_dtor) New.
4763 (___mingwthr_remove_key_dtor) New.
4764 (__mingwthr_run_key_dtors) Complete rewrite.
4765 (__mingwthr_remove_key_dtor) New.
4767 2001-11-05 Egor Duda <deo@logos-m.ru>
4769 * Makefile.in: Delete unused executable after creating base-files.
4771 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4773 * include/errno.h (_errno): Use __STDC__ prototype.
4774 Thanks to: Jim Barton.
4776 2001-11-04 "stefan" <stefan@lkcc.org>
4778 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
4780 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4782 * include/io.h (_commit): Add declaration.
4783 Thanks to: "stefan" <stefan@lkcc.org>
4785 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4787 * include/sys/stat.h: Make S_IS* macros safer.
4789 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4791 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
4793 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
4795 * include/stdlib.h (__p__environ, __p__wenviron): Use
4796 __STDC__ prototypes.
4798 2001-09-19 Earnie Boyd <earnie@SF.net>
4800 * Makefile.in: Remove the /usr from the install target.
4801 (VERSION): Increment.
4802 include/_mingw.h: Ditto.
4804 2001-09-17 Earnie Boyd <earnie@SF.net>
4806 * Makefile.in: Increment version.
4807 * include/_mingw.h: Ditto.
4809 2001-09-10 Earnie Boyd <earnie@SF.net>
4811 * dossh: Remove inadvertantly imported file.
4813 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
4815 * dirent.c (opendir): Use GetFileAttributes rather than stat
4816 to determine if input arg is dir.
4818 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
4820 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
4822 * include/varargs.h (va_list): Ditto.
4823 * include/stdio.h (va_list): Ditto.
4825 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
4827 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
4828 * include/stdio.h (_IORW): Change constant to 0x0080.
4829 (TMP_MAX): Add new define.
4831 (_wP_tmpdir): Ditto.
4832 (L_tmpnam): Change constant to 16.
4834 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
4836 * include/malloc.h: Fix non-ANSI comment after #endif.
4838 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4840 * profile/configure.in: Make msvcrt.dll version default.
4841 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
4842 * provile/configure: Regenerate.
4844 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
4846 * include/stdio.h (swscanf): Make first arugument const.
4847 * include/wchar.h (swscanf): Ditto.
4848 * include/tchar.h (_tfopen): New _UNICODE define.
4850 (_tsetlocale): Ditto.
4852 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
4854 * profile/Makefile.in (mkinstalldirs): Correct relative path.
4856 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
4858 * include/_mingw.h: Change version to 1.0.
4861 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
4863 * include/tchar.h: (__TEXT): Remove undef.
4867 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
4869 * include/tchar.h: (__TEXT): Add private macro.
4870 (_TEXT): Modify definition to use __TEXT.
4872 This change allows the passing of a MACRO as an argument and have that
4873 MACRO resolved first.
4874 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
4876 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
4878 * Makefile.in: Increment version to 0.5
4879 * include/_mingw.h: Increment minor version
4881 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
4883 * include/assert.h: (assert): Remove ; from end of definition
4884 Thanks to: AJ Reins <tbisp@qwest.net>
4886 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
4888 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
4889 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
4891 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
4893 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
4895 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
4897 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
4898 are actually C functions. These functions are resolved via the
4899 -lmsvcp60 library and comments were placed in the header.
4901 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4903 * include/stdlib.h (__p__pgmptr): add prototype.
4904 (__p__wpgmptr): likewise.
4905 (_pgmptr_dll): move declaration from dos.h.
4906 (_wpgmptr_dll): likewise.
4907 (_pgmptr): conditional define (MSVCT/CRTDLL).
4908 (_wpgmptr): likewise.
4909 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
4910 (_os*_dll variables): likewise.
4911 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
4912 (_wpgmptr_dll): likewise.
4914 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4916 * include/stdint.h: New file.
4918 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
4920 * include/wchar.h: Protect prototypes only declared in the C++ STL
4921 from being declared unless __cplusplus is defined.
4923 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
4925 * include/stdlib.h: Apply Danny Smith patch 102730
4926 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4927 (_wgetenv) Correction to return type.
4929 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
4931 * include/locale.h: Apply Danny Smith patch 101834
4932 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4933 (LC_MIN) Add definition.
4935 (_wsetlocale) Add prototype.
4937 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
4939 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
4940 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
4941 Create a libcoldname.a for the oldname library for CRTDLL.
4942 Restrict libmoldname.a for the oldname library for MSVCRT.
4943 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
4944 Restructure the $target_os case logic.
4945 Always name the MinGW thread dll helper mingwm.
4946 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
4947 * configure: regenerate.
4949 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
4951 * Makefile.in: Fix bindist target to distribute the correct files.
4952 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
4953 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
4955 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
4957 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
4958 Add variables and targets to control binary and source distributions.
4959 Add variables and targets to control snapshot distribution.
4960 * profile/gmon.h: Add missing #endif for #ifndef.
4961 * profile/ChangeLog: Merge entries here and remove.
4962 * profile/Makefile.in: Add variables and targets to control
4966 * config.guess: ditto.
4967 * config.sub: ditto.
4968 * mkinstalldirs: ditto.
4969 * install-sh: ditto.
4970 * configure: regenerate.
4971 * profile/configure: ditto.
4973 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
4975 * Merge in changes from
4976 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4977 * include/direct.h: add guard around MSVCRT-only prototytpes
4978 * include/io.h: add __int64 struct definitions and function prototypes;
4979 add guard for MSVCRT-only prototypes
4980 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
4981 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
4982 put wchar functions together to make sync with wchar.h easier
4983 * include/stdlib.h: add wide char functions (__MSVCRT__)
4984 * include/string.h: add string collation functions ( __MSVCRT__)
4985 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
4986 * include/tchar.h: add macros and macro function definitions
4987 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
4988 enclose more functions in __MSVCRT__ guard;
4989 some oldname wide char function prototypes #if (0)'d
4990 * profile/gmon.h: add guard around BSD-ish typedefs
4992 2000-11-20 Christopher Faylor <cgf@cygnus.com>
4994 * Makefile.in: Use a different variable name for subdirectory since the
4995 previous one was used by the top level make.
4997 2000-11-19 Christopher Faylor <cgf@cygnus.com>
4999 * Makefile.in: Install mingw stuff in a subdirectory if building under
5002 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5004 * Makefile.in (subdirs): Eliminate for loop.
5006 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5008 * Makefile.in (subdirs): Previous change did not fix problem in
5011 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5013 * Makefile.in: Avoid installing dll if we're cross building and the
5014 cross-host system isn't a Windows system.
5015 * configure.in: Detect cross-hosting situation and set appropriate
5016 variables in Makefile.in.
5017 * configure: Regenerate.
5019 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5021 * configure.in: Change HEADER_SUBDIR to mingw32.
5022 * configure: Regenerate.
5024 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5026 * include/string.h: Use proper prototype for _strerror.
5028 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5030 * Makefile.in (subdirs): Workaround for broken shells.
5032 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5034 * Snapshot 2000-02-03.
5036 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5037 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5038 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5039 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5042 * Makefile.in (all): Build CRT0S first.
5043 (libmingwthrd.a): Remove thread support DLL from dependency.
5045 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5047 * Snapshot 2000-01-21.
5049 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5051 Merge in changes from Cygwin:
5052 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5053 (SUBDIRS): Likewise.
5054 * Makefile.in (HEADER_SUBDIRS): New variable.
5055 (install): Use to install Mingw headers to a subdirectory if building
5057 (DLL_CC_STUFF): Add DLL entry point.
5058 * configure: Regenerate.
5060 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5062 * include/stdio.h (fsetpos): Fix prototype.
5063 (fpos_t): Fix for MSVCRT.
5064 * include/float.h (fpreset): Add prototype.
5065 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5067 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5068 export using libmoldname.a.
5069 * crtdll.def: Add DATA tags.
5070 * msvcrt.def: Likewise.
5071 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5072 both MSVCRT and CRTDLL.
5073 * moldname-crtdll.def: Regenerate.
5074 * moldname-msvcrt.def: Regenerate.
5076 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5078 * Snapshot 1999-12-21.
5080 * include/wctype.h: New file.
5081 * include/ctype.h (MB_CUR_MAX): Define.
5083 * include/stdlib.h (MB_CUR_MAX): Define.
5084 * include/wchar.h: Define stat, _stat structures here as well.
5085 * include/float.h: Add invalid subconditions (_SW) and floating
5086 point error (_FPE) macros.
5087 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5088 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5089 * include/sys/types.h: Likewise.
5091 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5093 * profile/profil.c (profile_on): Set the profiler thread priority to
5094 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5095 * Snapshot 1999-11-18.
5097 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5099 Released 1999-11-07.
5101 * Makefile.in (CRT0S): Add crtst.o.
5102 (install): Install in subdirs as well.
5103 * dirent.h (struct _stat): Rename from struct stat.
5104 * include/tchar.h: Add some new macros. Thanks to
5105 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5106 * profile/Makefile.in (install): Fix target.
5108 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5110 * Makefile.in: Add support for profile directory.
5111 * configure.in: Likewise.
5112 * configure: Regenerate.
5114 * profile: Imported profiling sources from winsup-19991026 snapshot.
5115 * profile/Makefile.in: New file.
5116 * profile/configure.in: New file.
5117 * profile/configure: Generate.
5118 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5119 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5120 * profile/gmon.c (unistd.h): Include conditionally.
5121 (sys/param.h): Likewise.
5122 * profile/mcount.c (sys/param.h): Likewise.
5123 * profile/profil.c (profile_on): thread id is DWORD, not int.
5126 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5128 * include/stdlib.h: Add wide character version of argv/environ.
5130 * include/wchar.h: More wide character prototypes.
5131 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
5133 * dllcrt1.c (init.c): Don't include.
5134 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
5135 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
5137 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
5139 * moldname.def: Remove file.
5140 * moldname.def.in: And add this.
5141 * moldname-msvcrt.def: Generate from moldname.def.in.
5142 * moldname-crtdll.def: Likewise.
5144 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
5145 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
5146 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
5148 * Makefile.in: Update.
5149 * configure.in: Likewise. Also add *cygwin* target for building
5150 under Cygwin winsup.
5151 * configure: Regenerate.
5153 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
5155 * include/_mingw.h: Add version macros.
5156 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
5157 Also add wide character versions shared with wchar.h.
5158 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
5159 * include/io.h (sopen, _sopen): Fix prototype.
5160 Add wide character prototypes.
5161 * include/wchar.h: Likewise.
5162 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
5163 underscored versions. Potential incompatibility.
5164 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
5165 Add wide character prototypes.
5166 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
5169 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
5171 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
5172 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
5174 * configure: Rengerate.
5175 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
5176 dll name and crt's. CRTDLL and MSVCRT are meant to created
5177 separately, so remove all the *-msvcrt* targets.
5178 (libmingwthr.a): New target. Dummy thread support archive.
5179 (LIBS): Add libmingwthr.a.
5180 (CRT0S): Use CRT_ID. Add crtmt.o.
5181 (MINGW_OBJS): Add crtst.o.
5182 * main.c (WinMain): Fix prototype.
5183 * crtmt.c: New file.
5184 * crtst.c: New file.
5186 * include/process.h (_beginthreadex): Fix prototype.
5187 * include/_mingw.h (__int64): Define for __GNUC__.
5188 * include/tchar.h (_ttol): Add macro.
5189 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
5190 _i64tow, _ui64tow, _wtoi64): Add prototypes.
5192 Reported by Emanuele Aliberti <ea@iol.it>:
5193 * include/tchar.h (_ttoi): Add macro.
5195 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
5196 * include/stdio.h (_snprintf): Add prototype.
5197 (_vsnprintf): Likewise.
5199 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
5201 Reported by Tor Lillqvist <tml@iki.fi>:
5202 * include/stdlib.h (__p___argv): Fix return type.
5204 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5207 * include/errno.h (errno): It's linked in from startup, not imported.
5208 * include/stdlib.h (errno): Likewise.
5209 * include/io.h: Guard against conflicting macros and prototypes in
5211 * include/stdlib.h: Likewise.
5212 * include/string.h: Likewise.
5213 * include/time.h: Likewise.
5215 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5217 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
5218 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
5219 * Makefile.in (INCLUDES): Remove old windows32 include directory.
5221 * crt1.c (_gnu_exception_handler): Fix prototype.
5222 (__mingw_CRTStartup): New function based on mainCRTStartup.
5223 (mainCRTStartup): Set the app type for MSVCRT and call
5225 (WinMainCRTStartup): Likewise.
5226 * init.c (_startupinfo): Define.
5227 (_getmainargs): Add 5th parameter.
5228 (_mingw32_init_mainargs): Use.
5230 * ALL *.c files: Reformat according to GNU coding style.
5232 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
5234 * Makefile.in (INCLUDES): Add w32api include directory.
5236 * include/_mingw.h: New file.
5237 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
5238 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
5239 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
5240 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
5241 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
5242 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
5244 * include/stdlib.h (atexit): Fix prototype.
5246 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
5248 * include/stdio.h (_tempnam): Fix prototype.
5249 (tempnam): Likewise.
5250 * include/stdlib.h: Replace with GCC's version, and guard
5253 From Anders Norlander <anorland@hem2.passagen.se>:
5254 * include/stdlib.h (__argc): Declare.
5257 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
5259 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
5261 * Makefile.in (_libm_dummy.o): New target.
5264 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
5266 * Released 1999-03-16 along with egcs-1.1.2.
5268 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
5270 * Makefile.in (LIBS): Add libm.a.
5271 (libm.a): Dummy libm.a.
5273 * Makefile.in: Update from winsup 1999-02-08 snapshot.
5274 Preserve local changes.
5275 (mkinstalldirs): In ../, not ../../.
5276 (INCLUDES): Point to local windows32api headers and use -nostdinc.
5278 (LIBS): Add libmoldname-msvc.a.
5279 (libmoldname-msvc.a): Add target.
5280 (distclean): Add target.
5282 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5284 * include/dir.h: Reintroduce as an obsolescent header.
5285 * crt1.c (signal.h): Include.
5286 (_gnu_exception_handler): New function to properly handle win32
5287 asynchronous signals.
5288 (mainCRTStartup): Use.
5290 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5292 * include/direct.h: Include io.h instead of dir.h
5293 * include/dirent.h: Likewise.
5294 * include/dos.h: Likewise.
5295 * include/stdio.h: Replace reference to dir.h with io.h.
5297 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5299 * 1999-01-01 release bundled with egcs-1.1.1.
5301 * include/io.h: Incorporate dir.h.
5302 * include/dir.h: Remove.
5303 * include/signal.h: Move RC_INVOKED up a bit.
5305 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5307 * include/signal.h (sig_atomic_t): Define.
5309 * include/malloc.h: Import defs from deprecated alloc.h.
5310 * include/alloc.h: Remove.
5312 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5313 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5314 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5315 _off_t instead of long for st_size.
5317 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5319 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5320 * include/stdlib.h: Here.
5322 * include/netdb.h: Remove.
5323 * include/arpa/inet.h: Remove.
5324 * include/netinet/in.h: Remove.
5325 * include/sys/socket.h: Remove.
5327 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5331 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5332 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5334 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5336 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5337 (jmpbuf): typedef using above.
5338 (setjmp, longjmp): Prototype using jmpbuf.
5340 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5341 obsolescent imported names, ie., from __imp__ to _imp___.
5343 Also ignored empty include/sys/param.h and incorrect
5344 include/sys/times.h.
5346 * CRTinit.c: New file.
5347 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5349 * include/io.h (umask): Fix prototype.
5350 * include/stdlib.h (OS constants): Replace with Colin's.
5351 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5352 * include/sys/state.h: Merge.
5354 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5356 * include/assert.h (assert): Lose the trailing semicolon.
5358 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5360 * include/math.h (matherr): Declare.
5361 * include/stdio.h (fileno, _fileno): Declare.
5362 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5365 * include/stdio.h (fdopen, _fdopen): Add const.
5366 (getw, putw): Declare.
5367 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5369 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5371 * include/time.h (_timezone): Undefine.
5372 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5374 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5376 * include/stdlib.h (environ): Use DLL version.
5377 * init.c (environ): Undefine it before use.
5379 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5381 * Update to 980309 snapshot from Colin Peters.
5383 * include/utime.h: remove
5384 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5385 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5386 patches to define these.
5387 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5388 (_daylight, _timezone, _tzname, _tzset): Define.
5390 * include/netdb.h: Add from Colin's windows32api changes.
5391 * include/sys/socket.h: Likewise.
5392 * include/arpa/inet.h: Likewise.
5393 * include/netinet/in.h: Likewise.
5395 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5397 * Update to 980128 snapshot from Colin Peters.
5399 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5401 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5403 * configure: Regenerate.
5405 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5407 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5408 Files renamed and include hierarchy loses directories named
5411 * include/dos.h: from Jan-Jaap.
5413 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
5415 Changes to conform to FSF tree.
5417 * crt1.c: Renamed from mcrt0.c.
5418 * dllcrt1.c: Renamed from dllcrt0.c.
5419 * Makefile.in: Update above. Also renamed libmoldnames.a to
5422 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
5424 * crtdll.def: Export all functions but the ones with funny names.
5425 * moldnames.def: Add fdopen since fileno is already there.
5426 * include/nonansi/dos.h: New file from Jan-Jaap.
5427 * include/errno.h: Add extern decl + various additions from JJ.
5428 * include/stdio.h: Likewise.
5429 * include/stdlib.h: Likewise.
5430 * include/nonansi/io.h: Likewise.
5431 * include/nonansi/process.h: Likewise.
5432 * include/sys/types.h: Likewise.
5434 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5436 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5438 * include/stdlib.h (free): Fix prototype to return void, not void*.
5439 * include/nonansi/process.h: Add P_* and WAIT_* defs.
5441 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
5442 * mcrt0.c: Likewise.
5444 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
5445 (libmoldnames.a): Add explicit rule to create it.
5447 1997-08-15 Rob Savoye <rob@cygnus.com>
5449 New directory for the minimalist cygwin environment.
5451 * crtglob.c: New file. Turn on file globbing support.
5452 * crt_noglob.c: New file. Turn off file globbing support.
5453 * ctype_old.c: New file. Wrappers for functions that don't
5455 * dirent.c: New file. Directory routines readdir, opendir, closedir.
5456 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
5457 * dllmain.c: New file. A stub DllMain function.
5458 * hugeval.c: New file. A gross hack to define HUGE_VAL.
5459 * init.c: New file. Common code to initialize standard file
5460 handles and command line arguments.
5461 * main.c: New file. A main for programs that only call WinMain.
5462 * mcrt0.c: New file. Default crt0 for mingw32.
5463 * oldnames.c: New File. Wrappers for functions that don't
5465 * string_old.c: New File.
5466 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
5467 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
5468 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
5469 * include/sys/types.h: New header file for mingw.
5470 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
5471 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
5472 utime.h,values.h,varargs.h}: New header files for mingw.
5473 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
5474 timeb.h,unistd.h}: New header files for mingw.
5475 * Makefile.in,configure.in: Build and configure support.
5476 * configure: Generated from autoconf 2.12 with Cygnus patches.