1 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Refactor <time.h> vs. <wchar.h> to avoid duplication.
5 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
6 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
7 (struct tm): Delete definition; delegate it, together with each of...
8 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
9 (wcsftime): ...these function prototypes; delete them, but note in
10 comments, that they remain declared, via delegation to...
11 * include/time.h: ...this; include it selectively, subject to...
12 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
13 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
14 [_TIME_H]: Process all definitions and declarations; otherwise...
15 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
16 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
17 (_WTIME_DEFINED): Obsolete macro; delete all references.
19 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
21 Implement support for POSIX "%n$*m$" printf() format control.
23 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
24 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
25 (__pformat_inline__): New macro; define, and use it where appropriate.
26 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
27 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
28 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
29 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
30 (__pformat_argmap_t): ...this new union data type; define it.
31 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
32 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
33 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
34 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
35 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
36 (__pformat_length_modifier, __pformat_check_length_modifier): New
37 locally defined static and/or inline functions; implement, and...
38 (__pformat): ...use them.
40 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
42 Add prototypes for Microsoft's _printf_p() family of functions.
44 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
45 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
46 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
47 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
48 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
49 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
50 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
51 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
52 available for selective inclusion by both <stdio.h> and <wchar.h>...
53 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
55 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
57 Adapt msvcrt-xref to become msvcrt.def.in provider.
59 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
60 filter value assignment; scale it upwards, by a factor of 0x10000.
61 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
62 (%.def) [msvcr*]: Do not preserve comments; define...
63 (__DLLNAME__): ...this preprocessor symbol.
65 * msvcrt.def.in: Content is obsolete; delete file and replace with...
66 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
67 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
68 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
69 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
70 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
72 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
74 Import msvcrt-xref documentation resources.
76 * msvcrt-xref: New directory.
77 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
78 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
79 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
80 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
82 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
84 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
86 * include/wchar.h: Some minor layout adjustments.
87 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
88 within the scope of reading <wchar.h>; undefine it at end of file.
89 (struct tm): Do not define; it is sufficient to keep it opaque.
90 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
91 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
92 directly; delegate to indirect definition by including <stdio.h>.
93 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
94 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
95 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
96 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
97 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
98 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
99 indirectly, by selective inclusion from <stdio.h>; hence include it.
101 * include/stdio.h: Assert copyright; tidy layout.
102 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
103 (_STDIO_H): ...this, but defined conditionally, subject to...
104 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
105 entities which are required by <wchar.h>; do not define...
106 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
107 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
108 are normally specified within <stdio.h>, INCLUDING those specifically
109 itemised above, as selectively required by <wchar.h>.
111 * pseudo-reloc.c: Some minor layout adjustments.
112 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
113 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
114 include <stdint.h> to guarantee it.
116 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
118 Enable selective definition of POSIX system types.
120 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
121 any specific __need_TYPE selector having been set prior to inclusion;
122 DO define it when no such selector is present, and undefine all such
123 selectors as may have been set, after evaluation of their effects.
124 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
125 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
126 accommodates reorganization of the file, to achieve a tidier layout.
127 (__have_typedef_off_t): New repeat definition guard; define it for
128 compilers which may choke on any repeated typedef for either of...
129 (off_t, _off_t): ...these; make them selectively defineable for...
130 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
131 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
132 in either case, redefine them in terms of...
133 (__off32_t): ...this new internal type, for consistency with...
134 (__off64_t): ...this previously defined non-standard type; also make
135 it selectively defineable, either by...
136 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
137 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
138 (__have_typedef___off64_t): New repeat definition guard; define it.
139 (ssize_t, _ssize_t): Also make them selectively defineable, on...
140 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
141 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
142 (__have_typedef_ssize_t): New repeat definition guard; define it.
144 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
146 Avoid user namespace pollution by non-standard type 'off64_t'.
148 * include/sys/types.h (off64_t): Rename it as...
149 (__off64_t): ...this implementation-private alternative name, so
150 eliminating the potential for user namespace pollution.
152 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
153 return type, and type of offset argument, in both prototype and inline
154 implementation; note that this addresses the issue of pollution in the
155 user namespace, while avoiding the issue of MinGW-Bug [#].
157 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
158 instead of 'off64_t', as offset argument type in function prototypes.
159 (ftello64): Likewise, for return type of inline function.
161 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
162 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
163 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
165 * mingwex/stdio/fseeko64.c: Assert copyright.
166 (fseeko64): Use '__off64_t' per modified function prototype.
168 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
170 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
172 * mingwex/ofmtctl.c: New file; it implements...
173 (_mingw_output_format_control): ...this new function; it provides
174 additional MinGW specific printf() format processing options.
176 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
178 * include/stdio.h (_mingw_output_format_control): Declare it.
179 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
180 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
181 manifest constant expressions; define them.
183 * mingwex/stdio/pformat.c: Revise licensing terms.
184 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
185 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
186 modifier; this matches the behaviour specified by ISO-C99, else...
187 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
188 previous MSVC compatible behaviour, treating it as an `L' modifier.
189 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
191 * mingwex/ofmt.c (ARGLIST): Subsume references to...
192 (ARGTYPE): ...this now obsolete macro; delete it throughout.
193 (update_output_format_flag): New inline function; it restricts flag
194 operations to affect only Microsoft's exponent digit bits.
195 [FUNCTION == _set_output_format]: Use it.
196 [FUNCTION == _get_output_format]: Likewise.
198 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
200 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
202 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
203 defined, when implied by any STDC or POSIX version selection, viz. ...
204 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
206 * include/stdlib.h: Assert copyright; tidy layout.
207 (_STDLIB_H_): Multiple inclusion guard macro renamed...
208 (_STDLIB_H): ...to this, preferring no trailing underscore.
209 [!defined __NO_ISOCEXT]: Delete double negative references; use...
210 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
211 (lldiv_t): ...defining this C99 specific aggregate data type, and...
212 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
213 (wcstold, _Exit): ...declaring these C99 function prototypes.
214 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
215 future removal; not in MSVCRT.DLL, these conform to no known standard.
216 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
217 (__strtod): ...this libmingwex.a provided function; it handles string
218 representations of hexadecimal-floats, infinities and NaNs, whereas...
219 (strtod): ...this MSVCRT.DLL implementation does not.
220 (__MSVCRT_VERSION__): Prefer symbolic comparison...
221 [>= __MSVCR80_DLL]: ...for this requirement.
223 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
225 Rationalize definition of struct timespec.
227 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
228 tv_sec field, in place of anonymous union, thus avoiding missing brace
229 warnings when initializing; leave a copy of the previous definition...
230 (struct __mingw32_expanded_timespec): ...named thus.
232 * include/unistd.h (nanosleep): Adjust inline implementation, to match
233 altered specification of tv_sec field in struct timespec.
235 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
236 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
238 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
239 convenience function; defined as inline, with __LIBIMPL__ equivalent,
240 it facilitates interpretation of an instance of struct timespec as if
241 it were defined as struct __mingw32_expanded_timespec.
243 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
245 Make strings.h mostly POSIX.1-2008 compliant.
247 * include/strings.h: Rewritten. Do not include...
248 (string.h): ...this; mandated by POSIX.1, it now defines...
249 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
250 prototypes, possible in-line implementations, and JMPSTUB references
251 to corresponding external implementations, which will now become
252 automatically created within libmingwex.a
254 * include/parts/strings.h: New file; it declares prototypes for...
255 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
256 string.h, but we also require them in strings.h
258 * include/parts/wchar.h: New file; it declares prototypes for all wide
259 character functions which MSVC specifies in both wchar.h and string.h
261 * include/string.h: Miscellaneous layout adjustments.
262 (strcasecmp, strncasecmp): Delete; they belong in strings.h
263 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
264 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
265 include them from parts/wchar.h instead.
267 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
268 prototypes; include them from parts/wchar.h instead, so making this
269 guard macro redundant; delete it.
271 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
272 (wcscmpi.$OBJEXT): Implementations are now automatically generated
273 from header file, for inclusion in libmingwex.a; remove free-standing
274 implementations from the entire family of liboldname libraries, and...
275 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
276 files; they are no longer required.
278 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
280 Incorporate build system updates from w32api package.
282 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
283 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
284 (install-strip, uninstall): New make command goals; implement them.
285 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
286 (devdist, dlldist): ...these have no need to strip explicitly.
287 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
288 (install-mingwrt-headers): ...here.
290 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
292 Adapt platform feature checks to NTDDI_VERSION conventions.
294 * include/_mingw.h: Assert copyright; include w32api.h
295 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
296 to w32api/include/w32api.h, whence they remain in effect.
297 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
299 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
301 Correct mismatched #if/#endif from preceding commit.
303 * include/_mingw.h (#pragma GCC system_header)
304 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
305 correcting for inadvertent removal of matching #endif introduced by
306 preceding 2015-06-19 commit.
308 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
310 Define symbolic names for alternative Microsoft runtime DLLs.
312 * include/msvcrtver.h: New file; it assigns a value for...
313 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
314 (__MSVCR60_DLL): ...this new manifest constant, with each of...
315 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
316 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
317 ...these also defined, as user assignable alternatives.
319 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
320 to establish its default value.
322 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
324 Track dependencies on modified system header files.
326 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
328 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
330 Correct an anomaly in stage 1 only build procedure.
332 * Makefile.in (all-gcc): New goal; it is an alias for...
333 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
334 (all-mingwrt-stage-1-only): ...this; upate all references.
335 (active-goals): Adjusted accordingly; it now reguires...
336 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
337 (install): Adjusted, as directed by...
338 (DEFAULT_MAKECMDGOALS): ...this.
340 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
342 Prefer our hypot() implementation in complex maths operations.
344 * mingwex/complex/cabs_generic.c: New file; it replaces...
345 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
346 * mingwex/complex/cabsl.c: ...these.
348 * mingwex/complex/catan_generic.c: New file; it replaces...
349 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
350 * mingwex/complex/catanl.c: ...these.
352 * mingwex/complex/clog_generic.c: New file; it replaces...
353 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
354 * mingwex/complex/clogl.c: ...these.
356 * mingwex/complex/cpow_generic.c: New file; it replaces...
357 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
358 * mingwex/complex/cpowl.c: ...these.
360 * mingwex/complex/csqrt_generic.c: Do not use...
361 (_hypot): ...this Microsoft form of function reference; use...
362 (hypot): ...this ANSI standard form instead.
364 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
366 Correct C++ compilation anomaly with hypotf() in cmath header.
368 * include/math.h: Add copyright notice; generally tidy layout.
369 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
370 (hypotf): Delete inline implementation; it did not properly handle
371 range errors, and was uncompilable with optimization when any g++
372 option implying __STRICT_ANSI__ conformity was specified.
373 (_MATH_H_): Rename this multiple inclusion guard...
374 (_MATH_H): ...to this.
376 * mingwex/math/hypot_generic.c: New file; it implements...
377 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
378 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
380 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
382 Prepare and tag all files for release of mingwrt-3.21.1.
384 * configure.ac (AC_INIT): Adjust package version argument.
385 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
386 (__MINGW32_VERSION): ...increment this to match.
388 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
390 Refactor to avoid possible time_t conflicts across headers.
392 * include/parts/time.h (struct timespec): Make it more descriptive of,
393 and better able to accommodate, potential ambiguity relating to...
394 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
395 whence they may be identically imported into each of...
396 * include/sys/types.h include/time.h include/wchar.h: these; delete
397 duplicate typedefs, and import accordingly.
399 * include/sys/types.h: Add licence; general comment additions.
400 (_TYPES_H_): Rename multiple inclusion guard macro...
401 (_SYS_TYPES_H): ...to this.
403 * include/time.h: Add licence; general comment/layout adjustments.
404 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
405 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
406 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
407 (_TIME_H_): Rename multiple inclusion guard macro...
408 (_TIME_H): ...to this.
410 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
411 (struct timespec): ...of this.
413 * include/wchar.h: Add licence; general comment/layout adjustments.
414 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
415 [GCC] (system_header): Add pragma, identifying header as such.
416 (_WCHAR_H_): Rename multiple inclusion guard macro...
417 (_WCHAR_H): ...to this.
419 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
421 Remove obsolete varargs.h header file.
423 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
424 a GCC header which is no longer supported, and was always intended for
425 ultimate removal; now is the long overdue time to do so.
427 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
429 Correct improper unistd.h function attribute declarations.
431 * include/unistd.h (_cdecl): Correct usage throughout; should be...
434 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
436 Fix GLOB_DOOFFS initialization bug.
438 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
439 (gl_data->gl_offs): ...this is properly initialized to zero.
441 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
443 Tag all files for release of mingwrt-3.21.
445 * include/_mingw.h: Adjust version accordingly.
447 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
449 Improve usage notes in stdlib.h, for mkstemp() function.
451 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
452 an original comment, explaining the need to use _O_TEMPORARY, from...
453 * mingwex/mkstemp.c: ...here; delete trailing white space.
455 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
457 Eliminate some potential definition inconsistencies.
459 * include/stdio.h: Cosmetic formatting change, relating to...
460 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
461 unconditionally; this allows the compiler to check for consistency
462 with their primary definitions in stdio.h
464 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
466 Suppress expected warning diagnostics in LIBIMPL builds.
468 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
469 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
470 GCC flag to supress warnings relating to deprecated declarations.
472 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
474 Provide more POSIX conforming sleep() functions.
476 * include/sys/types.h (useconds_t): Make it explicitly long; int may
477 be okay, but doesn't guarantee enough bits; mark as deprecated, since
478 POSIX has declared it "obsolete", and no longer specifies it.
480 * mingwex/usleep.c: Delete file; it provided an implementation of...
481 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
482 its error handling was hopelessly broken; replace it with...
483 * mingwex/nsleep.c: ...this new file; it implements...
484 (__mingw_sleep): ...this generic helper function; it supports sleep
485 capability with interval specification to nanosecond precision.
487 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
488 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
489 (sleep, nanosleep): ...these current POSIX functions, and also...
490 (usleep): ...this obsolete one; mark it as deprecated.
492 * include/parts: New directory; it is intended to host partial header
493 implementations, for content which must be shared among arbitrary sets
494 of multiple standard header files.
496 * include/parts/time.h: New file; nominally declaring time.h content.
497 (struct timespec): Declare it; it is currently used within unistd.h,
498 to facilitate the __CRT_INLINE implementation of nanosleep().
500 * Makefile.in (libmingwex.a): Remove reference to...
501 (usleep.$OBJEXT): ...this; replace it with a reference to...
502 (nsleep.$OBJEXT): ...this alternative.
503 (mingwrt-includedirs): Add prerequisite to create...
504 ($includedir/parts): ...this new directory; it is populated by...
505 (install-mingwrt-headers): ...this rule; add requisite command.
507 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
509 Delete an unnecessary Unicode wrapper file.
511 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
512 UTF-16LE API from dirent.c, without any need for this wrapper.
514 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
516 Some further inline function rationalization.
518 * include/io.h (_CRTALIAS): Replace all references...
519 (__CRT_ALIAS): ...using this syntactically preferred form.
520 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
521 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
523 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
524 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
526 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
527 * mingwex/ftruncate.c: Likewise.
529 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
530 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
532 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
534 Some POSIX feature test adjustments.
536 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
537 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
538 (mkdtemp): This didn't become available until SUSv4, so requires...
539 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
541 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
543 Another CRT_INLINE function implementation rationalization.
545 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
546 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
547 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
549 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
550 (libmingwex.a): Delete obsolete dependency on...
551 (imaxabs.$OBJEXT): ...this.
553 * mingwex/imaxabs.c: File is now redundant; delete it.
555 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
557 More rationalization of CRT_INLINE function implementations.
559 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
560 (ftello64): Add __LIBIMPL__ specification for extern implementation.
561 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
563 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
564 * mingwex/stdio/ftell064.c: Likewise.
566 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
567 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
569 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
571 Don't implicitly define _POSIX_C_SOURCE too early.
573 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
574 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
575 that it is not accidentally activated by implied _POSIX_C_SOURCE.
577 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
579 Correct complex arcsin computation per issue [#2245].
581 * mingwex/complex/casin_generic.c: New file; it replaces...
582 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
583 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
585 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
587 Correct complex square root computation per issue [#2246].
589 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
590 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
591 (hypot): ...this libmoldname.a indirection.
593 * mingwex/complex/csqrt_generic.c: New file; it replaces...
594 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
595 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
597 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
599 Adjust header guards to resolve issue [#2244].
601 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
602 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
603 ...when any of these prevail, or as appropriate to correspond with...
604 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
606 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
607 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
608 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
609 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
611 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
613 Add implementation of mkstemp() and mkdtemp() functions.
615 * mingwex/cryptnam.c: New file; it implements...
616 (__mingw_crypto_tmpname): ...this helper function; it generates a
617 cryptographically secure sequence of characters, used as the random
618 component in temporary file and directory names.
620 * mingwex/mkstemp.c: New file; it implements...
621 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
623 * mingwex/mkdtemp.c: New file; it implements...
624 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
626 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
627 function implementation, with LIBIMPL extern semantics, in terms of...
628 (__mingw_mkstemp): ...this; also declare prototype, and define...
629 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
630 (_MKSTEMP_SETMODE): New macro; define it, also providing...
631 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
632 (mkdtemp): Declare prototype; provide inline implementation, with
633 JMPSTUB extern semantics, in terms of...
634 (__mingw_mkdtemp): ...this; declare prototype.
636 * Makefile.in (libmingwex.a): Add dependency rule, to include...
637 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
639 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
641 More JMPSTUB rationalization of inline functions.
643 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
644 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
645 appropriate MSVCRT.DLL equivalent entry point.
647 * mingwex/_Exit.c: File is now redundant; delete it.
648 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
649 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
651 * Makefile.in (jmpstub_awk_script): Add support for...
652 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
653 (libmingwex.a): Remove dependencies on deleted files, namely...
654 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
655 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
657 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
659 Correct omission of complex conjugate functions from libmingwex.a
661 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
662 (creal, crealf, creall): Likewise, for consistency of implementation.
663 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
665 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
666 declarations; they should be interpreted analogously to __CRT_ALIAS.
667 (libmingwex.a): Remove object file references for functions which are
668 now declared as LIBIMPL, and sort the remainder in ASCII collating
669 order; deleted function references comprise the set consisting of...
670 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
671 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
672 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
674 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
675 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
676 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
677 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
678 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
680 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
682 Back-port improved asinh() implementation from 4.0-dev branch.
684 * mingwex/math/asinh_generic.c: New file; it replaces...
685 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
686 ...all of these; delete them.
688 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
690 Enable remake of lost LIBIMPL object files.
692 * Makefile.in (libimpl_remake): New macro; define it, and...
693 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
695 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
697 Implement more robust _get_output_format fallback handling.
699 * mingwex/ofmt.c: New file; it implements...
700 (__mingw_output_format_flag): ...backing store, used by...
701 (__mingw_get_output_format, __mingw_set_output_format): ...these
702 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
703 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
704 version specific Microsoft APIs, which are also supported by some
705 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
706 (__mingw_get_output_format_fallback): Implement; it is aliased to...
707 (__mingw_set_output_format_fallback): ...this; together they provide
708 the emulation support for the preceding pair of functions, when they
709 are not available within the run-time platform MSVCRT.DLL
710 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
711 Implement them; they wrap, and if necessary emulate...
712 (_get_printf_count_output, _set_printf_count_output): ...these.
713 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
714 (__mingw_set_printf_count_output_fallback): ...this; together they are
715 required to support emulation of the preceding pair of functions, when
716 they are not available within the run-time platform MSVCRT.DLL
718 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
719 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
720 (__mingw_get_output_format, __mingw_set_output_format)
721 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
722 Unconditionally declare their prototypes, for subsequent inline use.
723 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
724 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
725 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
726 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
727 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
728 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
729 represent a compilable token.
731 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
732 _get_output_format; consult __mingw_output_format_flag directly.
734 * ofmt_stub.s: No longer required; delete it.
736 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
737 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
738 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
739 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
740 all are compiled from ofmt.c
742 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
744 Do some more essential build tree clean up.
746 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
747 in the way of a successful rebuild from clean.
749 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
751 Implement wrappers for emulation of POSIX dlfcn API.
753 * include/dlfcn.h: New file; it declares the API.
754 * mingwex/dlfcn.c: New file; implement it, with access via...
755 (__mingw_dlfcn): ...this publicly addressable vector table.
757 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
758 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
759 (__LIBIMPL__): ...this automatic interface generator; implement it.
760 (libstub_refnames): New macro; it is adapted from and replaces...
761 (jmpstub_refs): ...this; when it is then invoked twice to build...
762 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
763 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
764 (libimpl_awk_script): New inline script; it handles automated builds
765 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
766 (libimpl_sed_script): New inline script; it prepares intermediate C
767 source code for LIBIMPL interfaces, as required to satisfy these...
768 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
769 (LIBIMPL_CFLAGS): New macro; define it.
771 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
773 Move libgen functions to __mingw_ pseudo-namespace.
775 * mingwex/dirname.c (dirname): Rename function, as implemented...
776 (__mingwex_dirname): ...to this.
778 * mingwex/basename.c (basename): Rename function, as implemented...
779 (__mingwex_basename): ...to this.
781 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
782 prototypes, matching and augmenting original declarations for...
783 (dirname, basename): ...these; reimplement as inline aliases, with
784 __JMPSTUB__ references to the renamed implementation entry points.
786 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
788 Implement new command line argument globbing strategy.
790 * include/_mingw.h: Backport feature defines from master...
791 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
792 constants; define them. They select the preferred globbing algorithm.
793 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
794 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
795 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
796 they enable optional additional features supported by this algorithm.
797 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
799 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
801 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
802 * setargv.c: ...new file; it implements the initialization mechanism
803 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
804 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
805 it invokes the algorithm via an API similar to that described by MSDN,
806 while continuing to support our original _CRT_glob interpretation.
807 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
808 algorithm, via the MSDN-alike API, by calling back to...
810 * crt1.c (_mingw32_init_mainargs): ...this original function, now
811 relocated to here, as a publicly addressable function; formerly...
812 (__mingw_CRTStartup): ...called directly from here, we now redirect
813 the call through _setargv(), whence it may be called indirectly.
815 * init.c: Redundant file; delete it. It originally provided...
816 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
817 original static attribute removed, to allow global addressing.
819 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
821 Backport glob implementation from master to legacy.
823 * include/glob.h: New file; copy it from master branch.
824 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
825 (glob, globfree): ...each of these, respectively.
827 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
828 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
829 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
830 (accept_glob_nocheck_match): New static function; it adds support for
831 avoidance of globbing on patterns with no globbing token, so avoiding
832 the case transliteration effect reported as MinGW-Bug #2106.
833 (glob_match): Use it.
835 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
837 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
839 Implement conventionally named dirent function trampolines.
841 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
842 which redirects a conventionally named function call to its __mingw_
843 pseudo-namespace implementation.
845 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
846 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
847 appropriate protocol for compiling *.sx files, (supported natively by
848 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
850 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
851 yet provide it, so we define it ourselves; deploy it for *.sx files.
852 (Makefile.stub): New sinclude file; create it dynamically, using...
853 (jmpstub_awk_script): ...this new inline script, which is based on...
854 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
855 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
856 (mostlyclean-local): Remove Makefile.stub; do likewise...
857 (Makefile): ...when remaking this, to ensure that both will be
860 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
862 Make dirent implementation namespace and time_t clean.
864 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
865 macros; define them. They facilitate identification of symbols which
866 must be compiled with `extern "C"' binding, when compiling C++ code.
867 (__CRT_ALIAS): New macro; define it. It is intended to replace...
868 (_CRTALIAS): ...this, which is to be considered as deprecated.
869 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
870 __CRT_ALIAS build hints, while remaining transparent to GCC.
871 (UNICODE, _UNICODE) [user defined]: Define consistently.
873 * mingwex/dirent.c: Reimplement; (this is a back-port from the
874 4.0-dev branch, with additional ABI changes to improve stability).
875 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
876 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
877 Add `__mingw_' prefix to all publicly exposed symbol names.
878 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
879 implemented functions; they replace Microsoft's ambiguously defined
880 _findfirst, _findnext, and _findclose, so avoiding ABI instability
881 resulting from the ambiguous size of Microsoft's time_t.
883 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
884 removing unnecessary time_t and file size fields; (our replacements
885 for _findfirst, and _findnext do not require them to be present).
886 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
887 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
888 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
889 Adjust prototypes, making them inline aliases for public symbols which
890 are now qualified by the `__mingw_' prefix; add build hints to support
891 compilation of addressable stubs, with the original symbol names.
892 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
893 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
894 BSD compatibility, but are fundamentally unsupported on MS-Windows).
895 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
896 New macros; define them. (These show availability of optional fields
897 within the dirent struct, which client code may wish to access).
899 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
901 Correct improper naming of assembly language source files.
903 * mingwex/math/*.S: Rename all files with this extension...
904 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
905 not extended `assembler-with-cpp' as implied by the former extension);
906 adjust all internal `.file <name>' references accordingly.
908 * Makefile.in (vpath %.S): Adjust reference to locate files....
909 (vpath %.s): ...now renamed thus.
911 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
913 Streamline the build system infrastructure.
915 * configure.ac: New file; it replaces...
916 * configure.in: ...this; (name is obsolete); delete it.
918 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
919 make invocations, when processing subdirectories, and add automatic
920 dependency tracking for all generated files.
922 * configure: Delete it; as a generated file, it doesn't belong in SCM.
924 * mingwex/Makefile.in: No longer required; delete it.
925 * profile/Makefile.in: Likewise.
927 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
928 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
930 * jamfile: Delete it; it hasn't been updated in ages, is likely no
931 longer relevant, and I have no desire to maintain it.
933 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
935 * include/_mingw.h: Increment version to 3.20.
937 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
939 * tlsmthread.c: Update to reflect changes in tlssup.c.
940 * tlssup.c: code clean-up.
942 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
944 * include/_mingw.h: Increment version to 3.19.
946 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
948 * include/float.h: Modify guard to accomodate CLang.
950 Thanks to Ruben Van Boxem for the report.
952 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
954 * tlssup.c: Remove mingwm10.dll fallback.
956 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
958 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
960 Thanks to bvassche for the report.
962 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
964 Correct checking for short option matches in getopt_long_only().
966 * mingwex/getopt.c (getopt_verify): New static inline function.
967 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
968 possible short option match after failing to match, or ambiguously
969 matching as a long option.
971 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
973 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
975 Thanks to cgf for the report.
977 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
979 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
980 compiles with __STRICT_ANSI__.
982 Thanks to Felipe Contreras for the report.
984 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
986 * include/stdlib.h (strtod): Remove possible static declaration to resolve
989 Thanks to Tobias Burnus for the report.
991 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
993 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
994 by wrapping the functions in brackets.
996 Thanks to Kai Tietz for the report.
998 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1000 * Makefile.in: Add support for msvcr100.dll.
1001 * msvcrt.def.in: Ditto.
1003 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1005 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1006 not always available, go the long way and use the explicit named union
1007 members, which are also declared in winnt.h.
1009 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1011 * mingwex/isblank.c: Fix typo in declaration.
1013 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1015 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1016 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1017 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1018 is included before <ctype.h>.
1020 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1022 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1024 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1026 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1028 Correct hexadecimal formatting of double and long double values.
1030 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1031 (__pformat) [A format]: Cast double values to long double, and use...
1032 (__pformat_xldouble): ...this instead, with corrected adjustment of
1033 exponent and alignment of mantissa, when formatting subnormals.
1035 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1037 * include/dirent.h (dd_handle): Define as intptr_t.
1039 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1041 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1044 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1046 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1047 semantically identical MAX_PATH; correct value is 260.
1049 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1051 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1052 system include search path; (issue reported by Mark Brand).
1054 * include/float.h: Add multiple inclusion guard around...
1055 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1056 only when this define does not indicate that it has already been seen;
1057 update comments to document rationale; move it within the scope of...
1058 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1059 GCC's float.h, after an appropriate complementary modification, need
1060 not perform a further include path search when this implementation
1061 specific extension has already been processed.
1063 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1065 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1066 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1067 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1068 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1069 _findnexti64): Correct definition.
1071 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1073 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1075 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1077 * include/_mingw.h: Increment version to 3.18.
1079 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1081 * include/stdio.h: (_vscprintf, _vscwprintf)
1082 * include/tchar.h: (_vsctprintf)
1084 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1086 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1087 (initial implementation)
1089 * new type: __time32_t
1091 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1092 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1093 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1095 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1096 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1097 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1098 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1099 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1100 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1101 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1102 _wstat32i64, _wstat64i32,_wutime32
1104 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1105 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1106 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1107 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1108 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1110 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1112 Implement TLS Callback.
1114 * tlsmcrt.c: New file.
1115 * tlsmthread.c: Ditto.
1118 * Makefile.in: Include new files.
1119 * crt1.c: Implement TLS Callback.
1121 * mthr_stub.c: Remove.
1123 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1125 * include/_mingw.h: Increment version to 3.17.
1127 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1129 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1130 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1132 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1134 * include/io.h (_open_osfhandle): Correct definition.
1136 Thanks to Alexander Shaduri for the information.
1138 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1140 Final sync of pseudo-reloc.c with mingw64 and cygwin
1141 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1142 regarding error messages.
1144 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1146 Honor DESTDIR for winsup/mingw and winsup/w32api.
1147 Detect and report error if installation paths are win32
1148 format, but DESTDIR is non-empty.
1150 * Makefile.in (DESTDIR): Honor per convention.
1151 (need-DESTDIR-compatibility): New macro; define it and a
1153 (fail-DESTDIR-compatibility): New dependency goal.
1154 (install-dirs): Require need-DESTDIR-compatibility.
1155 * mingwex/Makefile.in (DESTDIR): Honor per convention.
1156 (need-DESTDIR-compatibility): New macro; define it and a
1158 (fail-DESTDIR-compatibility): New dependency goal.
1159 (install): Require need-DESTDIR-compatibility.
1160 * profile/Makefile.in: Ditto.
1162 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1164 Sync pseudo-reloc.c with mingw64
1165 * psuedo-reloc.c: Remove unnecessary includes.
1166 Forward declare _pei386_runtime_relocator.
1167 Decorate _image_base__ symbol with macro for
1168 mingw64 compatibility. Whitespace changes.
1169 (__print_reloc_error): Renamed to...
1170 (__report_error): This. "Returns" void, and
1171 always aborts. Now used on all platforms.
1172 (__write_memory): Remove special case error handling
1173 for different platforms - always call __report_error.
1174 (do_pseudo_reloc): Remove special case error handling
1175 for different platforms - always call __report_error.
1176 (_pei386_runtime_relocator): Decorate _image_base__
1177 symbol with mingw64 compatibility macro.
1179 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1181 Sync pseudo-reloc.c with cygwin/lib/
1182 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1183 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1184 for fatal error handling that is consistent with cygwin process
1185 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1186 is unique to each address space, across fork().
1187 [CYGWIN] (__print_reloc_error): New function for reporting
1188 errors in a manner supported by cygwin at this early stage of
1189 the process life-cycle.
1190 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1191 performed only once for each address space, but are repeated
1192 after fork() in the new address space.
1193 [MINGW] (__write_memory): Ensure that b is always initialized
1194 by call to VirtualQuery, even if -DNDEBUG.
1196 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1198 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1199 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1201 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1202 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1203 specified format qualifiers, except in special case...
1204 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1205 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1206 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1209 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1211 Avoid multiple link time definitions of _printf() for C++;
1212 (problem reported by Alexander Shaduri, via MinGW-users ML).
1214 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
1215 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
1217 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1219 * include/_mingw.h: Increment version to 3.16.
1221 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
1223 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
1224 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
1225 __fp_unordered_compare): Add prototypes.
1226 * include/stdio.h (vsnwprintf): Add prototype.
1227 * include/wchar.h (vsnwprintf): Add prototype.
1228 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
1229 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
1231 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1233 Correct disposition of wchar_t output in printf().
1235 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
1236 (argval): ...this, in inner scope, with singular type `wchar_t'; use
1237 it to pass one wchar to __pformat_wputchars(), for output.
1239 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1241 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
1243 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1245 Convert to monolithic configuration procedure.
1247 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
1248 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
1249 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
1250 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
1251 (CRT0S): Relocate from `profile'; define it as appropriate.
1252 (LIBM_A): Define and AC_SUBST it unconditionally.
1253 (AC_CONFIG_SUBDIRS): Remove; none to configure.
1254 (AC_OUTPUT_FILES): Add `Makefile' for each of...
1255 (mingwex, profile): ...these subdirectories.
1257 * configure: Regenerated.
1259 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
1260 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
1261 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
1262 (SUBDIRS): Define explicitly, to run recursive `make' in...
1263 (mingwex, profile): ...these; simplify build commands...
1264 (rootme, rootsrc): ...without these shell variables.
1265 (all, subdirs): Delete redundant build commands.
1266 (FIXME): Flag various issues for follow up.
1268 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
1269 (top_srcdir): ...this new macro; let AC_SUBST define it.
1270 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1271 (Makefile): Make it depend on...
1272 (top_builddir/config.status): ...this, itself depending on...
1273 (top_srcdir/configure): ...this.
1274 (FIXME): Flag various issues for follow up.
1276 * mingwex/aclocal.m4: File no longer required; delete it.
1277 * mingwex/configure mingwex/configure.in: Likewise.
1279 * profile/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 * profile/aclocal.m4: File no longer required; delete it.
1288 * profile/configure profile/configure.in: Likewise.
1290 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1292 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
1293 to complaints that it causes issues.
1295 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
1297 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
1299 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1301 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
1302 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
1303 to all inline functions.
1305 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1307 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
1308 * CRT_fp10.c: Ditto.
1310 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1312 * cpu_features.c: replace gcc-specific construct with portable alternative
1313 and match the code a few lines above.
1314 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
1316 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1318 * include/_mingw.h: Changes required for PCC compiler.
1320 2009-07-18 Jeff Lu <jll544@yahoo.com>
1322 * mingwex/usleep.c: round up to next ms
1324 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1326 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
1327 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
1328 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
1329 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
1331 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1333 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
1335 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
1337 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
1338 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
1339 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
1340 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
1341 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
1342 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
1343 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
1344 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
1345 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
1346 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
1347 sources as of Apr. 20, 2009. Update further to match the sources in
1348 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
1349 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
1350 double/ulong union from U to dbl_union for better grepping and white-
1353 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1355 * include/stdlib.h (_wtof): Define.
1357 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
1359 * include/stdint.h (int_fast8_t): Specify as signed char.
1360 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
1361 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1363 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1365 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1367 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1369 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1370 (Requested by Robert Riebisch)
1372 * mingwex/getopt.c (getopt_parse): Track external increments of...
1373 (optind): ...this global variable.
1375 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1377 * include/_mingw.h: Increment version to 3.15.2.
1379 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1381 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1382 Also add tentative support for BSD specific `optreset' feature.
1384 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1385 (__mingw_optreset): ...this new global variable.
1387 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1388 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1391 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1393 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1394 Correct mishandling of invalid characters in printf() format specs.
1396 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1397 (backtrack): ...this new automatic variable, at start of each format
1398 conversion specification substring; use it to backtrack, and print the
1399 substring literally, if any invalid character is encountered.
1401 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1403 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1404 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1405 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1406 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1407 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1408 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1409 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1410 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1411 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1412 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1413 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1414 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1415 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1416 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1418 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1420 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1422 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1424 Correct some binary distribution packaging defects.
1426 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1427 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1428 intermediate goals; they make packages of files, as specified by...
1429 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1430 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1432 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1434 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1435 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1437 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1438 of radix point conditional on precision != 0 or `#' flag specified.
1440 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1442 Fix MinGW-Bug [2160227]
1443 Eliminate conflicting declarations and implementations of scalb().
1445 * moldname.def.in (scalb): Comment out of EXPORTS list.
1446 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1447 with GCC's built-in declaration.
1449 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1451 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1453 * mingwex/Makefile.in: Ditto.
1454 * profile/Makefile.in: Ditto.
1455 * configure.in: Record mingw front-end for building under Cygwin.
1456 * mingwex/configure.in: Ditto.
1457 * profile/configure.in: Ditto.
1458 * configure: Regenerate.
1459 * mingwex/configure: Ditto.
1460 * profile/configure: Ditto.
1462 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1464 Use de-facto standard Makefile goals to invoke test suite.
1466 * Makefile.in: Some minor formatting adjustments.
1467 (test_headers): Unconventionally named goal renamed to...
1468 (check-headers): ...this; make it a prerequisite of...
1469 (check): ...this new conventionally named goal.
1471 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1473 Make strtod() inline definition C89 compliant.
1474 (Issue reported by Ilya Shestopalov and Ian Puleston)
1475 (Correction identified by Danny Smith)
1477 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1478 reformat inline function definition.
1480 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1482 * include/_mingw.h: Increment version to 3.15.1 and introduce
1483 __MINGW32_PATCHLEVEL variable.
1485 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1487 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1488 (Reported by Christian Franke)
1490 * mingwex/getopt.c (optind): Make global variable value conform to
1491 behaviour specified by POSIX; do not use it for internal state in...
1492 (getopt_parse): ...this static function; use...
1493 (optbase): ...this new static local variable instead.
1494 (getopt_resolved): Update `optind' as required.
1496 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1498 Improve package identification in configure script.
1500 * configure.ac (AC_INIT): Redefine parameters...
1501 (PACKAGE_NAME): Set to `MinGW Runtime'.
1502 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
1503 (PACKAGE_TARNAME): Set to `mingwrt'.
1504 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
1505 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
1506 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
1508 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
1509 (PACKAGE_TARNAME): ...this.
1511 * configure: Regenerated.
1513 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1515 Fix MinGW-Bug [2125708].
1516 (Reported by Alexandr Zamaraev).
1518 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
1519 not wanted here; remove it; replace it by...
1520 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
1521 (_invalid_parameter_handler): ...this function typedef.
1523 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
1525 * Makefile.in: Don't include host_os as part of snapshot filename.
1527 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1529 Fix MinGW-Bug [2119504].
1530 (Reported by Peiyuan Song).
1532 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
1533 (*retindex): ...this already correctly assigned return variable...
1534 (opt[index].val): ...with this; this should have been assigned to...
1535 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
1537 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1539 Fix MinGW-Bug [2117379].
1540 (Reported by Peiyuan Song).
1542 * include/stdio.h (__argv): Replace all references in function
1543 prototype argument lists and inline function local variables, with ...
1544 (__local_argv): ...this, to avoid potential conflict with ...
1545 * include/stdlib (__argv): ...this #defined macro.
1547 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1549 * include/_mingw.h: Increment version to 3.15.
1551 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1553 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
1554 naming standard for Cygwin.
1556 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1558 Reimplement getopt.c to add getopt_long_only() function.
1560 (N.B. this reimplementation removes support for BSD/Mac-OS-X
1561 `optreset' nonsense; user code should set `optind = 0' instead,
1562 to reinitialise option scanning).
1564 * mingwex/getopt.c: Delete all content; reimplement it.
1565 * include/getopt.h: Likewise.
1567 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
1568 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
1570 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1572 Implement conditional replacement for printf() family functions.
1574 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
1575 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
1576 flag for use in user specified __MINGW_FEATURES__ attribute.
1577 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
1578 currently unused: reserved as components of...
1579 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
1580 a __MINGW_FEATURES__ enhancement to setlocale().
1582 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
1583 (__mingw_fprintf, __mingw_vfprintf): Likewise.
1584 (__mingw_sprintf, __mingw_vsprintf): Likewise.
1585 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
1586 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
1587 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
1588 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
1589 usage; link to DLL import stub, importing from MSVCRT.
1590 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1591 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1592 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
1593 locally defined static stub implementation.
1594 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1595 __mingw_fprintf and __mingw_sprintf respectively.
1596 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
1597 static inline implementation for C++ and GNU C, or locally defined
1598 static stub otherwise.
1599 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1600 __mingw_vfprintf and __mingw_vsprintf respectively.
1602 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1604 Avoid access violations, passing NULL to printf( "...%s..." );
1605 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
1607 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
1608 for argument value, if caller passes a NULL pointer.
1609 (__pformat_wcputs): Likewise, substitute L"(null)".
1611 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1613 Add missing dependencies for building libmingwex.a.
1615 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
1616 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
1617 (pformat.h): ...this.
1619 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1621 Add replacements for remaining members of printf() family.
1623 * mingwex/stdio/printf.c: New file.
1624 * mingwex/stdio/fprintf.c: New file.
1625 * mingwex/stdio/sprintf.c: New file.
1626 * mingwex/stdio/vprintf.c: New file.
1627 * mingwex/stdio/vfprintf.c: New file.
1628 * mingwex/stdio/vsprintf.c: New file.
1630 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1631 (STDIO_OBJS): Add their corresponding object files.
1633 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1635 Replace __mingw_snprintf() with new generic family implementation;
1636 likewise, replace __mingw_vsnprintf().
1638 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
1639 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
1640 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1641 (GDTOA_DISTFILES): Remove mingw_snprintf.c
1642 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
1643 (GDTOA_OBJS): Remove mingw_snprintf.o
1644 (PFORMAT_CFLAGS): New macro; define it, as required by...
1645 (pformat.o): ...this new explicit build target.
1646 (snprintf.o, vsnprintf.o): Declare prerequisites.
1648 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
1650 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1652 Lay foundations for new printf() function family implementation.
1654 * ofmt_stub.s: New file; implement forward compatibility stub for...
1655 (_get_output_format): ...this MSVCR80.DLL and later function.
1657 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
1658 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
1659 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
1660 (lib%.a): Include ofmt_stub.o when import library does not already
1661 advertise availability of the _get_output_format() function;
1662 Add alias stubs for MINGW_REPL_FUNCS, such that...
1663 (__msvcrt_printf): ...is an alias for Microsoft's printf().
1664 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
1665 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
1666 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
1667 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
1668 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
1669 (clean): Add msvcr*.def.
1671 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
1672 * configure: Regenerated.
1674 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1676 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
1677 (_imp____mb_cur_max_dll): Likewise.
1679 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
1681 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
1682 * include/wchar.h (swprintf, vswprintf): Likewise.
1684 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1686 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
1687 (_get_output_format, _set_output_format): Add references.
1689 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
1690 (_get_output_format, _set_output_format): Declare prototypes.
1691 (_TWO_DIGIT_EXPONENT): Define.
1692 Some other minor formatting adjustments.
1694 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1696 [mingw-Bugs-1801641]
1697 * include/wchar.h (_wfdopen): Const-ify second arg.
1698 * include/stdio.h (_wfdopen): Likewise.
1699 Thanks to <tdragon at users dot sourceforge net>
1701 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1703 Avoid precision errors in round(), lround() and llround() functions.
1705 * mingwex/math/round_generic.c: New file; it replaces...
1706 * mingwex/math/round.c: ...this; delete it.
1707 * mingwex/math/roundf.c: ...and this; ditto.
1708 * mingwex/math/roundl.c: ...and this; ditto.
1710 * mingwex/math/lround_generic.c: New file; it replaces...
1711 * mingwex/math/lround.c: ...this; delete it.
1712 * mingwex/math/lroundf.c: ...and this; ditto.
1713 * mingwex/math/lroundl.c: ...and this; ditto.
1714 * mingwex/math/llround.c: ...and this; ditto.
1715 * mingwex/math/llroundf.c: ...and this; ditto.
1716 * mingwex/math/llroundl.c: ...and this; ditto.
1718 * mingwex/math/round_internal.h: New file; it provides generic common
1719 code, which is shared by `round_generic.c' and `lround_generic.c'; the
1720 implementation is based on techniques suggested by Danny Smith and
1723 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
1724 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
1725 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
1726 `round_generic.c' and `lround_generic.c'.
1727 (MATH_OBJS): Factor out files listed in...
1728 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
1729 macros; define them; specify dependencies and build rules; add to...
1730 (LIB_OBJS): ...this list.
1732 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
1734 [ mingw-Bugs-1961893 ]
1735 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
1736 mode to 2 for E format.
1738 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
1740 * include/stdlib.h: Fix strtod under C++.
1742 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
1744 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
1745 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
1747 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
1749 * include/sys/types.h (useconds_t): typedef.
1750 * include/unistd.h (usleep): Add prototype.
1751 * mingwex/usleep.c: New file.
1752 * mingwex/makefile.in: Add usleep source and object.
1754 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
1756 Make strtod() conform to C99.
1758 * include/stdlib.h (strtod): Declare this mingwex function, and...
1759 (_strtod): rename this MSVCRT counterpart.
1761 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
1763 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
1765 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
1767 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1769 * include/process.h: Include stdint.h for intptr_t definition.
1770 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
1771 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
1772 _spawnvpe): Return intptr_t.
1773 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
1774 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
1776 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
1778 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
1779 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
1780 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
1781 _wspawnvp, _wspawnvpe): Return intptr_t.
1783 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1785 * include/wchar.h (fwide): Return success code rather than failure in inline
1787 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
1788 code rather than failure.
1790 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
1792 * include/math.h (float_t, double_t): Define.
1794 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
1796 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
1797 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
1798 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
1800 2008-02-28 Joseph Myers <joseph@codesourcery.com>
1802 * include/complex.h: Don't condition contents on C99 or not
1805 2008-02-01 Brian Dessent <brian@dessent.net>
1807 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
1808 the different runtime versions.
1810 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
1812 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
1813 (mbsinit): Likewise.
1815 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1817 * include/_mingw.h: Increment version to 3.14.
1819 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1821 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
1822 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
1823 * mingwex/math/log10f.S: Correct issue with comments.
1824 * mingwex/math/log10l.S: Ditto.
1825 * mingwex/math/log1p.S: Ditto.
1826 * mingwex/math/log1pf.S: Ditto.
1827 * mingwex/math/log1pl.S: Ditto.
1828 * mingwex/math/log2.S: Ditto.
1829 * mingwex/math/log2f.S: Ditto.
1830 * mingwex/math/log2l.S: Ditto.
1831 * mingwex/math/logf.S: Ditto.
1832 * mingwex/math/logl.S: Ditto.
1834 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
1836 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
1838 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
1840 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
1841 from '_fsize_t' to '__int64' to be consistent with the other ...64
1842 structures and the value set there is 8 bytes not 4. Add guard for both
1843 as the are only used by functions available from 6.1 on.
1845 * include/malloc.h (_HEAP_MAXREQ): Define.
1846 (_aligned_offset_recalloc): Define.
1847 (_aligned_recalloc()): Define.
1849 * include/math.h: fixed a typo in a comment.
1850 (atanhf): Fixed declaration.
1852 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
1853 to '__int64' to be consistent with the other ...64 structures and the value
1854 set there is 8 bytes not 4. Added guard as this function is only used by
1855 functions available from 6.1 on.
1857 * include/sys/stat.h: some members of 'stat' were declared with types with
1858 a prefixed underscore, while the ones without the underscore should have
1859 been used. Added guard to '__stat64' as it is only used by functions
1860 available from 6.1 on. Added the wide character versions of the
1861 exec()/spawn() family for completion
1862 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
1865 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
1866 from 'long' to 'time_t'
1867 (__timeb64): moved declaration of structure directly before the declaration
1868 of the function '_ftime64()', so it is guarded as well
1870 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
1871 before the declaration of the functions using it, so it is guarded as well
1873 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
1875 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
1876 case. Add missing break in 's'/LEN_S case.
1878 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1880 Make snprintf() and vsnprintf() conform to C99.
1882 * include/stdio.h: Add note about incompatibility between...
1883 (snprintf, vsnprintf): These two mingwex functions, and...
1884 (_snprintf, _vsnprintf): these MSVCRT counterparts.
1886 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
1887 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
1889 * mingwex/stdio/snprintf.c: Delete.
1890 * mingwex/stdio/vsnprintf.c: Delete.
1892 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
1893 (vsnprintf): Alias to __mingw_vsnprintf.
1895 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1897 * include/_mingw.h: Increment version to 3.13.
1898 * Makefile.in: Reset CYGRELEASE to 1
1900 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1902 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
1903 resulting from incomplete removal of enclosing `for ...; do ...; done'
1904 loop from compound command; (reported by Greg Chicares).
1906 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
1908 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
1911 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
1913 [mingw-Bugs-1734142]
1914 * include/wchar.h (_wsystem) Declare.
1916 (_wgetenv): Declare.
1917 (_wsearchenv): Declare.
1918 (_wmakepath): Declare.
1919 (_wsplitpath): Declare.
1920 (_wfullpath): Declare.
1921 * include/stdlib.h (_wsystem) Declare.
1922 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
1923 _wfullpath): Move into _WSTDLIB_DEFINED guard.
1924 * include/tchar.h (_tsystem): New UNICODE mapping define.
1926 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
1928 * mingwex/gdtoa/mingw_snprintf.c: New file.
1929 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
1930 (GDTOA_OBJS): Add mingw_snprintf.o.
1932 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
1934 * msvcrt.def.in: Update comment.
1935 Exclude _ctype stub if using msvcr71.dll or newer.
1936 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
1937 * include/wctype.h: Likewise.
1939 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1941 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
1942 *include/dirent.h: Likewise.
1944 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
1946 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
1947 * include/conio.h: Likewise.
1948 * include/ctype.h: Likewise.
1949 * include/direct.h: Likewise.
1950 * include/dos.h: Likewise.
1951 * include/errno.h: Likewise.
1952 * include/fenv.h: Likewise.
1953 * include/float.h: Likewise.
1954 * include/inttypes.h: Likewise.
1955 * include/io.h: Likewise.
1956 * include/libgen.h: Likewise.
1957 * include/locale.h: Likewise.
1958 * include/malloc.h: Likewise.
1959 * include/mbctype.h: Likewise.
1960 * include/mbstring.h: Likewise.
1961 * include/process.h: Likewise.
1962 * include/search.h: Likewise.
1963 * include/setjmp.h: Likewise.
1964 * include/signal.h: Likewise.
1965 * include/stdio.h: Likewise.
1966 * include/stdlib.h: Likewise.
1967 * include/string.h: Likewise.
1968 * include/time.h: Likewise.
1969 * include/wchar.h: Likewise.
1970 * include/sys/stat.h: Likewise.
1971 * include/sys/time.h: Likewise.
1972 * include/sys/timeb.h: Likewise.
1973 * include/sys/utime.h: Likewise.
1975 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1977 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
1979 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
1981 Add POSIX binary tree search API.
1983 * mingwex/tfind.c: New file.
1984 * mingwex/tdelete.c: New file.
1985 * mingwex/tsearch.c: New file.
1986 * mingwex/twalk.c: New file.
1987 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
1988 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
1989 * include/search.h (tfind): Declare.
1996 (node_t): Define, on condition of _SEARCH_PRIVATE.
1998 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2000 * include/_mingw.h (__MINGW_NOTHROW): Define.
2002 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2004 * include/stdio.h (vsnprintf): Remove inline definition.
2007 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2009 * CRTfmode.c: Nit-pick comment fix.
2011 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2013 * CRTfmode.c: Fix nested comment.
2015 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2017 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2019 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2021 * include/io.h (lseek64) : Add prototype.
2023 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2025 * include/string.h (strcasecmp): Add prototype.
2026 (strncasecmp): Add prototype.
2028 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2030 * Makefile.in (CRT0S): Revert last change.
2031 * CRTfmode.c. Correct comment.
2033 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2035 * Makefile.in (CRT0S): Add back CRTfmode.o.
2037 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2039 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2040 * include/io.h: Likewise.
2042 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2044 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2046 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2048 * include/stdint.h (intptr_t): Fix typo.
2049 Thanks to Charles Wilson for report.
2051 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2053 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2054 Condition on _WIN64.
2055 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2056 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2057 (PTRDIFF_MIN): Define as INTPTR_MIN.
2058 (PTRDIFF_MAX): Define as INTPTR_MAX.
2059 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2060 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2062 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2064 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2065 Cygwin man page location.
2067 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2069 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2070 support Cygwin man page location.
2072 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2074 * Include/_mingw.h: Increment version to 3.12.
2076 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2078 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2080 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2082 * Makefile.in: Tweak srcdist to fix build issue.
2084 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2086 Add --enable-mingw-manpage-transform configure option.
2088 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2089 * configure.in, Makefile.in: Use it.
2090 * configure: Regenerated.
2092 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2094 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2096 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2098 Add manpages for dirname and basename functions.
2100 * man: New directory.
2101 * man/dirname.man: New file; it sources both manpages.
2102 * Makefile.in: Add provisional rules to distribute them.
2104 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2106 * mingwex/basename.c: Make it work with path names containing
2107 multibyte character strings.
2108 * mingwex/dirname.c: Likewise.
2110 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2112 * include/io.h (__mingw_access): New static inline wrapper to restore
2113 pre-Vista 'access (fname, X_OK)' behaviour.
2114 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2116 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2118 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2120 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2122 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2124 * include/stdio.h (_unlink, unlink): Add prototypes.
2126 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2128 * include/excpt.h: Replace "_try1" in comments with "__try1".
2130 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2132 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2133 (ALL_CXXFLAGS): Likewise.
2134 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2135 (ALL_CXXFLAGS): Likewise.
2136 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2137 (ALL_CXXFLAGS): Likewise.
2139 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2141 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2143 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2145 Expose some more msvcr80.dll functions.
2146 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2147 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2148 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2149 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2151 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2153 Expose some msvcr80.dll functions.
2154 * include/stdlib.h (_set_abort_behavior): Add prototype.
2155 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2156 _set_abort_behavior mask argument.
2157 (_invalid_parameter_handler): Add typedef.
2158 (_set_invalid_parameter_handler): Add prototype.
2159 * include/stdio.h (_get_printf_count_output): Add prototype.
2160 (_set_printf_count_output): Add prototype.
2161 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2162 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2164 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2166 * include/_mingw.h (CRT_INLINE): Correct typo.
2168 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2170 * include/io.h (X_OK): Define to F_OK.
2172 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2174 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2175 unconditionally. Change comment.
2176 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2178 * include/io.h (rename): Declare.
2181 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2183 * include/libgen.h: New file; required by...
2184 * mingwex/basename.c, mingwex/dirname.c: New files.
2185 * mingwex/Makefile.in (DISTFILES): Add them...
2186 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2187 (Dependencies): Typo; s/Dependancies/Dependencies/
2189 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2191 * Makefile.in (VERSION): Let configure define it.
2193 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2194 * configure.in: Use it.
2195 Correct quoting of autoconf macro arguments throughout.
2196 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2197 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2198 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2199 (AC_CONFIG_FILES): Add, to generate Makefile.
2201 * configure: Regenerated.
2203 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2205 * Makefile.in: Add aclocal.m4 to source release.
2206 * mingwex/Makefile.in: Ditto.
2207 * profile/Makefile.in: Ditto.
2209 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2211 * Include/_mingw.h: Increment version to 3.11.
2212 * Makefile.in: Ditto.
2214 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
2216 [ mingw-Bugs-1590623 ]
2217 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
2220 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
2222 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
2223 correctly parenthesized.
2225 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2227 * mingwex/mb_wc_common.h (get_codepage): Get it
2230 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2232 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
2234 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
2236 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
2239 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
2241 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
2244 2006-09-11 Christopher Faylor <cgf@timesys.com>
2246 * Makefile.in: Semi-revert 2006-08-30 change.
2248 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2250 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
2251 (__MINGW_IMPORT): Ansify.
2252 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
2253 __MINGW_ATTRIB_DEPRECATED.
2255 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2257 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
2258 Redundant macros; deleted.
2260 * configure.in (LIB_AC_PROG_CC): Replaced by...
2261 (AC_PROG_CC): ...this.
2263 * configure: Regenerated.
2265 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
2267 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
2268 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
2269 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
2271 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
2273 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
2274 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
2275 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
2276 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
2278 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
2279 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
2280 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
2281 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
2282 * mingwex/wcstold.c: Avoid using strtold internals.
2283 * mingwex/wcstof.c: Rewrite.
2284 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
2285 (GDTOA_OBJS): Add to library.
2286 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
2287 (STDLIB_OBJS): Remove.
2288 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
2289 (Q8_OBJS): Add wcstof.o wcstold.o.
2290 * include/stdlib.h (strtof): Remove inline definition.
2292 * include/wchar.h (wcstof): Remove inline definition.
2294 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
2296 * Makefile.in: Add with_cross_host to allow more granular checks.
2297 Set installation directories accordingly. Override CC setting only
2298 if building a Cygwin target.
2299 * aclocal.m4: Regenerate.
2300 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
2301 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
2302 Test AC_ALLOCA only if building on a native system.
2303 * configure: Regenerate.
2305 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2307 * include/ctype.h: Fix typo.
2309 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2311 * include/ctype.h: Expose iswblank if __cplusplus.
2312 * include/wctype.h: Expose iswblank if __cplusplus.
2314 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2316 * include/ctype.h: Remove stray ')';
2318 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2320 * include/ctype.h (_BLANK): Expand comment.
2321 (isblank): Add prototype and inline definition.
2322 (iswblank): Add prototype and inline definition.
2323 * include/wctype.h (iswblank): Add prototype and inline definition.
2324 * mingwex/isblank.c: New file.
2325 * mingwex/iswblank.c: New file.
2326 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2328 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
2330 * include/math.h (__INFF,__INFL): Remove '#'.
2332 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2334 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2336 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
2338 Support SSE float environment in fenv.h functions.
2339 * cpu_features.c: New file.
2340 * cpu_features.h: New file.
2341 * crt1.c: Include "cpu_features.h".
2342 (__mingw_CRTStartup): Call cpu_features_init().
2343 * Makefile.in (MING_OBJS): Add cpu_features.c.
2344 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
2345 * include/fenv,h ( fenv_t;): Append __mxcsr field.
2346 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
2347 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
2348 (__MXCSR_ROUND_FLAG_SHIFT): New define.
2349 * mingwex/feclearexcept.c: Include "cpu_features.h".
2350 Handle SSE environment.
2351 * mingwex/fegetenv.c: Likewise.
2352 * mingwex/feholdexcept.c: Likewise.
2353 * mingwex/fesetenv.c: Likewise.
2354 * mingwex/fesetexceptflag.c: Likewise.
2355 * mingwex/fesetround.c: Likewise.
2356 * mingwex/fetestexcept.c: Likewise.
2357 * mingwex/feupdateenv.c: Likewise.
2358 * mingwex/fegetround.c: Add comment.
2360 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2362 * Include/_mingw.h: Increment version to 3.10.
2363 * Makefile.in: Ditto.
2365 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2367 * mingwex/math/tgamma.c (SQTPI): Add braces.
2369 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2371 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2372 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2374 * mingwex/math/sf_erf.c (erff): Initialize z.
2376 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2378 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2380 * Include/_mingw.h: Increment version to 3.10.
2381 * Makefile.in: Ditto.
2383 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2385 * include/sys/time.h (struct timezone): Define.
2386 * include/time.h: Correct comment about timezone.
2388 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2390 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2391 * configure: Regenerate.
2393 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2395 * configure: add srcdir as a possible location for install-sh.
2397 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2399 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2400 (_topendir): Use it.
2402 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2404 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2406 (gettimeofday): Add prototype.
2407 * mingwex/gettimeofday.c: New file.
2408 * mingwex/makefile.in: Add gettimeofday source and object.
2410 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2412 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2413 else global library variable.
2414 (HUGEVALF): Likewise.
2415 (HUGEVALL): Likewise.
2416 (INFINITY): Likewise.
2419 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2421 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2423 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2425 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2427 2006-05-24 Christopher Faylor <cgf@timesys.com>
2429 * configure.in: Update to newer autoconf.
2430 (thanks to Steve Ellcey)
2431 * mingwex/configure.in: Ditto.
2432 * profile/configure.in: Ditto.
2433 * configure: Regenerate.
2434 * mingwex/configure: Ditto.
2435 * profile/configure: Ditto.
2436 * aclocal.m4: New file.
2437 * mingwex/aclocal.m4: Ditto.
2438 * profile/aclocal.m4: Ditto.
2440 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2442 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2443 Use supplied codepage as arg to WideCharToMultiByte.
2445 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2447 * Makefile.in (libmsvcr80.a): Add import lib.
2448 (libmsvcr80d.a): Ditto.
2450 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2452 * Makefile.in: Bump cygwin build number.
2454 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2456 * Include/_mingw.h: Increment version to 3.9.
2457 * Makefile.in: Ditto.
2459 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2461 * include/limits.h (SSIZE_MAX): Define.
2462 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2464 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2466 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2467 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2469 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2471 * include/stddef.h: Remove.
2472 * include/stdarg.h: Remove.
2474 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2476 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2477 of result is positive when real part of arg == 0;
2478 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2479 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2481 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2483 * include/time.h (_time64): Correct prototype.
2485 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2487 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2488 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2489 to non-stop. Use "fnclex" to clear exception flags.
2491 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
2493 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
2494 Avoid raising FP exceptions.
2496 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2498 * include/stdlib.h (strtof): Add prototype. Uglify
2499 parameter names in inline definition.
2501 (_Exit): Uglify parameter names in inline definition.
2502 (llabs): Add prototype.
2503 (_set_error_mode): Add prototype and input defines.
2505 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2507 * mingwex/fe*.c: Revert previous changes.
2508 * include/fenv.h: Revert previous changes.
2510 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2512 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
2513 Do not return a value.
2514 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
2515 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
2516 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
2517 * mingwex/fegetenv.c (fegetenv): Likewise.
2518 * mingwex/fesetenv.c (fesetenv): Likewise.
2519 * mingwex/feupdateenv.c (feupdateenv): Likewise.
2520 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
2521 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
2524 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2526 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
2527 getting filelength for SEEK_END.
2529 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2531 * Include/_mingw.h: Increment version to 3.8.
2532 * Makefile.in: Ditto.
2534 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2536 * include/wctype.h (towupper, towlower): Change arg and return value
2538 * include/ctype.h (towupper, towlower): Likewise.
2540 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2542 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
2543 a diagnostic, guarded by #ifdef DEBUG.
2544 (__mingwthr_remove_key_dtor): Likewise.
2546 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2548 * moldname.def.in (sleep, beep, seterrormode): Remove.
2550 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2552 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
2553 (_MCOUNT_DECL): Use it.
2554 (MCOUNT): Save and restore eax, ecx, edx registers.
2555 * profile/mcount.c (_mcount): ANSI-fy.
2557 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2559 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
2560 guard __MINGW_ATTRIB macro definitions.
2561 * include/math.h (logb[fl]): Don't define inlines for
2562 GCC-4.0+ && __FAST_MATH__.
2563 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
2564 line-continuation backslashes.
2566 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
2568 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
2569 in GNUC version guard.
2571 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
2573 * crt1.c (_gnu_exception_handler): Handle illegal instruction
2574 OS exception as a signal if user has defined a SIGILL handler.
2576 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
2578 * mingwex/math/nexttoward.c: New file.
2579 * mingwex/math/nexttowardf.c: New file.
2580 * mingwex/math/nextafterl.c: Add nexttowardl alias.
2581 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
2583 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
2584 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
2587 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
2589 * mingwex/math/nextafterf.c (nextafterf): Correct
2591 * mingwex/math/nextafterl.c: New file.
2592 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
2593 (MATH_OBJS): Add nextafterl.o.
2594 * include/math.h (nextafterl): Uncomment prototype.
2596 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2598 * mingwex/math/erfl.c: New file.
2599 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
2600 (MATH_OBJS): Add erfl.o.
2601 * include/math.h (erfl, erfcl): Uncomment prototypes.
2603 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
2605 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
2606 #if (WCHAR_MAX <= WCHAR_MIN) is false.
2607 * include/stdint.h (WCHAR_MAX): Likwise.
2608 (WINT_MAX): Likewise.
2610 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
2612 * mingwex/math/signbit.c (__signbit): Make return value
2613 consistent with GCC's __builtin_signbit.
2614 * mingwex/math/signbitf.c (__signbitf): Likewise.
2615 * mingwex/math/signbitf.c (__signbitl): Likewise.
2616 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
2619 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
2621 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
2623 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
2624 Remove unused MBTOWC_FLAGS define.
2626 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
2628 * mingwex/mbrtowc.c: New file.
2629 * mingwex/wcrtomb.c: New file.
2630 * mingwex/btowc.c: New file.
2631 * mingwex/wctob.c: New file.
2632 * mingwex/mb_wc_common.h: New file.
2633 * mingwex/Makefile.in (DISTFILES): Add new files.
2634 (Q8_OBJS): Add new objects.
2635 * include/wchar.h: Adjust comment about mbrtowc() and related
2636 funcions. Add __restrict__ to pointer params in prototypes.
2637 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
2638 arg names from protototypes.
2640 2005-04-23 Wu Yongwei <adah@sh163.net>
2642 * mingwex/dirent.c: Formatting changes.
2643 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
2646 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
2648 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
2650 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
2652 * include/stdio.h (__mingw_fwrite): Change return value to
2654 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
2656 2005-03-15 Hans Leidekker <hans@it.vu.nl>
2658 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
2660 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2662 * include/wctype.h (wctrans): Remove _CRTIMP.
2663 (towctrans): Likewise.
2666 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2668 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
2670 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2672 * mingwex/wctype.c: New file.
2673 * mingwex/wctrans.c: New file.
2674 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
2675 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
2677 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2679 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
2681 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2683 * include/assert.h: Remove header guard. #undef assert macro.
2684 (_assert): Use __MINGW_ATTRIB_NORETURN define.
2686 2005-02-11 Gregory W. Chicares <chicares@cox.net>
2688 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
2689 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
2691 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
2692 * mingwex/math/expm1.c: New file.
2693 * mingwex/math/expm1f.c: New file.
2694 * mingwex/math/expm1l.c: New file.
2696 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
2698 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
2699 * include/wchar.h (struct stat): Likwwise.
2700 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
2702 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
2704 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
2706 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
2707 string is not valid.
2709 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
2711 * include/malloc.h: Add missing return code defines for
2714 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
2716 * include/sys/stat.h (struct __stat64): Change st_size type to
2718 * include/wchar.h (struct __stat64): Change st_size type to __int64.
2720 2005-01-13 Earnie Boyd <earnie@users.sf.net>
2722 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2724 * include/errno.h (ELOOP): Ditto.
2725 * include/_mingw.h: Increment version to 3.7.
2726 * Makefile.in: Ditto.
2728 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
2730 * include/tchar.h (_tfreopen): Add UNICODE mappings.
2732 2005-01-11 Earnie Boyd <earnie@users.sf.net>
2734 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2735 lstat): Conditionalize defines for __STRICT_ANSI__.
2737 2005-01-10 Earnie Boyd <earnie@users.sf.net>
2739 * include/errno.h (ELOOP): Add definition.
2741 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
2743 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
2744 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
2745 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
2746 ctanl.c ctanhl.c): New files.
2747 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2748 (COMPLEX_OBJS): Adjust.
2749 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
2750 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
2751 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
2754 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2756 * include/_mingw.h (__int16): Define as short.
2757 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
2759 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
2761 * include/stdio.h (P_tmpdir): Add define.
2763 2005-01-03 Earnie Boyd <earnie@users.sf.net>
2765 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
2767 2005-01-02 Earnie Boyd <earnie@users.sf.net>
2769 * include/_mingw.h: Increment version to 3.6
2770 * Makefile.in: Ditto
2772 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
2774 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
2775 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
2776 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
2777 ctanf.c ctanhf.c): New files.
2778 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2779 (COMPLEX_OBJS): Adjust.
2780 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
2781 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
2782 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
2785 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
2787 * include/wchar.h (wcsdup): Correct prototype.
2788 * include/string.h (wcsdup): Correct prototype.
2790 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2792 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
2794 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2796 * mingwex/math/fastmath.h: New file.
2797 * mingwex/math/asinh.c: New file.
2798 * mingwex/math/asinhf.c: New file.
2799 * mingwex/math/asinhl.c: New file.
2800 * mingwex/math/acosh.c: New file.
2801 * mingwex/math/acoshf.c: New file.
2802 * mingwex/math/acoshl.c: New file.
2803 * mingwex/math/atanh.c: New file.
2804 * mingwex/math/atanhf.c: New file.
2805 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
2806 atanh, atanhf, atanhl): Add prototypes.
2807 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
2808 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
2809 Specify dependency on fastmath.h for new objects.
2811 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2813 * include/sys/stat.h (_S_IFLNK): Add definition.
2820 2004-09-08 Earnie Boyd <earnie@users.sf.net>
2822 * include/sys/stat.h (_S_ISLNK): Add definition.
2825 2004-09-05 Earnie Boyd <earnie@users.sf.net>
2827 * include/_mingw.h: Increment minor version for 3.5 release.
2828 * Makefile.in: Ditto.
2829 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
2831 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2833 * include/malloc.h (__mingw_aligned_offset_malloc,
2834 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
2835 __mingw_aligned_realloc, __mingw_aligned_free): Add
2837 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
2838 tst-aligned-malloc.c.
2839 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
2841 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
2843 * mingwex/mingw-aligned-malloc.c: New file.
2844 * mingwex/tst-aligned-malloc.c: New file.
2846 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
2848 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
2849 noreturn attribute. Align stack to 16 bytes before passing args
2851 (mainCRTStartup): Change return to void.
2852 (WinMainCRTStartup): Likewise.
2854 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2856 * profile/COPYING: New file.
2857 * profile/CYGWIN_LICENSE: New file.
2858 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
2860 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2862 * mingwex/fopen64.c: Move.
2863 * mingwex/fseeko64.c: Move.
2864 * mingwex/ftello64.c: Move.
2865 * mingwex/lseek64.c: Move.
2866 * mingwex/stdio/fopen64.c: To here.
2867 * mingwex/stdio/fseeko64.c: To here.
2868 * mingwex/stdio/ftello64.c: To here.
2869 * mingwex/stdio/lseek64.c: To here.
2871 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
2873 * profile/gmon.c [__MINGW32__]: Include string.h for
2876 2004-08-08 Christopher Faylor <cgf@timesys.com>
2878 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
2880 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2882 * include/complex.h: Remove __attribute__ ((const)) from
2883 transcendantal and trig functions. Replace __attribute__ ((const))
2884 with __MINGW_ATTRIB_CONST on other declarations.
2886 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2888 * include/wchar.h: Reorganize, avoid including other headers.
2890 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2892 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
2893 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
2896 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2898 * include/dirent.h (struct _wdirent): Remove obsolete comment.
2900 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
2902 * include/string.h: Revert 2004-07-26 additions of
2905 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
2907 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
2908 (__convert_inf_to_maxnum): New.static inline.
2909 (reducl): Use it to protect against Inf - Inf.
2910 (__fast_ldexpl): New function. Use in lieu of ldexpl.
2912 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
2914 * mingwex/math/expl.c (expl): Move body of code to new static
2915 function __expl, removing tests for +/-Inf. Extern function
2916 expl calls __expl after testing for max, min log thresholds.
2918 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2920 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
2921 * mingwex/stdio/vfscanf.c: Likewise.
2922 * mingwex/stdio/vswscanf.c: Likewise.
2923 * mingwex/stdio/vfwscanf.c: Likewise.
2925 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2927 * include/_mingw.h: Use only two underscores to uglify
2928 __MINGW_ATTRIB_* macros.
2929 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
2930 * include/setjmp.h: Likewise.
2932 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
2934 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
2936 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
2938 * include/string.h: Group wide string functions together,
2939 and protect with _WSTRING_DEFINED.
2941 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
2943 * include/_mingw.h (__MINGW_ATTR_*): Replace with
2945 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
2946 __MINGW_ATTRIB_NORETURN, throughout.
2947 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
2949 (abs): Declare with __MINGW_ATTRIB_CONST.
2958 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
2960 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
2962 * include/_mingw.h: Undefine __attribute__.
2963 (__MINGW_ATTR_NORETURN): New define.
2964 (__MINGW_ATTR_CONST): New define.
2965 (__MINGW_ATTR_MALLOC): New define.
2966 (__MINGW_ATTR_PURE): New define.
2967 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
2970 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2972 * include/time.h (__time64_t): Add missing ';'.
2974 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
2976 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
2977 (struct tm): Protect with _TM_DEFINED.
2979 2004-07-17 Christopher Faylor <cgf@timesys.com>
2981 * Makefile.in (CC): Strip inappropriate include file settings from any
2984 2004-07-15 "dgun" <dgun@umpire.com>
2986 * include/complex.h (conj): Correct typo in prototype.
2988 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
2990 * include/math.h: Add pragma GCC system_header.
2992 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
2994 * mingwex/complex/carg.c: New file.
2995 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
2997 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
2999 * Makefile.in (INCLUDES): Temporarily revert previous change.
3000 * mingwex/Makefile,in (INCLUDES): Ditto.
3001 * profile/Makefile,in (INCLUDES): Ditto.
3002 * mingwex/Makefile,in: Drop carg.o dependency.
3004 2004-07-14 Christopher Faylor <cgf@timesys.com>
3006 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3008 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3010 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3012 * mingwex/Makefile,in (INCLUDES): Ditto.
3013 * profile/Makefile,in (INCLUDES): Ditto.
3015 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3017 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3019 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3021 * mingwex/Makefile.in: Ditto.
3022 * profile/Makefile.in: Ditto.
3023 * include/limits.h: Change to new file header preamble.
3024 * include/_mingw.h: Increment minor version for 3.4 release.
3025 * Makefile.in: Ditto.
3027 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3029 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3031 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3033 * include/unistd.h (ftruncate): Add inline definition.
3034 * mingwex/ftruncate.c: New file.
3035 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3037 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3039 * include/time.h: Do not include sys/types.h.
3041 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3043 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3044 (MATH_OBJS): Remove pow,o.
3045 * include/math.h (pow): Declare with _CRTIMP.
3046 Add comment on how to avoid excess precision problems.
3048 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3050 * include/stdio.h (__mingw_fseeko64): Add prototype.
3051 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3052 (__mingw_fwrite): Handle huge files.
3054 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3055 Danny Smith <dannysmith@users.sourceforge.net>
3057 * include/stdio.h (fopen64): Add inline function.
3058 (fseeko64): Add prototype.
3059 (ftello64): Add inline function.
3060 * include/io.h (lseek64): Add inline function.
3061 * include/sys/types (off64_t): Add typedef.
3062 (fpos64_t): Add typedef.
3063 * mingwex/fopen64.c: New file.
3064 * mingwex/fseeko64.c: New file.
3065 * mingwex/ftello64.c: New file.
3066 * mingwex/lseek64.c: New file.
3067 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3068 fseeko.64.c, ftello64.c, lseek64.c.
3069 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3071 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3073 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3075 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3077 * DISCLAIMER: Add words about "free to use".
3078 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3079 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3080 (inst_docdir): New variable.
3082 (FLAGS_TO_PASS): Include inst_docdir.
3083 (install-dirs): Add inst_docdir.
3084 (install): Add loop for INSTDOCS.
3085 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3086 section to CONTRIBUTORS file. Remove RCS tags.
3088 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3090 * mingwex/math/lround.c: Rewrite.
3091 * mingwex/math/lroundf.c: Rewrite.
3092 * mingwex/math/lroundl.c: Rewrite.
3093 * mingwex/math/llround.c: Rewrite.
3094 * mingwex/math/llroundf.c: Rewrite.
3095 * mingwex/math/llroundl.c: Rewrite.
3097 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3099 * CONTRIBUTORS: New file.
3100 * DISCLAIMER: Ditto.
3101 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3102 section to CONTRIBUTORS file. Remove RCS tags.
3103 * CRTFmode.c: Ditto.
3107 * crtdll.dev: Ditto.
3117 * msvcrt.def.in: Ditto.
3118 * strcasecmp.c: Ditto.
3121 * include/assert.h: Ditto.
3122 * include/conio.h: Ditto.
3123 * include/ctype.h: Ditto.
3124 * include/direct.h: Ditto.
3125 * include/dirent.h: Ditto.
3126 * include/dos.h: Ditto.
3127 * include/errno.h: Ditto.
3128 * include/excpt.h: Ditto.
3129 * include/fcntl.h: Ditto.
3130 * include/float.h: Ditto.
3131 * include/io.h: Ditto.
3132 * include/locale.h: Ditto.
3133 * include/malloc.h: Ditto.
3134 * include/math.h: Ditto.
3135 * include/process.h: Ditto.
3136 * include/setjmp.h: Ditto.
3137 * include/share.h: Ditto.
3138 * include/signal.h: Ditto.
3139 * include/stdio.h: Ditto.
3140 * include/stdlib.h: Ditto.
3141 * include/string.h: Ditto.
3142 * include/tchar.h: Ditto.
3143 * include/time.h: Ditto.
3144 * include/wchar.h: Ditto.
3145 * include/sys/locking.h: Ditto.
3146 * include/sys/param.h: Ditto.
3147 * include/sys/stat.h: Ditto.
3148 * include/sys/timeb.h: Ditto.
3149 * include/sys/types.h: Ditto.
3150 * include/sys/utime.h: Ditto.
3151 * mingwex/dirent.c: Ditto.
3153 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3155 * include/_mingw.h: Revert to primary release 3 and increment minor
3157 * Makefile.in (VERSION): Ditto.
3159 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3161 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3162 _fmode if not __MSVCRT__.
3164 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3166 * include/io.h: (_findfirst): Correct prototype.
3168 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3170 * include/io.h: (_findnext, _findclose): Correct prototype.
3172 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3174 * include/math.h (FP_*): Add defines.
3176 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3178 * mingwex/math/round.c: Rewrite.
3179 * mingwex/math/roundf.c: Rewrite.
3180 * mingwex/math/roundl.c: Rewrite.
3182 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3184 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3185 * include/time.h (__time64_t): Add typedef.
3186 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3187 (_ctime64): Likewise.
3188 (_wctime64): Likewise.
3189 (_gmtime64): Likewise.
3190 (_localtime64): Likewise.
3191 (wcsftime): Move into _WTIME_DEFINED block.
3192 Regroup non-ANSI prototypes.
3193 * include/io.h: Include <stdint.h>.
3194 (__finddata64_t): Add struct definition.
3195 (__wfinddata64_t): Likewise.
3196 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3197 (_findnext64): Likewise.
3198 (_wfindfirst64): Likewise.
3199 (_wfindnext64): Likewise.
3200 * include/sys/timeb.h (__timeb64): Add struct definition.
3201 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3202 * include/sys/utime.h (__utimbuf64): Add struct definition.
3203 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3204 (_futime64): Likewise.
3205 (_wutime64): Likewise.
3206 * include/sys/stat.h (__stat64): Add struct definition.
3207 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3208 (_stat64): Likewise.
3209 (_wstat64): Likwise.
3210 * include/sys/types.h (__time64_t): Add typedef.
3211 * include/wchar.h (__wfinddata64_t): Add structure definition.
3212 (__stat64): Likewise.
3213 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3214 (_wfindfirst64): Likewise.
3215 (_wfindnext64): Likewise.
3216 (_wutime64): Likewise.
3217 (_wstat64): Likwise.
3218 * include/malloc.h (_aligned_free): Add prototype for
3219 __MSVCRT_VERSION__ >= 0x0700.
3220 (_aligned_malloc): Likewise.
3221 (_aligned_offset_malloc): Likewise.
3222 (_aligned_offset_realloc): Likewise.
3223 (_aligned_realloc): Likewise.
3224 * include/string.h (_wcserror): Add prototype for
3225 __MSVCRT_VERSION__ >= 0x0700.
3226 (__wcserror): Likewise.
3227 * include/math.h (_set_SSE2_enable): Add prototype for
3228 __MSVCRT_VERSION__ >= 0x0701.
3230 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3232 * include/stdio.h (_fsopen): Add prototype.
3233 * include/tchar.h (_tfsopen): Add defines.
3234 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
3236 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3238 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
3239 msvcr70.dll, and msvcr71.dll.
3240 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
3241 using basename of output def file.
3243 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3245 * include/malloc.h: Remove __STRICT_ANSI__ guard.
3247 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
3249 * include/process.h: Remove the #endif associated with removal of
3250 __STRICT_ANSI__ guard from non-ANSI header.
3252 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3254 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
3255 * include/direct.h: Ditto.
3256 * include/dirent.h: Ditto.
3257 * include/dos.h: Ditto.
3258 * include/excpt.h: Ditto.
3260 * include/io.h: Ditto.
3261 * inlude/mem.h: Ditto.
3262 * include/memory.h: Ditto.
3263 * include/process.h: Ditto.
3264 * inlude/search.h: Ditto.
3265 * include/share.h: Ditto.
3266 * include/unistd.h: Ditto.
3267 * include/sys/fcntl.h: Ditto.
3268 * include/file.h: Ditto.
3269 * include/sys/locking.h: Ditto.
3270 * include/sys/param.h: Ditto.
3271 * include/sys/stat,h
3272 * include/sys/time.h: Ditto.
3273 * include/sys/timeb.h: Ditto.
3274 * include/sys/types.h: Ditto.
3275 * include/sys/unistd.h: Ditto.
3276 * include/sys/utime.h: Ditto.
3278 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
3280 * include/_mingw.h (__UNUSED_PARAM): Define macro.
3281 * include/wchar.h (fwide): Use it.
3284 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3286 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
3287 NetBSD getopt_long.c.
3289 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3291 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
3292 codes and handling of special chars.
3294 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
3296 * include/stdio.h (feof): Add inlined definition.
3299 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3301 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
3302 directly, rather than via scabnl.
3304 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3306 * mingwex/math/powl.c (powl): Return infinity if
3307 extended precision multiplication of x by log2(y)
3310 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3312 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
3313 (__enan_NI16): Fix another one.
3314 (__enan_NBITS): Tidy.
3316 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3318 * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
3319 types. (Thanks to John Maddock for report.)
3321 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
3323 * include/tchar.h (_puttchar): Define.
3325 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
3327 * include/stdio.h:(_fileno): Define macro version after both
3328 fileno and _fileno functions declared.
3330 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
3331 * moldnames.def.in (rmtmp) Add stub.
3333 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
3335 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
3337 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
3339 * include/math.h: Guard ISO C99 additions with __cplusplus
3342 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3344 * include/_mingw.h: Define __attribute__((x)) to nothing
3347 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3349 * include/complex.h: New file.
3350 * mingwex/complex: New directory.
3351 * mingwex/complex/cabs.c: New file.
3352 * mingwex/complex/cacos.c: New file.
3353 * mingwex/complex/cacosh.c: New file.
3354 * mingwex/complex/casin.c: New file.
3355 * mingwex/complex/casinh.c: New file.
3356 * mingwex/complex/catan.c: New file.
3357 * mingwex/complex/catanh.c: New file.
3358 * mingwex/complex/ccos.c: New file.
3359 * mingwex/complex/ccosh.c: New file.
3360 * mingwex/complex/cexp.c: New file.
3361 * mingwex/complex/cimag.c: New file.
3362 * mingwex/complex/clog.c: New file.
3363 * mingwex/complex/cpow.c: New file.
3364 * mingwex/complex/cproj.c: New file.
3365 * mingwex/complex/creal.c: New file.
3366 * mingwex/complex/csin.c: New file.
3367 * mingwex/complex/csinh.c: New file.
3368 * mingwex/complex/csqrt.c: New file.
3369 * mingwex/complex/ctan.c: New file.
3370 * mingwex/complex/ctanh.c: New file.
3371 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3374 (COMPLEX_OBJS): New list of objects.
3375 (LIB_OBJS): Include it in the library.
3377 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3379 * include/math.h (cabs): Remove non-ISO prototype.
3381 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3383 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3384 Use GCC __builtin's if available.
3385 (INFINITY, INFINITYF, INFINITYL): Likewise.
3387 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3389 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3390 beyond approximation limit.
3391 * mingwex/math/sf_erf.c (erff): Likewise.
3393 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3395 * include/stdio.h (getc): Cast result to unsigned char before
3398 (getchar): Likewise.
3399 (putchar): Likewise.
3400 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3402 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3404 * include/_mingw.h: Increment version to 3.2.
3405 * Makefile.in: Ditto.
3407 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3409 * include/sys/types.h: Revert last change.
3411 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3413 * include/sys/types.h (ssize_t): Correct the definition.
3415 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3417 * include/stdio.h (_filbuf): Add prototype.
3418 (_flsbuf): Add prototype.
3419 (getc): Add inline version.
3421 (getchar): Likewise.
3422 (putchar): Likewise.
3424 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3426 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3429 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3431 * include/stdlib.h: Guard non-ISO functions with
3432 !__STRICT_ANSI__, throughout.
3434 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3436 * include/io.h (_fileno): Remove prototype.
3438 (FILENAME_MAX): Define, if needed.
3439 Don't include <stdio.h>.
3440 * include/stdio.h (FILENAME_MAX): Protect against
3442 (_fileno): Define macro implementation.
3445 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3447 * include/inttypes.h: Include _mingw.h.
3449 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3451 * include/_mingw.h (__CRT_INLINE): Define.
3452 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3454 * include/inttypes.h: Likewise.
3455 * include/math.h: Likewise.
3456 * include/stdio.h: Likewise.
3457 * include/stdlib.h: Likewise.
3458 * include/string.h: Likewise.
3459 * include/wchar.h: Likewise.
3460 * include/wctype.h: Likewise.
3462 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3464 * mingwex/dirent.c (_topendir): Allocate enough memory for
3465 DIR struct in UNICODE case too.
3467 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3469 * include/_mingw.h: Increment version to 3.2.
3470 * Makefile.in: Ditto.
3472 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3474 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3476 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3478 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3479 * mingwex/math/truncf.c (truncf): Likewise.
3480 * mingwex/math/truncl.c (truncl): Likewise.
3481 * mingwex/math/modff.c (modff): Likewise.
3482 * mingwex/math/modfl.c (modfl): Likewise.
3484 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3486 * include/search.h: New file.
3487 * include/stdlib.h: Add comment about qsort, bsearch in
3489 * test_headers.c: Include search.h.
3490 * moldname.def.in (lfind, lsearch): Add.
3492 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3494 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
3495 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
3496 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
3498 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3500 * include/_mingw.h (small, hyper): Change to __small and __hyper to
3501 avoid user space name conflicts.
3503 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3505 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
3506 Note: Also added to w32api/include/basetyps.h.
3507 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
3508 Rename to Small (case difference).
3510 2003-06-18 Earnie Boyd <earnie@users.sf.net>
3512 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
3513 * mingwex/dirent.c: Modifications througout to fill d_name array.
3514 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
3515 libmsvcr71, including debug versions.
3516 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
3518 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
3520 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
3521 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
3523 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
3525 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
3527 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
3529 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
3531 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
3532 but still protect inline definition with __STRICT_ANSI__.
3534 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
3536 * string_old.c: Remove, splitting into...
3537 * strcasecmp.c: New file.
3538 * strncasecmp.c: New file.
3539 * wscmpi.c : New file.
3540 * ctype_old.c: Remove, splitting into...
3541 * isascii.c: New file.
3542 * iscsym.c: New file.
3543 * iscsymf.c: New file.
3544 * toascii.c: New file.
3545 * Makefile.in (MOLD_OBJS): Adjust.
3546 (SRCDIST_FILES): Adjust.
3548 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
3550 * include/math.h (fabs) : Remove inline definition.
3554 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3556 * include/_mingw.h: Change version to 3.0
3557 * Makefile.in: Ditto.
3559 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3561 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
3562 * mingwex/configure.in (W32API_INCLUDE): Ditto.
3563 * profile/configure.in (W32API_INCLUDE): Ditto.
3565 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3567 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
3568 of multiply defined symbols if the symbols is defined locally. E.G.:
3569 A local definition of malloc causes this problem.
3570 * configure: Regenerate.
3571 * profile/Makefile.in (W32API_INCLUDE): New variable.
3572 (ALL_CFLAGS): Use W32API_INCLUDE value.
3573 (ALL_CXXFLAGS): Ditto.
3574 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
3575 Thanks to Jeff Bonggren <jbon@users.sf.net>.
3576 * profile/configure.in (W32API_INCLUDE): Set default value.
3577 * profile/configure: Regenerate.
3578 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
3579 (ALL_CFLAGS): Use W32API-INCLUDE value.
3580 (ALL_CXXFLAGS): Ditto.
3581 * mingwex/configure.in (W32API_INCLUDE): Set default value.
3582 * mingwex/configure: Regenerate.
3584 2003-05-05 Earnie Boyd <earnie@users.sf.net>
3586 * Makefile.in (W32API_INCLUDE): New variable.
3587 (ALL_CFLAGS): Use W32API_INCLUDE value.
3588 (ALL_CXXFLAGS): Ditto.
3589 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
3590 (W32API_INCLUDE): Set default value.
3591 * configure: Regenerate.
3593 2003-04-11 Earnie Boyd <earnie@users.sf.net>
3595 * configure.in (LIBM_A): Define for cygwin target.
3596 * configure (LIBM_A): Ditto.
3598 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
3600 * include/time.h (strftime): Remove duplicate declaration.
3602 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3604 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
3606 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3608 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
3609 * mingwex/strtoimax.c (strtoimax): Likewise.
3610 * mingwex/wcstoimax.c (wcstoimax): Likewise.
3611 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
3612 * mingwex/fesentenv.c: Include float.h.
3613 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
3615 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
3617 * mingwex/math/tgammal.c: Likewise.
3619 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3621 * include/utime.h: New file, forwarding to sys/utime.h.
3623 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3625 * include/sys/param.h (MAXPATHLEN): Define.
3627 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3629 * include/tchar.h: Ansi-fy a comment.
3631 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3633 * profile/profile.h (mcount): Use __builtin_return_address
3634 rather than inline __asm statements.
3635 * profile/Makefile.in: Remove special rule for mcount.o
3636 Specify dependencies for mcount.o profil.o gmon.o.
3638 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3640 * include/stdlib.h (qsort): Remove const from first parm.
3641 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
3643 2003-03-03 Christopher Faylor <cgf@redhat.com>
3645 * mingwex/getopt.c: Refresh from NetBSD sources.
3647 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
3649 * mingwex/getopt.c: New file, copied from cygwin srcs.
3650 * include/getopt.h: New file, copied from cygwin srcs.
3651 * include/unistd.h: Include getopt.h.
3652 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
3653 (POSIX_OBJS): Add getopt.o.
3655 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
3657 * include/stdio.h (vscanf): Add prototype.
3663 * include/wchar.h (vwscanf): Add prototype.
3666 * mingwex/snprintf.c: Move to mingwex/stdio.
3667 * mingwex/vsnprintf.c: Ditto.
3668 * mingwex/snwprintf.c: Ditto.
3669 * mingwex/vsnwprintf.c: Ditto.
3670 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
3671 (STDIO_DISTFILES): Add.
3672 (DISTFILES): Adjust.
3673 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
3677 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
3679 * mingwex/stdio: New directory
3680 * mingwex/stdio/vfscanf.c: New file.
3681 * mingwex/stdio/vfwscanf.c: New file.
3682 * mingwex/stdio/vscanf.c: New file.
3683 * mingwex/stdio/vsscanf.c: New file.
3684 * mingwex/stdio/vswscanf.c: New file.
3685 * mingwex/stdio/vwscanf.c: New file.
3687 2003-02-25 Earnie Boyd <earnie@users.sf.net>
3689 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
3690 (libmsvcrt40.a): Ditto.
3692 2003-02-21 Earnie Boyd <earnie@users.sf.net>
3694 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
3696 * Makefile.in (libmsvcrtd.a): Add target library.
3697 (libmoldnamed.a): Ditto.
3698 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
3700 ($(srcdir)): Remove explicit reference for depencies of object targets.
3701 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
3702 msvcrt20.def, msvcrt40.def: Remove.
3703 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
3705 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
3707 * Makefile.in: Make sure libmingwex.a from current build tree is used.
3709 2003-02-14 Christopher Faylor <cgf@redhat.com>
3711 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
3712 ensure -mno-cygwin where appropriate. Filter out -O2.
3714 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
3716 * profile/Makefile.in (mcount.o): Use -O1 optimization
3719 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3721 * include/math.h: Remove _CRTIMP from pow() prototype,
3722 unless __NO_ISOCEXT.
3724 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3726 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
3728 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3730 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
3731 __declspec(dllimport) supported.
3732 (__cdecl): Define if not already defined.
3733 (__stdcall): Likewise.
3734 * include/dirent.h: Qualify fuctions with __cdecl.
3735 * include/fenv.h: Likewise.
3736 * include/inttypes.h: Likewise.
3737 * include/assert.h: Qualify fuctions with __cdecl. Qualify
3738 CRT dll imports with _CRTIMP.
3739 * include/conio.h: Likewise.
3740 * include/ctype.h: Likewise.
3741 * include/direct.h: Likewise.
3742 * include/dos.h: Likewise.
3743 * include/errno.h: Likewise.
3744 * include/float.h: Likewise.
3745 * include/io.h: Likewise.
3746 * include/locale.h: Likewise.
3747 * include/malloc.h: Likewise.
3748 * include/math.h: Likewise.
3749 * include/mbctype.h: Likewise.
3750 * include/mbstring.h: Likewise.
3751 * include/process.h: Likewise.
3752 * include/setjmp.h: Likewise.
3753 * include/signal.h: Likewise.
3754 * include/stdio.h: Likewise.
3755 * include/stdlib.h: Likewise.
3756 * include/string.h: Likewise.
3757 * include/time.h: Likewise.
3758 * include/wchar.h: Likewise.
3759 * include/wctype.h: Likewise.
3760 * include/sys/stat.h: Likewise.
3761 * include/sys/timeb.h: Likewise.
3762 * include/sys/utime.h: Likewise.
3764 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
3765 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
3767 * include/stdio.h (__VALIST): Guard against prior definition.
3769 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3771 * include/_mingw.h: Change version to 3.0
3772 * Makefile.in: Ditto.
3774 2003-02-08 Earnie Boyd <earnie@users.sf.net>
3776 * include/stdlib.h: Make words after #endif a comment.
3778 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3780 * include/locale.h: Include stddef.h for definition of NULL.
3782 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3784 * include/math.h (tgamma): Correct typo in comment.
3786 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3788 * mingwex/mingw-fseek.c (INLINE): Remove define.
3789 (__mingw_is_win9x): Remove static inline function.
3790 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
3792 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3794 * mingwex/math/llround.c: Correct function name and
3795 change return value to long long.
3797 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
3799 * include/ctype.h (__isascii): Don't cast arg to unsigned.
3800 (iswascii): Likewise. Correct mask.
3801 * include/wctype.h (iswascii): Don't cast arg to unsigned.
3804 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
3806 * include/stdlib.h (_osver, _winver, _winmajor,
3807 _winminor): Declare as direct imports from dll if
3808 __DECLSPEC_SUPPORTED.
3810 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
3812 * pseudo-reloc.c (do_pseudo_reloc): Make static.
3813 * pseudo-reloc-list.c: New file.
3814 * crt1.c (_pei386_runtime_relocator): Declare.
3815 (__mingw_CRTStartup): Call it.
3816 * dllcrt1.c (_pei386_runtime_relocator): Declare.
3817 (DllMainCRTStartup): Call it.
3818 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
3821 2003-01-01 Egor Duda <deo@logos-m.ru>
3823 * pseudo-reloc.c: New file.
3825 2002-12-20 Earnie Boyd <earnie@users.sf.net>
3827 * include/_mingw.h: Increment version to 2.4.
3830 2002-12-12 Earnie Boyd <earnie@users.sf.net>
3832 * include/malloc.h (_alloca): Add definition.
3835 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
3837 * mingwex/math/s_erf.c: New file.
3838 * mingwex/math/sf_erf.c: New file.
3839 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3840 (MATH_OBJS): Add new objects.
3841 * include/math.h (erf[f]): Add prototypes.
3842 (erfc[f]): Add prototypes.
3844 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
3846 * include/math.h: Add traditional/XOPEN math constants.
3848 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
3850 * mingwex/math/lgamma.c: New file.
3851 * mingwex/math/lgammaf.c: New file.
3852 * mingwex/math/lgammal.c: New file.
3853 * mingwex/math/tgamma.c: New file.
3854 * mingwex/math/tgammaf.c: New file.
3855 * mingwex/math/tgammal.c: New file.
3856 * mingwex/math/cephes_mconf (polevlf): Add float version.
3858 Define _CEPHES_USE_ERRNO.
3859 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
3860 (MATH_OBJS): Add new objects.
3861 * include/math.h (lgamma[fl]): Add prototypes.
3862 (tgamma[fl]): Add prototypes.
3864 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
3866 * mingwex/strtold.c: New file.
3867 * mingwex/wcstold.c: New file.
3868 * mingwex/ldtoa.c: New file.
3869 * mingwex/math/cephes_emath.h: New file.
3870 * mingwex/math/cephes_emath.c: New file.
3871 * mingwex/Makefile.in (DISTFILES): Add new files.
3872 (MATH_DISTFILES): Ditto.
3873 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
3874 (MATH_OBJS): Add cephes_emath.o.
3875 (LIB_OBJS): Add $(STDLIB_OBJS).
3876 * include/stdlib.h (strtold, wcstold): Add prototypes.
3877 * include/wchar.h (wcstold): Add prototype.
3879 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3881 * include/math.h (sqrt): Remove inline definition.
3882 (sqrtf): Replace inline definition with prototype.
3884 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
3885 argument less than zero.
3886 * mingwex/math/sqrtf.c (sqrtl): Likewise.
3888 2002-10-30 Guido Serassio <serassio@libero.it>
3890 * include/stdio.h (_getmaxstdio): Add prototype.
3891 (_setmaxstdio): Likewise.
3893 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
3895 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
3897 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3899 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
3901 Define WIN32_MEAN_AND_LEAN before including windows.h
3902 * include/stdlib.h (_fmode): Protect declaration as dllimported
3903 variable with __IN_MINGW_RUNTIME.
3905 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3907 * crt1.c: Include stdlib.h.
3909 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
3911 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
3912 (MINGW_OBJS): Add txtmode.o.
3913 (SRCDIST_FILES): Add txtmode.c binmode.c.
3914 crt1.c: Don't include fcntrl.h, stdlib.h.
3915 (_fmode): Declare, without dllimport attribute.
3916 (__p__fmode): Declare access function for dll's _fmode.
3917 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
3919 * txtmode.c: New file.
3920 * binmode.c: New file.
3921 * samples/fmode/test2.c: New file.
3922 * samples/fmode/jamfile: Add test2.exe target.
3924 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
3926 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
3927 macros work with C89.
3928 (INTMAX_C, UINTMAX_C): Likewise.
3930 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
3932 * include/string.h (strcasecmp): Make extern __inline__.
3933 (strncasecmp): Likewise.
3934 (wcscmpi): Likewise.
3936 2002-10-08 Heiko Gerdau <hg@technosis.de>
3938 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
3939 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
3942 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3944 * mingwex/math/powil.c: Rename powil to __powil.
3945 * mingwex/math/powl.c: Adjust declaration and call
3946 to __powil. Remove comment on powil.
3947 * mingwex/math/powi.c: New file.
3948 * mingwex/math/powif.c: New file.
3949 * mingwex/math/pow.c: New file.
3950 * mingwex/math/cephes_mconf.h. Add double and float
3951 versions of constants.
3952 (polevl): Add double precision function.
3954 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
3956 (MATH_OBJS): Add pow.o, powi.o, powif.o.
3958 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3960 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
3961 (_imp____mbcur_max_dll): Likewise.
3963 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3965 * include/fcntl.h (_fmode): Remove declarations and
3966 compatibility defines.
3967 (_setmode, setmode): Remove prototypes.
3968 * include/stdlib (_fmode): Add declarations and
3969 compatibility defines. Change type to int.
3970 * include/io.h (_setmode, setmode): Add prototypes.
3971 * samples/fmode/all.c: Adjust includes.
3972 * samples/fmode/test.c: Likewise.
3973 * crt1.c (_CRT_fmode): Declare as int.
3974 * CRTfmode.c (_CRT_fmode): Likewise.
3976 * include/stdlib: Remove comment about MB_CUR_MAX.
3978 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
3980 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
3981 (_imp____mbcur_max_dll): Likewise.
3983 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3985 * mingwex/math/files.txt: Remove inadvertantly added file.
3987 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3989 * include/string.h (_strerror): Move into #ifndef
3990 __STRICT_ANSI__ block.
3992 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
3994 * include/time.h (__need_NULL): Define before including
3995 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
3997 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
3999 * include/stdio.h: Correct comment about directory separator.
4001 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4003 * include/sys/time.h (timeval): Add struct definition and
4004 associated macros (copied from w32api/include/winsock.h).
4006 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4008 * include/_mingw.h: Increment version to 2.3.
4011 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4013 * mingwex/fegetenv.c: Change to \n line endings.
4014 * mingwex/vsnprintf.c: Ditto.
4015 * mingwex/vsnwprintf.c: Ditto.
4017 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4019 * mingwex/math/hypotl.c: Replace with version based on cephes
4022 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4024 * include/sys/param.h: Add ENDIAN defines.
4025 * test_headers.c: Include sys/param.h.
4027 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4029 * test_headers.c: Don't include varargs.h.
4030 * Makefile.in (test_headers): Don't use -std=xx
4033 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4035 * include/sys/param.h: New File.
4037 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4039 * include/math.h (asm): Change to __asm__ throughout.
4040 Expose ISO C99 functions if __GLIPCPP__.
4041 (hypotf): Use hypot, not _hypot in stub.
4043 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4045 * include/tchar.h: Ansi-fy another comment.
4047 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4049 * include/tchar.h: Ansi-fy comment.
4051 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4053 * test_headers.c : New file.
4054 * Makefile.in (test_headers): New target, using it,
4055 (SRCDIST_FILES): Distribute it.
4057 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4059 * include/_mingw.h: Increment version to 2.2.
4062 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4064 * include/unistd.h: Add include of process.h.
4066 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4068 * include/stdio.h (_fcloseall): Add prototype.
4070 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4072 * include/tchar.h (_tfdopen): Correct typo.
4074 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4076 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4077 nextafter): Add non-underscored stubs.
4078 * moldname-msvcrt.def: Regenerate.
4079 * moldname-crtdll.def: Regenerate.
4080 * mingwex/math: New directory.
4081 * mingwex/rint.c: Move to mingwex/math.
4082 * mingwex/rintf.c: Ditto.
4083 * mingwex/rintl.c: Ditto.
4084 * mingwex/round.c: Ditto.
4085 * mingwex/roundf.c: Ditto.
4086 * mingwex/roundl.c: Ditto.
4087 * mingwex/rint.c: Ditto.
4088 * mingwex/rintf.c: Ditto.
4089 * mingwex/rintl.c: Ditto.
4090 * mingwex/trunc.c: Ditto.
4091 * mingwex/truncf.c: Ditto.
4092 * mingwex/truncl.c: Ditto.
4093 * mingwex/signbit.c: Ditto.
4094 * mingwex/signbitf.c: Ditto.
4095 * mingwex/signbitl.c: Ditto.
4096 * mingwex/copysignl.S: Ditto.
4097 * mingwex/fdim.c: Ditto.
4098 * mingwex/fdimf.c: Ditto.
4099 * mingwex/fdiml.c: Ditto.
4100 * mingwex/fmin.c: Ditto.
4101 * mingwex/fminf.c: Ditto.
4102 * mingwex/fminl.c: Ditto.
4103 * mingwex/fmax.c: Ditto.
4104 * mingwex/fmaxf.c: Ditto.
4105 * mingwex/fmaxl.c: Ditto.
4106 * mingwex/fma.c: Ditto.
4107 * mingwex/fmaf.c: Ditto.
4108 * mingwex/fmal.c: Ditto.
4109 * mingwex/fpclassify.c: Ditto.
4110 * mingwex/fpclassifyl.c: Ditto.
4111 * mingwex/fpclassifyl.c: Ditto.
4112 * mingwex/isnan.c: Ditto.
4113 * mingwex/isnanf.c: Ditto.
4114 * mingwex/isnanl.c: Ditto.
4115 * mingwex/fucom.c: Ditto.
4116 * mingwex/fp_consts.c: Ditto. Split out float and long double
4118 * mingwex/math_stubs.c: Remove.
4119 * mingwex/log2.c: Remove. Replaced by math/log2.S
4120 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4121 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4122 * mingwex/math/acosf.c : New file.
4123 * mingwex/math/acosl.c: New file.
4124 * mingwex/math/asinf.c: New file.
4125 * mingwex/math/asinl.c: New file.
4126 * mingwex/math/atan2f.c: New file.
4127 * mingwex/math/atan2l.c: New file.
4128 * mingwex/math/atanf.c: New file.
4129 * mingwex/math/atanl.c: New file.
4130 * mingwex/math/cbrt.c: New file.
4131 * mingwex/math/cbrtf.c: New file.
4132 * mingwex/math/cbrtl.c: New file.
4133 * mingwex/math/ceilf.S: New file.
4134 * mingwex/math/ceill.S: New file.
4135 * mingwex/math/cephes_ld.h: New file.
4136 * mingwex/math/copysign.S: New file.
4137 * mingwex/math/copysignf.S: New file.
4138 * mingwex/math/cosf.S: New file.
4139 * mingwex/math/coshf.c: New file.
4140 * mingwex/math/coshl.c: New file.
4141 * mingwex/math/cosl.S: New file.
4142 * mingwex/math/exp2.S: New file.
4143 * mingwex/math/exp2f.S: New file.
4144 * mingwex/math/exp2l.S: New file.
4145 * mingwex/math/expf.c: New file.
4146 * mingwex/math/expl.c: New file.
4147 * mingwex/math/fabs.c: New file.
4148 * mingwex/math/fabsf.c: New file.
4149 * mingwex/math/fabsl.c: New file.
4150 * mingwex/math/floorf.S: New file.
4151 * mingwex/math/floorl.S: New file.
4152 * mingwex/math/fmodf.c: New file.
4153 * mingwex/math/fmodl.c: New file.
4154 * mingwex/math/fp_consts.h: Ditto.
4155 * mingwex/math/fp_constsf.c: Ditto.
4156 * mingwex/math/fp_constsl.c: Ditto.
4157 * mingwex/math/frexpf.c: New file.
4158 * mingwex/math/frexpl.S: New file.
4159 * mingwex/math/hypotf.c: New file.
4160 * mingwex/math/hypotl.c: New file.
4161 * mingwex/math/ilogb.S: New file.
4162 * mingwex/math/ilogbf.S: New file.
4163 * mingwex/math/ilogbl.S: New file.
4164 * mingwex/math/ldexpf.c: New file.
4165 * mingwex/math/ldexpl.c: New file.
4166 * mingwex/math/llrint.c: New file.
4167 * mingwex/math/llrintf.c: New file.
4168 * mingwex/math/llrintl.c: New file.
4169 * mingwex/math/llround.c: New file.
4170 * mingwex/math/llroundf.c: New file.
4171 * mingwex/math/llroundl.c: New file.
4172 * mingwex/math/log10f.S: New file.
4173 * mingwex/math/log10l.S: New file.
4174 * mingwex/math/log1p.S: New file.
4175 * mingwex/math/log1pf.S: New file.
4176 * mingwex/math/log1pl.S: New file.
4177 * mingwex/math/log2.S: New file.
4178 * mingwex/math/log2f.S: New file.
4179 * mingwex/math/log2l.S: New file.
4180 * mingwex/math/logb.c: New file.
4181 * mingwex/math/logbf.c: New file.
4182 * mingwex/math/logbl.c: New file.
4183 * mingwex/math/logf.S: New file.
4184 * mingwex/math/logl.S: New file.
4185 * mingwex/math/lrint.c: New file.
4186 * mingwex/math/lrintf.c: New file.
4187 * mingwex/math/lrintl.c: New file.
4188 * mingwex/math/lround.c: New file.
4189 * mingwex/math/lroundf.c: New file.
4190 * mingwex/math/lroundl.c: New file.
4191 * mingwex/math/modff.c: New file.
4192 * mingwex/math/modfl.c: New file.
4193 * mingwex/math/nearbyint.S: New file.
4194 * mingwex/math/nearbyintf.S: New file.
4195 * mingwex/math/nearbyintl.S: New file.
4196 * mingwex/math/nextafterf.c: New file.
4197 * mingwex/math/powf.c: New file.
4198 * mingwex/math/powl.c: New file.
4199 * mingwex/math/powil.c: New file.
4200 * mingwex/math/remainder.S: New file.
4201 * mingwex/math/remainderf.S: New file.
4202 * mingwex/math/remainderl.S: New file.
4203 * mingwex/math/remquo.S: New file.
4204 * mingwex/math/remquof.S: New file.
4205 * mingwex/math/remquol.S: New file.
4206 * mingwex/math/scalbn.S: New file.
4207 * mingwex/math/scalbnf.S: New file.
4208 * mingwex/math/scalbnl.S: New file.
4209 * mingwex/math/sinf.S: New file.
4210 * mingwex/math/sinhf.c: New file.
4211 * mingwex/math/sinhl.c: New file.
4212 * mingwex/math/sinl.S: New file.
4213 * mingwex/math/sqrt.c: New file.
4214 * mingwex/math/sqrtf.c: New file.
4215 * mingwex/math/sqrtl.c: New file.
4216 * mingwex/math/tanf.S: New file.
4217 * mingwex/math/tanhf.c: New file.
4218 * mingwex/math/tanhl.c: New file.
4219 * mingwex/math/tanl.S: New file.
4220 * mingwex/Makefile.in: Adjust VPATH for source files in
4223 Add MATH_DISTFILES and use it to build source distro.
4224 * include/math.h: Add protypes for new functions and
4225 reorganise to reflect ANSI,C99 status.
4227 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
4229 * include/tchar.h (_getts): Define as _getws for _UNICODE.
4230 (_putts): Define as _putws for _UNICODE.
4231 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
4233 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
4235 * include/float.h: #include_next<float.h> before header guard.
4237 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
4239 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
4241 * include/excpt.h (): Include windef.h not windows.h.
4242 * include/fcntl.h (_O_SHORT_LIVED): Add define.
4243 (_chmod): Add prototype.
4244 (_creat): Correct prototype.
4245 (SH_DENY*): Rename defines to _SH_DENY*.
4246 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
4247 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
4248 _IOAPPEND): Add defines.
4249 (_wfindfirst): Correct prototype.
4250 (_wfdopen): Add prototype.
4251 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
4253 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
4255 (_wcsdup): Correct prototype.
4256 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
4257 _mbsncat being in string.h.
4258 * include/wchar.h (_wfindfirst): Correct prototype.
4259 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
4261 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4263 * include/_mingw.h: Increment to version 2.1.
4264 * Makefile.in: Ditto.
4266 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4268 * Makefile.in (conf_prefix): New variable.
4269 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
4270 (bindist): Use dist_prefix.
4272 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
4274 * include/_mingw.h: Increment version to 2.0.
4275 * Makefile.in: Ditto.
4277 Merge in mingwex branch.
4279 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
4281 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
4282 * mingwex/fdim.c: New file.
4283 * mingwex/fdimf.c: New file.
4284 * mingwex/fdiml.c: New file.
4285 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
4287 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
4289 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
4291 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
4293 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
4295 * mingwex/isnanl.c: New file.
4297 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4299 * include/stdint.h: Include stddef.h to get
4301 (WINT_MAX): Define to ((wint_t)-1).
4303 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4305 * include/wctype.h: Replace 'inline' with '__inline__'.
4306 * include/inttypes.h: Likewise.
4308 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4310 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
4311 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
4313 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4315 * mingwex/snprintf.c: Split out vsnprintf to....
4316 * mingwex/vsnprintf.c: New file.
4317 * mingwex/snwprintf.c: Split out vsnwprintf to...
4318 * mingwex/vsnwprintf.c: New file.
4319 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
4321 2002-05-15 Pascal Obry <obry@gnat.com>
4323 * include/dirent.h (DIR): Change dd_stat type to int.
4326 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
4328 * include/stdio.h (vsnprintf): Change inline to __inline__;
4329 (vsnwprintf): Likewise.
4330 * include/wchar.h (vsnwprintf): Likewise.
4333 (mbsinit): Likewise.
4335 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
4337 Change FP default precison from 53 to 64-bit mantissa.
4339 * Makefile.in (CRT0S): Add CRT_fp8.o.
4340 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
4341 * include/float.h: Replace standard float.h defines with
4342 #include_next<float.h> to use GCC's defines. Adjust comments
4345 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4347 * include/dos.h: Change prefix "__imp_" to "_imp__" for
4348 __GNUC__ without __DECLSPEC_SUPPORTED.
4349 * include/fnctl.h: Likewise.
4350 * include/math.h: Likewise.
4351 * include/stdio.h: Likewise.
4352 * include/stdlib.h: Likewise.
4353 * include/time.h: Likewise.
4354 * include/wctype.h: Likewise.
4355 * include/ctype.h: Likewise.
4357 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4359 Add atexit support for dlls.
4360 * crt1.c (atexit): Force thunk to _imp__atexit.
4361 (_onexit): Force thunk to _imp___onexit.
4362 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4363 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4364 (__dll_exit): New function to run atexit-registered functions
4365 and flush output buffers on DLL_PROCESS_DETACH or failed
4367 (atexit): Force use of private atexit table via _dllonexit,
4368 (_onexit): New function. Force use of private atexit table via
4370 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4371 _imp_<_symbol> is visible in import lib.
4372 * msvcrt20.def: Likewise.
4373 * msvcrt40.def: Likewise.
4374 * crtdll.def: Likewise.
4376 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4378 * include/fenv.h: Change header guard macro to _FENV_H_.
4379 (fenv_t, fexcept_t): Move into block protected by
4381 Cleanup some whitespace.
4382 * include/inttypes.h: Change header guard macro to
4385 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4387 * include/math.h (copysignl): Declare.
4388 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4389 (MATHOBJS):Add copysignl.o.
4391 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4393 * include/math.h (__signbitl, __isnanl): Declare.
4395 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4397 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4398 roundl, truncl, fmal, log2l): Declare.
4399 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4400 || !defined __STRICT_ANSI__.
4401 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4402 * mingwex/fmin.c (fmin): Likewise.
4403 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4404 * mingwex/fminf.c (fminf): Likewise.
4405 * mingwex/fmaxl.c: New file.
4406 * mingwex/fminl.c: New file.
4407 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4408 * mingwex/fpclassifyf.c: New file.
4409 * mingwex/fpclassifyl.c: New file.
4410 * mingwex/rint.c (rintf): Split out to...
4411 * mingwex/rintf.c: New file.
4412 * mingwex/rintl.c: New file.
4413 * mingwex/round.c (roundf): Split out to...
4414 * mingwex/roundf.c: New file.
4415 * mingwex/roundl.c: New file.
4416 * mingwex/trunc.c (truncf): Split out to...
4417 * mingwex/truncf.c: New file.
4418 * mingwex/truncl.c: New file.
4419 * mingwex/signbit.c (signbitf): Split out to...
4420 * mingwex/signbitf.c: New file.
4421 * mingwex/signbitl.c: New file.
4422 * mingwex/fmal.c: New file.
4423 * mingwex/copysignl.S: New file.
4424 * mingwex/log2l.c: New file.
4425 * mingwex/fp_consts.c: Add nanl definition.
4426 Comment out unused constants.
4427 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4428 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4429 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4431 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4432 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4433 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4435 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4437 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4439 Make wide char versions of opendir and friends.
4441 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4443 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4444 _wseekdir): Add prototypes for wide versions of corresponding
4446 * include/tchar.h; Add _UNICODE mappings for dirent.h
4447 structures and functions.
4448 * mingwex/dirent.c: Make _UNICODE neutral.
4449 * mingwex/wdirent.c: New file to define _UNICODE before
4451 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4452 (POSIX_OBJS): Add wdirent.o.
4453 (wdirent.o): Specify dependency on dirent.c as well as
4455 * samples/dirent/wtest.c: New file, wide version of test.c.
4457 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4459 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4460 ensure gcc include dir is searched despite -nostdinc.
4461 * profile/Makefile.in (INCLUDES): Likewise.
4462 * mingwex/Makefile.in (INCLUDES): Likewise.
4463 * include/stdarg.h: Replace with stub that just guards the
4464 real gcc system header with #ifndef RC_INVOKED
4465 * include/varargs.h: Likewise.
4466 * include/stddef.h: Likewise.
4467 * include/stdio.h: Include stdarg.h after defining
4469 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4470 Replace va_list with __VALIST throughout.
4472 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4474 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4475 * msvcrt.def (_fpreset): Mark as DATA so that only
4476 _imp___fpreset is exported.
4477 * msvcrt20.def (_fpreset): Likewise.
4478 * msvcrt40.def (_fpreset): Likewise.
4479 * crtdll.def (_fpreset): Likewise.
4480 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4482 (fpreset): Add alias.
4483 (__CRT_PC): Delete definition. _fpreset does it now.
4484 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4485 (fpreset): Add alias.
4486 (__CRT_PC): Delete definition.
4487 * moldname.def.in: Comment out fpreset.
4488 * moldname-msvcrt.def: Regenerate.
4489 * moldname-crtdll.def: Regenerate.
4490 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4491 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
4492 with the _fpreset determined by startup CRT_fp object.
4494 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
4496 * CRT_fp8.c: New file.
4497 * CRT_fp10.c: New file.
4498 * crt1.c (__CRT_PC) Declare.
4499 (__CRT_fesetenv): New static function, using _CRT_PC.
4500 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
4501 (_gnu_exception_handler): Likewise.
4502 * Makefile.in (CRT0S): Add CRT_fp10.o.
4503 (MINGW_OBJS): Add CRT_fp8.o.
4504 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
4505 Add CRT_fp8.o, CRT_fp10.o dependancies.
4506 * include/float.h (_fpreset): Expand comment.
4507 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
4508 (extended precison) environmemt.
4509 (FE_PC53_ENV): New define for MSVCRT default environmemt.
4510 (FE_DFL_ENV): Define as FE_PC53_ENV.
4511 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
4512 precision control for default environment.
4514 * include/math.h: Fix long comment line.
4515 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
4517 * profile/configure: Regenerate.
4519 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
4521 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
4523 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
4525 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
4526 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
4527 (__mingw_fseek): New function to work around Win9x f/lseek bug.
4528 (__mingw_fwrite): Likewise.
4529 (__mingw_is_win9x): New helper function.
4531 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
4532 (__mingw_fseek): New prototype and define to replace fseek.
4533 (__mingw_fwrite): New prototype and define to replace fwrite.
4534 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
4535 * moldname-crtdll.def: Remove CR from end of line.
4536 * moldname-msvcrt.def: Ditto.
4538 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
4540 * profile/configure.in (CRT0S): Configure name of gcrt?.o
4541 based on target, building gcrt0.o for cygwin -mno-cygwin.
4542 * profile/configure: Regenerate.
4543 * profile/Makefile.in (CRT0S): Use name from configure.
4544 (gcrt0.o): New rule.
4545 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
4547 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4549 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
4550 _fpecode): Remove prototypes copied from float.h.
4551 (nan, nanf): Move into block protected against RC_INVOKED
4553 * include/stdlib.h (_Exit): Change from static inline to
4555 * mingwex/_Exit.c : New file.
4556 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
4558 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4560 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
4561 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
4562 (configdirs): Likewise.
4563 (LIBGMON_A): Define for cygwin target as well.
4564 * configure: Regenerate.
4565 * profile/configure.in (THREAD_DLL): Remove define.
4566 (LIBM_A): Remove define.
4567 (LIBGMON_A): Define for cygwin target as well.
4568 * profile/configure: Regenerate.
4569 * profile/makefile.in (install): Install to inst_libdir and
4571 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
4572 (OPTFLAGS): New define.
4573 (ALL_CFLAGS): Add $(OPTFLAGS).
4574 (ALL_CXXFLAGS): Same.
4575 (.c.o:): Remove ALL_CXXFLAGS.
4577 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4579 * include/stdint.h: Add missing newline at eof.
4580 * include/stdio.h (snprintf): Add prototype.
4581 (vsnprintf): Add prototype and inline definition.
4582 (snwprintf): Add prototype.
4583 (vsnwprintf): Add prototype and inline definition.
4584 * include/wchar.h (snwprintf): Add prototype.
4585 (vsnwprintf): Add prototype and inline definition.
4586 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
4588 * mingwex/snprintf.c: New file.
4589 * mingwex/snwprintf.c: New file.
4591 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
4593 * configure.in: Add mingwex as SUBDIRS and configdirs.
4594 * configure: Regenerate.
4595 * Makefile.in (MINGW_OBJS): Remove dirent.o.
4596 (SRC_DIST_FILES): Remove dirent.c.
4598 * include/stdlib.h (_Exit): Add static inline
4600 (struct lldiv_t): Define.
4601 (lldiv): Add prototype.
4602 (llabs): Add extern inline function.
4603 (strtoll,strtoull): Add prototypes.
4604 (wcstol, wcstoul, wcstod): Group together.
4605 (strtof, wcstof): Add extern inline definitions.
4606 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
4607 and extern inline definitions.
4608 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
4609 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
4611 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
4612 (wcstof): Add extern inline definition.
4613 * include/math.h (nan, nanf): Add prototypes.
4614 (NAN, INFINITE): Define constants.
4615 (fpclassify, isnan ,signbit): Add macros and supporting float
4616 and double functions.
4617 (isfinite, isinf, isnormal): Add macros.
4618 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
4620 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
4621 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
4622 (copysign, logb, nextafter, scalb): Add prototypes and
4623 inline stubs for underscored versions in msvcrt.dll.
4624 * include/inttypes.h: New file.
4625 * include/fenv.h: New file
4627 Add new mingwex subdir and files.
4628 * mingwex: New directory.
4629 * mingwex/Makefile.in: New file.
4630 * mingwex/configure.in: New file.
4631 * mingwex/configure: Generate.
4632 * mingwex/dirent.c: Moved here from parent dir.
4633 * mingwex/atoll.c: New file.
4634 * mingwex/feclearexcept.c: New file.
4635 * mingwex/fegetenv.c: New file.
4636 * mingwex/fegetexceptflag.c: New file.
4637 * mingwex/fegetround.c: New file.
4638 * mingwex/feholdexcept.c: New file.
4639 * mingwex/feraiseexcept.c: New file.
4640 * mingwex/fesetenv.c: New file.
4641 * mingwex/fesetexceptflag.c: New file.
4642 * mingwex/fesetround.o: New file.
4643 * mingwex/fetestexcept.c: New file.
4644 * mingwex/feupdateenv.c: New file.
4645 * mingwex/fma.S: New file.
4646 * mingwex/fmaf.S: New file.
4647 * mingwex/fmax.c: New file.
4648 * mingwex/fmaxf.c: New file.
4649 * mingwex/fmin.c: New file.
4650 * mingwex/fminf.c: New file.
4651 * mingwex/fp_consts.c: New file.
4652 * mingwex/fpclassify.c: New file.
4653 * mingwex/fucom.c: New file.
4654 * mingwex/fwide.c: New file.
4655 * mingwex/imaxabs.c: New file.
4656 * mingwex/imaxdiv.c: New file.
4657 * mingwex/isnan.c: New file.
4658 * mingwex/isnanf.c: New file.
4659 * mingwex/lltoa.c: New file.
4660 * mingwex/lltow.c: New file.
4661 * mingwex/log2.c: New file.
4662 * mingwex/log2f.c: New file.
4663 * mingwex/math_stubs.c: New file.
4664 * mingwex/mbsinit.c: New file.
4665 * mingwex/rint.c: New file.
4666 * mingwex/round.c: New file.
4667 * mingwex/signbit.c: New file.
4668 * mingwex/sitest.c: New file.
4669 * mingwex/strtof.c: New file.
4670 * mingwex/strtoimax.c: New file.
4671 * mingwex/strtoumax.c: New file.
4672 * mingwex/testwmem.c: New file.
4673 * mingwex/trunc.c: New file.
4674 * mingwex/ulltoa.c: New file.
4675 * mingwex/ulltow.c: New file.
4676 * mingwex/wcstof.c: New file.
4677 * mingwex/wcstoimax.c: New file.
4678 * mingwex/wcstoumax.c: New file.
4679 * mingwex/wmemchr.c: New file.
4680 * mingwex/wmemcmp.c: New file.
4681 * mingwex/wmemcpy.c: New file.
4682 * mingwex/wmemmove.c: New file.
4683 * mingwex/wmemset.c: New file.
4684 * mingwex/wtoll.c: New file.
4686 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4688 * include/mbstring.h: New file.
4689 * include/mbctype.h: New file.
4691 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4693 * include/tchar.h (__TEXT): Make same as define in
4694 w32api/include/winnt.h.
4696 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4698 * include/tchar.h (_tputenv): Add UNICODE mappings.
4699 (_tsearchenv): Likewise.
4700 (_tmakepath): Likewise.
4701 (_tsplitpath): Likewise.
4702 (_tfullpath): Likewise.
4704 2002-04-18 Pascal Obry <obry@gnat.com>
4706 * dirent.c (opendir): Convert given pathname to
4709 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4711 * include/_mingw.h: Increment version.
4712 * Makefile.in: Ditto.
4714 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4716 * moldname-crtdll.def: Remove CR from end of line.
4717 * moldname-msvcrt.def: Ditto.
4718 * Makefile.in: Use bzip2 compression for Cygwin target.
4720 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
4722 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
4723 TLOSS, PLOSS): Move oldname defines back, following
4724 the underscored names.
4726 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
4728 * include/stdio.h (_snwprintf): Correct spelling.
4729 (_vsnwprintf): Likewise.
4730 * include/wchar.h (_snwprintf): Correct spelling.
4731 (_vsnwprintf): Likewise.
4733 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
4735 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
4736 (wpopen): Add if !(__CRTDLL__).
4737 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
4739 (moldname-crtdll.def rule): Likewise.
4740 * moldname-msvcrt.def: Regenerate.
4741 * moldname-crtdll.def: Regenerate.
4742 * include/stdio.h (wpopen):Use prototype, not a define.
4743 (_swnprintf): Add prototype.
4744 (_vswnprintf): Likewise.
4746 * include/wchar.h (_swnprintf): Add prototype.
4747 (_vswnprintf): Likewise.
4750 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
4752 * include/malloc.h (_heapinfo): Correct structure definition.
4753 (_USEDENTRY,_FREEENTRY): Add defines.
4754 Add comment on platform support for _heap* functions.
4755 (_get_sbh_threshold): Add prototype.
4756 (_set_sbh_threshold): Likewise.
4757 (_expand): Likewise.
4759 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4761 * profile/profil.c: Update copyright info.
4762 * profile/profil.h: Likewise.
4763 * profile/gcrt0.c: Likewise.
4765 2002-01-25 Pascal Obry <obry@gnat.com>
4767 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
4769 * profile/gmon.c: Define bzero as memset if mingw32.
4770 (monstartup): Use it.
4772 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4774 * include/tchar.h (_TCHAR): Add missing ;.
4776 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
4778 * include/tchar.h (_TCHAR): Add typedefs.
4780 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4782 * include/stdlib.h (_onexit_t): Add typedef.
4783 (_onexit): Add prototype.
4785 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
4787 * msvcrt.def: Revert accidental change.
4788 * include/stdlib.h: Ditto.
4790 2001-12-07 Earnie Boyd <earnie@users.sf.net>
4792 * Makefile.in: Increment VERSION.
4793 * include/_mingw.h: Ditto.
4795 2001-12-05 Earnie Boyd <earnie@users.sf.net>
4797 * include/strings.h: New File.
4799 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
4801 * include/math.h (_FPCLASS* ): Add defines from float.h.
4802 (IEEE recommended functions): Add declarations from float.h.
4803 * include/float.h (_FPCLASS* ): Protect against redefinition.
4805 2001-11-29 Wu Yongwei <adah@netstd.com>
4807 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
4808 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
4809 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
4810 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
4811 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
4812 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
4813 Correct spelling of "disclaimed" in comments.
4814 * include/excpt.h: Another spelling correction.
4816 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
4818 * include/errno.h: Fix "errno is not a prototype" warning.
4820 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
4822 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
4823 differences between ANSI and non-ANSI versions.
4824 (_ctype[],_pctype): Declare vars.
4825 (__ISCTYPE): New helper macro using _pctype.
4826 (is* ctype functions): Use __ISCTYPE to define inline versions.
4827 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
4829 (isw* ctype functions): Inline definitions.
4830 * include/wctype.h (_ctype[],_pctype): Declare vars.
4831 (isw* ctype functions): Inline definitions.
4834 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4836 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
4837 __fpecode): Use __STDC__ prototypes.
4840 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
4842 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
4843 * mthr_init.c (DllMain) Run dtors if a process terminates.
4844 * mthr.c (__mingwthr_add_key_dtor) Removed.
4845 (___mingwthr_add_key_dtor) New.
4846 (___mingwthr_remove_key_dtor) New.
4847 (__mingwthr_run_key_dtors) Complete rewrite.
4848 (__mingwthr_remove_key_dtor) New.
4850 2001-11-05 Egor Duda <deo@logos-m.ru>
4852 * Makefile.in: Delete unused executable after creating base-files.
4854 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4856 * include/errno.h (_errno): Use __STDC__ prototype.
4857 Thanks to: Jim Barton.
4859 2001-11-04 "stefan" <stefan@lkcc.org>
4861 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
4863 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4865 * include/io.h (_commit): Add declaration.
4866 Thanks to: "stefan" <stefan@lkcc.org>
4868 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4870 * include/sys/stat.h: Make S_IS* macros safer.
4872 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4874 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
4876 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
4878 * include/stdlib.h (__p__environ, __p__wenviron): Use
4879 __STDC__ prototypes.
4881 2001-09-19 Earnie Boyd <earnie@SF.net>
4883 * Makefile.in: Remove the /usr from the install target.
4884 (VERSION): Increment.
4885 include/_mingw.h: Ditto.
4887 2001-09-17 Earnie Boyd <earnie@SF.net>
4889 * Makefile.in: Increment version.
4890 * include/_mingw.h: Ditto.
4892 2001-09-10 Earnie Boyd <earnie@SF.net>
4894 * dossh: Remove inadvertantly imported file.
4896 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
4898 * dirent.c (opendir): Use GetFileAttributes rather than stat
4899 to determine if input arg is dir.
4901 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
4903 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
4905 * include/varargs.h (va_list): Ditto.
4906 * include/stdio.h (va_list): Ditto.
4908 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
4910 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
4911 * include/stdio.h (_IORW): Change constant to 0x0080.
4912 (TMP_MAX): Add new define.
4914 (_wP_tmpdir): Ditto.
4915 (L_tmpnam): Change constant to 16.
4917 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
4919 * include/malloc.h: Fix non-ANSI comment after #endif.
4921 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4923 * profile/configure.in: Make msvcrt.dll version default.
4924 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
4925 * provile/configure: Regenerate.
4927 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
4929 * include/stdio.h (swscanf): Make first arugument const.
4930 * include/wchar.h (swscanf): Ditto.
4931 * include/tchar.h (_tfopen): New _UNICODE define.
4933 (_tsetlocale): Ditto.
4935 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
4937 * profile/Makefile.in (mkinstalldirs): Correct relative path.
4939 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
4941 * include/_mingw.h: Change version to 1.0.
4944 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
4946 * include/tchar.h: (__TEXT): Remove undef.
4950 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
4952 * include/tchar.h: (__TEXT): Add private macro.
4953 (_TEXT): Modify definition to use __TEXT.
4955 This change allows the passing of a MACRO as an argument and have that
4956 MACRO resolved first.
4957 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
4959 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
4961 * Makefile.in: Increment version to 0.5
4962 * include/_mingw.h: Increment minor version
4964 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
4966 * include/assert.h: (assert): Remove ; from end of definition
4967 Thanks to: AJ Reins <tbisp@qwest.net>
4969 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
4971 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
4972 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
4974 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
4976 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
4978 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
4980 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
4981 are actually C functions. These functions are resolved via the
4982 -lmsvcp60 library and comments were placed in the header.
4984 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4986 * include/stdlib.h (__p__pgmptr): add prototype.
4987 (__p__wpgmptr): likewise.
4988 (_pgmptr_dll): move declaration from dos.h.
4989 (_wpgmptr_dll): likewise.
4990 (_pgmptr): conditional define (MSVCT/CRTDLL).
4991 (_wpgmptr): likewise.
4992 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
4993 (_os*_dll variables): likewise.
4994 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
4995 (_wpgmptr_dll): likewise.
4997 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4999 * include/stdint.h: New file.
5001 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5003 * include/wchar.h: Protect prototypes only declared in the C++ STL
5004 from being declared unless __cplusplus is defined.
5006 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5008 * include/stdlib.h: Apply Danny Smith patch 102730
5009 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5010 (_wgetenv) Correction to return type.
5012 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5014 * include/locale.h: Apply Danny Smith patch 101834
5015 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5016 (LC_MIN) Add definition.
5018 (_wsetlocale) Add prototype.
5020 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5022 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5023 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5024 Create a libcoldname.a for the oldname library for CRTDLL.
5025 Restrict libmoldname.a for the oldname library for MSVCRT.
5026 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5027 Restructure the $target_os case logic.
5028 Always name the MinGW thread dll helper mingwm.
5029 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5030 * configure: regenerate.
5032 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5034 * Makefile.in: Fix bindist target to distribute the correct files.
5035 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5036 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5038 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5040 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5041 Add variables and targets to control binary and source distributions.
5042 Add variables and targets to control snapshot distribution.
5043 * profile/gmon.h: Add missing #endif for #ifndef.
5044 * profile/ChangeLog: Merge entries here and remove.
5045 * profile/Makefile.in: Add variables and targets to control
5049 * config.guess: ditto.
5050 * config.sub: ditto.
5051 * mkinstalldirs: ditto.
5052 * install-sh: ditto.
5053 * configure: regenerate.
5054 * profile/configure: ditto.
5056 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5058 * Merge in changes from
5059 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5060 * include/direct.h: add guard around MSVCRT-only prototytpes
5061 * include/io.h: add __int64 struct definitions and function prototypes;
5062 add guard for MSVCRT-only prototypes
5063 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5064 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5065 put wchar functions together to make sync with wchar.h easier
5066 * include/stdlib.h: add wide char functions (__MSVCRT__)
5067 * include/string.h: add string collation functions ( __MSVCRT__)
5068 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5069 * include/tchar.h: add macros and macro function definitions
5070 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5071 enclose more functions in __MSVCRT__ guard;
5072 some oldname wide char function prototypes #if (0)'d
5073 * profile/gmon.h: add guard around BSD-ish typedefs
5075 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5077 * Makefile.in: Use a different variable name for subdirectory since the
5078 previous one was used by the top level make.
5080 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5082 * Makefile.in: Install mingw stuff in a subdirectory if building under
5085 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5087 * Makefile.in (subdirs): Eliminate for loop.
5089 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5091 * Makefile.in (subdirs): Previous change did not fix problem in
5094 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5096 * Makefile.in: Avoid installing dll if we're cross building and the
5097 cross-host system isn't a Windows system.
5098 * configure.in: Detect cross-hosting situation and set appropriate
5099 variables in Makefile.in.
5100 * configure: Regenerate.
5102 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5104 * configure.in: Change HEADER_SUBDIR to mingw32.
5105 * configure: Regenerate.
5107 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5109 * include/string.h: Use proper prototype for _strerror.
5111 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5113 * Makefile.in (subdirs): Workaround for broken shells.
5115 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5117 * Snapshot 2000-02-03.
5119 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5120 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5121 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5122 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5125 * Makefile.in (all): Build CRT0S first.
5126 (libmingwthrd.a): Remove thread support DLL from dependency.
5128 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5130 * Snapshot 2000-01-21.
5132 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5134 Merge in changes from Cygwin:
5135 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5136 (SUBDIRS): Likewise.
5137 * Makefile.in (HEADER_SUBDIRS): New variable.
5138 (install): Use to install Mingw headers to a subdirectory if building
5140 (DLL_CC_STUFF): Add DLL entry point.
5141 * configure: Regenerate.
5143 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5145 * include/stdio.h (fsetpos): Fix prototype.
5146 (fpos_t): Fix for MSVCRT.
5147 * include/float.h (fpreset): Add prototype.
5148 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5150 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5151 export using libmoldname.a.
5152 * crtdll.def: Add DATA tags.
5153 * msvcrt.def: Likewise.
5154 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5155 both MSVCRT and CRTDLL.
5156 * moldname-crtdll.def: Regenerate.
5157 * moldname-msvcrt.def: Regenerate.
5159 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5161 * Snapshot 1999-12-21.
5163 * include/wctype.h: New file.
5164 * include/ctype.h (MB_CUR_MAX): Define.
5166 * include/stdlib.h (MB_CUR_MAX): Define.
5167 * include/wchar.h: Define stat, _stat structures here as well.
5168 * include/float.h: Add invalid subconditions (_SW) and floating
5169 point error (_FPE) macros.
5170 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5171 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5172 * include/sys/types.h: Likewise.
5174 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5176 * profile/profil.c (profile_on): Set the profiler thread priority to
5177 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5178 * Snapshot 1999-11-18.
5180 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5182 Released 1999-11-07.
5184 * Makefile.in (CRT0S): Add crtst.o.
5185 (install): Install in subdirs as well.
5186 * dirent.h (struct _stat): Rename from struct stat.
5187 * include/tchar.h: Add some new macros. Thanks to
5188 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5189 * profile/Makefile.in (install): Fix target.
5191 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5193 * Makefile.in: Add support for profile directory.
5194 * configure.in: Likewise.
5195 * configure: Regenerate.
5197 * profile: Imported profiling sources from winsup-19991026 snapshot.
5198 * profile/Makefile.in: New file.
5199 * profile/configure.in: New file.
5200 * profile/configure: Generate.
5201 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5202 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5203 * profile/gmon.c (unistd.h): Include conditionally.
5204 (sys/param.h): Likewise.
5205 * profile/mcount.c (sys/param.h): Likewise.
5206 * profile/profil.c (profile_on): thread id is DWORD, not int.
5209 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5211 * include/stdlib.h: Add wide character version of argv/environ.
5213 * include/wchar.h: More wide character prototypes.
5214 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
5216 * dllcrt1.c (init.c): Don't include.
5217 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
5218 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
5220 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
5222 * moldname.def: Remove file.
5223 * moldname.def.in: And add this.
5224 * moldname-msvcrt.def: Generate from moldname.def.in.
5225 * moldname-crtdll.def: Likewise.
5227 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
5228 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
5229 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
5231 * Makefile.in: Update.
5232 * configure.in: Likewise. Also add *cygwin* target for building
5233 under Cygwin winsup.
5234 * configure: Regenerate.
5236 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
5238 * include/_mingw.h: Add version macros.
5239 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
5240 Also add wide character versions shared with wchar.h.
5241 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
5242 * include/io.h (sopen, _sopen): Fix prototype.
5243 Add wide character prototypes.
5244 * include/wchar.h: Likewise.
5245 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
5246 underscored versions. Potential incompatibility.
5247 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
5248 Add wide character prototypes.
5249 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
5252 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
5254 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
5255 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
5257 * configure: Rengerate.
5258 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
5259 dll name and crt's. CRTDLL and MSVCRT are meant to created
5260 separately, so remove all the *-msvcrt* targets.
5261 (libmingwthr.a): New target. Dummy thread support archive.
5262 (LIBS): Add libmingwthr.a.
5263 (CRT0S): Use CRT_ID. Add crtmt.o.
5264 (MINGW_OBJS): Add crtst.o.
5265 * main.c (WinMain): Fix prototype.
5266 * crtmt.c: New file.
5267 * crtst.c: New file.
5269 * include/process.h (_beginthreadex): Fix prototype.
5270 * include/_mingw.h (__int64): Define for __GNUC__.
5271 * include/tchar.h (_ttol): Add macro.
5272 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
5273 _i64tow, _ui64tow, _wtoi64): Add prototypes.
5275 Reported by Emanuele Aliberti <ea@iol.it>:
5276 * include/tchar.h (_ttoi): Add macro.
5278 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
5279 * include/stdio.h (_snprintf): Add prototype.
5280 (_vsnprintf): Likewise.
5282 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
5284 Reported by Tor Lillqvist <tml@iki.fi>:
5285 * include/stdlib.h (__p___argv): Fix return type.
5287 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5290 * include/errno.h (errno): It's linked in from startup, not imported.
5291 * include/stdlib.h (errno): Likewise.
5292 * include/io.h: Guard against conflicting macros and prototypes in
5294 * include/stdlib.h: Likewise.
5295 * include/string.h: Likewise.
5296 * include/time.h: Likewise.
5298 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5300 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
5301 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
5302 * Makefile.in (INCLUDES): Remove old windows32 include directory.
5304 * crt1.c (_gnu_exception_handler): Fix prototype.
5305 (__mingw_CRTStartup): New function based on mainCRTStartup.
5306 (mainCRTStartup): Set the app type for MSVCRT and call
5308 (WinMainCRTStartup): Likewise.
5309 * init.c (_startupinfo): Define.
5310 (_getmainargs): Add 5th parameter.
5311 (_mingw32_init_mainargs): Use.
5313 * ALL *.c files: Reformat according to GNU coding style.
5315 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
5317 * Makefile.in (INCLUDES): Add w32api include directory.
5319 * include/_mingw.h: New file.
5320 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
5321 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
5322 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
5323 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
5324 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
5325 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
5327 * include/stdlib.h (atexit): Fix prototype.
5329 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
5331 * include/stdio.h (_tempnam): Fix prototype.
5332 (tempnam): Likewise.
5333 * include/stdlib.h: Replace with GCC's version, and guard
5336 From Anders Norlander <anorland@hem2.passagen.se>:
5337 * include/stdlib.h (__argc): Declare.
5340 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
5342 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
5344 * Makefile.in (_libm_dummy.o): New target.
5347 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
5349 * Released 1999-03-16 along with egcs-1.1.2.
5351 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
5353 * Makefile.in (LIBS): Add libm.a.
5354 (libm.a): Dummy libm.a.
5356 * Makefile.in: Update from winsup 1999-02-08 snapshot.
5357 Preserve local changes.
5358 (mkinstalldirs): In ../, not ../../.
5359 (INCLUDES): Point to local windows32api headers and use -nostdinc.
5361 (LIBS): Add libmoldname-msvc.a.
5362 (libmoldname-msvc.a): Add target.
5363 (distclean): Add target.
5365 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5367 * include/dir.h: Reintroduce as an obsolescent header.
5368 * crt1.c (signal.h): Include.
5369 (_gnu_exception_handler): New function to properly handle win32
5370 asynchronous signals.
5371 (mainCRTStartup): Use.
5373 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5375 * include/direct.h: Include io.h instead of dir.h
5376 * include/dirent.h: Likewise.
5377 * include/dos.h: Likewise.
5378 * include/stdio.h: Replace reference to dir.h with io.h.
5380 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5382 * 1999-01-01 release bundled with egcs-1.1.1.
5384 * include/io.h: Incorporate dir.h.
5385 * include/dir.h: Remove.
5386 * include/signal.h: Move RC_INVOKED up a bit.
5388 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5390 * include/signal.h (sig_atomic_t): Define.
5392 * include/malloc.h: Import defs from deprecated alloc.h.
5393 * include/alloc.h: Remove.
5395 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5396 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5397 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5398 _off_t instead of long for st_size.
5400 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5402 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5403 * include/stdlib.h: Here.
5405 * include/netdb.h: Remove.
5406 * include/arpa/inet.h: Remove.
5407 * include/netinet/in.h: Remove.
5408 * include/sys/socket.h: Remove.
5410 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5414 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5415 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5417 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5419 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5420 (jmpbuf): typedef using above.
5421 (setjmp, longjmp): Prototype using jmpbuf.
5423 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5424 obsolescent imported names, ie., from __imp__ to _imp___.
5426 Also ignored empty include/sys/param.h and incorrect
5427 include/sys/times.h.
5429 * CRTinit.c: New file.
5430 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5432 * include/io.h (umask): Fix prototype.
5433 * include/stdlib.h (OS constants): Replace with Colin's.
5434 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5435 * include/sys/state.h: Merge.
5437 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5439 * include/assert.h (assert): Lose the trailing semicolon.
5441 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5443 * include/math.h (matherr): Declare.
5444 * include/stdio.h (fileno, _fileno): Declare.
5445 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5448 * include/stdio.h (fdopen, _fdopen): Add const.
5449 (getw, putw): Declare.
5450 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5452 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5454 * include/time.h (_timezone): Undefine.
5455 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5457 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5459 * include/stdlib.h (environ): Use DLL version.
5460 * init.c (environ): Undefine it before use.
5462 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5464 * Update to 980309 snapshot from Colin Peters.
5466 * include/utime.h: remove
5467 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5468 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5469 patches to define these.
5470 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5471 (_daylight, _timezone, _tzname, _tzset): Define.
5473 * include/netdb.h: Add from Colin's windows32api changes.
5474 * include/sys/socket.h: Likewise.
5475 * include/arpa/inet.h: Likewise.
5476 * include/netinet/in.h: Likewise.
5478 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5480 * Update to 980128 snapshot from Colin Peters.
5482 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5484 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5486 * configure: Regenerate.
5488 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5490 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5491 Files renamed and include hierarchy loses directories named
5494 * include/dos.h: from Jan-Jaap.
5496 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
5498 Changes to conform to FSF tree.
5500 * crt1.c: Renamed from mcrt0.c.
5501 * dllcrt1.c: Renamed from dllcrt0.c.
5502 * Makefile.in: Update above. Also renamed libmoldnames.a to
5505 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
5507 * crtdll.def: Export all functions but the ones with funny names.
5508 * moldnames.def: Add fdopen since fileno is already there.
5509 * include/nonansi/dos.h: New file from Jan-Jaap.
5510 * include/errno.h: Add extern decl + various additions from JJ.
5511 * include/stdio.h: Likewise.
5512 * include/stdlib.h: Likewise.
5513 * include/nonansi/io.h: Likewise.
5514 * include/nonansi/process.h: Likewise.
5515 * include/sys/types.h: Likewise.
5517 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5519 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5521 * include/stdlib.h (free): Fix prototype to return void, not void*.
5522 * include/nonansi/process.h: Add P_* and WAIT_* defs.
5524 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
5525 * mcrt0.c: Likewise.
5527 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
5528 (libmoldnames.a): Add explicit rule to create it.
5530 1997-08-15 Rob Savoye <rob@cygnus.com>
5532 New directory for the minimalist cygwin environment.
5534 * crtglob.c: New file. Turn on file globbing support.
5535 * crt_noglob.c: New file. Turn off file globbing support.
5536 * ctype_old.c: New file. Wrappers for functions that don't
5538 * dirent.c: New file. Directory routines readdir, opendir, closedir.
5539 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
5540 * dllmain.c: New file. A stub DllMain function.
5541 * hugeval.c: New file. A gross hack to define HUGE_VAL.
5542 * init.c: New file. Common code to initialize standard file
5543 handles and command line arguments.
5544 * main.c: New file. A main for programs that only call WinMain.
5545 * mcrt0.c: New file. Default crt0 for mingw32.
5546 * oldnames.c: New File. Wrappers for functions that don't
5548 * string_old.c: New File.
5549 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
5550 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
5551 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
5552 * include/sys/types.h: New header file for mingw.
5553 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
5554 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
5555 utime.h,values.h,varargs.h}: New header files for mingw.
5556 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
5557 timeb.h,unistd.h}: New header files for mingw.
5558 * Makefile.in,configure.in: Build and configure support.
5559 * configure: Generated from autoconf 2.12 with Cygnus patches.