1 2016-08-01 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Implement POSIX conforming getline() and getdelim() functions.
5 * mingwrt/mingwex/stdio/getdelim.c: New file.
6 * mingwrt/man/getline.3.man: Likewise.
8 * mingwrt/include/stdio.h [_POSIX_C_SOURCE >= 200809L]
9 (getdelim): New function, implemented externally; declare prototype.
10 (getline): New function; declare prototype; implement as __CRT_ALIAS
11 inline, with __LIBIMPL__ external representation.
13 * mingwrt/Makefile.in (libmingwex.a): Add getdelim.$OBJEXT
14 (mingwrt-man$man3ext): Add manpage dependency references to create...
15 (getline.$man3ext, getdelim.$man3ext): ...these; declare them as
16 distributable duplicates, to be generated from...
17 (getline.$man3ext.man): ...this common source.
19 2016-08-01 Keith Marshall <keithmarshall@users.sourceforge.net>
21 Merge mingwrt-3.22.1 legacy updates to 5.0-active branch.
23 * mingwex/math/powl.c: Update per issue [#2036] workaround.
24 * mingwex/stdio/pformat.c: Likewise, per issue [#2309] resolution,
25 and subsequent 2016-07-24 optimization.
27 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
29 Prepare and tag all files for release of mingwrt-3.22.1.
31 * configure.ac (AC_INIT): Adjust package version number; append
32 patch level identification.
34 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
36 Interim workaround for issue [#2306].
38 * mingwex/math/powl.c: Tidy layout; correct indentation.
39 (powl, reducl): Use ISO-C declaration syntax; K&R is obsolescent.
40 (powl) [OVERFLOW]: Correct representation of return value, using...
41 (INFINITYL): ...this manifest constant value, instead of...
44 2016-07-24 Keith Marshall <keithmarshall@users.sourceforge.net>
46 Optimize printf() field width accumulation function.
48 * mingwex/stdio/pformat.c (__imul10plus): Omit multiply by ten on
49 already accumulated zero total; it is unnecessary, since ten times
52 2016-07-22 Keith Marshall <keithmarshall@users.sourceforge.net>
54 Fix printf() field width parsing regression issue [#2309].
56 * mingwex/stdio/pformat.c (__imul10plus): Coerce any accumulated
57 negative total to zero; the only negative value to be handled is...
58 (PFORMAT_IGNORE): ...this; it ceases to be applicable, on first call
59 to __imul10plus(), to accumulate field width or precision.
61 2016-07-19 Keith Marshall <keithmarshall@users.sourceforge.net>
63 Update install-sh to match mingw.org/build-aux package.
65 * install-sh: Delete it; use version in parent directory instead,
66 recreating local copy, (as symlink, if supported), on demand.
68 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
70 Eliminate redundant configuration files.
72 * aclocal.m4 VERSION.m4: Delete them; restore them on demand, via...
73 * Makefile.in ($top_srcdir/../%): ...this symlink dependency rule.
75 * configure.ac (AC_PROG_LN_S): Add configuration check.
77 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
79 Merge mingwrt-3.22 packaging correction to 5.0-active branch.
81 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
83 Correct mingwrt-3.22 source package subdirectory omission.
85 * Makefile.in (mingwrt-srcdist-files): Add msvcrt-xref.
87 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
89 Discard redundant config.guess and config.sub files.
91 * config.guess config.sub: Delete them; they are no longer required.
93 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
95 Merge recent legacy branch updates to 5.0-active branch.
97 * Makefile.in include/ctype.h include/excpt.h include/stdint.h
98 * include/glob.h include/limits.h include/locale.h include/search.h
99 * include/stdio.h include/stdlib.h include/wchar.h include/wctype.h
100 * include/sys/param.h include/sys/stat.h mingwex/tdelete.c
101 * mingwex/tfind.c mingwex/tsearch.c mingwex/twalk.c: Updated.
103 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
105 Prepare and tag all files for release of mingwrt-3.22.
107 * configure.ac (AC_INIT): Adjust package version number.
109 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
111 Preserve kludge to evade GCC build failure on S_ISBLK misuse.
113 * include/sys/stat.h (_NO_UNSUPPORTED): New feature test macro; it
114 should be user defined, if desired, before inclusion; leave undefined.
115 [!_S_IFBLK && !_NO_UNSUPPORTED && !_NO_OLDNAMES] (S_ISBLK): Define it,
116 as appropriate for POSIX conforming usage; do not poison it.
118 2016-07-10 Keith Marshall <keithmarshall@users.sourceforge.net>
120 Fix C++ strict type checking inconsistency in <glob.h>
122 * include/glob.h (__ERRFUNC_P): New private macro; define it to match
123 the type signature of the error function pointer, to be passed to...
124 (glob): ...this function; use it to correctly represent error function
125 pointer argument in inline implementation.
127 2016-07-09 Keith Marshall <keithmarshall@users.sourceforge.net>
129 Factor out <ctype.h> vs. <wctype.h> duplicate elements.
131 * include/ctype.h: Assert copyright; tidy layout.
132 [!_CTYPE_H_]: Do not evaluate; rename macro to be tested, as...
133 [!_CTYPE_H]: ...this preferred multiple inclusion guard macro name.
134 (__CTYPE_H_SOURCED__): New macro; define it, and include <wctype.h>,
135 so requesting partial inclusion, to retrieve definitions for...
136 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
137 (_UPPER, WEOF): ...these macros; hence, do not define them locally.
138 (wint_t, wchar_t, wctype_t): Likewise these type definitions...
139 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
140 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
141 (iswupper, iswxdigit, towlower, towupper, is_wctype): ...these function
142 prototypes, and corresponding inline alternative implementations.
143 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
144 [__MSVCRT_VERSION__<=__MSVCR70_DLL]: Likewise.
146 * include/wctype.h: Assert copyright; tidy layout.
147 [!_WCTYPE_H_]: Do not evaluate; rename macro to be tested, as...
148 [!_WCTYPE_H]: ...this preferred multiple inclusion guard macro name;
149 do not define it when partial inclusion only is selected, by...
150 [__CTYPE_H_SOURCED__]: ...this; thence define only...
151 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
152 (_UPPER): ...these character characterisation macros...
153 (wint_t, wchar_t, wctype_t): ...these type definitions...
154 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
155 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
156 (iswupper, iswxdigit, towlower, towupper): ...these function
157 prototypes, with corresponding inline alternative implementations...
158 (is_wctype): ...this further prototype, qualified as deprecated...
159 (WEOF): ...and this status reporting macro.
160 (_ctype, _pctype, _pctype_dll, _imp___ctype, _imp___pctype): Delete
161 declarations, and associated definitions; they do not belong here.
162 (isleadbyte): Likewise, this Microsoft specific function prototype...
163 (_LEADBYTE): ...and this associated character classification macro.
164 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
166 2016-07-04 Keith Marshall <keithmarshall@users.sourceforge.net>
168 Do not pass MAKEFLAGS explicitly, when invoking recursive make.
170 * Makefile.in (install-strip, uninstall): Delete explicit $(MAKEFLAGS)
171 references from $(MAKE) command lines; make passes them implicitly.
173 2016-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
175 Rework tsearch and friends; resolve issues [#1512] and [#1576].
177 * include/search.h: Assert copyright; tidy layout.
178 (_SEARCH_H_): Rename this multiple inclusion guard macro...
179 (_SEARCH_H): ...to conform to this preferred standard convention.
180 (__search_comparator): New function prototype typedef; it provides a
181 convenient shorthand notation for argument declarations in functions
182 which require a comparator function pointer; use it where appropriate.
183 (tsearch, tfind, tdelete) [__MINGW_ATTRIB_NONNULL]: Apply to arguments
184 #2 and #3; was previously incorrectly applied to arguments #1 and #3.
185 (twalk) [__MINGW_ATTRIB_NONNULL]: Apply to both arguments #1 and #2.
186 [_SEARCH_PRIVATE] (__MINGW_ATTRIB_NONNULL): Suppress its effect, to
187 ensure that GCC does not optimize away checks within implementation.
188 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
190 * mingwex/tdelete.c: Tidy layout.
191 (tdelete): Reimplement it as a thin wrapper around...
192 (__tdelete): ...this; it encapsulates the original implementation as a
193 __CRT_ALIAS (inline) function, to simplify void ** --> node_t ** casts.
194 Remove unnecessary non-null assertions for arguments #1 and #3; prefer
195 to validate arguments #2 and #3 internally, and simply return NULL if
196 necessary; hence, do not include <assert.h>
198 * mingwex/tfind.c: Tidy layout.
199 (tfind): Similarly reimplement it as a thin wrapper around...
200 (__tfind): ...this __CRT_ALIAS (inline) encapsulation of the original.
201 Add non-null validation for argument #3; do not include <assert.h>
203 * mingwex/tsearch.c: Tidy layout.
204 (tsearch): Once again, reimplement it as a thin wrapper around...
205 (__tsearch): ...this __CRT_ALIAS variant. Add non-null validation for
206 argument #3; do not include <assert.h>
208 * mingwex/twalk.c: Tidy layout; do not include <assert.h>
210 2016-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
212 Rework __try1/__except1 to resolve issue [#1328].
214 * include/excpt.h: Assert copyright; tidy layout.
215 (_EXCPT_H_): Multiple inclusion guard macro renamed to...
216 (_EXCPT_H): ...this; update all references as appropriate.
217 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
218 (__typecast_alloca): New macro; define it, casting return type of...
219 (__builtin_alloca): ...this to a specified data type; use it in...
220 (__try1_setup, __except1_teardown): ...these new macros; define them
221 as parameterized templates, providing both -masm-att and -masm-intel
222 syntax implementations, with host specific word size and register
223 assignment parameter substitutions; use them to redefine...
224 (__try1, __except1): ...each of these, using __builtin_alloca to avoid
225 direct stack pushes when registering exception handlers; assign the
226 template parameters as appropriate to support implementation for...
227 [_WIN64, _WIN32]: ...either of these, as the host requires.
229 2016-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
231 Merge Cygwin CVS updates to legacy branch.
233 * include/stdio.h: Merge 2011-11-30 and 2012-08-02 commits.
234 (getc, getchar, putc, putchar): Declare function prototypes.
235 (fopen64, ftello64): Likewise; change implementation classification
236 from __CRT_INLINE to __CRT_ALIAS, to avoid C++ emitted code bloat.
237 (_lock_file, _unlock_file): Add prototypes; modify merge to...
238 [__MSVCRT_VERSION__>=__MSVCR80_DLL]: ...require this.
240 * include/stdint.h: Merge 2012-07-30 commit; include <_mingw.h>
242 * include/excpt.h: Merge 2012-08-01 commit.
243 (__try1, __except1) [_WIN64]: Add alternative implementations.
245 * include/stdlib.h: Merge 2012-08-02 commit.
246 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
247 (_strtoi64, _strtoui64, _wcstoi64, _wcstoui64): Declare prototypes.
248 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
249 (_strtoi64_l, _strtoui64_l, _wcstoi64_l, _wcstoui64_l): Likewise...
250 [!__have_typedef_locale_t] (__need_locale_t): ...and define to get...
251 (locale_t): ...this, by selective inclusion of <locale.h>
252 [__WCHAR_H_SOURCED] (_wcstoi64, _wcstoui64, _wcstoi64_l)
253 (_wcstoui64_l): Make these function prototypes available for selective
255 * include/wchar.h: ...this; merge 2012-08-02 commit.
256 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
257 (_wcstoi64, _wcstoui64): Note availability of function prototypes via
258 selective inclusion of their actual declarations from <stdlib.h>
259 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
260 (_wcstoi64_l, _wcstoui64_l): Likewise.
262 * include/limits.h: Merge 2012-08-02 commit.
263 [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
265 * include/sys/param.h: Merge 2012-08-02 commit.
266 [PATH_MAX not defined] (MAXPATHLEN): Define it explicitly.
267 [PATH_MAX defined] (MAXPATHLEN): Define it as an alias.
269 2016-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
271 Add typedef and access support for opaque locale_t objects.
273 * include/locale.h (locale_t, _locale_t): Define opaque types.
274 [__need_locale_t]: Make them selectively accessible; define...
275 (__have_typedef_locale_t): ...this, when they are available.
276 [_LOCALE_H] (_create_locale, _get_current_locale, _free_locale):
277 Declare function prototypes, on direct <locale.h> inclusion only.
278 [_LOCALE_H || _WCHAR_H] (_wcreate_locale): Likewise; this is to be
279 visible on direct inclusion, or when including <wchar.h>
281 * include/stdio.h [!(_STDIO_H && _WCHAR_T)]: Correct expression of...
282 [__MSVCR80_DLL || _WIN32_WINNT_VISTA]: ...this subsidiary condition;
283 for all cases when this is true, (including when [_STDIO_H] alone)...
284 [!__have_typedef_locale_t] (__need_locale_t): ...define this, and
285 include <locale.h>, for selective definition of...
288 2016-05-19 Keith Marshall <keithmarshall@users.sourceforge.net>
290 Occlude unsupported _S_IFBLK feature; resolve issue [#1146].
292 * include/sys/stat.h (_MINGW_S_IFBLK_KLUDGE): New feature test macro;
293 do not define it, and strongly recommend that it remains undefined.
294 [!_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Do not define them.
295 [!_MINGW_S_IFBLK_KLUDGE] (_S_ISBLK, S_ISBLK): Poison them.
296 [_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Adjust definitions; use a
297 modified value, which is guaranteed to be impossible to match in...
298 [_S_ISBLK, S_ISBLK]: ...these, thus enforcing false test results.
300 2016-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
302 Fix a typo in a <sys/stat.h> inline function definition.
304 * include/sys/stat.h [__MSVCRT_VERSION__ >= __MSVCR80_DLL]
305 (stat): First argument declared as 'int'; should be 'const char *';
308 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
310 Synchronize package version management with Win32-API.
312 * VERSION.m4: New file; link it to keep in sync with identically named
313 file in top level composite package source directory; it defines...
314 (__VERSION__): ...this new composite package version macro.
316 * aclocal.m4: Link it, to keep in sync with identically named files in
317 top level composite source and sibling w32api sub-package directories.
318 (__VERSION__): New macro; include VERSION.m4 to define it.
319 (__BUG_REPORT_URL__): New macro; define it.
321 * configure.ac (AC_INIT): Assign package version and bug report URL...
322 (__VERSION__, __BUG_REPORT_URL__): ...from these, as defined through
323 automatic inclusion of aclocal.m4
325 * Makefile.in (configure): Add dependency on VERSION.m4
327 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
329 Resolve some strnlen() implementation issues.
331 * mingwex/strnlen.s (__mingw_strnlen) [!NUL]: Correct termination
332 logic; should have used jnz, not jz, to skip endpoint adjustment on
333 scanning past a terminal NUL character code.
335 * include/string.h [_POSIX_C_SOURCE >= 200809L] (strnlen): Do not
336 #define it, as this breaks GCC compilation; use __CRT_ALIAS instead,
337 with __JMPSTUB__ referencing via "oldname" libraries.
339 * Makefile.in (jmpstub_awk_script, libimpl_awk_script): Adapt to
340 facilitate assignment of __JMPSTUB__ and __LIBIMPL__ references to
341 libraries other than libmingwex.a
342 (strnlen.jmpstub.$OBJEXT): Assign it to all "moldname" libraries prior
343 to libmoldname80.a, in addition to libcoldname.a, as specified by the
344 __JMPSTUB__ assignment within <string.h>
346 2016-05-03 Keith Marshall <keithmarshall@users.sourceforge.net>
348 Enforce consistent specification of package version.
350 * include/_mingw.h: Rename as...
351 * include/_mingw.h.in: ...this build-time template file.
352 (__MINGW32_VERSION): Redefine it, in terms of...
353 (%PACKAGE_VERSION_LONG%): ...this substitution template.
354 (__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION)
355 (__MINGW32_PATCHLEVEL): Likewise, redefine them in terms of...
356 (%PACKAGE_VERSION_MAJOR%, %PACKAGE_VERSION_MINOR%)
357 (%PACKAGE_VERSION_PATCH%): ...these.
359 * configure.ac (AC_CONFIG_SRCDIR): Adjust for renamed file.
360 (MINGW_AC_CONFIG_EXTRA_SRCDIR): Likewise, for similarly renamed
361 w32api/include/w32api.h.in file.
363 * Makefile.in (all-mingwrt-stage-1-only): Add dependency on...
364 (_mingw.h, w32api.h): ...these; add rule to generate them, using...
365 (PACKAGE_VERSION_SCRIPT, PACKAGE_VERSION_FORMAT): ...these new macros;
366 they apply appropriate substitutions to the renamed template files.
367 (install-mingwrt-headers): Explicitly add _mingwrt.h
369 2016-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
371 Make strnlen() available for all MSVCRT.DLL versions.
373 * msvcrt-xref/msvcrt.def.in (strnlen): Mark it as...
374 (__MINGW_DLSYM): ...this, excluding its exposure in libmsvcrt.dll, and
375 thus requiring a dlsym() lookup for versions which provide it.
377 * include/string.h [__MSVCRT_VERSION__>=__MSVCR80_DLL] (strnlen):
378 Declare prototype, for use from these non-free DLLs, otherwise...
379 [_POSIX_C_SOURCE >= 200809L] (strnlen): Define it as an alias for...
380 (__mingw_strnlen): ...this new libmingwex.a function.
382 * mingwex/strnlen.s: New file; it implements...
383 (__mingw_strnlen, __mingw_strnlen_s): ...these new functions.
385 * Makefile.in (libmingwex.a): Add requirement for...
386 (strnlen.$OBJEXT): ...this; add vpath specification for its source.
388 2016-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
390 Use correct paths for partially included header files.
392 * include/io.h include/process.h: Use 'iquote' #include "stdint.h", to
393 ensure that we get stdint.h from the same include directory.
394 * include/stdio.h: Likewise for #include "stdarg.h", and "sys/types.h"
395 * include/wchar.h: Likewise for all of #include "stdio.h", "stdlib.h",
396 "direct.h", "sys/stat.h", "io.h", "time.h", "locale.h", and "process.h"
397 * include/dir.h include/dos.h: Likewise for #include "io.h"
398 * include/direct.h: Likewise for #include "dos.h"
400 2016-04-13 Keith Marshall <keithmarshall@users.sourceforge.net>
402 Generalize procedure for installing manpages.
404 * man/dirname.man: Rename it as...
405 * man/dirname.3.man: ...this, with inherent MANSECT specification.
406 (TH): Use %PAGEREF% substitution for NAME, MANSECT, and DATE.
407 (MS-Windows): Do not append \[tm]; it doesn't render well in Windows
408 console. Further, correct typos; some syntactic adjustments.
410 * Makefile.in (%:%.man): New rule; define it.
411 (%.mancopy, %.mancopy-recursive): New rules; define and use with...
412 (reference_manpage): ...this new macro, defining it to map...
413 (dirname.3.man): ...this as the reference source file for both of...
414 (basename.3, dirname.3): ...these installed manpages.
415 (format_manpage): Add MANSECT and DATE to expansion of...
416 (%PAGEREF%): ...this sed substitution pattern.
418 2016-04-12 Keith Marshall <keithmarshall@users.sourceforge.net>
420 Update several incorrectly attributed header files.
422 * include/direct.h include/io.h include/locale.h include/math.h
423 * include/process.h include/stdio.h include/stdlib.h include/string.h
424 * include/sys/stat.h include/sys/types.h include/time.h: Identify the
425 original author as Colin Peters; Rob Savoye merely imported them into
426 the original CVS repository, when he created it.
428 * include/wchar.h: Likewise, imported by Rob Savoye, but the original
429 source file is unattributed.
431 2016-04-11 Keith Marshall <keithmarshall@users.sourceforge.net>
433 Eliminate all references to non-standard __NO_ISOCEXT macro.
435 * include/math.h: Tidy layout.
436 [!defined __NO_ISOCEXT]: Do not use this ugly double negative; in any
437 case, we do not want to encourage users to define such implementation
438 private macros; instead, prefer to make use of...
439 [defined _ISOC99_SOURCE]: ...this glibc compatible feature test.
440 [__STDC_VERSION__ >= 199901L]: Do not require this; it is implied, by
441 definition, in _ISOC99_SOURCE.
442 * include/stdio.h [!defined __NO_ISOCEXT]: Likewise; replace with...
443 [defined _ISOC99_SOURCE]: ...this, throughout.
445 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
447 Make resetting of __need_typedef requests more robust.
449 * include/sys/types.h [__need_off_t, __need___off64_t]
450 [__need_ssize_t, __need_time_t]: Move corresponding #undef out of, and
451 after the respective conditional blocks, which provide each associated
452 typedef, so ensuring that any repeat request is properly reset.
454 * include/time.h [__need_time_t]: Always delegate to <sys/types.h> for
455 typedef, and reset of request, even in cases where...
456 [_TIME_H]: ...this is already defined.
458 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
460 Add a missing comment terminator.
462 * include/io.h [!(defined _IO_H && defined _WCHAR_H)]: Properly
463 terminate the comment annotating the closing #endif statement.
465 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
467 Declare <dir.h> as formally deprecated.
469 * include/dir.h: Assert copyright.
470 (pragma GCC system_header): Declare it.
471 (_DIR_H): Define as multiple inclusion macro.
472 [!_DIR_H]: Emit "obsolete header" warning message.
474 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
476 Factor out <wchar.h> vs. <io.h> duplicate declarations.
478 * include/io.h: Assert copyright; tidy layout.
479 (_IO_H_): Rename this multiple inclusion guard macro...
480 (_IO_H): ...to this preferred form; do not define it when...
481 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
482 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
483 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
484 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
485 (_wfindnext64i32, _wfindfirst32, _wfindnext32, _findclose): ...only
486 these function prototypes, common to <wchar.h>, together with...
487 (_fsize_t, struct _wfinddata_t, struct _wfinddatai64_t)
488 (struct __wfinddata64_t, struct _wfinddata64i32_t)
489 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these
490 requisite data type definitions.
491 (pragma GCC system_header): Declare it.
492 (__need_intptr_t): Define, and include <stdint.h> to get...
493 (intptr_t): ...this typedef; neither define it locally, nor define...
494 (_INTPTR_T_DEFINED): ...this; delete all references.
495 (_FSIZE_T_DEFINED): Do not define it; delete all references; rather...
496 [!(defined _IO_H && defined _WCHAR)] (_fsize_t): Define it.
497 (FILENAME_MAX): Define it unconditionally.
498 (__struct_finddata_t): New temporary macro; define and use it to...
499 (struct _finddata_t, struct _wfinddata_t, struct _finddatai64_t)
500 (struct _wfinddatai64_t, struct __finddata64_t, struct __wfinddata64_t)
501 (struct _finddata64i32_t, struct _wfinddata64i32_t)
502 (struct _finddata32i64_t, struct _wfinddata32i64_t)
503 (struct __finddata32_t, struct __wfinddata32_t): ...define these.
505 * include/wchar.h (_WFINDDATA_T_DEFINED): Do not define it; delete all
506 references; filter out associated data type definitions, namely...
507 (struct _wfinddata_t, struct _wfinddatai64_t): ...these, and also...
508 (struct __wfinddata64_t, struct _wfinddata64i32_t): ...these, and...
509 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these.
510 (_WIO_DEFINED): Likewise, do not define it; delete all references;
511 filter out associated function prototype declarations for all of...
512 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
513 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
514 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
515 (_wfindnext64i32, _wfindfirst32, _wfindnext32): ...these; reproduce
516 them by selective inclusion of <io.h>.
518 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
520 Factor out <wchar.h> vs. <process.h> duplicate declarations.
522 * include/process.h: Assert copyright; tidy layout.
523 (_PROCESS_H_): Rename this multiple inclusion guard macro...
524 (_PROCESS_H): ...to this preferred form; do not define it when...
525 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
526 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
527 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
528 (_wspawnve, _wspawnvp, _wspawnvpe): ...only these functions.
529 [!__WCHAR_H_SOURCED__] (_PROCESS_H): Define it; declare all functions
530 normally specified herein, including those listed above, as required.
531 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
532 (__need_intptr_t): Define it prior to including <stdint.h>.
533 (pragma GCC system_header): Declare it.
535 * include/wchar.h (_WPROCESS_DEFINED): Delete it; filter out...
536 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
537 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
538 (_wspawnve, _wspawnvp, _wspawnvpe): ...these function prototypes;
539 reproduce them, by selective inclusion of <process.h>.
541 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
543 Enable selective retrieval of intptr typedefs from <stdint.h>.
545 * include/stdint.h: Assert copyright; tidy layout.
546 [__need_intptr_t || __need_uintptr_t] (_STDINT_H): Do not define it;
547 conceal all normally defined data types, except either or both of...
548 [__need_intptr_t] (intptr_t): ...this, and/or...
549 [__need_uintptr_t] (uintptr_t): ...this.
550 (pragma GCC system_header): Declare it.
552 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
554 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
556 * include/sys/stat.h: Assert copyright; tidy layout.
557 (pragma GCC system_header): Declare it.
558 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
559 (_SYS_STAT_H): ...this preferred naming convention; however, when...
560 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
561 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
562 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
563 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
564 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
565 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
566 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
567 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
568 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
569 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
570 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
571 (__struct_stat_defined): New macro; define, and use it to define...
572 (struct stat, struct _stat, struct _stati64, struct __stat64)
573 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
574 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
575 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
576 definition of types size_t and wchar_t; declare all header content,
577 including that declared when __WCHAR_H_SOURCED__ is defined, unless
578 already declared as a result of selective inclusion by <wchar.h>
579 (__need_size_t, __need_wchar_t): Do not define them; consequently,
580 there is no need to include <stddef.h>; do not do so.
582 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
583 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
584 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
585 (struct _stat64i32): Likewise; reproduce them by selective inclusion
588 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
590 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
592 * include/direct.h: Conditionally partition it, such that...
593 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
594 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
595 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
596 (_WDIRECT_DEFINED): Never define it; delete all references.
598 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
599 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
600 selectively #include <direct.h> to reproduce them.
602 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
604 Factor out <direct.h> vs. <dos.h> duplicate declarations.
606 * include/dos.h: Assert copyright; tidy layout.
607 (pragma GCC system_header): Declare it.
608 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
609 (_DOS_H): ...this preferred convention; do not define it when...
610 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
611 (struct _diskfree_t): ...this aggregate data type, together with...
612 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
613 (_getdiskfree): ...this associated function.
614 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
615 emit a warning that this header is obsolete, and should not be used.
616 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
617 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
618 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
619 neither is it necessary to #include <stddef.h>; do not do so. Also,
620 do not #include <_mingw.h> explicitly, but always #include <io.h>,
621 which will implicitly #include <_mingw.h> anyway.
623 * include/direct.h: Assert copyright; tidy layout.
624 (pragma GCC system_header): Declare it.
625 (_DIRECT_H_): Rename this multiple inclusion guard macro...
626 (_DIRECT_H): ...to adopt this preferred naming convention.
627 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
628 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
629 (_getdiskfree): Likewise, do not declare prototype; instead...
630 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
631 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
632 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
633 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
634 although needed, we may inherit it indirectly from <sys/types.h>,
635 included by <io.h> via <dos.h>.
637 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
639 Evade CPP mismatched apostrophe warnings in windres comments.
641 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
643 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
645 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
647 * include/locale.h: Assert copyright; tidy layout.
648 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
649 (_LOCALE_H): ...this; do not define it when...
650 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
651 (_wsetlocale): ...just this one visible function prototype.
652 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
653 (_WLOCALE_DEFINED): Do not define it; delete all references.
654 (pragma GCC system_header): Declare it.
656 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
657 visibility by selective inclusion of <locale.h> instead.
658 (_WLOCALE_DEFINED): Delete all references.
660 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
662 Resolve some "implicit function declaration" warnings.
664 * setargv.c (isspace): Include <ctype.h> for declaration.
665 * cpu_features.h (__cpu_features_init): Declare function prototype.
666 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
668 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
670 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
672 * include/stdlib.h [__WCHAR_H_SOURCED__]
673 (_STDLIB_H): Do not define it; restrict visible declarations to...
674 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
675 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
676 of regular <stdlib.h> content; full content is declared only when...
677 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
678 (_WSTDLIB_DEFINED): Do not define it; delete all references.
679 (pragma GCC system_header): Declare it; tidy layout.
681 * include/wchar.h: Delete duplicated declarations for...
682 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
683 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
684 include <stdlib.h> selectively, to maintain their visibility.
685 (_WSTDLIB_DEFINED): Delete all references.
687 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
689 Relocate misplaced umask() function prototypes.
691 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
692 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
693 here, but leave them for backward, or Microsoft, compatibility.
695 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
697 Correct another _BEGIN_C_DECLS imbalance error.
699 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
700 unbalanced instance deleted; one correctly balanced instance remains.
702 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
704 Support installation of headers with empty parts directory.
706 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
707 (install-mingwrt-headers): ...invoke it; if false, do not perform...
708 (INSTALL_SUB_HEADERS): ...this.
710 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
712 Reinstate typedef for non-standard off64_t.
714 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
715 (__off64_t): ...typedef derived from this; although non-standard, it
716 is gratuitously required when building GCC's libgfortran.a
718 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
720 Correct conditional compilation block nesting errors.
722 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
723 them balanced within, and around, conditional compilation blocks.
725 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
727 Feature test _MINGW32_EXTENDED_SOURCE renamed.
729 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
730 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
731 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
732 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
733 users should enable any conventional feature test which implies it.
735 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
736 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
738 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
740 Correct atexit() and _onexit() export declaration regression.
742 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
743 as DATA; declare them accordingly.
745 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
747 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
749 * include/string.h: Tidy layout.
750 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
751 (_stricmp, _strnicmp): Include their prototypes, selectively from...
752 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
753 * include/parts/strings.h: ...from here; file is obsolete; delete it.
755 * include/string.h (_wcscmpi): Define alias.
756 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
757 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
758 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
759 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
760 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
761 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
762 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
763 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
765 * include/strings.h (_STRINGS_H): Do not define it, when...
766 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
767 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
769 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
771 Refactor to make <parts/time.h> redundant.
773 * include/sys/types.h (time_t, __time32_t, __time32_t)
774 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
775 * include/parts/time.h: ...from here; preserve selective exposure.
777 * include/time.h (time_t, __time32_t, __time32_t): Get them...
778 * include/sys/types.h: ...from here, by selective inclusion.
780 * include/time.h (struct timespec, struct __mingw_extended_timespec)
781 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
782 * include/parts/time.h: ...from here; preserve selective exposure.
784 * include/parts/time.h: Delete file; it is no longer required.
786 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
788 Declare the nanosleep() function where POSIX expects it.
790 * include/time.h (__mingw_sleep): Declare function prototype.
791 (nanosleep): Declare prototype, and provide in-line implementation;
792 this is a reproduction of the original implementation, relocated...
793 * include/unistd.h (nanosleep): ...from here; remove it; hence...
794 (struct timespec): ...this need not be declared here, and there is
795 no need to include <parts/time.h>; remove reference.
797 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
799 Refactor <time.h> vs. <wchar.h> to avoid duplication.
801 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
802 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
803 (struct tm): Delete definition; delegate it, together with each of...
804 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
805 (wcsftime): ...these function prototypes; delete them, but note in
806 comments, that they remain declared, via delegation to...
807 * include/time.h: ...this; include it selectively, subject to...
808 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
809 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
810 [_TIME_H]: Process all definitions and declarations; otherwise...
811 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
812 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
813 (_WTIME_DEFINED): Obsolete macro; delete all references.
815 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
817 Implement support for POSIX "%n$*m$" printf() format control.
819 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
820 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
821 (__pformat_inline__): New macro; define, and use it where appropriate.
822 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
823 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
824 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
825 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
826 (__pformat_argmap_t): ...this new union data type; define it.
827 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
828 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
829 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
830 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
831 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
832 (__pformat_length_modifier, __pformat_check_length_modifier): New
833 locally defined static and/or inline functions; implement, and...
834 (__pformat): ...use them.
836 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
838 Add prototypes for Microsoft's _printf_p() family of functions.
840 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
841 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
842 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
843 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
844 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
845 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
846 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
847 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
848 available for selective inclusion by both <stdio.h> and <wchar.h>...
849 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
851 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
853 Adapt msvcrt-xref to become msvcrt.def.in provider.
855 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
856 filter value assignment; scale it upwards, by a factor of 0x10000.
857 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
858 (%.def) [msvcr*]: Do not preserve comments; define...
859 (__DLLNAME__): ...this preprocessor symbol.
861 * msvcrt.def.in: Content is obsolete; delete file and replace with...
862 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
863 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
864 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
865 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
866 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
868 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
870 Import msvcrt-xref documentation resources.
872 * msvcrt-xref: New directory.
873 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
874 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
875 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
876 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
878 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
880 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
882 * include/wchar.h: Some minor layout adjustments.
883 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
884 within the scope of reading <wchar.h>; undefine it at end of file.
885 (struct tm): Do not define; it is sufficient to keep it opaque.
886 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
887 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
888 directly; delegate to indirect definition by including <stdio.h>.
889 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
890 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
891 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
892 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
893 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
894 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
895 indirectly, by selective inclusion from <stdio.h>; hence include it.
897 * include/stdio.h: Assert copyright; tidy layout.
898 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
899 (_STDIO_H): ...this, but defined conditionally, subject to...
900 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
901 entities which are required by <wchar.h>; do not define...
902 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
903 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
904 are normally specified within <stdio.h>, INCLUDING those specifically
905 itemised above, as selectively required by <wchar.h>.
907 * pseudo-reloc.c: Some minor layout adjustments.
908 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
909 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
910 include <stddef.h> to guarantee it.
912 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
914 Enable selective definition of POSIX system types.
916 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
917 any specific __need_TYPE selector having been set prior to inclusion;
918 DO define it when no such selector is present, and undefine all such
919 selectors as may have been set, after evaluation of their effects.
920 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
921 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
922 accommodates reorganization of the file, to achieve a tidier layout.
923 (__have_typedef_off_t): New repeat definition guard; define it for
924 compilers which may choke on any repeated typedef for either of...
925 (off_t, _off_t): ...these; make them selectively defineable for...
926 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
927 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
928 in either case, redefine them in terms of...
929 (__off32_t): ...this new internal type, for consistency with...
930 (__off64_t): ...this previously defined non-standard type; also make
931 it selectively defineable, either by...
932 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
933 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
934 (__have_typedef___off64_t): New repeat definition guard; define it.
935 (ssize_t, _ssize_t): Also make them selectively defineable, on...
936 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
937 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
938 (__have_typedef_ssize_t): New repeat definition guard; define it.
940 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
942 Avoid user namespace pollution by non-standard type 'off64_t'.
944 * include/sys/types.h (off64_t): Rename it as...
945 (__off64_t): ...this implementation-private alternative name, so
946 eliminating the potential for user namespace pollution.
948 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
949 return type, and type of offset argument, in both prototype and inline
950 implementation; note that this addresses the issue of pollution in the
951 user namespace, while avoiding the issue of MinGW-Bug [#2024].
953 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
954 instead of 'off64_t', as offset argument type in function prototypes.
955 (ftello64): Likewise, for return type of inline function.
957 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
958 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
959 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
961 * mingwex/stdio/fseeko64.c: Assert copyright.
962 (fseeko64): Use '__off64_t' per modified function prototype.
964 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
966 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
968 * mingwex/ofmtctl.c: New file; it implements...
969 (_mingw_output_format_control): ...this new function; it provides
970 additional MinGW specific printf() format processing options.
972 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
974 * include/stdio.h (_mingw_output_format_control): Declare it.
975 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
976 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
977 manifest constant expressions; define them.
979 * mingwex/stdio/pformat.c: Revise licensing terms.
980 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
981 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
982 modifier; this matches the behaviour specified by ISO-C99, else...
983 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
984 previous MSVC compatible behaviour, treating it as an `L' modifier.
985 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
987 * mingwex/ofmt.c (ARGLIST): Subsume references to...
988 (ARGTYPE): ...this now obsolete macro; delete it throughout.
989 (update_output_format_flag): New inline function; it restricts flag
990 operations to affect only Microsoft's exponent digit bits.
991 [FUNCTION == _set_output_format]: Use it.
992 [FUNCTION == _get_output_format]: Likewise.
994 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
996 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
998 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
999 defined, when implied by any STDC or POSIX version selection, viz. ...
1000 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
1002 * include/stdlib.h: Assert copyright; tidy layout.
1003 (_STDLIB_H_): Multiple inclusion guard macro renamed...
1004 (_STDLIB_H): ...to this, preferring no trailing underscore.
1005 [!defined __NO_ISOCEXT]: Delete double negative references; use...
1006 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
1007 (lldiv_t): ...defining this C99 specific aggregate data type, and...
1008 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
1009 (wcstold, _Exit): ...declaring these C99 function prototypes.
1010 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
1011 future removal; not in MSVCRT.DLL, these conform to no known standard.
1012 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
1013 (__strtod): ...this libmingwex.a provided function; it handles string
1014 representations of hexadecimal-floats, infinities and NaNs, whereas...
1015 (strtod): ...this MSVCRT.DLL implementation does not.
1016 (__MSVCRT_VERSION__): Prefer symbolic comparison...
1017 [>= __MSVCR80_DLL]: ...for this requirement.
1019 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1021 Rationalize definition of struct timespec.
1023 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
1024 tv_sec field, in place of anonymous union, thus avoiding missing brace
1025 warnings when initializing; leave a copy of the previous definition...
1026 (struct __mingw32_expanded_timespec): ...named thus.
1028 * include/unistd.h (nanosleep): Adjust inline implementation, to match
1029 altered specification of tv_sec field in struct timespec.
1031 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
1032 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
1034 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
1035 convenience function; defined as inline, with __LIBIMPL__ equivalent,
1036 it facilitates interpretation of an instance of struct timespec as if
1037 it were defined as struct __mingw32_expanded_timespec.
1039 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1041 Make strings.h mostly POSIX.1-2008 compliant.
1043 * include/strings.h: Rewritten. Do not include...
1044 (string.h): ...this; mandated by POSIX.1, it now defines...
1045 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
1046 prototypes, possible in-line implementations, and JMPSTUB references
1047 to corresponding external implementations, which will now become
1048 automatically created within libmingwex.a
1050 * include/parts/strings.h: New file; it declares prototypes for...
1051 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
1052 string.h, but we also require them in strings.h
1054 * include/parts/wchar.h: New file; it declares prototypes for all wide
1055 character functions which MSVC specifies in both wchar.h and string.h
1057 * include/string.h: Miscellaneous layout adjustments.
1058 (strcasecmp, strncasecmp): Delete; they belong in strings.h
1059 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
1060 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
1061 include them from parts/wchar.h instead.
1063 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
1064 prototypes; include them from parts/wchar.h instead, so making this
1065 guard macro redundant; delete it.
1067 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
1068 (wcscmpi.$OBJEXT): Implementations are now automatically generated
1069 from header file, for inclusion in libmingwex.a; remove free-standing
1070 implementations from the entire family of liboldname libraries, and...
1071 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
1072 files; they are no longer required.
1074 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1076 Incorporate build system updates from w32api package.
1078 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
1079 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
1080 (install-strip, uninstall): New make command goals; implement them.
1081 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
1082 (devdist, dlldist): ...these have no need to strip explicitly.
1083 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
1084 (install-mingwrt-headers): ...here.
1086 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1088 Adapt platform feature checks to NTDDI_VERSION conventions.
1090 * include/_mingw.h: Assert copyright; include w32api.h
1091 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
1092 to w32api/include/w32api.h, whence they remain in effect.
1093 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
1095 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1097 Correct mismatched #if/#endif from preceding commit.
1099 * include/_mingw.h (#pragma GCC system_header)
1100 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
1101 correcting for inadvertent removal of matching #endif introduced by
1102 preceding 2015-06-19 commit.
1104 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1106 Define symbolic names for alternative Microsoft runtime DLLs.
1108 * include/msvcrtver.h: New file; it assigns a value for...
1109 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
1110 (__MSVCR60_DLL): ...this new manifest constant, with each of...
1111 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
1112 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
1113 ...these also defined, as user assignable alternatives.
1115 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
1116 to establish its default value.
1118 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1120 Track dependencies on modified system header files.
1122 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
1124 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1126 Correct an anomaly in stage 1 only build procedure.
1128 * Makefile.in (all-gcc): New goal; it is an alias for...
1129 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
1130 (all-mingwrt-stage-1-only): ...this; upate all references.
1131 (active-goals): Adjusted accordingly; it now reguires...
1132 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
1133 (install): Adjusted, as directed by...
1134 (DEFAULT_MAKECMDGOALS): ...this.
1136 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1138 Prefer our hypot() implementation in complex maths operations.
1140 * mingwex/complex/cabs_generic.c: New file; it replaces...
1141 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
1142 * mingwex/complex/cabsl.c: ...these.
1144 * mingwex/complex/catan_generic.c: New file; it replaces...
1145 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
1146 * mingwex/complex/catanl.c: ...these.
1148 * mingwex/complex/clog_generic.c: New file; it replaces...
1149 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
1150 * mingwex/complex/clogl.c: ...these.
1152 * mingwex/complex/cpow_generic.c: New file; it replaces...
1153 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
1154 * mingwex/complex/cpowl.c: ...these.
1156 * mingwex/complex/csqrt_generic.c: Do not use...
1157 (_hypot): ...this Microsoft form of function reference; use...
1158 (hypot): ...this ANSI standard form instead.
1160 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1162 Correct C++ compilation anomaly with hypotf() in cmath header.
1164 * include/math.h: Add copyright notice; generally tidy layout.
1165 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1166 (hypotf): Delete inline implementation; it did not properly handle
1167 range errors, and was uncompilable with optimization when any g++
1168 option implying __STRICT_ANSI__ conformity was specified.
1169 (_MATH_H_): Rename this multiple inclusion guard...
1170 (_MATH_H): ...to this.
1172 * mingwex/math/hypot_generic.c: New file; it implements...
1173 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
1174 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
1176 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1178 Prepare and tag all files for release of mingwrt-3.21.1.
1180 * configure.ac (AC_INIT): Adjust package version argument.
1181 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
1182 (__MINGW32_VERSION): ...increment this to match.
1184 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1186 Refactor to avoid possible time_t conflicts across headers.
1188 * include/parts/time.h (struct timespec): Make it more descriptive of,
1189 and better able to accommodate, potential ambiguity relating to...
1190 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
1191 whence they may be identically imported into each of...
1192 * include/sys/types.h include/time.h include/wchar.h: these; delete
1193 duplicate typedefs, and import accordingly.
1195 * include/sys/types.h: Add licence; general comment additions.
1196 (_TYPES_H_): Rename multiple inclusion guard macro...
1197 (_SYS_TYPES_H): ...to this.
1199 * include/time.h: Add licence; general comment/layout adjustments.
1200 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1201 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
1202 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
1203 (_TIME_H_): Rename multiple inclusion guard macro...
1204 (_TIME_H): ...to this.
1206 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
1207 (struct timespec): ...of this.
1209 * include/wchar.h: Add licence; general comment/layout adjustments.
1210 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1211 [GCC] (system_header): Add pragma, identifying header as such.
1212 (_WCHAR_H_): Rename multiple inclusion guard macro...
1213 (_WCHAR_H): ...to this.
1215 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1217 Remove obsolete varargs.h header file.
1219 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
1220 a GCC header which is no longer supported, and was always intended for
1221 ultimate removal; now is the long overdue time to do so.
1223 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1225 Correct improper unistd.h function attribute declarations.
1227 * include/unistd.h (_cdecl): Correct usage throughout; should be...
1230 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1232 Fix GLOB_DOOFFS initialization bug.
1234 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
1235 (gl_data->gl_offs): ...this is properly initialized to zero.
1237 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1239 Tag all files for release of mingwrt-3.21.
1241 * include/_mingw.h: Adjust version accordingly.
1243 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1245 Improve usage notes in stdlib.h, for mkstemp() function.
1247 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
1248 an original comment, explaining the need to use _O_TEMPORARY, from...
1249 * mingwex/mkstemp.c: ...here; delete trailing white space.
1251 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1253 Eliminate some potential definition inconsistencies.
1255 * include/stdio.h: Cosmetic formatting change, relating to...
1256 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
1257 unconditionally; this allows the compiler to check for consistency
1258 with their primary definitions in stdio.h
1260 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1262 Suppress expected warning diagnostics in LIBIMPL builds.
1264 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
1265 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
1266 GCC flag to supress warnings relating to deprecated declarations.
1268 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1270 Provide more POSIX conforming sleep() functions.
1272 * include/sys/types.h (useconds_t): Make it explicitly long; int may
1273 be okay, but doesn't guarantee enough bits; mark as deprecated, since
1274 POSIX has declared it "obsolete", and no longer specifies it.
1276 * mingwex/usleep.c: Delete file; it provided an implementation of...
1277 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
1278 its error handling was hopelessly broken; replace it with...
1279 * mingwex/nsleep.c: ...this new file; it implements...
1280 (__mingw_sleep): ...this generic helper function; it supports sleep
1281 capability with interval specification to nanosecond precision.
1283 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
1284 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
1285 (sleep, nanosleep): ...these current POSIX functions, and also...
1286 (usleep): ...this obsolete one; mark it as deprecated.
1288 * include/parts: New directory; it is intended to host partial header
1289 implementations, for content which must be shared among arbitrary sets
1290 of multiple standard header files.
1292 * include/parts/time.h: New file; nominally declaring time.h content.
1293 (struct timespec): Declare it; it is currently used within unistd.h,
1294 to facilitate the __CRT_INLINE implementation of nanosleep().
1296 * Makefile.in (libmingwex.a): Remove reference to...
1297 (usleep.$OBJEXT): ...this; replace it with a reference to...
1298 (nsleep.$OBJEXT): ...this alternative.
1299 (mingwrt-includedirs): Add prerequisite to create...
1300 ($includedir/parts): ...this new directory; it is populated by...
1301 (install-mingwrt-headers): ...this rule; add requisite command.
1303 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1305 Delete an unnecessary Unicode wrapper file.
1307 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
1308 UTF-16LE API from dirent.c, without any need for this wrapper.
1310 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1312 Some further inline function rationalization.
1314 * include/io.h (_CRTALIAS): Replace all references...
1315 (__CRT_ALIAS): ...using this syntactically preferred form.
1316 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
1317 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1319 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
1320 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1322 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
1323 * mingwex/ftruncate.c: Likewise.
1325 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1326 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
1328 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1330 Some POSIX feature test adjustments.
1332 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
1333 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
1334 (mkdtemp): This didn't become available until SUSv4, so requires...
1335 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
1337 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1339 Another CRT_INLINE function implementation rationalization.
1341 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
1342 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
1343 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1345 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
1346 (libmingwex.a): Delete obsolete dependency on...
1347 (imaxabs.$OBJEXT): ...this.
1349 * mingwex/imaxabs.c: File is now redundant; delete it.
1351 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1353 More rationalization of CRT_INLINE function implementations.
1355 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
1356 (ftello64): Add __LIBIMPL__ specification for extern implementation.
1357 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1359 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
1360 * mingwex/stdio/ftell064.c: Likewise.
1362 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1363 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
1365 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1367 Don't implicitly define _POSIX_C_SOURCE too early.
1369 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
1370 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
1371 that it is not accidentally activated by implied _POSIX_C_SOURCE.
1373 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1375 Correct complex arcsin computation per issue [#2245].
1377 * mingwex/complex/casin_generic.c: New file; it replaces...
1378 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
1379 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
1381 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1383 Correct complex square root computation per issue [#2246].
1385 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
1386 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
1387 (hypot): ...this libmoldname.a indirection.
1389 * mingwex/complex/csqrt_generic.c: New file; it replaces...
1390 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
1391 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
1393 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1395 Adjust header guards to resolve issue [#2244].
1397 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
1398 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
1399 ...when any of these prevail, or as appropriate to correspond with...
1400 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
1402 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
1403 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
1404 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
1405 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
1407 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1409 Add implementation of mkstemp() and mkdtemp() functions.
1411 * mingwex/cryptnam.c: New file; it implements...
1412 (__mingw_crypto_tmpname): ...this helper function; it generates a
1413 cryptographically secure sequence of characters, used as the random
1414 component in temporary file and directory names.
1416 * mingwex/mkstemp.c: New file; it implements...
1417 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
1419 * mingwex/mkdtemp.c: New file; it implements...
1420 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
1422 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
1423 function implementation, with LIBIMPL extern semantics, in terms of...
1424 (__mingw_mkstemp): ...this; also declare prototype, and define...
1425 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
1426 (_MKSTEMP_SETMODE): New macro; define it, also providing...
1427 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
1428 (mkdtemp): Declare prototype; provide inline implementation, with
1429 JMPSTUB extern semantics, in terms of...
1430 (__mingw_mkdtemp): ...this; declare prototype.
1432 * Makefile.in (libmingwex.a): Add dependency rule, to include...
1433 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
1435 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1437 More JMPSTUB rationalization of inline functions.
1439 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
1440 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
1441 appropriate MSVCRT.DLL equivalent entry point.
1443 * mingwex/_Exit.c: File is now redundant; delete it.
1444 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
1445 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
1447 * Makefile.in (jmpstub_awk_script): Add support for...
1448 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
1449 (libmingwex.a): Remove dependencies on deleted files, namely...
1450 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
1451 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
1453 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1455 Correct omission of complex conjugate functions from libmingwex.a
1457 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
1458 (creal, crealf, creall): Likewise, for consistency of implementation.
1459 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
1461 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
1462 declarations; they should be interpreted analogously to __CRT_ALIAS.
1463 (libmingwex.a): Remove object file references for functions which are
1464 now declared as LIBIMPL, and sort the remainder in ASCII collating
1465 order; deleted function references comprise the set consisting of...
1466 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
1467 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
1468 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
1470 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
1471 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
1472 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
1473 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
1474 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
1476 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1478 Back-port improved asinh() implementation from 4.0-dev branch.
1480 * mingwex/math/asinh_generic.c: New file; it replaces...
1481 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
1482 ...all of these; delete them.
1484 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1486 Enable remake of lost LIBIMPL object files.
1488 * Makefile.in (libimpl_remake): New macro; define it, and...
1489 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
1491 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1493 Implement more robust _get_output_format fallback handling.
1495 * mingwex/ofmt.c: New file; it implements...
1496 (__mingw_output_format_flag): ...backing store, used by...
1497 (__mingw_get_output_format, __mingw_set_output_format): ...these
1498 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
1499 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
1500 version specific Microsoft APIs, which are also supported by some
1501 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
1502 (__mingw_get_output_format_fallback): Implement; it is aliased to...
1503 (__mingw_set_output_format_fallback): ...this; together they provide
1504 the emulation support for the preceding pair of functions, when they
1505 are not available within the run-time platform MSVCRT.DLL
1506 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1507 Implement them; they wrap, and if necessary emulate...
1508 (_get_printf_count_output, _set_printf_count_output): ...these.
1509 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
1510 (__mingw_set_printf_count_output_fallback): ...this; together they are
1511 required to support emulation of the preceding pair of functions, when
1512 they are not available within the run-time platform MSVCRT.DLL
1514 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
1515 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
1516 (__mingw_get_output_format, __mingw_set_output_format)
1517 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1518 Unconditionally declare their prototypes, for subsequent inline use.
1519 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
1520 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
1521 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
1522 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
1523 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
1524 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
1525 represent a compilable token.
1527 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
1528 _get_output_format; consult __mingw_output_format_flag directly.
1530 * ofmt_stub.s: No longer required; delete it.
1532 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
1533 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
1534 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
1535 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
1536 all are compiled from ofmt.c
1538 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1540 Do some more essential build tree clean up.
1542 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
1543 in the way of a successful rebuild from clean.
1545 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1547 Implement wrappers for emulation of POSIX dlfcn API.
1549 * include/dlfcn.h: New file; it declares the API.
1550 * mingwex/dlfcn.c: New file; implement it, with access via...
1551 (__mingw_dlfcn): ...this publicly addressable vector table.
1553 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1554 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1555 (__LIBIMPL__): ...this automatic interface generator; implement it.
1556 (libstub_refnames): New macro; it is adapted from and replaces...
1557 (jmpstub_refs): ...this; when it is then invoked twice to build...
1558 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1559 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1560 (libimpl_awk_script): New inline script; it handles automated builds
1561 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1562 (libimpl_sed_script): New inline script; it prepares intermediate C
1563 source code for LIBIMPL interfaces, as required to satisfy these...
1564 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1565 (LIBIMPL_CFLAGS): New macro; define it.
1567 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1569 Move libgen functions to __mingw_ pseudo-namespace.
1571 * mingwex/dirname.c (dirname): Rename function, as implemented...
1572 (__mingwex_dirname): ...to this.
1574 * mingwex/basename.c (basename): Rename function, as implemented...
1575 (__mingwex_basename): ...to this.
1577 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1578 prototypes, matching and augmenting original declarations for...
1579 (dirname, basename): ...these; reimplement as inline aliases, with
1580 __JMPSTUB__ references to the renamed implementation entry points.
1582 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1584 Implement new command line argument globbing strategy.
1586 * include/_mingw.h: Backport feature defines from master...
1587 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1588 constants; define them. They select the preferred globbing algorithm.
1589 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1590 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1591 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1592 they enable optional additional features supported by this algorithm.
1593 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1595 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1597 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1598 * setargv.c: ...new file; it implements the initialization mechanism
1599 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1600 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1601 it invokes the algorithm via an API similar to that described by MSDN,
1602 while continuing to support our original _CRT_glob interpretation.
1603 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1604 algorithm, via the MSDN-alike API, by calling back to...
1606 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1607 relocated to here, as a publicly addressable function; formerly...
1608 (__mingw_CRTStartup): ...called directly from here, we now redirect
1609 the call through _setargv(), whence it may be called indirectly.
1611 * init.c: Redundant file; delete it. It originally provided...
1612 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1613 original static attribute removed, to allow global addressing.
1615 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1617 Backport glob implementation from master to legacy.
1619 * include/glob.h: New file; copy it from master branch.
1620 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1621 (glob, globfree): ...each of these, respectively.
1623 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1624 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1625 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1626 (accept_glob_nocheck_match): New static function; it adds support for
1627 avoidance of globbing on patterns with no globbing token, so avoiding
1628 the case transliteration effect reported as MinGW-Bug #2106.
1629 (glob_match): Use it.
1631 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1633 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1635 Implement conventionally named dirent function trampolines.
1637 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1638 which redirects a conventionally named function call to its __mingw_
1639 pseudo-namespace implementation.
1641 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1642 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1643 appropriate protocol for compiling *.sx files, (supported natively by
1644 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1646 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1647 yet provide it, so we define it ourselves; deploy it for *.sx files.
1648 (Makefile.stub): New sinclude file; create it dynamically, using...
1649 (jmpstub_awk_script): ...this new inline script, which is based on...
1650 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1651 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1652 (mostlyclean-local): Remove Makefile.stub; do likewise...
1653 (Makefile): ...when remaking this, to ensure that both will be
1656 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1658 Make dirent implementation namespace and time_t clean.
1660 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1661 macros; define them. They facilitate identification of symbols which
1662 must be compiled with `extern "C"' binding, when compiling C++ code.
1663 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1664 (_CRTALIAS): ...this, which is to be considered as deprecated.
1665 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1666 __CRT_ALIAS build hints, while remaining transparent to GCC.
1667 (UNICODE, _UNICODE) [user defined]: Define consistently.
1669 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1670 4.0-dev branch, with additional ABI changes to improve stability).
1671 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1672 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1673 Add `__mingw_' prefix to all publicly exposed symbol names.
1674 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1675 implemented functions; they replace Microsoft's ambiguously defined
1676 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1677 resulting from the ambiguous size of Microsoft's time_t.
1679 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1680 removing unnecessary time_t and file size fields; (our replacements
1681 for _findfirst, and _findnext do not require them to be present).
1682 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1683 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1684 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1685 Adjust prototypes, making them inline aliases for public symbols which
1686 are now qualified by the `__mingw_' prefix; add build hints to support
1687 compilation of addressable stubs, with the original symbol names.
1688 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1689 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1690 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1691 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1692 New macros; define them. (These show availability of optional fields
1693 within the dirent struct, which client code may wish to access).
1695 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1697 Correct improper naming of assembly language source files.
1699 * mingwex/math/*.S: Rename all files with this extension...
1700 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1701 not extended `assembler-with-cpp' as implied by the former extension);
1702 adjust all internal `.file <name>' references accordingly.
1704 * Makefile.in (vpath %.S): Adjust reference to locate files....
1705 (vpath %.s): ...now renamed thus.
1707 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1709 Streamline the build system infrastructure.
1711 * configure.ac: New file; it replaces...
1712 * configure.in: ...this; (name is obsolete); delete it.
1714 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1715 make invocations, when processing subdirectories, and add automatic
1716 dependency tracking for all generated files.
1718 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1720 * mingwex/Makefile.in: No longer required; delete it.
1721 * profile/Makefile.in: Likewise.
1723 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1724 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1726 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1727 longer relevant, and I have no desire to maintain it.
1729 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1731 Add another more rigorous __STRICT_ANSI__ filter.
1733 * include/limits.h [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
1734 * include/sys/param.h [PATH_MAX defined] (MAXPATHLEN): Alias it.
1735 [PATH_MAX not defined] (MAXPATHLEN): Define it directly.
1737 2012-08-02 Ivan Maidanski <ivmai@users.sourceforge.net>
1739 Add missing function prototypes per issue [#1305].
1741 * include/process.h [#ifndef _WPROCESS_DEFINED]
1742 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve)
1743 (_wexecvp, _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe)
1744 (_wspawnv, _wspawnve, _wspawnvp, _wspawnvpe): Declare them.
1746 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1748 Add function prototype declarations per issue [#1293].
1750 * include/stdio.h (_lock_file, _unlock_file): Declare them.
1752 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1754 Apply some more rigorous __STRICT_ANSI__ filtering.
1756 * include/stdio.h (_getws, _putws, _wfdopen, _wfopen)
1757 (_wfreopen, _wfsopen, _wtmpnam, _wtempnam, _wrename, _wremove)
1758 (_wperror, _wpopen): Do not declare these functions unless...
1759 [#ifndef __STRICT_ANSI__]: ...this is satisfied.
1761 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1763 Add string to 64-bit integer conversion function prototypes.
1765 * include/stdlib.h (_strtoi64, _strtoi64_l, _strtoui64, _strtoui64_l)
1766 (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l): Declare them.
1767 * include/wchar.h (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l):
1768 Likewise; these are duplicates of the <stdlib.h> declarations.
1770 2012-08-01 Earnie Boyd <earnie@users.sourceforge.net>
1772 Update for _WIN64 exception handler readiness.
1774 * include/excpt.h [_WIN64] (__try1, __except1): Add alternative inline
1775 assembly code implementation, based on X86-64 architecture.
1777 2012-07-30 Earnie Boyd <earnie@users.sourceforge.net>
1779 Correct missing inclusion of <_mingw.h>.
1781 * include/stdint.h: Add omitted #include; all mingwrt headers are
1782 expected to include this; it is required to define __int64.
1784 2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>
1786 Correct prototypes for _wfindfirst()/_wfindnext() function family.
1788 * include/io.h (_wfindfirst, _wfindfirst32, _wfindfirsti64)
1789 (_wfindfirst32i64, _wfindfirst64i32): Return type changed to intptr_t.
1790 (_wfindnext, _wfindnext32, _wfindnexti64, _wfindnext32i64)
1791 (_wfindnext64i32, _wfindnext64): Type of parameter #1 must match.
1793 2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
1795 Avoid potential GCC "missing function prototype" warnings.
1797 * include/stdio.h (getc, putc, getchar, putchar, fopen64)
1798 (ftello64): Provide a function prototype declaration for each of
1799 these, prior to the corresponding inline implementation.
1801 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1803 * include/_mingw.h: Increment version to 3.20.
1805 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1807 * tlsmthread.c: Update to reflect changes in tlssup.c.
1808 * tlssup.c: code clean-up.
1810 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1812 * include/_mingw.h: Increment version to 3.19.
1814 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1816 * include/float.h: Modify guard to accomodate CLang.
1818 Thanks to Ruben Van Boxem for the report.
1820 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1822 * tlssup.c: Remove mingwm10.dll fallback.
1824 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1826 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1828 Thanks to bvassche for the report.
1830 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1832 Correct checking for short option matches in getopt_long_only().
1834 * mingwex/getopt.c (getopt_verify): New static inline function.
1835 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1836 possible short option match after failing to match, or ambiguously
1837 matching as a long option.
1839 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1841 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1843 Thanks to cgf for the report.
1845 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1847 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1848 compiles with __STRICT_ANSI__.
1850 Thanks to Felipe Contreras for the report.
1852 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1854 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1857 Thanks to Tobias Burnus for the report.
1859 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1861 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1862 by wrapping the functions in brackets.
1864 Thanks to Kai Tietz for the report.
1866 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1868 * Makefile.in: Add support for msvcr100.dll.
1869 * msvcrt.def.in: Ditto.
1871 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1873 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1874 not always available, go the long way and use the explicit named union
1875 members, which are also declared in winnt.h.
1877 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1879 * mingwex/isblank.c: Fix typo in declaration.
1881 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1883 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1884 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1885 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1886 is included before <ctype.h>.
1888 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1890 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1892 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1894 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1896 Correct hexadecimal formatting of double and long double values.
1898 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1899 (__pformat) [A format]: Cast double values to long double, and use...
1900 (__pformat_xldouble): ...this instead, with corrected adjustment of
1901 exponent and alignment of mantissa, when formatting subnormals.
1903 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1905 * include/dirent.h (dd_handle): Define as intptr_t.
1907 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1909 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1912 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1914 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1915 semantically identical MAX_PATH; correct value is 260.
1917 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1919 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1920 system include search path; (issue reported by Mark Brand).
1922 * include/float.h: Add multiple inclusion guard around...
1923 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1924 only when this define does not indicate that it has already been seen;
1925 update comments to document rationale; move it within the scope of...
1926 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1927 GCC's float.h, after an appropriate complementary modification, need
1928 not perform a further include path search when this implementation
1929 specific extension has already been processed.
1931 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1933 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1934 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1935 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1936 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1937 _findnexti64): Correct definition.
1939 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1941 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1943 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1945 * include/_mingw.h: Increment version to 3.18.
1947 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1949 * include/stdio.h: (_vscprintf, _vscwprintf)
1950 * include/tchar.h: (_vsctprintf)
1952 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1954 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1955 (initial implementation)
1957 * new type: __time32_t
1959 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1960 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1961 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1963 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1964 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1965 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1966 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1967 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1968 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1969 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1970 _wstat32i64, _wstat64i32,_wutime32
1972 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1973 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1974 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1975 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1976 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1978 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1980 Implement TLS Callback.
1982 * tlsmcrt.c: New file.
1983 * tlsmthread.c: Ditto.
1986 * Makefile.in: Include new files.
1987 * crt1.c: Implement TLS Callback.
1989 * mthr_stub.c: Remove.
1991 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1993 * include/_mingw.h: Increment version to 3.17.
1995 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1997 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1998 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
2000 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2002 * include/io.h (_open_osfhandle): Correct definition.
2004 Thanks to Alexander Shaduri for the information.
2006 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
2008 Final sync of pseudo-reloc.c with mingw64 and cygwin
2009 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
2010 regarding error messages.
2012 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
2014 Honor DESTDIR for winsup/mingw and winsup/w32api.
2015 Detect and report error if installation paths are win32
2016 format, but DESTDIR is non-empty.
2018 * Makefile.in (DESTDIR): Honor per convention.
2019 (need-DESTDIR-compatibility): New macro; define it and a
2021 (fail-DESTDIR-compatibility): New dependency goal.
2022 (install-dirs): Require need-DESTDIR-compatibility.
2023 * mingwex/Makefile.in (DESTDIR): Honor per convention.
2024 (need-DESTDIR-compatibility): New macro; define it and a
2026 (fail-DESTDIR-compatibility): New dependency goal.
2027 (install): Require need-DESTDIR-compatibility.
2028 * profile/Makefile.in: Ditto.
2030 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
2032 Sync pseudo-reloc.c with mingw64
2033 * psuedo-reloc.c: Remove unnecessary includes.
2034 Forward declare _pei386_runtime_relocator.
2035 Decorate _image_base__ symbol with macro for
2036 mingw64 compatibility. Whitespace changes.
2037 (__print_reloc_error): Renamed to...
2038 (__report_error): This. "Returns" void, and
2039 always aborts. Now used on all platforms.
2040 (__write_memory): Remove special case error handling
2041 for different platforms - always call __report_error.
2042 (do_pseudo_reloc): Remove special case error handling
2043 for different platforms - always call __report_error.
2044 (_pei386_runtime_relocator): Decorate _image_base__
2045 symbol with mingw64 compatibility macro.
2047 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
2049 Sync pseudo-reloc.c with cygwin/lib/
2050 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
2051 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
2052 for fatal error handling that is consistent with cygwin process
2053 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
2054 is unique to each address space, across fork().
2055 [CYGWIN] (__print_reloc_error): New function for reporting
2056 errors in a manner supported by cygwin at this early stage of
2057 the process life-cycle.
2058 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
2059 performed only once for each address space, but are repeated
2060 after fork() in the new address space.
2061 [MINGW] (__write_memory): Ensure that b is always initialized
2062 by call to VirtualQuery, even if -DNDEBUG.
2064 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2066 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
2067 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
2069 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
2070 (PFORMAT_HASHED): ...this formatting attribute; honour only user
2071 specified format qualifiers, except in special case...
2072 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
2073 (PFORMAT_ZEROFILL): ...this default formatting attribute...
2074 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
2077 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2079 Avoid multiple link time definitions of _printf() for C++;
2080 (problem reported by Alexander Shaduri, via MinGW-users ML).
2082 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
2083 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
2085 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2087 * include/_mingw.h: Increment version to 3.16.
2089 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2091 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
2092 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
2093 __fp_unordered_compare): Add prototypes.
2094 * include/stdio.h (vsnwprintf): Add prototype.
2095 * include/wchar.h (vsnwprintf): Add prototype.
2096 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
2097 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
2099 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2101 Correct disposition of wchar_t output in printf().
2103 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
2104 (argval): ...this, in inner scope, with singular type `wchar_t'; use
2105 it to pass one wchar to __pformat_wputchars(), for output.
2107 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2109 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
2111 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2113 Convert to monolithic configuration procedure.
2115 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
2116 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
2117 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
2118 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
2119 (CRT0S): Relocate from `profile'; define it as appropriate.
2120 (LIBM_A): Define and AC_SUBST it unconditionally.
2121 (AC_CONFIG_SUBDIRS): Remove; none to configure.
2122 (AC_OUTPUT_FILES): Add `Makefile' for each of...
2123 (mingwex, profile): ...these subdirectories.
2125 * configure: Regenerated.
2127 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
2128 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
2129 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
2130 (SUBDIRS): Define explicitly, to run recursive `make' in...
2131 (mingwex, profile): ...these; simplify build commands...
2132 (rootme, rootsrc): ...without these shell variables.
2133 (all, subdirs): Delete redundant build commands.
2134 (FIXME): Flag various issues for follow up.
2136 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
2137 (top_srcdir): ...this new macro; let AC_SUBST define it.
2138 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2139 (Makefile): Make it depend on...
2140 (top_builddir/config.status): ...this, itself depending on...
2141 (top_srcdir/configure): ...this.
2142 (FIXME): Flag various issues for follow up.
2144 * mingwex/aclocal.m4: File no longer required; delete it.
2145 * mingwex/configure mingwex/configure.in: Likewise.
2147 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
2148 (top_srcdir): ...this new macro; let AC_SUBST define it.
2149 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2150 (Makefile): Make it depend on...
2151 (top_builddir/config.status): ...this, itself depending on...
2152 (top_srcdir/configure): ...this.
2153 (FIXME): Flag various issues for follow up.
2155 * profile/aclocal.m4: File no longer required; delete it.
2156 * profile/configure profile/configure.in: Likewise.
2158 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2160 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
2161 to complaints that it causes issues.
2163 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
2165 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
2167 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2169 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
2170 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
2171 to all inline functions.
2173 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2175 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
2176 * CRT_fp10.c: Ditto.
2178 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2180 * cpu_features.c: replace gcc-specific construct with portable alternative
2181 and match the code a few lines above.
2182 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
2184 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2186 * include/_mingw.h: Changes required for PCC compiler.
2188 2009-07-18 Jeff Lu <jll544@yahoo.com>
2190 * mingwex/usleep.c: round up to next ms
2192 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2194 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
2195 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
2196 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
2197 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
2199 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2201 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
2203 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
2205 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
2206 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
2207 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
2208 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
2209 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
2210 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
2211 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
2212 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
2213 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
2214 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
2215 sources as of Apr. 20, 2009. Update further to match the sources in
2216 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
2217 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
2218 double/ulong union from U to dbl_union for better grepping and white-
2221 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2223 * include/stdlib.h (_wtof): Define.
2225 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
2227 * include/stdint.h (int_fast8_t): Specify as signed char.
2228 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
2229 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
2231 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
2233 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
2235 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2237 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
2238 (Requested by Robert Riebisch)
2240 * mingwex/getopt.c (getopt_parse): Track external increments of...
2241 (optind): ...this global variable.
2243 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2245 * include/_mingw.h: Increment version to 3.15.2.
2247 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2249 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
2250 Also add tentative support for BSD specific `optreset' feature.
2252 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
2253 (__mingw_optreset): ...this new global variable.
2255 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
2256 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
2259 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2261 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
2262 Correct mishandling of invalid characters in printf() format specs.
2264 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
2265 (backtrack): ...this new automatic variable, at start of each format
2266 conversion specification substring; use it to backtrack, and print the
2267 substring literally, if any invalid character is encountered.
2269 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
2271 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
2272 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
2273 ___unguarded_readlc_active_add_func, __crtCompareStringW,
2274 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
2275 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
2276 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
2277 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
2278 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
2279 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
2280 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
2281 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
2282 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
2283 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
2284 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
2286 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
2288 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
2290 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2292 Correct some binary distribution packaging defects.
2294 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
2295 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
2296 intermediate goals; they make packages of files, as specified by...
2297 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
2298 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
2300 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2302 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
2303 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
2305 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
2306 of radix point conditional on precision != 0 or `#' flag specified.
2308 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2310 Fix MinGW-Bug [2160227]
2311 Eliminate conflicting declarations and implementations of scalb().
2313 * moldname.def.in (scalb): Comment out of EXPORTS list.
2314 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
2315 with GCC's built-in declaration.
2317 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
2319 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
2321 * mingwex/Makefile.in: Ditto.
2322 * profile/Makefile.in: Ditto.
2323 * configure.in: Record mingw front-end for building under Cygwin.
2324 * mingwex/configure.in: Ditto.
2325 * profile/configure.in: Ditto.
2326 * configure: Regenerate.
2327 * mingwex/configure: Ditto.
2328 * profile/configure: Ditto.
2330 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2332 Use de-facto standard Makefile goals to invoke test suite.
2334 * Makefile.in: Some minor formatting adjustments.
2335 (test_headers): Unconventionally named goal renamed to...
2336 (check-headers): ...this; make it a prerequisite of...
2337 (check): ...this new conventionally named goal.
2339 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2341 Make strtod() inline definition C89 compliant.
2342 (Issue reported by Ilya Shestopalov and Ian Puleston)
2343 (Correction identified by Danny Smith)
2345 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
2346 reformat inline function definition.
2348 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2350 * include/_mingw.h: Increment version to 3.15.1 and introduce
2351 __MINGW32_PATCHLEVEL variable.
2353 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2355 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
2356 (Reported by Christian Franke)
2358 * mingwex/getopt.c (optind): Make global variable value conform to
2359 behaviour specified by POSIX; do not use it for internal state in...
2360 (getopt_parse): ...this static function; use...
2361 (optbase): ...this new static local variable instead.
2362 (getopt_resolved): Update `optind' as required.
2364 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2366 Improve package identification in configure script.
2368 * configure.ac (AC_INIT): Redefine parameters...
2369 (PACKAGE_NAME): Set to `MinGW Runtime'.
2370 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
2371 (PACKAGE_TARNAME): Set to `mingwrt'.
2372 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
2373 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
2374 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
2376 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
2377 (PACKAGE_TARNAME): ...this.
2379 * configure: Regenerated.
2381 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2383 Fix MinGW-Bug [2125708].
2384 (Reported by Alexandr Zamaraev).
2386 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
2387 not wanted here; remove it; replace it by...
2388 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
2389 (_invalid_parameter_handler): ...this function typedef.
2391 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
2393 * Makefile.in: Don't include host_os as part of snapshot filename.
2395 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2397 Fix MinGW-Bug [2119504].
2398 (Reported by Peiyuan Song).
2400 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
2401 (*retindex): ...this already correctly assigned return variable...
2402 (opt[index].val): ...with this; this should have been assigned to...
2403 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
2405 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2407 Fix MinGW-Bug [2117379].
2408 (Reported by Peiyuan Song).
2410 * include/stdio.h (__argv): Replace all references in function
2411 prototype argument lists and inline function local variables, with ...
2412 (__local_argv): ...this, to avoid potential conflict with ...
2413 * include/stdlib (__argv): ...this #defined macro.
2415 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2417 * include/_mingw.h: Increment version to 3.15.
2419 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2421 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
2422 naming standard for Cygwin.
2424 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2426 Reimplement getopt.c to add getopt_long_only() function.
2428 (N.B. this reimplementation removes support for BSD/Mac-OS-X
2429 `optreset' nonsense; user code should set `optind = 0' instead,
2430 to reinitialise option scanning).
2432 * mingwex/getopt.c: Delete all content; reimplement it.
2433 * include/getopt.h: Likewise.
2435 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
2436 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
2438 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2440 Implement conditional replacement for printf() family functions.
2442 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
2443 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
2444 flag for use in user specified __MINGW_FEATURES__ attribute.
2445 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
2446 currently unused: reserved as components of...
2447 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
2448 a __MINGW_FEATURES__ enhancement to setlocale().
2450 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
2451 (__mingw_fprintf, __mingw_vfprintf): Likewise.
2452 (__mingw_sprintf, __mingw_vsprintf): Likewise.
2453 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
2454 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
2455 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
2456 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
2457 usage; link to DLL import stub, importing from MSVCRT.
2458 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2459 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2460 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
2461 locally defined static stub implementation.
2462 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2463 __mingw_fprintf and __mingw_sprintf respectively.
2464 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
2465 static inline implementation for C++ and GNU C, or locally defined
2466 static stub otherwise.
2467 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2468 __mingw_vfprintf and __mingw_vsprintf respectively.
2470 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2472 Avoid access violations, passing NULL to printf( "...%s..." );
2473 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
2475 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
2476 for argument value, if caller passes a NULL pointer.
2477 (__pformat_wcputs): Likewise, substitute L"(null)".
2479 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2481 Add missing dependencies for building libmingwex.a.
2483 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
2484 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
2485 (pformat.h): ...this.
2487 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2489 Add replacements for remaining members of printf() family.
2491 * mingwex/stdio/printf.c: New file.
2492 * mingwex/stdio/fprintf.c: New file.
2493 * mingwex/stdio/sprintf.c: New file.
2494 * mingwex/stdio/vprintf.c: New file.
2495 * mingwex/stdio/vfprintf.c: New file.
2496 * mingwex/stdio/vsprintf.c: New file.
2498 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2499 (STDIO_OBJS): Add their corresponding object files.
2501 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2503 Replace __mingw_snprintf() with new generic family implementation;
2504 likewise, replace __mingw_vsnprintf().
2506 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
2507 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
2508 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2509 (GDTOA_DISTFILES): Remove mingw_snprintf.c
2510 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
2511 (GDTOA_OBJS): Remove mingw_snprintf.o
2512 (PFORMAT_CFLAGS): New macro; define it, as required by...
2513 (pformat.o): ...this new explicit build target.
2514 (snprintf.o, vsnprintf.o): Declare prerequisites.
2516 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
2518 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2520 Lay foundations for new printf() function family implementation.
2522 * ofmt_stub.s: New file; implement forward compatibility stub for...
2523 (_get_output_format): ...this MSVCR80.DLL and later function.
2525 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
2526 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
2527 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
2528 (lib%.a): Include ofmt_stub.o when import library does not already
2529 advertise availability of the _get_output_format() function;
2530 Add alias stubs for MINGW_REPL_FUNCS, such that...
2531 (__msvcrt_printf): ...is an alias for Microsoft's printf().
2532 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
2533 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
2534 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
2535 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
2536 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
2537 (clean): Add msvcr*.def.
2539 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
2540 * configure: Regenerated.
2542 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2544 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
2545 (_imp____mb_cur_max_dll): Likewise.
2547 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
2549 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
2550 * include/wchar.h (swprintf, vswprintf): Likewise.
2552 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2554 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
2555 (_get_output_format, _set_output_format): Add references.
2557 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
2558 (_get_output_format, _set_output_format): Declare prototypes.
2559 (_TWO_DIGIT_EXPONENT): Define.
2560 Some other minor formatting adjustments.
2562 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2564 [mingw-Bugs-1801641]
2565 * include/wchar.h (_wfdopen): Const-ify second arg.
2566 * include/stdio.h (_wfdopen): Likewise.
2567 Thanks to <tdragon at users dot sourceforge net>
2569 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2571 Avoid precision errors in round(), lround() and llround() functions.
2573 * mingwex/math/round_generic.c: New file; it replaces...
2574 * mingwex/math/round.c: ...this; delete it.
2575 * mingwex/math/roundf.c: ...and this; ditto.
2576 * mingwex/math/roundl.c: ...and this; ditto.
2578 * mingwex/math/lround_generic.c: New file; it replaces...
2579 * mingwex/math/lround.c: ...this; delete it.
2580 * mingwex/math/lroundf.c: ...and this; ditto.
2581 * mingwex/math/lroundl.c: ...and this; ditto.
2582 * mingwex/math/llround.c: ...and this; ditto.
2583 * mingwex/math/llroundf.c: ...and this; ditto.
2584 * mingwex/math/llroundl.c: ...and this; ditto.
2586 * mingwex/math/round_internal.h: New file; it provides generic common
2587 code, which is shared by `round_generic.c' and `lround_generic.c'; the
2588 implementation is based on techniques suggested by Danny Smith and
2591 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
2592 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
2593 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
2594 `round_generic.c' and `lround_generic.c'.
2595 (MATH_OBJS): Factor out files listed in...
2596 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
2597 macros; define them; specify dependencies and build rules; add to...
2598 (LIB_OBJS): ...this list.
2600 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
2602 [ mingw-Bugs-1961893 ]
2603 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
2604 mode to 2 for E format.
2606 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
2608 * include/stdlib.h: Fix strtod under C++.
2610 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
2612 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
2613 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
2615 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
2617 * include/sys/types.h (useconds_t): typedef.
2618 * include/unistd.h (usleep): Add prototype.
2619 * mingwex/usleep.c: New file.
2620 * mingwex/makefile.in: Add usleep source and object.
2622 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2624 Make strtod() conform to C99.
2626 * include/stdlib.h (strtod): Declare this mingwex function, and...
2627 (_strtod): rename this MSVCRT counterpart.
2629 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2631 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2633 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2635 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2637 * include/process.h: Include stdint.h for intptr_t definition.
2638 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2639 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2640 _spawnvpe): Return intptr_t.
2641 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2642 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2644 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2646 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2647 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2648 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2649 _wspawnvp, _wspawnvpe): Return intptr_t.
2651 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2653 * include/wchar.h (fwide): Return success code rather than failure in inline
2655 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2656 code rather than failure.
2658 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2660 * include/math.h (float_t, double_t): Define.
2662 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2664 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2665 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2666 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2668 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2670 * include/complex.h: Don't condition contents on C99 or not
2673 2008-02-01 Brian Dessent <brian@dessent.net>
2675 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2676 the different runtime versions.
2678 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2680 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2681 (mbsinit): Likewise.
2683 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2685 * include/_mingw.h: Increment version to 3.14.
2687 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2689 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
2690 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
2691 * mingwex/math/log10f.S: Correct issue with comments.
2692 * mingwex/math/log10l.S: Ditto.
2693 * mingwex/math/log1p.S: Ditto.
2694 * mingwex/math/log1pf.S: Ditto.
2695 * mingwex/math/log1pl.S: Ditto.
2696 * mingwex/math/log2.S: Ditto.
2697 * mingwex/math/log2f.S: Ditto.
2698 * mingwex/math/log2l.S: Ditto.
2699 * mingwex/math/logf.S: Ditto.
2700 * mingwex/math/logl.S: Ditto.
2702 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
2704 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
2706 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
2708 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
2709 from '_fsize_t' to '__int64' to be consistent with the other ...64
2710 structures and the value set there is 8 bytes not 4. Add guard for both
2711 as the are only used by functions available from 6.1 on.
2713 * include/malloc.h (_HEAP_MAXREQ): Define.
2714 (_aligned_offset_recalloc): Define.
2715 (_aligned_recalloc()): Define.
2717 * include/math.h: fixed a typo in a comment.
2718 (atanhf): Fixed declaration.
2720 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
2721 to '__int64' to be consistent with the other ...64 structures and the value
2722 set there is 8 bytes not 4. Added guard as this function is only used by
2723 functions available from 6.1 on.
2725 * include/sys/stat.h: some members of 'stat' were declared with types with
2726 a prefixed underscore, while the ones without the underscore should have
2727 been used. Added guard to '__stat64' as it is only used by functions
2728 available from 6.1 on. Added the wide character versions of the
2729 exec()/spawn() family for completion
2730 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
2733 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
2734 from 'long' to 'time_t'
2735 (__timeb64): moved declaration of structure directly before the declaration
2736 of the function '_ftime64()', so it is guarded as well
2738 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
2739 before the declaration of the functions using it, so it is guarded as well
2741 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
2743 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
2744 case. Add missing break in 's'/LEN_S case.
2746 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2748 Make snprintf() and vsnprintf() conform to C99.
2750 * include/stdio.h: Add note about incompatibility between...
2751 (snprintf, vsnprintf): These two mingwex functions, and...
2752 (_snprintf, _vsnprintf): these MSVCRT counterparts.
2754 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
2755 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
2757 * mingwex/stdio/snprintf.c: Delete.
2758 * mingwex/stdio/vsnprintf.c: Delete.
2760 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
2761 (vsnprintf): Alias to __mingw_vsnprintf.
2763 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2765 * include/_mingw.h: Increment version to 3.13.
2766 * Makefile.in: Reset CYGRELEASE to 1
2768 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2770 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
2771 resulting from incomplete removal of enclosing `for ...; do ...; done'
2772 loop from compound command; (reported by Greg Chicares).
2774 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2776 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2779 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2781 [mingw-Bugs-1734142]
2782 * include/wchar.h (_wsystem) Declare.
2784 (_wgetenv): Declare.
2785 (_wsearchenv): Declare.
2786 (_wmakepath): Declare.
2787 (_wsplitpath): Declare.
2788 (_wfullpath): Declare.
2789 * include/stdlib.h (_wsystem) Declare.
2790 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
2791 _wfullpath): Move into _WSTDLIB_DEFINED guard.
2792 * include/tchar.h (_tsystem): New UNICODE mapping define.
2794 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
2796 * mingwex/gdtoa/mingw_snprintf.c: New file.
2797 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
2798 (GDTOA_OBJS): Add mingw_snprintf.o.
2800 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
2802 * msvcrt.def.in: Update comment.
2803 Exclude _ctype stub if using msvcr71.dll or newer.
2804 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
2805 * include/wctype.h: Likewise.
2807 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2809 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
2810 *include/dirent.h: Likewise.
2812 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2814 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
2815 * include/conio.h: Likewise.
2816 * include/ctype.h: Likewise.
2817 * include/direct.h: Likewise.
2818 * include/dos.h: Likewise.
2819 * include/errno.h: Likewise.
2820 * include/fenv.h: Likewise.
2821 * include/float.h: Likewise.
2822 * include/inttypes.h: Likewise.
2823 * include/io.h: Likewise.
2824 * include/libgen.h: Likewise.
2825 * include/locale.h: Likewise.
2826 * include/malloc.h: Likewise.
2827 * include/mbctype.h: Likewise.
2828 * include/mbstring.h: Likewise.
2829 * include/process.h: Likewise.
2830 * include/search.h: Likewise.
2831 * include/setjmp.h: Likewise.
2832 * include/signal.h: Likewise.
2833 * include/stdio.h: Likewise.
2834 * include/stdlib.h: Likewise.
2835 * include/string.h: Likewise.
2836 * include/time.h: Likewise.
2837 * include/wchar.h: Likewise.
2838 * include/sys/stat.h: Likewise.
2839 * include/sys/time.h: Likewise.
2840 * include/sys/timeb.h: Likewise.
2841 * include/sys/utime.h: Likewise.
2843 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2845 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2847 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2849 Add POSIX binary tree search API.
2851 * mingwex/tfind.c: New file.
2852 * mingwex/tdelete.c: New file.
2853 * mingwex/tsearch.c: New file.
2854 * mingwex/twalk.c: New file.
2855 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2856 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2857 * include/search.h (tfind): Declare.
2864 (node_t): Define, on condition of _SEARCH_PRIVATE.
2866 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2868 * include/_mingw.h (__MINGW_NOTHROW): Define.
2870 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2872 * include/stdio.h (vsnprintf): Remove inline definition.
2875 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2877 * CRTfmode.c: Nit-pick comment fix.
2879 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2881 * CRTfmode.c: Fix nested comment.
2883 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2885 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2887 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2889 * include/io.h (lseek64) : Add prototype.
2891 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2893 * include/string.h (strcasecmp): Add prototype.
2894 (strncasecmp): Add prototype.
2896 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2898 * Makefile.in (CRT0S): Revert last change.
2899 * CRTfmode.c. Correct comment.
2901 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2903 * Makefile.in (CRT0S): Add back CRTfmode.o.
2905 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2907 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2908 * include/io.h: Likewise.
2910 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2912 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2914 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2916 * include/stdint.h (intptr_t): Fix typo.
2917 Thanks to Charles Wilson for report.
2919 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2921 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2922 Condition on _WIN64.
2923 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2924 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2925 (PTRDIFF_MIN): Define as INTPTR_MIN.
2926 (PTRDIFF_MAX): Define as INTPTR_MAX.
2927 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2928 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2930 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2932 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2933 Cygwin man page location.
2935 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2937 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2938 support Cygwin man page location.
2940 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2942 * Include/_mingw.h: Increment version to 3.12.
2944 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2946 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2948 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2950 * Makefile.in: Tweak srcdist to fix build issue.
2952 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2954 Add --enable-mingw-manpage-transform configure option.
2956 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2957 * configure.in, Makefile.in: Use it.
2958 * configure: Regenerated.
2960 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2962 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2964 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2966 Add manpages for dirname and basename functions.
2968 * man: New directory.
2969 * man/dirname.man: New file; it sources both manpages.
2970 * Makefile.in: Add provisional rules to distribute them.
2972 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2974 * mingwex/basename.c: Make it work with path names containing
2975 multibyte character strings.
2976 * mingwex/dirname.c: Likewise.
2978 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2980 * include/io.h (__mingw_access): New static inline wrapper to restore
2981 pre-Vista 'access (fname, X_OK)' behaviour.
2982 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2984 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2986 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2988 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2990 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2992 * include/stdio.h (_unlink, unlink): Add prototypes.
2994 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2996 * include/excpt.h: Replace "_try1" in comments with "__try1".
2998 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
3000 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3001 (ALL_CXXFLAGS): Likewise.
3002 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3003 (ALL_CXXFLAGS): Likewise.
3004 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
3005 (ALL_CXXFLAGS): Likewise.
3007 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
3009 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
3011 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
3013 Expose some more msvcr80.dll functions.
3014 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
3015 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
3016 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
3017 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
3019 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3021 Expose some msvcr80.dll functions.
3022 * include/stdlib.h (_set_abort_behavior): Add prototype.
3023 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
3024 _set_abort_behavior mask argument.
3025 (_invalid_parameter_handler): Add typedef.
3026 (_set_invalid_parameter_handler): Add prototype.
3027 * include/stdio.h (_get_printf_count_output): Add prototype.
3028 (_set_printf_count_output): Add prototype.
3029 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
3030 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
3032 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3034 * include/_mingw.h (CRT_INLINE): Correct typo.
3036 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
3038 * include/io.h (X_OK): Define to F_OK.
3040 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
3042 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
3043 unconditionally. Change comment.
3044 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
3046 * include/io.h (rename): Declare.
3049 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3051 * include/libgen.h: New file; required by...
3052 * mingwex/basename.c, mingwex/dirname.c: New files.
3053 * mingwex/Makefile.in (DISTFILES): Add them...
3054 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
3055 (Dependencies): Typo; s/Dependancies/Dependencies/
3057 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
3059 * Makefile.in (VERSION): Let configure define it.
3061 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
3062 * configure.in: Use it.
3063 Correct quoting of autoconf macro arguments throughout.
3064 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
3065 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
3066 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
3067 (AC_CONFIG_FILES): Add, to generate Makefile.
3069 * configure: Regenerated.
3071 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
3073 * Makefile.in: Add aclocal.m4 to source release.
3074 * mingwex/Makefile.in: Ditto.
3075 * profile/Makefile.in: Ditto.
3077 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3079 * Include/_mingw.h: Increment version to 3.11.
3080 * Makefile.in: Ditto.
3082 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3084 [ mingw-Bugs-1590623 ]
3085 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
3088 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
3090 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
3091 correctly parenthesized.
3093 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3095 * mingwex/mb_wc_common.h (get_codepage): Get it
3098 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3100 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
3102 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
3104 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
3107 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
3109 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
3112 2006-09-11 Christopher Faylor <cgf@timesys.com>
3114 * Makefile.in: Semi-revert 2006-08-30 change.
3116 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3118 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
3119 (__MINGW_IMPORT): Ansify.
3120 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
3121 __MINGW_ATTRIB_DEPRECATED.
3123 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3125 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
3126 Redundant macros; deleted.
3128 * configure.in (LIB_AC_PROG_CC): Replaced by...
3129 (AC_PROG_CC): ...this.
3131 * configure: Regenerated.
3133 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
3135 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
3136 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
3137 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
3139 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
3141 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
3142 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
3143 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
3144 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
3146 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
3147 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
3148 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
3149 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
3150 * mingwex/wcstold.c: Avoid using strtold internals.
3151 * mingwex/wcstof.c: Rewrite.
3152 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
3153 (GDTOA_OBJS): Add to library.
3154 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
3155 (STDLIB_OBJS): Remove.
3156 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
3157 (Q8_OBJS): Add wcstof.o wcstold.o.
3158 * include/stdlib.h (strtof): Remove inline definition.
3160 * include/wchar.h (wcstof): Remove inline definition.
3162 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
3164 * Makefile.in: Add with_cross_host to allow more granular checks.
3165 Set installation directories accordingly. Override CC setting only
3166 if building a Cygwin target.
3167 * aclocal.m4: Regenerate.
3168 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
3169 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
3170 Test AC_ALLOCA only if building on a native system.
3171 * configure: Regenerate.
3173 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3175 * include/ctype.h: Fix typo.
3177 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3179 * include/ctype.h: Expose iswblank if __cplusplus.
3180 * include/wctype.h: Expose iswblank if __cplusplus.
3182 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3184 * include/ctype.h: Remove stray ')';
3186 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3188 * include/ctype.h (_BLANK): Expand comment.
3189 (isblank): Add prototype and inline definition.
3190 (iswblank): Add prototype and inline definition.
3191 * include/wctype.h (iswblank): Add prototype and inline definition.
3192 * mingwex/isblank.c: New file.
3193 * mingwex/iswblank.c: New file.
3194 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
3196 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
3198 * include/math.h (__INFF,__INFL): Remove '#'.
3200 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3202 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
3204 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3206 Support SSE float environment in fenv.h functions.
3207 * cpu_features.c: New file.
3208 * cpu_features.h: New file.
3209 * crt1.c: Include "cpu_features.h".
3210 (__mingw_CRTStartup): Call cpu_features_init().
3211 * Makefile.in (MING_OBJS): Add cpu_features.c.
3212 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
3213 * include/fenv,h ( fenv_t;): Append __mxcsr field.
3214 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
3215 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
3216 (__MXCSR_ROUND_FLAG_SHIFT): New define.
3217 * mingwex/feclearexcept.c: Include "cpu_features.h".
3218 Handle SSE environment.
3219 * mingwex/fegetenv.c: Likewise.
3220 * mingwex/feholdexcept.c: Likewise.
3221 * mingwex/fesetenv.c: Likewise.
3222 * mingwex/fesetexceptflag.c: Likewise.
3223 * mingwex/fesetround.c: Likewise.
3224 * mingwex/fetestexcept.c: Likewise.
3225 * mingwex/feupdateenv.c: Likewise.
3226 * mingwex/fegetround.c: Add comment.
3228 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3230 * Include/_mingw.h: Increment version to 3.10.
3231 * Makefile.in: Ditto.
3233 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3235 * mingwex/math/tgamma.c (SQTPI): Add braces.
3237 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3239 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
3240 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
3242 * mingwex/math/sf_erf.c (erff): Initialize z.
3244 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
3246 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3248 * Include/_mingw.h: Increment version to 3.10.
3249 * Makefile.in: Ditto.
3251 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3253 * include/sys/time.h (struct timezone): Define.
3254 * include/time.h: Correct comment about timezone.
3256 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3258 * configure.in (AC_CONFIG_AUX_DIR): Remove.
3259 * configure: Regenerate.
3261 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
3263 * configure: add srcdir as a possible location for install-sh.
3265 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3267 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
3268 (_topendir): Use it.
3270 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3272 * include/sys/time.h: Add header guard. Add extern "C" bracketing
3274 (gettimeofday): Add prototype.
3275 * mingwex/gettimeofday.c: New file.
3276 * mingwex/makefile.in: Add gettimeofday source and object.
3278 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3280 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
3281 else global library variable.
3282 (HUGEVALF): Likewise.
3283 (HUGEVALL): Likewise.
3284 (INFINITY): Likewise.
3287 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3289 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
3291 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3293 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
3295 2006-05-24 Christopher Faylor <cgf@timesys.com>
3297 * configure.in: Update to newer autoconf.
3298 (thanks to Steve Ellcey)
3299 * mingwex/configure.in: Ditto.
3300 * profile/configure.in: Ditto.
3301 * configure: Regenerate.
3302 * mingwex/configure: Ditto.
3303 * profile/configure: Ditto.
3304 * aclocal.m4: New file.
3305 * mingwex/aclocal.m4: Ditto.
3306 * profile/aclocal.m4: Ditto.
3308 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
3310 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
3311 Use supplied codepage as arg to WideCharToMultiByte.
3313 2006-02-13 Earnie Boyd <earnie@users.sf.net>
3315 * Makefile.in (libmsvcr80.a): Add import lib.
3316 (libmsvcr80d.a): Ditto.
3318 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3320 * Makefile.in: Bump cygwin build number.
3322 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3324 * Include/_mingw.h: Increment version to 3.9.
3325 * Makefile.in: Ditto.
3327 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3329 * include/limits.h (SSIZE_MAX): Define.
3330 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
3332 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
3334 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
3335 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
3337 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3339 * include/stddef.h: Remove.
3340 * include/stdarg.h: Remove.
3342 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3344 * mingwex/complex/csqrt.c (csqrt): The sign of real part
3345 of result is positive when real part of arg == 0;
3346 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
3347 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
3349 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3351 * include/time.h (_time64): Correct prototype.
3353 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
3355 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
3356 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
3357 to non-stop. Use "fnclex" to clear exception flags.
3359 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3361 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
3362 Avoid raising FP exceptions.
3364 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3366 * include/stdlib.h (strtof): Add prototype. Uglify
3367 parameter names in inline definition.
3369 (_Exit): Uglify parameter names in inline definition.
3370 (llabs): Add prototype.
3371 (_set_error_mode): Add prototype and input defines.
3373 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3375 * mingwex/fe*.c: Revert previous changes.
3376 * include/fenv.h: Revert previous changes.
3378 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3380 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
3381 Do not return a value.
3382 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
3383 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
3384 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
3385 * mingwex/fegetenv.c (fegetenv): Likewise.
3386 * mingwex/fesetenv.c (fesetenv): Likewise.
3387 * mingwex/feupdateenv.c (feupdateenv): Likewise.
3388 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
3389 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
3392 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3394 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
3395 getting filelength for SEEK_END.
3397 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3399 * Include/_mingw.h: Increment version to 3.8.
3400 * Makefile.in: Ditto.
3402 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3404 * include/wctype.h (towupper, towlower): Change arg and return value
3406 * include/ctype.h (towupper, towlower): Likewise.
3408 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3410 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
3411 a diagnostic, guarded by #ifdef DEBUG.
3412 (__mingwthr_remove_key_dtor): Likewise.
3414 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
3416 * moldname.def.in (sleep, beep, seterrormode): Remove.
3418 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3420 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
3421 (_MCOUNT_DECL): Use it.
3422 (MCOUNT): Save and restore eax, ecx, edx registers.
3423 * profile/mcount.c (_mcount): ANSI-fy.
3425 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3427 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
3428 guard __MINGW_ATTRIB macro definitions.
3429 * include/math.h (logb[fl]): Don't define inlines for
3430 GCC-4.0+ && __FAST_MATH__.
3431 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
3432 line-continuation backslashes.
3434 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
3436 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
3437 in GNUC version guard.
3439 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
3441 * crt1.c (_gnu_exception_handler): Handle illegal instruction
3442 OS exception as a signal if user has defined a SIGILL handler.
3444 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
3446 * mingwex/math/nexttoward.c: New file.
3447 * mingwex/math/nexttowardf.c: New file.
3448 * mingwex/math/nextafterl.c: Add nexttowardl alias.
3449 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
3451 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
3452 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
3455 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
3457 * mingwex/math/nextafterf.c (nextafterf): Correct
3459 * mingwex/math/nextafterl.c: New file.
3460 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
3461 (MATH_OBJS): Add nextafterl.o.
3462 * include/math.h (nextafterl): Uncomment prototype.
3464 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3466 * mingwex/math/erfl.c: New file.
3467 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
3468 (MATH_OBJS): Add erfl.o.
3469 * include/math.h (erfl, erfcl): Uncomment prototypes.
3471 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
3473 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
3474 #if (WCHAR_MAX <= WCHAR_MIN) is false.
3475 * include/stdint.h (WCHAR_MAX): Likewise.
3476 (WINT_MAX): Likewise.
3478 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
3480 * mingwex/math/signbit.c (__signbit): Make return value
3481 consistent with GCC's __builtin_signbit.
3482 * mingwex/math/signbitf.c (__signbitf): Likewise.
3483 * mingwex/math/signbitf.c (__signbitl): Likewise.
3484 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
3487 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
3489 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
3491 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
3492 Remove unused MBTOWC_FLAGS define.
3494 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
3496 * mingwex/mbrtowc.c: New file.
3497 * mingwex/wcrtomb.c: New file.
3498 * mingwex/btowc.c: New file.
3499 * mingwex/wctob.c: New file.
3500 * mingwex/mb_wc_common.h: New file.
3501 * mingwex/Makefile.in (DISTFILES): Add new files.
3502 (Q8_OBJS): Add new objects.
3503 * include/wchar.h: Adjust comment about mbrtowc() and related
3504 funcions. Add __restrict__ to pointer params in prototypes.
3505 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
3506 arg names from protototypes.
3508 2005-04-23 Wu Yongwei <adah@sh163.net>
3510 * mingwex/dirent.c: Formatting changes.
3511 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
3514 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
3516 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
3518 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
3520 * include/stdio.h (__mingw_fwrite): Change return value to
3522 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
3524 2005-03-15 Hans Leidekker <hans@it.vu.nl>
3526 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
3528 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3530 * include/wctype.h (wctrans): Remove _CRTIMP.
3531 (towctrans): Likewise.
3534 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3536 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
3538 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3540 * mingwex/wctype.c: New file.
3541 * mingwex/wctrans.c: New file.
3542 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
3543 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
3545 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3547 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
3549 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3551 * include/assert.h: Remove header guard. #undef assert macro.
3552 (_assert): Use __MINGW_ATTRIB_NORETURN define.
3554 2005-02-11 Gregory W. Chicares <chicares@cox.net>
3556 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
3557 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
3559 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
3560 * mingwex/math/expm1.c: New file.
3561 * mingwex/math/expm1f.c: New file.
3562 * mingwex/math/expm1l.c: New file.
3564 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3566 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
3567 * include/wchar.h (struct stat): Likewise.
3568 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
3570 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
3572 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3574 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
3575 string is not valid.
3577 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
3579 * include/malloc.h: Add missing return code defines for
3582 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
3584 * include/sys/stat.h (struct __stat64): Change st_size type to
3586 * include/wchar.h (struct __stat64): Change st_size type to __int64.
3588 2005-01-13 Earnie Boyd <earnie@users.sf.net>
3590 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3592 * include/errno.h (ELOOP): Ditto.
3593 * include/_mingw.h: Increment version to 3.7.
3594 * Makefile.in: Ditto.
3596 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3598 * include/tchar.h (_tfreopen): Add UNICODE mappings.
3600 2005-01-11 Earnie Boyd <earnie@users.sf.net>
3602 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3603 lstat): Conditionalize defines for __STRICT_ANSI__.
3605 2005-01-10 Earnie Boyd <earnie@users.sf.net>
3607 * include/errno.h (ELOOP): Add definition.
3609 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
3611 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
3612 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
3613 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
3614 ctanl.c ctanhl.c): New files.
3615 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3616 (COMPLEX_OBJS): Adjust.
3617 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
3618 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
3619 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
3622 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3624 * include/_mingw.h (__int16): Define as short.
3625 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3627 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3629 * include/stdio.h (P_tmpdir): Add define.
3631 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3633 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3635 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3637 * include/_mingw.h: Increment version to 3.6
3638 * Makefile.in: Ditto
3640 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3642 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3643 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3644 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3645 ctanf.c ctanhf.c): New files.
3646 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3647 (COMPLEX_OBJS): Adjust.
3648 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3649 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3650 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3653 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3655 * include/wchar.h (wcsdup): Correct prototype.
3656 * include/string.h (wcsdup): Correct prototype.
3658 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3660 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3662 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3664 * mingwex/math/fastmath.h: New file.
3665 * mingwex/math/asinh.c: New file.
3666 * mingwex/math/asinhf.c: New file.
3667 * mingwex/math/asinhl.c: New file.
3668 * mingwex/math/acosh.c: New file.
3669 * mingwex/math/acoshf.c: New file.
3670 * mingwex/math/acoshl.c: New file.
3671 * mingwex/math/atanh.c: New file.
3672 * mingwex/math/atanhf.c: New file.
3673 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3674 atanh, atanhf, atanhl): Add prototypes.
3675 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3676 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3677 Specify dependency on fastmath.h for new objects.
3679 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3681 * include/sys/stat.h (_S_IFLNK): Add definition.
3688 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3690 * include/sys/stat.h (_S_ISLNK): Add definition.
3693 2004-09-05 Earnie Boyd <earnie@users.sf.net>
3695 * include/_mingw.h: Increment minor version for 3.5 release.
3696 * Makefile.in: Ditto.
3697 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
3699 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3701 * include/malloc.h (__mingw_aligned_offset_malloc,
3702 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
3703 __mingw_aligned_realloc, __mingw_aligned_free): Add
3705 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
3706 tst-aligned-malloc.c.
3707 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
3709 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
3711 * mingwex/mingw-aligned-malloc.c: New file.
3712 * mingwex/tst-aligned-malloc.c: New file.
3714 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3716 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
3717 noreturn attribute. Align stack to 16 bytes before passing args
3719 (mainCRTStartup): Change return to void.
3720 (WinMainCRTStartup): Likewise.
3722 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3724 * profile/COPYING: New file.
3725 * profile/CYGWIN_LICENSE: New file.
3726 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
3728 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3730 * mingwex/fopen64.c: Move.
3731 * mingwex/fseeko64.c: Move.
3732 * mingwex/ftello64.c: Move.
3733 * mingwex/lseek64.c: Move.
3734 * mingwex/stdio/fopen64.c: To here.
3735 * mingwex/stdio/fseeko64.c: To here.
3736 * mingwex/stdio/ftello64.c: To here.
3737 * mingwex/stdio/lseek64.c: To here.
3739 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3741 * profile/gmon.c [__MINGW32__]: Include string.h for
3744 2004-08-08 Christopher Faylor <cgf@timesys.com>
3746 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
3748 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3750 * include/complex.h: Remove __attribute__ ((const)) from
3751 transcendantal and trig functions. Replace __attribute__ ((const))
3752 with __MINGW_ATTRIB_CONST on other declarations.
3754 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3756 * include/wchar.h: Reorganize, avoid including other headers.
3758 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3760 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
3761 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
3764 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3766 * include/dirent.h (struct _wdirent): Remove obsolete comment.
3768 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3770 * include/string.h: Revert 2004-07-26 additions of
3773 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3775 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3776 (__convert_inf_to_maxnum): New.static inline.
3777 (reducl): Use it to protect against Inf - Inf.
3778 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3780 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3782 * mingwex/math/expl.c (expl): Move body of code to new static
3783 function __expl, removing tests for +/-Inf. Extern function
3784 expl calls __expl after testing for max, min log thresholds.
3786 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3788 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
3789 * mingwex/stdio/vfscanf.c: Likewise.
3790 * mingwex/stdio/vswscanf.c: Likewise.
3791 * mingwex/stdio/vfwscanf.c: Likewise.
3793 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3795 * include/_mingw.h: Use only two underscores to uglify
3796 __MINGW_ATTRIB_* macros.
3797 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
3798 * include/setjmp.h: Likewise.
3800 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
3802 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
3804 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3806 * include/string.h: Group wide string functions together,
3807 and protect with _WSTRING_DEFINED.
3809 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3811 * include/_mingw.h (__MINGW_ATTR_*): Replace with
3813 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
3814 __MINGW_ATTRIB_NORETURN, throughout.
3815 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3817 (abs): Declare with __MINGW_ATTRIB_CONST.
3826 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3828 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3830 * include/_mingw.h: Undefine __attribute__.
3831 (__MINGW_ATTR_NORETURN): New define.
3832 (__MINGW_ATTR_CONST): New define.
3833 (__MINGW_ATTR_MALLOC): New define.
3834 (__MINGW_ATTR_PURE): New define.
3835 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3838 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3840 * include/time.h (__time64_t): Add missing ';'.
3842 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3844 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3845 (struct tm): Protect with _TM_DEFINED.
3847 2004-07-17 Christopher Faylor <cgf@timesys.com>
3849 * Makefile.in (CC): Strip inappropriate include file settings from any
3852 2004-07-15 "dgun" <dgun@umpire.com>
3854 * include/complex.h (conj): Correct typo in prototype.
3856 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3858 * include/math.h: Add pragma GCC system_header.
3860 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3862 * mingwex/complex/carg.c: New file.
3863 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3865 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3867 * Makefile.in (INCLUDES): Temporarily revert previous change.
3868 * mingwex/Makefile,in (INCLUDES): Ditto.
3869 * profile/Makefile,in (INCLUDES): Ditto.
3870 * mingwex/Makefile,in: Drop carg.o dependency.
3872 2004-07-14 Christopher Faylor <cgf@timesys.com>
3874 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3876 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3878 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3880 * mingwex/Makefile,in (INCLUDES): Ditto.
3881 * profile/Makefile,in (INCLUDES): Ditto.
3883 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3885 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3887 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3889 * mingwex/Makefile.in: Ditto.
3890 * profile/Makefile.in: Ditto.
3891 * include/limits.h: Change to new file header preamble.
3892 * include/_mingw.h: Increment minor version for 3.4 release.
3893 * Makefile.in: Ditto.
3895 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3897 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3899 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3901 * include/unistd.h (ftruncate): Add inline definition.
3902 * mingwex/ftruncate.c: New file.
3903 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3905 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3907 * include/time.h: Do not include sys/types.h.
3909 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3911 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3912 (MATH_OBJS): Remove pow,o.
3913 * include/math.h (pow): Declare with _CRTIMP.
3914 Add comment on how to avoid excess precision problems.
3916 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3918 * include/stdio.h (__mingw_fseeko64): Add prototype.
3919 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3920 (__mingw_fwrite): Handle huge files.
3922 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3923 Danny Smith <dannysmith@users.sourceforge.net>
3925 * include/stdio.h (fopen64): Add inline function.
3926 (fseeko64): Add prototype.
3927 (ftello64): Add inline function.
3928 * include/io.h (lseek64): Add inline function.
3929 * include/sys/types (off64_t): Add typedef.
3930 (fpos64_t): Add typedef.
3931 * mingwex/fopen64.c: New file.
3932 * mingwex/fseeko64.c: New file.
3933 * mingwex/ftello64.c: New file.
3934 * mingwex/lseek64.c: New file.
3935 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3936 fseeko.64.c, ftello64.c, lseek64.c.
3937 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3939 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3941 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3943 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3945 * DISCLAIMER: Add words about "free to use".
3946 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3947 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3948 (inst_docdir): New variable.
3950 (FLAGS_TO_PASS): Include inst_docdir.
3951 (install-dirs): Add inst_docdir.
3952 (install): Add loop for INSTDOCS.
3953 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3954 section to CONTRIBUTORS file. Remove RCS tags.
3956 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3958 * mingwex/math/lround.c: Rewrite.
3959 * mingwex/math/lroundf.c: Rewrite.
3960 * mingwex/math/lroundl.c: Rewrite.
3961 * mingwex/math/llround.c: Rewrite.
3962 * mingwex/math/llroundf.c: Rewrite.
3963 * mingwex/math/llroundl.c: Rewrite.
3965 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3967 * CONTRIBUTORS: New file.
3968 * DISCLAIMER: Ditto.
3969 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3970 section to CONTRIBUTORS file. Remove RCS tags.
3971 * CRTFmode.c: Ditto.
3975 * crtdll.dev: Ditto.
3985 * msvcrt.def.in: Ditto.
3986 * strcasecmp.c: Ditto.
3989 * include/assert.h: Ditto.
3990 * include/conio.h: Ditto.
3991 * include/ctype.h: Ditto.
3992 * include/direct.h: Ditto.
3993 * include/dirent.h: Ditto.
3994 * include/dos.h: Ditto.
3995 * include/errno.h: Ditto.
3996 * include/excpt.h: Ditto.
3997 * include/fcntl.h: Ditto.
3998 * include/float.h: Ditto.
3999 * include/io.h: Ditto.
4000 * include/locale.h: Ditto.
4001 * include/malloc.h: Ditto.
4002 * include/math.h: Ditto.
4003 * include/process.h: Ditto.
4004 * include/setjmp.h: Ditto.
4005 * include/share.h: Ditto.
4006 * include/signal.h: Ditto.
4007 * include/stdio.h: Ditto.
4008 * include/stdlib.h: Ditto.
4009 * include/string.h: Ditto.
4010 * include/tchar.h: Ditto.
4011 * include/time.h: Ditto.
4012 * include/wchar.h: Ditto.
4013 * include/sys/locking.h: Ditto.
4014 * include/sys/param.h: Ditto.
4015 * include/sys/stat.h: Ditto.
4016 * include/sys/timeb.h: Ditto.
4017 * include/sys/types.h: Ditto.
4018 * include/sys/utime.h: Ditto.
4019 * mingwex/dirent.c: Ditto.
4021 2004-04-19 Earnie Boyd <earnie@users.sf.net>
4023 * include/_mingw.h: Revert to primary release 3 and increment minor
4025 * Makefile.in (VERSION): Ditto.
4027 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4029 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
4030 _fmode if not __MSVCRT__.
4032 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
4034 * include/io.h: (_findfirst): Correct prototype.
4036 2004-03-30 Hans Leidekker <hans@it.vu.nl>
4038 * include/io.h: (_findnext, _findclose): Correct prototype.
4040 2004-03-28 Hans Leidekker <hans@it.vu.nl>
4042 * include/math.h (FP_*): Add defines.
4044 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4046 * mingwex/math/round.c: Rewrite.
4047 * mingwex/math/roundf.c: Rewrite.
4048 * mingwex/math/roundl.c: Rewrite.
4050 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4052 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
4053 * include/time.h (__time64_t): Add typedef.
4054 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4055 (_ctime64): Likewise.
4056 (_wctime64): Likewise.
4057 (_gmtime64): Likewise.
4058 (_localtime64): Likewise.
4059 (wcsftime): Move into _WTIME_DEFINED block.
4060 Regroup non-ANSI prototypes.
4061 * include/io.h: Include <stdint.h>.
4062 (__finddata64_t): Add struct definition.
4063 (__wfinddata64_t): Likewise.
4064 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4065 (_findnext64): Likewise.
4066 (_wfindfirst64): Likewise.
4067 (_wfindnext64): Likewise.
4068 * include/sys/timeb.h (__timeb64): Add struct definition.
4069 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4070 * include/sys/utime.h (__utimbuf64): Add struct definition.
4071 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4072 (_futime64): Likewise.
4073 (_wutime64): Likewise.
4074 * include/sys/stat.h (__stat64): Add struct definition.
4075 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4076 (_stat64): Likewise.
4077 (_wstat64): Likewise.
4078 * include/sys/types.h (__time64_t): Add typedef.
4079 * include/wchar.h (__wfinddata64_t): Add structure definition.
4080 (__stat64): Likewise.
4081 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4082 (_wfindfirst64): Likewise.
4083 (_wfindnext64): Likewise.
4084 (_wutime64): Likewise.
4085 (_wstat64): Likewise.
4086 * include/malloc.h (_aligned_free): Add prototype for
4087 __MSVCRT_VERSION__ >= 0x0700.
4088 (_aligned_malloc): Likewise.
4089 (_aligned_offset_malloc): Likewise.
4090 (_aligned_offset_realloc): Likewise.
4091 (_aligned_realloc): Likewise.
4092 * include/string.h (_wcserror): Add prototype for
4093 __MSVCRT_VERSION__ >= 0x0700.
4094 (__wcserror): Likewise.
4095 * include/math.h (_set_SSE2_enable): Add prototype for
4096 __MSVCRT_VERSION__ >= 0x0701.
4098 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4100 * include/stdio.h (_fsopen): Add prototype.
4101 * include/tchar.h (_tfsopen): Add defines.
4102 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
4104 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
4106 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
4107 msvcr70.dll, and msvcr71.dll.
4108 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
4109 using basename of output def file.
4111 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
4113 * include/malloc.h: Remove __STRICT_ANSI__ guard.
4115 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
4117 * include/process.h: Remove the #endif associated with removal of
4118 __STRICT_ANSI__ guard from non-ANSI header.
4120 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4122 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
4123 * include/direct.h: Ditto.
4124 * include/dirent.h: Ditto.
4125 * include/dos.h: Ditto.
4126 * include/excpt.h: Ditto.
4128 * include/io.h: Ditto.
4129 * inlude/mem.h: Ditto.
4130 * include/memory.h: Ditto.
4131 * include/process.h: Ditto.
4132 * inlude/search.h: Ditto.
4133 * include/share.h: Ditto.
4134 * include/unistd.h: Ditto.
4135 * include/sys/fcntl.h: Ditto.
4136 * include/file.h: Ditto.
4137 * include/sys/locking.h: Ditto.
4138 * include/sys/param.h: Ditto.
4139 * include/sys/stat,h
4140 * include/sys/time.h: Ditto.
4141 * include/sys/timeb.h: Ditto.
4142 * include/sys/types.h: Ditto.
4143 * include/sys/unistd.h: Ditto.
4144 * include/sys/utime.h: Ditto.
4146 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
4148 * include/_mingw.h (__UNUSED_PARAM): Define macro.
4149 * include/wchar.h (fwide): Use it.
4152 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4154 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
4155 NetBSD getopt_long.c.
4157 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4159 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
4160 codes and handling of special chars.
4162 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
4164 * include/stdio.h (feof): Add inlined definition.
4167 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4169 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
4170 directly, rather than via scabnl.
4172 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4174 * mingwex/math/powl.c (powl): Return infinity if
4175 extended precision multiplication of x by log2(y)
4178 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
4180 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
4181 (__enan_NI16): Fix another one.
4182 (__enan_NBITS): Tidy.
4184 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4186 * include/stdint.h [__STDC_CONSTANT_MACROS]: Fix for 8 and 16 bit
4187 types. (Thanks to John Maddock for report.)
4189 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
4191 * include/tchar.h (_puttchar): Define.
4193 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
4195 * include/stdio.h:(_fileno): Define macro version after both
4196 fileno and _fileno functions declared.
4198 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
4199 * moldnames.def.in (rmtmp) Add stub.
4201 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
4203 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
4205 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4207 * include/math.h: Guard ISO C99 additions with __cplusplus
4210 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4212 * include/_mingw.h: Define __attribute__((x)) to nothing
4215 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4217 * include/complex.h: New file.
4218 * mingwex/complex: New directory.
4219 * mingwex/complex/cabs.c: New file.
4220 * mingwex/complex/cacos.c: New file.
4221 * mingwex/complex/cacosh.c: New file.
4222 * mingwex/complex/casin.c: New file.
4223 * mingwex/complex/casinh.c: New file.
4224 * mingwex/complex/catan.c: New file.
4225 * mingwex/complex/catanh.c: New file.
4226 * mingwex/complex/ccos.c: New file.
4227 * mingwex/complex/ccosh.c: New file.
4228 * mingwex/complex/cexp.c: New file.
4229 * mingwex/complex/cimag.c: New file.
4230 * mingwex/complex/clog.c: New file.
4231 * mingwex/complex/cpow.c: New file.
4232 * mingwex/complex/cproj.c: New file.
4233 * mingwex/complex/creal.c: New file.
4234 * mingwex/complex/csin.c: New file.
4235 * mingwex/complex/csinh.c: New file.
4236 * mingwex/complex/csqrt.c: New file.
4237 * mingwex/complex/ctan.c: New file.
4238 * mingwex/complex/ctanh.c: New file.
4239 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
4242 (COMPLEX_OBJS): New list of objects.
4243 (LIB_OBJS): Include it in the library.
4245 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4247 * include/math.h (cabs): Remove non-ISO prototype.
4249 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4251 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
4252 Use GCC __builtin's if available.
4253 (INFINITY, INFINITYF, INFINITYL): Likewise.
4255 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4257 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
4258 beyond approximation limit.
4259 * mingwex/math/sf_erf.c (erff): Likewise.
4261 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
4263 * include/stdio.h (getc): Cast result to unsigned char before
4266 (getchar): Likewise.
4267 (putchar): Likewise.
4268 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
4270 2003-10-10 Earnie Boyd <earnie@users.sf.net>
4272 * include/_mingw.h: Increment version to 3.2.
4273 * Makefile.in: Ditto.
4275 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4277 * include/sys/types.h: Revert last change.
4279 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4281 * include/sys/types.h (ssize_t): Correct the definition.
4283 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4285 * include/stdio.h (_filbuf): Add prototype.
4286 (_flsbuf): Add prototype.
4287 (getc): Add inline version.
4289 (getchar): Likewise.
4290 (putchar): Likewise.
4292 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4294 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
4297 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
4299 * include/stdlib.h: Guard non-ISO functions with
4300 !__STRICT_ANSI__, throughout.
4302 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4304 * include/io.h (_fileno): Remove prototype.
4306 (FILENAME_MAX): Define, if needed.
4307 Don't include <stdio.h>.
4308 * include/stdio.h (FILENAME_MAX): Protect against
4310 (_fileno): Define macro implementation.
4313 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4315 * include/inttypes.h: Include _mingw.h.
4317 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4319 * include/_mingw.h (__CRT_INLINE): Define.
4320 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
4322 * include/inttypes.h: Likewise.
4323 * include/math.h: Likewise.
4324 * include/stdio.h: Likewise.
4325 * include/stdlib.h: Likewise.
4326 * include/string.h: Likewise.
4327 * include/wchar.h: Likewise.
4328 * include/wctype.h: Likewise.
4330 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
4332 * mingwex/dirent.c (_topendir): Allocate enough memory for
4333 DIR struct in UNICODE case too.
4335 2003-09-15 Earnie Boyd <earnie@users.sf.net>
4337 * include/_mingw.h: Increment version to 3.2.
4338 * Makefile.in: Ditto.
4340 2003-07-03 Earnie Boyd <earnie@users.sf.net>
4342 * config.guess, config.sub: Update with versions from ftp.gnu.org.
4344 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4346 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
4347 * mingwex/math/truncf.c (truncf): Likewise.
4348 * mingwex/math/truncl.c (truncl): Likewise.
4349 * mingwex/math/modff.c (modff): Likewise.
4350 * mingwex/math/modfl.c (modfl): Likewise.
4352 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4354 * include/search.h: New file.
4355 * include/stdlib.h: Add comment about qsort, bsearch in
4357 * test_headers.c: Include search.h.
4358 * moldname.def.in (lfind, lsearch): Add.
4360 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4362 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
4363 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
4364 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
4366 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4368 * include/_mingw.h (small, hyper): Change to __small and __hyper to
4369 avoid user space name conflicts.
4371 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4373 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
4374 Note: Also added to w32api/include/basetyps.h.
4375 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
4376 Rename to Small (case difference).
4378 2003-06-18 Earnie Boyd <earnie@users.sf.net>
4380 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
4381 * mingwex/dirent.c: Modifications througout to fill d_name array.
4382 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
4383 libmsvcr71, including debug versions.
4384 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
4386 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
4388 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
4389 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
4391 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
4393 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
4395 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
4397 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
4399 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
4400 but still protect inline definition with __STRICT_ANSI__.
4402 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
4404 * string_old.c: Remove, splitting into...
4405 * strcasecmp.c: New file.
4406 * strncasecmp.c: New file.
4407 * wscmpi.c : New file.
4408 * ctype_old.c: Remove, splitting into...
4409 * isascii.c: New file.
4410 * iscsym.c: New file.
4411 * iscsymf.c: New file.
4412 * toascii.c: New file.
4413 * Makefile.in (MOLD_OBJS): Adjust.
4414 (SRCDIST_FILES): Adjust.
4416 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
4418 * include/math.h (fabs) : Remove inline definition.
4422 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4424 * include/_mingw.h: Change version to 3.0
4425 * Makefile.in: Ditto.
4427 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4429 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
4430 * mingwex/configure.in (W32API_INCLUDE): Ditto.
4431 * profile/configure.in (W32API_INCLUDE): Ditto.
4433 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4435 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
4436 of multiply defined symbols if the symbols is defined locally. E.G.:
4437 A local definition of malloc causes this problem.
4438 * configure: Regenerate.
4439 * profile/Makefile.in (W32API_INCLUDE): New variable.
4440 (ALL_CFLAGS): Use W32API_INCLUDE value.
4441 (ALL_CXXFLAGS): Ditto.
4442 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
4443 Thanks to Jeff Bonggren <jbon@users.sf.net>.
4444 * profile/configure.in (W32API_INCLUDE): Set default value.
4445 * profile/configure: Regenerate.
4446 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
4447 (ALL_CFLAGS): Use W32API-INCLUDE value.
4448 (ALL_CXXFLAGS): Ditto.
4449 * mingwex/configure.in (W32API_INCLUDE): Set default value.
4450 * mingwex/configure: Regenerate.
4452 2003-05-05 Earnie Boyd <earnie@users.sf.net>
4454 * Makefile.in (W32API_INCLUDE): New variable.
4455 (ALL_CFLAGS): Use W32API_INCLUDE value.
4456 (ALL_CXXFLAGS): Ditto.
4457 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
4458 (W32API_INCLUDE): Set default value.
4459 * configure: Regenerate.
4461 2003-04-11 Earnie Boyd <earnie@users.sf.net>
4463 * configure.in (LIBM_A): Define for cygwin target.
4464 * configure (LIBM_A): Ditto.
4466 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
4468 * include/time.h (strftime): Remove duplicate declaration.
4470 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4472 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
4474 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4476 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
4477 * mingwex/strtoimax.c (strtoimax): Likewise.
4478 * mingwex/wcstoimax.c (wcstoimax): Likewise.
4479 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
4480 * mingwex/fesentenv.c: Include float.h.
4481 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
4483 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
4485 * mingwex/math/tgammal.c: Likewise.
4487 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4489 * include/utime.h: New file, forwarding to sys/utime.h.
4491 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4493 * include/sys/param.h (MAXPATHLEN): Define.
4495 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4497 * include/tchar.h: Ansi-fy a comment.
4499 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4501 * profile/profile.h (mcount): Use __builtin_return_address
4502 rather than inline __asm statements.
4503 * profile/Makefile.in: Remove special rule for mcount.o
4504 Specify dependencies for mcount.o profil.o gmon.o.
4506 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4508 * include/stdlib.h (qsort): Remove const from first parm.
4509 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
4511 2003-03-03 Christopher Faylor <cgf@redhat.com>
4513 * mingwex/getopt.c: Refresh from NetBSD sources.
4515 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
4517 * mingwex/getopt.c: New file, copied from cygwin srcs.
4518 * include/getopt.h: New file, copied from cygwin srcs.
4519 * include/unistd.h: Include getopt.h.
4520 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
4521 (POSIX_OBJS): Add getopt.o.
4523 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
4525 * include/stdio.h (vscanf): Add prototype.
4531 * include/wchar.h (vwscanf): Add prototype.
4534 * mingwex/snprintf.c: Move to mingwex/stdio.
4535 * mingwex/vsnprintf.c: Ditto.
4536 * mingwex/snwprintf.c: Ditto.
4537 * mingwex/vsnwprintf.c: Ditto.
4538 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
4539 (STDIO_DISTFILES): Add.
4540 (DISTFILES): Adjust.
4541 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
4545 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
4547 * mingwex/stdio: New directory
4548 * mingwex/stdio/vfscanf.c: New file.
4549 * mingwex/stdio/vfwscanf.c: New file.
4550 * mingwex/stdio/vscanf.c: New file.
4551 * mingwex/stdio/vsscanf.c: New file.
4552 * mingwex/stdio/vswscanf.c: New file.
4553 * mingwex/stdio/vwscanf.c: New file.
4555 2003-02-25 Earnie Boyd <earnie@users.sf.net>
4557 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
4558 (libmsvcrt40.a): Ditto.
4560 2003-02-21 Earnie Boyd <earnie@users.sf.net>
4562 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
4564 * Makefile.in (libmsvcrtd.a): Add target library.
4565 (libmoldnamed.a): Ditto.
4566 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
4568 ($(srcdir)): Remove explicit reference for depencies of object targets.
4569 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
4570 msvcrt20.def, msvcrt40.def: Remove.
4571 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
4573 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
4575 * Makefile.in: Make sure libmingwex.a from current build tree is used.
4577 2003-02-14 Christopher Faylor <cgf@redhat.com>
4579 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
4580 ensure -mno-cygwin where appropriate. Filter out -O2.
4582 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
4584 * profile/Makefile.in (mcount.o): Use -O1 optimization
4587 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4589 * include/math.h: Remove _CRTIMP from pow() prototype,
4590 unless __NO_ISOCEXT.
4592 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4594 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
4596 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4598 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
4599 __declspec(dllimport) supported.
4600 (__cdecl): Define if not already defined.
4601 (__stdcall): Likewise.
4602 * include/dirent.h: Qualify fuctions with __cdecl.
4603 * include/fenv.h: Likewise.
4604 * include/inttypes.h: Likewise.
4605 * include/assert.h: Qualify fuctions with __cdecl. Qualify
4606 CRT dll imports with _CRTIMP.
4607 * include/conio.h: Likewise.
4608 * include/ctype.h: Likewise.
4609 * include/direct.h: Likewise.
4610 * include/dos.h: Likewise.
4611 * include/errno.h: Likewise.
4612 * include/float.h: Likewise.
4613 * include/io.h: Likewise.
4614 * include/locale.h: Likewise.
4615 * include/malloc.h: Likewise.
4616 * include/math.h: Likewise.
4617 * include/mbctype.h: Likewise.
4618 * include/mbstring.h: Likewise.
4619 * include/process.h: Likewise.
4620 * include/setjmp.h: Likewise.
4621 * include/signal.h: Likewise.
4622 * include/stdio.h: Likewise.
4623 * include/stdlib.h: Likewise.
4624 * include/string.h: Likewise.
4625 * include/time.h: Likewise.
4626 * include/wchar.h: Likewise.
4627 * include/wctype.h: Likewise.
4628 * include/sys/stat.h: Likewise.
4629 * include/sys/timeb.h: Likewise.
4630 * include/sys/utime.h: Likewise.
4632 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4633 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4635 * include/stdio.h (__VALIST): Guard against prior definition.
4637 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4639 * include/_mingw.h: Change version to 3.0
4640 * Makefile.in: Ditto.
4642 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4644 * include/stdlib.h: Make words after #endif a comment.
4646 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4648 * include/locale.h: Include stddef.h for definition of NULL.
4650 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4652 * include/math.h (tgamma): Correct typo in comment.
4654 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4656 * mingwex/mingw-fseek.c (INLINE): Remove define.
4657 (__mingw_is_win9x): Remove static inline function.
4658 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4660 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4662 * mingwex/math/llround.c: Correct function name and
4663 change return value to long long.
4665 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4667 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4668 (iswascii): Likewise. Correct mask.
4669 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4672 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4674 * include/stdlib.h (_osver, _winver, _winmajor,
4675 _winminor): Declare as direct imports from dll if
4676 __DECLSPEC_SUPPORTED.
4678 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4680 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4681 * pseudo-reloc-list.c: New file.
4682 * crt1.c (_pei386_runtime_relocator): Declare.
4683 (__mingw_CRTStartup): Call it.
4684 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4685 (DllMainCRTStartup): Call it.
4686 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
4689 2003-01-01 Egor Duda <deo@logos-m.ru>
4691 * pseudo-reloc.c: New file.
4693 2002-12-20 Earnie Boyd <earnie@users.sf.net>
4695 * include/_mingw.h: Increment version to 2.4.
4698 2002-12-12 Earnie Boyd <earnie@users.sf.net>
4700 * include/malloc.h (_alloca): Add definition.
4703 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
4705 * mingwex/math/s_erf.c: New file.
4706 * mingwex/math/sf_erf.c: New file.
4707 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4708 (MATH_OBJS): Add new objects.
4709 * include/math.h (erf[f]): Add prototypes.
4710 (erfc[f]): Add prototypes.
4712 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
4714 * include/math.h: Add traditional/XOPEN math constants.
4716 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
4718 * mingwex/math/lgamma.c: New file.
4719 * mingwex/math/lgammaf.c: New file.
4720 * mingwex/math/lgammal.c: New file.
4721 * mingwex/math/tgamma.c: New file.
4722 * mingwex/math/tgammaf.c: New file.
4723 * mingwex/math/tgammal.c: New file.
4724 * mingwex/math/cephes_mconf (polevlf): Add float version.
4726 Define _CEPHES_USE_ERRNO.
4727 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4728 (MATH_OBJS): Add new objects.
4729 * include/math.h (lgamma[fl]): Add prototypes.
4730 (tgamma[fl]): Add prototypes.
4732 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
4734 * mingwex/strtold.c: New file.
4735 * mingwex/wcstold.c: New file.
4736 * mingwex/ldtoa.c: New file.
4737 * mingwex/math/cephes_emath.h: New file.
4738 * mingwex/math/cephes_emath.c: New file.
4739 * mingwex/Makefile.in (DISTFILES): Add new files.
4740 (MATH_DISTFILES): Ditto.
4741 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
4742 (MATH_OBJS): Add cephes_emath.o.
4743 (LIB_OBJS): Add $(STDLIB_OBJS).
4744 * include/stdlib.h (strtold, wcstold): Add prototypes.
4745 * include/wchar.h (wcstold): Add prototype.
4747 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
4749 * include/math.h (sqrt): Remove inline definition.
4750 (sqrtf): Replace inline definition with prototype.
4752 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
4753 argument less than zero.
4754 * mingwex/math/sqrtf.c (sqrtl): Likewise.
4756 2002-10-30 Guido Serassio <serassio@libero.it>
4758 * include/stdio.h (_getmaxstdio): Add prototype.
4759 (_setmaxstdio): Likewise.
4761 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
4763 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
4765 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4767 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
4769 Define WIN32_MEAN_AND_LEAN before including windows.h
4770 * include/stdlib.h (_fmode): Protect declaration as dllimported
4771 variable with __IN_MINGW_RUNTIME.
4773 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4775 * crt1.c: Include stdlib.h.
4777 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4779 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4780 (MINGW_OBJS): Add txtmode.o.
4781 (SRCDIST_FILES): Add txtmode.c binmode.c.
4782 crt1.c: Don't include fcntrl.h, stdlib.h.
4783 (_fmode): Declare, without dllimport attribute.
4784 (__p__fmode): Declare access function for dll's _fmode.
4785 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
4787 * txtmode.c: New file.
4788 * binmode.c: New file.
4789 * samples/fmode/test2.c: New file.
4790 * samples/fmode/jamfile: Add test2.exe target.
4792 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4794 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
4795 macros work with C89.
4796 (INTMAX_C, UINTMAX_C): Likewise.
4798 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4800 * include/string.h (strcasecmp): Make extern __inline__.
4801 (strncasecmp): Likewise.
4802 (wcscmpi): Likewise.
4804 2002-10-08 Heiko Gerdau <hg@technosis.de>
4806 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
4807 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
4810 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4812 * mingwex/math/powil.c: Rename powil to __powil.
4813 * mingwex/math/powl.c: Adjust declaration and call
4814 to __powil. Remove comment on powil.
4815 * mingwex/math/powi.c: New file.
4816 * mingwex/math/powif.c: New file.
4817 * mingwex/math/pow.c: New file.
4818 * mingwex/math/cephes_mconf.h. Add double and float
4819 versions of constants.
4820 (polevl): Add double precision function.
4822 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4824 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4826 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4828 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4829 (_imp____mbcur_max_dll): Likewise.
4831 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4833 * include/fcntl.h (_fmode): Remove declarations and
4834 compatibility defines.
4835 (_setmode, setmode): Remove prototypes.
4836 * include/stdlib (_fmode): Add declarations and
4837 compatibility defines. Change type to int.
4838 * include/io.h (_setmode, setmode): Add prototypes.
4839 * samples/fmode/all.c: Adjust includes.
4840 * samples/fmode/test.c: Likewise.
4841 * crt1.c (_CRT_fmode): Declare as int.
4842 * CRTfmode.c (_CRT_fmode): Likewise.
4844 * include/stdlib: Remove comment about MB_CUR_MAX.
4846 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4848 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4849 (_imp____mbcur_max_dll): Likewise.
4851 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4853 * mingwex/math/files.txt: Remove inadvertantly added file.
4855 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4857 * include/string.h (_strerror): Move into #ifndef
4858 __STRICT_ANSI__ block.
4860 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4862 * include/time.h (__need_NULL): Define before including
4863 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4865 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4867 * include/stdio.h: Correct comment about directory separator.
4869 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4871 * include/sys/time.h (timeval): Add struct definition and
4872 associated macros (copied from w32api/include/winsock.h).
4874 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4876 * include/_mingw.h: Increment version to 2.3.
4879 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4881 * mingwex/fegetenv.c: Change to \n line endings.
4882 * mingwex/vsnprintf.c: Ditto.
4883 * mingwex/vsnwprintf.c: Ditto.
4885 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4887 * mingwex/math/hypotl.c: Replace with version based on cephes
4890 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4892 * include/sys/param.h: Add ENDIAN defines.
4893 * test_headers.c: Include sys/param.h.
4895 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4897 * test_headers.c: Don't include varargs.h.
4898 * Makefile.in (test_headers): Don't use -std=xx
4901 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4903 * include/sys/param.h: New File.
4905 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4907 * include/math.h (asm): Change to __asm__ throughout.
4908 Expose ISO C99 functions if __GLIPCPP__.
4909 (hypotf): Use hypot, not _hypot in stub.
4911 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4913 * include/tchar.h: Ansi-fy another comment.
4915 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4917 * include/tchar.h: Ansi-fy comment.
4919 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4921 * test_headers.c : New file.
4922 * Makefile.in (test_headers): New target, using it,
4923 (SRCDIST_FILES): Distribute it.
4925 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4927 * include/_mingw.h: Increment version to 2.2.
4930 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4932 * include/unistd.h: Add include of process.h.
4934 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4936 * include/stdio.h (_fcloseall): Add prototype.
4938 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4940 * include/tchar.h (_tfdopen): Correct typo.
4942 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4944 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4945 nextafter): Add non-underscored stubs.
4946 * moldname-msvcrt.def: Regenerate.
4947 * moldname-crtdll.def: Regenerate.
4948 * mingwex/math: New directory.
4949 * mingwex/rint.c: Move to mingwex/math.
4950 * mingwex/rintf.c: Ditto.
4951 * mingwex/rintl.c: Ditto.
4952 * mingwex/round.c: Ditto.
4953 * mingwex/roundf.c: Ditto.
4954 * mingwex/roundl.c: Ditto.
4955 * mingwex/rint.c: Ditto.
4956 * mingwex/rintf.c: Ditto.
4957 * mingwex/rintl.c: Ditto.
4958 * mingwex/trunc.c: Ditto.
4959 * mingwex/truncf.c: Ditto.
4960 * mingwex/truncl.c: Ditto.
4961 * mingwex/signbit.c: Ditto.
4962 * mingwex/signbitf.c: Ditto.
4963 * mingwex/signbitl.c: Ditto.
4964 * mingwex/copysignl.S: Ditto.
4965 * mingwex/fdim.c: Ditto.
4966 * mingwex/fdimf.c: Ditto.
4967 * mingwex/fdiml.c: Ditto.
4968 * mingwex/fmin.c: Ditto.
4969 * mingwex/fminf.c: Ditto.
4970 * mingwex/fminl.c: Ditto.
4971 * mingwex/fmax.c: Ditto.
4972 * mingwex/fmaxf.c: Ditto.
4973 * mingwex/fmaxl.c: Ditto.
4974 * mingwex/fma.c: Ditto.
4975 * mingwex/fmaf.c: Ditto.
4976 * mingwex/fmal.c: Ditto.
4977 * mingwex/fpclassify.c: Ditto.
4978 * mingwex/fpclassifyl.c: Ditto.
4979 * mingwex/fpclassifyl.c: Ditto.
4980 * mingwex/isnan.c: Ditto.
4981 * mingwex/isnanf.c: Ditto.
4982 * mingwex/isnanl.c: Ditto.
4983 * mingwex/fucom.c: Ditto.
4984 * mingwex/fp_consts.c: Ditto. Split out float and long double
4986 * mingwex/math_stubs.c: Remove.
4987 * mingwex/log2.c: Remove. Replaced by math/log2.S
4988 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4989 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4990 * mingwex/math/acosf.c : New file.
4991 * mingwex/math/acosl.c: New file.
4992 * mingwex/math/asinf.c: New file.
4993 * mingwex/math/asinl.c: New file.
4994 * mingwex/math/atan2f.c: New file.
4995 * mingwex/math/atan2l.c: New file.
4996 * mingwex/math/atanf.c: New file.
4997 * mingwex/math/atanl.c: New file.
4998 * mingwex/math/cbrt.c: New file.
4999 * mingwex/math/cbrtf.c: New file.
5000 * mingwex/math/cbrtl.c: New file.
5001 * mingwex/math/ceilf.S: New file.
5002 * mingwex/math/ceill.S: New file.
5003 * mingwex/math/cephes_ld.h: New file.
5004 * mingwex/math/copysign.S: New file.
5005 * mingwex/math/copysignf.S: New file.
5006 * mingwex/math/cosf.S: New file.
5007 * mingwex/math/coshf.c: New file.
5008 * mingwex/math/coshl.c: New file.
5009 * mingwex/math/cosl.S: New file.
5010 * mingwex/math/exp2.S: New file.
5011 * mingwex/math/exp2f.S: New file.
5012 * mingwex/math/exp2l.S: New file.
5013 * mingwex/math/expf.c: New file.
5014 * mingwex/math/expl.c: New file.
5015 * mingwex/math/fabs.c: New file.
5016 * mingwex/math/fabsf.c: New file.
5017 * mingwex/math/fabsl.c: New file.
5018 * mingwex/math/floorf.S: New file.
5019 * mingwex/math/floorl.S: New file.
5020 * mingwex/math/fmodf.c: New file.
5021 * mingwex/math/fmodl.c: New file.
5022 * mingwex/math/fp_consts.h: Ditto.
5023 * mingwex/math/fp_constsf.c: Ditto.
5024 * mingwex/math/fp_constsl.c: Ditto.
5025 * mingwex/math/frexpf.c: New file.
5026 * mingwex/math/frexpl.S: New file.
5027 * mingwex/math/hypotf.c: New file.
5028 * mingwex/math/hypotl.c: New file.
5029 * mingwex/math/ilogb.S: New file.
5030 * mingwex/math/ilogbf.S: New file.
5031 * mingwex/math/ilogbl.S: New file.
5032 * mingwex/math/ldexpf.c: New file.
5033 * mingwex/math/ldexpl.c: New file.
5034 * mingwex/math/llrint.c: New file.
5035 * mingwex/math/llrintf.c: New file.
5036 * mingwex/math/llrintl.c: New file.
5037 * mingwex/math/llround.c: New file.
5038 * mingwex/math/llroundf.c: New file.
5039 * mingwex/math/llroundl.c: New file.
5040 * mingwex/math/log10f.S: New file.
5041 * mingwex/math/log10l.S: New file.
5042 * mingwex/math/log1p.S: New file.
5043 * mingwex/math/log1pf.S: New file.
5044 * mingwex/math/log1pl.S: New file.
5045 * mingwex/math/log2.S: New file.
5046 * mingwex/math/log2f.S: New file.
5047 * mingwex/math/log2l.S: New file.
5048 * mingwex/math/logb.c: New file.
5049 * mingwex/math/logbf.c: New file.
5050 * mingwex/math/logbl.c: New file.
5051 * mingwex/math/logf.S: New file.
5052 * mingwex/math/logl.S: New file.
5053 * mingwex/math/lrint.c: New file.
5054 * mingwex/math/lrintf.c: New file.
5055 * mingwex/math/lrintl.c: New file.
5056 * mingwex/math/lround.c: New file.
5057 * mingwex/math/lroundf.c: New file.
5058 * mingwex/math/lroundl.c: New file.
5059 * mingwex/math/modff.c: New file.
5060 * mingwex/math/modfl.c: New file.
5061 * mingwex/math/nearbyint.S: New file.
5062 * mingwex/math/nearbyintf.S: New file.
5063 * mingwex/math/nearbyintl.S: New file.
5064 * mingwex/math/nextafterf.c: New file.
5065 * mingwex/math/powf.c: New file.
5066 * mingwex/math/powl.c: New file.
5067 * mingwex/math/powil.c: New file.
5068 * mingwex/math/remainder.S: New file.
5069 * mingwex/math/remainderf.S: New file.
5070 * mingwex/math/remainderl.S: New file.
5071 * mingwex/math/remquo.S: New file.
5072 * mingwex/math/remquof.S: New file.
5073 * mingwex/math/remquol.S: New file.
5074 * mingwex/math/scalbn.S: New file.
5075 * mingwex/math/scalbnf.S: New file.
5076 * mingwex/math/scalbnl.S: New file.
5077 * mingwex/math/sinf.S: New file.
5078 * mingwex/math/sinhf.c: New file.
5079 * mingwex/math/sinhl.c: New file.
5080 * mingwex/math/sinl.S: New file.
5081 * mingwex/math/sqrt.c: New file.
5082 * mingwex/math/sqrtf.c: New file.
5083 * mingwex/math/sqrtl.c: New file.
5084 * mingwex/math/tanf.S: New file.
5085 * mingwex/math/tanhf.c: New file.
5086 * mingwex/math/tanhl.c: New file.
5087 * mingwex/math/tanl.S: New file.
5088 * mingwex/Makefile.in: Adjust VPATH for source files in
5091 Add MATH_DISTFILES and use it to build source distro.
5092 * include/math.h: Add protypes for new functions and
5093 reorganise to reflect ANSI,C99 status.
5095 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
5097 * include/tchar.h (_getts): Define as _getws for _UNICODE.
5098 (_putts): Define as _putws for _UNICODE.
5099 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
5101 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
5103 * include/float.h: #include_next<float.h> before header guard.
5105 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
5107 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
5109 * include/excpt.h (): Include windef.h not windows.h.
5110 * include/fcntl.h (_O_SHORT_LIVED): Add define.
5111 (_chmod): Add prototype.
5112 (_creat): Correct prototype.
5113 (SH_DENY*): Rename defines to _SH_DENY*.
5114 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
5115 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
5116 _IOAPPEND): Add defines.
5117 (_wfindfirst): Correct prototype.
5118 (_wfdopen): Add prototype.
5119 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
5121 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
5123 (_wcsdup): Correct prototype.
5124 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
5125 _mbsncat being in string.h.
5126 * include/wchar.h (_wfindfirst): Correct prototype.
5127 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
5129 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5131 * include/_mingw.h: Increment to version 2.1.
5132 * Makefile.in: Ditto.
5134 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5136 * Makefile.in (conf_prefix): New variable.
5137 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
5138 (bindist): Use dist_prefix.
5140 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
5142 * include/_mingw.h: Increment version to 2.0.
5143 * Makefile.in: Ditto.
5145 Merge in mingwex branch.
5147 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
5149 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
5150 * mingwex/fdim.c: New file.
5151 * mingwex/fdimf.c: New file.
5152 * mingwex/fdiml.c: New file.
5153 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
5155 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
5157 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
5159 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
5161 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
5163 * mingwex/isnanl.c: New file.
5165 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5167 * include/stdint.h: Include <stddef.h> to get wchar_t and wint_t.
5168 (WINT_MAX): Define to ((wint_t)-1).
5170 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5172 * include/wctype.h: Replace 'inline' with '__inline__'.
5173 * include/inttypes.h: Likewise.
5175 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5177 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
5178 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
5180 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5182 * mingwex/snprintf.c: Split out vsnprintf to....
5183 * mingwex/vsnprintf.c: New file.
5184 * mingwex/snwprintf.c: Split out vsnwprintf to...
5185 * mingwex/vsnwprintf.c: New file.
5186 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
5188 2002-05-15 Pascal Obry <obry@gnat.com>
5190 * include/dirent.h (DIR): Change dd_stat type to int.
5193 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
5195 * include/stdio.h (vsnprintf): Change inline to __inline__;
5196 (vsnwprintf): Likewise.
5197 * include/wchar.h (vsnwprintf): Likewise.
5200 (mbsinit): Likewise.
5202 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
5204 Change FP default precison from 53 to 64-bit mantissa.
5206 * Makefile.in (CRT0S): Add CRT_fp8.o.
5207 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
5208 * include/float.h: Replace standard float.h defines with
5209 #include_next<float.h> to use GCC's defines. Adjust comments
5212 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5214 * include/dos.h: Change prefix "__imp_" to "_imp__" for
5215 __GNUC__ without __DECLSPEC_SUPPORTED.
5216 * include/fnctl.h: Likewise.
5217 * include/math.h: Likewise.
5218 * include/stdio.h: Likewise.
5219 * include/stdlib.h: Likewise.
5220 * include/time.h: Likewise.
5221 * include/wctype.h: Likewise.
5222 * include/ctype.h: Likewise.
5224 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5226 Add atexit support for dlls.
5227 * crt1.c (atexit): Force thunk to _imp__atexit.
5228 (_onexit): Force thunk to _imp___onexit.
5229 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
5230 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
5231 (__dll_exit): New function to run atexit-registered functions
5232 and flush output buffers on DLL_PROCESS_DETACH or failed
5234 (atexit): Force use of private atexit table via _dllonexit,
5235 (_onexit): New function. Force use of private atexit table via
5237 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
5238 _imp_<_symbol> is visible in import lib.
5239 * msvcrt20.def: Likewise.
5240 * msvcrt40.def: Likewise.
5241 * crtdll.def: Likewise.
5243 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5245 * include/fenv.h: Change header guard macro to _FENV_H_.
5246 (fenv_t, fexcept_t): Move into block protected by
5248 Cleanup some whitespace.
5249 * include/inttypes.h: Change header guard macro to
5252 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5254 * include/math.h (copysignl): Declare.
5255 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
5256 (MATHOBJS):Add copysignl.o.
5258 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5260 * include/math.h (__signbitl, __isnanl): Declare.
5262 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5264 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
5265 roundl, truncl, fmal, log2l): Declare.
5266 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
5267 || !defined __STRICT_ANSI__.
5268 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
5269 * mingwex/fmin.c (fmin): Likewise.
5270 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
5271 * mingwex/fminf.c (fminf): Likewise.
5272 * mingwex/fmaxl.c: New file.
5273 * mingwex/fminl.c: New file.
5274 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
5275 * mingwex/fpclassifyf.c: New file.
5276 * mingwex/fpclassifyl.c: New file.
5277 * mingwex/rint.c (rintf): Split out to...
5278 * mingwex/rintf.c: New file.
5279 * mingwex/rintl.c: New file.
5280 * mingwex/round.c (roundf): Split out to...
5281 * mingwex/roundf.c: New file.
5282 * mingwex/roundl.c: New file.
5283 * mingwex/trunc.c (truncf): Split out to...
5284 * mingwex/truncf.c: New file.
5285 * mingwex/truncl.c: New file.
5286 * mingwex/signbit.c (signbitf): Split out to...
5287 * mingwex/signbitf.c: New file.
5288 * mingwex/signbitl.c: New file.
5289 * mingwex/fmal.c: New file.
5290 * mingwex/copysignl.S: New file.
5291 * mingwex/log2l.c: New file.
5292 * mingwex/fp_consts.c: Add nanl definition.
5293 Comment out unused constants.
5294 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
5295 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
5296 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
5298 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
5299 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
5300 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
5302 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
5304 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
5306 Make wide char versions of opendir and friends.
5308 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
5310 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
5311 _wseekdir): Add prototypes for wide versions of corresponding
5313 * include/tchar.h; Add _UNICODE mappings for dirent.h
5314 structures and functions.
5315 * mingwex/dirent.c: Make _UNICODE neutral.
5316 * mingwex/wdirent.c: New file to define _UNICODE before
5318 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
5319 (POSIX_OBJS): Add wdirent.o.
5320 (wdirent.o): Specify dependency on dirent.c as well as
5322 * samples/dirent/wtest.c: New file, wide version of test.c.
5324 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5326 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
5327 ensure gcc include dir is searched despite -nostdinc.
5328 * profile/Makefile.in (INCLUDES): Likewise.
5329 * mingwex/Makefile.in (INCLUDES): Likewise.
5330 * include/stdarg.h: Replace with stub that just guards the
5331 real gcc system header with #ifndef RC_INVOKED
5332 * include/varargs.h: Likewise.
5333 * include/stddef.h: Likewise.
5334 * include/stdio.h: Include stdarg.h after defining
5336 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
5337 Replace va_list with __VALIST throughout.
5339 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5341 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
5342 * msvcrt.def (_fpreset): Mark as DATA so that only
5343 _imp___fpreset is exported.
5344 * msvcrt20.def (_fpreset): Likewise.
5345 * msvcrt40.def (_fpreset): Likewise.
5346 * crtdll.def (_fpreset): Likewise.
5347 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
5349 (fpreset): Add alias.
5350 (__CRT_PC): Delete definition. _fpreset does it now.
5351 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
5352 (fpreset): Add alias.
5353 (__CRT_PC): Delete definition.
5354 * moldname.def.in: Comment out fpreset.
5355 * moldname-msvcrt.def: Regenerate.
5356 * moldname-crtdll.def: Regenerate.
5357 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
5358 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
5359 with the _fpreset determined by startup CRT_fp object.
5361 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
5363 * CRT_fp8.c: New file.
5364 * CRT_fp10.c: New file.
5365 * crt1.c (__CRT_PC) Declare.
5366 (__CRT_fesetenv): New static function, using _CRT_PC.
5367 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
5368 (_gnu_exception_handler): Likewise.
5369 * Makefile.in (CRT0S): Add CRT_fp10.o.
5370 (MINGW_OBJS): Add CRT_fp8.o.
5371 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
5372 Add CRT_fp8.o, CRT_fp10.o dependancies.
5373 * include/float.h (_fpreset): Expand comment.
5374 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
5375 (extended precison) environmemt.
5376 (FE_PC53_ENV): New define for MSVCRT default environmemt.
5377 (FE_DFL_ENV): Define as FE_PC53_ENV.
5378 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
5379 precision control for default environment.
5381 * include/math.h: Fix long comment line.
5382 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
5384 * profile/configure: Regenerate.
5386 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
5388 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
5390 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
5392 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
5393 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
5394 (__mingw_fseek): New function to work around Win9x f/lseek bug.
5395 (__mingw_fwrite): Likewise.
5396 (__mingw_is_win9x): New helper function.
5398 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
5399 (__mingw_fseek): New prototype and define to replace fseek.
5400 (__mingw_fwrite): New prototype and define to replace fwrite.
5401 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
5402 * moldname-crtdll.def: Remove CR from end of line.
5403 * moldname-msvcrt.def: Ditto.
5405 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
5407 * profile/configure.in (CRT0S): Configure name of gcrt?.o
5408 based on target, building gcrt0.o for cygwin -mno-cygwin.
5409 * profile/configure: Regenerate.
5410 * profile/Makefile.in (CRT0S): Use name from configure.
5411 (gcrt0.o): New rule.
5412 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
5414 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5416 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
5417 _fpecode): Remove prototypes copied from float.h.
5418 (nan, nanf): Move into block protected against RC_INVOKED
5420 * include/stdlib.h (_Exit): Change from static inline to
5422 * mingwex/_Exit.c : New file.
5423 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
5425 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5427 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
5428 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
5429 (configdirs): Likewise.
5430 (LIBGMON_A): Define for cygwin target as well.
5431 * configure: Regenerate.
5432 * profile/configure.in (THREAD_DLL): Remove define.
5433 (LIBM_A): Remove define.
5434 (LIBGMON_A): Define for cygwin target as well.
5435 * profile/configure: Regenerate.
5436 * profile/makefile.in (install): Install to inst_libdir and
5438 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
5439 (OPTFLAGS): New define.
5440 (ALL_CFLAGS): Add $(OPTFLAGS).
5441 (ALL_CXXFLAGS): Same.
5442 (.c.o:): Remove ALL_CXXFLAGS.
5444 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
5446 * include/stdint.h: Add missing newline at eof.
5447 * include/stdio.h (snprintf): Add prototype.
5448 (vsnprintf): Add prototype and inline definition.
5449 (snwprintf): Add prototype.
5450 (vsnwprintf): Add prototype and inline definition.
5451 * include/wchar.h (snwprintf): Add prototype.
5452 (vsnwprintf): Add prototype and inline definition.
5453 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
5455 * mingwex/snprintf.c: New file.
5456 * mingwex/snwprintf.c: New file.
5458 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
5460 * configure.in: Add mingwex as SUBDIRS and configdirs.
5461 * configure: Regenerate.
5462 * Makefile.in (MINGW_OBJS): Remove dirent.o.
5463 (SRC_DIST_FILES): Remove dirent.c.
5465 * include/stdlib.h (_Exit): Add static inline
5467 (struct lldiv_t): Define.
5468 (lldiv): Add prototype.
5469 (llabs): Add extern inline function.
5470 (strtoll,strtoull): Add prototypes.
5471 (wcstol, wcstoul, wcstod): Group together.
5472 (strtof, wcstof): Add extern inline definitions.
5473 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
5474 and extern inline definitions.
5475 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
5476 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
5478 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
5479 (wcstof): Add extern inline definition.
5480 * include/math.h (nan, nanf): Add prototypes.
5481 (NAN, INFINITE): Define constants.
5482 (fpclassify, isnan ,signbit): Add macros and supporting float
5483 and double functions.
5484 (isfinite, isinf, isnormal): Add macros.
5485 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
5487 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
5488 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
5489 (copysign, logb, nextafter, scalb): Add prototypes and
5490 inline stubs for underscored versions in msvcrt.dll.
5491 * include/inttypes.h: New file.
5492 * include/fenv.h: New file
5494 Add new mingwex subdir and files.
5495 * mingwex: New directory.
5496 * mingwex/Makefile.in: New file.
5497 * mingwex/configure.in: New file.
5498 * mingwex/configure: Generate.
5499 * mingwex/dirent.c: Moved here from parent dir.
5500 * mingwex/atoll.c: New file.
5501 * mingwex/feclearexcept.c: New file.
5502 * mingwex/fegetenv.c: New file.
5503 * mingwex/fegetexceptflag.c: New file.
5504 * mingwex/fegetround.c: New file.
5505 * mingwex/feholdexcept.c: New file.
5506 * mingwex/feraiseexcept.c: New file.
5507 * mingwex/fesetenv.c: New file.
5508 * mingwex/fesetexceptflag.c: New file.
5509 * mingwex/fesetround.o: New file.
5510 * mingwex/fetestexcept.c: New file.
5511 * mingwex/feupdateenv.c: New file.
5512 * mingwex/fma.S: New file.
5513 * mingwex/fmaf.S: New file.
5514 * mingwex/fmax.c: New file.
5515 * mingwex/fmaxf.c: New file.
5516 * mingwex/fmin.c: New file.
5517 * mingwex/fminf.c: New file.
5518 * mingwex/fp_consts.c: New file.
5519 * mingwex/fpclassify.c: New file.
5520 * mingwex/fucom.c: New file.
5521 * mingwex/fwide.c: New file.
5522 * mingwex/imaxabs.c: New file.
5523 * mingwex/imaxdiv.c: New file.
5524 * mingwex/isnan.c: New file.
5525 * mingwex/isnanf.c: New file.
5526 * mingwex/lltoa.c: New file.
5527 * mingwex/lltow.c: New file.
5528 * mingwex/log2.c: New file.
5529 * mingwex/log2f.c: New file.
5530 * mingwex/math_stubs.c: New file.
5531 * mingwex/mbsinit.c: New file.
5532 * mingwex/rint.c: New file.
5533 * mingwex/round.c: New file.
5534 * mingwex/signbit.c: New file.
5535 * mingwex/sitest.c: New file.
5536 * mingwex/strtof.c: New file.
5537 * mingwex/strtoimax.c: New file.
5538 * mingwex/strtoumax.c: New file.
5539 * mingwex/testwmem.c: New file.
5540 * mingwex/trunc.c: New file.
5541 * mingwex/ulltoa.c: New file.
5542 * mingwex/ulltow.c: New file.
5543 * mingwex/wcstof.c: New file.
5544 * mingwex/wcstoimax.c: New file.
5545 * mingwex/wcstoumax.c: New file.
5546 * mingwex/wmemchr.c: New file.
5547 * mingwex/wmemcmp.c: New file.
5548 * mingwex/wmemcpy.c: New file.
5549 * mingwex/wmemmove.c: New file.
5550 * mingwex/wmemset.c: New file.
5551 * mingwex/wtoll.c: New file.
5553 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5555 * include/mbstring.h: New file.
5556 * include/mbctype.h: New file.
5558 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5560 * include/tchar.h (__TEXT): Make same as define in
5561 w32api/include/winnt.h.
5563 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5565 * include/tchar.h (_tputenv): Add UNICODE mappings.
5566 (_tsearchenv): Likewise.
5567 (_tmakepath): Likewise.
5568 (_tsplitpath): Likewise.
5569 (_tfullpath): Likewise.
5571 2002-04-18 Pascal Obry <obry@gnat.com>
5573 * dirent.c (opendir): Convert given pathname to
5576 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5578 * include/_mingw.h: Increment version.
5579 * Makefile.in: Ditto.
5581 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5583 * moldname-crtdll.def: Remove CR from end of line.
5584 * moldname-msvcrt.def: Ditto.
5585 * Makefile.in: Use bzip2 compression for Cygwin target.
5587 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
5589 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
5590 TLOSS, PLOSS): Move oldname defines back, following
5591 the underscored names.
5593 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
5595 * include/stdio.h (_snwprintf): Correct spelling.
5596 (_vsnwprintf): Likewise.
5597 * include/wchar.h (_snwprintf): Correct spelling.
5598 (_vsnwprintf): Likewise.
5600 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
5602 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
5603 (wpopen): Add if !(__CRTDLL__).
5604 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
5606 (moldname-crtdll.def rule): Likewise.
5607 * moldname-msvcrt.def: Regenerate.
5608 * moldname-crtdll.def: Regenerate.
5609 * include/stdio.h (wpopen):Use prototype, not a define.
5610 (_swnprintf): Add prototype.
5611 (_vswnprintf): Likewise.
5613 * include/wchar.h (_swnprintf): Add prototype.
5614 (_vswnprintf): Likewise.
5617 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5619 * include/malloc.h (_heapinfo): Correct structure definition.
5620 (_USEDENTRY,_FREEENTRY): Add defines.
5621 Add comment on platform support for _heap* functions.
5622 (_get_sbh_threshold): Add prototype.
5623 (_set_sbh_threshold): Likewise.
5624 (_expand): Likewise.
5626 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5628 * profile/profil.c: Update copyright info.
5629 * profile/profil.h: Likewise.
5630 * profile/gcrt0.c: Likewise.
5632 2002-01-25 Pascal Obry <obry@gnat.com>
5634 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5636 * profile/gmon.c: Define bzero as memset if mingw32.
5637 (monstartup): Use it.
5639 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5641 * include/tchar.h (_TCHAR): Add missing ;.
5643 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5645 * include/tchar.h (_TCHAR): Add typedefs.
5647 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5649 * include/stdlib.h (_onexit_t): Add typedef.
5650 (_onexit): Add prototype.
5652 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5654 * msvcrt.def: Revert accidental change.
5655 * include/stdlib.h: Ditto.
5657 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5659 * Makefile.in: Increment VERSION.
5660 * include/_mingw.h: Ditto.
5662 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5664 * include/strings.h: New File.
5666 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5668 * include/math.h (_FPCLASS* ): Add defines from float.h.
5669 (IEEE recommended functions): Add declarations from float.h.
5670 * include/float.h (_FPCLASS* ): Protect against redefinition.
5672 2001-11-29 Wu Yongwei <adah@netstd.com>
5674 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5675 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5676 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5677 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5678 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5679 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5680 Correct spelling of "disclaimed" in comments.
5681 * include/excpt.h: Another spelling correction.
5683 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5685 * include/errno.h: Fix "errno is not a prototype" warning.
5687 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
5689 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
5690 differences between ANSI and non-ANSI versions.
5691 (_ctype[],_pctype): Declare vars.
5692 (__ISCTYPE): New helper macro using _pctype.
5693 (is* ctype functions): Use __ISCTYPE to define inline versions.
5694 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
5696 (isw* ctype functions): Inline definitions.
5697 * include/wctype.h (_ctype[],_pctype): Declare vars.
5698 (isw* ctype functions): Inline definitions.
5701 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5703 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
5704 __fpecode): Use __STDC__ prototypes.
5707 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
5709 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
5710 * mthr_init.c (DllMain) Run dtors if a process terminates.
5711 * mthr.c (__mingwthr_add_key_dtor) Removed.
5712 (___mingwthr_add_key_dtor) New.
5713 (___mingwthr_remove_key_dtor) New.
5714 (__mingwthr_run_key_dtors) Complete rewrite.
5715 (__mingwthr_remove_key_dtor) New.
5717 2001-11-05 Egor Duda <deo@logos-m.ru>
5719 * Makefile.in: Delete unused executable after creating base-files.
5721 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5723 * include/errno.h (_errno): Use __STDC__ prototype.
5724 Thanks to: Jim Barton.
5726 2001-11-04 "stefan" <stefan@lkcc.org>
5728 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
5730 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5732 * include/io.h (_commit): Add declaration.
5733 Thanks to: "stefan" <stefan@lkcc.org>
5735 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5737 * include/sys/stat.h: Make S_IS* macros safer.
5739 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
5741 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
5743 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5745 * include/stdlib.h (__p__environ, __p__wenviron): Use
5746 __STDC__ prototypes.
5748 2001-09-19 Earnie Boyd <earnie@SF.net>
5750 * Makefile.in: Remove the /usr from the install target.
5751 (VERSION): Increment.
5752 include/_mingw.h: Ditto.
5754 2001-09-17 Earnie Boyd <earnie@SF.net>
5756 * Makefile.in: Increment version.
5757 * include/_mingw.h: Ditto.
5759 2001-09-10 Earnie Boyd <earnie@SF.net>
5761 * dossh: Remove inadvertantly imported file.
5763 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5765 * dirent.c (opendir): Use GetFileAttributes rather than stat
5766 to determine if input arg is dir.
5768 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
5770 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5772 * include/varargs.h (va_list): Ditto.
5773 * include/stdio.h (va_list): Ditto.
5775 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5777 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5778 * include/stdio.h (_IORW): Change constant to 0x0080.
5779 (TMP_MAX): Add new define.
5781 (_wP_tmpdir): Ditto.
5782 (L_tmpnam): Change constant to 16.
5784 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
5786 * include/malloc.h: Fix non-ANSI comment after #endif.
5788 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5790 * profile/configure.in: Make msvcrt.dll version default.
5791 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
5792 * provile/configure: Regenerate.
5794 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
5796 * include/stdio.h (swscanf): Make first arugument const.
5797 * include/wchar.h (swscanf): Ditto.
5798 * include/tchar.h (_tfopen): New _UNICODE define.
5800 (_tsetlocale): Ditto.
5802 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5804 * profile/Makefile.in (mkinstalldirs): Correct relative path.
5806 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5808 * include/_mingw.h: Change version to 1.0.
5811 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
5813 * include/tchar.h: (__TEXT): Remove undef.
5817 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5819 * include/tchar.h: (__TEXT): Add private macro.
5820 (_TEXT): Modify definition to use __TEXT.
5822 This change allows the passing of a MACRO as an argument and have that
5823 MACRO resolved first.
5824 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5826 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5828 * Makefile.in: Increment version to 0.5
5829 * include/_mingw.h: Increment minor version
5831 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5833 * include/assert.h: (assert): Remove ; from end of definition
5834 Thanks to: AJ Reins <tbisp@qwest.net>
5836 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5838 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5839 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5841 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5843 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5845 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5847 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5848 are actually C functions. These functions are resolved via the
5849 -lmsvcp60 library and comments were placed in the header.
5851 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5853 * include/stdlib.h (__p__pgmptr): add prototype.
5854 (__p__wpgmptr): likewise.
5855 (_pgmptr_dll): move declaration from dos.h.
5856 (_wpgmptr_dll): likewise.
5857 (_pgmptr): conditional define (MSVCT/CRTDLL).
5858 (_wpgmptr): likewise.
5859 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5860 (_os*_dll variables): likewise.
5861 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5862 (_wpgmptr_dll): likewise.
5864 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5866 * include/stdint.h: New file.
5868 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5870 * include/wchar.h: Protect prototypes only declared in the C++ STL
5871 from being declared unless __cplusplus is defined.
5873 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5875 * include/stdlib.h: Apply Danny Smith patch 102730
5876 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5877 (_wgetenv) Correction to return type.
5879 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5881 * include/locale.h: Apply Danny Smith patch 101834
5882 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5883 (LC_MIN) Add definition.
5885 (_wsetlocale) Add prototype.
5887 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5889 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5890 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5891 Create a libcoldname.a for the oldname library for CRTDLL.
5892 Restrict libmoldname.a for the oldname library for MSVCRT.
5893 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5894 Restructure the $target_os case logic.
5895 Always name the MinGW thread dll helper mingwm.
5896 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5897 * configure: regenerate.
5899 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5901 * Makefile.in: Fix bindist target to distribute the correct files.
5902 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5903 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5905 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5907 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5908 Add variables and targets to control binary and source distributions.
5909 Add variables and targets to control snapshot distribution.
5910 * profile/gmon.h: Add missing #endif for #ifndef.
5911 * profile/ChangeLog: Merge entries here and remove.
5912 * profile/Makefile.in: Add variables and targets to control
5916 * config.guess: ditto.
5917 * config.sub: ditto.
5918 * mkinstalldirs: ditto.
5919 * install-sh: ditto.
5920 * configure: regenerate.
5921 * profile/configure: ditto.
5923 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5925 * Merge in changes from
5926 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5927 * include/direct.h: add guard around MSVCRT-only prototytpes
5928 * include/io.h: add __int64 struct definitions and function prototypes;
5929 add guard for MSVCRT-only prototypes
5930 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5931 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5932 put wchar functions together to make sync with wchar.h easier
5933 * include/stdlib.h: add wide char functions (__MSVCRT__)
5934 * include/string.h: add string collation functions ( __MSVCRT__)
5935 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5936 * include/tchar.h: add macros and macro function definitions
5937 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5938 enclose more functions in __MSVCRT__ guard;
5939 some oldname wide char function prototypes #if (0)'d
5940 * profile/gmon.h: add guard around BSD-ish typedefs
5942 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5944 * Makefile.in: Use a different variable name for subdirectory since the
5945 previous one was used by the top level make.
5947 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5949 * Makefile.in: Install mingw stuff in a subdirectory if building under
5952 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5954 * Makefile.in (subdirs): Eliminate for loop.
5956 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5958 * Makefile.in (subdirs): Previous change did not fix problem in
5961 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5963 * Makefile.in: Avoid installing dll if we're cross building and the
5964 cross-host system isn't a Windows system.
5965 * configure.in: Detect cross-hosting situation and set appropriate
5966 variables in Makefile.in.
5967 * configure: Regenerate.
5969 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5971 * configure.in: Change HEADER_SUBDIR to mingw32.
5972 * configure: Regenerate.
5974 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5976 * include/string.h: Use proper prototype for _strerror.
5978 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5980 * Makefile.in (subdirs): Workaround for broken shells.
5982 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5984 * Snapshot 2000-02-03.
5986 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5987 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5988 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5989 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5992 * Makefile.in (all): Build CRT0S first.
5993 (libmingwthrd.a): Remove thread support DLL from dependency.
5995 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5997 * Snapshot 2000-01-21.
5999 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
6001 Merge in changes from Cygwin:
6002 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
6003 (SUBDIRS): Likewise.
6004 * Makefile.in (HEADER_SUBDIRS): New variable.
6005 (install): Use to install Mingw headers to a subdirectory if building
6007 (DLL_CC_STUFF): Add DLL entry point.
6008 * configure: Regenerate.
6010 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
6012 * include/stdio.h (fsetpos): Fix prototype.
6013 (fpos_t): Fix for MSVCRT.
6014 * include/float.h (fpreset): Add prototype.
6015 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
6017 * include/time.h: Don't define tzname as a macro for CRTDLL, and
6018 export using libmoldname.a.
6019 * crtdll.def: Add DATA tags.
6020 * msvcrt.def: Likewise.
6021 * moldname.def.in: Likewise. Add fpreset. Export tzname for
6022 both MSVCRT and CRTDLL.
6023 * moldname-crtdll.def: Regenerate.
6024 * moldname-msvcrt.def: Regenerate.
6026 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
6028 * Snapshot 1999-12-21.
6030 * include/wctype.h: New file.
6031 * include/ctype.h (MB_CUR_MAX): Define.
6033 * include/stdlib.h (MB_CUR_MAX): Define.
6034 * include/wchar.h: Define stat, _stat structures here as well.
6035 * include/float.h: Add invalid subconditions (_SW) and floating
6036 point error (_FPE) macros.
6037 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
6038 (_TIME_T): Rename macro to _TIME_T_DEFINED.
6039 * include/sys/types.h: Likewise.
6041 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
6043 * profile/profil.c (profile_on): Set the profiler thread priority to
6044 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
6045 * Snapshot 1999-11-18.
6047 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
6049 Released 1999-11-07.
6051 * Makefile.in (CRT0S): Add crtst.o.
6052 (install): Install in subdirs as well.
6053 * dirent.h (struct _stat): Rename from struct stat.
6054 * include/tchar.h: Add some new macros. Thanks to
6055 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
6056 * profile/Makefile.in (install): Fix target.
6058 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6060 * Makefile.in: Add support for profile directory.
6061 * configure.in: Likewise.
6062 * configure: Regenerate.
6064 * profile: Imported profiling sources from winsup-19991026 snapshot.
6065 * profile/Makefile.in: New file.
6066 * profile/configure.in: New file.
6067 * profile/configure: Generate.
6068 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
6069 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
6070 * profile/gmon.c (unistd.h): Include conditionally.
6071 (sys/param.h): Likewise.
6072 * profile/mcount.c (sys/param.h): Likewise.
6073 * profile/profil.c (profile_on): thread id is DWORD, not int.
6076 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
6078 * include/stdlib.h: Add wide character version of argv/environ.
6080 * include/wchar.h: More wide character prototypes.
6081 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
6083 * dllcrt1.c (init.c): Don't include.
6084 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
6085 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
6087 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
6089 * moldname.def: Remove file.
6090 * moldname.def.in: And add this.
6091 * moldname-msvcrt.def: Generate from moldname.def.in.
6092 * moldname-crtdll.def: Likewise.
6094 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
6095 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
6096 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
6098 * Makefile.in: Update.
6099 * configure.in: Likewise. Also add *cygwin* target for building
6100 under Cygwin winsup.
6101 * configure: Regenerate.
6103 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
6105 * include/_mingw.h: Add version macros.
6106 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
6107 Also add wide character versions shared with wchar.h.
6108 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
6109 * include/io.h (sopen, _sopen): Fix prototype.
6110 Add wide character prototypes.
6111 * include/wchar.h: Likewise.
6112 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
6113 underscored versions. Potential incompatibility.
6114 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
6115 Add wide character prototypes.
6116 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
6119 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
6121 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
6122 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
6124 * configure: Rengerate.
6125 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
6126 dll name and crt's. CRTDLL and MSVCRT are meant to created
6127 separately, so remove all the *-msvcrt* targets.
6128 (libmingwthr.a): New target. Dummy thread support archive.
6129 (LIBS): Add libmingwthr.a.
6130 (CRT0S): Use CRT_ID. Add crtmt.o.
6131 (MINGW_OBJS): Add crtst.o.
6132 * main.c (WinMain): Fix prototype.
6133 * crtmt.c: New file.
6134 * crtst.c: New file.
6136 * include/process.h (_beginthreadex): Fix prototype.
6137 * include/_mingw.h (__int64): Define for __GNUC__.
6138 * include/tchar.h (_ttol): Add macro.
6139 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
6140 _i64tow, _ui64tow, _wtoi64): Add prototypes.
6142 Reported by Emanuele Aliberti <ea@iol.it>:
6143 * include/tchar.h (_ttoi): Add macro.
6145 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
6146 * include/stdio.h (_snprintf): Add prototype.
6147 (_vsnprintf): Likewise.
6149 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
6151 Reported by Tor Lillqvist <tml@iki.fi>:
6152 * include/stdlib.h (__p___argv): Fix return type.
6154 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6157 * include/errno.h (errno): It's linked in from startup, not imported.
6158 * include/stdlib.h (errno): Likewise.
6159 * include/io.h: Guard against conflicting macros and prototypes in
6161 * include/stdlib.h: Likewise.
6162 * include/string.h: Likewise.
6163 * include/time.h: Likewise.
6165 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6167 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
6168 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
6169 * Makefile.in (INCLUDES): Remove old windows32 include directory.
6171 * crt1.c (_gnu_exception_handler): Fix prototype.
6172 (__mingw_CRTStartup): New function based on mainCRTStartup.
6173 (mainCRTStartup): Set the app type for MSVCRT and call
6175 (WinMainCRTStartup): Likewise.
6176 * init.c (_startupinfo): Define.
6177 (_getmainargs): Add 5th parameter.
6178 (_mingw32_init_mainargs): Use.
6180 * ALL *.c files: Reformat according to GNU coding style.
6182 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
6184 * Makefile.in (INCLUDES): Add w32api include directory.
6186 * include/_mingw.h: New file.
6187 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
6188 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
6189 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
6190 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
6191 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
6192 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
6194 * include/stdlib.h (atexit): Fix prototype.
6196 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
6198 * include/stdio.h (_tempnam): Fix prototype.
6199 (tempnam): Likewise.
6200 * include/stdlib.h: Replace with GCC's version, and guard
6203 From Anders Norlander <anorland@hem2.passagen.se>:
6204 * include/stdlib.h (__argc): Declare.
6207 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
6209 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
6211 * Makefile.in (_libm_dummy.o): New target.
6214 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
6216 * Released 1999-03-16 along with egcs-1.1.2.
6218 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
6220 * Makefile.in (LIBS): Add libm.a.
6221 (libm.a): Dummy libm.a.
6223 * Makefile.in: Update from winsup 1999-02-08 snapshot.
6224 Preserve local changes.
6225 (mkinstalldirs): In ../, not ../../.
6226 (INCLUDES): Point to local windows32api headers and use -nostdinc.
6228 (LIBS): Add libmoldname-msvc.a.
6229 (libmoldname-msvc.a): Add target.
6230 (distclean): Add target.
6232 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
6234 * include/dir.h: Reintroduce as an obsolescent header.
6235 * crt1.c (signal.h): Include.
6236 (_gnu_exception_handler): New function to properly handle win32
6237 asynchronous signals.
6238 (mainCRTStartup): Use.
6240 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
6242 * include/direct.h: Include io.h instead of dir.h
6243 * include/dirent.h: Likewise.
6244 * include/dos.h: Likewise.
6245 * include/stdio.h: Replace reference to dir.h with io.h.
6247 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
6249 * 1999-01-01 release bundled with egcs-1.1.1.
6251 * include/io.h: Incorporate dir.h.
6252 * include/dir.h: Remove.
6253 * include/signal.h: Move RC_INVOKED up a bit.
6255 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
6257 * include/signal.h (sig_atomic_t): Define.
6259 * include/malloc.h: Import defs from deprecated alloc.h.
6260 * include/alloc.h: Remove.
6262 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
6263 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
6264 * include/sys/stat.h (struct stat): st_uid is of type short. Use
6265 _off_t instead of long for st_size.
6267 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
6269 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
6270 * include/stdlib.h: Here.
6272 * include/netdb.h: Remove.
6273 * include/arpa/inet.h: Remove.
6274 * include/netinet/in.h: Remove.
6275 * include/sys/socket.h: Remove.
6277 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
6281 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
6282 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
6284 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6286 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
6287 (jmpbuf): typedef using above.
6288 (setjmp, longjmp): Prototype using jmpbuf.
6290 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
6291 obsolescent imported names, ie., from __imp__ to _imp___.
6293 Also ignored empty include/sys/param.h and incorrect
6294 include/sys/times.h.
6296 * CRTinit.c: New file.
6297 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
6299 * include/io.h (umask): Fix prototype.
6300 * include/stdlib.h (OS constants): Replace with Colin's.
6301 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
6302 * include/sys/state.h: Merge.
6304 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6306 * include/assert.h (assert): Lose the trailing semicolon.
6308 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6310 * include/math.h (matherr): Declare.
6311 * include/stdio.h (fileno, _fileno): Declare.
6312 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
6315 * include/stdio.h (fdopen, _fdopen): Add const.
6316 (getw, putw): Declare.
6317 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
6319 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
6321 * include/time.h (_timezone): Undefine.
6322 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
6324 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
6326 * include/stdlib.h (environ): Use DLL version.
6327 * init.c (environ): Undefine it before use.
6329 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
6331 * Update to 980309 snapshot from Colin Peters.
6333 * include/utime.h: remove
6334 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
6335 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
6336 patches to define these.
6337 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6338 (_daylight, _timezone, _tzname, _tzset): Define.
6340 * include/netdb.h: Add from Colin's windows32api changes.
6341 * include/sys/socket.h: Likewise.
6342 * include/arpa/inet.h: Likewise.
6343 * include/netinet/in.h: Likewise.
6345 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
6347 * Update to 980128 snapshot from Colin Peters.
6349 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
6351 * configure.in (AC_INIT): Use dllmain.c instead of defunct
6353 * configure: Regenerate.
6355 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
6357 * Update to 971205 snapshot from Colin Peters. Lots of changes.
6358 Files renamed and include hierarchy loses directories named
6361 * include/dos.h: from Jan-Jaap.
6363 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
6365 Changes to conform to FSF tree.
6367 * crt1.c: Renamed from mcrt0.c.
6368 * dllcrt1.c: Renamed from dllcrt0.c.
6369 * Makefile.in: Update above. Also renamed libmoldnames.a to
6372 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
6374 * crtdll.def: Export all functions but the ones with funny names.
6375 * moldnames.def: Add fdopen since fileno is already there.
6376 * include/nonansi/dos.h: New file from Jan-Jaap.
6377 * include/errno.h: Add extern decl + various additions from JJ.
6378 * include/stdio.h: Likewise.
6379 * include/stdlib.h: Likewise.
6380 * include/nonansi/io.h: Likewise.
6381 * include/nonansi/process.h: Likewise.
6382 * include/sys/types.h: Likewise.
6384 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6386 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6388 * include/stdlib.h (free): Fix prototype to return void, not void*.
6389 * include/nonansi/process.h: Add P_* and WAIT_* defs.
6391 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
6392 * mcrt0.c: Likewise.
6394 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
6395 (libmoldnames.a): Add explicit rule to create it.
6397 1997-08-15 Rob Savoye <rob@cygnus.com>
6399 New directory for the minimalist cygwin environment.
6401 * crtglob.c: New file. Turn on file globbing support.
6402 * crt_noglob.c: New file. Turn off file globbing support.
6403 * ctype_old.c: New file. Wrappers for functions that don't
6405 * dirent.c: New file. Directory routines readdir, opendir, closedir.
6406 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
6407 * dllmain.c: New file. A stub DllMain function.
6408 * hugeval.c: New file. A gross hack to define HUGE_VAL.
6409 * init.c: New file. Common code to initialize standard file
6410 handles and command line arguments.
6411 * main.c: New file. A main for programs that only call WinMain.
6412 * mcrt0.c: New file. Default crt0 for mingw32.
6413 * oldnames.c: New File. Wrappers for functions that don't
6415 * string_old.c: New File.
6416 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
6417 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
6418 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
6419 * include/sys/types.h: New header file for mingw.
6420 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
6421 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
6422 utime.h,values.h,varargs.h}: New header files for mingw.
6423 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
6424 timeb.h,unistd.h}: New header files for mingw.
6425 * Makefile.in,configure.in: Build and configure support.
6426 * configure: Generated from autoconf 2.12 with Cygnus patches.