1 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Declare the nanosleep() function where POSIX expects it.
5 * include/time.h (__mingw_sleep): Declare function prototype.
6 (nanosleep): Declare prototype, and provide in-line implementation;
7 this is a reproduction of the original implementation, relocated...
8 * include/unistd.h (nanosleep): ...from here; remove it; hence...
9 (struct timespec): ...this need not be declared here, and there is
10 no need to include <parts/time.h>; remove reference.
12 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
14 Refactor <time.h> vs. <wchar.h> to avoid duplication.
16 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
17 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
18 (struct tm): Delete definition; delegate it, together with each of...
19 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
20 (wcsftime): ...these function prototypes; delete them, but note in
21 comments, that they remain declared, via delegation to...
22 * include/time.h: ...this; include it selectively, subject to...
23 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
24 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
25 [_TIME_H]: Process all definitions and declarations; otherwise...
26 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
27 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
28 (_WTIME_DEFINED): Obsolete macro; delete all references.
30 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
32 Implement support for POSIX "%n$*m$" printf() format control.
34 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
35 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
36 (__pformat_inline__): New macro; define, and use it where appropriate.
37 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
38 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
39 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
40 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
41 (__pformat_argmap_t): ...this new union data type; define it.
42 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
43 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
44 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
45 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
46 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
47 (__pformat_length_modifier, __pformat_check_length_modifier): New
48 locally defined static and/or inline functions; implement, and...
49 (__pformat): ...use them.
51 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
53 Add prototypes for Microsoft's _printf_p() family of functions.
55 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
56 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
57 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
58 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
59 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
60 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
61 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
62 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
63 available for selective inclusion by both <stdio.h> and <wchar.h>...
64 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
66 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
68 Adapt msvcrt-xref to become msvcrt.def.in provider.
70 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
71 filter value assignment; scale it upwards, by a factor of 0x10000.
72 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
73 (%.def) [msvcr*]: Do not preserve comments; define...
74 (__DLLNAME__): ...this preprocessor symbol.
76 * msvcrt.def.in: Content is obsolete; delete file and replace with...
77 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
78 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
79 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
80 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
81 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
83 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
85 Import msvcrt-xref documentation resources.
87 * msvcrt-xref: New directory.
88 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
89 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
90 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
91 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
93 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
95 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
97 * include/wchar.h: Some minor layout adjustments.
98 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
99 within the scope of reading <wchar.h>; undefine it at end of file.
100 (struct tm): Do not define; it is sufficient to keep it opaque.
101 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
102 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
103 directly; delegate to indirect definition by including <stdio.h>.
104 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
105 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
106 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
107 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
108 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
109 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
110 indirectly, by selective inclusion from <stdio.h>; hence include it.
112 * include/stdio.h: Assert copyright; tidy layout.
113 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
114 (_STDIO_H): ...this, but defined conditionally, subject to...
115 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
116 entities which are required by <wchar.h>; do not define...
117 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
118 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
119 are normally specified within <stdio.h>, INCLUDING those specifically
120 itemised above, as selectively required by <wchar.h>.
122 * pseudo-reloc.c: Some minor layout adjustments.
123 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
124 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
125 include <stdint.h> to guarantee it.
127 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
129 Enable selective definition of POSIX system types.
131 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
132 any specific __need_TYPE selector having been set prior to inclusion;
133 DO define it when no such selector is present, and undefine all such
134 selectors as may have been set, after evaluation of their effects.
135 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
136 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
137 accommodates reorganization of the file, to achieve a tidier layout.
138 (__have_typedef_off_t): New repeat definition guard; define it for
139 compilers which may choke on any repeated typedef for either of...
140 (off_t, _off_t): ...these; make them selectively defineable for...
141 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
142 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
143 in either case, redefine them in terms of...
144 (__off32_t): ...this new internal type, for consistency with...
145 (__off64_t): ...this previously defined non-standard type; also make
146 it selectively defineable, either by...
147 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
148 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
149 (__have_typedef___off64_t): New repeat definition guard; define it.
150 (ssize_t, _ssize_t): Also make them selectively defineable, on...
151 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
152 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
153 (__have_typedef_ssize_t): New repeat definition guard; define it.
155 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
157 Avoid user namespace pollution by non-standard type 'off64_t'.
159 * include/sys/types.h (off64_t): Rename it as...
160 (__off64_t): ...this implementation-private alternative name, so
161 eliminating the potential for user namespace pollution.
163 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
164 return type, and type of offset argument, in both prototype and inline
165 implementation; note that this addresses the issue of pollution in the
166 user namespace, while avoiding the issue of MinGW-Bug [#].
168 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
169 instead of 'off64_t', as offset argument type in function prototypes.
170 (ftello64): Likewise, for return type of inline function.
172 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
173 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
174 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
176 * mingwex/stdio/fseeko64.c: Assert copyright.
177 (fseeko64): Use '__off64_t' per modified function prototype.
179 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
181 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
183 * mingwex/ofmtctl.c: New file; it implements...
184 (_mingw_output_format_control): ...this new function; it provides
185 additional MinGW specific printf() format processing options.
187 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
189 * include/stdio.h (_mingw_output_format_control): Declare it.
190 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
191 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
192 manifest constant expressions; define them.
194 * mingwex/stdio/pformat.c: Revise licensing terms.
195 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
196 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
197 modifier; this matches the behaviour specified by ISO-C99, else...
198 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
199 previous MSVC compatible behaviour, treating it as an `L' modifier.
200 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
202 * mingwex/ofmt.c (ARGLIST): Subsume references to...
203 (ARGTYPE): ...this now obsolete macro; delete it throughout.
204 (update_output_format_flag): New inline function; it restricts flag
205 operations to affect only Microsoft's exponent digit bits.
206 [FUNCTION == _set_output_format]: Use it.
207 [FUNCTION == _get_output_format]: Likewise.
209 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
211 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
213 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
214 defined, when implied by any STDC or POSIX version selection, viz. ...
215 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
217 * include/stdlib.h: Assert copyright; tidy layout.
218 (_STDLIB_H_): Multiple inclusion guard macro renamed...
219 (_STDLIB_H): ...to this, preferring no trailing underscore.
220 [!defined __NO_ISOCEXT]: Delete double negative references; use...
221 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
222 (lldiv_t): ...defining this C99 specific aggregate data type, and...
223 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
224 (wcstold, _Exit): ...declaring these C99 function prototypes.
225 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
226 future removal; not in MSVCRT.DLL, these conform to no known standard.
227 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
228 (__strtod): ...this libmingwex.a provided function; it handles string
229 representations of hexadecimal-floats, infinities and NaNs, whereas...
230 (strtod): ...this MSVCRT.DLL implementation does not.
231 (__MSVCRT_VERSION__): Prefer symbolic comparison...
232 [>= __MSVCR80_DLL]: ...for this requirement.
234 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
236 Rationalize definition of struct timespec.
238 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
239 tv_sec field, in place of anonymous union, thus avoiding missing brace
240 warnings when initializing; leave a copy of the previous definition...
241 (struct __mingw32_expanded_timespec): ...named thus.
243 * include/unistd.h (nanosleep): Adjust inline implementation, to match
244 altered specification of tv_sec field in struct timespec.
246 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
247 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
249 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
250 convenience function; defined as inline, with __LIBIMPL__ equivalent,
251 it facilitates interpretation of an instance of struct timespec as if
252 it were defined as struct __mingw32_expanded_timespec.
254 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
256 Make strings.h mostly POSIX.1-2008 compliant.
258 * include/strings.h: Rewritten. Do not include...
259 (string.h): ...this; mandated by POSIX.1, it now defines...
260 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
261 prototypes, possible in-line implementations, and JMPSTUB references
262 to corresponding external implementations, which will now become
263 automatically created within libmingwex.a
265 * include/parts/strings.h: New file; it declares prototypes for...
266 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
267 string.h, but we also require them in strings.h
269 * include/parts/wchar.h: New file; it declares prototypes for all wide
270 character functions which MSVC specifies in both wchar.h and string.h
272 * include/string.h: Miscellaneous layout adjustments.
273 (strcasecmp, strncasecmp): Delete; they belong in strings.h
274 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
275 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
276 include them from parts/wchar.h instead.
278 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
279 prototypes; include them from parts/wchar.h instead, so making this
280 guard macro redundant; delete it.
282 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
283 (wcscmpi.$OBJEXT): Implementations are now automatically generated
284 from header file, for inclusion in libmingwex.a; remove free-standing
285 implementations from the entire family of liboldname libraries, and...
286 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
287 files; they are no longer required.
289 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
291 Incorporate build system updates from w32api package.
293 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
294 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
295 (install-strip, uninstall): New make command goals; implement them.
296 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
297 (devdist, dlldist): ...these have no need to strip explicitly.
298 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
299 (install-mingwrt-headers): ...here.
301 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
303 Adapt platform feature checks to NTDDI_VERSION conventions.
305 * include/_mingw.h: Assert copyright; include w32api.h
306 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
307 to w32api/include/w32api.h, whence they remain in effect.
308 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
310 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
312 Correct mismatched #if/#endif from preceding commit.
314 * include/_mingw.h (#pragma GCC system_header)
315 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
316 correcting for inadvertent removal of matching #endif introduced by
317 preceding 2015-06-19 commit.
319 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
321 Define symbolic names for alternative Microsoft runtime DLLs.
323 * include/msvcrtver.h: New file; it assigns a value for...
324 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
325 (__MSVCR60_DLL): ...this new manifest constant, with each of...
326 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
327 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
328 ...these also defined, as user assignable alternatives.
330 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
331 to establish its default value.
333 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
335 Track dependencies on modified system header files.
337 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
339 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
341 Correct an anomaly in stage 1 only build procedure.
343 * Makefile.in (all-gcc): New goal; it is an alias for...
344 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
345 (all-mingwrt-stage-1-only): ...this; upate all references.
346 (active-goals): Adjusted accordingly; it now reguires...
347 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
348 (install): Adjusted, as directed by...
349 (DEFAULT_MAKECMDGOALS): ...this.
351 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
353 Prefer our hypot() implementation in complex maths operations.
355 * mingwex/complex/cabs_generic.c: New file; it replaces...
356 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
357 * mingwex/complex/cabsl.c: ...these.
359 * mingwex/complex/catan_generic.c: New file; it replaces...
360 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
361 * mingwex/complex/catanl.c: ...these.
363 * mingwex/complex/clog_generic.c: New file; it replaces...
364 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
365 * mingwex/complex/clogl.c: ...these.
367 * mingwex/complex/cpow_generic.c: New file; it replaces...
368 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
369 * mingwex/complex/cpowl.c: ...these.
371 * mingwex/complex/csqrt_generic.c: Do not use...
372 (_hypot): ...this Microsoft form of function reference; use...
373 (hypot): ...this ANSI standard form instead.
375 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
377 Correct C++ compilation anomaly with hypotf() in cmath header.
379 * include/math.h: Add copyright notice; generally tidy layout.
380 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
381 (hypotf): Delete inline implementation; it did not properly handle
382 range errors, and was uncompilable with optimization when any g++
383 option implying __STRICT_ANSI__ conformity was specified.
384 (_MATH_H_): Rename this multiple inclusion guard...
385 (_MATH_H): ...to this.
387 * mingwex/math/hypot_generic.c: New file; it implements...
388 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
389 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
391 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
393 Prepare and tag all files for release of mingwrt-3.21.1.
395 * configure.ac (AC_INIT): Adjust package version argument.
396 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
397 (__MINGW32_VERSION): ...increment this to match.
399 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
401 Refactor to avoid possible time_t conflicts across headers.
403 * include/parts/time.h (struct timespec): Make it more descriptive of,
404 and better able to accommodate, potential ambiguity relating to...
405 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
406 whence they may be identically imported into each of...
407 * include/sys/types.h include/time.h include/wchar.h: these; delete
408 duplicate typedefs, and import accordingly.
410 * include/sys/types.h: Add licence; general comment additions.
411 (_TYPES_H_): Rename multiple inclusion guard macro...
412 (_SYS_TYPES_H): ...to this.
414 * include/time.h: Add licence; general comment/layout adjustments.
415 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
416 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
417 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
418 (_TIME_H_): Rename multiple inclusion guard macro...
419 (_TIME_H): ...to this.
421 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
422 (struct timespec): ...of this.
424 * include/wchar.h: Add licence; general comment/layout adjustments.
425 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
426 [GCC] (system_header): Add pragma, identifying header as such.
427 (_WCHAR_H_): Rename multiple inclusion guard macro...
428 (_WCHAR_H): ...to this.
430 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
432 Remove obsolete varargs.h header file.
434 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
435 a GCC header which is no longer supported, and was always intended for
436 ultimate removal; now is the long overdue time to do so.
438 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
440 Correct improper unistd.h function attribute declarations.
442 * include/unistd.h (_cdecl): Correct usage throughout; should be...
445 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
447 Fix GLOB_DOOFFS initialization bug.
449 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
450 (gl_data->gl_offs): ...this is properly initialized to zero.
452 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
454 Tag all files for release of mingwrt-3.21.
456 * include/_mingw.h: Adjust version accordingly.
458 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
460 Improve usage notes in stdlib.h, for mkstemp() function.
462 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
463 an original comment, explaining the need to use _O_TEMPORARY, from...
464 * mingwex/mkstemp.c: ...here; delete trailing white space.
466 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
468 Eliminate some potential definition inconsistencies.
470 * include/stdio.h: Cosmetic formatting change, relating to...
471 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
472 unconditionally; this allows the compiler to check for consistency
473 with their primary definitions in stdio.h
475 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
477 Suppress expected warning diagnostics in LIBIMPL builds.
479 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
480 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
481 GCC flag to supress warnings relating to deprecated declarations.
483 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
485 Provide more POSIX conforming sleep() functions.
487 * include/sys/types.h (useconds_t): Make it explicitly long; int may
488 be okay, but doesn't guarantee enough bits; mark as deprecated, since
489 POSIX has declared it "obsolete", and no longer specifies it.
491 * mingwex/usleep.c: Delete file; it provided an implementation of...
492 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
493 its error handling was hopelessly broken; replace it with...
494 * mingwex/nsleep.c: ...this new file; it implements...
495 (__mingw_sleep): ...this generic helper function; it supports sleep
496 capability with interval specification to nanosecond precision.
498 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
499 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
500 (sleep, nanosleep): ...these current POSIX functions, and also...
501 (usleep): ...this obsolete one; mark it as deprecated.
503 * include/parts: New directory; it is intended to host partial header
504 implementations, for content which must be shared among arbitrary sets
505 of multiple standard header files.
507 * include/parts/time.h: New file; nominally declaring time.h content.
508 (struct timespec): Declare it; it is currently used within unistd.h,
509 to facilitate the __CRT_INLINE implementation of nanosleep().
511 * Makefile.in (libmingwex.a): Remove reference to...
512 (usleep.$OBJEXT): ...this; replace it with a reference to...
513 (nsleep.$OBJEXT): ...this alternative.
514 (mingwrt-includedirs): Add prerequisite to create...
515 ($includedir/parts): ...this new directory; it is populated by...
516 (install-mingwrt-headers): ...this rule; add requisite command.
518 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
520 Delete an unnecessary Unicode wrapper file.
522 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
523 UTF-16LE API from dirent.c, without any need for this wrapper.
525 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
527 Some further inline function rationalization.
529 * include/io.h (_CRTALIAS): Replace all references...
530 (__CRT_ALIAS): ...using this syntactically preferred form.
531 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
532 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
534 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
535 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
537 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
538 * mingwex/ftruncate.c: Likewise.
540 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
541 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
543 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
545 Some POSIX feature test adjustments.
547 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
548 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
549 (mkdtemp): This didn't become available until SUSv4, so requires...
550 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
552 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
554 Another CRT_INLINE function implementation rationalization.
556 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
557 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
558 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
560 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
561 (libmingwex.a): Delete obsolete dependency on...
562 (imaxabs.$OBJEXT): ...this.
564 * mingwex/imaxabs.c: File is now redundant; delete it.
566 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
568 More rationalization of CRT_INLINE function implementations.
570 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
571 (ftello64): Add __LIBIMPL__ specification for extern implementation.
572 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
574 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
575 * mingwex/stdio/ftell064.c: Likewise.
577 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
578 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
580 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
582 Don't implicitly define _POSIX_C_SOURCE too early.
584 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
585 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
586 that it is not accidentally activated by implied _POSIX_C_SOURCE.
588 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
590 Correct complex arcsin computation per issue [#2245].
592 * mingwex/complex/casin_generic.c: New file; it replaces...
593 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
594 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
596 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
598 Correct complex square root computation per issue [#2246].
600 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
601 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
602 (hypot): ...this libmoldname.a indirection.
604 * mingwex/complex/csqrt_generic.c: New file; it replaces...
605 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
606 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
608 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
610 Adjust header guards to resolve issue [#2244].
612 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
613 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
614 ...when any of these prevail, or as appropriate to correspond with...
615 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
617 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
618 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
619 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
620 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
622 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
624 Add implementation of mkstemp() and mkdtemp() functions.
626 * mingwex/cryptnam.c: New file; it implements...
627 (__mingw_crypto_tmpname): ...this helper function; it generates a
628 cryptographically secure sequence of characters, used as the random
629 component in temporary file and directory names.
631 * mingwex/mkstemp.c: New file; it implements...
632 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
634 * mingwex/mkdtemp.c: New file; it implements...
635 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
637 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
638 function implementation, with LIBIMPL extern semantics, in terms of...
639 (__mingw_mkstemp): ...this; also declare prototype, and define...
640 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
641 (_MKSTEMP_SETMODE): New macro; define it, also providing...
642 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
643 (mkdtemp): Declare prototype; provide inline implementation, with
644 JMPSTUB extern semantics, in terms of...
645 (__mingw_mkdtemp): ...this; declare prototype.
647 * Makefile.in (libmingwex.a): Add dependency rule, to include...
648 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
650 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
652 More JMPSTUB rationalization of inline functions.
654 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
655 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
656 appropriate MSVCRT.DLL equivalent entry point.
658 * mingwex/_Exit.c: File is now redundant; delete it.
659 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
660 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
662 * Makefile.in (jmpstub_awk_script): Add support for...
663 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
664 (libmingwex.a): Remove dependencies on deleted files, namely...
665 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
666 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
668 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
670 Correct omission of complex conjugate functions from libmingwex.a
672 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
673 (creal, crealf, creall): Likewise, for consistency of implementation.
674 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
676 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
677 declarations; they should be interpreted analogously to __CRT_ALIAS.
678 (libmingwex.a): Remove object file references for functions which are
679 now declared as LIBIMPL, and sort the remainder in ASCII collating
680 order; deleted function references comprise the set consisting of...
681 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
682 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
683 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
685 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
686 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
687 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
688 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
689 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
691 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
693 Back-port improved asinh() implementation from 4.0-dev branch.
695 * mingwex/math/asinh_generic.c: New file; it replaces...
696 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
697 ...all of these; delete them.
699 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
701 Enable remake of lost LIBIMPL object files.
703 * Makefile.in (libimpl_remake): New macro; define it, and...
704 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
706 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
708 Implement more robust _get_output_format fallback handling.
710 * mingwex/ofmt.c: New file; it implements...
711 (__mingw_output_format_flag): ...backing store, used by...
712 (__mingw_get_output_format, __mingw_set_output_format): ...these
713 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
714 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
715 version specific Microsoft APIs, which are also supported by some
716 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
717 (__mingw_get_output_format_fallback): Implement; it is aliased to...
718 (__mingw_set_output_format_fallback): ...this; together they provide
719 the emulation support for the preceding pair of functions, when they
720 are not available within the run-time platform MSVCRT.DLL
721 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
722 Implement them; they wrap, and if necessary emulate...
723 (_get_printf_count_output, _set_printf_count_output): ...these.
724 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
725 (__mingw_set_printf_count_output_fallback): ...this; together they are
726 required to support emulation of the preceding pair of functions, when
727 they are not available within the run-time platform MSVCRT.DLL
729 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
730 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
731 (__mingw_get_output_format, __mingw_set_output_format)
732 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
733 Unconditionally declare their prototypes, for subsequent inline use.
734 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
735 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
736 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
737 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
738 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
739 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
740 represent a compilable token.
742 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
743 _get_output_format; consult __mingw_output_format_flag directly.
745 * ofmt_stub.s: No longer required; delete it.
747 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
748 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
749 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
750 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
751 all are compiled from ofmt.c
753 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
755 Do some more essential build tree clean up.
757 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
758 in the way of a successful rebuild from clean.
760 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
762 Implement wrappers for emulation of POSIX dlfcn API.
764 * include/dlfcn.h: New file; it declares the API.
765 * mingwex/dlfcn.c: New file; implement it, with access via...
766 (__mingw_dlfcn): ...this publicly addressable vector table.
768 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
769 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
770 (__LIBIMPL__): ...this automatic interface generator; implement it.
771 (libstub_refnames): New macro; it is adapted from and replaces...
772 (jmpstub_refs): ...this; when it is then invoked twice to build...
773 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
774 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
775 (libimpl_awk_script): New inline script; it handles automated builds
776 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
777 (libimpl_sed_script): New inline script; it prepares intermediate C
778 source code for LIBIMPL interfaces, as required to satisfy these...
779 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
780 (LIBIMPL_CFLAGS): New macro; define it.
782 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
784 Move libgen functions to __mingw_ pseudo-namespace.
786 * mingwex/dirname.c (dirname): Rename function, as implemented...
787 (__mingwex_dirname): ...to this.
789 * mingwex/basename.c (basename): Rename function, as implemented...
790 (__mingwex_basename): ...to this.
792 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
793 prototypes, matching and augmenting original declarations for...
794 (dirname, basename): ...these; reimplement as inline aliases, with
795 __JMPSTUB__ references to the renamed implementation entry points.
797 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
799 Implement new command line argument globbing strategy.
801 * include/_mingw.h: Backport feature defines from master...
802 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
803 constants; define them. They select the preferred globbing algorithm.
804 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
805 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
806 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
807 they enable optional additional features supported by this algorithm.
808 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
810 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
812 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
813 * setargv.c: ...new file; it implements the initialization mechanism
814 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
815 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
816 it invokes the algorithm via an API similar to that described by MSDN,
817 while continuing to support our original _CRT_glob interpretation.
818 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
819 algorithm, via the MSDN-alike API, by calling back to...
821 * crt1.c (_mingw32_init_mainargs): ...this original function, now
822 relocated to here, as a publicly addressable function; formerly...
823 (__mingw_CRTStartup): ...called directly from here, we now redirect
824 the call through _setargv(), whence it may be called indirectly.
826 * init.c: Redundant file; delete it. It originally provided...
827 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
828 original static attribute removed, to allow global addressing.
830 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
832 Backport glob implementation from master to legacy.
834 * include/glob.h: New file; copy it from master branch.
835 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
836 (glob, globfree): ...each of these, respectively.
838 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
839 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
840 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
841 (accept_glob_nocheck_match): New static function; it adds support for
842 avoidance of globbing on patterns with no globbing token, so avoiding
843 the case transliteration effect reported as MinGW-Bug #2106.
844 (glob_match): Use it.
846 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
848 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
850 Implement conventionally named dirent function trampolines.
852 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
853 which redirects a conventionally named function call to its __mingw_
854 pseudo-namespace implementation.
856 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
857 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
858 appropriate protocol for compiling *.sx files, (supported natively by
859 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
861 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
862 yet provide it, so we define it ourselves; deploy it for *.sx files.
863 (Makefile.stub): New sinclude file; create it dynamically, using...
864 (jmpstub_awk_script): ...this new inline script, which is based on...
865 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
866 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
867 (mostlyclean-local): Remove Makefile.stub; do likewise...
868 (Makefile): ...when remaking this, to ensure that both will be
871 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
873 Make dirent implementation namespace and time_t clean.
875 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
876 macros; define them. They facilitate identification of symbols which
877 must be compiled with `extern "C"' binding, when compiling C++ code.
878 (__CRT_ALIAS): New macro; define it. It is intended to replace...
879 (_CRTALIAS): ...this, which is to be considered as deprecated.
880 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
881 __CRT_ALIAS build hints, while remaining transparent to GCC.
882 (UNICODE, _UNICODE) [user defined]: Define consistently.
884 * mingwex/dirent.c: Reimplement; (this is a back-port from the
885 4.0-dev branch, with additional ABI changes to improve stability).
886 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
887 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
888 Add `__mingw_' prefix to all publicly exposed symbol names.
889 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
890 implemented functions; they replace Microsoft's ambiguously defined
891 _findfirst, _findnext, and _findclose, so avoiding ABI instability
892 resulting from the ambiguous size of Microsoft's time_t.
894 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
895 removing unnecessary time_t and file size fields; (our replacements
896 for _findfirst, and _findnext do not require them to be present).
897 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
898 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
899 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
900 Adjust prototypes, making them inline aliases for public symbols which
901 are now qualified by the `__mingw_' prefix; add build hints to support
902 compilation of addressable stubs, with the original symbol names.
903 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
904 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
905 BSD compatibility, but are fundamentally unsupported on MS-Windows).
906 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
907 New macros; define them. (These show availability of optional fields
908 within the dirent struct, which client code may wish to access).
910 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
912 Correct improper naming of assembly language source files.
914 * mingwex/math/*.S: Rename all files with this extension...
915 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
916 not extended `assembler-with-cpp' as implied by the former extension);
917 adjust all internal `.file <name>' references accordingly.
919 * Makefile.in (vpath %.S): Adjust reference to locate files....
920 (vpath %.s): ...now renamed thus.
922 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
924 Streamline the build system infrastructure.
926 * configure.ac: New file; it replaces...
927 * configure.in: ...this; (name is obsolete); delete it.
929 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
930 make invocations, when processing subdirectories, and add automatic
931 dependency tracking for all generated files.
933 * configure: Delete it; as a generated file, it doesn't belong in SCM.
935 * mingwex/Makefile.in: No longer required; delete it.
936 * profile/Makefile.in: Likewise.
938 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
939 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
941 * jamfile: Delete it; it hasn't been updated in ages, is likely no
942 longer relevant, and I have no desire to maintain it.
944 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
946 * include/_mingw.h: Increment version to 3.20.
948 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
950 * tlsmthread.c: Update to reflect changes in tlssup.c.
951 * tlssup.c: code clean-up.
953 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
955 * include/_mingw.h: Increment version to 3.19.
957 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
959 * include/float.h: Modify guard to accomodate CLang.
961 Thanks to Ruben Van Boxem for the report.
963 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
965 * tlssup.c: Remove mingwm10.dll fallback.
967 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
969 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
971 Thanks to bvassche for the report.
973 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
975 Correct checking for short option matches in getopt_long_only().
977 * mingwex/getopt.c (getopt_verify): New static inline function.
978 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
979 possible short option match after failing to match, or ambiguously
980 matching as a long option.
982 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
984 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
986 Thanks to cgf for the report.
988 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
990 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
991 compiles with __STRICT_ANSI__.
993 Thanks to Felipe Contreras for the report.
995 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
997 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1000 Thanks to Tobias Burnus for the report.
1002 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1004 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1005 by wrapping the functions in brackets.
1007 Thanks to Kai Tietz for the report.
1009 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1011 * Makefile.in: Add support for msvcr100.dll.
1012 * msvcrt.def.in: Ditto.
1014 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1016 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1017 not always available, go the long way and use the explicit named union
1018 members, which are also declared in winnt.h.
1020 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1022 * mingwex/isblank.c: Fix typo in declaration.
1024 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1026 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1027 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1028 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1029 is included before <ctype.h>.
1031 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1033 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1035 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1037 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1039 Correct hexadecimal formatting of double and long double values.
1041 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1042 (__pformat) [A format]: Cast double values to long double, and use...
1043 (__pformat_xldouble): ...this instead, with corrected adjustment of
1044 exponent and alignment of mantissa, when formatting subnormals.
1046 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1048 * include/dirent.h (dd_handle): Define as intptr_t.
1050 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1052 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1055 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1057 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1058 semantically identical MAX_PATH; correct value is 260.
1060 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1062 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1063 system include search path; (issue reported by Mark Brand).
1065 * include/float.h: Add multiple inclusion guard around...
1066 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1067 only when this define does not indicate that it has already been seen;
1068 update comments to document rationale; move it within the scope of...
1069 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1070 GCC's float.h, after an appropriate complementary modification, need
1071 not perform a further include path search when this implementation
1072 specific extension has already been processed.
1074 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1076 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1077 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1078 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1079 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1080 _findnexti64): Correct definition.
1082 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1084 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1086 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1088 * include/_mingw.h: Increment version to 3.18.
1090 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1092 * include/stdio.h: (_vscprintf, _vscwprintf)
1093 * include/tchar.h: (_vsctprintf)
1095 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1097 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1098 (initial implementation)
1100 * new type: __time32_t
1102 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1103 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1104 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1106 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1107 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1108 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1109 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1110 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1111 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1112 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1113 _wstat32i64, _wstat64i32,_wutime32
1115 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1116 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1117 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1118 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1119 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1121 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1123 Implement TLS Callback.
1125 * tlsmcrt.c: New file.
1126 * tlsmthread.c: Ditto.
1129 * Makefile.in: Include new files.
1130 * crt1.c: Implement TLS Callback.
1132 * mthr_stub.c: Remove.
1134 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1136 * include/_mingw.h: Increment version to 3.17.
1138 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1140 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1141 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1143 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1145 * include/io.h (_open_osfhandle): Correct definition.
1147 Thanks to Alexander Shaduri for the information.
1149 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1151 Final sync of pseudo-reloc.c with mingw64 and cygwin
1152 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1153 regarding error messages.
1155 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1157 Honor DESTDIR for winsup/mingw and winsup/w32api.
1158 Detect and report error if installation paths are win32
1159 format, but DESTDIR is non-empty.
1161 * Makefile.in (DESTDIR): Honor per convention.
1162 (need-DESTDIR-compatibility): New macro; define it and a
1164 (fail-DESTDIR-compatibility): New dependency goal.
1165 (install-dirs): Require need-DESTDIR-compatibility.
1166 * mingwex/Makefile.in (DESTDIR): Honor per convention.
1167 (need-DESTDIR-compatibility): New macro; define it and a
1169 (fail-DESTDIR-compatibility): New dependency goal.
1170 (install): Require need-DESTDIR-compatibility.
1171 * profile/Makefile.in: Ditto.
1173 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1175 Sync pseudo-reloc.c with mingw64
1176 * psuedo-reloc.c: Remove unnecessary includes.
1177 Forward declare _pei386_runtime_relocator.
1178 Decorate _image_base__ symbol with macro for
1179 mingw64 compatibility. Whitespace changes.
1180 (__print_reloc_error): Renamed to...
1181 (__report_error): This. "Returns" void, and
1182 always aborts. Now used on all platforms.
1183 (__write_memory): Remove special case error handling
1184 for different platforms - always call __report_error.
1185 (do_pseudo_reloc): Remove special case error handling
1186 for different platforms - always call __report_error.
1187 (_pei386_runtime_relocator): Decorate _image_base__
1188 symbol with mingw64 compatibility macro.
1190 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1192 Sync pseudo-reloc.c with cygwin/lib/
1193 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1194 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1195 for fatal error handling that is consistent with cygwin process
1196 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1197 is unique to each address space, across fork().
1198 [CYGWIN] (__print_reloc_error): New function for reporting
1199 errors in a manner supported by cygwin at this early stage of
1200 the process life-cycle.
1201 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1202 performed only once for each address space, but are repeated
1203 after fork() in the new address space.
1204 [MINGW] (__write_memory): Ensure that b is always initialized
1205 by call to VirtualQuery, even if -DNDEBUG.
1207 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1209 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1210 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1212 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1213 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1214 specified format qualifiers, except in special case...
1215 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1216 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1217 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1220 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1222 Avoid multiple link time definitions of _printf() for C++;
1223 (problem reported by Alexander Shaduri, via MinGW-users ML).
1225 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
1226 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
1228 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1230 * include/_mingw.h: Increment version to 3.16.
1232 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
1234 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
1235 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
1236 __fp_unordered_compare): Add prototypes.
1237 * include/stdio.h (vsnwprintf): Add prototype.
1238 * include/wchar.h (vsnwprintf): Add prototype.
1239 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
1240 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
1242 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1244 Correct disposition of wchar_t output in printf().
1246 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
1247 (argval): ...this, in inner scope, with singular type `wchar_t'; use
1248 it to pass one wchar to __pformat_wputchars(), for output.
1250 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1252 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
1254 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1256 Convert to monolithic configuration procedure.
1258 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
1259 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
1260 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
1261 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
1262 (CRT0S): Relocate from `profile'; define it as appropriate.
1263 (LIBM_A): Define and AC_SUBST it unconditionally.
1264 (AC_CONFIG_SUBDIRS): Remove; none to configure.
1265 (AC_OUTPUT_FILES): Add `Makefile' for each of...
1266 (mingwex, profile): ...these subdirectories.
1268 * configure: Regenerated.
1270 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
1271 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
1272 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
1273 (SUBDIRS): Define explicitly, to run recursive `make' in...
1274 (mingwex, profile): ...these; simplify build commands...
1275 (rootme, rootsrc): ...without these shell variables.
1276 (all, subdirs): Delete redundant build commands.
1277 (FIXME): Flag various issues for follow up.
1279 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
1280 (top_srcdir): ...this new macro; let AC_SUBST define it.
1281 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1282 (Makefile): Make it depend on...
1283 (top_builddir/config.status): ...this, itself depending on...
1284 (top_srcdir/configure): ...this.
1285 (FIXME): Flag various issues for follow up.
1287 * mingwex/aclocal.m4: File no longer required; delete it.
1288 * mingwex/configure mingwex/configure.in: Likewise.
1290 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
1291 (top_srcdir): ...this new macro; let AC_SUBST define it.
1292 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1293 (Makefile): Make it depend on...
1294 (top_builddir/config.status): ...this, itself depending on...
1295 (top_srcdir/configure): ...this.
1296 (FIXME): Flag various issues for follow up.
1298 * profile/aclocal.m4: File no longer required; delete it.
1299 * profile/configure profile/configure.in: Likewise.
1301 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1303 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
1304 to complaints that it causes issues.
1306 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
1308 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
1310 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1312 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
1313 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
1314 to all inline functions.
1316 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1318 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
1319 * CRT_fp10.c: Ditto.
1321 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1323 * cpu_features.c: replace gcc-specific construct with portable alternative
1324 and match the code a few lines above.
1325 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
1327 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1329 * include/_mingw.h: Changes required for PCC compiler.
1331 2009-07-18 Jeff Lu <jll544@yahoo.com>
1333 * mingwex/usleep.c: round up to next ms
1335 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1337 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
1338 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
1339 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
1340 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
1342 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1344 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
1346 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
1348 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
1349 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
1350 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
1351 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
1352 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
1353 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
1354 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
1355 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
1356 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
1357 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
1358 sources as of Apr. 20, 2009. Update further to match the sources in
1359 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
1360 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
1361 double/ulong union from U to dbl_union for better grepping and white-
1364 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1366 * include/stdlib.h (_wtof): Define.
1368 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
1370 * include/stdint.h (int_fast8_t): Specify as signed char.
1371 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
1372 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1374 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1376 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1378 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1380 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1381 (Requested by Robert Riebisch)
1383 * mingwex/getopt.c (getopt_parse): Track external increments of...
1384 (optind): ...this global variable.
1386 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1388 * include/_mingw.h: Increment version to 3.15.2.
1390 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1392 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1393 Also add tentative support for BSD specific `optreset' feature.
1395 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1396 (__mingw_optreset): ...this new global variable.
1398 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1399 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1402 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1404 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1405 Correct mishandling of invalid characters in printf() format specs.
1407 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1408 (backtrack): ...this new automatic variable, at start of each format
1409 conversion specification substring; use it to backtrack, and print the
1410 substring literally, if any invalid character is encountered.
1412 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1414 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1415 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1416 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1417 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1418 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1419 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1420 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1421 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1422 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1423 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1424 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1425 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1426 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1427 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1429 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1431 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1433 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1435 Correct some binary distribution packaging defects.
1437 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1438 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1439 intermediate goals; they make packages of files, as specified by...
1440 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1441 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1443 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1445 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1446 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1448 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1449 of radix point conditional on precision != 0 or `#' flag specified.
1451 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1453 Fix MinGW-Bug [2160227]
1454 Eliminate conflicting declarations and implementations of scalb().
1456 * moldname.def.in (scalb): Comment out of EXPORTS list.
1457 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1458 with GCC's built-in declaration.
1460 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1462 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1464 * mingwex/Makefile.in: Ditto.
1465 * profile/Makefile.in: Ditto.
1466 * configure.in: Record mingw front-end for building under Cygwin.
1467 * mingwex/configure.in: Ditto.
1468 * profile/configure.in: Ditto.
1469 * configure: Regenerate.
1470 * mingwex/configure: Ditto.
1471 * profile/configure: Ditto.
1473 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1475 Use de-facto standard Makefile goals to invoke test suite.
1477 * Makefile.in: Some minor formatting adjustments.
1478 (test_headers): Unconventionally named goal renamed to...
1479 (check-headers): ...this; make it a prerequisite of...
1480 (check): ...this new conventionally named goal.
1482 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1484 Make strtod() inline definition C89 compliant.
1485 (Issue reported by Ilya Shestopalov and Ian Puleston)
1486 (Correction identified by Danny Smith)
1488 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1489 reformat inline function definition.
1491 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1493 * include/_mingw.h: Increment version to 3.15.1 and introduce
1494 __MINGW32_PATCHLEVEL variable.
1496 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1498 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1499 (Reported by Christian Franke)
1501 * mingwex/getopt.c (optind): Make global variable value conform to
1502 behaviour specified by POSIX; do not use it for internal state in...
1503 (getopt_parse): ...this static function; use...
1504 (optbase): ...this new static local variable instead.
1505 (getopt_resolved): Update `optind' as required.
1507 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1509 Improve package identification in configure script.
1511 * configure.ac (AC_INIT): Redefine parameters...
1512 (PACKAGE_NAME): Set to `MinGW Runtime'.
1513 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
1514 (PACKAGE_TARNAME): Set to `mingwrt'.
1515 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
1516 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
1517 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
1519 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
1520 (PACKAGE_TARNAME): ...this.
1522 * configure: Regenerated.
1524 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1526 Fix MinGW-Bug [2125708].
1527 (Reported by Alexandr Zamaraev).
1529 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
1530 not wanted here; remove it; replace it by...
1531 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
1532 (_invalid_parameter_handler): ...this function typedef.
1534 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
1536 * Makefile.in: Don't include host_os as part of snapshot filename.
1538 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1540 Fix MinGW-Bug [2119504].
1541 (Reported by Peiyuan Song).
1543 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
1544 (*retindex): ...this already correctly assigned return variable...
1545 (opt[index].val): ...with this; this should have been assigned to...
1546 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
1548 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1550 Fix MinGW-Bug [2117379].
1551 (Reported by Peiyuan Song).
1553 * include/stdio.h (__argv): Replace all references in function
1554 prototype argument lists and inline function local variables, with ...
1555 (__local_argv): ...this, to avoid potential conflict with ...
1556 * include/stdlib (__argv): ...this #defined macro.
1558 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1560 * include/_mingw.h: Increment version to 3.15.
1562 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1564 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
1565 naming standard for Cygwin.
1567 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1569 Reimplement getopt.c to add getopt_long_only() function.
1571 (N.B. this reimplementation removes support for BSD/Mac-OS-X
1572 `optreset' nonsense; user code should set `optind = 0' instead,
1573 to reinitialise option scanning).
1575 * mingwex/getopt.c: Delete all content; reimplement it.
1576 * include/getopt.h: Likewise.
1578 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
1579 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
1581 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1583 Implement conditional replacement for printf() family functions.
1585 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
1586 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
1587 flag for use in user specified __MINGW_FEATURES__ attribute.
1588 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
1589 currently unused: reserved as components of...
1590 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
1591 a __MINGW_FEATURES__ enhancement to setlocale().
1593 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
1594 (__mingw_fprintf, __mingw_vfprintf): Likewise.
1595 (__mingw_sprintf, __mingw_vsprintf): Likewise.
1596 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
1597 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
1598 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
1599 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
1600 usage; link to DLL import stub, importing from MSVCRT.
1601 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1602 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1603 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
1604 locally defined static stub implementation.
1605 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1606 __mingw_fprintf and __mingw_sprintf respectively.
1607 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
1608 static inline implementation for C++ and GNU C, or locally defined
1609 static stub otherwise.
1610 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1611 __mingw_vfprintf and __mingw_vsprintf respectively.
1613 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1615 Avoid access violations, passing NULL to printf( "...%s..." );
1616 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
1618 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
1619 for argument value, if caller passes a NULL pointer.
1620 (__pformat_wcputs): Likewise, substitute L"(null)".
1622 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1624 Add missing dependencies for building libmingwex.a.
1626 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
1627 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
1628 (pformat.h): ...this.
1630 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1632 Add replacements for remaining members of printf() family.
1634 * mingwex/stdio/printf.c: New file.
1635 * mingwex/stdio/fprintf.c: New file.
1636 * mingwex/stdio/sprintf.c: New file.
1637 * mingwex/stdio/vprintf.c: New file.
1638 * mingwex/stdio/vfprintf.c: New file.
1639 * mingwex/stdio/vsprintf.c: New file.
1641 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1642 (STDIO_OBJS): Add their corresponding object files.
1644 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1646 Replace __mingw_snprintf() with new generic family implementation;
1647 likewise, replace __mingw_vsnprintf().
1649 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
1650 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
1651 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1652 (GDTOA_DISTFILES): Remove mingw_snprintf.c
1653 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
1654 (GDTOA_OBJS): Remove mingw_snprintf.o
1655 (PFORMAT_CFLAGS): New macro; define it, as required by...
1656 (pformat.o): ...this new explicit build target.
1657 (snprintf.o, vsnprintf.o): Declare prerequisites.
1659 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
1661 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1663 Lay foundations for new printf() function family implementation.
1665 * ofmt_stub.s: New file; implement forward compatibility stub for...
1666 (_get_output_format): ...this MSVCR80.DLL and later function.
1668 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
1669 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
1670 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
1671 (lib%.a): Include ofmt_stub.o when import library does not already
1672 advertise availability of the _get_output_format() function;
1673 Add alias stubs for MINGW_REPL_FUNCS, such that...
1674 (__msvcrt_printf): ...is an alias for Microsoft's printf().
1675 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
1676 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
1677 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
1678 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
1679 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
1680 (clean): Add msvcr*.def.
1682 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
1683 * configure: Regenerated.
1685 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1687 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
1688 (_imp____mb_cur_max_dll): Likewise.
1690 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
1692 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
1693 * include/wchar.h (swprintf, vswprintf): Likewise.
1695 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1697 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
1698 (_get_output_format, _set_output_format): Add references.
1700 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
1701 (_get_output_format, _set_output_format): Declare prototypes.
1702 (_TWO_DIGIT_EXPONENT): Define.
1703 Some other minor formatting adjustments.
1705 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1707 [mingw-Bugs-1801641]
1708 * include/wchar.h (_wfdopen): Const-ify second arg.
1709 * include/stdio.h (_wfdopen): Likewise.
1710 Thanks to <tdragon at users dot sourceforge net>
1712 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1714 Avoid precision errors in round(), lround() and llround() functions.
1716 * mingwex/math/round_generic.c: New file; it replaces...
1717 * mingwex/math/round.c: ...this; delete it.
1718 * mingwex/math/roundf.c: ...and this; ditto.
1719 * mingwex/math/roundl.c: ...and this; ditto.
1721 * mingwex/math/lround_generic.c: New file; it replaces...
1722 * mingwex/math/lround.c: ...this; delete it.
1723 * mingwex/math/lroundf.c: ...and this; ditto.
1724 * mingwex/math/lroundl.c: ...and this; ditto.
1725 * mingwex/math/llround.c: ...and this; ditto.
1726 * mingwex/math/llroundf.c: ...and this; ditto.
1727 * mingwex/math/llroundl.c: ...and this; ditto.
1729 * mingwex/math/round_internal.h: New file; it provides generic common
1730 code, which is shared by `round_generic.c' and `lround_generic.c'; the
1731 implementation is based on techniques suggested by Danny Smith and
1734 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
1735 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
1736 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
1737 `round_generic.c' and `lround_generic.c'.
1738 (MATH_OBJS): Factor out files listed in...
1739 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
1740 macros; define them; specify dependencies and build rules; add to...
1741 (LIB_OBJS): ...this list.
1743 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
1745 [ mingw-Bugs-1961893 ]
1746 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
1747 mode to 2 for E format.
1749 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
1751 * include/stdlib.h: Fix strtod under C++.
1753 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
1755 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
1756 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
1758 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
1760 * include/sys/types.h (useconds_t): typedef.
1761 * include/unistd.h (usleep): Add prototype.
1762 * mingwex/usleep.c: New file.
1763 * mingwex/makefile.in: Add usleep source and object.
1765 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
1767 Make strtod() conform to C99.
1769 * include/stdlib.h (strtod): Declare this mingwex function, and...
1770 (_strtod): rename this MSVCRT counterpart.
1772 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
1774 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
1776 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
1778 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1780 * include/process.h: Include stdint.h for intptr_t definition.
1781 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
1782 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
1783 _spawnvpe): Return intptr_t.
1784 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
1785 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
1787 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
1789 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
1790 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
1791 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
1792 _wspawnvp, _wspawnvpe): Return intptr_t.
1794 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1796 * include/wchar.h (fwide): Return success code rather than failure in inline
1798 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
1799 code rather than failure.
1801 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
1803 * include/math.h (float_t, double_t): Define.
1805 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
1807 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
1808 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
1809 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
1811 2008-02-28 Joseph Myers <joseph@codesourcery.com>
1813 * include/complex.h: Don't condition contents on C99 or not
1816 2008-02-01 Brian Dessent <brian@dessent.net>
1818 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
1819 the different runtime versions.
1821 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
1823 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
1824 (mbsinit): Likewise.
1826 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1828 * include/_mingw.h: Increment version to 3.14.
1830 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1832 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
1833 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
1834 * mingwex/math/log10f.S: Correct issue with comments.
1835 * mingwex/math/log10l.S: Ditto.
1836 * mingwex/math/log1p.S: Ditto.
1837 * mingwex/math/log1pf.S: Ditto.
1838 * mingwex/math/log1pl.S: Ditto.
1839 * mingwex/math/log2.S: Ditto.
1840 * mingwex/math/log2f.S: Ditto.
1841 * mingwex/math/log2l.S: Ditto.
1842 * mingwex/math/logf.S: Ditto.
1843 * mingwex/math/logl.S: Ditto.
1845 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
1847 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
1849 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
1851 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
1852 from '_fsize_t' to '__int64' to be consistent with the other ...64
1853 structures and the value set there is 8 bytes not 4. Add guard for both
1854 as the are only used by functions available from 6.1 on.
1856 * include/malloc.h (_HEAP_MAXREQ): Define.
1857 (_aligned_offset_recalloc): Define.
1858 (_aligned_recalloc()): Define.
1860 * include/math.h: fixed a typo in a comment.
1861 (atanhf): Fixed declaration.
1863 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
1864 to '__int64' to be consistent with the other ...64 structures and the value
1865 set there is 8 bytes not 4. Added guard as this function is only used by
1866 functions available from 6.1 on.
1868 * include/sys/stat.h: some members of 'stat' were declared with types with
1869 a prefixed underscore, while the ones without the underscore should have
1870 been used. Added guard to '__stat64' as it is only used by functions
1871 available from 6.1 on. Added the wide character versions of the
1872 exec()/spawn() family for completion
1873 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
1876 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
1877 from 'long' to 'time_t'
1878 (__timeb64): moved declaration of structure directly before the declaration
1879 of the function '_ftime64()', so it is guarded as well
1881 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
1882 before the declaration of the functions using it, so it is guarded as well
1884 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
1886 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
1887 case. Add missing break in 's'/LEN_S case.
1889 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1891 Make snprintf() and vsnprintf() conform to C99.
1893 * include/stdio.h: Add note about incompatibility between...
1894 (snprintf, vsnprintf): These two mingwex functions, and...
1895 (_snprintf, _vsnprintf): these MSVCRT counterparts.
1897 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
1898 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
1900 * mingwex/stdio/snprintf.c: Delete.
1901 * mingwex/stdio/vsnprintf.c: Delete.
1903 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
1904 (vsnprintf): Alias to __mingw_vsnprintf.
1906 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1908 * include/_mingw.h: Increment version to 3.13.
1909 * Makefile.in: Reset CYGRELEASE to 1
1911 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1913 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
1914 resulting from incomplete removal of enclosing `for ...; do ...; done'
1915 loop from compound command; (reported by Greg Chicares).
1917 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
1919 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
1922 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
1924 [mingw-Bugs-1734142]
1925 * include/wchar.h (_wsystem) Declare.
1927 (_wgetenv): Declare.
1928 (_wsearchenv): Declare.
1929 (_wmakepath): Declare.
1930 (_wsplitpath): Declare.
1931 (_wfullpath): Declare.
1932 * include/stdlib.h (_wsystem) Declare.
1933 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
1934 _wfullpath): Move into _WSTDLIB_DEFINED guard.
1935 * include/tchar.h (_tsystem): New UNICODE mapping define.
1937 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
1939 * mingwex/gdtoa/mingw_snprintf.c: New file.
1940 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
1941 (GDTOA_OBJS): Add mingw_snprintf.o.
1943 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
1945 * msvcrt.def.in: Update comment.
1946 Exclude _ctype stub if using msvcr71.dll or newer.
1947 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
1948 * include/wctype.h: Likewise.
1950 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1952 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
1953 *include/dirent.h: Likewise.
1955 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1957 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
1958 * include/conio.h: Likewise.
1959 * include/ctype.h: Likewise.
1960 * include/direct.h: Likewise.
1961 * include/dos.h: Likewise.
1962 * include/errno.h: Likewise.
1963 * include/fenv.h: Likewise.
1964 * include/float.h: Likewise.
1965 * include/inttypes.h: Likewise.
1966 * include/io.h: Likewise.
1967 * include/libgen.h: Likewise.
1968 * include/locale.h: Likewise.
1969 * include/malloc.h: Likewise.
1970 * include/mbctype.h: Likewise.
1971 * include/mbstring.h: Likewise.
1972 * include/process.h: Likewise.
1973 * include/search.h: Likewise.
1974 * include/setjmp.h: Likewise.
1975 * include/signal.h: Likewise.
1976 * include/stdio.h: Likewise.
1977 * include/stdlib.h: Likewise.
1978 * include/string.h: Likewise.
1979 * include/time.h: Likewise.
1980 * include/wchar.h: Likewise.
1981 * include/sys/stat.h: Likewise.
1982 * include/sys/time.h: Likewise.
1983 * include/sys/timeb.h: Likewise.
1984 * include/sys/utime.h: Likewise.
1986 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1988 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
1990 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1992 Add POSIX binary tree search API.
1994 * mingwex/tfind.c: New file.
1995 * mingwex/tdelete.c: New file.
1996 * mingwex/tsearch.c: New file.
1997 * mingwex/twalk.c: New file.
1998 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
1999 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2000 * include/search.h (tfind): Declare.
2007 (node_t): Define, on condition of _SEARCH_PRIVATE.
2009 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2011 * include/_mingw.h (__MINGW_NOTHROW): Define.
2013 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2015 * include/stdio.h (vsnprintf): Remove inline definition.
2018 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2020 * CRTfmode.c: Nit-pick comment fix.
2022 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2024 * CRTfmode.c: Fix nested comment.
2026 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2028 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2030 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2032 * include/io.h (lseek64) : Add prototype.
2034 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2036 * include/string.h (strcasecmp): Add prototype.
2037 (strncasecmp): Add prototype.
2039 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2041 * Makefile.in (CRT0S): Revert last change.
2042 * CRTfmode.c. Correct comment.
2044 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2046 * Makefile.in (CRT0S): Add back CRTfmode.o.
2048 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2050 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2051 * include/io.h: Likewise.
2053 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2055 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2057 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2059 * include/stdint.h (intptr_t): Fix typo.
2060 Thanks to Charles Wilson for report.
2062 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2064 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2065 Condition on _WIN64.
2066 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2067 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2068 (PTRDIFF_MIN): Define as INTPTR_MIN.
2069 (PTRDIFF_MAX): Define as INTPTR_MAX.
2070 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2071 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2073 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2075 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2076 Cygwin man page location.
2078 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2080 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2081 support Cygwin man page location.
2083 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2085 * Include/_mingw.h: Increment version to 3.12.
2087 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2089 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2091 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2093 * Makefile.in: Tweak srcdist to fix build issue.
2095 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2097 Add --enable-mingw-manpage-transform configure option.
2099 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2100 * configure.in, Makefile.in: Use it.
2101 * configure: Regenerated.
2103 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2105 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2107 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2109 Add manpages for dirname and basename functions.
2111 * man: New directory.
2112 * man/dirname.man: New file; it sources both manpages.
2113 * Makefile.in: Add provisional rules to distribute them.
2115 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2117 * mingwex/basename.c: Make it work with path names containing
2118 multibyte character strings.
2119 * mingwex/dirname.c: Likewise.
2121 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2123 * include/io.h (__mingw_access): New static inline wrapper to restore
2124 pre-Vista 'access (fname, X_OK)' behaviour.
2125 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2127 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2129 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2131 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2133 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2135 * include/stdio.h (_unlink, unlink): Add prototypes.
2137 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2139 * include/excpt.h: Replace "_try1" in comments with "__try1".
2141 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2143 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2144 (ALL_CXXFLAGS): Likewise.
2145 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2146 (ALL_CXXFLAGS): Likewise.
2147 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2148 (ALL_CXXFLAGS): Likewise.
2150 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2152 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2154 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2156 Expose some more msvcr80.dll functions.
2157 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2158 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2159 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2160 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2162 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2164 Expose some msvcr80.dll functions.
2165 * include/stdlib.h (_set_abort_behavior): Add prototype.
2166 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2167 _set_abort_behavior mask argument.
2168 (_invalid_parameter_handler): Add typedef.
2169 (_set_invalid_parameter_handler): Add prototype.
2170 * include/stdio.h (_get_printf_count_output): Add prototype.
2171 (_set_printf_count_output): Add prototype.
2172 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2173 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2175 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2177 * include/_mingw.h (CRT_INLINE): Correct typo.
2179 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2181 * include/io.h (X_OK): Define to F_OK.
2183 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2185 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2186 unconditionally. Change comment.
2187 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2189 * include/io.h (rename): Declare.
2192 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2194 * include/libgen.h: New file; required by...
2195 * mingwex/basename.c, mingwex/dirname.c: New files.
2196 * mingwex/Makefile.in (DISTFILES): Add them...
2197 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2198 (Dependencies): Typo; s/Dependancies/Dependencies/
2200 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2202 * Makefile.in (VERSION): Let configure define it.
2204 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2205 * configure.in: Use it.
2206 Correct quoting of autoconf macro arguments throughout.
2207 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2208 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2209 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2210 (AC_CONFIG_FILES): Add, to generate Makefile.
2212 * configure: Regenerated.
2214 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2216 * Makefile.in: Add aclocal.m4 to source release.
2217 * mingwex/Makefile.in: Ditto.
2218 * profile/Makefile.in: Ditto.
2220 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2222 * Include/_mingw.h: Increment version to 3.11.
2223 * Makefile.in: Ditto.
2225 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
2227 [ mingw-Bugs-1590623 ]
2228 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
2231 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
2233 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
2234 correctly parenthesized.
2236 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2238 * mingwex/mb_wc_common.h (get_codepage): Get it
2241 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2243 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
2245 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
2247 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
2250 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
2252 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
2255 2006-09-11 Christopher Faylor <cgf@timesys.com>
2257 * Makefile.in: Semi-revert 2006-08-30 change.
2259 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2261 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
2262 (__MINGW_IMPORT): Ansify.
2263 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
2264 __MINGW_ATTRIB_DEPRECATED.
2266 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2268 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
2269 Redundant macros; deleted.
2271 * configure.in (LIB_AC_PROG_CC): Replaced by...
2272 (AC_PROG_CC): ...this.
2274 * configure: Regenerated.
2276 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
2278 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
2279 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
2280 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
2282 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
2284 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
2285 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
2286 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
2287 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
2289 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
2290 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
2291 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
2292 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
2293 * mingwex/wcstold.c: Avoid using strtold internals.
2294 * mingwex/wcstof.c: Rewrite.
2295 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
2296 (GDTOA_OBJS): Add to library.
2297 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
2298 (STDLIB_OBJS): Remove.
2299 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
2300 (Q8_OBJS): Add wcstof.o wcstold.o.
2301 * include/stdlib.h (strtof): Remove inline definition.
2303 * include/wchar.h (wcstof): Remove inline definition.
2305 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
2307 * Makefile.in: Add with_cross_host to allow more granular checks.
2308 Set installation directories accordingly. Override CC setting only
2309 if building a Cygwin target.
2310 * aclocal.m4: Regenerate.
2311 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
2312 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
2313 Test AC_ALLOCA only if building on a native system.
2314 * configure: Regenerate.
2316 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2318 * include/ctype.h: Fix typo.
2320 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2322 * include/ctype.h: Expose iswblank if __cplusplus.
2323 * include/wctype.h: Expose iswblank if __cplusplus.
2325 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2327 * include/ctype.h: Remove stray ')';
2329 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2331 * include/ctype.h (_BLANK): Expand comment.
2332 (isblank): Add prototype and inline definition.
2333 (iswblank): Add prototype and inline definition.
2334 * include/wctype.h (iswblank): Add prototype and inline definition.
2335 * mingwex/isblank.c: New file.
2336 * mingwex/iswblank.c: New file.
2337 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2339 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
2341 * include/math.h (__INFF,__INFL): Remove '#'.
2343 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2345 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2347 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
2349 Support SSE float environment in fenv.h functions.
2350 * cpu_features.c: New file.
2351 * cpu_features.h: New file.
2352 * crt1.c: Include "cpu_features.h".
2353 (__mingw_CRTStartup): Call cpu_features_init().
2354 * Makefile.in (MING_OBJS): Add cpu_features.c.
2355 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
2356 * include/fenv,h ( fenv_t;): Append __mxcsr field.
2357 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
2358 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
2359 (__MXCSR_ROUND_FLAG_SHIFT): New define.
2360 * mingwex/feclearexcept.c: Include "cpu_features.h".
2361 Handle SSE environment.
2362 * mingwex/fegetenv.c: Likewise.
2363 * mingwex/feholdexcept.c: Likewise.
2364 * mingwex/fesetenv.c: Likewise.
2365 * mingwex/fesetexceptflag.c: Likewise.
2366 * mingwex/fesetround.c: Likewise.
2367 * mingwex/fetestexcept.c: Likewise.
2368 * mingwex/feupdateenv.c: Likewise.
2369 * mingwex/fegetround.c: Add comment.
2371 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2373 * Include/_mingw.h: Increment version to 3.10.
2374 * Makefile.in: Ditto.
2376 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2378 * mingwex/math/tgamma.c (SQTPI): Add braces.
2380 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2382 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2383 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2385 * mingwex/math/sf_erf.c (erff): Initialize z.
2387 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2389 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2391 * Include/_mingw.h: Increment version to 3.10.
2392 * Makefile.in: Ditto.
2394 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2396 * include/sys/time.h (struct timezone): Define.
2397 * include/time.h: Correct comment about timezone.
2399 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2401 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2402 * configure: Regenerate.
2404 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2406 * configure: add srcdir as a possible location for install-sh.
2408 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2410 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2411 (_topendir): Use it.
2413 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2415 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2417 (gettimeofday): Add prototype.
2418 * mingwex/gettimeofday.c: New file.
2419 * mingwex/makefile.in: Add gettimeofday source and object.
2421 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2423 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2424 else global library variable.
2425 (HUGEVALF): Likewise.
2426 (HUGEVALL): Likewise.
2427 (INFINITY): Likewise.
2430 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2432 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2434 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2436 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2438 2006-05-24 Christopher Faylor <cgf@timesys.com>
2440 * configure.in: Update to newer autoconf.
2441 (thanks to Steve Ellcey)
2442 * mingwex/configure.in: Ditto.
2443 * profile/configure.in: Ditto.
2444 * configure: Regenerate.
2445 * mingwex/configure: Ditto.
2446 * profile/configure: Ditto.
2447 * aclocal.m4: New file.
2448 * mingwex/aclocal.m4: Ditto.
2449 * profile/aclocal.m4: Ditto.
2451 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2453 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2454 Use supplied codepage as arg to WideCharToMultiByte.
2456 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2458 * Makefile.in (libmsvcr80.a): Add import lib.
2459 (libmsvcr80d.a): Ditto.
2461 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2463 * Makefile.in: Bump cygwin build number.
2465 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2467 * Include/_mingw.h: Increment version to 3.9.
2468 * Makefile.in: Ditto.
2470 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2472 * include/limits.h (SSIZE_MAX): Define.
2473 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2475 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2477 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2478 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2480 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2482 * include/stddef.h: Remove.
2483 * include/stdarg.h: Remove.
2485 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2487 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2488 of result is positive when real part of arg == 0;
2489 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2490 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2492 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2494 * include/time.h (_time64): Correct prototype.
2496 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2498 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2499 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2500 to non-stop. Use "fnclex" to clear exception flags.
2502 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
2504 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
2505 Avoid raising FP exceptions.
2507 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2509 * include/stdlib.h (strtof): Add prototype. Uglify
2510 parameter names in inline definition.
2512 (_Exit): Uglify parameter names in inline definition.
2513 (llabs): Add prototype.
2514 (_set_error_mode): Add prototype and input defines.
2516 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2518 * mingwex/fe*.c: Revert previous changes.
2519 * include/fenv.h: Revert previous changes.
2521 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2523 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
2524 Do not return a value.
2525 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
2526 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
2527 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
2528 * mingwex/fegetenv.c (fegetenv): Likewise.
2529 * mingwex/fesetenv.c (fesetenv): Likewise.
2530 * mingwex/feupdateenv.c (feupdateenv): Likewise.
2531 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
2532 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
2535 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2537 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
2538 getting filelength for SEEK_END.
2540 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2542 * Include/_mingw.h: Increment version to 3.8.
2543 * Makefile.in: Ditto.
2545 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2547 * include/wctype.h (towupper, towlower): Change arg and return value
2549 * include/ctype.h (towupper, towlower): Likewise.
2551 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2553 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
2554 a diagnostic, guarded by #ifdef DEBUG.
2555 (__mingwthr_remove_key_dtor): Likewise.
2557 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2559 * moldname.def.in (sleep, beep, seterrormode): Remove.
2561 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2563 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
2564 (_MCOUNT_DECL): Use it.
2565 (MCOUNT): Save and restore eax, ecx, edx registers.
2566 * profile/mcount.c (_mcount): ANSI-fy.
2568 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2570 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
2571 guard __MINGW_ATTRIB macro definitions.
2572 * include/math.h (logb[fl]): Don't define inlines for
2573 GCC-4.0+ && __FAST_MATH__.
2574 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
2575 line-continuation backslashes.
2577 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
2579 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
2580 in GNUC version guard.
2582 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
2584 * crt1.c (_gnu_exception_handler): Handle illegal instruction
2585 OS exception as a signal if user has defined a SIGILL handler.
2587 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
2589 * mingwex/math/nexttoward.c: New file.
2590 * mingwex/math/nexttowardf.c: New file.
2591 * mingwex/math/nextafterl.c: Add nexttowardl alias.
2592 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
2594 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
2595 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
2598 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
2600 * mingwex/math/nextafterf.c (nextafterf): Correct
2602 * mingwex/math/nextafterl.c: New file.
2603 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
2604 (MATH_OBJS): Add nextafterl.o.
2605 * include/math.h (nextafterl): Uncomment prototype.
2607 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2609 * mingwex/math/erfl.c: New file.
2610 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
2611 (MATH_OBJS): Add erfl.o.
2612 * include/math.h (erfl, erfcl): Uncomment prototypes.
2614 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
2616 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
2617 #if (WCHAR_MAX <= WCHAR_MIN) is false.
2618 * include/stdint.h (WCHAR_MAX): Likwise.
2619 (WINT_MAX): Likewise.
2621 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
2623 * mingwex/math/signbit.c (__signbit): Make return value
2624 consistent with GCC's __builtin_signbit.
2625 * mingwex/math/signbitf.c (__signbitf): Likewise.
2626 * mingwex/math/signbitf.c (__signbitl): Likewise.
2627 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
2630 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
2632 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
2634 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
2635 Remove unused MBTOWC_FLAGS define.
2637 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
2639 * mingwex/mbrtowc.c: New file.
2640 * mingwex/wcrtomb.c: New file.
2641 * mingwex/btowc.c: New file.
2642 * mingwex/wctob.c: New file.
2643 * mingwex/mb_wc_common.h: New file.
2644 * mingwex/Makefile.in (DISTFILES): Add new files.
2645 (Q8_OBJS): Add new objects.
2646 * include/wchar.h: Adjust comment about mbrtowc() and related
2647 funcions. Add __restrict__ to pointer params in prototypes.
2648 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
2649 arg names from protototypes.
2651 2005-04-23 Wu Yongwei <adah@sh163.net>
2653 * mingwex/dirent.c: Formatting changes.
2654 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
2657 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
2659 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
2661 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
2663 * include/stdio.h (__mingw_fwrite): Change return value to
2665 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
2667 2005-03-15 Hans Leidekker <hans@it.vu.nl>
2669 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
2671 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2673 * include/wctype.h (wctrans): Remove _CRTIMP.
2674 (towctrans): Likewise.
2677 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2679 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
2681 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2683 * mingwex/wctype.c: New file.
2684 * mingwex/wctrans.c: New file.
2685 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
2686 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
2688 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2690 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
2692 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2694 * include/assert.h: Remove header guard. #undef assert macro.
2695 (_assert): Use __MINGW_ATTRIB_NORETURN define.
2697 2005-02-11 Gregory W. Chicares <chicares@cox.net>
2699 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
2700 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
2702 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
2703 * mingwex/math/expm1.c: New file.
2704 * mingwex/math/expm1f.c: New file.
2705 * mingwex/math/expm1l.c: New file.
2707 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
2709 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
2710 * include/wchar.h (struct stat): Likwwise.
2711 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
2713 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
2715 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
2717 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
2718 string is not valid.
2720 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
2722 * include/malloc.h: Add missing return code defines for
2725 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
2727 * include/sys/stat.h (struct __stat64): Change st_size type to
2729 * include/wchar.h (struct __stat64): Change st_size type to __int64.
2731 2005-01-13 Earnie Boyd <earnie@users.sf.net>
2733 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2735 * include/errno.h (ELOOP): Ditto.
2736 * include/_mingw.h: Increment version to 3.7.
2737 * Makefile.in: Ditto.
2739 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
2741 * include/tchar.h (_tfreopen): Add UNICODE mappings.
2743 2005-01-11 Earnie Boyd <earnie@users.sf.net>
2745 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2746 lstat): Conditionalize defines for __STRICT_ANSI__.
2748 2005-01-10 Earnie Boyd <earnie@users.sf.net>
2750 * include/errno.h (ELOOP): Add definition.
2752 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
2754 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
2755 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
2756 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
2757 ctanl.c ctanhl.c): New files.
2758 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2759 (COMPLEX_OBJS): Adjust.
2760 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
2761 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
2762 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
2765 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2767 * include/_mingw.h (__int16): Define as short.
2768 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
2770 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2772 * include/stdio.h (P_tmpdir): Add define.
2774 2005-01-03 Earnie Boyd <earnie@users.sf.net>
2776 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
2778 2005-01-02 Earnie Boyd <earnie@users.sf.net>
2780 * include/_mingw.h: Increment version to 3.6
2781 * Makefile.in: Ditto
2783 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
2785 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
2786 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
2787 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
2788 ctanf.c ctanhf.c): New files.
2789 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2790 (COMPLEX_OBJS): Adjust.
2791 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
2792 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
2793 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
2796 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
2798 * include/wchar.h (wcsdup): Correct prototype.
2799 * include/string.h (wcsdup): Correct prototype.
2801 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2803 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
2805 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2807 * mingwex/math/fastmath.h: New file.
2808 * mingwex/math/asinh.c: New file.
2809 * mingwex/math/asinhf.c: New file.
2810 * mingwex/math/asinhl.c: New file.
2811 * mingwex/math/acosh.c: New file.
2812 * mingwex/math/acoshf.c: New file.
2813 * mingwex/math/acoshl.c: New file.
2814 * mingwex/math/atanh.c: New file.
2815 * mingwex/math/atanhf.c: New file.
2816 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
2817 atanh, atanhf, atanhl): Add prototypes.
2818 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
2819 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
2820 Specify dependency on fastmath.h for new objects.
2822 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2824 * include/sys/stat.h (_S_IFLNK): Add definition.
2831 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2833 * include/sys/stat.h (_S_ISLNK): Add definition.
2836 2004-09-05 Earnie Boyd <earnie@users.sf.net>
2838 * include/_mingw.h: Increment minor version for 3.5 release.
2839 * Makefile.in: Ditto.
2840 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
2842 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2844 * include/malloc.h (__mingw_aligned_offset_malloc,
2845 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
2846 __mingw_aligned_realloc, __mingw_aligned_free): Add
2848 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
2849 tst-aligned-malloc.c.
2850 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
2852 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
2854 * mingwex/mingw-aligned-malloc.c: New file.
2855 * mingwex/tst-aligned-malloc.c: New file.
2857 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2859 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
2860 noreturn attribute. Align stack to 16 bytes before passing args
2862 (mainCRTStartup): Change return to void.
2863 (WinMainCRTStartup): Likewise.
2865 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2867 * profile/COPYING: New file.
2868 * profile/CYGWIN_LICENSE: New file.
2869 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
2871 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2873 * mingwex/fopen64.c: Move.
2874 * mingwex/fseeko64.c: Move.
2875 * mingwex/ftello64.c: Move.
2876 * mingwex/lseek64.c: Move.
2877 * mingwex/stdio/fopen64.c: To here.
2878 * mingwex/stdio/fseeko64.c: To here.
2879 * mingwex/stdio/ftello64.c: To here.
2880 * mingwex/stdio/lseek64.c: To here.
2882 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2884 * profile/gmon.c [__MINGW32__]: Include string.h for
2887 2004-08-08 Christopher Faylor <cgf@timesys.com>
2889 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
2891 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2893 * include/complex.h: Remove __attribute__ ((const)) from
2894 transcendantal and trig functions. Replace __attribute__ ((const))
2895 with __MINGW_ATTRIB_CONST on other declarations.
2897 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2899 * include/wchar.h: Reorganize, avoid including other headers.
2901 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2903 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
2904 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
2907 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2909 * include/dirent.h (struct _wdirent): Remove obsolete comment.
2911 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2913 * include/string.h: Revert 2004-07-26 additions of
2916 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
2918 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
2919 (__convert_inf_to_maxnum): New.static inline.
2920 (reducl): Use it to protect against Inf - Inf.
2921 (__fast_ldexpl): New function. Use in lieu of ldexpl.
2923 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
2925 * mingwex/math/expl.c (expl): Move body of code to new static
2926 function __expl, removing tests for +/-Inf. Extern function
2927 expl calls __expl after testing for max, min log thresholds.
2929 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2931 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
2932 * mingwex/stdio/vfscanf.c: Likewise.
2933 * mingwex/stdio/vswscanf.c: Likewise.
2934 * mingwex/stdio/vfwscanf.c: Likewise.
2936 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2938 * include/_mingw.h: Use only two underscores to uglify
2939 __MINGW_ATTRIB_* macros.
2940 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
2941 * include/setjmp.h: Likewise.
2943 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
2945 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
2947 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
2949 * include/string.h: Group wide string functions together,
2950 and protect with _WSTRING_DEFINED.
2952 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
2954 * include/_mingw.h (__MINGW_ATTR_*): Replace with
2956 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
2957 __MINGW_ATTRIB_NORETURN, throughout.
2958 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
2960 (abs): Declare with __MINGW_ATTRIB_CONST.
2969 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
2971 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
2973 * include/_mingw.h: Undefine __attribute__.
2974 (__MINGW_ATTR_NORETURN): New define.
2975 (__MINGW_ATTR_CONST): New define.
2976 (__MINGW_ATTR_MALLOC): New define.
2977 (__MINGW_ATTR_PURE): New define.
2978 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
2981 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2983 * include/time.h (__time64_t): Add missing ';'.
2985 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
2987 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
2988 (struct tm): Protect with _TM_DEFINED.
2990 2004-07-17 Christopher Faylor <cgf@timesys.com>
2992 * Makefile.in (CC): Strip inappropriate include file settings from any
2995 2004-07-15 "dgun" <dgun@umpire.com>
2997 * include/complex.h (conj): Correct typo in prototype.
2999 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3001 * include/math.h: Add pragma GCC system_header.
3003 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3005 * mingwex/complex/carg.c: New file.
3006 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3008 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3010 * Makefile.in (INCLUDES): Temporarily revert previous change.
3011 * mingwex/Makefile,in (INCLUDES): Ditto.
3012 * profile/Makefile,in (INCLUDES): Ditto.
3013 * mingwex/Makefile,in: Drop carg.o dependency.
3015 2004-07-14 Christopher Faylor <cgf@timesys.com>
3017 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3019 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3021 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3023 * mingwex/Makefile,in (INCLUDES): Ditto.
3024 * profile/Makefile,in (INCLUDES): Ditto.
3026 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3028 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3030 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3032 * mingwex/Makefile.in: Ditto.
3033 * profile/Makefile.in: Ditto.
3034 * include/limits.h: Change to new file header preamble.
3035 * include/_mingw.h: Increment minor version for 3.4 release.
3036 * Makefile.in: Ditto.
3038 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3040 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3042 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3044 * include/unistd.h (ftruncate): Add inline definition.
3045 * mingwex/ftruncate.c: New file.
3046 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3048 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3050 * include/time.h: Do not include sys/types.h.
3052 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3054 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3055 (MATH_OBJS): Remove pow,o.
3056 * include/math.h (pow): Declare with _CRTIMP.
3057 Add comment on how to avoid excess precision problems.
3059 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3061 * include/stdio.h (__mingw_fseeko64): Add prototype.
3062 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3063 (__mingw_fwrite): Handle huge files.
3065 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3066 Danny Smith <dannysmith@users.sourceforge.net>
3068 * include/stdio.h (fopen64): Add inline function.
3069 (fseeko64): Add prototype.
3070 (ftello64): Add inline function.
3071 * include/io.h (lseek64): Add inline function.
3072 * include/sys/types (off64_t): Add typedef.
3073 (fpos64_t): Add typedef.
3074 * mingwex/fopen64.c: New file.
3075 * mingwex/fseeko64.c: New file.
3076 * mingwex/ftello64.c: New file.
3077 * mingwex/lseek64.c: New file.
3078 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3079 fseeko.64.c, ftello64.c, lseek64.c.
3080 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3082 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3084 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3086 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3088 * DISCLAIMER: Add words about "free to use".
3089 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3090 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3091 (inst_docdir): New variable.
3093 (FLAGS_TO_PASS): Include inst_docdir.
3094 (install-dirs): Add inst_docdir.
3095 (install): Add loop for INSTDOCS.
3096 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3097 section to CONTRIBUTORS file. Remove RCS tags.
3099 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3101 * mingwex/math/lround.c: Rewrite.
3102 * mingwex/math/lroundf.c: Rewrite.
3103 * mingwex/math/lroundl.c: Rewrite.
3104 * mingwex/math/llround.c: Rewrite.
3105 * mingwex/math/llroundf.c: Rewrite.
3106 * mingwex/math/llroundl.c: Rewrite.
3108 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3110 * CONTRIBUTORS: New file.
3111 * DISCLAIMER: Ditto.
3112 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3113 section to CONTRIBUTORS file. Remove RCS tags.
3114 * CRTFmode.c: Ditto.
3118 * crtdll.dev: Ditto.
3128 * msvcrt.def.in: Ditto.
3129 * strcasecmp.c: Ditto.
3132 * include/assert.h: Ditto.
3133 * include/conio.h: Ditto.
3134 * include/ctype.h: Ditto.
3135 * include/direct.h: Ditto.
3136 * include/dirent.h: Ditto.
3137 * include/dos.h: Ditto.
3138 * include/errno.h: Ditto.
3139 * include/excpt.h: Ditto.
3140 * include/fcntl.h: Ditto.
3141 * include/float.h: Ditto.
3142 * include/io.h: Ditto.
3143 * include/locale.h: Ditto.
3144 * include/malloc.h: Ditto.
3145 * include/math.h: Ditto.
3146 * include/process.h: Ditto.
3147 * include/setjmp.h: Ditto.
3148 * include/share.h: Ditto.
3149 * include/signal.h: Ditto.
3150 * include/stdio.h: Ditto.
3151 * include/stdlib.h: Ditto.
3152 * include/string.h: Ditto.
3153 * include/tchar.h: Ditto.
3154 * include/time.h: Ditto.
3155 * include/wchar.h: Ditto.
3156 * include/sys/locking.h: Ditto.
3157 * include/sys/param.h: Ditto.
3158 * include/sys/stat.h: Ditto.
3159 * include/sys/timeb.h: Ditto.
3160 * include/sys/types.h: Ditto.
3161 * include/sys/utime.h: Ditto.
3162 * mingwex/dirent.c: Ditto.
3164 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3166 * include/_mingw.h: Revert to primary release 3 and increment minor
3168 * Makefile.in (VERSION): Ditto.
3170 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3172 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3173 _fmode if not __MSVCRT__.
3175 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3177 * include/io.h: (_findfirst): Correct prototype.
3179 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3181 * include/io.h: (_findnext, _findclose): Correct prototype.
3183 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3185 * include/math.h (FP_*): Add defines.
3187 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3189 * mingwex/math/round.c: Rewrite.
3190 * mingwex/math/roundf.c: Rewrite.
3191 * mingwex/math/roundl.c: Rewrite.
3193 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3195 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3196 * include/time.h (__time64_t): Add typedef.
3197 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3198 (_ctime64): Likewise.
3199 (_wctime64): Likewise.
3200 (_gmtime64): Likewise.
3201 (_localtime64): Likewise.
3202 (wcsftime): Move into _WTIME_DEFINED block.
3203 Regroup non-ANSI prototypes.
3204 * include/io.h: Include <stdint.h>.
3205 (__finddata64_t): Add struct definition.
3206 (__wfinddata64_t): Likewise.
3207 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3208 (_findnext64): Likewise.
3209 (_wfindfirst64): Likewise.
3210 (_wfindnext64): Likewise.
3211 * include/sys/timeb.h (__timeb64): Add struct definition.
3212 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3213 * include/sys/utime.h (__utimbuf64): Add struct definition.
3214 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3215 (_futime64): Likewise.
3216 (_wutime64): Likewise.
3217 * include/sys/stat.h (__stat64): Add struct definition.
3218 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3219 (_stat64): Likewise.
3220 (_wstat64): Likwise.
3221 * include/sys/types.h (__time64_t): Add typedef.
3222 * include/wchar.h (__wfinddata64_t): Add structure definition.
3223 (__stat64): Likewise.
3224 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3225 (_wfindfirst64): Likewise.
3226 (_wfindnext64): Likewise.
3227 (_wutime64): Likewise.
3228 (_wstat64): Likwise.
3229 * include/malloc.h (_aligned_free): Add prototype for
3230 __MSVCRT_VERSION__ >= 0x0700.
3231 (_aligned_malloc): Likewise.
3232 (_aligned_offset_malloc): Likewise.
3233 (_aligned_offset_realloc): Likewise.
3234 (_aligned_realloc): Likewise.
3235 * include/string.h (_wcserror): Add prototype for
3236 __MSVCRT_VERSION__ >= 0x0700.
3237 (__wcserror): Likewise.
3238 * include/math.h (_set_SSE2_enable): Add prototype for
3239 __MSVCRT_VERSION__ >= 0x0701.
3241 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3243 * include/stdio.h (_fsopen): Add prototype.
3244 * include/tchar.h (_tfsopen): Add defines.
3245 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
3247 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3249 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
3250 msvcr70.dll, and msvcr71.dll.
3251 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
3252 using basename of output def file.
3254 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3256 * include/malloc.h: Remove __STRICT_ANSI__ guard.
3258 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
3260 * include/process.h: Remove the #endif associated with removal of
3261 __STRICT_ANSI__ guard from non-ANSI header.
3263 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3265 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
3266 * include/direct.h: Ditto.
3267 * include/dirent.h: Ditto.
3268 * include/dos.h: Ditto.
3269 * include/excpt.h: Ditto.
3271 * include/io.h: Ditto.
3272 * inlude/mem.h: Ditto.
3273 * include/memory.h: Ditto.
3274 * include/process.h: Ditto.
3275 * inlude/search.h: Ditto.
3276 * include/share.h: Ditto.
3277 * include/unistd.h: Ditto.
3278 * include/sys/fcntl.h: Ditto.
3279 * include/file.h: Ditto.
3280 * include/sys/locking.h: Ditto.
3281 * include/sys/param.h: Ditto.
3282 * include/sys/stat,h
3283 * include/sys/time.h: Ditto.
3284 * include/sys/timeb.h: Ditto.
3285 * include/sys/types.h: Ditto.
3286 * include/sys/unistd.h: Ditto.
3287 * include/sys/utime.h: Ditto.
3289 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
3291 * include/_mingw.h (__UNUSED_PARAM): Define macro.
3292 * include/wchar.h (fwide): Use it.
3295 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3297 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
3298 NetBSD getopt_long.c.
3300 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3302 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
3303 codes and handling of special chars.
3305 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
3307 * include/stdio.h (feof): Add inlined definition.
3310 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3312 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
3313 directly, rather than via scabnl.
3315 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3317 * mingwex/math/powl.c (powl): Return infinity if
3318 extended precision multiplication of x by log2(y)
3321 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3323 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
3324 (__enan_NI16): Fix another one.
3325 (__enan_NBITS): Tidy.
3327 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3329 * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
3330 types. (Thanks to John Maddock for report.)
3332 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
3334 * include/tchar.h (_puttchar): Define.
3336 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
3338 * include/stdio.h:(_fileno): Define macro version after both
3339 fileno and _fileno functions declared.
3341 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
3342 * moldnames.def.in (rmtmp) Add stub.
3344 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
3346 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
3348 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
3350 * include/math.h: Guard ISO C99 additions with __cplusplus
3353 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3355 * include/_mingw.h: Define __attribute__((x)) to nothing
3358 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3360 * include/complex.h: New file.
3361 * mingwex/complex: New directory.
3362 * mingwex/complex/cabs.c: New file.
3363 * mingwex/complex/cacos.c: New file.
3364 * mingwex/complex/cacosh.c: New file.
3365 * mingwex/complex/casin.c: New file.
3366 * mingwex/complex/casinh.c: New file.
3367 * mingwex/complex/catan.c: New file.
3368 * mingwex/complex/catanh.c: New file.
3369 * mingwex/complex/ccos.c: New file.
3370 * mingwex/complex/ccosh.c: New file.
3371 * mingwex/complex/cexp.c: New file.
3372 * mingwex/complex/cimag.c: New file.
3373 * mingwex/complex/clog.c: New file.
3374 * mingwex/complex/cpow.c: New file.
3375 * mingwex/complex/cproj.c: New file.
3376 * mingwex/complex/creal.c: New file.
3377 * mingwex/complex/csin.c: New file.
3378 * mingwex/complex/csinh.c: New file.
3379 * mingwex/complex/csqrt.c: New file.
3380 * mingwex/complex/ctan.c: New file.
3381 * mingwex/complex/ctanh.c: New file.
3382 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3385 (COMPLEX_OBJS): New list of objects.
3386 (LIB_OBJS): Include it in the library.
3388 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3390 * include/math.h (cabs): Remove non-ISO prototype.
3392 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3394 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3395 Use GCC __builtin's if available.
3396 (INFINITY, INFINITYF, INFINITYL): Likewise.
3398 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3400 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3401 beyond approximation limit.
3402 * mingwex/math/sf_erf.c (erff): Likewise.
3404 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3406 * include/stdio.h (getc): Cast result to unsigned char before
3409 (getchar): Likewise.
3410 (putchar): Likewise.
3411 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3413 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3415 * include/_mingw.h: Increment version to 3.2.
3416 * Makefile.in: Ditto.
3418 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3420 * include/sys/types.h: Revert last change.
3422 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3424 * include/sys/types.h (ssize_t): Correct the definition.
3426 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3428 * include/stdio.h (_filbuf): Add prototype.
3429 (_flsbuf): Add prototype.
3430 (getc): Add inline version.
3432 (getchar): Likewise.
3433 (putchar): Likewise.
3435 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3437 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3440 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3442 * include/stdlib.h: Guard non-ISO functions with
3443 !__STRICT_ANSI__, throughout.
3445 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3447 * include/io.h (_fileno): Remove prototype.
3449 (FILENAME_MAX): Define, if needed.
3450 Don't include <stdio.h>.
3451 * include/stdio.h (FILENAME_MAX): Protect against
3453 (_fileno): Define macro implementation.
3456 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3458 * include/inttypes.h: Include _mingw.h.
3460 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3462 * include/_mingw.h (__CRT_INLINE): Define.
3463 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3465 * include/inttypes.h: Likewise.
3466 * include/math.h: Likewise.
3467 * include/stdio.h: Likewise.
3468 * include/stdlib.h: Likewise.
3469 * include/string.h: Likewise.
3470 * include/wchar.h: Likewise.
3471 * include/wctype.h: Likewise.
3473 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3475 * mingwex/dirent.c (_topendir): Allocate enough memory for
3476 DIR struct in UNICODE case too.
3478 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3480 * include/_mingw.h: Increment version to 3.2.
3481 * Makefile.in: Ditto.
3483 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3485 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3487 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3489 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3490 * mingwex/math/truncf.c (truncf): Likewise.
3491 * mingwex/math/truncl.c (truncl): Likewise.
3492 * mingwex/math/modff.c (modff): Likewise.
3493 * mingwex/math/modfl.c (modfl): Likewise.
3495 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3497 * include/search.h: New file.
3498 * include/stdlib.h: Add comment about qsort, bsearch in
3500 * test_headers.c: Include search.h.
3501 * moldname.def.in (lfind, lsearch): Add.
3503 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3505 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
3506 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
3507 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
3509 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3511 * include/_mingw.h (small, hyper): Change to __small and __hyper to
3512 avoid user space name conflicts.
3514 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3516 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
3517 Note: Also added to w32api/include/basetyps.h.
3518 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
3519 Rename to Small (case difference).
3521 2003-06-18 Earnie Boyd <earnie@users.sf.net>
3523 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
3524 * mingwex/dirent.c: Modifications througout to fill d_name array.
3525 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
3526 libmsvcr71, including debug versions.
3527 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
3529 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
3531 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
3532 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
3534 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
3536 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
3538 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
3540 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
3542 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
3543 but still protect inline definition with __STRICT_ANSI__.
3545 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
3547 * string_old.c: Remove, splitting into...
3548 * strcasecmp.c: New file.
3549 * strncasecmp.c: New file.
3550 * wscmpi.c : New file.
3551 * ctype_old.c: Remove, splitting into...
3552 * isascii.c: New file.
3553 * iscsym.c: New file.
3554 * iscsymf.c: New file.
3555 * toascii.c: New file.
3556 * Makefile.in (MOLD_OBJS): Adjust.
3557 (SRCDIST_FILES): Adjust.
3559 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
3561 * include/math.h (fabs) : Remove inline definition.
3565 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3567 * include/_mingw.h: Change version to 3.0
3568 * Makefile.in: Ditto.
3570 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3572 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
3573 * mingwex/configure.in (W32API_INCLUDE): Ditto.
3574 * profile/configure.in (W32API_INCLUDE): Ditto.
3576 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3578 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
3579 of multiply defined symbols if the symbols is defined locally. E.G.:
3580 A local definition of malloc causes this problem.
3581 * configure: Regenerate.
3582 * profile/Makefile.in (W32API_INCLUDE): New variable.
3583 (ALL_CFLAGS): Use W32API_INCLUDE value.
3584 (ALL_CXXFLAGS): Ditto.
3585 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
3586 Thanks to Jeff Bonggren <jbon@users.sf.net>.
3587 * profile/configure.in (W32API_INCLUDE): Set default value.
3588 * profile/configure: Regenerate.
3589 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
3590 (ALL_CFLAGS): Use W32API-INCLUDE value.
3591 (ALL_CXXFLAGS): Ditto.
3592 * mingwex/configure.in (W32API_INCLUDE): Set default value.
3593 * mingwex/configure: Regenerate.
3595 2003-05-05 Earnie Boyd <earnie@users.sf.net>
3597 * Makefile.in (W32API_INCLUDE): New variable.
3598 (ALL_CFLAGS): Use W32API_INCLUDE value.
3599 (ALL_CXXFLAGS): Ditto.
3600 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
3601 (W32API_INCLUDE): Set default value.
3602 * configure: Regenerate.
3604 2003-04-11 Earnie Boyd <earnie@users.sf.net>
3606 * configure.in (LIBM_A): Define for cygwin target.
3607 * configure (LIBM_A): Ditto.
3609 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
3611 * include/time.h (strftime): Remove duplicate declaration.
3613 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3615 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
3617 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3619 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
3620 * mingwex/strtoimax.c (strtoimax): Likewise.
3621 * mingwex/wcstoimax.c (wcstoimax): Likewise.
3622 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
3623 * mingwex/fesentenv.c: Include float.h.
3624 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
3626 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
3628 * mingwex/math/tgammal.c: Likewise.
3630 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3632 * include/utime.h: New file, forwarding to sys/utime.h.
3634 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3636 * include/sys/param.h (MAXPATHLEN): Define.
3638 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3640 * include/tchar.h: Ansi-fy a comment.
3642 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3644 * profile/profile.h (mcount): Use __builtin_return_address
3645 rather than inline __asm statements.
3646 * profile/Makefile.in: Remove special rule for mcount.o
3647 Specify dependencies for mcount.o profil.o gmon.o.
3649 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3651 * include/stdlib.h (qsort): Remove const from first parm.
3652 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
3654 2003-03-03 Christopher Faylor <cgf@redhat.com>
3656 * mingwex/getopt.c: Refresh from NetBSD sources.
3658 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
3660 * mingwex/getopt.c: New file, copied from cygwin srcs.
3661 * include/getopt.h: New file, copied from cygwin srcs.
3662 * include/unistd.h: Include getopt.h.
3663 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
3664 (POSIX_OBJS): Add getopt.o.
3666 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
3668 * include/stdio.h (vscanf): Add prototype.
3674 * include/wchar.h (vwscanf): Add prototype.
3677 * mingwex/snprintf.c: Move to mingwex/stdio.
3678 * mingwex/vsnprintf.c: Ditto.
3679 * mingwex/snwprintf.c: Ditto.
3680 * mingwex/vsnwprintf.c: Ditto.
3681 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
3682 (STDIO_DISTFILES): Add.
3683 (DISTFILES): Adjust.
3684 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
3688 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
3690 * mingwex/stdio: New directory
3691 * mingwex/stdio/vfscanf.c: New file.
3692 * mingwex/stdio/vfwscanf.c: New file.
3693 * mingwex/stdio/vscanf.c: New file.
3694 * mingwex/stdio/vsscanf.c: New file.
3695 * mingwex/stdio/vswscanf.c: New file.
3696 * mingwex/stdio/vwscanf.c: New file.
3698 2003-02-25 Earnie Boyd <earnie@users.sf.net>
3700 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
3701 (libmsvcrt40.a): Ditto.
3703 2003-02-21 Earnie Boyd <earnie@users.sf.net>
3705 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
3707 * Makefile.in (libmsvcrtd.a): Add target library.
3708 (libmoldnamed.a): Ditto.
3709 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
3711 ($(srcdir)): Remove explicit reference for depencies of object targets.
3712 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
3713 msvcrt20.def, msvcrt40.def: Remove.
3714 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
3716 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
3718 * Makefile.in: Make sure libmingwex.a from current build tree is used.
3720 2003-02-14 Christopher Faylor <cgf@redhat.com>
3722 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
3723 ensure -mno-cygwin where appropriate. Filter out -O2.
3725 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
3727 * profile/Makefile.in (mcount.o): Use -O1 optimization
3730 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3732 * include/math.h: Remove _CRTIMP from pow() prototype,
3733 unless __NO_ISOCEXT.
3735 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3737 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
3739 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3741 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
3742 __declspec(dllimport) supported.
3743 (__cdecl): Define if not already defined.
3744 (__stdcall): Likewise.
3745 * include/dirent.h: Qualify fuctions with __cdecl.
3746 * include/fenv.h: Likewise.
3747 * include/inttypes.h: Likewise.
3748 * include/assert.h: Qualify fuctions with __cdecl. Qualify
3749 CRT dll imports with _CRTIMP.
3750 * include/conio.h: Likewise.
3751 * include/ctype.h: Likewise.
3752 * include/direct.h: Likewise.
3753 * include/dos.h: Likewise.
3754 * include/errno.h: Likewise.
3755 * include/float.h: Likewise.
3756 * include/io.h: Likewise.
3757 * include/locale.h: Likewise.
3758 * include/malloc.h: Likewise.
3759 * include/math.h: Likewise.
3760 * include/mbctype.h: Likewise.
3761 * include/mbstring.h: Likewise.
3762 * include/process.h: Likewise.
3763 * include/setjmp.h: Likewise.
3764 * include/signal.h: Likewise.
3765 * include/stdio.h: Likewise.
3766 * include/stdlib.h: Likewise.
3767 * include/string.h: Likewise.
3768 * include/time.h: Likewise.
3769 * include/wchar.h: Likewise.
3770 * include/wctype.h: Likewise.
3771 * include/sys/stat.h: Likewise.
3772 * include/sys/timeb.h: Likewise.
3773 * include/sys/utime.h: Likewise.
3775 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
3776 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
3778 * include/stdio.h (__VALIST): Guard against prior definition.
3780 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3782 * include/_mingw.h: Change version to 3.0
3783 * Makefile.in: Ditto.
3785 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3787 * include/stdlib.h: Make words after #endif a comment.
3789 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3791 * include/locale.h: Include stddef.h for definition of NULL.
3793 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3795 * include/math.h (tgamma): Correct typo in comment.
3797 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3799 * mingwex/mingw-fseek.c (INLINE): Remove define.
3800 (__mingw_is_win9x): Remove static inline function.
3801 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
3803 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3805 * mingwex/math/llround.c: Correct function name and
3806 change return value to long long.
3808 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
3810 * include/ctype.h (__isascii): Don't cast arg to unsigned.
3811 (iswascii): Likewise. Correct mask.
3812 * include/wctype.h (iswascii): Don't cast arg to unsigned.
3815 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
3817 * include/stdlib.h (_osver, _winver, _winmajor,
3818 _winminor): Declare as direct imports from dll if
3819 __DECLSPEC_SUPPORTED.
3821 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
3823 * pseudo-reloc.c (do_pseudo_reloc): Make static.
3824 * pseudo-reloc-list.c: New file.
3825 * crt1.c (_pei386_runtime_relocator): Declare.
3826 (__mingw_CRTStartup): Call it.
3827 * dllcrt1.c (_pei386_runtime_relocator): Declare.
3828 (DllMainCRTStartup): Call it.
3829 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
3832 2003-01-01 Egor Duda <deo@logos-m.ru>
3834 * pseudo-reloc.c: New file.
3836 2002-12-20 Earnie Boyd <earnie@users.sf.net>
3838 * include/_mingw.h: Increment version to 2.4.
3841 2002-12-12 Earnie Boyd <earnie@users.sf.net>
3843 * include/malloc.h (_alloca): Add definition.
3846 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
3848 * mingwex/math/s_erf.c: New file.
3849 * mingwex/math/sf_erf.c: New file.
3850 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3851 (MATH_OBJS): Add new objects.
3852 * include/math.h (erf[f]): Add prototypes.
3853 (erfc[f]): Add prototypes.
3855 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
3857 * include/math.h: Add traditional/XOPEN math constants.
3859 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
3861 * mingwex/math/lgamma.c: New file.
3862 * mingwex/math/lgammaf.c: New file.
3863 * mingwex/math/lgammal.c: New file.
3864 * mingwex/math/tgamma.c: New file.
3865 * mingwex/math/tgammaf.c: New file.
3866 * mingwex/math/tgammal.c: New file.
3867 * mingwex/math/cephes_mconf (polevlf): Add float version.
3869 Define _CEPHES_USE_ERRNO.
3870 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3871 (MATH_OBJS): Add new objects.
3872 * include/math.h (lgamma[fl]): Add prototypes.
3873 (tgamma[fl]): Add prototypes.
3875 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
3877 * mingwex/strtold.c: New file.
3878 * mingwex/wcstold.c: New file.
3879 * mingwex/ldtoa.c: New file.
3880 * mingwex/math/cephes_emath.h: New file.
3881 * mingwex/math/cephes_emath.c: New file.
3882 * mingwex/Makefile.in (DISTFILES): Add new files.
3883 (MATH_DISTFILES): Ditto.
3884 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
3885 (MATH_OBJS): Add cephes_emath.o.
3886 (LIB_OBJS): Add $(STDLIB_OBJS).
3887 * include/stdlib.h (strtold, wcstold): Add prototypes.
3888 * include/wchar.h (wcstold): Add prototype.
3890 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3892 * include/math.h (sqrt): Remove inline definition.
3893 (sqrtf): Replace inline definition with prototype.
3895 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
3896 argument less than zero.
3897 * mingwex/math/sqrtf.c (sqrtl): Likewise.
3899 2002-10-30 Guido Serassio <serassio@libero.it>
3901 * include/stdio.h (_getmaxstdio): Add prototype.
3902 (_setmaxstdio): Likewise.
3904 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
3906 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
3908 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3910 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
3912 Define WIN32_MEAN_AND_LEAN before including windows.h
3913 * include/stdlib.h (_fmode): Protect declaration as dllimported
3914 variable with __IN_MINGW_RUNTIME.
3916 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3918 * crt1.c: Include stdlib.h.
3920 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3922 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
3923 (MINGW_OBJS): Add txtmode.o.
3924 (SRCDIST_FILES): Add txtmode.c binmode.c.
3925 crt1.c: Don't include fcntrl.h, stdlib.h.
3926 (_fmode): Declare, without dllimport attribute.
3927 (__p__fmode): Declare access function for dll's _fmode.
3928 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
3930 * txtmode.c: New file.
3931 * binmode.c: New file.
3932 * samples/fmode/test2.c: New file.
3933 * samples/fmode/jamfile: Add test2.exe target.
3935 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
3937 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
3938 macros work with C89.
3939 (INTMAX_C, UINTMAX_C): Likewise.
3941 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
3943 * include/string.h (strcasecmp): Make extern __inline__.
3944 (strncasecmp): Likewise.
3945 (wcscmpi): Likewise.
3947 2002-10-08 Heiko Gerdau <hg@technosis.de>
3949 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
3950 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
3953 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3955 * mingwex/math/powil.c: Rename powil to __powil.
3956 * mingwex/math/powl.c: Adjust declaration and call
3957 to __powil. Remove comment on powil.
3958 * mingwex/math/powi.c: New file.
3959 * mingwex/math/powif.c: New file.
3960 * mingwex/math/pow.c: New file.
3961 * mingwex/math/cephes_mconf.h. Add double and float
3962 versions of constants.
3963 (polevl): Add double precision function.
3965 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
3967 (MATH_OBJS): Add pow.o, powi.o, powif.o.
3969 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3971 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
3972 (_imp____mbcur_max_dll): Likewise.
3974 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3976 * include/fcntl.h (_fmode): Remove declarations and
3977 compatibility defines.
3978 (_setmode, setmode): Remove prototypes.
3979 * include/stdlib (_fmode): Add declarations and
3980 compatibility defines. Change type to int.
3981 * include/io.h (_setmode, setmode): Add prototypes.
3982 * samples/fmode/all.c: Adjust includes.
3983 * samples/fmode/test.c: Likewise.
3984 * crt1.c (_CRT_fmode): Declare as int.
3985 * CRTfmode.c (_CRT_fmode): Likewise.
3987 * include/stdlib: Remove comment about MB_CUR_MAX.
3989 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
3991 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
3992 (_imp____mbcur_max_dll): Likewise.
3994 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3996 * mingwex/math/files.txt: Remove inadvertantly added file.
3998 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4000 * include/string.h (_strerror): Move into #ifndef
4001 __STRICT_ANSI__ block.
4003 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4005 * include/time.h (__need_NULL): Define before including
4006 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4008 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4010 * include/stdio.h: Correct comment about directory separator.
4012 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4014 * include/sys/time.h (timeval): Add struct definition and
4015 associated macros (copied from w32api/include/winsock.h).
4017 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4019 * include/_mingw.h: Increment version to 2.3.
4022 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4024 * mingwex/fegetenv.c: Change to \n line endings.
4025 * mingwex/vsnprintf.c: Ditto.
4026 * mingwex/vsnwprintf.c: Ditto.
4028 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4030 * mingwex/math/hypotl.c: Replace with version based on cephes
4033 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4035 * include/sys/param.h: Add ENDIAN defines.
4036 * test_headers.c: Include sys/param.h.
4038 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4040 * test_headers.c: Don't include varargs.h.
4041 * Makefile.in (test_headers): Don't use -std=xx
4044 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4046 * include/sys/param.h: New File.
4048 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4050 * include/math.h (asm): Change to __asm__ throughout.
4051 Expose ISO C99 functions if __GLIPCPP__.
4052 (hypotf): Use hypot, not _hypot in stub.
4054 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4056 * include/tchar.h: Ansi-fy another comment.
4058 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4060 * include/tchar.h: Ansi-fy comment.
4062 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4064 * test_headers.c : New file.
4065 * Makefile.in (test_headers): New target, using it,
4066 (SRCDIST_FILES): Distribute it.
4068 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4070 * include/_mingw.h: Increment version to 2.2.
4073 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4075 * include/unistd.h: Add include of process.h.
4077 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4079 * include/stdio.h (_fcloseall): Add prototype.
4081 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4083 * include/tchar.h (_tfdopen): Correct typo.
4085 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4087 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4088 nextafter): Add non-underscored stubs.
4089 * moldname-msvcrt.def: Regenerate.
4090 * moldname-crtdll.def: Regenerate.
4091 * mingwex/math: New directory.
4092 * mingwex/rint.c: Move to mingwex/math.
4093 * mingwex/rintf.c: Ditto.
4094 * mingwex/rintl.c: Ditto.
4095 * mingwex/round.c: Ditto.
4096 * mingwex/roundf.c: Ditto.
4097 * mingwex/roundl.c: Ditto.
4098 * mingwex/rint.c: Ditto.
4099 * mingwex/rintf.c: Ditto.
4100 * mingwex/rintl.c: Ditto.
4101 * mingwex/trunc.c: Ditto.
4102 * mingwex/truncf.c: Ditto.
4103 * mingwex/truncl.c: Ditto.
4104 * mingwex/signbit.c: Ditto.
4105 * mingwex/signbitf.c: Ditto.
4106 * mingwex/signbitl.c: Ditto.
4107 * mingwex/copysignl.S: Ditto.
4108 * mingwex/fdim.c: Ditto.
4109 * mingwex/fdimf.c: Ditto.
4110 * mingwex/fdiml.c: Ditto.
4111 * mingwex/fmin.c: Ditto.
4112 * mingwex/fminf.c: Ditto.
4113 * mingwex/fminl.c: Ditto.
4114 * mingwex/fmax.c: Ditto.
4115 * mingwex/fmaxf.c: Ditto.
4116 * mingwex/fmaxl.c: Ditto.
4117 * mingwex/fma.c: Ditto.
4118 * mingwex/fmaf.c: Ditto.
4119 * mingwex/fmal.c: Ditto.
4120 * mingwex/fpclassify.c: Ditto.
4121 * mingwex/fpclassifyl.c: Ditto.
4122 * mingwex/fpclassifyl.c: Ditto.
4123 * mingwex/isnan.c: Ditto.
4124 * mingwex/isnanf.c: Ditto.
4125 * mingwex/isnanl.c: Ditto.
4126 * mingwex/fucom.c: Ditto.
4127 * mingwex/fp_consts.c: Ditto. Split out float and long double
4129 * mingwex/math_stubs.c: Remove.
4130 * mingwex/log2.c: Remove. Replaced by math/log2.S
4131 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4132 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4133 * mingwex/math/acosf.c : New file.
4134 * mingwex/math/acosl.c: New file.
4135 * mingwex/math/asinf.c: New file.
4136 * mingwex/math/asinl.c: New file.
4137 * mingwex/math/atan2f.c: New file.
4138 * mingwex/math/atan2l.c: New file.
4139 * mingwex/math/atanf.c: New file.
4140 * mingwex/math/atanl.c: New file.
4141 * mingwex/math/cbrt.c: New file.
4142 * mingwex/math/cbrtf.c: New file.
4143 * mingwex/math/cbrtl.c: New file.
4144 * mingwex/math/ceilf.S: New file.
4145 * mingwex/math/ceill.S: New file.
4146 * mingwex/math/cephes_ld.h: New file.
4147 * mingwex/math/copysign.S: New file.
4148 * mingwex/math/copysignf.S: New file.
4149 * mingwex/math/cosf.S: New file.
4150 * mingwex/math/coshf.c: New file.
4151 * mingwex/math/coshl.c: New file.
4152 * mingwex/math/cosl.S: New file.
4153 * mingwex/math/exp2.S: New file.
4154 * mingwex/math/exp2f.S: New file.
4155 * mingwex/math/exp2l.S: New file.
4156 * mingwex/math/expf.c: New file.
4157 * mingwex/math/expl.c: New file.
4158 * mingwex/math/fabs.c: New file.
4159 * mingwex/math/fabsf.c: New file.
4160 * mingwex/math/fabsl.c: New file.
4161 * mingwex/math/floorf.S: New file.
4162 * mingwex/math/floorl.S: New file.
4163 * mingwex/math/fmodf.c: New file.
4164 * mingwex/math/fmodl.c: New file.
4165 * mingwex/math/fp_consts.h: Ditto.
4166 * mingwex/math/fp_constsf.c: Ditto.
4167 * mingwex/math/fp_constsl.c: Ditto.
4168 * mingwex/math/frexpf.c: New file.
4169 * mingwex/math/frexpl.S: New file.
4170 * mingwex/math/hypotf.c: New file.
4171 * mingwex/math/hypotl.c: New file.
4172 * mingwex/math/ilogb.S: New file.
4173 * mingwex/math/ilogbf.S: New file.
4174 * mingwex/math/ilogbl.S: New file.
4175 * mingwex/math/ldexpf.c: New file.
4176 * mingwex/math/ldexpl.c: New file.
4177 * mingwex/math/llrint.c: New file.
4178 * mingwex/math/llrintf.c: New file.
4179 * mingwex/math/llrintl.c: New file.
4180 * mingwex/math/llround.c: New file.
4181 * mingwex/math/llroundf.c: New file.
4182 * mingwex/math/llroundl.c: New file.
4183 * mingwex/math/log10f.S: New file.
4184 * mingwex/math/log10l.S: New file.
4185 * mingwex/math/log1p.S: New file.
4186 * mingwex/math/log1pf.S: New file.
4187 * mingwex/math/log1pl.S: New file.
4188 * mingwex/math/log2.S: New file.
4189 * mingwex/math/log2f.S: New file.
4190 * mingwex/math/log2l.S: New file.
4191 * mingwex/math/logb.c: New file.
4192 * mingwex/math/logbf.c: New file.
4193 * mingwex/math/logbl.c: New file.
4194 * mingwex/math/logf.S: New file.
4195 * mingwex/math/logl.S: New file.
4196 * mingwex/math/lrint.c: New file.
4197 * mingwex/math/lrintf.c: New file.
4198 * mingwex/math/lrintl.c: New file.
4199 * mingwex/math/lround.c: New file.
4200 * mingwex/math/lroundf.c: New file.
4201 * mingwex/math/lroundl.c: New file.
4202 * mingwex/math/modff.c: New file.
4203 * mingwex/math/modfl.c: New file.
4204 * mingwex/math/nearbyint.S: New file.
4205 * mingwex/math/nearbyintf.S: New file.
4206 * mingwex/math/nearbyintl.S: New file.
4207 * mingwex/math/nextafterf.c: New file.
4208 * mingwex/math/powf.c: New file.
4209 * mingwex/math/powl.c: New file.
4210 * mingwex/math/powil.c: New file.
4211 * mingwex/math/remainder.S: New file.
4212 * mingwex/math/remainderf.S: New file.
4213 * mingwex/math/remainderl.S: New file.
4214 * mingwex/math/remquo.S: New file.
4215 * mingwex/math/remquof.S: New file.
4216 * mingwex/math/remquol.S: New file.
4217 * mingwex/math/scalbn.S: New file.
4218 * mingwex/math/scalbnf.S: New file.
4219 * mingwex/math/scalbnl.S: New file.
4220 * mingwex/math/sinf.S: New file.
4221 * mingwex/math/sinhf.c: New file.
4222 * mingwex/math/sinhl.c: New file.
4223 * mingwex/math/sinl.S: New file.
4224 * mingwex/math/sqrt.c: New file.
4225 * mingwex/math/sqrtf.c: New file.
4226 * mingwex/math/sqrtl.c: New file.
4227 * mingwex/math/tanf.S: New file.
4228 * mingwex/math/tanhf.c: New file.
4229 * mingwex/math/tanhl.c: New file.
4230 * mingwex/math/tanl.S: New file.
4231 * mingwex/Makefile.in: Adjust VPATH for source files in
4234 Add MATH_DISTFILES and use it to build source distro.
4235 * include/math.h: Add protypes for new functions and
4236 reorganise to reflect ANSI,C99 status.
4238 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
4240 * include/tchar.h (_getts): Define as _getws for _UNICODE.
4241 (_putts): Define as _putws for _UNICODE.
4242 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
4244 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
4246 * include/float.h: #include_next<float.h> before header guard.
4248 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
4250 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
4252 * include/excpt.h (): Include windef.h not windows.h.
4253 * include/fcntl.h (_O_SHORT_LIVED): Add define.
4254 (_chmod): Add prototype.
4255 (_creat): Correct prototype.
4256 (SH_DENY*): Rename defines to _SH_DENY*.
4257 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
4258 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
4259 _IOAPPEND): Add defines.
4260 (_wfindfirst): Correct prototype.
4261 (_wfdopen): Add prototype.
4262 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
4264 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
4266 (_wcsdup): Correct prototype.
4267 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
4268 _mbsncat being in string.h.
4269 * include/wchar.h (_wfindfirst): Correct prototype.
4270 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
4272 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4274 * include/_mingw.h: Increment to version 2.1.
4275 * Makefile.in: Ditto.
4277 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4279 * Makefile.in (conf_prefix): New variable.
4280 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
4281 (bindist): Use dist_prefix.
4283 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
4285 * include/_mingw.h: Increment version to 2.0.
4286 * Makefile.in: Ditto.
4288 Merge in mingwex branch.
4290 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
4292 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
4293 * mingwex/fdim.c: New file.
4294 * mingwex/fdimf.c: New file.
4295 * mingwex/fdiml.c: New file.
4296 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
4298 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
4300 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
4302 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
4304 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
4306 * mingwex/isnanl.c: New file.
4308 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4310 * include/stdint.h: Include stddef.h to get
4312 (WINT_MAX): Define to ((wint_t)-1).
4314 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4316 * include/wctype.h: Replace 'inline' with '__inline__'.
4317 * include/inttypes.h: Likewise.
4319 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4321 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
4322 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
4324 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4326 * mingwex/snprintf.c: Split out vsnprintf to....
4327 * mingwex/vsnprintf.c: New file.
4328 * mingwex/snwprintf.c: Split out vsnwprintf to...
4329 * mingwex/vsnwprintf.c: New file.
4330 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
4332 2002-05-15 Pascal Obry <obry@gnat.com>
4334 * include/dirent.h (DIR): Change dd_stat type to int.
4337 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
4339 * include/stdio.h (vsnprintf): Change inline to __inline__;
4340 (vsnwprintf): Likewise.
4341 * include/wchar.h (vsnwprintf): Likewise.
4344 (mbsinit): Likewise.
4346 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
4348 Change FP default precison from 53 to 64-bit mantissa.
4350 * Makefile.in (CRT0S): Add CRT_fp8.o.
4351 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
4352 * include/float.h: Replace standard float.h defines with
4353 #include_next<float.h> to use GCC's defines. Adjust comments
4356 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4358 * include/dos.h: Change prefix "__imp_" to "_imp__" for
4359 __GNUC__ without __DECLSPEC_SUPPORTED.
4360 * include/fnctl.h: Likewise.
4361 * include/math.h: Likewise.
4362 * include/stdio.h: Likewise.
4363 * include/stdlib.h: Likewise.
4364 * include/time.h: Likewise.
4365 * include/wctype.h: Likewise.
4366 * include/ctype.h: Likewise.
4368 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4370 Add atexit support for dlls.
4371 * crt1.c (atexit): Force thunk to _imp__atexit.
4372 (_onexit): Force thunk to _imp___onexit.
4373 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4374 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4375 (__dll_exit): New function to run atexit-registered functions
4376 and flush output buffers on DLL_PROCESS_DETACH or failed
4378 (atexit): Force use of private atexit table via _dllonexit,
4379 (_onexit): New function. Force use of private atexit table via
4381 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4382 _imp_<_symbol> is visible in import lib.
4383 * msvcrt20.def: Likewise.
4384 * msvcrt40.def: Likewise.
4385 * crtdll.def: Likewise.
4387 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4389 * include/fenv.h: Change header guard macro to _FENV_H_.
4390 (fenv_t, fexcept_t): Move into block protected by
4392 Cleanup some whitespace.
4393 * include/inttypes.h: Change header guard macro to
4396 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4398 * include/math.h (copysignl): Declare.
4399 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4400 (MATHOBJS):Add copysignl.o.
4402 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4404 * include/math.h (__signbitl, __isnanl): Declare.
4406 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4408 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4409 roundl, truncl, fmal, log2l): Declare.
4410 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4411 || !defined __STRICT_ANSI__.
4412 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4413 * mingwex/fmin.c (fmin): Likewise.
4414 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4415 * mingwex/fminf.c (fminf): Likewise.
4416 * mingwex/fmaxl.c: New file.
4417 * mingwex/fminl.c: New file.
4418 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4419 * mingwex/fpclassifyf.c: New file.
4420 * mingwex/fpclassifyl.c: New file.
4421 * mingwex/rint.c (rintf): Split out to...
4422 * mingwex/rintf.c: New file.
4423 * mingwex/rintl.c: New file.
4424 * mingwex/round.c (roundf): Split out to...
4425 * mingwex/roundf.c: New file.
4426 * mingwex/roundl.c: New file.
4427 * mingwex/trunc.c (truncf): Split out to...
4428 * mingwex/truncf.c: New file.
4429 * mingwex/truncl.c: New file.
4430 * mingwex/signbit.c (signbitf): Split out to...
4431 * mingwex/signbitf.c: New file.
4432 * mingwex/signbitl.c: New file.
4433 * mingwex/fmal.c: New file.
4434 * mingwex/copysignl.S: New file.
4435 * mingwex/log2l.c: New file.
4436 * mingwex/fp_consts.c: Add nanl definition.
4437 Comment out unused constants.
4438 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4439 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4440 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4442 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4443 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4444 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4446 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4448 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4450 Make wide char versions of opendir and friends.
4452 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4454 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4455 _wseekdir): Add prototypes for wide versions of corresponding
4457 * include/tchar.h; Add _UNICODE mappings for dirent.h
4458 structures and functions.
4459 * mingwex/dirent.c: Make _UNICODE neutral.
4460 * mingwex/wdirent.c: New file to define _UNICODE before
4462 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4463 (POSIX_OBJS): Add wdirent.o.
4464 (wdirent.o): Specify dependency on dirent.c as well as
4466 * samples/dirent/wtest.c: New file, wide version of test.c.
4468 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4470 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4471 ensure gcc include dir is searched despite -nostdinc.
4472 * profile/Makefile.in (INCLUDES): Likewise.
4473 * mingwex/Makefile.in (INCLUDES): Likewise.
4474 * include/stdarg.h: Replace with stub that just guards the
4475 real gcc system header with #ifndef RC_INVOKED
4476 * include/varargs.h: Likewise.
4477 * include/stddef.h: Likewise.
4478 * include/stdio.h: Include stdarg.h after defining
4480 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4481 Replace va_list with __VALIST throughout.
4483 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4485 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4486 * msvcrt.def (_fpreset): Mark as DATA so that only
4487 _imp___fpreset is exported.
4488 * msvcrt20.def (_fpreset): Likewise.
4489 * msvcrt40.def (_fpreset): Likewise.
4490 * crtdll.def (_fpreset): Likewise.
4491 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4493 (fpreset): Add alias.
4494 (__CRT_PC): Delete definition. _fpreset does it now.
4495 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4496 (fpreset): Add alias.
4497 (__CRT_PC): Delete definition.
4498 * moldname.def.in: Comment out fpreset.
4499 * moldname-msvcrt.def: Regenerate.
4500 * moldname-crtdll.def: Regenerate.
4501 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4502 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
4503 with the _fpreset determined by startup CRT_fp object.
4505 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
4507 * CRT_fp8.c: New file.
4508 * CRT_fp10.c: New file.
4509 * crt1.c (__CRT_PC) Declare.
4510 (__CRT_fesetenv): New static function, using _CRT_PC.
4511 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
4512 (_gnu_exception_handler): Likewise.
4513 * Makefile.in (CRT0S): Add CRT_fp10.o.
4514 (MINGW_OBJS): Add CRT_fp8.o.
4515 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
4516 Add CRT_fp8.o, CRT_fp10.o dependancies.
4517 * include/float.h (_fpreset): Expand comment.
4518 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
4519 (extended precison) environmemt.
4520 (FE_PC53_ENV): New define for MSVCRT default environmemt.
4521 (FE_DFL_ENV): Define as FE_PC53_ENV.
4522 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
4523 precision control for default environment.
4525 * include/math.h: Fix long comment line.
4526 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
4528 * profile/configure: Regenerate.
4530 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
4532 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
4534 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
4536 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
4537 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
4538 (__mingw_fseek): New function to work around Win9x f/lseek bug.
4539 (__mingw_fwrite): Likewise.
4540 (__mingw_is_win9x): New helper function.
4542 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
4543 (__mingw_fseek): New prototype and define to replace fseek.
4544 (__mingw_fwrite): New prototype and define to replace fwrite.
4545 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
4546 * moldname-crtdll.def: Remove CR from end of line.
4547 * moldname-msvcrt.def: Ditto.
4549 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
4551 * profile/configure.in (CRT0S): Configure name of gcrt?.o
4552 based on target, building gcrt0.o for cygwin -mno-cygwin.
4553 * profile/configure: Regenerate.
4554 * profile/Makefile.in (CRT0S): Use name from configure.
4555 (gcrt0.o): New rule.
4556 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
4558 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4560 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
4561 _fpecode): Remove prototypes copied from float.h.
4562 (nan, nanf): Move into block protected against RC_INVOKED
4564 * include/stdlib.h (_Exit): Change from static inline to
4566 * mingwex/_Exit.c : New file.
4567 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
4569 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4571 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
4572 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
4573 (configdirs): Likewise.
4574 (LIBGMON_A): Define for cygwin target as well.
4575 * configure: Regenerate.
4576 * profile/configure.in (THREAD_DLL): Remove define.
4577 (LIBM_A): Remove define.
4578 (LIBGMON_A): Define for cygwin target as well.
4579 * profile/configure: Regenerate.
4580 * profile/makefile.in (install): Install to inst_libdir and
4582 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
4583 (OPTFLAGS): New define.
4584 (ALL_CFLAGS): Add $(OPTFLAGS).
4585 (ALL_CXXFLAGS): Same.
4586 (.c.o:): Remove ALL_CXXFLAGS.
4588 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4590 * include/stdint.h: Add missing newline at eof.
4591 * include/stdio.h (snprintf): Add prototype.
4592 (vsnprintf): Add prototype and inline definition.
4593 (snwprintf): Add prototype.
4594 (vsnwprintf): Add prototype and inline definition.
4595 * include/wchar.h (snwprintf): Add prototype.
4596 (vsnwprintf): Add prototype and inline definition.
4597 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
4599 * mingwex/snprintf.c: New file.
4600 * mingwex/snwprintf.c: New file.
4602 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
4604 * configure.in: Add mingwex as SUBDIRS and configdirs.
4605 * configure: Regenerate.
4606 * Makefile.in (MINGW_OBJS): Remove dirent.o.
4607 (SRC_DIST_FILES): Remove dirent.c.
4609 * include/stdlib.h (_Exit): Add static inline
4611 (struct lldiv_t): Define.
4612 (lldiv): Add prototype.
4613 (llabs): Add extern inline function.
4614 (strtoll,strtoull): Add prototypes.
4615 (wcstol, wcstoul, wcstod): Group together.
4616 (strtof, wcstof): Add extern inline definitions.
4617 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
4618 and extern inline definitions.
4619 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
4620 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
4622 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
4623 (wcstof): Add extern inline definition.
4624 * include/math.h (nan, nanf): Add prototypes.
4625 (NAN, INFINITE): Define constants.
4626 (fpclassify, isnan ,signbit): Add macros and supporting float
4627 and double functions.
4628 (isfinite, isinf, isnormal): Add macros.
4629 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
4631 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
4632 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
4633 (copysign, logb, nextafter, scalb): Add prototypes and
4634 inline stubs for underscored versions in msvcrt.dll.
4635 * include/inttypes.h: New file.
4636 * include/fenv.h: New file
4638 Add new mingwex subdir and files.
4639 * mingwex: New directory.
4640 * mingwex/Makefile.in: New file.
4641 * mingwex/configure.in: New file.
4642 * mingwex/configure: Generate.
4643 * mingwex/dirent.c: Moved here from parent dir.
4644 * mingwex/atoll.c: New file.
4645 * mingwex/feclearexcept.c: New file.
4646 * mingwex/fegetenv.c: New file.
4647 * mingwex/fegetexceptflag.c: New file.
4648 * mingwex/fegetround.c: New file.
4649 * mingwex/feholdexcept.c: New file.
4650 * mingwex/feraiseexcept.c: New file.
4651 * mingwex/fesetenv.c: New file.
4652 * mingwex/fesetexceptflag.c: New file.
4653 * mingwex/fesetround.o: New file.
4654 * mingwex/fetestexcept.c: New file.
4655 * mingwex/feupdateenv.c: New file.
4656 * mingwex/fma.S: New file.
4657 * mingwex/fmaf.S: New file.
4658 * mingwex/fmax.c: New file.
4659 * mingwex/fmaxf.c: New file.
4660 * mingwex/fmin.c: New file.
4661 * mingwex/fminf.c: New file.
4662 * mingwex/fp_consts.c: New file.
4663 * mingwex/fpclassify.c: New file.
4664 * mingwex/fucom.c: New file.
4665 * mingwex/fwide.c: New file.
4666 * mingwex/imaxabs.c: New file.
4667 * mingwex/imaxdiv.c: New file.
4668 * mingwex/isnan.c: New file.
4669 * mingwex/isnanf.c: New file.
4670 * mingwex/lltoa.c: New file.
4671 * mingwex/lltow.c: New file.
4672 * mingwex/log2.c: New file.
4673 * mingwex/log2f.c: New file.
4674 * mingwex/math_stubs.c: New file.
4675 * mingwex/mbsinit.c: New file.
4676 * mingwex/rint.c: New file.
4677 * mingwex/round.c: New file.
4678 * mingwex/signbit.c: New file.
4679 * mingwex/sitest.c: New file.
4680 * mingwex/strtof.c: New file.
4681 * mingwex/strtoimax.c: New file.
4682 * mingwex/strtoumax.c: New file.
4683 * mingwex/testwmem.c: New file.
4684 * mingwex/trunc.c: New file.
4685 * mingwex/ulltoa.c: New file.
4686 * mingwex/ulltow.c: New file.
4687 * mingwex/wcstof.c: New file.
4688 * mingwex/wcstoimax.c: New file.
4689 * mingwex/wcstoumax.c: New file.
4690 * mingwex/wmemchr.c: New file.
4691 * mingwex/wmemcmp.c: New file.
4692 * mingwex/wmemcpy.c: New file.
4693 * mingwex/wmemmove.c: New file.
4694 * mingwex/wmemset.c: New file.
4695 * mingwex/wtoll.c: New file.
4697 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4699 * include/mbstring.h: New file.
4700 * include/mbctype.h: New file.
4702 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4704 * include/tchar.h (__TEXT): Make same as define in
4705 w32api/include/winnt.h.
4707 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4709 * include/tchar.h (_tputenv): Add UNICODE mappings.
4710 (_tsearchenv): Likewise.
4711 (_tmakepath): Likewise.
4712 (_tsplitpath): Likewise.
4713 (_tfullpath): Likewise.
4715 2002-04-18 Pascal Obry <obry@gnat.com>
4717 * dirent.c (opendir): Convert given pathname to
4720 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4722 * include/_mingw.h: Increment version.
4723 * Makefile.in: Ditto.
4725 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4727 * moldname-crtdll.def: Remove CR from end of line.
4728 * moldname-msvcrt.def: Ditto.
4729 * Makefile.in: Use bzip2 compression for Cygwin target.
4731 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
4733 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
4734 TLOSS, PLOSS): Move oldname defines back, following
4735 the underscored names.
4737 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
4739 * include/stdio.h (_snwprintf): Correct spelling.
4740 (_vsnwprintf): Likewise.
4741 * include/wchar.h (_snwprintf): Correct spelling.
4742 (_vsnwprintf): Likewise.
4744 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
4746 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
4747 (wpopen): Add if !(__CRTDLL__).
4748 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
4750 (moldname-crtdll.def rule): Likewise.
4751 * moldname-msvcrt.def: Regenerate.
4752 * moldname-crtdll.def: Regenerate.
4753 * include/stdio.h (wpopen):Use prototype, not a define.
4754 (_swnprintf): Add prototype.
4755 (_vswnprintf): Likewise.
4757 * include/wchar.h (_swnprintf): Add prototype.
4758 (_vswnprintf): Likewise.
4761 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
4763 * include/malloc.h (_heapinfo): Correct structure definition.
4764 (_USEDENTRY,_FREEENTRY): Add defines.
4765 Add comment on platform support for _heap* functions.
4766 (_get_sbh_threshold): Add prototype.
4767 (_set_sbh_threshold): Likewise.
4768 (_expand): Likewise.
4770 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4772 * profile/profil.c: Update copyright info.
4773 * profile/profil.h: Likewise.
4774 * profile/gcrt0.c: Likewise.
4776 2002-01-25 Pascal Obry <obry@gnat.com>
4778 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
4780 * profile/gmon.c: Define bzero as memset if mingw32.
4781 (monstartup): Use it.
4783 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4785 * include/tchar.h (_TCHAR): Add missing ;.
4787 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4789 * include/tchar.h (_TCHAR): Add typedefs.
4791 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4793 * include/stdlib.h (_onexit_t): Add typedef.
4794 (_onexit): Add prototype.
4796 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
4798 * msvcrt.def: Revert accidental change.
4799 * include/stdlib.h: Ditto.
4801 2001-12-07 Earnie Boyd <earnie@users.sf.net>
4803 * Makefile.in: Increment VERSION.
4804 * include/_mingw.h: Ditto.
4806 2001-12-05 Earnie Boyd <earnie@users.sf.net>
4808 * include/strings.h: New File.
4810 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
4812 * include/math.h (_FPCLASS* ): Add defines from float.h.
4813 (IEEE recommended functions): Add declarations from float.h.
4814 * include/float.h (_FPCLASS* ): Protect against redefinition.
4816 2001-11-29 Wu Yongwei <adah@netstd.com>
4818 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
4819 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
4820 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
4821 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
4822 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
4823 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
4824 Correct spelling of "disclaimed" in comments.
4825 * include/excpt.h: Another spelling correction.
4827 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
4829 * include/errno.h: Fix "errno is not a prototype" warning.
4831 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
4833 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
4834 differences between ANSI and non-ANSI versions.
4835 (_ctype[],_pctype): Declare vars.
4836 (__ISCTYPE): New helper macro using _pctype.
4837 (is* ctype functions): Use __ISCTYPE to define inline versions.
4838 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
4840 (isw* ctype functions): Inline definitions.
4841 * include/wctype.h (_ctype[],_pctype): Declare vars.
4842 (isw* ctype functions): Inline definitions.
4845 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4847 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
4848 __fpecode): Use __STDC__ prototypes.
4851 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
4853 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
4854 * mthr_init.c (DllMain) Run dtors if a process terminates.
4855 * mthr.c (__mingwthr_add_key_dtor) Removed.
4856 (___mingwthr_add_key_dtor) New.
4857 (___mingwthr_remove_key_dtor) New.
4858 (__mingwthr_run_key_dtors) Complete rewrite.
4859 (__mingwthr_remove_key_dtor) New.
4861 2001-11-05 Egor Duda <deo@logos-m.ru>
4863 * Makefile.in: Delete unused executable after creating base-files.
4865 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4867 * include/errno.h (_errno): Use __STDC__ prototype.
4868 Thanks to: Jim Barton.
4870 2001-11-04 "stefan" <stefan@lkcc.org>
4872 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
4874 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4876 * include/io.h (_commit): Add declaration.
4877 Thanks to: "stefan" <stefan@lkcc.org>
4879 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4881 * include/sys/stat.h: Make S_IS* macros safer.
4883 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4885 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
4887 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
4889 * include/stdlib.h (__p__environ, __p__wenviron): Use
4890 __STDC__ prototypes.
4892 2001-09-19 Earnie Boyd <earnie@SF.net>
4894 * Makefile.in: Remove the /usr from the install target.
4895 (VERSION): Increment.
4896 include/_mingw.h: Ditto.
4898 2001-09-17 Earnie Boyd <earnie@SF.net>
4900 * Makefile.in: Increment version.
4901 * include/_mingw.h: Ditto.
4903 2001-09-10 Earnie Boyd <earnie@SF.net>
4905 * dossh: Remove inadvertantly imported file.
4907 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
4909 * dirent.c (opendir): Use GetFileAttributes rather than stat
4910 to determine if input arg is dir.
4912 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
4914 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
4916 * include/varargs.h (va_list): Ditto.
4917 * include/stdio.h (va_list): Ditto.
4919 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
4921 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
4922 * include/stdio.h (_IORW): Change constant to 0x0080.
4923 (TMP_MAX): Add new define.
4925 (_wP_tmpdir): Ditto.
4926 (L_tmpnam): Change constant to 16.
4928 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
4930 * include/malloc.h: Fix non-ANSI comment after #endif.
4932 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4934 * profile/configure.in: Make msvcrt.dll version default.
4935 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
4936 * provile/configure: Regenerate.
4938 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
4940 * include/stdio.h (swscanf): Make first arugument const.
4941 * include/wchar.h (swscanf): Ditto.
4942 * include/tchar.h (_tfopen): New _UNICODE define.
4944 (_tsetlocale): Ditto.
4946 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
4948 * profile/Makefile.in (mkinstalldirs): Correct relative path.
4950 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
4952 * include/_mingw.h: Change version to 1.0.
4955 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
4957 * include/tchar.h: (__TEXT): Remove undef.
4961 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
4963 * include/tchar.h: (__TEXT): Add private macro.
4964 (_TEXT): Modify definition to use __TEXT.
4966 This change allows the passing of a MACRO as an argument and have that
4967 MACRO resolved first.
4968 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
4970 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
4972 * Makefile.in: Increment version to 0.5
4973 * include/_mingw.h: Increment minor version
4975 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
4977 * include/assert.h: (assert): Remove ; from end of definition
4978 Thanks to: AJ Reins <tbisp@qwest.net>
4980 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
4982 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
4983 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
4985 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
4987 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
4989 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
4991 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
4992 are actually C functions. These functions are resolved via the
4993 -lmsvcp60 library and comments were placed in the header.
4995 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4997 * include/stdlib.h (__p__pgmptr): add prototype.
4998 (__p__wpgmptr): likewise.
4999 (_pgmptr_dll): move declaration from dos.h.
5000 (_wpgmptr_dll): likewise.
5001 (_pgmptr): conditional define (MSVCT/CRTDLL).
5002 (_wpgmptr): likewise.
5003 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5004 (_os*_dll variables): likewise.
5005 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5006 (_wpgmptr_dll): likewise.
5008 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5010 * include/stdint.h: New file.
5012 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5014 * include/wchar.h: Protect prototypes only declared in the C++ STL
5015 from being declared unless __cplusplus is defined.
5017 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5019 * include/stdlib.h: Apply Danny Smith patch 102730
5020 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5021 (_wgetenv) Correction to return type.
5023 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5025 * include/locale.h: Apply Danny Smith patch 101834
5026 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5027 (LC_MIN) Add definition.
5029 (_wsetlocale) Add prototype.
5031 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5033 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5034 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5035 Create a libcoldname.a for the oldname library for CRTDLL.
5036 Restrict libmoldname.a for the oldname library for MSVCRT.
5037 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5038 Restructure the $target_os case logic.
5039 Always name the MinGW thread dll helper mingwm.
5040 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5041 * configure: regenerate.
5043 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5045 * Makefile.in: Fix bindist target to distribute the correct files.
5046 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5047 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5049 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5051 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5052 Add variables and targets to control binary and source distributions.
5053 Add variables and targets to control snapshot distribution.
5054 * profile/gmon.h: Add missing #endif for #ifndef.
5055 * profile/ChangeLog: Merge entries here and remove.
5056 * profile/Makefile.in: Add variables and targets to control
5060 * config.guess: ditto.
5061 * config.sub: ditto.
5062 * mkinstalldirs: ditto.
5063 * install-sh: ditto.
5064 * configure: regenerate.
5065 * profile/configure: ditto.
5067 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5069 * Merge in changes from
5070 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5071 * include/direct.h: add guard around MSVCRT-only prototytpes
5072 * include/io.h: add __int64 struct definitions and function prototypes;
5073 add guard for MSVCRT-only prototypes
5074 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5075 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5076 put wchar functions together to make sync with wchar.h easier
5077 * include/stdlib.h: add wide char functions (__MSVCRT__)
5078 * include/string.h: add string collation functions ( __MSVCRT__)
5079 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5080 * include/tchar.h: add macros and macro function definitions
5081 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5082 enclose more functions in __MSVCRT__ guard;
5083 some oldname wide char function prototypes #if (0)'d
5084 * profile/gmon.h: add guard around BSD-ish typedefs
5086 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5088 * Makefile.in: Use a different variable name for subdirectory since the
5089 previous one was used by the top level make.
5091 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5093 * Makefile.in: Install mingw stuff in a subdirectory if building under
5096 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5098 * Makefile.in (subdirs): Eliminate for loop.
5100 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5102 * Makefile.in (subdirs): Previous change did not fix problem in
5105 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5107 * Makefile.in: Avoid installing dll if we're cross building and the
5108 cross-host system isn't a Windows system.
5109 * configure.in: Detect cross-hosting situation and set appropriate
5110 variables in Makefile.in.
5111 * configure: Regenerate.
5113 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5115 * configure.in: Change HEADER_SUBDIR to mingw32.
5116 * configure: Regenerate.
5118 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5120 * include/string.h: Use proper prototype for _strerror.
5122 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5124 * Makefile.in (subdirs): Workaround for broken shells.
5126 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5128 * Snapshot 2000-02-03.
5130 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5131 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5132 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5133 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5136 * Makefile.in (all): Build CRT0S first.
5137 (libmingwthrd.a): Remove thread support DLL from dependency.
5139 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5141 * Snapshot 2000-01-21.
5143 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5145 Merge in changes from Cygwin:
5146 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5147 (SUBDIRS): Likewise.
5148 * Makefile.in (HEADER_SUBDIRS): New variable.
5149 (install): Use to install Mingw headers to a subdirectory if building
5151 (DLL_CC_STUFF): Add DLL entry point.
5152 * configure: Regenerate.
5154 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5156 * include/stdio.h (fsetpos): Fix prototype.
5157 (fpos_t): Fix for MSVCRT.
5158 * include/float.h (fpreset): Add prototype.
5159 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5161 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5162 export using libmoldname.a.
5163 * crtdll.def: Add DATA tags.
5164 * msvcrt.def: Likewise.
5165 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5166 both MSVCRT and CRTDLL.
5167 * moldname-crtdll.def: Regenerate.
5168 * moldname-msvcrt.def: Regenerate.
5170 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5172 * Snapshot 1999-12-21.
5174 * include/wctype.h: New file.
5175 * include/ctype.h (MB_CUR_MAX): Define.
5177 * include/stdlib.h (MB_CUR_MAX): Define.
5178 * include/wchar.h: Define stat, _stat structures here as well.
5179 * include/float.h: Add invalid subconditions (_SW) and floating
5180 point error (_FPE) macros.
5181 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5182 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5183 * include/sys/types.h: Likewise.
5185 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5187 * profile/profil.c (profile_on): Set the profiler thread priority to
5188 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5189 * Snapshot 1999-11-18.
5191 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5193 Released 1999-11-07.
5195 * Makefile.in (CRT0S): Add crtst.o.
5196 (install): Install in subdirs as well.
5197 * dirent.h (struct _stat): Rename from struct stat.
5198 * include/tchar.h: Add some new macros. Thanks to
5199 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5200 * profile/Makefile.in (install): Fix target.
5202 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5204 * Makefile.in: Add support for profile directory.
5205 * configure.in: Likewise.
5206 * configure: Regenerate.
5208 * profile: Imported profiling sources from winsup-19991026 snapshot.
5209 * profile/Makefile.in: New file.
5210 * profile/configure.in: New file.
5211 * profile/configure: Generate.
5212 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5213 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5214 * profile/gmon.c (unistd.h): Include conditionally.
5215 (sys/param.h): Likewise.
5216 * profile/mcount.c (sys/param.h): Likewise.
5217 * profile/profil.c (profile_on): thread id is DWORD, not int.
5220 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5222 * include/stdlib.h: Add wide character version of argv/environ.
5224 * include/wchar.h: More wide character prototypes.
5225 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
5227 * dllcrt1.c (init.c): Don't include.
5228 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
5229 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
5231 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
5233 * moldname.def: Remove file.
5234 * moldname.def.in: And add this.
5235 * moldname-msvcrt.def: Generate from moldname.def.in.
5236 * moldname-crtdll.def: Likewise.
5238 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
5239 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
5240 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
5242 * Makefile.in: Update.
5243 * configure.in: Likewise. Also add *cygwin* target for building
5244 under Cygwin winsup.
5245 * configure: Regenerate.
5247 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
5249 * include/_mingw.h: Add version macros.
5250 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
5251 Also add wide character versions shared with wchar.h.
5252 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
5253 * include/io.h (sopen, _sopen): Fix prototype.
5254 Add wide character prototypes.
5255 * include/wchar.h: Likewise.
5256 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
5257 underscored versions. Potential incompatibility.
5258 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
5259 Add wide character prototypes.
5260 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
5263 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
5265 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
5266 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
5268 * configure: Rengerate.
5269 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
5270 dll name and crt's. CRTDLL and MSVCRT are meant to created
5271 separately, so remove all the *-msvcrt* targets.
5272 (libmingwthr.a): New target. Dummy thread support archive.
5273 (LIBS): Add libmingwthr.a.
5274 (CRT0S): Use CRT_ID. Add crtmt.o.
5275 (MINGW_OBJS): Add crtst.o.
5276 * main.c (WinMain): Fix prototype.
5277 * crtmt.c: New file.
5278 * crtst.c: New file.
5280 * include/process.h (_beginthreadex): Fix prototype.
5281 * include/_mingw.h (__int64): Define for __GNUC__.
5282 * include/tchar.h (_ttol): Add macro.
5283 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
5284 _i64tow, _ui64tow, _wtoi64): Add prototypes.
5286 Reported by Emanuele Aliberti <ea@iol.it>:
5287 * include/tchar.h (_ttoi): Add macro.
5289 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
5290 * include/stdio.h (_snprintf): Add prototype.
5291 (_vsnprintf): Likewise.
5293 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
5295 Reported by Tor Lillqvist <tml@iki.fi>:
5296 * include/stdlib.h (__p___argv): Fix return type.
5298 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5301 * include/errno.h (errno): It's linked in from startup, not imported.
5302 * include/stdlib.h (errno): Likewise.
5303 * include/io.h: Guard against conflicting macros and prototypes in
5305 * include/stdlib.h: Likewise.
5306 * include/string.h: Likewise.
5307 * include/time.h: Likewise.
5309 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5311 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
5312 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
5313 * Makefile.in (INCLUDES): Remove old windows32 include directory.
5315 * crt1.c (_gnu_exception_handler): Fix prototype.
5316 (__mingw_CRTStartup): New function based on mainCRTStartup.
5317 (mainCRTStartup): Set the app type for MSVCRT and call
5319 (WinMainCRTStartup): Likewise.
5320 * init.c (_startupinfo): Define.
5321 (_getmainargs): Add 5th parameter.
5322 (_mingw32_init_mainargs): Use.
5324 * ALL *.c files: Reformat according to GNU coding style.
5326 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
5328 * Makefile.in (INCLUDES): Add w32api include directory.
5330 * include/_mingw.h: New file.
5331 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
5332 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
5333 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
5334 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
5335 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
5336 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
5338 * include/stdlib.h (atexit): Fix prototype.
5340 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
5342 * include/stdio.h (_tempnam): Fix prototype.
5343 (tempnam): Likewise.
5344 * include/stdlib.h: Replace with GCC's version, and guard
5347 From Anders Norlander <anorland@hem2.passagen.se>:
5348 * include/stdlib.h (__argc): Declare.
5351 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
5353 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
5355 * Makefile.in (_libm_dummy.o): New target.
5358 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
5360 * Released 1999-03-16 along with egcs-1.1.2.
5362 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
5364 * Makefile.in (LIBS): Add libm.a.
5365 (libm.a): Dummy libm.a.
5367 * Makefile.in: Update from winsup 1999-02-08 snapshot.
5368 Preserve local changes.
5369 (mkinstalldirs): In ../, not ../../.
5370 (INCLUDES): Point to local windows32api headers and use -nostdinc.
5372 (LIBS): Add libmoldname-msvc.a.
5373 (libmoldname-msvc.a): Add target.
5374 (distclean): Add target.
5376 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5378 * include/dir.h: Reintroduce as an obsolescent header.
5379 * crt1.c (signal.h): Include.
5380 (_gnu_exception_handler): New function to properly handle win32
5381 asynchronous signals.
5382 (mainCRTStartup): Use.
5384 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5386 * include/direct.h: Include io.h instead of dir.h
5387 * include/dirent.h: Likewise.
5388 * include/dos.h: Likewise.
5389 * include/stdio.h: Replace reference to dir.h with io.h.
5391 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5393 * 1999-01-01 release bundled with egcs-1.1.1.
5395 * include/io.h: Incorporate dir.h.
5396 * include/dir.h: Remove.
5397 * include/signal.h: Move RC_INVOKED up a bit.
5399 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5401 * include/signal.h (sig_atomic_t): Define.
5403 * include/malloc.h: Import defs from deprecated alloc.h.
5404 * include/alloc.h: Remove.
5406 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5407 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5408 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5409 _off_t instead of long for st_size.
5411 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5413 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5414 * include/stdlib.h: Here.
5416 * include/netdb.h: Remove.
5417 * include/arpa/inet.h: Remove.
5418 * include/netinet/in.h: Remove.
5419 * include/sys/socket.h: Remove.
5421 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5425 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5426 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5428 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5430 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5431 (jmpbuf): typedef using above.
5432 (setjmp, longjmp): Prototype using jmpbuf.
5434 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5435 obsolescent imported names, ie., from __imp__ to _imp___.
5437 Also ignored empty include/sys/param.h and incorrect
5438 include/sys/times.h.
5440 * CRTinit.c: New file.
5441 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5443 * include/io.h (umask): Fix prototype.
5444 * include/stdlib.h (OS constants): Replace with Colin's.
5445 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5446 * include/sys/state.h: Merge.
5448 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5450 * include/assert.h (assert): Lose the trailing semicolon.
5452 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5454 * include/math.h (matherr): Declare.
5455 * include/stdio.h (fileno, _fileno): Declare.
5456 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5459 * include/stdio.h (fdopen, _fdopen): Add const.
5460 (getw, putw): Declare.
5461 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5463 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5465 * include/time.h (_timezone): Undefine.
5466 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5468 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5470 * include/stdlib.h (environ): Use DLL version.
5471 * init.c (environ): Undefine it before use.
5473 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5475 * Update to 980309 snapshot from Colin Peters.
5477 * include/utime.h: remove
5478 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5479 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5480 patches to define these.
5481 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5482 (_daylight, _timezone, _tzname, _tzset): Define.
5484 * include/netdb.h: Add from Colin's windows32api changes.
5485 * include/sys/socket.h: Likewise.
5486 * include/arpa/inet.h: Likewise.
5487 * include/netinet/in.h: Likewise.
5489 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5491 * Update to 980128 snapshot from Colin Peters.
5493 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5495 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5497 * configure: Regenerate.
5499 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5501 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5502 Files renamed and include hierarchy loses directories named
5505 * include/dos.h: from Jan-Jaap.
5507 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
5509 Changes to conform to FSF tree.
5511 * crt1.c: Renamed from mcrt0.c.
5512 * dllcrt1.c: Renamed from dllcrt0.c.
5513 * Makefile.in: Update above. Also renamed libmoldnames.a to
5516 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
5518 * crtdll.def: Export all functions but the ones with funny names.
5519 * moldnames.def: Add fdopen since fileno is already there.
5520 * include/nonansi/dos.h: New file from Jan-Jaap.
5521 * include/errno.h: Add extern decl + various additions from JJ.
5522 * include/stdio.h: Likewise.
5523 * include/stdlib.h: Likewise.
5524 * include/nonansi/io.h: Likewise.
5525 * include/nonansi/process.h: Likewise.
5526 * include/sys/types.h: Likewise.
5528 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5530 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5532 * include/stdlib.h (free): Fix prototype to return void, not void*.
5533 * include/nonansi/process.h: Add P_* and WAIT_* defs.
5535 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
5536 * mcrt0.c: Likewise.
5538 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
5539 (libmoldnames.a): Add explicit rule to create it.
5541 1997-08-15 Rob Savoye <rob@cygnus.com>
5543 New directory for the minimalist cygwin environment.
5545 * crtglob.c: New file. Turn on file globbing support.
5546 * crt_noglob.c: New file. Turn off file globbing support.
5547 * ctype_old.c: New file. Wrappers for functions that don't
5549 * dirent.c: New file. Directory routines readdir, opendir, closedir.
5550 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
5551 * dllmain.c: New file. A stub DllMain function.
5552 * hugeval.c: New file. A gross hack to define HUGE_VAL.
5553 * init.c: New file. Common code to initialize standard file
5554 handles and command line arguments.
5555 * main.c: New file. A main for programs that only call WinMain.
5556 * mcrt0.c: New file. Default crt0 for mingw32.
5557 * oldnames.c: New File. Wrappers for functions that don't
5559 * string_old.c: New File.
5560 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
5561 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
5562 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
5563 * include/sys/types.h: New header file for mingw.
5564 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
5565 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
5566 utime.h,values.h,varargs.h}: New header files for mingw.
5567 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
5568 timeb.h,unistd.h}: New header files for mingw.
5569 * Makefile.in,configure.in: Build and configure support.
5570 * configure: Generated from autoconf 2.12 with Cygnus patches.