1 2016-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Add pthreads-win32 courtesy support hooks.
5 * include/errno.h: Assert copyright; tidy layout.
6 (_ERRNO_H_): Rename this repeat inclusion guard macro as...
7 (_ERRNO_H): ...this, conforming to preferred naming convention.
8 [__PTW32_H]: Include "ptw32_errno.h".
10 * include/time.h [__SCHED_H_SOURCED__]
11 (struct timespec): Typedef it selectively; do not define...
14 2016-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
16 Implement POSIX printf() feature per request [#2310].
18 * mingwex/stdio/pformat.c [WITH_XSI_FEATURES]: Delete references.
19 (PFORMAT_GROUPED): New manifest constant; define it. It previously
20 appeared in an occluded XSI feature reference, but is now required.
21 (__pformat_t.tslen, __pformat_t.tschr, __pformat_t.grouping): New
22 structure member fields; they maintain control state as set up by...
23 (__pformat_enable_thousands_grouping): ...this new internal function.
24 (__pformat_int_bufsiz): Use it; it may request a size increment.
25 (__pformat_emit_digit, __pformat_emit_punct): New functions; they
26 handle output of digits, radix point, and thousands digits separator
27 punctuation for all numeric conversion formats, thus replacing...
28 (__pformat_emit_numeric_value, __pformat_emit_radix_point): ...these;
29 delete them, and update all callers to use appropriate replacements.
30 (__pformat_int) [PFORMAT_GROUPED]: Add and emit group separators.
31 (__pformat_xint_bufsiz): New internal function; it serves in place of
32 __pformat_int_bufsiz(), for those integer data conversion formats
33 which explicitly do not support thousands digits grouping, hence...
34 (__pformat_xint): ...use it, rather than __pformat_int_bufsiz().
35 (__pformat_adjust_for_grouping): New internal function; it adjusts the
36 __gdtoa radix point index for fixed point conversion formats, to allow
37 for the insertion of thousands digits group separators, hence...
38 (__pformat_emit_float): ...use it, and emit separators as appropriate.
39 (__pformat_emit_efloat) [PFORMAT_GROUPED]: Explicitly disable it.
40 (__pformat): Initialise stream references for __pformat_t.grouping,
41 __pformat_t.tslen, and _pformat_t.tschr, on entry; release any memory
42 allocated for __pformat_t.grouping, when done.
44 2016-08-01 Keith Marshall <keithmarshall@users.sourceforge.net>
46 Implement POSIX conforming getline() and getdelim() functions.
48 * mingwrt/mingwex/stdio/getdelim.c: New file.
49 * mingwrt/man/getline.3.man: Likewise.
51 * mingwrt/include/stdio.h [_POSIX_C_SOURCE >= 200809L]
52 (getdelim): New function, implemented externally; declare prototype.
53 (getline): New function; declare prototype; implement as __CRT_ALIAS
54 inline, with __LIBIMPL__ external representation.
56 * mingwrt/Makefile.in (libmingwex.a): Add getdelim.$OBJEXT
57 (mingwrt-man$man3ext): Add manpage dependency references to create...
58 (getline.$man3ext, getdelim.$man3ext): ...these; declare them as
59 distributable duplicates, to be generated from...
60 (getline.$man3ext.man): ...this common source.
62 2016-08-01 Keith Marshall <keithmarshall@users.sourceforge.net>
64 Merge mingwrt-3.22.1 legacy updates to 5.0-active branch.
66 * mingwex/math/powl.c: Update per issue [#2036] workaround.
67 * mingwex/stdio/pformat.c: Likewise, per issue [#2309] resolution,
68 and subsequent 2016-07-24 optimization.
70 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
72 Prepare and tag all files for release of mingwrt-3.22.1.
74 * configure.ac (AC_INIT): Adjust package version number; append
75 patch level identification.
77 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
79 Interim workaround for issue [#2306].
81 * mingwex/math/powl.c: Tidy layout; correct indentation.
82 (powl, reducl): Use ISO-C declaration syntax; K&R is obsolescent.
83 (powl) [OVERFLOW]: Correct representation of return value, using...
84 (INFINITYL): ...this manifest constant value, instead of...
87 2016-07-24 Keith Marshall <keithmarshall@users.sourceforge.net>
89 Optimize printf() field width accumulation function.
91 * mingwex/stdio/pformat.c (__imul10plus): Omit multiply by ten on
92 already accumulated zero total; it is unnecessary, since ten times
95 2016-07-22 Keith Marshall <keithmarshall@users.sourceforge.net>
97 Fix printf() field width parsing regression issue [#2309].
99 * mingwex/stdio/pformat.c (__imul10plus): Coerce any accumulated
100 negative total to zero; the only negative value to be handled is...
101 (PFORMAT_IGNORE): ...this; it ceases to be applicable, on first call
102 to __imul10plus(), to accumulate field width or precision.
104 2016-07-19 Keith Marshall <keithmarshall@users.sourceforge.net>
106 Update install-sh to match mingw.org/build-aux package.
108 * install-sh: Delete it; use version in parent directory instead,
109 recreating local copy, (as symlink, if supported), on demand.
111 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
113 Eliminate redundant configuration files.
115 * aclocal.m4 VERSION.m4: Delete them; restore them on demand, via...
116 * Makefile.in ($top_srcdir/../%): ...this symlink dependency rule.
118 * configure.ac (AC_PROG_LN_S): Add configuration check.
120 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
122 Merge mingwrt-3.22 packaging correction to 5.0-active branch.
124 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
126 Correct mingwrt-3.22 source package subdirectory omission.
128 * Makefile.in (mingwrt-srcdist-files): Add msvcrt-xref.
130 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
132 Discard redundant config.guess and config.sub files.
134 * config.guess config.sub: Delete them; they are no longer required.
136 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
138 Merge recent legacy branch updates to 5.0-active branch.
140 * Makefile.in include/ctype.h include/excpt.h include/stdint.h
141 * include/glob.h include/limits.h include/locale.h include/search.h
142 * include/stdio.h include/stdlib.h include/wchar.h include/wctype.h
143 * include/sys/param.h include/sys/stat.h mingwex/tdelete.c
144 * mingwex/tfind.c mingwex/tsearch.c mingwex/twalk.c: Updated.
146 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
148 Prepare and tag all files for release of mingwrt-3.22.
150 * configure.ac (AC_INIT): Adjust package version number.
152 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
154 Preserve kludge to evade GCC build failure on S_ISBLK misuse.
156 * include/sys/stat.h (_NO_UNSUPPORTED): New feature test macro; it
157 should be user defined, if desired, before inclusion; leave undefined.
158 [!_S_IFBLK && !_NO_UNSUPPORTED && !_NO_OLDNAMES] (S_ISBLK): Define it,
159 as appropriate for POSIX conforming usage; do not poison it.
161 2016-07-10 Keith Marshall <keithmarshall@users.sourceforge.net>
163 Fix C++ strict type checking inconsistency in <glob.h>
165 * include/glob.h (__ERRFUNC_P): New private macro; define it to match
166 the type signature of the error function pointer, to be passed to...
167 (glob): ...this function; use it to correctly represent error function
168 pointer argument in inline implementation.
170 2016-07-09 Keith Marshall <keithmarshall@users.sourceforge.net>
172 Factor out <ctype.h> vs. <wctype.h> duplicate elements.
174 * include/ctype.h: Assert copyright; tidy layout.
175 [!_CTYPE_H_]: Do not evaluate; rename macro to be tested, as...
176 [!_CTYPE_H]: ...this preferred multiple inclusion guard macro name.
177 (__CTYPE_H_SOURCED__): New macro; define it, and include <wctype.h>,
178 so requesting partial inclusion, to retrieve definitions for...
179 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
180 (_UPPER, WEOF): ...these macros; hence, do not define them locally.
181 (wint_t, wchar_t, wctype_t): Likewise these type definitions...
182 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
183 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
184 (iswupper, iswxdigit, towlower, towupper, is_wctype): ...these function
185 prototypes, and corresponding inline alternative implementations.
186 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
187 [__MSVCRT_VERSION__<=__MSVCR70_DLL]: Likewise.
189 * include/wctype.h: Assert copyright; tidy layout.
190 [!_WCTYPE_H_]: Do not evaluate; rename macro to be tested, as...
191 [!_WCTYPE_H]: ...this preferred multiple inclusion guard macro name;
192 do not define it when partial inclusion only is selected, by...
193 [__CTYPE_H_SOURCED__]: ...this; thence define only...
194 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
195 (_UPPER): ...these character characterisation macros...
196 (wint_t, wchar_t, wctype_t): ...these type definitions...
197 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
198 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
199 (iswupper, iswxdigit, towlower, towupper): ...these function
200 prototypes, with corresponding inline alternative implementations...
201 (is_wctype): ...this further prototype, qualified as deprecated...
202 (WEOF): ...and this status reporting macro.
203 (_ctype, _pctype, _pctype_dll, _imp___ctype, _imp___pctype): Delete
204 declarations, and associated definitions; they do not belong here.
205 (isleadbyte): Likewise, this Microsoft specific function prototype...
206 (_LEADBYTE): ...and this associated character classification macro.
207 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
209 2016-07-04 Keith Marshall <keithmarshall@users.sourceforge.net>
211 Do not pass MAKEFLAGS explicitly, when invoking recursive make.
213 * Makefile.in (install-strip, uninstall): Delete explicit $(MAKEFLAGS)
214 references from $(MAKE) command lines; make passes them implicitly.
216 2016-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
218 Rework tsearch and friends; resolve issues [#1512] and [#1576].
220 * include/search.h: Assert copyright; tidy layout.
221 (_SEARCH_H_): Rename this multiple inclusion guard macro...
222 (_SEARCH_H): ...to conform to this preferred standard convention.
223 (__search_comparator): New function prototype typedef; it provides a
224 convenient shorthand notation for argument declarations in functions
225 which require a comparator function pointer; use it where appropriate.
226 (tsearch, tfind, tdelete) [__MINGW_ATTRIB_NONNULL]: Apply to arguments
227 #2 and #3; was previously incorrectly applied to arguments #1 and #3.
228 (twalk) [__MINGW_ATTRIB_NONNULL]: Apply to both arguments #1 and #2.
229 [_SEARCH_PRIVATE] (__MINGW_ATTRIB_NONNULL): Suppress its effect, to
230 ensure that GCC does not optimize away checks within implementation.
231 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
233 * mingwex/tdelete.c: Tidy layout.
234 (tdelete): Reimplement it as a thin wrapper around...
235 (__tdelete): ...this; it encapsulates the original implementation as a
236 __CRT_ALIAS (inline) function, to simplify void ** --> node_t ** casts.
237 Remove unnecessary non-null assertions for arguments #1 and #3; prefer
238 to validate arguments #2 and #3 internally, and simply return NULL if
239 necessary; hence, do not include <assert.h>
241 * mingwex/tfind.c: Tidy layout.
242 (tfind): Similarly reimplement it as a thin wrapper around...
243 (__tfind): ...this __CRT_ALIAS (inline) encapsulation of the original.
244 Add non-null validation for argument #3; do not include <assert.h>
246 * mingwex/tsearch.c: Tidy layout.
247 (tsearch): Once again, reimplement it as a thin wrapper around...
248 (__tsearch): ...this __CRT_ALIAS variant. Add non-null validation for
249 argument #3; do not include <assert.h>
251 * mingwex/twalk.c: Tidy layout; do not include <assert.h>
253 2016-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
255 Rework __try1/__except1 to resolve issue [#1328].
257 * include/excpt.h: Assert copyright; tidy layout.
258 (_EXCPT_H_): Multiple inclusion guard macro renamed to...
259 (_EXCPT_H): ...this; update all references as appropriate.
260 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
261 (__typecast_alloca): New macro; define it, casting return type of...
262 (__builtin_alloca): ...this to a specified data type; use it in...
263 (__try1_setup, __except1_teardown): ...these new macros; define them
264 as parameterized templates, providing both -masm-att and -masm-intel
265 syntax implementations, with host specific word size and register
266 assignment parameter substitutions; use them to redefine...
267 (__try1, __except1): ...each of these, using __builtin_alloca to avoid
268 direct stack pushes when registering exception handlers; assign the
269 template parameters as appropriate to support implementation for...
270 [_WIN64, _WIN32]: ...either of these, as the host requires.
272 2016-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
274 Merge Cygwin CVS updates to legacy branch.
276 * include/stdio.h: Merge 2011-11-30 and 2012-08-02 commits.
277 (getc, getchar, putc, putchar): Declare function prototypes.
278 (fopen64, ftello64): Likewise; change implementation classification
279 from __CRT_INLINE to __CRT_ALIAS, to avoid C++ emitted code bloat.
280 (_lock_file, _unlock_file): Add prototypes; modify merge to...
281 [__MSVCRT_VERSION__>=__MSVCR80_DLL]: ...require this.
283 * include/stdint.h: Merge 2012-07-30 commit; include <_mingw.h>
285 * include/excpt.h: Merge 2012-08-01 commit.
286 (__try1, __except1) [_WIN64]: Add alternative implementations.
288 * include/stdlib.h: Merge 2012-08-02 commit.
289 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
290 (_strtoi64, _strtoui64, _wcstoi64, _wcstoui64): Declare prototypes.
291 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
292 (_strtoi64_l, _strtoui64_l, _wcstoi64_l, _wcstoui64_l): Likewise...
293 [!__have_typedef_locale_t] (__need_locale_t): ...and define to get...
294 (locale_t): ...this, by selective inclusion of <locale.h>
295 [__WCHAR_H_SOURCED] (_wcstoi64, _wcstoui64, _wcstoi64_l)
296 (_wcstoui64_l): Make these function prototypes available for selective
298 * include/wchar.h: ...this; merge 2012-08-02 commit.
299 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
300 (_wcstoi64, _wcstoui64): Note availability of function prototypes via
301 selective inclusion of their actual declarations from <stdlib.h>
302 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
303 (_wcstoi64_l, _wcstoui64_l): Likewise.
305 * include/limits.h: Merge 2012-08-02 commit.
306 [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
308 * include/sys/param.h: Merge 2012-08-02 commit.
309 [PATH_MAX not defined] (MAXPATHLEN): Define it explicitly.
310 [PATH_MAX defined] (MAXPATHLEN): Define it as an alias.
312 2016-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
314 Add typedef and access support for opaque locale_t objects.
316 * include/locale.h (locale_t, _locale_t): Define opaque types.
317 [__need_locale_t]: Make them selectively accessible; define...
318 (__have_typedef_locale_t): ...this, when they are available.
319 [_LOCALE_H] (_create_locale, _get_current_locale, _free_locale):
320 Declare function prototypes, on direct <locale.h> inclusion only.
321 [_LOCALE_H || _WCHAR_H] (_wcreate_locale): Likewise; this is to be
322 visible on direct inclusion, or when including <wchar.h>
324 * include/stdio.h [!(_STDIO_H && _WCHAR_T)]: Correct expression of...
325 [__MSVCR80_DLL || _WIN32_WINNT_VISTA]: ...this subsidiary condition;
326 for all cases when this is true, (including when [_STDIO_H] alone)...
327 [!__have_typedef_locale_t] (__need_locale_t): ...define this, and
328 include <locale.h>, for selective definition of...
331 2016-05-19 Keith Marshall <keithmarshall@users.sourceforge.net>
333 Occlude unsupported _S_IFBLK feature; resolve issue [#1146].
335 * include/sys/stat.h (_MINGW_S_IFBLK_KLUDGE): New feature test macro;
336 do not define it, and strongly recommend that it remains undefined.
337 [!_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Do not define them.
338 [!_MINGW_S_IFBLK_KLUDGE] (_S_ISBLK, S_ISBLK): Poison them.
339 [_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Adjust definitions; use a
340 modified value, which is guaranteed to be impossible to match in...
341 [_S_ISBLK, S_ISBLK]: ...these, thus enforcing false test results.
343 2016-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
345 Fix a typo in a <sys/stat.h> inline function definition.
347 * include/sys/stat.h [__MSVCRT_VERSION__ >= __MSVCR80_DLL]
348 (stat): First argument declared as 'int'; should be 'const char *';
351 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
353 Synchronize package version management with Win32-API.
355 * VERSION.m4: New file; link it to keep in sync with identically named
356 file in top level composite package source directory; it defines...
357 (__VERSION__): ...this new composite package version macro.
359 * aclocal.m4: Link it, to keep in sync with identically named files in
360 top level composite source and sibling w32api sub-package directories.
361 (__VERSION__): New macro; include VERSION.m4 to define it.
362 (__BUG_REPORT_URL__): New macro; define it.
364 * configure.ac (AC_INIT): Assign package version and bug report URL...
365 (__VERSION__, __BUG_REPORT_URL__): ...from these, as defined through
366 automatic inclusion of aclocal.m4
368 * Makefile.in (configure): Add dependency on VERSION.m4
370 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
372 Resolve some strnlen() implementation issues.
374 * mingwex/strnlen.s (__mingw_strnlen) [!NUL]: Correct termination
375 logic; should have used jnz, not jz, to skip endpoint adjustment on
376 scanning past a terminal NUL character code.
378 * include/string.h [_POSIX_C_SOURCE >= 200809L] (strnlen): Do not
379 #define it, as this breaks GCC compilation; use __CRT_ALIAS instead,
380 with __JMPSTUB__ referencing via "oldname" libraries.
382 * Makefile.in (jmpstub_awk_script, libimpl_awk_script): Adapt to
383 facilitate assignment of __JMPSTUB__ and __LIBIMPL__ references to
384 libraries other than libmingwex.a
385 (strnlen.jmpstub.$OBJEXT): Assign it to all "moldname" libraries prior
386 to libmoldname80.a, in addition to libcoldname.a, as specified by the
387 __JMPSTUB__ assignment within <string.h>
389 2016-05-03 Keith Marshall <keithmarshall@users.sourceforge.net>
391 Enforce consistent specification of package version.
393 * include/_mingw.h: Rename as...
394 * include/_mingw.h.in: ...this build-time template file.
395 (__MINGW32_VERSION): Redefine it, in terms of...
396 (%PACKAGE_VERSION_LONG%): ...this substitution template.
397 (__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION)
398 (__MINGW32_PATCHLEVEL): Likewise, redefine them in terms of...
399 (%PACKAGE_VERSION_MAJOR%, %PACKAGE_VERSION_MINOR%)
400 (%PACKAGE_VERSION_PATCH%): ...these.
402 * configure.ac (AC_CONFIG_SRCDIR): Adjust for renamed file.
403 (MINGW_AC_CONFIG_EXTRA_SRCDIR): Likewise, for similarly renamed
404 w32api/include/w32api.h.in file.
406 * Makefile.in (all-mingwrt-stage-1-only): Add dependency on...
407 (_mingw.h, w32api.h): ...these; add rule to generate them, using...
408 (PACKAGE_VERSION_SCRIPT, PACKAGE_VERSION_FORMAT): ...these new macros;
409 they apply appropriate substitutions to the renamed template files.
410 (install-mingwrt-headers): Explicitly add _mingwrt.h
412 2016-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
414 Make strnlen() available for all MSVCRT.DLL versions.
416 * msvcrt-xref/msvcrt.def.in (strnlen): Mark it as...
417 (__MINGW_DLSYM): ...this, excluding its exposure in libmsvcrt.dll, and
418 thus requiring a dlsym() lookup for versions which provide it.
420 * include/string.h [__MSVCRT_VERSION__>=__MSVCR80_DLL] (strnlen):
421 Declare prototype, for use from these non-free DLLs, otherwise...
422 [_POSIX_C_SOURCE >= 200809L] (strnlen): Define it as an alias for...
423 (__mingw_strnlen): ...this new libmingwex.a function.
425 * mingwex/strnlen.s: New file; it implements...
426 (__mingw_strnlen, __mingw_strnlen_s): ...these new functions.
428 * Makefile.in (libmingwex.a): Add requirement for...
429 (strnlen.$OBJEXT): ...this; add vpath specification for its source.
431 2016-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
433 Use correct paths for partially included header files.
435 * include/io.h include/process.h: Use 'iquote' #include "stdint.h", to
436 ensure that we get stdint.h from the same include directory.
437 * include/stdio.h: Likewise for #include "stdarg.h", and "sys/types.h"
438 * include/wchar.h: Likewise for all of #include "stdio.h", "stdlib.h",
439 "direct.h", "sys/stat.h", "io.h", "time.h", "locale.h", and "process.h"
440 * include/dir.h include/dos.h: Likewise for #include "io.h"
441 * include/direct.h: Likewise for #include "dos.h"
443 2016-04-13 Keith Marshall <keithmarshall@users.sourceforge.net>
445 Generalize procedure for installing manpages.
447 * man/dirname.man: Rename it as...
448 * man/dirname.3.man: ...this, with inherent MANSECT specification.
449 (TH): Use %PAGEREF% substitution for NAME, MANSECT, and DATE.
450 (MS-Windows): Do not append \[tm]; it doesn't render well in Windows
451 console. Further, correct typos; some syntactic adjustments.
453 * Makefile.in (%:%.man): New rule; define it.
454 (%.mancopy, %.mancopy-recursive): New rules; define and use with...
455 (reference_manpage): ...this new macro, defining it to map...
456 (dirname.3.man): ...this as the reference source file for both of...
457 (basename.3, dirname.3): ...these installed manpages.
458 (format_manpage): Add MANSECT and DATE to expansion of...
459 (%PAGEREF%): ...this sed substitution pattern.
461 2016-04-12 Keith Marshall <keithmarshall@users.sourceforge.net>
463 Update several incorrectly attributed header files.
465 * include/direct.h include/io.h include/locale.h include/math.h
466 * include/process.h include/stdio.h include/stdlib.h include/string.h
467 * include/sys/stat.h include/sys/types.h include/time.h: Identify the
468 original author as Colin Peters; Rob Savoye merely imported them into
469 the original CVS repository, when he created it.
471 * include/wchar.h: Likewise, imported by Rob Savoye, but the original
472 source file is unattributed.
474 2016-04-11 Keith Marshall <keithmarshall@users.sourceforge.net>
476 Eliminate all references to non-standard __NO_ISOCEXT macro.
478 * include/math.h: Tidy layout.
479 [!defined __NO_ISOCEXT]: Do not use this ugly double negative; in any
480 case, we do not want to encourage users to define such implementation
481 private macros; instead, prefer to make use of...
482 [defined _ISOC99_SOURCE]: ...this glibc compatible feature test.
483 [__STDC_VERSION__ >= 199901L]: Do not require this; it is implied, by
484 definition, in _ISOC99_SOURCE.
485 * include/stdio.h [!defined __NO_ISOCEXT]: Likewise; replace with...
486 [defined _ISOC99_SOURCE]: ...this, throughout.
488 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
490 Make resetting of __need_typedef requests more robust.
492 * include/sys/types.h [__need_off_t, __need___off64_t]
493 [__need_ssize_t, __need_time_t]: Move corresponding #undef out of, and
494 after the respective conditional blocks, which provide each associated
495 typedef, so ensuring that any repeat request is properly reset.
497 * include/time.h [__need_time_t]: Always delegate to <sys/types.h> for
498 typedef, and reset of request, even in cases where...
499 [_TIME_H]: ...this is already defined.
501 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
503 Add a missing comment terminator.
505 * include/io.h [!(defined _IO_H && defined _WCHAR_H)]: Properly
506 terminate the comment annotating the closing #endif statement.
508 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
510 Declare <dir.h> as formally deprecated.
512 * include/dir.h: Assert copyright.
513 (pragma GCC system_header): Declare it.
514 (_DIR_H): Define as multiple inclusion macro.
515 [!_DIR_H]: Emit "obsolete header" warning message.
517 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
519 Factor out <wchar.h> vs. <io.h> duplicate declarations.
521 * include/io.h: Assert copyright; tidy layout.
522 (_IO_H_): Rename this multiple inclusion guard macro...
523 (_IO_H): ...to this preferred form; do not define it when...
524 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
525 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
526 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
527 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
528 (_wfindnext64i32, _wfindfirst32, _wfindnext32, _findclose): ...only
529 these function prototypes, common to <wchar.h>, together with...
530 (_fsize_t, struct _wfinddata_t, struct _wfinddatai64_t)
531 (struct __wfinddata64_t, struct _wfinddata64i32_t)
532 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these
533 requisite data type definitions.
534 (pragma GCC system_header): Declare it.
535 (__need_intptr_t): Define, and include <stdint.h> to get...
536 (intptr_t): ...this typedef; neither define it locally, nor define...
537 (_INTPTR_T_DEFINED): ...this; delete all references.
538 (_FSIZE_T_DEFINED): Do not define it; delete all references; rather...
539 [!(defined _IO_H && defined _WCHAR)] (_fsize_t): Define it.
540 (FILENAME_MAX): Define it unconditionally.
541 (__struct_finddata_t): New temporary macro; define and use it to...
542 (struct _finddata_t, struct _wfinddata_t, struct _finddatai64_t)
543 (struct _wfinddatai64_t, struct __finddata64_t, struct __wfinddata64_t)
544 (struct _finddata64i32_t, struct _wfinddata64i32_t)
545 (struct _finddata32i64_t, struct _wfinddata32i64_t)
546 (struct __finddata32_t, struct __wfinddata32_t): ...define these.
548 * include/wchar.h (_WFINDDATA_T_DEFINED): Do not define it; delete all
549 references; filter out associated data type definitions, namely...
550 (struct _wfinddata_t, struct _wfinddatai64_t): ...these, and also...
551 (struct __wfinddata64_t, struct _wfinddata64i32_t): ...these, and...
552 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these.
553 (_WIO_DEFINED): Likewise, do not define it; delete all references;
554 filter out associated function prototype declarations for all of...
555 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
556 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
557 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
558 (_wfindnext64i32, _wfindfirst32, _wfindnext32): ...these; reproduce
559 them by selective inclusion of <io.h>.
561 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
563 Factor out <wchar.h> vs. <process.h> duplicate declarations.
565 * include/process.h: Assert copyright; tidy layout.
566 (_PROCESS_H_): Rename this multiple inclusion guard macro...
567 (_PROCESS_H): ...to this preferred form; do not define it when...
568 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
569 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
570 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
571 (_wspawnve, _wspawnvp, _wspawnvpe): ...only these functions.
572 [!__WCHAR_H_SOURCED__] (_PROCESS_H): Define it; declare all functions
573 normally specified herein, including those listed above, as required.
574 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
575 (__need_intptr_t): Define it prior to including <stdint.h>.
576 (pragma GCC system_header): Declare it.
578 * include/wchar.h (_WPROCESS_DEFINED): Delete it; filter out...
579 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
580 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
581 (_wspawnve, _wspawnvp, _wspawnvpe): ...these function prototypes;
582 reproduce them, by selective inclusion of <process.h>.
584 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
586 Enable selective retrieval of intptr typedefs from <stdint.h>.
588 * include/stdint.h: Assert copyright; tidy layout.
589 [__need_intptr_t || __need_uintptr_t] (_STDINT_H): Do not define it;
590 conceal all normally defined data types, except either or both of...
591 [__need_intptr_t] (intptr_t): ...this, and/or...
592 [__need_uintptr_t] (uintptr_t): ...this.
593 (pragma GCC system_header): Declare it.
595 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
597 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
599 * include/sys/stat.h: Assert copyright; tidy layout.
600 (pragma GCC system_header): Declare it.
601 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
602 (_SYS_STAT_H): ...this preferred naming convention; however, when...
603 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
604 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
605 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
606 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
607 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
608 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
609 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
610 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
611 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
612 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
613 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
614 (__struct_stat_defined): New macro; define, and use it to define...
615 (struct stat, struct _stat, struct _stati64, struct __stat64)
616 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
617 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
618 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
619 definition of types size_t and wchar_t; declare all header content,
620 including that declared when __WCHAR_H_SOURCED__ is defined, unless
621 already declared as a result of selective inclusion by <wchar.h>
622 (__need_size_t, __need_wchar_t): Do not define them; consequently,
623 there is no need to include <stddef.h>; do not do so.
625 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
626 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
627 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
628 (struct _stat64i32): Likewise; reproduce them by selective inclusion
631 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
633 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
635 * include/direct.h: Conditionally partition it, such that...
636 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
637 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
638 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
639 (_WDIRECT_DEFINED): Never define it; delete all references.
641 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
642 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
643 selectively #include <direct.h> to reproduce them.
645 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
647 Factor out <direct.h> vs. <dos.h> duplicate declarations.
649 * include/dos.h: Assert copyright; tidy layout.
650 (pragma GCC system_header): Declare it.
651 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
652 (_DOS_H): ...this preferred convention; do not define it when...
653 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
654 (struct _diskfree_t): ...this aggregate data type, together with...
655 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
656 (_getdiskfree): ...this associated function.
657 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
658 emit a warning that this header is obsolete, and should not be used.
659 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
660 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
661 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
662 neither is it necessary to #include <stddef.h>; do not do so. Also,
663 do not #include <_mingw.h> explicitly, but always #include <io.h>,
664 which will implicitly #include <_mingw.h> anyway.
666 * include/direct.h: Assert copyright; tidy layout.
667 (pragma GCC system_header): Declare it.
668 (_DIRECT_H_): Rename this multiple inclusion guard macro...
669 (_DIRECT_H): ...to adopt this preferred naming convention.
670 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
671 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
672 (_getdiskfree): Likewise, do not declare prototype; instead...
673 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
674 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
675 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
676 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
677 although needed, we may inherit it indirectly from <sys/types.h>,
678 included by <io.h> via <dos.h>.
680 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
682 Evade CPP mismatched apostrophe warnings in windres comments.
684 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
686 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
688 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
690 * include/locale.h: Assert copyright; tidy layout.
691 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
692 (_LOCALE_H): ...this; do not define it when...
693 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
694 (_wsetlocale): ...just this one visible function prototype.
695 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
696 (_WLOCALE_DEFINED): Do not define it; delete all references.
697 (pragma GCC system_header): Declare it.
699 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
700 visibility by selective inclusion of <locale.h> instead.
701 (_WLOCALE_DEFINED): Delete all references.
703 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
705 Resolve some "implicit function declaration" warnings.
707 * setargv.c (isspace): Include <ctype.h> for declaration.
708 * cpu_features.h (__cpu_features_init): Declare function prototype.
709 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
711 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
713 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
715 * include/stdlib.h [__WCHAR_H_SOURCED__]
716 (_STDLIB_H): Do not define it; restrict visible declarations to...
717 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
718 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
719 of regular <stdlib.h> content; full content is declared only when...
720 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
721 (_WSTDLIB_DEFINED): Do not define it; delete all references.
722 (pragma GCC system_header): Declare it; tidy layout.
724 * include/wchar.h: Delete duplicated declarations for...
725 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
726 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
727 include <stdlib.h> selectively, to maintain their visibility.
728 (_WSTDLIB_DEFINED): Delete all references.
730 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
732 Relocate misplaced umask() function prototypes.
734 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
735 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
736 here, but leave them for backward, or Microsoft, compatibility.
738 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
740 Correct another _BEGIN_C_DECLS imbalance error.
742 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
743 unbalanced instance deleted; one correctly balanced instance remains.
745 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
747 Support installation of headers with empty parts directory.
749 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
750 (install-mingwrt-headers): ...invoke it; if false, do not perform...
751 (INSTALL_SUB_HEADERS): ...this.
753 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
755 Reinstate typedef for non-standard off64_t.
757 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
758 (__off64_t): ...typedef derived from this; although non-standard, it
759 is gratuitously required when building GCC's libgfortran.a
761 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
763 Correct conditional compilation block nesting errors.
765 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
766 them balanced within, and around, conditional compilation blocks.
768 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
770 Feature test _MINGW32_EXTENDED_SOURCE renamed.
772 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
773 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
774 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
775 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
776 users should enable any conventional feature test which implies it.
778 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
779 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
781 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
783 Correct atexit() and _onexit() export declaration regression.
785 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
786 as DATA; declare them accordingly.
788 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
790 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
792 * include/string.h: Tidy layout.
793 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
794 (_stricmp, _strnicmp): Include their prototypes, selectively from...
795 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
796 * include/parts/strings.h: ...from here; file is obsolete; delete it.
798 * include/string.h (_wcscmpi): Define alias.
799 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
800 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
801 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
802 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
803 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
804 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
805 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
806 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
808 * include/strings.h (_STRINGS_H): Do not define it, when...
809 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
810 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
812 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
814 Refactor to make <parts/time.h> redundant.
816 * include/sys/types.h (time_t, __time32_t, __time32_t)
817 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
818 * include/parts/time.h: ...from here; preserve selective exposure.
820 * include/time.h (time_t, __time32_t, __time32_t): Get them...
821 * include/sys/types.h: ...from here, by selective inclusion.
823 * include/time.h (struct timespec, struct __mingw_extended_timespec)
824 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
825 * include/parts/time.h: ...from here; preserve selective exposure.
827 * include/parts/time.h: Delete file; it is no longer required.
829 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
831 Declare the nanosleep() function where POSIX expects it.
833 * include/time.h (__mingw_sleep): Declare function prototype.
834 (nanosleep): Declare prototype, and provide in-line implementation;
835 this is a reproduction of the original implementation, relocated...
836 * include/unistd.h (nanosleep): ...from here; remove it; hence...
837 (struct timespec): ...this need not be declared here, and there is
838 no need to include <parts/time.h>; remove reference.
840 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
842 Refactor <time.h> vs. <wchar.h> to avoid duplication.
844 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
845 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
846 (struct tm): Delete definition; delegate it, together with each of...
847 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
848 (wcsftime): ...these function prototypes; delete them, but note in
849 comments, that they remain declared, via delegation to...
850 * include/time.h: ...this; include it selectively, subject to...
851 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
852 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
853 [_TIME_H]: Process all definitions and declarations; otherwise...
854 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
855 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
856 (_WTIME_DEFINED): Obsolete macro; delete all references.
858 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
860 Implement support for POSIX "%n$*m$" printf() format control.
862 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
863 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
864 (__pformat_inline__): New macro; define, and use it where appropriate.
865 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
866 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
867 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
868 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
869 (__pformat_argmap_t): ...this new union data type; define it.
870 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
871 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
872 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
873 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
874 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
875 (__pformat_length_modifier, __pformat_check_length_modifier): New
876 locally defined static and/or inline functions; implement, and...
877 (__pformat): ...use them.
879 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
881 Add prototypes for Microsoft's _printf_p() family of functions.
883 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
884 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
885 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
886 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
887 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
888 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
889 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
890 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
891 available for selective inclusion by both <stdio.h> and <wchar.h>...
892 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
894 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
896 Adapt msvcrt-xref to become msvcrt.def.in provider.
898 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
899 filter value assignment; scale it upwards, by a factor of 0x10000.
900 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
901 (%.def) [msvcr*]: Do not preserve comments; define...
902 (__DLLNAME__): ...this preprocessor symbol.
904 * msvcrt.def.in: Content is obsolete; delete file and replace with...
905 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
906 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
907 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
908 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
909 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
911 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
913 Import msvcrt-xref documentation resources.
915 * msvcrt-xref: New directory.
916 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
917 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
918 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
919 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
921 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
923 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
925 * include/wchar.h: Some minor layout adjustments.
926 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
927 within the scope of reading <wchar.h>; undefine it at end of file.
928 (struct tm): Do not define; it is sufficient to keep it opaque.
929 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
930 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
931 directly; delegate to indirect definition by including <stdio.h>.
932 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
933 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
934 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
935 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
936 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
937 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
938 indirectly, by selective inclusion from <stdio.h>; hence include it.
940 * include/stdio.h: Assert copyright; tidy layout.
941 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
942 (_STDIO_H): ...this, but defined conditionally, subject to...
943 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
944 entities which are required by <wchar.h>; do not define...
945 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
946 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
947 are normally specified within <stdio.h>, INCLUDING those specifically
948 itemised above, as selectively required by <wchar.h>.
950 * pseudo-reloc.c: Some minor layout adjustments.
951 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
952 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
953 include <stddef.h> to guarantee it.
955 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
957 Enable selective definition of POSIX system types.
959 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
960 any specific __need_TYPE selector having been set prior to inclusion;
961 DO define it when no such selector is present, and undefine all such
962 selectors as may have been set, after evaluation of their effects.
963 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
964 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
965 accommodates reorganization of the file, to achieve a tidier layout.
966 (__have_typedef_off_t): New repeat definition guard; define it for
967 compilers which may choke on any repeated typedef for either of...
968 (off_t, _off_t): ...these; make them selectively defineable for...
969 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
970 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
971 in either case, redefine them in terms of...
972 (__off32_t): ...this new internal type, for consistency with...
973 (__off64_t): ...this previously defined non-standard type; also make
974 it selectively defineable, either by...
975 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
976 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
977 (__have_typedef___off64_t): New repeat definition guard; define it.
978 (ssize_t, _ssize_t): Also make them selectively defineable, on...
979 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
980 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
981 (__have_typedef_ssize_t): New repeat definition guard; define it.
983 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
985 Avoid user namespace pollution by non-standard type 'off64_t'.
987 * include/sys/types.h (off64_t): Rename it as...
988 (__off64_t): ...this implementation-private alternative name, so
989 eliminating the potential for user namespace pollution.
991 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
992 return type, and type of offset argument, in both prototype and inline
993 implementation; note that this addresses the issue of pollution in the
994 user namespace, while avoiding the issue of MinGW-Bug [#2024].
996 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
997 instead of 'off64_t', as offset argument type in function prototypes.
998 (ftello64): Likewise, for return type of inline function.
1000 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
1001 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
1002 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
1004 * mingwex/stdio/fseeko64.c: Assert copyright.
1005 (fseeko64): Use '__off64_t' per modified function prototype.
1007 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1009 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
1011 * mingwex/ofmtctl.c: New file; it implements...
1012 (_mingw_output_format_control): ...this new function; it provides
1013 additional MinGW specific printf() format processing options.
1015 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
1017 * include/stdio.h (_mingw_output_format_control): Declare it.
1018 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
1019 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
1020 manifest constant expressions; define them.
1022 * mingwex/stdio/pformat.c: Revise licensing terms.
1023 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
1024 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
1025 modifier; this matches the behaviour specified by ISO-C99, else...
1026 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
1027 previous MSVC compatible behaviour, treating it as an `L' modifier.
1028 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
1030 * mingwex/ofmt.c (ARGLIST): Subsume references to...
1031 (ARGTYPE): ...this now obsolete macro; delete it throughout.
1032 (update_output_format_flag): New inline function; it restricts flag
1033 operations to affect only Microsoft's exponent digit bits.
1034 [FUNCTION == _set_output_format]: Use it.
1035 [FUNCTION == _get_output_format]: Likewise.
1037 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1039 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
1041 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
1042 defined, when implied by any STDC or POSIX version selection, viz. ...
1043 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
1045 * include/stdlib.h: Assert copyright; tidy layout.
1046 (_STDLIB_H_): Multiple inclusion guard macro renamed...
1047 (_STDLIB_H): ...to this, preferring no trailing underscore.
1048 [!defined __NO_ISOCEXT]: Delete double negative references; use...
1049 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
1050 (lldiv_t): ...defining this C99 specific aggregate data type, and...
1051 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
1052 (wcstold, _Exit): ...declaring these C99 function prototypes.
1053 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
1054 future removal; not in MSVCRT.DLL, these conform to no known standard.
1055 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
1056 (__strtod): ...this libmingwex.a provided function; it handles string
1057 representations of hexadecimal-floats, infinities and NaNs, whereas...
1058 (strtod): ...this MSVCRT.DLL implementation does not.
1059 (__MSVCRT_VERSION__): Prefer symbolic comparison...
1060 [>= __MSVCR80_DLL]: ...for this requirement.
1062 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1064 Rationalize definition of struct timespec.
1066 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
1067 tv_sec field, in place of anonymous union, thus avoiding missing brace
1068 warnings when initializing; leave a copy of the previous definition...
1069 (struct __mingw32_expanded_timespec): ...named thus.
1071 * include/unistd.h (nanosleep): Adjust inline implementation, to match
1072 altered specification of tv_sec field in struct timespec.
1074 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
1075 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
1077 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
1078 convenience function; defined as inline, with __LIBIMPL__ equivalent,
1079 it facilitates interpretation of an instance of struct timespec as if
1080 it were defined as struct __mingw32_expanded_timespec.
1082 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1084 Make strings.h mostly POSIX.1-2008 compliant.
1086 * include/strings.h: Rewritten. Do not include...
1087 (string.h): ...this; mandated by POSIX.1, it now defines...
1088 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
1089 prototypes, possible in-line implementations, and JMPSTUB references
1090 to corresponding external implementations, which will now become
1091 automatically created within libmingwex.a
1093 * include/parts/strings.h: New file; it declares prototypes for...
1094 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
1095 string.h, but we also require them in strings.h
1097 * include/parts/wchar.h: New file; it declares prototypes for all wide
1098 character functions which MSVC specifies in both wchar.h and string.h
1100 * include/string.h: Miscellaneous layout adjustments.
1101 (strcasecmp, strncasecmp): Delete; they belong in strings.h
1102 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
1103 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
1104 include them from parts/wchar.h instead.
1106 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
1107 prototypes; include them from parts/wchar.h instead, so making this
1108 guard macro redundant; delete it.
1110 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
1111 (wcscmpi.$OBJEXT): Implementations are now automatically generated
1112 from header file, for inclusion in libmingwex.a; remove free-standing
1113 implementations from the entire family of liboldname libraries, and...
1114 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
1115 files; they are no longer required.
1117 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1119 Incorporate build system updates from w32api package.
1121 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
1122 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
1123 (install-strip, uninstall): New make command goals; implement them.
1124 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
1125 (devdist, dlldist): ...these have no need to strip explicitly.
1126 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
1127 (install-mingwrt-headers): ...here.
1129 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1131 Adapt platform feature checks to NTDDI_VERSION conventions.
1133 * include/_mingw.h: Assert copyright; include w32api.h
1134 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
1135 to w32api/include/w32api.h, whence they remain in effect.
1136 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
1138 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1140 Correct mismatched #if/#endif from preceding commit.
1142 * include/_mingw.h (#pragma GCC system_header)
1143 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
1144 correcting for inadvertent removal of matching #endif introduced by
1145 preceding 2015-06-19 commit.
1147 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1149 Define symbolic names for alternative Microsoft runtime DLLs.
1151 * include/msvcrtver.h: New file; it assigns a value for...
1152 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
1153 (__MSVCR60_DLL): ...this new manifest constant, with each of...
1154 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
1155 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
1156 ...these also defined, as user assignable alternatives.
1158 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
1159 to establish its default value.
1161 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1163 Track dependencies on modified system header files.
1165 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
1167 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1169 Correct an anomaly in stage 1 only build procedure.
1171 * Makefile.in (all-gcc): New goal; it is an alias for...
1172 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
1173 (all-mingwrt-stage-1-only): ...this; upate all references.
1174 (active-goals): Adjusted accordingly; it now reguires...
1175 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
1176 (install): Adjusted, as directed by...
1177 (DEFAULT_MAKECMDGOALS): ...this.
1179 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1181 Prefer our hypot() implementation in complex maths operations.
1183 * mingwex/complex/cabs_generic.c: New file; it replaces...
1184 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
1185 * mingwex/complex/cabsl.c: ...these.
1187 * mingwex/complex/catan_generic.c: New file; it replaces...
1188 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
1189 * mingwex/complex/catanl.c: ...these.
1191 * mingwex/complex/clog_generic.c: New file; it replaces...
1192 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
1193 * mingwex/complex/clogl.c: ...these.
1195 * mingwex/complex/cpow_generic.c: New file; it replaces...
1196 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
1197 * mingwex/complex/cpowl.c: ...these.
1199 * mingwex/complex/csqrt_generic.c: Do not use...
1200 (_hypot): ...this Microsoft form of function reference; use...
1201 (hypot): ...this ANSI standard form instead.
1203 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1205 Correct C++ compilation anomaly with hypotf() in cmath header.
1207 * include/math.h: Add copyright notice; generally tidy layout.
1208 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1209 (hypotf): Delete inline implementation; it did not properly handle
1210 range errors, and was uncompilable with optimization when any g++
1211 option implying __STRICT_ANSI__ conformity was specified.
1212 (_MATH_H_): Rename this multiple inclusion guard...
1213 (_MATH_H): ...to this.
1215 * mingwex/math/hypot_generic.c: New file; it implements...
1216 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
1217 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
1219 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1221 Prepare and tag all files for release of mingwrt-3.21.1.
1223 * configure.ac (AC_INIT): Adjust package version argument.
1224 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
1225 (__MINGW32_VERSION): ...increment this to match.
1227 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1229 Refactor to avoid possible time_t conflicts across headers.
1231 * include/parts/time.h (struct timespec): Make it more descriptive of,
1232 and better able to accommodate, potential ambiguity relating to...
1233 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
1234 whence they may be identically imported into each of...
1235 * include/sys/types.h include/time.h include/wchar.h: these; delete
1236 duplicate typedefs, and import accordingly.
1238 * include/sys/types.h: Add licence; general comment additions.
1239 (_TYPES_H_): Rename multiple inclusion guard macro...
1240 (_SYS_TYPES_H): ...to this.
1242 * include/time.h: Add licence; general comment/layout adjustments.
1243 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1244 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
1245 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
1246 (_TIME_H_): Rename multiple inclusion guard macro...
1247 (_TIME_H): ...to this.
1249 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
1250 (struct timespec): ...of this.
1252 * include/wchar.h: Add licence; general comment/layout adjustments.
1253 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1254 [GCC] (system_header): Add pragma, identifying header as such.
1255 (_WCHAR_H_): Rename multiple inclusion guard macro...
1256 (_WCHAR_H): ...to this.
1258 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1260 Remove obsolete varargs.h header file.
1262 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
1263 a GCC header which is no longer supported, and was always intended for
1264 ultimate removal; now is the long overdue time to do so.
1266 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1268 Correct improper unistd.h function attribute declarations.
1270 * include/unistd.h (_cdecl): Correct usage throughout; should be...
1273 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1275 Fix GLOB_DOOFFS initialization bug.
1277 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
1278 (gl_data->gl_offs): ...this is properly initialized to zero.
1280 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1282 Tag all files for release of mingwrt-3.21.
1284 * include/_mingw.h: Adjust version accordingly.
1286 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1288 Improve usage notes in stdlib.h, for mkstemp() function.
1290 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
1291 an original comment, explaining the need to use _O_TEMPORARY, from...
1292 * mingwex/mkstemp.c: ...here; delete trailing white space.
1294 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1296 Eliminate some potential definition inconsistencies.
1298 * include/stdio.h: Cosmetic formatting change, relating to...
1299 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
1300 unconditionally; this allows the compiler to check for consistency
1301 with their primary definitions in stdio.h
1303 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1305 Suppress expected warning diagnostics in LIBIMPL builds.
1307 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
1308 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
1309 GCC flag to supress warnings relating to deprecated declarations.
1311 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1313 Provide more POSIX conforming sleep() functions.
1315 * include/sys/types.h (useconds_t): Make it explicitly long; int may
1316 be okay, but doesn't guarantee enough bits; mark as deprecated, since
1317 POSIX has declared it "obsolete", and no longer specifies it.
1319 * mingwex/usleep.c: Delete file; it provided an implementation of...
1320 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
1321 its error handling was hopelessly broken; replace it with...
1322 * mingwex/nsleep.c: ...this new file; it implements...
1323 (__mingw_sleep): ...this generic helper function; it supports sleep
1324 capability with interval specification to nanosecond precision.
1326 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
1327 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
1328 (sleep, nanosleep): ...these current POSIX functions, and also...
1329 (usleep): ...this obsolete one; mark it as deprecated.
1331 * include/parts: New directory; it is intended to host partial header
1332 implementations, for content which must be shared among arbitrary sets
1333 of multiple standard header files.
1335 * include/parts/time.h: New file; nominally declaring time.h content.
1336 (struct timespec): Declare it; it is currently used within unistd.h,
1337 to facilitate the __CRT_INLINE implementation of nanosleep().
1339 * Makefile.in (libmingwex.a): Remove reference to...
1340 (usleep.$OBJEXT): ...this; replace it with a reference to...
1341 (nsleep.$OBJEXT): ...this alternative.
1342 (mingwrt-includedirs): Add prerequisite to create...
1343 ($includedir/parts): ...this new directory; it is populated by...
1344 (install-mingwrt-headers): ...this rule; add requisite command.
1346 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1348 Delete an unnecessary Unicode wrapper file.
1350 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
1351 UTF-16LE API from dirent.c, without any need for this wrapper.
1353 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1355 Some further inline function rationalization.
1357 * include/io.h (_CRTALIAS): Replace all references...
1358 (__CRT_ALIAS): ...using this syntactically preferred form.
1359 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
1360 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1362 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
1363 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1365 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
1366 * mingwex/ftruncate.c: Likewise.
1368 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1369 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
1371 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1373 Some POSIX feature test adjustments.
1375 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
1376 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
1377 (mkdtemp): This didn't become available until SUSv4, so requires...
1378 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
1380 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1382 Another CRT_INLINE function implementation rationalization.
1384 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
1385 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
1386 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1388 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
1389 (libmingwex.a): Delete obsolete dependency on...
1390 (imaxabs.$OBJEXT): ...this.
1392 * mingwex/imaxabs.c: File is now redundant; delete it.
1394 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1396 More rationalization of CRT_INLINE function implementations.
1398 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
1399 (ftello64): Add __LIBIMPL__ specification for extern implementation.
1400 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1402 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
1403 * mingwex/stdio/ftell064.c: Likewise.
1405 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1406 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
1408 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1410 Don't implicitly define _POSIX_C_SOURCE too early.
1412 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
1413 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
1414 that it is not accidentally activated by implied _POSIX_C_SOURCE.
1416 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1418 Correct complex arcsin computation per issue [#2245].
1420 * mingwex/complex/casin_generic.c: New file; it replaces...
1421 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
1422 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
1424 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1426 Correct complex square root computation per issue [#2246].
1428 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
1429 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
1430 (hypot): ...this libmoldname.a indirection.
1432 * mingwex/complex/csqrt_generic.c: New file; it replaces...
1433 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
1434 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
1436 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1438 Adjust header guards to resolve issue [#2244].
1440 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
1441 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
1442 ...when any of these prevail, or as appropriate to correspond with...
1443 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
1445 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
1446 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
1447 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
1448 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
1450 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1452 Add implementation of mkstemp() and mkdtemp() functions.
1454 * mingwex/cryptnam.c: New file; it implements...
1455 (__mingw_crypto_tmpname): ...this helper function; it generates a
1456 cryptographically secure sequence of characters, used as the random
1457 component in temporary file and directory names.
1459 * mingwex/mkstemp.c: New file; it implements...
1460 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
1462 * mingwex/mkdtemp.c: New file; it implements...
1463 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
1465 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
1466 function implementation, with LIBIMPL extern semantics, in terms of...
1467 (__mingw_mkstemp): ...this; also declare prototype, and define...
1468 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
1469 (_MKSTEMP_SETMODE): New macro; define it, also providing...
1470 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
1471 (mkdtemp): Declare prototype; provide inline implementation, with
1472 JMPSTUB extern semantics, in terms of...
1473 (__mingw_mkdtemp): ...this; declare prototype.
1475 * Makefile.in (libmingwex.a): Add dependency rule, to include...
1476 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
1478 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1480 More JMPSTUB rationalization of inline functions.
1482 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
1483 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
1484 appropriate MSVCRT.DLL equivalent entry point.
1486 * mingwex/_Exit.c: File is now redundant; delete it.
1487 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
1488 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
1490 * Makefile.in (jmpstub_awk_script): Add support for...
1491 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
1492 (libmingwex.a): Remove dependencies on deleted files, namely...
1493 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
1494 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
1496 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1498 Correct omission of complex conjugate functions from libmingwex.a
1500 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
1501 (creal, crealf, creall): Likewise, for consistency of implementation.
1502 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
1504 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
1505 declarations; they should be interpreted analogously to __CRT_ALIAS.
1506 (libmingwex.a): Remove object file references for functions which are
1507 now declared as LIBIMPL, and sort the remainder in ASCII collating
1508 order; deleted function references comprise the set consisting of...
1509 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
1510 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
1511 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
1513 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
1514 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
1515 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
1516 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
1517 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
1519 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1521 Back-port improved asinh() implementation from 4.0-dev branch.
1523 * mingwex/math/asinh_generic.c: New file; it replaces...
1524 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
1525 ...all of these; delete them.
1527 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1529 Enable remake of lost LIBIMPL object files.
1531 * Makefile.in (libimpl_remake): New macro; define it, and...
1532 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
1534 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1536 Implement more robust _get_output_format fallback handling.
1538 * mingwex/ofmt.c: New file; it implements...
1539 (__mingw_output_format_flag): ...backing store, used by...
1540 (__mingw_get_output_format, __mingw_set_output_format): ...these
1541 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
1542 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
1543 version specific Microsoft APIs, which are also supported by some
1544 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
1545 (__mingw_get_output_format_fallback): Implement; it is aliased to...
1546 (__mingw_set_output_format_fallback): ...this; together they provide
1547 the emulation support for the preceding pair of functions, when they
1548 are not available within the run-time platform MSVCRT.DLL
1549 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1550 Implement them; they wrap, and if necessary emulate...
1551 (_get_printf_count_output, _set_printf_count_output): ...these.
1552 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
1553 (__mingw_set_printf_count_output_fallback): ...this; together they are
1554 required to support emulation of the preceding pair of functions, when
1555 they are not available within the run-time platform MSVCRT.DLL
1557 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
1558 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
1559 (__mingw_get_output_format, __mingw_set_output_format)
1560 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1561 Unconditionally declare their prototypes, for subsequent inline use.
1562 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
1563 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
1564 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
1565 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
1566 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
1567 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
1568 represent a compilable token.
1570 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
1571 _get_output_format; consult __mingw_output_format_flag directly.
1573 * ofmt_stub.s: No longer required; delete it.
1575 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
1576 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
1577 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
1578 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
1579 all are compiled from ofmt.c
1581 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1583 Do some more essential build tree clean up.
1585 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
1586 in the way of a successful rebuild from clean.
1588 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1590 Implement wrappers for emulation of POSIX dlfcn API.
1592 * include/dlfcn.h: New file; it declares the API.
1593 * mingwex/dlfcn.c: New file; implement it, with access via...
1594 (__mingw_dlfcn): ...this publicly addressable vector table.
1596 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1597 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1598 (__LIBIMPL__): ...this automatic interface generator; implement it.
1599 (libstub_refnames): New macro; it is adapted from and replaces...
1600 (jmpstub_refs): ...this; when it is then invoked twice to build...
1601 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1602 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1603 (libimpl_awk_script): New inline script; it handles automated builds
1604 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1605 (libimpl_sed_script): New inline script; it prepares intermediate C
1606 source code for LIBIMPL interfaces, as required to satisfy these...
1607 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1608 (LIBIMPL_CFLAGS): New macro; define it.
1610 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1612 Move libgen functions to __mingw_ pseudo-namespace.
1614 * mingwex/dirname.c (dirname): Rename function, as implemented...
1615 (__mingwex_dirname): ...to this.
1617 * mingwex/basename.c (basename): Rename function, as implemented...
1618 (__mingwex_basename): ...to this.
1620 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1621 prototypes, matching and augmenting original declarations for...
1622 (dirname, basename): ...these; reimplement as inline aliases, with
1623 __JMPSTUB__ references to the renamed implementation entry points.
1625 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1627 Implement new command line argument globbing strategy.
1629 * include/_mingw.h: Backport feature defines from master...
1630 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1631 constants; define them. They select the preferred globbing algorithm.
1632 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1633 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1634 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1635 they enable optional additional features supported by this algorithm.
1636 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1638 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1640 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1641 * setargv.c: ...new file; it implements the initialization mechanism
1642 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1643 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1644 it invokes the algorithm via an API similar to that described by MSDN,
1645 while continuing to support our original _CRT_glob interpretation.
1646 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1647 algorithm, via the MSDN-alike API, by calling back to...
1649 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1650 relocated to here, as a publicly addressable function; formerly...
1651 (__mingw_CRTStartup): ...called directly from here, we now redirect
1652 the call through _setargv(), whence it may be called indirectly.
1654 * init.c: Redundant file; delete it. It originally provided...
1655 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1656 original static attribute removed, to allow global addressing.
1658 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1660 Backport glob implementation from master to legacy.
1662 * include/glob.h: New file; copy it from master branch.
1663 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1664 (glob, globfree): ...each of these, respectively.
1666 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1667 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1668 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1669 (accept_glob_nocheck_match): New static function; it adds support for
1670 avoidance of globbing on patterns with no globbing token, so avoiding
1671 the case transliteration effect reported as MinGW-Bug #2106.
1672 (glob_match): Use it.
1674 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1676 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1678 Implement conventionally named dirent function trampolines.
1680 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1681 which redirects a conventionally named function call to its __mingw_
1682 pseudo-namespace implementation.
1684 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1685 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1686 appropriate protocol for compiling *.sx files, (supported natively by
1687 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1689 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1690 yet provide it, so we define it ourselves; deploy it for *.sx files.
1691 (Makefile.stub): New sinclude file; create it dynamically, using...
1692 (jmpstub_awk_script): ...this new inline script, which is based on...
1693 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1694 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1695 (mostlyclean-local): Remove Makefile.stub; do likewise...
1696 (Makefile): ...when remaking this, to ensure that both will be
1699 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1701 Make dirent implementation namespace and time_t clean.
1703 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1704 macros; define them. They facilitate identification of symbols which
1705 must be compiled with `extern "C"' binding, when compiling C++ code.
1706 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1707 (_CRTALIAS): ...this, which is to be considered as deprecated.
1708 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1709 __CRT_ALIAS build hints, while remaining transparent to GCC.
1710 (UNICODE, _UNICODE) [user defined]: Define consistently.
1712 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1713 4.0-dev branch, with additional ABI changes to improve stability).
1714 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1715 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1716 Add `__mingw_' prefix to all publicly exposed symbol names.
1717 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1718 implemented functions; they replace Microsoft's ambiguously defined
1719 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1720 resulting from the ambiguous size of Microsoft's time_t.
1722 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1723 removing unnecessary time_t and file size fields; (our replacements
1724 for _findfirst, and _findnext do not require them to be present).
1725 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1726 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1727 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1728 Adjust prototypes, making them inline aliases for public symbols which
1729 are now qualified by the `__mingw_' prefix; add build hints to support
1730 compilation of addressable stubs, with the original symbol names.
1731 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1732 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1733 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1734 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1735 New macros; define them. (These show availability of optional fields
1736 within the dirent struct, which client code may wish to access).
1738 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1740 Correct improper naming of assembly language source files.
1742 * mingwex/math/*.S: Rename all files with this extension...
1743 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1744 not extended `assembler-with-cpp' as implied by the former extension);
1745 adjust all internal `.file <name>' references accordingly.
1747 * Makefile.in (vpath %.S): Adjust reference to locate files....
1748 (vpath %.s): ...now renamed thus.
1750 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1752 Streamline the build system infrastructure.
1754 * configure.ac: New file; it replaces...
1755 * configure.in: ...this; (name is obsolete); delete it.
1757 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1758 make invocations, when processing subdirectories, and add automatic
1759 dependency tracking for all generated files.
1761 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1763 * mingwex/Makefile.in: No longer required; delete it.
1764 * profile/Makefile.in: Likewise.
1766 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1767 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1769 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1770 longer relevant, and I have no desire to maintain it.
1772 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1774 Add another more rigorous __STRICT_ANSI__ filter.
1776 * include/limits.h [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
1777 * include/sys/param.h [PATH_MAX defined] (MAXPATHLEN): Alias it.
1778 [PATH_MAX not defined] (MAXPATHLEN): Define it directly.
1780 2012-08-02 Ivan Maidanski <ivmai@users.sourceforge.net>
1782 Add missing function prototypes per issue [#1305].
1784 * include/process.h [#ifndef _WPROCESS_DEFINED]
1785 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve)
1786 (_wexecvp, _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe)
1787 (_wspawnv, _wspawnve, _wspawnvp, _wspawnvpe): Declare them.
1789 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1791 Add function prototype declarations per issue [#1293].
1793 * include/stdio.h (_lock_file, _unlock_file): Declare them.
1795 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1797 Apply some more rigorous __STRICT_ANSI__ filtering.
1799 * include/stdio.h (_getws, _putws, _wfdopen, _wfopen)
1800 (_wfreopen, _wfsopen, _wtmpnam, _wtempnam, _wrename, _wremove)
1801 (_wperror, _wpopen): Do not declare these functions unless...
1802 [#ifndef __STRICT_ANSI__]: ...this is satisfied.
1804 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1806 Add string to 64-bit integer conversion function prototypes.
1808 * include/stdlib.h (_strtoi64, _strtoi64_l, _strtoui64, _strtoui64_l)
1809 (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l): Declare them.
1810 * include/wchar.h (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l):
1811 Likewise; these are duplicates of the <stdlib.h> declarations.
1813 2012-08-01 Earnie Boyd <earnie@users.sourceforge.net>
1815 Update for _WIN64 exception handler readiness.
1817 * include/excpt.h [_WIN64] (__try1, __except1): Add alternative inline
1818 assembly code implementation, based on X86-64 architecture.
1820 2012-07-30 Earnie Boyd <earnie@users.sourceforge.net>
1822 Correct missing inclusion of <_mingw.h>.
1824 * include/stdint.h: Add omitted #include; all mingwrt headers are
1825 expected to include this; it is required to define __int64.
1827 2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>
1829 Correct prototypes for _wfindfirst()/_wfindnext() function family.
1831 * include/io.h (_wfindfirst, _wfindfirst32, _wfindfirsti64)
1832 (_wfindfirst32i64, _wfindfirst64i32): Return type changed to intptr_t.
1833 (_wfindnext, _wfindnext32, _wfindnexti64, _wfindnext32i64)
1834 (_wfindnext64i32, _wfindnext64): Type of parameter #1 must match.
1836 2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
1838 Avoid potential GCC "missing function prototype" warnings.
1840 * include/stdio.h (getc, putc, getchar, putchar, fopen64)
1841 (ftello64): Provide a function prototype declaration for each of
1842 these, prior to the corresponding inline implementation.
1844 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1846 * include/_mingw.h: Increment version to 3.20.
1848 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1850 * tlsmthread.c: Update to reflect changes in tlssup.c.
1851 * tlssup.c: code clean-up.
1853 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1855 * include/_mingw.h: Increment version to 3.19.
1857 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1859 * include/float.h: Modify guard to accomodate CLang.
1861 Thanks to Ruben Van Boxem for the report.
1863 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1865 * tlssup.c: Remove mingwm10.dll fallback.
1867 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1869 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1871 Thanks to bvassche for the report.
1873 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1875 Correct checking for short option matches in getopt_long_only().
1877 * mingwex/getopt.c (getopt_verify): New static inline function.
1878 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1879 possible short option match after failing to match, or ambiguously
1880 matching as a long option.
1882 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1884 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1886 Thanks to cgf for the report.
1888 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1890 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1891 compiles with __STRICT_ANSI__.
1893 Thanks to Felipe Contreras for the report.
1895 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1897 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1900 Thanks to Tobias Burnus for the report.
1902 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1904 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1905 by wrapping the functions in brackets.
1907 Thanks to Kai Tietz for the report.
1909 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1911 * Makefile.in: Add support for msvcr100.dll.
1912 * msvcrt.def.in: Ditto.
1914 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1916 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1917 not always available, go the long way and use the explicit named union
1918 members, which are also declared in winnt.h.
1920 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1922 * mingwex/isblank.c: Fix typo in declaration.
1924 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1926 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1927 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1928 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1929 is included before <ctype.h>.
1931 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1933 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1935 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1937 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1939 Correct hexadecimal formatting of double and long double values.
1941 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1942 (__pformat) [A format]: Cast double values to long double, and use...
1943 (__pformat_xldouble): ...this instead, with corrected adjustment of
1944 exponent and alignment of mantissa, when formatting subnormals.
1946 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1948 * include/dirent.h (dd_handle): Define as intptr_t.
1950 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1952 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1955 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1957 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1958 semantically identical MAX_PATH; correct value is 260.
1960 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1962 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1963 system include search path; (issue reported by Mark Brand).
1965 * include/float.h: Add multiple inclusion guard around...
1966 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1967 only when this define does not indicate that it has already been seen;
1968 update comments to document rationale; move it within the scope of...
1969 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1970 GCC's float.h, after an appropriate complementary modification, need
1971 not perform a further include path search when this implementation
1972 specific extension has already been processed.
1974 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1976 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1977 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1978 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1979 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1980 _findnexti64): Correct definition.
1982 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1984 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1986 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1988 * include/_mingw.h: Increment version to 3.18.
1990 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1992 * include/stdio.h: (_vscprintf, _vscwprintf)
1993 * include/tchar.h: (_vsctprintf)
1995 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1997 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1998 (initial implementation)
2000 * new type: __time32_t
2002 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
2003 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
2004 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
2006 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
2007 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
2008 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
2009 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
2010 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
2011 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
2012 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
2013 _wstat32i64, _wstat64i32,_wutime32
2015 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
2016 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
2017 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
2018 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
2019 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
2021 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
2023 Implement TLS Callback.
2025 * tlsmcrt.c: New file.
2026 * tlsmthread.c: Ditto.
2029 * Makefile.in: Include new files.
2030 * crt1.c: Implement TLS Callback.
2032 * mthr_stub.c: Remove.
2034 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2036 * include/_mingw.h: Increment version to 3.17.
2038 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2040 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
2041 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
2043 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2045 * include/io.h (_open_osfhandle): Correct definition.
2047 Thanks to Alexander Shaduri for the information.
2049 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
2051 Final sync of pseudo-reloc.c with mingw64 and cygwin
2052 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
2053 regarding error messages.
2055 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
2057 Honor DESTDIR for winsup/mingw and winsup/w32api.
2058 Detect and report error if installation paths are win32
2059 format, but DESTDIR is non-empty.
2061 * Makefile.in (DESTDIR): Honor per convention.
2062 (need-DESTDIR-compatibility): New macro; define it and a
2064 (fail-DESTDIR-compatibility): New dependency goal.
2065 (install-dirs): Require need-DESTDIR-compatibility.
2066 * mingwex/Makefile.in (DESTDIR): Honor per convention.
2067 (need-DESTDIR-compatibility): New macro; define it and a
2069 (fail-DESTDIR-compatibility): New dependency goal.
2070 (install): Require need-DESTDIR-compatibility.
2071 * profile/Makefile.in: Ditto.
2073 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
2075 Sync pseudo-reloc.c with mingw64
2076 * psuedo-reloc.c: Remove unnecessary includes.
2077 Forward declare _pei386_runtime_relocator.
2078 Decorate _image_base__ symbol with macro for
2079 mingw64 compatibility. Whitespace changes.
2080 (__print_reloc_error): Renamed to...
2081 (__report_error): This. "Returns" void, and
2082 always aborts. Now used on all platforms.
2083 (__write_memory): Remove special case error handling
2084 for different platforms - always call __report_error.
2085 (do_pseudo_reloc): Remove special case error handling
2086 for different platforms - always call __report_error.
2087 (_pei386_runtime_relocator): Decorate _image_base__
2088 symbol with mingw64 compatibility macro.
2090 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
2092 Sync pseudo-reloc.c with cygwin/lib/
2093 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
2094 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
2095 for fatal error handling that is consistent with cygwin process
2096 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
2097 is unique to each address space, across fork().
2098 [CYGWIN] (__print_reloc_error): New function for reporting
2099 errors in a manner supported by cygwin at this early stage of
2100 the process life-cycle.
2101 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
2102 performed only once for each address space, but are repeated
2103 after fork() in the new address space.
2104 [MINGW] (__write_memory): Ensure that b is always initialized
2105 by call to VirtualQuery, even if -DNDEBUG.
2107 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2109 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
2110 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
2112 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
2113 (PFORMAT_HASHED): ...this formatting attribute; honour only user
2114 specified format qualifiers, except in special case...
2115 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
2116 (PFORMAT_ZEROFILL): ...this default formatting attribute...
2117 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
2120 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2122 Avoid multiple link time definitions of _printf() for C++;
2123 (problem reported by Alexander Shaduri, via MinGW-users ML).
2125 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
2126 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
2128 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2130 * include/_mingw.h: Increment version to 3.16.
2132 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2134 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
2135 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
2136 __fp_unordered_compare): Add prototypes.
2137 * include/stdio.h (vsnwprintf): Add prototype.
2138 * include/wchar.h (vsnwprintf): Add prototype.
2139 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
2140 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
2142 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2144 Correct disposition of wchar_t output in printf().
2146 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
2147 (argval): ...this, in inner scope, with singular type `wchar_t'; use
2148 it to pass one wchar to __pformat_wputchars(), for output.
2150 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2152 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
2154 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2156 Convert to monolithic configuration procedure.
2158 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
2159 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
2160 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
2161 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
2162 (CRT0S): Relocate from `profile'; define it as appropriate.
2163 (LIBM_A): Define and AC_SUBST it unconditionally.
2164 (AC_CONFIG_SUBDIRS): Remove; none to configure.
2165 (AC_OUTPUT_FILES): Add `Makefile' for each of...
2166 (mingwex, profile): ...these subdirectories.
2168 * configure: Regenerated.
2170 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
2171 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
2172 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
2173 (SUBDIRS): Define explicitly, to run recursive `make' in...
2174 (mingwex, profile): ...these; simplify build commands...
2175 (rootme, rootsrc): ...without these shell variables.
2176 (all, subdirs): Delete redundant build commands.
2177 (FIXME): Flag various issues for follow up.
2179 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
2180 (top_srcdir): ...this new macro; let AC_SUBST define it.
2181 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2182 (Makefile): Make it depend on...
2183 (top_builddir/config.status): ...this, itself depending on...
2184 (top_srcdir/configure): ...this.
2185 (FIXME): Flag various issues for follow up.
2187 * mingwex/aclocal.m4: File no longer required; delete it.
2188 * mingwex/configure mingwex/configure.in: Likewise.
2190 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
2191 (top_srcdir): ...this new macro; let AC_SUBST define it.
2192 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2193 (Makefile): Make it depend on...
2194 (top_builddir/config.status): ...this, itself depending on...
2195 (top_srcdir/configure): ...this.
2196 (FIXME): Flag various issues for follow up.
2198 * profile/aclocal.m4: File no longer required; delete it.
2199 * profile/configure profile/configure.in: Likewise.
2201 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2203 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
2204 to complaints that it causes issues.
2206 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
2208 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
2210 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2212 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
2213 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
2214 to all inline functions.
2216 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2218 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
2219 * CRT_fp10.c: Ditto.
2221 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2223 * cpu_features.c: replace gcc-specific construct with portable alternative
2224 and match the code a few lines above.
2225 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
2227 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2229 * include/_mingw.h: Changes required for PCC compiler.
2231 2009-07-18 Jeff Lu <jll544@yahoo.com>
2233 * mingwex/usleep.c: round up to next ms
2235 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2237 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
2238 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
2239 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
2240 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
2242 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2244 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
2246 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
2248 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
2249 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
2250 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
2251 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
2252 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
2253 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
2254 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
2255 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
2256 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
2257 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
2258 sources as of Apr. 20, 2009. Update further to match the sources in
2259 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
2260 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
2261 double/ulong union from U to dbl_union for better grepping and white-
2264 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2266 * include/stdlib.h (_wtof): Define.
2268 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
2270 * include/stdint.h (int_fast8_t): Specify as signed char.
2271 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
2272 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
2274 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
2276 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
2278 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2280 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
2281 (Requested by Robert Riebisch)
2283 * mingwex/getopt.c (getopt_parse): Track external increments of...
2284 (optind): ...this global variable.
2286 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2288 * include/_mingw.h: Increment version to 3.15.2.
2290 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2292 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
2293 Also add tentative support for BSD specific `optreset' feature.
2295 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
2296 (__mingw_optreset): ...this new global variable.
2298 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
2299 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
2302 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2304 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
2305 Correct mishandling of invalid characters in printf() format specs.
2307 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
2308 (backtrack): ...this new automatic variable, at start of each format
2309 conversion specification substring; use it to backtrack, and print the
2310 substring literally, if any invalid character is encountered.
2312 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
2314 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
2315 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
2316 ___unguarded_readlc_active_add_func, __crtCompareStringW,
2317 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
2318 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
2319 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
2320 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
2321 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
2322 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
2323 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
2324 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
2325 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
2326 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
2327 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
2329 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
2331 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
2333 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2335 Correct some binary distribution packaging defects.
2337 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
2338 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
2339 intermediate goals; they make packages of files, as specified by...
2340 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
2341 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
2343 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2345 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
2346 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
2348 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
2349 of radix point conditional on precision != 0 or `#' flag specified.
2351 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2353 Fix MinGW-Bug [2160227]
2354 Eliminate conflicting declarations and implementations of scalb().
2356 * moldname.def.in (scalb): Comment out of EXPORTS list.
2357 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
2358 with GCC's built-in declaration.
2360 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
2362 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
2364 * mingwex/Makefile.in: Ditto.
2365 * profile/Makefile.in: Ditto.
2366 * configure.in: Record mingw front-end for building under Cygwin.
2367 * mingwex/configure.in: Ditto.
2368 * profile/configure.in: Ditto.
2369 * configure: Regenerate.
2370 * mingwex/configure: Ditto.
2371 * profile/configure: Ditto.
2373 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2375 Use de-facto standard Makefile goals to invoke test suite.
2377 * Makefile.in: Some minor formatting adjustments.
2378 (test_headers): Unconventionally named goal renamed to...
2379 (check-headers): ...this; make it a prerequisite of...
2380 (check): ...this new conventionally named goal.
2382 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2384 Make strtod() inline definition C89 compliant.
2385 (Issue reported by Ilya Shestopalov and Ian Puleston)
2386 (Correction identified by Danny Smith)
2388 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
2389 reformat inline function definition.
2391 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2393 * include/_mingw.h: Increment version to 3.15.1 and introduce
2394 __MINGW32_PATCHLEVEL variable.
2396 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2398 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
2399 (Reported by Christian Franke)
2401 * mingwex/getopt.c (optind): Make global variable value conform to
2402 behaviour specified by POSIX; do not use it for internal state in...
2403 (getopt_parse): ...this static function; use...
2404 (optbase): ...this new static local variable instead.
2405 (getopt_resolved): Update `optind' as required.
2407 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2409 Improve package identification in configure script.
2411 * configure.ac (AC_INIT): Redefine parameters...
2412 (PACKAGE_NAME): Set to `MinGW Runtime'.
2413 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
2414 (PACKAGE_TARNAME): Set to `mingwrt'.
2415 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
2416 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
2417 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
2419 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
2420 (PACKAGE_TARNAME): ...this.
2422 * configure: Regenerated.
2424 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2426 Fix MinGW-Bug [2125708].
2427 (Reported by Alexandr Zamaraev).
2429 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
2430 not wanted here; remove it; replace it by...
2431 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
2432 (_invalid_parameter_handler): ...this function typedef.
2434 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
2436 * Makefile.in: Don't include host_os as part of snapshot filename.
2438 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2440 Fix MinGW-Bug [2119504].
2441 (Reported by Peiyuan Song).
2443 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
2444 (*retindex): ...this already correctly assigned return variable...
2445 (opt[index].val): ...with this; this should have been assigned to...
2446 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
2448 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2450 Fix MinGW-Bug [2117379].
2451 (Reported by Peiyuan Song).
2453 * include/stdio.h (__argv): Replace all references in function
2454 prototype argument lists and inline function local variables, with ...
2455 (__local_argv): ...this, to avoid potential conflict with ...
2456 * include/stdlib (__argv): ...this #defined macro.
2458 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2460 * include/_mingw.h: Increment version to 3.15.
2462 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2464 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
2465 naming standard for Cygwin.
2467 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2469 Reimplement getopt.c to add getopt_long_only() function.
2471 (N.B. this reimplementation removes support for BSD/Mac-OS-X
2472 `optreset' nonsense; user code should set `optind = 0' instead,
2473 to reinitialise option scanning).
2475 * mingwex/getopt.c: Delete all content; reimplement it.
2476 * include/getopt.h: Likewise.
2478 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
2479 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
2481 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2483 Implement conditional replacement for printf() family functions.
2485 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
2486 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
2487 flag for use in user specified __MINGW_FEATURES__ attribute.
2488 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
2489 currently unused: reserved as components of...
2490 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
2491 a __MINGW_FEATURES__ enhancement to setlocale().
2493 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
2494 (__mingw_fprintf, __mingw_vfprintf): Likewise.
2495 (__mingw_sprintf, __mingw_vsprintf): Likewise.
2496 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
2497 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
2498 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
2499 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
2500 usage; link to DLL import stub, importing from MSVCRT.
2501 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2502 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2503 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
2504 locally defined static stub implementation.
2505 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2506 __mingw_fprintf and __mingw_sprintf respectively.
2507 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
2508 static inline implementation for C++ and GNU C, or locally defined
2509 static stub otherwise.
2510 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2511 __mingw_vfprintf and __mingw_vsprintf respectively.
2513 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2515 Avoid access violations, passing NULL to printf( "...%s..." );
2516 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
2518 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
2519 for argument value, if caller passes a NULL pointer.
2520 (__pformat_wcputs): Likewise, substitute L"(null)".
2522 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2524 Add missing dependencies for building libmingwex.a.
2526 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
2527 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
2528 (pformat.h): ...this.
2530 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2532 Add replacements for remaining members of printf() family.
2534 * mingwex/stdio/printf.c: New file.
2535 * mingwex/stdio/fprintf.c: New file.
2536 * mingwex/stdio/sprintf.c: New file.
2537 * mingwex/stdio/vprintf.c: New file.
2538 * mingwex/stdio/vfprintf.c: New file.
2539 * mingwex/stdio/vsprintf.c: New file.
2541 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2542 (STDIO_OBJS): Add their corresponding object files.
2544 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2546 Replace __mingw_snprintf() with new generic family implementation;
2547 likewise, replace __mingw_vsnprintf().
2549 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
2550 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
2551 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2552 (GDTOA_DISTFILES): Remove mingw_snprintf.c
2553 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
2554 (GDTOA_OBJS): Remove mingw_snprintf.o
2555 (PFORMAT_CFLAGS): New macro; define it, as required by...
2556 (pformat.o): ...this new explicit build target.
2557 (snprintf.o, vsnprintf.o): Declare prerequisites.
2559 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
2561 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2563 Lay foundations for new printf() function family implementation.
2565 * ofmt_stub.s: New file; implement forward compatibility stub for...
2566 (_get_output_format): ...this MSVCR80.DLL and later function.
2568 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
2569 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
2570 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
2571 (lib%.a): Include ofmt_stub.o when import library does not already
2572 advertise availability of the _get_output_format() function;
2573 Add alias stubs for MINGW_REPL_FUNCS, such that...
2574 (__msvcrt_printf): ...is an alias for Microsoft's printf().
2575 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
2576 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
2577 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
2578 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
2579 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
2580 (clean): Add msvcr*.def.
2582 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
2583 * configure: Regenerated.
2585 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2587 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
2588 (_imp____mb_cur_max_dll): Likewise.
2590 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
2592 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
2593 * include/wchar.h (swprintf, vswprintf): Likewise.
2595 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2597 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
2598 (_get_output_format, _set_output_format): Add references.
2600 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
2601 (_get_output_format, _set_output_format): Declare prototypes.
2602 (_TWO_DIGIT_EXPONENT): Define.
2603 Some other minor formatting adjustments.
2605 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2607 [mingw-Bugs-1801641]
2608 * include/wchar.h (_wfdopen): Const-ify second arg.
2609 * include/stdio.h (_wfdopen): Likewise.
2610 Thanks to <tdragon at users dot sourceforge net>
2612 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2614 Avoid precision errors in round(), lround() and llround() functions.
2616 * mingwex/math/round_generic.c: New file; it replaces...
2617 * mingwex/math/round.c: ...this; delete it.
2618 * mingwex/math/roundf.c: ...and this; ditto.
2619 * mingwex/math/roundl.c: ...and this; ditto.
2621 * mingwex/math/lround_generic.c: New file; it replaces...
2622 * mingwex/math/lround.c: ...this; delete it.
2623 * mingwex/math/lroundf.c: ...and this; ditto.
2624 * mingwex/math/lroundl.c: ...and this; ditto.
2625 * mingwex/math/llround.c: ...and this; ditto.
2626 * mingwex/math/llroundf.c: ...and this; ditto.
2627 * mingwex/math/llroundl.c: ...and this; ditto.
2629 * mingwex/math/round_internal.h: New file; it provides generic common
2630 code, which is shared by `round_generic.c' and `lround_generic.c'; the
2631 implementation is based on techniques suggested by Danny Smith and
2634 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
2635 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
2636 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
2637 `round_generic.c' and `lround_generic.c'.
2638 (MATH_OBJS): Factor out files listed in...
2639 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
2640 macros; define them; specify dependencies and build rules; add to...
2641 (LIB_OBJS): ...this list.
2643 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
2645 [ mingw-Bugs-1961893 ]
2646 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
2647 mode to 2 for E format.
2649 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
2651 * include/stdlib.h: Fix strtod under C++.
2653 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
2655 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
2656 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
2658 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
2660 * include/sys/types.h (useconds_t): typedef.
2661 * include/unistd.h (usleep): Add prototype.
2662 * mingwex/usleep.c: New file.
2663 * mingwex/makefile.in: Add usleep source and object.
2665 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2667 Make strtod() conform to C99.
2669 * include/stdlib.h (strtod): Declare this mingwex function, and...
2670 (_strtod): rename this MSVCRT counterpart.
2672 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2674 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2676 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2678 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2680 * include/process.h: Include stdint.h for intptr_t definition.
2681 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2682 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2683 _spawnvpe): Return intptr_t.
2684 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2685 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2687 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2689 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2690 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2691 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2692 _wspawnvp, _wspawnvpe): Return intptr_t.
2694 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2696 * include/wchar.h (fwide): Return success code rather than failure in inline
2698 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2699 code rather than failure.
2701 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2703 * include/math.h (float_t, double_t): Define.
2705 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2707 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2708 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2709 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2711 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2713 * include/complex.h: Don't condition contents on C99 or not
2716 2008-02-01 Brian Dessent <brian@dessent.net>
2718 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2719 the different runtime versions.
2721 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2723 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2724 (mbsinit): Likewise.
2726 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2728 * include/_mingw.h: Increment version to 3.14.
2730 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2732 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
2733 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
2734 * mingwex/math/log10f.S: Correct issue with comments.
2735 * mingwex/math/log10l.S: Ditto.
2736 * mingwex/math/log1p.S: Ditto.
2737 * mingwex/math/log1pf.S: Ditto.
2738 * mingwex/math/log1pl.S: Ditto.
2739 * mingwex/math/log2.S: Ditto.
2740 * mingwex/math/log2f.S: Ditto.
2741 * mingwex/math/log2l.S: Ditto.
2742 * mingwex/math/logf.S: Ditto.
2743 * mingwex/math/logl.S: Ditto.
2745 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
2747 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
2749 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
2751 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
2752 from '_fsize_t' to '__int64' to be consistent with the other ...64
2753 structures and the value set there is 8 bytes not 4. Add guard for both
2754 as the are only used by functions available from 6.1 on.
2756 * include/malloc.h (_HEAP_MAXREQ): Define.
2757 (_aligned_offset_recalloc): Define.
2758 (_aligned_recalloc()): Define.
2760 * include/math.h: fixed a typo in a comment.
2761 (atanhf): Fixed declaration.
2763 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
2764 to '__int64' to be consistent with the other ...64 structures and the value
2765 set there is 8 bytes not 4. Added guard as this function is only used by
2766 functions available from 6.1 on.
2768 * include/sys/stat.h: some members of 'stat' were declared with types with
2769 a prefixed underscore, while the ones without the underscore should have
2770 been used. Added guard to '__stat64' as it is only used by functions
2771 available from 6.1 on. Added the wide character versions of the
2772 exec()/spawn() family for completion
2773 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
2776 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
2777 from 'long' to 'time_t'
2778 (__timeb64): moved declaration of structure directly before the declaration
2779 of the function '_ftime64()', so it is guarded as well
2781 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
2782 before the declaration of the functions using it, so it is guarded as well
2784 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
2786 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
2787 case. Add missing break in 's'/LEN_S case.
2789 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2791 Make snprintf() and vsnprintf() conform to C99.
2793 * include/stdio.h: Add note about incompatibility between...
2794 (snprintf, vsnprintf): These two mingwex functions, and...
2795 (_snprintf, _vsnprintf): these MSVCRT counterparts.
2797 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
2798 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
2800 * mingwex/stdio/snprintf.c: Delete.
2801 * mingwex/stdio/vsnprintf.c: Delete.
2803 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
2804 (vsnprintf): Alias to __mingw_vsnprintf.
2806 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2808 * include/_mingw.h: Increment version to 3.13.
2809 * Makefile.in: Reset CYGRELEASE to 1
2811 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2813 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
2814 resulting from incomplete removal of enclosing `for ...; do ...; done'
2815 loop from compound command; (reported by Greg Chicares).
2817 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2819 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2822 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2824 [mingw-Bugs-1734142]
2825 * include/wchar.h (_wsystem) Declare.
2827 (_wgetenv): Declare.
2828 (_wsearchenv): Declare.
2829 (_wmakepath): Declare.
2830 (_wsplitpath): Declare.
2831 (_wfullpath): Declare.
2832 * include/stdlib.h (_wsystem) Declare.
2833 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
2834 _wfullpath): Move into _WSTDLIB_DEFINED guard.
2835 * include/tchar.h (_tsystem): New UNICODE mapping define.
2837 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
2839 * mingwex/gdtoa/mingw_snprintf.c: New file.
2840 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
2841 (GDTOA_OBJS): Add mingw_snprintf.o.
2843 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
2845 * msvcrt.def.in: Update comment.
2846 Exclude _ctype stub if using msvcr71.dll or newer.
2847 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
2848 * include/wctype.h: Likewise.
2850 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2852 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
2853 *include/dirent.h: Likewise.
2855 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2857 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
2858 * include/conio.h: Likewise.
2859 * include/ctype.h: Likewise.
2860 * include/direct.h: Likewise.
2861 * include/dos.h: Likewise.
2862 * include/errno.h: Likewise.
2863 * include/fenv.h: Likewise.
2864 * include/float.h: Likewise.
2865 * include/inttypes.h: Likewise.
2866 * include/io.h: Likewise.
2867 * include/libgen.h: Likewise.
2868 * include/locale.h: Likewise.
2869 * include/malloc.h: Likewise.
2870 * include/mbctype.h: Likewise.
2871 * include/mbstring.h: Likewise.
2872 * include/process.h: Likewise.
2873 * include/search.h: Likewise.
2874 * include/setjmp.h: Likewise.
2875 * include/signal.h: Likewise.
2876 * include/stdio.h: Likewise.
2877 * include/stdlib.h: Likewise.
2878 * include/string.h: Likewise.
2879 * include/time.h: Likewise.
2880 * include/wchar.h: Likewise.
2881 * include/sys/stat.h: Likewise.
2882 * include/sys/time.h: Likewise.
2883 * include/sys/timeb.h: Likewise.
2884 * include/sys/utime.h: Likewise.
2886 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2888 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2890 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2892 Add POSIX binary tree search API.
2894 * mingwex/tfind.c: New file.
2895 * mingwex/tdelete.c: New file.
2896 * mingwex/tsearch.c: New file.
2897 * mingwex/twalk.c: New file.
2898 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2899 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2900 * include/search.h (tfind): Declare.
2907 (node_t): Define, on condition of _SEARCH_PRIVATE.
2909 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2911 * include/_mingw.h (__MINGW_NOTHROW): Define.
2913 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2915 * include/stdio.h (vsnprintf): Remove inline definition.
2918 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2920 * CRTfmode.c: Nit-pick comment fix.
2922 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2924 * CRTfmode.c: Fix nested comment.
2926 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2928 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2930 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2932 * include/io.h (lseek64) : Add prototype.
2934 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2936 * include/string.h (strcasecmp): Add prototype.
2937 (strncasecmp): Add prototype.
2939 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2941 * Makefile.in (CRT0S): Revert last change.
2942 * CRTfmode.c. Correct comment.
2944 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2946 * Makefile.in (CRT0S): Add back CRTfmode.o.
2948 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2950 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2951 * include/io.h: Likewise.
2953 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2955 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2957 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2959 * include/stdint.h (intptr_t): Fix typo.
2960 Thanks to Charles Wilson for report.
2962 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2964 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2965 Condition on _WIN64.
2966 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2967 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2968 (PTRDIFF_MIN): Define as INTPTR_MIN.
2969 (PTRDIFF_MAX): Define as INTPTR_MAX.
2970 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2971 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2973 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2975 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2976 Cygwin man page location.
2978 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2980 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2981 support Cygwin man page location.
2983 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2985 * Include/_mingw.h: Increment version to 3.12.
2987 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2989 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2991 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2993 * Makefile.in: Tweak srcdist to fix build issue.
2995 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2997 Add --enable-mingw-manpage-transform configure option.
2999 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
3000 * configure.in, Makefile.in: Use it.
3001 * configure: Regenerated.
3003 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
3005 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
3007 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3009 Add manpages for dirname and basename functions.
3011 * man: New directory.
3012 * man/dirname.man: New file; it sources both manpages.
3013 * Makefile.in: Add provisional rules to distribute them.
3015 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3017 * mingwex/basename.c: Make it work with path names containing
3018 multibyte character strings.
3019 * mingwex/dirname.c: Likewise.
3021 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3023 * include/io.h (__mingw_access): New static inline wrapper to restore
3024 pre-Vista 'access (fname, X_OK)' behaviour.
3025 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
3027 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3029 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
3031 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
3033 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
3035 * include/stdio.h (_unlink, unlink): Add prototypes.
3037 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
3039 * include/excpt.h: Replace "_try1" in comments with "__try1".
3041 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
3043 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3044 (ALL_CXXFLAGS): Likewise.
3045 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3046 (ALL_CXXFLAGS): Likewise.
3047 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3048 (ALL_CXXFLAGS): Likewise.
3050 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
3052 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
3054 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
3056 Expose some more msvcr80.dll functions.
3057 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
3058 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
3059 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
3060 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
3062 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3064 Expose some msvcr80.dll functions.
3065 * include/stdlib.h (_set_abort_behavior): Add prototype.
3066 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
3067 _set_abort_behavior mask argument.
3068 (_invalid_parameter_handler): Add typedef.
3069 (_set_invalid_parameter_handler): Add prototype.
3070 * include/stdio.h (_get_printf_count_output): Add prototype.
3071 (_set_printf_count_output): Add prototype.
3072 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
3073 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
3075 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3077 * include/_mingw.h (CRT_INLINE): Correct typo.
3079 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
3081 * include/io.h (X_OK): Define to F_OK.
3083 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
3085 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
3086 unconditionally. Change comment.
3087 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
3089 * include/io.h (rename): Declare.
3092 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3094 * include/libgen.h: New file; required by...
3095 * mingwex/basename.c, mingwex/dirname.c: New files.
3096 * mingwex/Makefile.in (DISTFILES): Add them...
3097 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
3098 (Dependencies): Typo; s/Dependancies/Dependencies/
3100 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
3102 * Makefile.in (VERSION): Let configure define it.
3104 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
3105 * configure.in: Use it.
3106 Correct quoting of autoconf macro arguments throughout.
3107 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
3108 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
3109 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
3110 (AC_CONFIG_FILES): Add, to generate Makefile.
3112 * configure: Regenerated.
3114 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
3116 * Makefile.in: Add aclocal.m4 to source release.
3117 * mingwex/Makefile.in: Ditto.
3118 * profile/Makefile.in: Ditto.
3120 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3122 * Include/_mingw.h: Increment version to 3.11.
3123 * Makefile.in: Ditto.
3125 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3127 [ mingw-Bugs-1590623 ]
3128 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
3131 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
3133 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
3134 correctly parenthesized.
3136 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3138 * mingwex/mb_wc_common.h (get_codepage): Get it
3141 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3143 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
3145 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
3147 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
3150 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
3152 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
3155 2006-09-11 Christopher Faylor <cgf@timesys.com>
3157 * Makefile.in: Semi-revert 2006-08-30 change.
3159 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3161 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
3162 (__MINGW_IMPORT): Ansify.
3163 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
3164 __MINGW_ATTRIB_DEPRECATED.
3166 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3168 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
3169 Redundant macros; deleted.
3171 * configure.in (LIB_AC_PROG_CC): Replaced by...
3172 (AC_PROG_CC): ...this.
3174 * configure: Regenerated.
3176 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
3178 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
3179 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
3180 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
3182 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
3184 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
3185 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
3186 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
3187 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
3189 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
3190 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
3191 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
3192 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
3193 * mingwex/wcstold.c: Avoid using strtold internals.
3194 * mingwex/wcstof.c: Rewrite.
3195 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
3196 (GDTOA_OBJS): Add to library.
3197 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
3198 (STDLIB_OBJS): Remove.
3199 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
3200 (Q8_OBJS): Add wcstof.o wcstold.o.
3201 * include/stdlib.h (strtof): Remove inline definition.
3203 * include/wchar.h (wcstof): Remove inline definition.
3205 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
3207 * Makefile.in: Add with_cross_host to allow more granular checks.
3208 Set installation directories accordingly. Override CC setting only
3209 if building a Cygwin target.
3210 * aclocal.m4: Regenerate.
3211 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
3212 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
3213 Test AC_ALLOCA only if building on a native system.
3214 * configure: Regenerate.
3216 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3218 * include/ctype.h: Fix typo.
3220 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3222 * include/ctype.h: Expose iswblank if __cplusplus.
3223 * include/wctype.h: Expose iswblank if __cplusplus.
3225 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3227 * include/ctype.h: Remove stray ')';
3229 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3231 * include/ctype.h (_BLANK): Expand comment.
3232 (isblank): Add prototype and inline definition.
3233 (iswblank): Add prototype and inline definition.
3234 * include/wctype.h (iswblank): Add prototype and inline definition.
3235 * mingwex/isblank.c: New file.
3236 * mingwex/iswblank.c: New file.
3237 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
3239 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
3241 * include/math.h (__INFF,__INFL): Remove '#'.
3243 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3245 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
3247 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3249 Support SSE float environment in fenv.h functions.
3250 * cpu_features.c: New file.
3251 * cpu_features.h: New file.
3252 * crt1.c: Include "cpu_features.h".
3253 (__mingw_CRTStartup): Call cpu_features_init().
3254 * Makefile.in (MING_OBJS): Add cpu_features.c.
3255 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
3256 * include/fenv,h ( fenv_t;): Append __mxcsr field.
3257 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
3258 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
3259 (__MXCSR_ROUND_FLAG_SHIFT): New define.
3260 * mingwex/feclearexcept.c: Include "cpu_features.h".
3261 Handle SSE environment.
3262 * mingwex/fegetenv.c: Likewise.
3263 * mingwex/feholdexcept.c: Likewise.
3264 * mingwex/fesetenv.c: Likewise.
3265 * mingwex/fesetexceptflag.c: Likewise.
3266 * mingwex/fesetround.c: Likewise.
3267 * mingwex/fetestexcept.c: Likewise.
3268 * mingwex/feupdateenv.c: Likewise.
3269 * mingwex/fegetround.c: Add comment.
3271 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3273 * Include/_mingw.h: Increment version to 3.10.
3274 * Makefile.in: Ditto.
3276 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3278 * mingwex/math/tgamma.c (SQTPI): Add braces.
3280 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3282 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
3283 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
3285 * mingwex/math/sf_erf.c (erff): Initialize z.
3287 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
3289 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3291 * Include/_mingw.h: Increment version to 3.10.
3292 * Makefile.in: Ditto.
3294 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3296 * include/sys/time.h (struct timezone): Define.
3297 * include/time.h: Correct comment about timezone.
3299 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3301 * configure.in (AC_CONFIG_AUX_DIR): Remove.
3302 * configure: Regenerate.
3304 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
3306 * configure: add srcdir as a possible location for install-sh.
3308 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3310 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
3311 (_topendir): Use it.
3313 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3315 * include/sys/time.h: Add header guard. Add extern "C" bracketing
3317 (gettimeofday): Add prototype.
3318 * mingwex/gettimeofday.c: New file.
3319 * mingwex/makefile.in: Add gettimeofday source and object.
3321 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3323 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
3324 else global library variable.
3325 (HUGEVALF): Likewise.
3326 (HUGEVALL): Likewise.
3327 (INFINITY): Likewise.
3330 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3332 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
3334 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3336 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
3338 2006-05-24 Christopher Faylor <cgf@timesys.com>
3340 * configure.in: Update to newer autoconf.
3341 (thanks to Steve Ellcey)
3342 * mingwex/configure.in: Ditto.
3343 * profile/configure.in: Ditto.
3344 * configure: Regenerate.
3345 * mingwex/configure: Ditto.
3346 * profile/configure: Ditto.
3347 * aclocal.m4: New file.
3348 * mingwex/aclocal.m4: Ditto.
3349 * profile/aclocal.m4: Ditto.
3351 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
3353 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
3354 Use supplied codepage as arg to WideCharToMultiByte.
3356 2006-02-13 Earnie Boyd <earnie@users.sf.net>
3358 * Makefile.in (libmsvcr80.a): Add import lib.
3359 (libmsvcr80d.a): Ditto.
3361 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3363 * Makefile.in: Bump cygwin build number.
3365 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3367 * Include/_mingw.h: Increment version to 3.9.
3368 * Makefile.in: Ditto.
3370 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3372 * include/limits.h (SSIZE_MAX): Define.
3373 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
3375 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
3377 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
3378 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
3380 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3382 * include/stddef.h: Remove.
3383 * include/stdarg.h: Remove.
3385 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3387 * mingwex/complex/csqrt.c (csqrt): The sign of real part
3388 of result is positive when real part of arg == 0;
3389 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
3390 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
3392 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3394 * include/time.h (_time64): Correct prototype.
3396 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
3398 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
3399 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
3400 to non-stop. Use "fnclex" to clear exception flags.
3402 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3404 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
3405 Avoid raising FP exceptions.
3407 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3409 * include/stdlib.h (strtof): Add prototype. Uglify
3410 parameter names in inline definition.
3412 (_Exit): Uglify parameter names in inline definition.
3413 (llabs): Add prototype.
3414 (_set_error_mode): Add prototype and input defines.
3416 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3418 * mingwex/fe*.c: Revert previous changes.
3419 * include/fenv.h: Revert previous changes.
3421 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3423 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
3424 Do not return a value.
3425 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
3426 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
3427 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
3428 * mingwex/fegetenv.c (fegetenv): Likewise.
3429 * mingwex/fesetenv.c (fesetenv): Likewise.
3430 * mingwex/feupdateenv.c (feupdateenv): Likewise.
3431 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
3432 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
3435 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3437 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
3438 getting filelength for SEEK_END.
3440 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3442 * Include/_mingw.h: Increment version to 3.8.
3443 * Makefile.in: Ditto.
3445 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3447 * include/wctype.h (towupper, towlower): Change arg and return value
3449 * include/ctype.h (towupper, towlower): Likewise.
3451 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3453 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
3454 a diagnostic, guarded by #ifdef DEBUG.
3455 (__mingwthr_remove_key_dtor): Likewise.
3457 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
3459 * moldname.def.in (sleep, beep, seterrormode): Remove.
3461 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3463 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
3464 (_MCOUNT_DECL): Use it.
3465 (MCOUNT): Save and restore eax, ecx, edx registers.
3466 * profile/mcount.c (_mcount): ANSI-fy.
3468 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3470 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
3471 guard __MINGW_ATTRIB macro definitions.
3472 * include/math.h (logb[fl]): Don't define inlines for
3473 GCC-4.0+ && __FAST_MATH__.
3474 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
3475 line-continuation backslashes.
3477 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
3479 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
3480 in GNUC version guard.
3482 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
3484 * crt1.c (_gnu_exception_handler): Handle illegal instruction
3485 OS exception as a signal if user has defined a SIGILL handler.
3487 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
3489 * mingwex/math/nexttoward.c: New file.
3490 * mingwex/math/nexttowardf.c: New file.
3491 * mingwex/math/nextafterl.c: Add nexttowardl alias.
3492 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
3494 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
3495 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
3498 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
3500 * mingwex/math/nextafterf.c (nextafterf): Correct
3502 * mingwex/math/nextafterl.c: New file.
3503 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
3504 (MATH_OBJS): Add nextafterl.o.
3505 * include/math.h (nextafterl): Uncomment prototype.
3507 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3509 * mingwex/math/erfl.c: New file.
3510 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
3511 (MATH_OBJS): Add erfl.o.
3512 * include/math.h (erfl, erfcl): Uncomment prototypes.
3514 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
3516 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
3517 #if (WCHAR_MAX <= WCHAR_MIN) is false.
3518 * include/stdint.h (WCHAR_MAX): Likewise.
3519 (WINT_MAX): Likewise.
3521 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
3523 * mingwex/math/signbit.c (__signbit): Make return value
3524 consistent with GCC's __builtin_signbit.
3525 * mingwex/math/signbitf.c (__signbitf): Likewise.
3526 * mingwex/math/signbitf.c (__signbitl): Likewise.
3527 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
3530 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
3532 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
3534 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
3535 Remove unused MBTOWC_FLAGS define.
3537 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
3539 * mingwex/mbrtowc.c: New file.
3540 * mingwex/wcrtomb.c: New file.
3541 * mingwex/btowc.c: New file.
3542 * mingwex/wctob.c: New file.
3543 * mingwex/mb_wc_common.h: New file.
3544 * mingwex/Makefile.in (DISTFILES): Add new files.
3545 (Q8_OBJS): Add new objects.
3546 * include/wchar.h: Adjust comment about mbrtowc() and related
3547 funcions. Add __restrict__ to pointer params in prototypes.
3548 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
3549 arg names from protototypes.
3551 2005-04-23 Wu Yongwei <adah@sh163.net>
3553 * mingwex/dirent.c: Formatting changes.
3554 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
3557 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
3559 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
3561 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
3563 * include/stdio.h (__mingw_fwrite): Change return value to
3565 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
3567 2005-03-15 Hans Leidekker <hans@it.vu.nl>
3569 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
3571 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3573 * include/wctype.h (wctrans): Remove _CRTIMP.
3574 (towctrans): Likewise.
3577 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3579 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
3581 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3583 * mingwex/wctype.c: New file.
3584 * mingwex/wctrans.c: New file.
3585 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
3586 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
3588 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3590 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
3592 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3594 * include/assert.h: Remove header guard. #undef assert macro.
3595 (_assert): Use __MINGW_ATTRIB_NORETURN define.
3597 2005-02-11 Gregory W. Chicares <chicares@cox.net>
3599 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
3600 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
3602 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
3603 * mingwex/math/expm1.c: New file.
3604 * mingwex/math/expm1f.c: New file.
3605 * mingwex/math/expm1l.c: New file.
3607 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3609 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
3610 * include/wchar.h (struct stat): Likewise.
3611 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
3613 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
3615 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3617 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
3618 string is not valid.
3620 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
3622 * include/malloc.h: Add missing return code defines for
3625 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
3627 * include/sys/stat.h (struct __stat64): Change st_size type to
3629 * include/wchar.h (struct __stat64): Change st_size type to __int64.
3631 2005-01-13 Earnie Boyd <earnie@users.sf.net>
3633 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3635 * include/errno.h (ELOOP): Ditto.
3636 * include/_mingw.h: Increment version to 3.7.
3637 * Makefile.in: Ditto.
3639 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3641 * include/tchar.h (_tfreopen): Add UNICODE mappings.
3643 2005-01-11 Earnie Boyd <earnie@users.sf.net>
3645 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3646 lstat): Conditionalize defines for __STRICT_ANSI__.
3648 2005-01-10 Earnie Boyd <earnie@users.sf.net>
3650 * include/errno.h (ELOOP): Add definition.
3652 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
3654 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
3655 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
3656 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
3657 ctanl.c ctanhl.c): New files.
3658 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3659 (COMPLEX_OBJS): Adjust.
3660 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
3661 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
3662 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
3665 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3667 * include/_mingw.h (__int16): Define as short.
3668 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3670 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3672 * include/stdio.h (P_tmpdir): Add define.
3674 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3676 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3678 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3680 * include/_mingw.h: Increment version to 3.6
3681 * Makefile.in: Ditto
3683 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3685 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3686 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3687 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3688 ctanf.c ctanhf.c): New files.
3689 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3690 (COMPLEX_OBJS): Adjust.
3691 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3692 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3693 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3696 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3698 * include/wchar.h (wcsdup): Correct prototype.
3699 * include/string.h (wcsdup): Correct prototype.
3701 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3703 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3705 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3707 * mingwex/math/fastmath.h: New file.
3708 * mingwex/math/asinh.c: New file.
3709 * mingwex/math/asinhf.c: New file.
3710 * mingwex/math/asinhl.c: New file.
3711 * mingwex/math/acosh.c: New file.
3712 * mingwex/math/acoshf.c: New file.
3713 * mingwex/math/acoshl.c: New file.
3714 * mingwex/math/atanh.c: New file.
3715 * mingwex/math/atanhf.c: New file.
3716 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3717 atanh, atanhf, atanhl): Add prototypes.
3718 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3719 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3720 Specify dependency on fastmath.h for new objects.
3722 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3724 * include/sys/stat.h (_S_IFLNK): Add definition.
3731 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3733 * include/sys/stat.h (_S_ISLNK): Add definition.
3736 2004-09-05 Earnie Boyd <earnie@users.sf.net>
3738 * include/_mingw.h: Increment minor version for 3.5 release.
3739 * Makefile.in: Ditto.
3740 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
3742 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3744 * include/malloc.h (__mingw_aligned_offset_malloc,
3745 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
3746 __mingw_aligned_realloc, __mingw_aligned_free): Add
3748 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
3749 tst-aligned-malloc.c.
3750 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
3752 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
3754 * mingwex/mingw-aligned-malloc.c: New file.
3755 * mingwex/tst-aligned-malloc.c: New file.
3757 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3759 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
3760 noreturn attribute. Align stack to 16 bytes before passing args
3762 (mainCRTStartup): Change return to void.
3763 (WinMainCRTStartup): Likewise.
3765 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3767 * profile/COPYING: New file.
3768 * profile/CYGWIN_LICENSE: New file.
3769 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
3771 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3773 * mingwex/fopen64.c: Move.
3774 * mingwex/fseeko64.c: Move.
3775 * mingwex/ftello64.c: Move.
3776 * mingwex/lseek64.c: Move.
3777 * mingwex/stdio/fopen64.c: To here.
3778 * mingwex/stdio/fseeko64.c: To here.
3779 * mingwex/stdio/ftello64.c: To here.
3780 * mingwex/stdio/lseek64.c: To here.
3782 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3784 * profile/gmon.c [__MINGW32__]: Include string.h for
3787 2004-08-08 Christopher Faylor <cgf@timesys.com>
3789 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
3791 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3793 * include/complex.h: Remove __attribute__ ((const)) from
3794 transcendantal and trig functions. Replace __attribute__ ((const))
3795 with __MINGW_ATTRIB_CONST on other declarations.
3797 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3799 * include/wchar.h: Reorganize, avoid including other headers.
3801 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3803 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
3804 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
3807 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3809 * include/dirent.h (struct _wdirent): Remove obsolete comment.
3811 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3813 * include/string.h: Revert 2004-07-26 additions of
3816 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3818 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3819 (__convert_inf_to_maxnum): New.static inline.
3820 (reducl): Use it to protect against Inf - Inf.
3821 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3823 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3825 * mingwex/math/expl.c (expl): Move body of code to new static
3826 function __expl, removing tests for +/-Inf. Extern function
3827 expl calls __expl after testing for max, min log thresholds.
3829 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3831 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
3832 * mingwex/stdio/vfscanf.c: Likewise.
3833 * mingwex/stdio/vswscanf.c: Likewise.
3834 * mingwex/stdio/vfwscanf.c: Likewise.
3836 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3838 * include/_mingw.h: Use only two underscores to uglify
3839 __MINGW_ATTRIB_* macros.
3840 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
3841 * include/setjmp.h: Likewise.
3843 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
3845 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
3847 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3849 * include/string.h: Group wide string functions together,
3850 and protect with _WSTRING_DEFINED.
3852 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3854 * include/_mingw.h (__MINGW_ATTR_*): Replace with
3856 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
3857 __MINGW_ATTRIB_NORETURN, throughout.
3858 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3860 (abs): Declare with __MINGW_ATTRIB_CONST.
3869 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3871 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3873 * include/_mingw.h: Undefine __attribute__.
3874 (__MINGW_ATTR_NORETURN): New define.
3875 (__MINGW_ATTR_CONST): New define.
3876 (__MINGW_ATTR_MALLOC): New define.
3877 (__MINGW_ATTR_PURE): New define.
3878 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3881 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3883 * include/time.h (__time64_t): Add missing ';'.
3885 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3887 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3888 (struct tm): Protect with _TM_DEFINED.
3890 2004-07-17 Christopher Faylor <cgf@timesys.com>
3892 * Makefile.in (CC): Strip inappropriate include file settings from any
3895 2004-07-15 "dgun" <dgun@umpire.com>
3897 * include/complex.h (conj): Correct typo in prototype.
3899 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3901 * include/math.h: Add pragma GCC system_header.
3903 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3905 * mingwex/complex/carg.c: New file.
3906 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3908 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3910 * Makefile.in (INCLUDES): Temporarily revert previous change.
3911 * mingwex/Makefile,in (INCLUDES): Ditto.
3912 * profile/Makefile,in (INCLUDES): Ditto.
3913 * mingwex/Makefile,in: Drop carg.o dependency.
3915 2004-07-14 Christopher Faylor <cgf@timesys.com>
3917 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3919 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3921 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3923 * mingwex/Makefile,in (INCLUDES): Ditto.
3924 * profile/Makefile,in (INCLUDES): Ditto.
3926 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3928 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3930 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3932 * mingwex/Makefile.in: Ditto.
3933 * profile/Makefile.in: Ditto.
3934 * include/limits.h: Change to new file header preamble.
3935 * include/_mingw.h: Increment minor version for 3.4 release.
3936 * Makefile.in: Ditto.
3938 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3940 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3942 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3944 * include/unistd.h (ftruncate): Add inline definition.
3945 * mingwex/ftruncate.c: New file.
3946 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3948 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3950 * include/time.h: Do not include sys/types.h.
3952 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3954 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3955 (MATH_OBJS): Remove pow,o.
3956 * include/math.h (pow): Declare with _CRTIMP.
3957 Add comment on how to avoid excess precision problems.
3959 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3961 * include/stdio.h (__mingw_fseeko64): Add prototype.
3962 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3963 (__mingw_fwrite): Handle huge files.
3965 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3966 Danny Smith <dannysmith@users.sourceforge.net>
3968 * include/stdio.h (fopen64): Add inline function.
3969 (fseeko64): Add prototype.
3970 (ftello64): Add inline function.
3971 * include/io.h (lseek64): Add inline function.
3972 * include/sys/types (off64_t): Add typedef.
3973 (fpos64_t): Add typedef.
3974 * mingwex/fopen64.c: New file.
3975 * mingwex/fseeko64.c: New file.
3976 * mingwex/ftello64.c: New file.
3977 * mingwex/lseek64.c: New file.
3978 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3979 fseeko.64.c, ftello64.c, lseek64.c.
3980 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3982 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3984 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3986 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3988 * DISCLAIMER: Add words about "free to use".
3989 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3990 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3991 (inst_docdir): New variable.
3993 (FLAGS_TO_PASS): Include inst_docdir.
3994 (install-dirs): Add inst_docdir.
3995 (install): Add loop for INSTDOCS.
3996 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3997 section to CONTRIBUTORS file. Remove RCS tags.
3999 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
4001 * mingwex/math/lround.c: Rewrite.
4002 * mingwex/math/lroundf.c: Rewrite.
4003 * mingwex/math/lroundl.c: Rewrite.
4004 * mingwex/math/llround.c: Rewrite.
4005 * mingwex/math/llroundf.c: Rewrite.
4006 * mingwex/math/llroundl.c: Rewrite.
4008 2004-04-20 Earnie Boyd <earnie@users.sf.net>
4010 * CONTRIBUTORS: New file.
4011 * DISCLAIMER: Ditto.
4012 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
4013 section to CONTRIBUTORS file. Remove RCS tags.
4014 * CRTFmode.c: Ditto.
4018 * crtdll.dev: Ditto.
4028 * msvcrt.def.in: Ditto.
4029 * strcasecmp.c: Ditto.
4032 * include/assert.h: Ditto.
4033 * include/conio.h: Ditto.
4034 * include/ctype.h: Ditto.
4035 * include/direct.h: Ditto.
4036 * include/dirent.h: Ditto.
4037 * include/dos.h: Ditto.
4038 * include/errno.h: Ditto.
4039 * include/excpt.h: Ditto.
4040 * include/fcntl.h: Ditto.
4041 * include/float.h: Ditto.
4042 * include/io.h: Ditto.
4043 * include/locale.h: Ditto.
4044 * include/malloc.h: Ditto.
4045 * include/math.h: Ditto.
4046 * include/process.h: Ditto.
4047 * include/setjmp.h: Ditto.
4048 * include/share.h: Ditto.
4049 * include/signal.h: Ditto.
4050 * include/stdio.h: Ditto.
4051 * include/stdlib.h: Ditto.
4052 * include/string.h: Ditto.
4053 * include/tchar.h: Ditto.
4054 * include/time.h: Ditto.
4055 * include/wchar.h: Ditto.
4056 * include/sys/locking.h: Ditto.
4057 * include/sys/param.h: Ditto.
4058 * include/sys/stat.h: Ditto.
4059 * include/sys/timeb.h: Ditto.
4060 * include/sys/types.h: Ditto.
4061 * include/sys/utime.h: Ditto.
4062 * mingwex/dirent.c: Ditto.
4064 2004-04-19 Earnie Boyd <earnie@users.sf.net>
4066 * include/_mingw.h: Revert to primary release 3 and increment minor
4068 * Makefile.in (VERSION): Ditto.
4070 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4072 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
4073 _fmode if not __MSVCRT__.
4075 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
4077 * include/io.h: (_findfirst): Correct prototype.
4079 2004-03-30 Hans Leidekker <hans@it.vu.nl>
4081 * include/io.h: (_findnext, _findclose): Correct prototype.
4083 2004-03-28 Hans Leidekker <hans@it.vu.nl>
4085 * include/math.h (FP_*): Add defines.
4087 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4089 * mingwex/math/round.c: Rewrite.
4090 * mingwex/math/roundf.c: Rewrite.
4091 * mingwex/math/roundl.c: Rewrite.
4093 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4095 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
4096 * include/time.h (__time64_t): Add typedef.
4097 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4098 (_ctime64): Likewise.
4099 (_wctime64): Likewise.
4100 (_gmtime64): Likewise.
4101 (_localtime64): Likewise.
4102 (wcsftime): Move into _WTIME_DEFINED block.
4103 Regroup non-ANSI prototypes.
4104 * include/io.h: Include <stdint.h>.
4105 (__finddata64_t): Add struct definition.
4106 (__wfinddata64_t): Likewise.
4107 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4108 (_findnext64): Likewise.
4109 (_wfindfirst64): Likewise.
4110 (_wfindnext64): Likewise.
4111 * include/sys/timeb.h (__timeb64): Add struct definition.
4112 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4113 * include/sys/utime.h (__utimbuf64): Add struct definition.
4114 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4115 (_futime64): Likewise.
4116 (_wutime64): Likewise.
4117 * include/sys/stat.h (__stat64): Add struct definition.
4118 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4119 (_stat64): Likewise.
4120 (_wstat64): Likewise.
4121 * include/sys/types.h (__time64_t): Add typedef.
4122 * include/wchar.h (__wfinddata64_t): Add structure definition.
4123 (__stat64): Likewise.
4124 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4125 (_wfindfirst64): Likewise.
4126 (_wfindnext64): Likewise.
4127 (_wutime64): Likewise.
4128 (_wstat64): Likewise.
4129 * include/malloc.h (_aligned_free): Add prototype for
4130 __MSVCRT_VERSION__ >= 0x0700.
4131 (_aligned_malloc): Likewise.
4132 (_aligned_offset_malloc): Likewise.
4133 (_aligned_offset_realloc): Likewise.
4134 (_aligned_realloc): Likewise.
4135 * include/string.h (_wcserror): Add prototype for
4136 __MSVCRT_VERSION__ >= 0x0700.
4137 (__wcserror): Likewise.
4138 * include/math.h (_set_SSE2_enable): Add prototype for
4139 __MSVCRT_VERSION__ >= 0x0701.
4141 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4143 * include/stdio.h (_fsopen): Add prototype.
4144 * include/tchar.h (_tfsopen): Add defines.
4145 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
4147 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
4149 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
4150 msvcr70.dll, and msvcr71.dll.
4151 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
4152 using basename of output def file.
4154 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
4156 * include/malloc.h: Remove __STRICT_ANSI__ guard.
4158 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
4160 * include/process.h: Remove the #endif associated with removal of
4161 __STRICT_ANSI__ guard from non-ANSI header.
4163 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4165 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
4166 * include/direct.h: Ditto.
4167 * include/dirent.h: Ditto.
4168 * include/dos.h: Ditto.
4169 * include/excpt.h: Ditto.
4171 * include/io.h: Ditto.
4172 * inlude/mem.h: Ditto.
4173 * include/memory.h: Ditto.
4174 * include/process.h: Ditto.
4175 * inlude/search.h: Ditto.
4176 * include/share.h: Ditto.
4177 * include/unistd.h: Ditto.
4178 * include/sys/fcntl.h: Ditto.
4179 * include/file.h: Ditto.
4180 * include/sys/locking.h: Ditto.
4181 * include/sys/param.h: Ditto.
4182 * include/sys/stat,h
4183 * include/sys/time.h: Ditto.
4184 * include/sys/timeb.h: Ditto.
4185 * include/sys/types.h: Ditto.
4186 * include/sys/unistd.h: Ditto.
4187 * include/sys/utime.h: Ditto.
4189 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
4191 * include/_mingw.h (__UNUSED_PARAM): Define macro.
4192 * include/wchar.h (fwide): Use it.
4195 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4197 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
4198 NetBSD getopt_long.c.
4200 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4202 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
4203 codes and handling of special chars.
4205 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
4207 * include/stdio.h (feof): Add inlined definition.
4210 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4212 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
4213 directly, rather than via scabnl.
4215 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4217 * mingwex/math/powl.c (powl): Return infinity if
4218 extended precision multiplication of x by log2(y)
4221 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
4223 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
4224 (__enan_NI16): Fix another one.
4225 (__enan_NBITS): Tidy.
4227 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4229 * include/stdint.h [__STDC_CONSTANT_MACROS]: Fix for 8 and 16 bit
4230 types. (Thanks to John Maddock for report.)
4232 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
4234 * include/tchar.h (_puttchar): Define.
4236 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
4238 * include/stdio.h:(_fileno): Define macro version after both
4239 fileno and _fileno functions declared.
4241 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
4242 * moldnames.def.in (rmtmp) Add stub.
4244 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
4246 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
4248 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4250 * include/math.h: Guard ISO C99 additions with __cplusplus
4253 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4255 * include/_mingw.h: Define __attribute__((x)) to nothing
4258 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4260 * include/complex.h: New file.
4261 * mingwex/complex: New directory.
4262 * mingwex/complex/cabs.c: New file.
4263 * mingwex/complex/cacos.c: New file.
4264 * mingwex/complex/cacosh.c: New file.
4265 * mingwex/complex/casin.c: New file.
4266 * mingwex/complex/casinh.c: New file.
4267 * mingwex/complex/catan.c: New file.
4268 * mingwex/complex/catanh.c: New file.
4269 * mingwex/complex/ccos.c: New file.
4270 * mingwex/complex/ccosh.c: New file.
4271 * mingwex/complex/cexp.c: New file.
4272 * mingwex/complex/cimag.c: New file.
4273 * mingwex/complex/clog.c: New file.
4274 * mingwex/complex/cpow.c: New file.
4275 * mingwex/complex/cproj.c: New file.
4276 * mingwex/complex/creal.c: New file.
4277 * mingwex/complex/csin.c: New file.
4278 * mingwex/complex/csinh.c: New file.
4279 * mingwex/complex/csqrt.c: New file.
4280 * mingwex/complex/ctan.c: New file.
4281 * mingwex/complex/ctanh.c: New file.
4282 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
4285 (COMPLEX_OBJS): New list of objects.
4286 (LIB_OBJS): Include it in the library.
4288 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4290 * include/math.h (cabs): Remove non-ISO prototype.
4292 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4294 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
4295 Use GCC __builtin's if available.
4296 (INFINITY, INFINITYF, INFINITYL): Likewise.
4298 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4300 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
4301 beyond approximation limit.
4302 * mingwex/math/sf_erf.c (erff): Likewise.
4304 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
4306 * include/stdio.h (getc): Cast result to unsigned char before
4309 (getchar): Likewise.
4310 (putchar): Likewise.
4311 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
4313 2003-10-10 Earnie Boyd <earnie@users.sf.net>
4315 * include/_mingw.h: Increment version to 3.2.
4316 * Makefile.in: Ditto.
4318 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4320 * include/sys/types.h: Revert last change.
4322 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4324 * include/sys/types.h (ssize_t): Correct the definition.
4326 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4328 * include/stdio.h (_filbuf): Add prototype.
4329 (_flsbuf): Add prototype.
4330 (getc): Add inline version.
4332 (getchar): Likewise.
4333 (putchar): Likewise.
4335 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4337 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
4340 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
4342 * include/stdlib.h: Guard non-ISO functions with
4343 !__STRICT_ANSI__, throughout.
4345 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4347 * include/io.h (_fileno): Remove prototype.
4349 (FILENAME_MAX): Define, if needed.
4350 Don't include <stdio.h>.
4351 * include/stdio.h (FILENAME_MAX): Protect against
4353 (_fileno): Define macro implementation.
4356 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4358 * include/inttypes.h: Include _mingw.h.
4360 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4362 * include/_mingw.h (__CRT_INLINE): Define.
4363 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
4365 * include/inttypes.h: Likewise.
4366 * include/math.h: Likewise.
4367 * include/stdio.h: Likewise.
4368 * include/stdlib.h: Likewise.
4369 * include/string.h: Likewise.
4370 * include/wchar.h: Likewise.
4371 * include/wctype.h: Likewise.
4373 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
4375 * mingwex/dirent.c (_topendir): Allocate enough memory for
4376 DIR struct in UNICODE case too.
4378 2003-09-15 Earnie Boyd <earnie@users.sf.net>
4380 * include/_mingw.h: Increment version to 3.2.
4381 * Makefile.in: Ditto.
4383 2003-07-03 Earnie Boyd <earnie@users.sf.net>
4385 * config.guess, config.sub: Update with versions from ftp.gnu.org.
4387 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4389 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
4390 * mingwex/math/truncf.c (truncf): Likewise.
4391 * mingwex/math/truncl.c (truncl): Likewise.
4392 * mingwex/math/modff.c (modff): Likewise.
4393 * mingwex/math/modfl.c (modfl): Likewise.
4395 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4397 * include/search.h: New file.
4398 * include/stdlib.h: Add comment about qsort, bsearch in
4400 * test_headers.c: Include search.h.
4401 * moldname.def.in (lfind, lsearch): Add.
4403 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4405 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
4406 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
4407 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
4409 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4411 * include/_mingw.h (small, hyper): Change to __small and __hyper to
4412 avoid user space name conflicts.
4414 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4416 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
4417 Note: Also added to w32api/include/basetyps.h.
4418 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
4419 Rename to Small (case difference).
4421 2003-06-18 Earnie Boyd <earnie@users.sf.net>
4423 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
4424 * mingwex/dirent.c: Modifications througout to fill d_name array.
4425 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
4426 libmsvcr71, including debug versions.
4427 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
4429 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
4431 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
4432 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
4434 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
4436 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
4438 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
4440 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
4442 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
4443 but still protect inline definition with __STRICT_ANSI__.
4445 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
4447 * string_old.c: Remove, splitting into...
4448 * strcasecmp.c: New file.
4449 * strncasecmp.c: New file.
4450 * wscmpi.c : New file.
4451 * ctype_old.c: Remove, splitting into...
4452 * isascii.c: New file.
4453 * iscsym.c: New file.
4454 * iscsymf.c: New file.
4455 * toascii.c: New file.
4456 * Makefile.in (MOLD_OBJS): Adjust.
4457 (SRCDIST_FILES): Adjust.
4459 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
4461 * include/math.h (fabs) : Remove inline definition.
4465 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4467 * include/_mingw.h: Change version to 3.0
4468 * Makefile.in: Ditto.
4470 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4472 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
4473 * mingwex/configure.in (W32API_INCLUDE): Ditto.
4474 * profile/configure.in (W32API_INCLUDE): Ditto.
4476 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4478 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
4479 of multiply defined symbols if the symbols is defined locally. E.G.:
4480 A local definition of malloc causes this problem.
4481 * configure: Regenerate.
4482 * profile/Makefile.in (W32API_INCLUDE): New variable.
4483 (ALL_CFLAGS): Use W32API_INCLUDE value.
4484 (ALL_CXXFLAGS): Ditto.
4485 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
4486 Thanks to Jeff Bonggren <jbon@users.sf.net>.
4487 * profile/configure.in (W32API_INCLUDE): Set default value.
4488 * profile/configure: Regenerate.
4489 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
4490 (ALL_CFLAGS): Use W32API-INCLUDE value.
4491 (ALL_CXXFLAGS): Ditto.
4492 * mingwex/configure.in (W32API_INCLUDE): Set default value.
4493 * mingwex/configure: Regenerate.
4495 2003-05-05 Earnie Boyd <earnie@users.sf.net>
4497 * Makefile.in (W32API_INCLUDE): New variable.
4498 (ALL_CFLAGS): Use W32API_INCLUDE value.
4499 (ALL_CXXFLAGS): Ditto.
4500 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
4501 (W32API_INCLUDE): Set default value.
4502 * configure: Regenerate.
4504 2003-04-11 Earnie Boyd <earnie@users.sf.net>
4506 * configure.in (LIBM_A): Define for cygwin target.
4507 * configure (LIBM_A): Ditto.
4509 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
4511 * include/time.h (strftime): Remove duplicate declaration.
4513 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4515 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
4517 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4519 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
4520 * mingwex/strtoimax.c (strtoimax): Likewise.
4521 * mingwex/wcstoimax.c (wcstoimax): Likewise.
4522 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
4523 * mingwex/fesentenv.c: Include float.h.
4524 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
4526 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
4528 * mingwex/math/tgammal.c: Likewise.
4530 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4532 * include/utime.h: New file, forwarding to sys/utime.h.
4534 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4536 * include/sys/param.h (MAXPATHLEN): Define.
4538 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4540 * include/tchar.h: Ansi-fy a comment.
4542 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4544 * profile/profile.h (mcount): Use __builtin_return_address
4545 rather than inline __asm statements.
4546 * profile/Makefile.in: Remove special rule for mcount.o
4547 Specify dependencies for mcount.o profil.o gmon.o.
4549 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4551 * include/stdlib.h (qsort): Remove const from first parm.
4552 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
4554 2003-03-03 Christopher Faylor <cgf@redhat.com>
4556 * mingwex/getopt.c: Refresh from NetBSD sources.
4558 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
4560 * mingwex/getopt.c: New file, copied from cygwin srcs.
4561 * include/getopt.h: New file, copied from cygwin srcs.
4562 * include/unistd.h: Include getopt.h.
4563 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
4564 (POSIX_OBJS): Add getopt.o.
4566 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
4568 * include/stdio.h (vscanf): Add prototype.
4574 * include/wchar.h (vwscanf): Add prototype.
4577 * mingwex/snprintf.c: Move to mingwex/stdio.
4578 * mingwex/vsnprintf.c: Ditto.
4579 * mingwex/snwprintf.c: Ditto.
4580 * mingwex/vsnwprintf.c: Ditto.
4581 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
4582 (STDIO_DISTFILES): Add.
4583 (DISTFILES): Adjust.
4584 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
4588 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
4590 * mingwex/stdio: New directory
4591 * mingwex/stdio/vfscanf.c: New file.
4592 * mingwex/stdio/vfwscanf.c: New file.
4593 * mingwex/stdio/vscanf.c: New file.
4594 * mingwex/stdio/vsscanf.c: New file.
4595 * mingwex/stdio/vswscanf.c: New file.
4596 * mingwex/stdio/vwscanf.c: New file.
4598 2003-02-25 Earnie Boyd <earnie@users.sf.net>
4600 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
4601 (libmsvcrt40.a): Ditto.
4603 2003-02-21 Earnie Boyd <earnie@users.sf.net>
4605 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
4607 * Makefile.in (libmsvcrtd.a): Add target library.
4608 (libmoldnamed.a): Ditto.
4609 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
4611 ($(srcdir)): Remove explicit reference for depencies of object targets.
4612 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
4613 msvcrt20.def, msvcrt40.def: Remove.
4614 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
4616 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
4618 * Makefile.in: Make sure libmingwex.a from current build tree is used.
4620 2003-02-14 Christopher Faylor <cgf@redhat.com>
4622 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
4623 ensure -mno-cygwin where appropriate. Filter out -O2.
4625 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
4627 * profile/Makefile.in (mcount.o): Use -O1 optimization
4630 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4632 * include/math.h: Remove _CRTIMP from pow() prototype,
4633 unless __NO_ISOCEXT.
4635 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4637 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
4639 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4641 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
4642 __declspec(dllimport) supported.
4643 (__cdecl): Define if not already defined.
4644 (__stdcall): Likewise.
4645 * include/dirent.h: Qualify fuctions with __cdecl.
4646 * include/fenv.h: Likewise.
4647 * include/inttypes.h: Likewise.
4648 * include/assert.h: Qualify fuctions with __cdecl. Qualify
4649 CRT dll imports with _CRTIMP.
4650 * include/conio.h: Likewise.
4651 * include/ctype.h: Likewise.
4652 * include/direct.h: Likewise.
4653 * include/dos.h: Likewise.
4654 * include/errno.h: Likewise.
4655 * include/float.h: Likewise.
4656 * include/io.h: Likewise.
4657 * include/locale.h: Likewise.
4658 * include/malloc.h: Likewise.
4659 * include/math.h: Likewise.
4660 * include/mbctype.h: Likewise.
4661 * include/mbstring.h: Likewise.
4662 * include/process.h: Likewise.
4663 * include/setjmp.h: Likewise.
4664 * include/signal.h: Likewise.
4665 * include/stdio.h: Likewise.
4666 * include/stdlib.h: Likewise.
4667 * include/string.h: Likewise.
4668 * include/time.h: Likewise.
4669 * include/wchar.h: Likewise.
4670 * include/wctype.h: Likewise.
4671 * include/sys/stat.h: Likewise.
4672 * include/sys/timeb.h: Likewise.
4673 * include/sys/utime.h: Likewise.
4675 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4676 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4678 * include/stdio.h (__VALIST): Guard against prior definition.
4680 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4682 * include/_mingw.h: Change version to 3.0
4683 * Makefile.in: Ditto.
4685 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4687 * include/stdlib.h: Make words after #endif a comment.
4689 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4691 * include/locale.h: Include stddef.h for definition of NULL.
4693 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4695 * include/math.h (tgamma): Correct typo in comment.
4697 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4699 * mingwex/mingw-fseek.c (INLINE): Remove define.
4700 (__mingw_is_win9x): Remove static inline function.
4701 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4703 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4705 * mingwex/math/llround.c: Correct function name and
4706 change return value to long long.
4708 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4710 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4711 (iswascii): Likewise. Correct mask.
4712 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4715 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4717 * include/stdlib.h (_osver, _winver, _winmajor,
4718 _winminor): Declare as direct imports from dll if
4719 __DECLSPEC_SUPPORTED.
4721 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4723 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4724 * pseudo-reloc-list.c: New file.
4725 * crt1.c (_pei386_runtime_relocator): Declare.
4726 (__mingw_CRTStartup): Call it.
4727 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4728 (DllMainCRTStartup): Call it.
4729 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
4732 2003-01-01 Egor Duda <deo@logos-m.ru>
4734 * pseudo-reloc.c: New file.
4736 2002-12-20 Earnie Boyd <earnie@users.sf.net>
4738 * include/_mingw.h: Increment version to 2.4.
4741 2002-12-12 Earnie Boyd <earnie@users.sf.net>
4743 * include/malloc.h (_alloca): Add definition.
4746 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
4748 * mingwex/math/s_erf.c: New file.
4749 * mingwex/math/sf_erf.c: New file.
4750 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4751 (MATH_OBJS): Add new objects.
4752 * include/math.h (erf[f]): Add prototypes.
4753 (erfc[f]): Add prototypes.
4755 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
4757 * include/math.h: Add traditional/XOPEN math constants.
4759 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
4761 * mingwex/math/lgamma.c: New file.
4762 * mingwex/math/lgammaf.c: New file.
4763 * mingwex/math/lgammal.c: New file.
4764 * mingwex/math/tgamma.c: New file.
4765 * mingwex/math/tgammaf.c: New file.
4766 * mingwex/math/tgammal.c: New file.
4767 * mingwex/math/cephes_mconf (polevlf): Add float version.
4769 Define _CEPHES_USE_ERRNO.
4770 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4771 (MATH_OBJS): Add new objects.
4772 * include/math.h (lgamma[fl]): Add prototypes.
4773 (tgamma[fl]): Add prototypes.
4775 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
4777 * mingwex/strtold.c: New file.
4778 * mingwex/wcstold.c: New file.
4779 * mingwex/ldtoa.c: New file.
4780 * mingwex/math/cephes_emath.h: New file.
4781 * mingwex/math/cephes_emath.c: New file.
4782 * mingwex/Makefile.in (DISTFILES): Add new files.
4783 (MATH_DISTFILES): Ditto.
4784 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
4785 (MATH_OBJS): Add cephes_emath.o.
4786 (LIB_OBJS): Add $(STDLIB_OBJS).
4787 * include/stdlib.h (strtold, wcstold): Add prototypes.
4788 * include/wchar.h (wcstold): Add prototype.
4790 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
4792 * include/math.h (sqrt): Remove inline definition.
4793 (sqrtf): Replace inline definition with prototype.
4795 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
4796 argument less than zero.
4797 * mingwex/math/sqrtf.c (sqrtl): Likewise.
4799 2002-10-30 Guido Serassio <serassio@libero.it>
4801 * include/stdio.h (_getmaxstdio): Add prototype.
4802 (_setmaxstdio): Likewise.
4804 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
4806 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
4808 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4810 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
4812 Define WIN32_MEAN_AND_LEAN before including windows.h
4813 * include/stdlib.h (_fmode): Protect declaration as dllimported
4814 variable with __IN_MINGW_RUNTIME.
4816 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4818 * crt1.c: Include stdlib.h.
4820 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4822 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4823 (MINGW_OBJS): Add txtmode.o.
4824 (SRCDIST_FILES): Add txtmode.c binmode.c.
4825 crt1.c: Don't include fcntrl.h, stdlib.h.
4826 (_fmode): Declare, without dllimport attribute.
4827 (__p__fmode): Declare access function for dll's _fmode.
4828 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
4830 * txtmode.c: New file.
4831 * binmode.c: New file.
4832 * samples/fmode/test2.c: New file.
4833 * samples/fmode/jamfile: Add test2.exe target.
4835 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4837 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
4838 macros work with C89.
4839 (INTMAX_C, UINTMAX_C): Likewise.
4841 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4843 * include/string.h (strcasecmp): Make extern __inline__.
4844 (strncasecmp): Likewise.
4845 (wcscmpi): Likewise.
4847 2002-10-08 Heiko Gerdau <hg@technosis.de>
4849 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
4850 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
4853 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4855 * mingwex/math/powil.c: Rename powil to __powil.
4856 * mingwex/math/powl.c: Adjust declaration and call
4857 to __powil. Remove comment on powil.
4858 * mingwex/math/powi.c: New file.
4859 * mingwex/math/powif.c: New file.
4860 * mingwex/math/pow.c: New file.
4861 * mingwex/math/cephes_mconf.h. Add double and float
4862 versions of constants.
4863 (polevl): Add double precision function.
4865 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4867 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4869 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4871 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4872 (_imp____mbcur_max_dll): Likewise.
4874 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4876 * include/fcntl.h (_fmode): Remove declarations and
4877 compatibility defines.
4878 (_setmode, setmode): Remove prototypes.
4879 * include/stdlib (_fmode): Add declarations and
4880 compatibility defines. Change type to int.
4881 * include/io.h (_setmode, setmode): Add prototypes.
4882 * samples/fmode/all.c: Adjust includes.
4883 * samples/fmode/test.c: Likewise.
4884 * crt1.c (_CRT_fmode): Declare as int.
4885 * CRTfmode.c (_CRT_fmode): Likewise.
4887 * include/stdlib: Remove comment about MB_CUR_MAX.
4889 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4891 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4892 (_imp____mbcur_max_dll): Likewise.
4894 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4896 * mingwex/math/files.txt: Remove inadvertantly added file.
4898 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4900 * include/string.h (_strerror): Move into #ifndef
4901 __STRICT_ANSI__ block.
4903 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4905 * include/time.h (__need_NULL): Define before including
4906 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4908 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4910 * include/stdio.h: Correct comment about directory separator.
4912 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4914 * include/sys/time.h (timeval): Add struct definition and
4915 associated macros (copied from w32api/include/winsock.h).
4917 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4919 * include/_mingw.h: Increment version to 2.3.
4922 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4924 * mingwex/fegetenv.c: Change to \n line endings.
4925 * mingwex/vsnprintf.c: Ditto.
4926 * mingwex/vsnwprintf.c: Ditto.
4928 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4930 * mingwex/math/hypotl.c: Replace with version based on cephes
4933 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4935 * include/sys/param.h: Add ENDIAN defines.
4936 * test_headers.c: Include sys/param.h.
4938 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4940 * test_headers.c: Don't include varargs.h.
4941 * Makefile.in (test_headers): Don't use -std=xx
4944 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4946 * include/sys/param.h: New File.
4948 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4950 * include/math.h (asm): Change to __asm__ throughout.
4951 Expose ISO C99 functions if __GLIPCPP__.
4952 (hypotf): Use hypot, not _hypot in stub.
4954 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4956 * include/tchar.h: Ansi-fy another comment.
4958 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4960 * include/tchar.h: Ansi-fy comment.
4962 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4964 * test_headers.c : New file.
4965 * Makefile.in (test_headers): New target, using it,
4966 (SRCDIST_FILES): Distribute it.
4968 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4970 * include/_mingw.h: Increment version to 2.2.
4973 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4975 * include/unistd.h: Add include of process.h.
4977 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4979 * include/stdio.h (_fcloseall): Add prototype.
4981 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4983 * include/tchar.h (_tfdopen): Correct typo.
4985 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4987 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4988 nextafter): Add non-underscored stubs.
4989 * moldname-msvcrt.def: Regenerate.
4990 * moldname-crtdll.def: Regenerate.
4991 * mingwex/math: New directory.
4992 * mingwex/rint.c: Move to mingwex/math.
4993 * mingwex/rintf.c: Ditto.
4994 * mingwex/rintl.c: Ditto.
4995 * mingwex/round.c: Ditto.
4996 * mingwex/roundf.c: Ditto.
4997 * mingwex/roundl.c: Ditto.
4998 * mingwex/rint.c: Ditto.
4999 * mingwex/rintf.c: Ditto.
5000 * mingwex/rintl.c: Ditto.
5001 * mingwex/trunc.c: Ditto.
5002 * mingwex/truncf.c: Ditto.
5003 * mingwex/truncl.c: Ditto.
5004 * mingwex/signbit.c: Ditto.
5005 * mingwex/signbitf.c: Ditto.
5006 * mingwex/signbitl.c: Ditto.
5007 * mingwex/copysignl.S: Ditto.
5008 * mingwex/fdim.c: Ditto.
5009 * mingwex/fdimf.c: Ditto.
5010 * mingwex/fdiml.c: Ditto.
5011 * mingwex/fmin.c: Ditto.
5012 * mingwex/fminf.c: Ditto.
5013 * mingwex/fminl.c: Ditto.
5014 * mingwex/fmax.c: Ditto.
5015 * mingwex/fmaxf.c: Ditto.
5016 * mingwex/fmaxl.c: Ditto.
5017 * mingwex/fma.c: Ditto.
5018 * mingwex/fmaf.c: Ditto.
5019 * mingwex/fmal.c: Ditto.
5020 * mingwex/fpclassify.c: Ditto.
5021 * mingwex/fpclassifyl.c: Ditto.
5022 * mingwex/fpclassifyl.c: Ditto.
5023 * mingwex/isnan.c: Ditto.
5024 * mingwex/isnanf.c: Ditto.
5025 * mingwex/isnanl.c: Ditto.
5026 * mingwex/fucom.c: Ditto.
5027 * mingwex/fp_consts.c: Ditto. Split out float and long double
5029 * mingwex/math_stubs.c: Remove.
5030 * mingwex/log2.c: Remove. Replaced by math/log2.S
5031 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
5032 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
5033 * mingwex/math/acosf.c : New file.
5034 * mingwex/math/acosl.c: New file.
5035 * mingwex/math/asinf.c: New file.
5036 * mingwex/math/asinl.c: New file.
5037 * mingwex/math/atan2f.c: New file.
5038 * mingwex/math/atan2l.c: New file.
5039 * mingwex/math/atanf.c: New file.
5040 * mingwex/math/atanl.c: New file.
5041 * mingwex/math/cbrt.c: New file.
5042 * mingwex/math/cbrtf.c: New file.
5043 * mingwex/math/cbrtl.c: New file.
5044 * mingwex/math/ceilf.S: New file.
5045 * mingwex/math/ceill.S: New file.
5046 * mingwex/math/cephes_ld.h: New file.
5047 * mingwex/math/copysign.S: New file.
5048 * mingwex/math/copysignf.S: New file.
5049 * mingwex/math/cosf.S: New file.
5050 * mingwex/math/coshf.c: New file.
5051 * mingwex/math/coshl.c: New file.
5052 * mingwex/math/cosl.S: New file.
5053 * mingwex/math/exp2.S: New file.
5054 * mingwex/math/exp2f.S: New file.
5055 * mingwex/math/exp2l.S: New file.
5056 * mingwex/math/expf.c: New file.
5057 * mingwex/math/expl.c: New file.
5058 * mingwex/math/fabs.c: New file.
5059 * mingwex/math/fabsf.c: New file.
5060 * mingwex/math/fabsl.c: New file.
5061 * mingwex/math/floorf.S: New file.
5062 * mingwex/math/floorl.S: New file.
5063 * mingwex/math/fmodf.c: New file.
5064 * mingwex/math/fmodl.c: New file.
5065 * mingwex/math/fp_consts.h: Ditto.
5066 * mingwex/math/fp_constsf.c: Ditto.
5067 * mingwex/math/fp_constsl.c: Ditto.
5068 * mingwex/math/frexpf.c: New file.
5069 * mingwex/math/frexpl.S: New file.
5070 * mingwex/math/hypotf.c: New file.
5071 * mingwex/math/hypotl.c: New file.
5072 * mingwex/math/ilogb.S: New file.
5073 * mingwex/math/ilogbf.S: New file.
5074 * mingwex/math/ilogbl.S: New file.
5075 * mingwex/math/ldexpf.c: New file.
5076 * mingwex/math/ldexpl.c: New file.
5077 * mingwex/math/llrint.c: New file.
5078 * mingwex/math/llrintf.c: New file.
5079 * mingwex/math/llrintl.c: New file.
5080 * mingwex/math/llround.c: New file.
5081 * mingwex/math/llroundf.c: New file.
5082 * mingwex/math/llroundl.c: New file.
5083 * mingwex/math/log10f.S: New file.
5084 * mingwex/math/log10l.S: New file.
5085 * mingwex/math/log1p.S: New file.
5086 * mingwex/math/log1pf.S: New file.
5087 * mingwex/math/log1pl.S: New file.
5088 * mingwex/math/log2.S: New file.
5089 * mingwex/math/log2f.S: New file.
5090 * mingwex/math/log2l.S: New file.
5091 * mingwex/math/logb.c: New file.
5092 * mingwex/math/logbf.c: New file.
5093 * mingwex/math/logbl.c: New file.
5094 * mingwex/math/logf.S: New file.
5095 * mingwex/math/logl.S: New file.
5096 * mingwex/math/lrint.c: New file.
5097 * mingwex/math/lrintf.c: New file.
5098 * mingwex/math/lrintl.c: New file.
5099 * mingwex/math/lround.c: New file.
5100 * mingwex/math/lroundf.c: New file.
5101 * mingwex/math/lroundl.c: New file.
5102 * mingwex/math/modff.c: New file.
5103 * mingwex/math/modfl.c: New file.
5104 * mingwex/math/nearbyint.S: New file.
5105 * mingwex/math/nearbyintf.S: New file.
5106 * mingwex/math/nearbyintl.S: New file.
5107 * mingwex/math/nextafterf.c: New file.
5108 * mingwex/math/powf.c: New file.
5109 * mingwex/math/powl.c: New file.
5110 * mingwex/math/powil.c: New file.
5111 * mingwex/math/remainder.S: New file.
5112 * mingwex/math/remainderf.S: New file.
5113 * mingwex/math/remainderl.S: New file.
5114 * mingwex/math/remquo.S: New file.
5115 * mingwex/math/remquof.S: New file.
5116 * mingwex/math/remquol.S: New file.
5117 * mingwex/math/scalbn.S: New file.
5118 * mingwex/math/scalbnf.S: New file.
5119 * mingwex/math/scalbnl.S: New file.
5120 * mingwex/math/sinf.S: New file.
5121 * mingwex/math/sinhf.c: New file.
5122 * mingwex/math/sinhl.c: New file.
5123 * mingwex/math/sinl.S: New file.
5124 * mingwex/math/sqrt.c: New file.
5125 * mingwex/math/sqrtf.c: New file.
5126 * mingwex/math/sqrtl.c: New file.
5127 * mingwex/math/tanf.S: New file.
5128 * mingwex/math/tanhf.c: New file.
5129 * mingwex/math/tanhl.c: New file.
5130 * mingwex/math/tanl.S: New file.
5131 * mingwex/Makefile.in: Adjust VPATH for source files in
5134 Add MATH_DISTFILES and use it to build source distro.
5135 * include/math.h: Add protypes for new functions and
5136 reorganise to reflect ANSI,C99 status.
5138 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
5140 * include/tchar.h (_getts): Define as _getws for _UNICODE.
5141 (_putts): Define as _putws for _UNICODE.
5142 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
5144 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
5146 * include/float.h: #include_next<float.h> before header guard.
5148 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
5150 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
5152 * include/excpt.h (): Include windef.h not windows.h.
5153 * include/fcntl.h (_O_SHORT_LIVED): Add define.
5154 (_chmod): Add prototype.
5155 (_creat): Correct prototype.
5156 (SH_DENY*): Rename defines to _SH_DENY*.
5157 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
5158 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
5159 _IOAPPEND): Add defines.
5160 (_wfindfirst): Correct prototype.
5161 (_wfdopen): Add prototype.
5162 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
5164 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
5166 (_wcsdup): Correct prototype.
5167 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
5168 _mbsncat being in string.h.
5169 * include/wchar.h (_wfindfirst): Correct prototype.
5170 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
5172 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5174 * include/_mingw.h: Increment to version 2.1.
5175 * Makefile.in: Ditto.
5177 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5179 * Makefile.in (conf_prefix): New variable.
5180 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
5181 (bindist): Use dist_prefix.
5183 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
5185 * include/_mingw.h: Increment version to 2.0.
5186 * Makefile.in: Ditto.
5188 Merge in mingwex branch.
5190 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
5192 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
5193 * mingwex/fdim.c: New file.
5194 * mingwex/fdimf.c: New file.
5195 * mingwex/fdiml.c: New file.
5196 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
5198 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
5200 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
5202 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
5204 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
5206 * mingwex/isnanl.c: New file.
5208 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5210 * include/stdint.h: Include <stddef.h> to get wchar_t and wint_t.
5211 (WINT_MAX): Define to ((wint_t)-1).
5213 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5215 * include/wctype.h: Replace 'inline' with '__inline__'.
5216 * include/inttypes.h: Likewise.
5218 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5220 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
5221 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
5223 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5225 * mingwex/snprintf.c: Split out vsnprintf to....
5226 * mingwex/vsnprintf.c: New file.
5227 * mingwex/snwprintf.c: Split out vsnwprintf to...
5228 * mingwex/vsnwprintf.c: New file.
5229 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
5231 2002-05-15 Pascal Obry <obry@gnat.com>
5233 * include/dirent.h (DIR): Change dd_stat type to int.
5236 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
5238 * include/stdio.h (vsnprintf): Change inline to __inline__;
5239 (vsnwprintf): Likewise.
5240 * include/wchar.h (vsnwprintf): Likewise.
5243 (mbsinit): Likewise.
5245 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
5247 Change FP default precison from 53 to 64-bit mantissa.
5249 * Makefile.in (CRT0S): Add CRT_fp8.o.
5250 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
5251 * include/float.h: Replace standard float.h defines with
5252 #include_next<float.h> to use GCC's defines. Adjust comments
5255 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5257 * include/dos.h: Change prefix "__imp_" to "_imp__" for
5258 __GNUC__ without __DECLSPEC_SUPPORTED.
5259 * include/fnctl.h: Likewise.
5260 * include/math.h: Likewise.
5261 * include/stdio.h: Likewise.
5262 * include/stdlib.h: Likewise.
5263 * include/time.h: Likewise.
5264 * include/wctype.h: Likewise.
5265 * include/ctype.h: Likewise.
5267 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5269 Add atexit support for dlls.
5270 * crt1.c (atexit): Force thunk to _imp__atexit.
5271 (_onexit): Force thunk to _imp___onexit.
5272 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
5273 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
5274 (__dll_exit): New function to run atexit-registered functions
5275 and flush output buffers on DLL_PROCESS_DETACH or failed
5277 (atexit): Force use of private atexit table via _dllonexit,
5278 (_onexit): New function. Force use of private atexit table via
5280 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
5281 _imp_<_symbol> is visible in import lib.
5282 * msvcrt20.def: Likewise.
5283 * msvcrt40.def: Likewise.
5284 * crtdll.def: Likewise.
5286 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5288 * include/fenv.h: Change header guard macro to _FENV_H_.
5289 (fenv_t, fexcept_t): Move into block protected by
5291 Cleanup some whitespace.
5292 * include/inttypes.h: Change header guard macro to
5295 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5297 * include/math.h (copysignl): Declare.
5298 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
5299 (MATHOBJS):Add copysignl.o.
5301 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5303 * include/math.h (__signbitl, __isnanl): Declare.
5305 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5307 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
5308 roundl, truncl, fmal, log2l): Declare.
5309 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
5310 || !defined __STRICT_ANSI__.
5311 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
5312 * mingwex/fmin.c (fmin): Likewise.
5313 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
5314 * mingwex/fminf.c (fminf): Likewise.
5315 * mingwex/fmaxl.c: New file.
5316 * mingwex/fminl.c: New file.
5317 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
5318 * mingwex/fpclassifyf.c: New file.
5319 * mingwex/fpclassifyl.c: New file.
5320 * mingwex/rint.c (rintf): Split out to...
5321 * mingwex/rintf.c: New file.
5322 * mingwex/rintl.c: New file.
5323 * mingwex/round.c (roundf): Split out to...
5324 * mingwex/roundf.c: New file.
5325 * mingwex/roundl.c: New file.
5326 * mingwex/trunc.c (truncf): Split out to...
5327 * mingwex/truncf.c: New file.
5328 * mingwex/truncl.c: New file.
5329 * mingwex/signbit.c (signbitf): Split out to...
5330 * mingwex/signbitf.c: New file.
5331 * mingwex/signbitl.c: New file.
5332 * mingwex/fmal.c: New file.
5333 * mingwex/copysignl.S: New file.
5334 * mingwex/log2l.c: New file.
5335 * mingwex/fp_consts.c: Add nanl definition.
5336 Comment out unused constants.
5337 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
5338 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
5339 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
5341 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
5342 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
5343 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
5345 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
5347 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
5349 Make wide char versions of opendir and friends.
5351 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
5353 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
5354 _wseekdir): Add prototypes for wide versions of corresponding
5356 * include/tchar.h; Add _UNICODE mappings for dirent.h
5357 structures and functions.
5358 * mingwex/dirent.c: Make _UNICODE neutral.
5359 * mingwex/wdirent.c: New file to define _UNICODE before
5361 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
5362 (POSIX_OBJS): Add wdirent.o.
5363 (wdirent.o): Specify dependency on dirent.c as well as
5365 * samples/dirent/wtest.c: New file, wide version of test.c.
5367 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5369 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
5370 ensure gcc include dir is searched despite -nostdinc.
5371 * profile/Makefile.in (INCLUDES): Likewise.
5372 * mingwex/Makefile.in (INCLUDES): Likewise.
5373 * include/stdarg.h: Replace with stub that just guards the
5374 real gcc system header with #ifndef RC_INVOKED
5375 * include/varargs.h: Likewise.
5376 * include/stddef.h: Likewise.
5377 * include/stdio.h: Include stdarg.h after defining
5379 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
5380 Replace va_list with __VALIST throughout.
5382 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5384 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
5385 * msvcrt.def (_fpreset): Mark as DATA so that only
5386 _imp___fpreset is exported.
5387 * msvcrt20.def (_fpreset): Likewise.
5388 * msvcrt40.def (_fpreset): Likewise.
5389 * crtdll.def (_fpreset): Likewise.
5390 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
5392 (fpreset): Add alias.
5393 (__CRT_PC): Delete definition. _fpreset does it now.
5394 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
5395 (fpreset): Add alias.
5396 (__CRT_PC): Delete definition.
5397 * moldname.def.in: Comment out fpreset.
5398 * moldname-msvcrt.def: Regenerate.
5399 * moldname-crtdll.def: Regenerate.
5400 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
5401 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
5402 with the _fpreset determined by startup CRT_fp object.
5404 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
5406 * CRT_fp8.c: New file.
5407 * CRT_fp10.c: New file.
5408 * crt1.c (__CRT_PC) Declare.
5409 (__CRT_fesetenv): New static function, using _CRT_PC.
5410 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
5411 (_gnu_exception_handler): Likewise.
5412 * Makefile.in (CRT0S): Add CRT_fp10.o.
5413 (MINGW_OBJS): Add CRT_fp8.o.
5414 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
5415 Add CRT_fp8.o, CRT_fp10.o dependancies.
5416 * include/float.h (_fpreset): Expand comment.
5417 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
5418 (extended precison) environmemt.
5419 (FE_PC53_ENV): New define for MSVCRT default environmemt.
5420 (FE_DFL_ENV): Define as FE_PC53_ENV.
5421 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
5422 precision control for default environment.
5424 * include/math.h: Fix long comment line.
5425 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
5427 * profile/configure: Regenerate.
5429 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
5431 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
5433 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
5435 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
5436 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
5437 (__mingw_fseek): New function to work around Win9x f/lseek bug.
5438 (__mingw_fwrite): Likewise.
5439 (__mingw_is_win9x): New helper function.
5441 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
5442 (__mingw_fseek): New prototype and define to replace fseek.
5443 (__mingw_fwrite): New prototype and define to replace fwrite.
5444 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
5445 * moldname-crtdll.def: Remove CR from end of line.
5446 * moldname-msvcrt.def: Ditto.
5448 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
5450 * profile/configure.in (CRT0S): Configure name of gcrt?.o
5451 based on target, building gcrt0.o for cygwin -mno-cygwin.
5452 * profile/configure: Regenerate.
5453 * profile/Makefile.in (CRT0S): Use name from configure.
5454 (gcrt0.o): New rule.
5455 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
5457 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5459 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
5460 _fpecode): Remove prototypes copied from float.h.
5461 (nan, nanf): Move into block protected against RC_INVOKED
5463 * include/stdlib.h (_Exit): Change from static inline to
5465 * mingwex/_Exit.c : New file.
5466 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
5468 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5470 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
5471 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
5472 (configdirs): Likewise.
5473 (LIBGMON_A): Define for cygwin target as well.
5474 * configure: Regenerate.
5475 * profile/configure.in (THREAD_DLL): Remove define.
5476 (LIBM_A): Remove define.
5477 (LIBGMON_A): Define for cygwin target as well.
5478 * profile/configure: Regenerate.
5479 * profile/makefile.in (install): Install to inst_libdir and
5481 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
5482 (OPTFLAGS): New define.
5483 (ALL_CFLAGS): Add $(OPTFLAGS).
5484 (ALL_CXXFLAGS): Same.
5485 (.c.o:): Remove ALL_CXXFLAGS.
5487 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
5489 * include/stdint.h: Add missing newline at eof.
5490 * include/stdio.h (snprintf): Add prototype.
5491 (vsnprintf): Add prototype and inline definition.
5492 (snwprintf): Add prototype.
5493 (vsnwprintf): Add prototype and inline definition.
5494 * include/wchar.h (snwprintf): Add prototype.
5495 (vsnwprintf): Add prototype and inline definition.
5496 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
5498 * mingwex/snprintf.c: New file.
5499 * mingwex/snwprintf.c: New file.
5501 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
5503 * configure.in: Add mingwex as SUBDIRS and configdirs.
5504 * configure: Regenerate.
5505 * Makefile.in (MINGW_OBJS): Remove dirent.o.
5506 (SRC_DIST_FILES): Remove dirent.c.
5508 * include/stdlib.h (_Exit): Add static inline
5510 (struct lldiv_t): Define.
5511 (lldiv): Add prototype.
5512 (llabs): Add extern inline function.
5513 (strtoll,strtoull): Add prototypes.
5514 (wcstol, wcstoul, wcstod): Group together.
5515 (strtof, wcstof): Add extern inline definitions.
5516 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
5517 and extern inline definitions.
5518 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
5519 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
5521 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
5522 (wcstof): Add extern inline definition.
5523 * include/math.h (nan, nanf): Add prototypes.
5524 (NAN, INFINITE): Define constants.
5525 (fpclassify, isnan ,signbit): Add macros and supporting float
5526 and double functions.
5527 (isfinite, isinf, isnormal): Add macros.
5528 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
5530 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
5531 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
5532 (copysign, logb, nextafter, scalb): Add prototypes and
5533 inline stubs for underscored versions in msvcrt.dll.
5534 * include/inttypes.h: New file.
5535 * include/fenv.h: New file
5537 Add new mingwex subdir and files.
5538 * mingwex: New directory.
5539 * mingwex/Makefile.in: New file.
5540 * mingwex/configure.in: New file.
5541 * mingwex/configure: Generate.
5542 * mingwex/dirent.c: Moved here from parent dir.
5543 * mingwex/atoll.c: New file.
5544 * mingwex/feclearexcept.c: New file.
5545 * mingwex/fegetenv.c: New file.
5546 * mingwex/fegetexceptflag.c: New file.
5547 * mingwex/fegetround.c: New file.
5548 * mingwex/feholdexcept.c: New file.
5549 * mingwex/feraiseexcept.c: New file.
5550 * mingwex/fesetenv.c: New file.
5551 * mingwex/fesetexceptflag.c: New file.
5552 * mingwex/fesetround.o: New file.
5553 * mingwex/fetestexcept.c: New file.
5554 * mingwex/feupdateenv.c: New file.
5555 * mingwex/fma.S: New file.
5556 * mingwex/fmaf.S: New file.
5557 * mingwex/fmax.c: New file.
5558 * mingwex/fmaxf.c: New file.
5559 * mingwex/fmin.c: New file.
5560 * mingwex/fminf.c: New file.
5561 * mingwex/fp_consts.c: New file.
5562 * mingwex/fpclassify.c: New file.
5563 * mingwex/fucom.c: New file.
5564 * mingwex/fwide.c: New file.
5565 * mingwex/imaxabs.c: New file.
5566 * mingwex/imaxdiv.c: New file.
5567 * mingwex/isnan.c: New file.
5568 * mingwex/isnanf.c: New file.
5569 * mingwex/lltoa.c: New file.
5570 * mingwex/lltow.c: New file.
5571 * mingwex/log2.c: New file.
5572 * mingwex/log2f.c: New file.
5573 * mingwex/math_stubs.c: New file.
5574 * mingwex/mbsinit.c: New file.
5575 * mingwex/rint.c: New file.
5576 * mingwex/round.c: New file.
5577 * mingwex/signbit.c: New file.
5578 * mingwex/sitest.c: New file.
5579 * mingwex/strtof.c: New file.
5580 * mingwex/strtoimax.c: New file.
5581 * mingwex/strtoumax.c: New file.
5582 * mingwex/testwmem.c: New file.
5583 * mingwex/trunc.c: New file.
5584 * mingwex/ulltoa.c: New file.
5585 * mingwex/ulltow.c: New file.
5586 * mingwex/wcstof.c: New file.
5587 * mingwex/wcstoimax.c: New file.
5588 * mingwex/wcstoumax.c: New file.
5589 * mingwex/wmemchr.c: New file.
5590 * mingwex/wmemcmp.c: New file.
5591 * mingwex/wmemcpy.c: New file.
5592 * mingwex/wmemmove.c: New file.
5593 * mingwex/wmemset.c: New file.
5594 * mingwex/wtoll.c: New file.
5596 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5598 * include/mbstring.h: New file.
5599 * include/mbctype.h: New file.
5601 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5603 * include/tchar.h (__TEXT): Make same as define in
5604 w32api/include/winnt.h.
5606 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5608 * include/tchar.h (_tputenv): Add UNICODE mappings.
5609 (_tsearchenv): Likewise.
5610 (_tmakepath): Likewise.
5611 (_tsplitpath): Likewise.
5612 (_tfullpath): Likewise.
5614 2002-04-18 Pascal Obry <obry@gnat.com>
5616 * dirent.c (opendir): Convert given pathname to
5619 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5621 * include/_mingw.h: Increment version.
5622 * Makefile.in: Ditto.
5624 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5626 * moldname-crtdll.def: Remove CR from end of line.
5627 * moldname-msvcrt.def: Ditto.
5628 * Makefile.in: Use bzip2 compression for Cygwin target.
5630 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
5632 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
5633 TLOSS, PLOSS): Move oldname defines back, following
5634 the underscored names.
5636 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
5638 * include/stdio.h (_snwprintf): Correct spelling.
5639 (_vsnwprintf): Likewise.
5640 * include/wchar.h (_snwprintf): Correct spelling.
5641 (_vsnwprintf): Likewise.
5643 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
5645 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
5646 (wpopen): Add if !(__CRTDLL__).
5647 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
5649 (moldname-crtdll.def rule): Likewise.
5650 * moldname-msvcrt.def: Regenerate.
5651 * moldname-crtdll.def: Regenerate.
5652 * include/stdio.h (wpopen):Use prototype, not a define.
5653 (_swnprintf): Add prototype.
5654 (_vswnprintf): Likewise.
5656 * include/wchar.h (_swnprintf): Add prototype.
5657 (_vswnprintf): Likewise.
5660 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5662 * include/malloc.h (_heapinfo): Correct structure definition.
5663 (_USEDENTRY,_FREEENTRY): Add defines.
5664 Add comment on platform support for _heap* functions.
5665 (_get_sbh_threshold): Add prototype.
5666 (_set_sbh_threshold): Likewise.
5667 (_expand): Likewise.
5669 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5671 * profile/profil.c: Update copyright info.
5672 * profile/profil.h: Likewise.
5673 * profile/gcrt0.c: Likewise.
5675 2002-01-25 Pascal Obry <obry@gnat.com>
5677 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5679 * profile/gmon.c: Define bzero as memset if mingw32.
5680 (monstartup): Use it.
5682 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5684 * include/tchar.h (_TCHAR): Add missing ;.
5686 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5688 * include/tchar.h (_TCHAR): Add typedefs.
5690 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5692 * include/stdlib.h (_onexit_t): Add typedef.
5693 (_onexit): Add prototype.
5695 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5697 * msvcrt.def: Revert accidental change.
5698 * include/stdlib.h: Ditto.
5700 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5702 * Makefile.in: Increment VERSION.
5703 * include/_mingw.h: Ditto.
5705 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5707 * include/strings.h: New File.
5709 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5711 * include/math.h (_FPCLASS* ): Add defines from float.h.
5712 (IEEE recommended functions): Add declarations from float.h.
5713 * include/float.h (_FPCLASS* ): Protect against redefinition.
5715 2001-11-29 Wu Yongwei <adah@netstd.com>
5717 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5718 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5719 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5720 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5721 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5722 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5723 Correct spelling of "disclaimed" in comments.
5724 * include/excpt.h: Another spelling correction.
5726 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5728 * include/errno.h: Fix "errno is not a prototype" warning.
5730 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
5732 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
5733 differences between ANSI and non-ANSI versions.
5734 (_ctype[],_pctype): Declare vars.
5735 (__ISCTYPE): New helper macro using _pctype.
5736 (is* ctype functions): Use __ISCTYPE to define inline versions.
5737 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
5739 (isw* ctype functions): Inline definitions.
5740 * include/wctype.h (_ctype[],_pctype): Declare vars.
5741 (isw* ctype functions): Inline definitions.
5744 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5746 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
5747 __fpecode): Use __STDC__ prototypes.
5750 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
5752 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
5753 * mthr_init.c (DllMain) Run dtors if a process terminates.
5754 * mthr.c (__mingwthr_add_key_dtor) Removed.
5755 (___mingwthr_add_key_dtor) New.
5756 (___mingwthr_remove_key_dtor) New.
5757 (__mingwthr_run_key_dtors) Complete rewrite.
5758 (__mingwthr_remove_key_dtor) New.
5760 2001-11-05 Egor Duda <deo@logos-m.ru>
5762 * Makefile.in: Delete unused executable after creating base-files.
5764 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5766 * include/errno.h (_errno): Use __STDC__ prototype.
5767 Thanks to: Jim Barton.
5769 2001-11-04 "stefan" <stefan@lkcc.org>
5771 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
5773 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5775 * include/io.h (_commit): Add declaration.
5776 Thanks to: "stefan" <stefan@lkcc.org>
5778 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5780 * include/sys/stat.h: Make S_IS* macros safer.
5782 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
5784 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
5786 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5788 * include/stdlib.h (__p__environ, __p__wenviron): Use
5789 __STDC__ prototypes.
5791 2001-09-19 Earnie Boyd <earnie@SF.net>
5793 * Makefile.in: Remove the /usr from the install target.
5794 (VERSION): Increment.
5795 include/_mingw.h: Ditto.
5797 2001-09-17 Earnie Boyd <earnie@SF.net>
5799 * Makefile.in: Increment version.
5800 * include/_mingw.h: Ditto.
5802 2001-09-10 Earnie Boyd <earnie@SF.net>
5804 * dossh: Remove inadvertantly imported file.
5806 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5808 * dirent.c (opendir): Use GetFileAttributes rather than stat
5809 to determine if input arg is dir.
5811 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
5813 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5815 * include/varargs.h (va_list): Ditto.
5816 * include/stdio.h (va_list): Ditto.
5818 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5820 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5821 * include/stdio.h (_IORW): Change constant to 0x0080.
5822 (TMP_MAX): Add new define.
5824 (_wP_tmpdir): Ditto.
5825 (L_tmpnam): Change constant to 16.
5827 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
5829 * include/malloc.h: Fix non-ANSI comment after #endif.
5831 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5833 * profile/configure.in: Make msvcrt.dll version default.
5834 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
5835 * provile/configure: Regenerate.
5837 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
5839 * include/stdio.h (swscanf): Make first arugument const.
5840 * include/wchar.h (swscanf): Ditto.
5841 * include/tchar.h (_tfopen): New _UNICODE define.
5843 (_tsetlocale): Ditto.
5845 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5847 * profile/Makefile.in (mkinstalldirs): Correct relative path.
5849 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5851 * include/_mingw.h: Change version to 1.0.
5854 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
5856 * include/tchar.h: (__TEXT): Remove undef.
5860 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5862 * include/tchar.h: (__TEXT): Add private macro.
5863 (_TEXT): Modify definition to use __TEXT.
5865 This change allows the passing of a MACRO as an argument and have that
5866 MACRO resolved first.
5867 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5869 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5871 * Makefile.in: Increment version to 0.5
5872 * include/_mingw.h: Increment minor version
5874 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5876 * include/assert.h: (assert): Remove ; from end of definition
5877 Thanks to: AJ Reins <tbisp@qwest.net>
5879 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5881 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5882 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5884 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5886 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5888 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5890 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5891 are actually C functions. These functions are resolved via the
5892 -lmsvcp60 library and comments were placed in the header.
5894 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5896 * include/stdlib.h (__p__pgmptr): add prototype.
5897 (__p__wpgmptr): likewise.
5898 (_pgmptr_dll): move declaration from dos.h.
5899 (_wpgmptr_dll): likewise.
5900 (_pgmptr): conditional define (MSVCT/CRTDLL).
5901 (_wpgmptr): likewise.
5902 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5903 (_os*_dll variables): likewise.
5904 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5905 (_wpgmptr_dll): likewise.
5907 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5909 * include/stdint.h: New file.
5911 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5913 * include/wchar.h: Protect prototypes only declared in the C++ STL
5914 from being declared unless __cplusplus is defined.
5916 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5918 * include/stdlib.h: Apply Danny Smith patch 102730
5919 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5920 (_wgetenv) Correction to return type.
5922 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5924 * include/locale.h: Apply Danny Smith patch 101834
5925 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5926 (LC_MIN) Add definition.
5928 (_wsetlocale) Add prototype.
5930 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5932 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5933 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5934 Create a libcoldname.a for the oldname library for CRTDLL.
5935 Restrict libmoldname.a for the oldname library for MSVCRT.
5936 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5937 Restructure the $target_os case logic.
5938 Always name the MinGW thread dll helper mingwm.
5939 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5940 * configure: regenerate.
5942 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5944 * Makefile.in: Fix bindist target to distribute the correct files.
5945 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5946 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5948 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5950 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5951 Add variables and targets to control binary and source distributions.
5952 Add variables and targets to control snapshot distribution.
5953 * profile/gmon.h: Add missing #endif for #ifndef.
5954 * profile/ChangeLog: Merge entries here and remove.
5955 * profile/Makefile.in: Add variables and targets to control
5959 * config.guess: ditto.
5960 * config.sub: ditto.
5961 * mkinstalldirs: ditto.
5962 * install-sh: ditto.
5963 * configure: regenerate.
5964 * profile/configure: ditto.
5966 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5968 * Merge in changes from
5969 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5970 * include/direct.h: add guard around MSVCRT-only prototytpes
5971 * include/io.h: add __int64 struct definitions and function prototypes;
5972 add guard for MSVCRT-only prototypes
5973 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5974 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5975 put wchar functions together to make sync with wchar.h easier
5976 * include/stdlib.h: add wide char functions (__MSVCRT__)
5977 * include/string.h: add string collation functions ( __MSVCRT__)
5978 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5979 * include/tchar.h: add macros and macro function definitions
5980 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5981 enclose more functions in __MSVCRT__ guard;
5982 some oldname wide char function prototypes #if (0)'d
5983 * profile/gmon.h: add guard around BSD-ish typedefs
5985 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5987 * Makefile.in: Use a different variable name for subdirectory since the
5988 previous one was used by the top level make.
5990 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5992 * Makefile.in: Install mingw stuff in a subdirectory if building under
5995 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5997 * Makefile.in (subdirs): Eliminate for loop.
5999 2000-06-17 Christopher Faylor <cgf@cygnus.com>
6001 * Makefile.in (subdirs): Previous change did not fix problem in
6004 2000-06-17 Christopher Faylor <cgf@cygnus.com>
6006 * Makefile.in: Avoid installing dll if we're cross building and the
6007 cross-host system isn't a Windows system.
6008 * configure.in: Detect cross-hosting situation and set appropriate
6009 variables in Makefile.in.
6010 * configure: Regenerate.
6012 2000-04-19 Christopher Faylor <cgf@cygnus.com>
6014 * configure.in: Change HEADER_SUBDIR to mingw32.
6015 * configure: Regenerate.
6017 2000-04-10 Christopher Faylor <cgf@cygnus.com>
6019 * include/string.h: Use proper prototype for _strerror.
6021 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
6023 * Makefile.in (subdirs): Workaround for broken shells.
6025 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
6027 * Snapshot 2000-02-03.
6029 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
6030 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
6031 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
6032 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
6035 * Makefile.in (all): Build CRT0S first.
6036 (libmingwthrd.a): Remove thread support DLL from dependency.
6038 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
6040 * Snapshot 2000-01-21.
6042 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
6044 Merge in changes from Cygwin:
6045 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
6046 (SUBDIRS): Likewise.
6047 * Makefile.in (HEADER_SUBDIRS): New variable.
6048 (install): Use to install Mingw headers to a subdirectory if building
6050 (DLL_CC_STUFF): Add DLL entry point.
6051 * configure: Regenerate.
6053 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
6055 * include/stdio.h (fsetpos): Fix prototype.
6056 (fpos_t): Fix for MSVCRT.
6057 * include/float.h (fpreset): Add prototype.
6058 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
6060 * include/time.h: Don't define tzname as a macro for CRTDLL, and
6061 export using libmoldname.a.
6062 * crtdll.def: Add DATA tags.
6063 * msvcrt.def: Likewise.
6064 * moldname.def.in: Likewise. Add fpreset. Export tzname for
6065 both MSVCRT and CRTDLL.
6066 * moldname-crtdll.def: Regenerate.
6067 * moldname-msvcrt.def: Regenerate.
6069 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
6071 * Snapshot 1999-12-21.
6073 * include/wctype.h: New file.
6074 * include/ctype.h (MB_CUR_MAX): Define.
6076 * include/stdlib.h (MB_CUR_MAX): Define.
6077 * include/wchar.h: Define stat, _stat structures here as well.
6078 * include/float.h: Add invalid subconditions (_SW) and floating
6079 point error (_FPE) macros.
6080 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
6081 (_TIME_T): Rename macro to _TIME_T_DEFINED.
6082 * include/sys/types.h: Likewise.
6084 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
6086 * profile/profil.c (profile_on): Set the profiler thread priority to
6087 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
6088 * Snapshot 1999-11-18.
6090 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
6092 Released 1999-11-07.
6094 * Makefile.in (CRT0S): Add crtst.o.
6095 (install): Install in subdirs as well.
6096 * dirent.h (struct _stat): Rename from struct stat.
6097 * include/tchar.h: Add some new macros. Thanks to
6098 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
6099 * profile/Makefile.in (install): Fix target.
6101 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6103 * Makefile.in: Add support for profile directory.
6104 * configure.in: Likewise.
6105 * configure: Regenerate.
6107 * profile: Imported profiling sources from winsup-19991026 snapshot.
6108 * profile/Makefile.in: New file.
6109 * profile/configure.in: New file.
6110 * profile/configure: Generate.
6111 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
6112 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
6113 * profile/gmon.c (unistd.h): Include conditionally.
6114 (sys/param.h): Likewise.
6115 * profile/mcount.c (sys/param.h): Likewise.
6116 * profile/profil.c (profile_on): thread id is DWORD, not int.
6119 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
6121 * include/stdlib.h: Add wide character version of argv/environ.
6123 * include/wchar.h: More wide character prototypes.
6124 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
6126 * dllcrt1.c (init.c): Don't include.
6127 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
6128 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
6130 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
6132 * moldname.def: Remove file.
6133 * moldname.def.in: And add this.
6134 * moldname-msvcrt.def: Generate from moldname.def.in.
6135 * moldname-crtdll.def: Likewise.
6137 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
6138 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
6139 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
6141 * Makefile.in: Update.
6142 * configure.in: Likewise. Also add *cygwin* target for building
6143 under Cygwin winsup.
6144 * configure: Regenerate.
6146 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
6148 * include/_mingw.h: Add version macros.
6149 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
6150 Also add wide character versions shared with wchar.h.
6151 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
6152 * include/io.h (sopen, _sopen): Fix prototype.
6153 Add wide character prototypes.
6154 * include/wchar.h: Likewise.
6155 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
6156 underscored versions. Potential incompatibility.
6157 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
6158 Add wide character prototypes.
6159 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
6162 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
6164 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
6165 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
6167 * configure: Rengerate.
6168 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
6169 dll name and crt's. CRTDLL and MSVCRT are meant to created
6170 separately, so remove all the *-msvcrt* targets.
6171 (libmingwthr.a): New target. Dummy thread support archive.
6172 (LIBS): Add libmingwthr.a.
6173 (CRT0S): Use CRT_ID. Add crtmt.o.
6174 (MINGW_OBJS): Add crtst.o.
6175 * main.c (WinMain): Fix prototype.
6176 * crtmt.c: New file.
6177 * crtst.c: New file.
6179 * include/process.h (_beginthreadex): Fix prototype.
6180 * include/_mingw.h (__int64): Define for __GNUC__.
6181 * include/tchar.h (_ttol): Add macro.
6182 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
6183 _i64tow, _ui64tow, _wtoi64): Add prototypes.
6185 Reported by Emanuele Aliberti <ea@iol.it>:
6186 * include/tchar.h (_ttoi): Add macro.
6188 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
6189 * include/stdio.h (_snprintf): Add prototype.
6190 (_vsnprintf): Likewise.
6192 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
6194 Reported by Tor Lillqvist <tml@iki.fi>:
6195 * include/stdlib.h (__p___argv): Fix return type.
6197 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6200 * include/errno.h (errno): It's linked in from startup, not imported.
6201 * include/stdlib.h (errno): Likewise.
6202 * include/io.h: Guard against conflicting macros and prototypes in
6204 * include/stdlib.h: Likewise.
6205 * include/string.h: Likewise.
6206 * include/time.h: Likewise.
6208 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6210 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
6211 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
6212 * Makefile.in (INCLUDES): Remove old windows32 include directory.
6214 * crt1.c (_gnu_exception_handler): Fix prototype.
6215 (__mingw_CRTStartup): New function based on mainCRTStartup.
6216 (mainCRTStartup): Set the app type for MSVCRT and call
6218 (WinMainCRTStartup): Likewise.
6219 * init.c (_startupinfo): Define.
6220 (_getmainargs): Add 5th parameter.
6221 (_mingw32_init_mainargs): Use.
6223 * ALL *.c files: Reformat according to GNU coding style.
6225 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
6227 * Makefile.in (INCLUDES): Add w32api include directory.
6229 * include/_mingw.h: New file.
6230 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
6231 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
6232 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
6233 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
6234 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
6235 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
6237 * include/stdlib.h (atexit): Fix prototype.
6239 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
6241 * include/stdio.h (_tempnam): Fix prototype.
6242 (tempnam): Likewise.
6243 * include/stdlib.h: Replace with GCC's version, and guard
6246 From Anders Norlander <anorland@hem2.passagen.se>:
6247 * include/stdlib.h (__argc): Declare.
6250 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
6252 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
6254 * Makefile.in (_libm_dummy.o): New target.
6257 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
6259 * Released 1999-03-16 along with egcs-1.1.2.
6261 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
6263 * Makefile.in (LIBS): Add libm.a.
6264 (libm.a): Dummy libm.a.
6266 * Makefile.in: Update from winsup 1999-02-08 snapshot.
6267 Preserve local changes.
6268 (mkinstalldirs): In ../, not ../../.
6269 (INCLUDES): Point to local windows32api headers and use -nostdinc.
6271 (LIBS): Add libmoldname-msvc.a.
6272 (libmoldname-msvc.a): Add target.
6273 (distclean): Add target.
6275 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
6277 * include/dir.h: Reintroduce as an obsolescent header.
6278 * crt1.c (signal.h): Include.
6279 (_gnu_exception_handler): New function to properly handle win32
6280 asynchronous signals.
6281 (mainCRTStartup): Use.
6283 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
6285 * include/direct.h: Include io.h instead of dir.h
6286 * include/dirent.h: Likewise.
6287 * include/dos.h: Likewise.
6288 * include/stdio.h: Replace reference to dir.h with io.h.
6290 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
6292 * 1999-01-01 release bundled with egcs-1.1.1.
6294 * include/io.h: Incorporate dir.h.
6295 * include/dir.h: Remove.
6296 * include/signal.h: Move RC_INVOKED up a bit.
6298 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
6300 * include/signal.h (sig_atomic_t): Define.
6302 * include/malloc.h: Import defs from deprecated alloc.h.
6303 * include/alloc.h: Remove.
6305 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
6306 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
6307 * include/sys/stat.h (struct stat): st_uid is of type short. Use
6308 _off_t instead of long for st_size.
6310 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
6312 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
6313 * include/stdlib.h: Here.
6315 * include/netdb.h: Remove.
6316 * include/arpa/inet.h: Remove.
6317 * include/netinet/in.h: Remove.
6318 * include/sys/socket.h: Remove.
6320 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
6324 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
6325 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
6327 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6329 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
6330 (jmpbuf): typedef using above.
6331 (setjmp, longjmp): Prototype using jmpbuf.
6333 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
6334 obsolescent imported names, ie., from __imp__ to _imp___.
6336 Also ignored empty include/sys/param.h and incorrect
6337 include/sys/times.h.
6339 * CRTinit.c: New file.
6340 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
6342 * include/io.h (umask): Fix prototype.
6343 * include/stdlib.h (OS constants): Replace with Colin's.
6344 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
6345 * include/sys/state.h: Merge.
6347 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6349 * include/assert.h (assert): Lose the trailing semicolon.
6351 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6353 * include/math.h (matherr): Declare.
6354 * include/stdio.h (fileno, _fileno): Declare.
6355 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
6358 * include/stdio.h (fdopen, _fdopen): Add const.
6359 (getw, putw): Declare.
6360 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
6362 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
6364 * include/time.h (_timezone): Undefine.
6365 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
6367 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
6369 * include/stdlib.h (environ): Use DLL version.
6370 * init.c (environ): Undefine it before use.
6372 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
6374 * Update to 980309 snapshot from Colin Peters.
6376 * include/utime.h: remove
6377 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
6378 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
6379 patches to define these.
6380 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6381 (_daylight, _timezone, _tzname, _tzset): Define.
6383 * include/netdb.h: Add from Colin's windows32api changes.
6384 * include/sys/socket.h: Likewise.
6385 * include/arpa/inet.h: Likewise.
6386 * include/netinet/in.h: Likewise.
6388 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
6390 * Update to 980128 snapshot from Colin Peters.
6392 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
6394 * configure.in (AC_INIT): Use dllmain.c instead of defunct
6396 * configure: Regenerate.
6398 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
6400 * Update to 971205 snapshot from Colin Peters. Lots of changes.
6401 Files renamed and include hierarchy loses directories named
6404 * include/dos.h: from Jan-Jaap.
6406 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
6408 Changes to conform to FSF tree.
6410 * crt1.c: Renamed from mcrt0.c.
6411 * dllcrt1.c: Renamed from dllcrt0.c.
6412 * Makefile.in: Update above. Also renamed libmoldnames.a to
6415 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
6417 * crtdll.def: Export all functions but the ones with funny names.
6418 * moldnames.def: Add fdopen since fileno is already there.
6419 * include/nonansi/dos.h: New file from Jan-Jaap.
6420 * include/errno.h: Add extern decl + various additions from JJ.
6421 * include/stdio.h: Likewise.
6422 * include/stdlib.h: Likewise.
6423 * include/nonansi/io.h: Likewise.
6424 * include/nonansi/process.h: Likewise.
6425 * include/sys/types.h: Likewise.
6427 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6429 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6431 * include/stdlib.h (free): Fix prototype to return void, not void*.
6432 * include/nonansi/process.h: Add P_* and WAIT_* defs.
6434 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
6435 * mcrt0.c: Likewise.
6437 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
6438 (libmoldnames.a): Add explicit rule to create it.
6440 1997-08-15 Rob Savoye <rob@cygnus.com>
6442 New directory for the minimalist cygwin environment.
6444 * crtglob.c: New file. Turn on file globbing support.
6445 * crt_noglob.c: New file. Turn off file globbing support.
6446 * ctype_old.c: New file. Wrappers for functions that don't
6448 * dirent.c: New file. Directory routines readdir, opendir, closedir.
6449 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
6450 * dllmain.c: New file. A stub DllMain function.
6451 * hugeval.c: New file. A gross hack to define HUGE_VAL.
6452 * init.c: New file. Common code to initialize standard file
6453 handles and command line arguments.
6454 * main.c: New file. A main for programs that only call WinMain.
6455 * mcrt0.c: New file. Default crt0 for mingw32.
6456 * oldnames.c: New File. Wrappers for functions that don't
6458 * string_old.c: New File.
6459 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
6460 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
6461 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
6462 * include/sys/types.h: New header file for mingw.
6463 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
6464 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
6465 utime.h,values.h,varargs.h}: New header files for mingw.
6466 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
6467 timeb.h,unistd.h}: New header files for mingw.
6468 * Makefile.in,configure.in: Build and configure support.
6469 * configure: Generated from autoconf 2.12 with Cygnus patches.