1 2016-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Prepare and tag mingwrt-3.22.3 patch release.
5 * configure.ac (AC_INIT): Increment patch level.
7 2016-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
9 Emulate glibc <string.h> POSIX.1 non-compliance.
11 * include/_mingw.h.in (_EMULATE_GLIBC): New feature test macro.
12 [_GNU_SOURCE || _BSD_SOURCE || !__STRICT_ANSI__]: Enable it when...
13 [_XOPEN_SOURCE || _POSIX_C_SOURCE || _POSIX_SOURCE]: ...none of
14 these have been pre-defined by the user.
16 * include/string.h [_EMULATE_GLIBC]: Include <strings.h> in full...
17 (strcasecmp, strncasecmp): ...so prototypes for these are declared.
18 [!_EMULATE_GLIBC]: Preserve partial <strings.h> include, guarded by...
19 [__STRING_H_SOURCED__]: ...this context selector, so suppressing the
20 declarations of those function prototypes.
22 2016-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
24 Resolve some non-ANSI typedef omissions.
26 * include/sys/types.h (off_t, ssize_t): Always typedef them when...
27 [_POSIX_C_SOURCE || !_NO_OLDNAMES]: ...either of these prevails.
29 * include/io.h (_fsize_t): Do not suppress its typedef when...
30 [__STRICT_ANSI__]: ...this compiler option applies, irrespective of...
31 [!(_IO_H && _WCHAR_H)]: ...this, which otherwise causes supression.
33 2016-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
35 Prepare and tag mingwrt-3.22.2 patch release.
37 * configure.ac (AC_INIT): Increment patch level.
38 * config.guess config.sub: Delete, per 2016-07-16 commit.
39 * include/stdlib.h: Backport, per 2016-09-14 commit.
40 * include/wchar.h: Backport, per 2016-09-17 commits.
42 2016-09-17 Keith Marshall <keithmarshall@users.sourceforge.net>
44 Add missing <wchar.h> declarations when compiling C++.
46 * include/wchar.h (fwide, mbsinit, wmemset, wmemchr, wmemcpy)
47 (wmemmove, wcstoll, wcstoull): Declare each of these for either of...
48 [_ISOC99_SOURCE || __cplusplus]: ...these conditions, rather than...
49 [_ISOC99_SOURCE]: ...this alone.
51 2016-09-17 Keith Marshall <keithmarshall@users.sourceforge.net>
53 Stricter <wchar.h> ISO-C99 conformity filtering.
55 * include/wchar.h [__STRICT_ANSI__]: Do not include any part of...
56 (direct.h, io.h, sys/stat.h, locale.h, process.h): ...any of these.
58 2016-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
60 Relax strict ISO-C conformity to facilitate C99 support.
62 * include/stdlib.h (_atoi64, _exit) [__STRICT_ANSI__]: Convention
63 dictates that the Microsoft specific functions should not be declared;
64 however, C99 provides equivalents in atoll() and _Exit(), for which we
65 gratuituously use them to provide inline implementations; thus...
66 [_ISOC99_SOURCE && !__NO_INLINE__]: ...declare them anyway.
68 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
70 Prepare and tag all files for release of mingwrt-3.22.1.
72 * configure.ac (AC_INIT): Adjust package version number; append
73 patch level identification.
75 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
77 Interim workaround for issue [#2306].
79 * mingwex/math/powl.c: Tidy layout; correct indentation.
80 (powl, reducl): Use ISO-C declaration syntax; K&R is obsolescent.
81 (powl) [OVERFLOW]: Correct representation of return value, using...
82 (INFINITYL): ...this manifest constant value, instead of...
85 2016-07-24 Keith Marshall <keithmarshall@users.sourceforge.net>
87 Optimize printf() field width accumulation function.
89 * mingwex/stdio/pformat.c (__imul10plus): Omit multiply by ten on
90 already accumulated zero total; it is unnecessary, since ten times
93 2016-07-22 Keith Marshall <keithmarshall@users.sourceforge.net>
95 Fix printf() field width parsing regression issue [#2309].
97 * mingwex/stdio/pformat.c (__imul10plus): Coerce any accumulated
98 negative total to zero; the only negative value to be handled is...
99 (PFORMAT_IGNORE): ...this; it ceases to be applicable, on first call
100 to __imul10plus(), to accumulate field width or precision.
102 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
104 Correct source package omission of msvcrt-xref subdirectory.
106 * Makefile.in (mingwrt-srcdist-files): Add msvcrt-xref.
108 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
110 Discard redundant config.guess and config.sub files.
112 * config.guess config.sub: Delete them; they are no longer required.
114 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
116 Prepare and tag all files for release of mingwrt-3.22.
118 * configure.ac (AC_INIT): Adjust package version number.
120 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
122 Preserve kludge to evade GCC build failure on S_ISBLK misuse.
124 * include/sys/stat.h (_NO_UNSUPPORTED): New feature test macro; it
125 should be user defined, if desired, before inclusion; leave undefined.
126 [!_S_IFBLK && !_NO_UNSUPPORTED && !_NO_OLDNAMES] (S_ISBLK): Define it,
127 as appropriate for POSIX conforming usage; do not poison it.
129 2016-07-10 Keith Marshall <keithmarshall@users.sourceforge.net>
131 Fix C++ strict type checking inconsistency in <glob.h>
133 * include/glob.h (__ERRFUNC_P): New private macro; define it to match
134 the type signature of the error function pointer, to be passed to...
135 (glob): ...this function; use it to correctly represent error function
136 pointer argument in inline implementation.
138 2016-07-09 Keith Marshall <keithmarshall@users.sourceforge.net>
140 Factor out <ctype.h> vs. <wctype.h> duplicate elements.
142 * include/ctype.h: Assert copyright; tidy layout.
143 [!_CTYPE_H_]: Do not evaluate; rename macro to be tested, as...
144 [!_CTYPE_H]: ...this preferred multiple inclusion guard macro name.
145 (__CTYPE_H_SOURCED__): New macro; define it, and include <wctype.h>,
146 so requesting partial inclusion, to retrieve definitions for...
147 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
148 (_UPPER, WEOF): ...these macros; hence, do not define them locally.
149 (wint_t, wchar_t, wctype_t): Likewise these type definitions...
150 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
151 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
152 (iswupper, iswxdigit, towlower, towupper, is_wctype): ...these function
153 prototypes, and corresponding inline alternative implementations.
154 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
155 [__MSVCRT_VERSION__<=__MSVCR70_DLL]: Likewise.
157 * include/wctype.h: Assert copyright; tidy layout.
158 [!_WCTYPE_H_]: Do not evaluate; rename macro to be tested, as...
159 [!_WCTYPE_H]: ...this preferred multiple inclusion guard macro name;
160 do not define it when partial inclusion only is selected, by...
161 [__CTYPE_H_SOURCED__]: ...this; thence define only...
162 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
163 (_UPPER): ...these character characterisation macros...
164 (wint_t, wchar_t, wctype_t): ...these type definitions...
165 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
166 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
167 (iswupper, iswxdigit, towlower, towupper): ...these function
168 prototypes, with corresponding inline alternative implementations...
169 (is_wctype): ...this further prototype, qualified as deprecated...
170 (WEOF): ...and this status reporting macro.
171 (_ctype, _pctype, _pctype_dll, _imp___ctype, _imp___pctype): Delete
172 declarations, and associated definitions; they do not belong here.
173 (isleadbyte): Likewise, this Microsoft specific function prototype...
174 (_LEADBYTE): ...and this associated character classification macro.
175 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
177 2016-07-04 Keith Marshall <keithmarshall@users.sourceforge.net>
179 Do not pass MAKEFLAGS explicitly, when invoking recursive make.
181 * Makefile.in (install-strip, uninstall): Delete explicit $(MAKEFLAGS)
182 references from $(MAKE) command lines; make passes them implicitly.
184 2016-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
186 Rework tsearch and friends; resolve issues [#1512] and [#1576].
188 * include/search.h: Assert copyright; tidy layout.
189 (_SEARCH_H_): Rename this multiple inclusion guard macro...
190 (_SEARCH_H): ...to conform to this preferred standard convention.
191 (__search_comparator): New function prototype typedef; it provides a
192 convenient shorthand notation for argument declarations in functions
193 which require a comparator function pointer; use it where appropriate.
194 (tsearch, tfind, tdelete) [__MINGW_ATTRIB_NONNULL]: Apply to arguments
195 #2 and #3; was previously incorrectly applied to arguments #1 and #3.
196 (twalk) [__MINGW_ATTRIB_NONNULL]: Apply to both arguments #1 and #2.
197 [_SEARCH_PRIVATE] (__MINGW_ATTRIB_NONNULL): Suppress its effect, to
198 ensure that GCC does not optimize away checks within implementation.
199 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
201 * mingwex/tdelete.c: Tidy layout.
202 (tdelete): Reimplement it as a thin wrapper around...
203 (__tdelete): ...this; it encapsulates the original implementation as a
204 __CRT_ALIAS (inline) function, to simplify void ** --> node_t ** casts.
205 Remove unnecessary non-null assertions for arguments #1 and #3; prefer
206 to validate arguments #2 and #3 internally, and simply return NULL if
207 necessary; hence, do not include <assert.h>
209 * mingwex/tfind.c: Tidy layout.
210 (tfind): Similarly reimplement it as a thin wrapper around...
211 (__tfind): ...this __CRT_ALIAS (inline) encapsulation of the original.
212 Add non-null validation for argument #3; do not include <assert.h>
214 * mingwex/tsearch.c: Tidy layout.
215 (tsearch): Once again, reimplement it as a thin wrapper around...
216 (__tsearch): ...this __CRT_ALIAS variant. Add non-null validation for
217 argument #3; do not include <assert.h>
219 * mingwex/twalk.c: Tidy layout; do not include <assert.h>
221 2016-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
223 Rework __try1/__except1 to resolve issue [#1328].
225 * include/excpt.h: Assert copyright; tidy layout.
226 (_EXCPT_H_): Multiple inclusion guard macro renamed to...
227 (_EXCPT_H): ...this; update all references as appropriate.
228 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
229 (__typecast_alloca): New macro; define it, casting return type of...
230 (__builtin_alloca): ...this to a specified data type; use it in...
231 (__try1_setup, __except1_teardown): ...these new macros; define them
232 as parameterized templates, providing both -masm-att and -masm-intel
233 syntax implementations, with host specific word size and register
234 assignment parameter substitutions; use them to redefine...
235 (__try1, __except1): ...each of these, using __builtin_alloca to avoid
236 direct stack pushes when registering exception handlers; assign the
237 template parameters as appropriate to support implementation for...
238 [_WIN64, _WIN32]: ...either of these, as the host requires.
240 2016-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
242 Merge Cygwin CVS updates to legacy branch.
244 * include/stdio.h: Merge 2011-11-30 and 2012-08-02 commits.
245 (getc, getchar, putc, putchar): Declare function prototypes.
246 (fopen64, ftello64): Likewise; change implementation classification
247 from __CRT_INLINE to __CRT_ALIAS, to avoid C++ emitted code bloat.
248 (_lock_file, _unlock_file): Add prototypes; modify merge to...
249 [__MSVCRT_VERSION__>=__MSVCR80_DLL]: ...require this.
251 * include/stdint.h: Merge 2012-07-30 commit; include <_mingw.h>
253 * include/excpt.h: Merge 2012-08-01 commit.
254 (__try1, __except1) [_WIN64]: Add alternative implementations.
256 * include/stdlib.h: Merge 2012-08-02 commit.
257 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
258 (_strtoi64, _strtoui64, _wcstoi64, _wcstoui64): Declare prototypes.
259 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
260 (_strtoi64_l, _strtoui64_l, _wcstoi64_l, _wcstoui64_l): Likewise...
261 [!__have_typedef_locale_t] (__need_locale_t): ...and define to get...
262 (locale_t): ...this, by selective inclusion of <locale.h>
263 [__WCHAR_H_SOURCED] (_wcstoi64, _wcstoui64, _wcstoi64_l)
264 (_wcstoui64_l): Make these function prototypes available for selective
266 * include/wchar.h: ...this; merge 2012-08-02 commit.
267 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
268 (_wcstoi64, _wcstoui64): Note availability of function prototypes via
269 selective inclusion of their actual declarations from <stdlib.h>
270 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
271 (_wcstoi64_l, _wcstoui64_l): Likewise.
273 * include/limits.h: Merge 2012-08-02 commit.
274 [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
276 * include/sys/param.h: Merge 2012-08-02 commit.
277 [PATH_MAX not defined] (MAXPATHLEN): Define it explicitly.
278 [PATH_MAX defined] (MAXPATHLEN): Define it as an alias.
280 2016-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
282 Add typedef and access support for opaque locale_t objects.
284 * include/locale.h (locale_t, _locale_t): Define opaque types.
285 [__need_locale_t]: Make them selectively accessible; define...
286 (__have_typedef_locale_t): ...this, when they are available.
287 [_LOCALE_H] (_create_locale, _get_current_locale, _free_locale):
288 Declare function prototypes, on direct <locale.h> inclusion only.
289 [_LOCALE_H || _WCHAR_H] (_wcreate_locale): Likewise; this is to be
290 visible on direct inclusion, or when including <wchar.h>
292 * include/stdio.h [!(_STDIO_H && _WCHAR_T)]: Correct expression of...
293 [__MSVCR80_DLL || _WIN32_WINNT_VISTA]: ...this subsidiary condition;
294 for all cases when this is true, (including when [_STDIO_H] alone)...
295 [!__have_typedef_locale_t] (__need_locale_t): ...define this, and
296 include <locale.h>, for selective definition of...
299 2016-05-19 Keith Marshall <keithmarshall@users.sourceforge.net>
301 Occlude unsupported _S_IFBLK feature; resolve issue [#1146].
303 * include/sys/stat.h (_MINGW_S_IFBLK_KLUDGE): New feature test macro;
304 do not define it, and strongly recommend that it remains undefined.
305 [!_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Do not define them.
306 [!_MINGW_S_IFBLK_KLUDGE] (_S_ISBLK, S_ISBLK): Poison them.
307 [_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Adjust definitions; use a
308 modified value, which is guaranteed to be impossible to match in...
309 [_S_ISBLK, S_ISBLK]: ...these, thus enforcing false test results.
311 2016-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
313 Fix a typo in a <sys/stat.h> inline function definition.
315 * include/sys/stat.h [__MSVCRT_VERSION__ >= __MSVCR80_DLL]
316 (stat): First argument declared as 'int'; should be 'const char *';
319 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
321 Resolve some strnlen() implementation issues.
323 * mingwex/strnlen.s (__mingw_strnlen) [!NUL]: Correct termination
324 logic; should have used jnz, not jz, to skip endpoint adjustment on
325 scanning past a terminal NUL character code.
327 * include/string.h [_POSIX_C_SOURCE >= 200809L] (strnlen): Do not
328 #define it, as this breaks GCC compilation; use __CRT_ALIAS instead,
329 with __JMPSTUB__ referencing via "oldname" libraries.
331 * Makefile.in (jmpstub_awk_script, libimpl_awk_script): Adapt to
332 facilitate assignment of __JMPSTUB__ and __LIBIMPL__ references to
333 libraries other than libmingwex.a
334 (strnlen.jmpstub.$OBJEXT): Assign it to all "moldname" libraries prior
335 to libmoldname80.a, in addition to libcoldname.a, as specified by the
336 __JMPSTUB__ assignment within <string.h>
338 2016-05-03 Keith Marshall <keithmarshall@users.sourceforge.net>
340 Enforce consistent specification of package version.
342 * include/_mingw.h: Rename as...
343 * include/_mingw.h.in: ...this build-time template file.
344 (__MINGW32_VERSION): Redefine it, in terms of...
345 (%PACKAGE_VERSION_LONG%): ...this substitution template.
346 (__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION)
347 (__MINGW32_PATCHLEVEL): Likewise, redefine them in terms of...
348 (%PACKAGE_VERSION_MAJOR%, %PACKAGE_VERSION_MINOR%)
349 (%PACKAGE_VERSION_PATCH%): ...these.
351 * configure.ac (AC_CONFIG_SRCDIR): Adjust for renamed file.
352 (MINGW_AC_CONFIG_EXTRA_SRCDIR): Likewise, for similarly renamed
353 w32api/include/w32api.h.in file.
355 * Makefile.in (all-mingwrt-stage-1-only): Add dependency on...
356 (_mingw.h, w32api.h): ...these; add rule to generate them, using...
357 (PACKAGE_VERSION_SCRIPT, PACKAGE_VERSION_FORMAT): ...these new macros;
358 they apply appropriate substitutions to the renamed template files.
359 (install-mingwrt-headers): Explicitly add _mingwrt.h
361 2016-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
363 Make strnlen() available for all MSVCRT.DLL versions.
365 * msvcrt-xref/msvcrt.def.in (strnlen): Mark it as...
366 (__MINGW_DLSYM): ...this, excluding its exposure in libmsvcrt.dll, and
367 thus requiring a dlsym() lookup for versions which provide it.
369 * include/string.h [__MSVCRT_VERSION__>=__MSVCR80_DLL] (strnlen):
370 Declare prototype, for use from these non-free DLLs, otherwise...
371 [_POSIX_C_SOURCE >= 200809L] (strnlen): Define it as an alias for...
372 (__mingw_strnlen): ...this new libmingwex.a function.
374 * mingwex/strnlen.s: New file; it implements...
375 (__mingw_strnlen, __mingw_strnlen_s): ...these new functions.
377 * Makefile.in (libmingwex.a): Add requirement for...
378 (strnlen.$OBJEXT): ...this; add vpath specification for its source.
380 2016-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
382 Use correct paths for partially included header files.
384 * include/io.h include/process.h: Use 'iquote' #include "stdint.h", to
385 ensure that we get stdint.h from the same include directory.
386 * include/stdio.h: Likewise for #include "stdarg.h", and "sys/types.h"
387 * include/wchar.h: Likewise for all of #include "stdio.h", "stdlib.h",
388 "direct.h", "sys/stat.h", "io.h", "time.h", "locale.h", and "process.h"
389 * include/dir.h include/dos.h: Likewise for #include "io.h"
390 * include/direct.h: Likewise for #include "dos.h"
392 2016-04-13 Keith Marshall <keithmarshall@users.sourceforge.net>
394 Generalize procedure for installing manpages.
396 * man/dirname.man: Rename it as...
397 * man/dirname.3.man: ...this, with inherent MANSECT specification.
398 (TH): Use %PAGEREF% substitution for NAME, MANSECT, and DATE.
399 (MS-Windows): Do not append \[tm]; it doesn't render well in Windows
400 console. Further, correct typos; some syntactic adjustments.
402 * Makefile.in (%:%.man): New rule; define it.
403 (%.mancopy, %.mancopy-recursive): New rules; define and use with...
404 (reference_manpage): ...this new macro, defining it to map...
405 (dirname.3.man): ...this as the reference source file for both of...
406 (basename.3, dirname.3): ...these installed manpages.
407 (format_manpage): Add MANSECT and DATE to expansion of...
408 (%PAGEREF%): ...this sed substitution pattern.
410 2016-04-12 Keith Marshall <keithmarshall@users.sourceforge.net>
412 Update several incorrectly attributed header files.
414 * include/direct.h include/io.h include/locale.h include/math.h
415 * include/process.h include/stdio.h include/stdlib.h include/string.h
416 * include/sys/stat.h include/sys/types.h include/time.h: Identify the
417 original author as Colin Peters; Rob Savoye merely imported them into
418 the original CVS repository, when he created it.
420 * include/wchar.h: Likewise, imported by Rob Savoye, but the original
421 source file is unattributed.
423 2016-04-11 Keith Marshall <keithmarshall@users.sourceforge.net>
425 Eliminate all references to non-standard __NO_ISOCEXT macro.
427 * include/math.h: Tidy layout.
428 [!defined __NO_ISOCEXT]: Do not use this ugly double negative; in any
429 case, we do not want to encourage users to define such implementation
430 private macros; instead, prefer to make use of...
431 [defined _ISOC99_SOURCE]: ...this glibc compatible feature test.
432 [__STDC_VERSION__ >= 199901L]: Do not require this; it is implied, by
433 definition, in _ISOC99_SOURCE.
434 * include/stdio.h [!defined __NO_ISOCEXT]: Likewise; replace with...
435 [defined _ISOC99_SOURCE]: ...this, throughout.
437 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
439 Make resetting of __need_typedef requests more robust.
441 * include/sys/types.h [__need_off_t, __need___off64_t]
442 [__need_ssize_t, __need_time_t]: Move corresponding #undef out of, and
443 after the respective conditional blocks, which provide each associated
444 typedef, so ensuring that any repeat request is properly reset.
446 * include/time.h [__need_time_t]: Always delegate to <sys/types.h> for
447 typedef, and reset of request, even in cases where...
448 [_TIME_H]: ...this is already defined.
450 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
452 Add a missing comment terminator.
454 * include/io.h [!(defined _IO_H && defined _WCHAR_H)]: Properly
455 terminate the comment annotating the closing #endif statement.
457 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
459 Declare <dir.h> as formally deprecated.
461 * include/dir.h: Assert copyright.
462 (pragma GCC system_header): Declare it.
463 (_DIR_H): Define as multiple inclusion macro.
464 [!_DIR_H]: Emit "obsolete header" warning message.
466 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
468 Factor out <wchar.h> vs. <io.h> duplicate declarations.
470 * include/io.h: Assert copyright; tidy layout.
471 (_IO_H_): Rename this multiple inclusion guard macro...
472 (_IO_H): ...to this preferred form; do not define it when...
473 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
474 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
475 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
476 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
477 (_wfindnext64i32, _wfindfirst32, _wfindnext32, _findclose): ...only
478 these function prototypes, common to <wchar.h>, together with...
479 (_fsize_t, struct _wfinddata_t, struct _wfinddatai64_t)
480 (struct __wfinddata64_t, struct _wfinddata64i32_t)
481 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these
482 requisite data type definitions.
483 (pragma GCC system_header): Declare it.
484 (__need_intptr_t): Define, and include <stdint.h> to get...
485 (intptr_t): ...this typedef; neither define it locally, nor define...
486 (_INTPTR_T_DEFINED): ...this; delete all references.
487 (_FSIZE_T_DEFINED): Do not define it; delete all references; rather...
488 [!(defined _IO_H && defined _WCHAR)] (_fsize_t): Define it.
489 (FILENAME_MAX): Define it unconditionally.
490 (__struct_finddata_t): New temporary macro; define and use it to...
491 (struct _finddata_t, struct _wfinddata_t, struct _finddatai64_t)
492 (struct _wfinddatai64_t, struct __finddata64_t, struct __wfinddata64_t)
493 (struct _finddata64i32_t, struct _wfinddata64i32_t)
494 (struct _finddata32i64_t, struct _wfinddata32i64_t)
495 (struct __finddata32_t, struct __wfinddata32_t): ...define these.
497 * include/wchar.h (_WFINDDATA_T_DEFINED): Do not define it; delete all
498 references; filter out associated data type definitions, namely...
499 (struct _wfinddata_t, struct _wfinddatai64_t): ...these, and also...
500 (struct __wfinddata64_t, struct _wfinddata64i32_t): ...these, and...
501 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these.
502 (_WIO_DEFINED): Likewise, do not define it; delete all references;
503 filter out associated function prototype declarations for all of...
504 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
505 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
506 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
507 (_wfindnext64i32, _wfindfirst32, _wfindnext32): ...these; reproduce
508 them by selective inclusion of <io.h>.
510 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
512 Factor out <wchar.h> vs. <process.h> duplicate declarations.
514 * include/process.h: Assert copyright; tidy layout.
515 (_PROCESS_H_): Rename this multiple inclusion guard macro...
516 (_PROCESS_H): ...to this preferred form; do not define it when...
517 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
518 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
519 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
520 (_wspawnve, _wspawnvp, _wspawnvpe): ...only these functions.
521 [!__WCHAR_H_SOURCED__] (_PROCESS_H): Define it; declare all functions
522 normally specified herein, including those listed above, as required.
523 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
524 (__need_intptr_t): Define it prior to including <stdint.h>.
525 (pragma GCC system_header): Declare it.
527 * include/wchar.h (_WPROCESS_DEFINED): Delete it; filter out...
528 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
529 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
530 (_wspawnve, _wspawnvp, _wspawnvpe): ...these function prototypes;
531 reproduce them, by selective inclusion of <process.h>.
533 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
535 Enable selective retrieval of intptr typedefs from <stdint.h>.
537 * include/stdint.h: Assert copyright; tidy layout.
538 [__need_intptr_t || __need_uintptr_t] (_STDINT_H): Do not define it;
539 conceal all normally defined data types, except either or both of...
540 [__need_intptr_t] (intptr_t): ...this, and/or...
541 [__need_uintptr_t] (uintptr_t): ...this.
542 (pragma GCC system_header): Declare it.
544 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
546 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
548 * include/sys/stat.h: Assert copyright; tidy layout.
549 (pragma GCC system_header): Declare it.
550 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
551 (_SYS_STAT_H): ...this preferred naming convention; however, when...
552 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
553 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
554 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
555 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
556 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
557 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
558 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
559 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
560 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
561 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
562 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
563 (__struct_stat_defined): New macro; define, and use it to define...
564 (struct stat, struct _stat, struct _stati64, struct __stat64)
565 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
566 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
567 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
568 definition of types size_t and wchar_t; declare all header content,
569 including that declared when __WCHAR_H_SOURCED__ is defined, unless
570 already declared as a result of selective inclusion by <wchar.h>
571 (__need_size_t, __need_wchar_t): Do not define them; consequently,
572 there is no need to include <stddef.h>; do not do so.
574 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
575 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
576 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
577 (struct _stat64i32): Likewise; reproduce them by selective inclusion
580 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
582 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
584 * include/direct.h: Conditionally partition it, such that...
585 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
586 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
587 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
588 (_WDIRECT_DEFINED): Never define it; delete all references.
590 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
591 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
592 selectively #include <direct.h> to reproduce them.
594 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
596 Factor out <direct.h> vs. <dos.h> duplicate declarations.
598 * include/dos.h: Assert copyright; tidy layout.
599 (pragma GCC system_header): Declare it.
600 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
601 (_DOS_H): ...this preferred convention; do not define it when...
602 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
603 (struct _diskfree_t): ...this aggregate data type, together with...
604 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
605 (_getdiskfree): ...this associated function.
606 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
607 emit a warning that this header is obsolete, and should not be used.
608 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
609 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
610 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
611 neither is it necessary to #include <stddef.h>; do not do so. Also,
612 do not #include <_mingw.h> explicitly, but always #include <io.h>,
613 which will implicitly #include <_mingw.h> anyway.
615 * include/direct.h: Assert copyright; tidy layout.
616 (pragma GCC system_header): Declare it.
617 (_DIRECT_H_): Rename this multiple inclusion guard macro...
618 (_DIRECT_H): ...to adopt this preferred naming convention.
619 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
620 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
621 (_getdiskfree): Likewise, do not declare prototype; instead...
622 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
623 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
624 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
625 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
626 although needed, we may inherit it indirectly from <sys/types.h>,
627 included by <io.h> via <dos.h>.
629 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
631 Evade CPP mismatched apostrophe warnings in windres comments.
633 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
635 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
637 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
639 * include/locale.h: Assert copyright; tidy layout.
640 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
641 (_LOCALE_H): ...this; do not define it when...
642 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
643 (_wsetlocale): ...just this one visible function prototype.
644 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
645 (_WLOCALE_DEFINED): Do not define it; delete all references.
646 (pragma GCC system_header): Declare it.
648 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
649 visibility by selective inclusion of <locale.h> instead.
650 (_WLOCALE_DEFINED): Delete all references.
652 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
654 Resolve some "implicit function declaration" warnings.
656 * setargv.c (isspace): Include <ctype.h> for declaration.
657 * cpu_features.h (__cpu_features_init): Declare function prototype.
658 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
660 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
662 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
664 * include/stdlib.h [__WCHAR_H_SOURCED__]
665 (_STDLIB_H): Do not define it; restrict visible declarations to...
666 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
667 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
668 of regular <stdlib.h> content; full content is declared only when...
669 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
670 (_WSTDLIB_DEFINED): Do not define it; delete all references.
671 (pragma GCC system_header): Declare it; tidy layout.
673 * include/wchar.h: Delete duplicated declarations for...
674 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
675 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
676 include <stdlib.h> selectively, to maintain their visibility.
677 (_WSTDLIB_DEFINED): Delete all references.
679 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
681 Relocate misplaced umask() function prototypes.
683 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
684 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
685 here, but leave them for backward, or Microsoft, compatibility.
687 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
689 Correct another _BEGIN_C_DECLS imbalance error.
691 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
692 unbalanced instance deleted; one correctly balanced instance remains.
694 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
696 Support installation of headers with empty parts directory.
698 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
699 (install-mingwrt-headers): ...invoke it; if false, do not perform...
700 (INSTALL_SUB_HEADERS): ...this.
702 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
704 Reinstate typedef for non-standard off64_t.
706 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
707 (__off64_t): ...typedef derived from this; although non-standard, it
708 is gratuitously required when building GCC's libgfortran.a
710 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
712 Correct conditional compilation block nesting errors.
714 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
715 them balanced within, and around, conditional compilation blocks.
717 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
719 Feature test _MINGW32_EXTENDED_SOURCE renamed.
721 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
722 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
723 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
724 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
725 users should enable any conventional feature test which implies it.
727 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
728 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
730 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
732 Correct atexit() and _onexit() export declaration regression.
734 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
735 as DATA; declare them accordingly.
737 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
739 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
741 * include/string.h: Tidy layout.
742 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
743 (_stricmp, _strnicmp): Include their prototypes, selectively from...
744 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
745 * include/parts/strings.h: ...from here; file is obsolete; delete it.
747 * include/string.h (_wcscmpi): Define alias.
748 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
749 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
750 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
751 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
752 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
753 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
754 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
755 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
757 * include/strings.h (_STRINGS_H): Do not define it, when...
758 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
759 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
761 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
763 Refactor to make <parts/time.h> redundant.
765 * include/sys/types.h (time_t, __time32_t, __time32_t)
766 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
767 * include/parts/time.h: ...from here; preserve selective exposure.
769 * include/time.h (time_t, __time32_t, __time32_t): Get them...
770 * include/sys/types.h: ...from here, by selective inclusion.
772 * include/time.h (struct timespec, struct __mingw_extended_timespec)
773 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
774 * include/parts/time.h: ...from here; preserve selective exposure.
776 * include/parts/time.h: Delete file; it is no longer required.
778 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
780 Declare the nanosleep() function where POSIX expects it.
782 * include/time.h (__mingw_sleep): Declare function prototype.
783 (nanosleep): Declare prototype, and provide in-line implementation;
784 this is a reproduction of the original implementation, relocated...
785 * include/unistd.h (nanosleep): ...from here; remove it; hence...
786 (struct timespec): ...this need not be declared here, and there is
787 no need to include <parts/time.h>; remove reference.
789 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
791 Refactor <time.h> vs. <wchar.h> to avoid duplication.
793 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
794 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
795 (struct tm): Delete definition; delegate it, together with each of...
796 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
797 (wcsftime): ...these function prototypes; delete them, but note in
798 comments, that they remain declared, via delegation to...
799 * include/time.h: ...this; include it selectively, subject to...
800 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
801 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
802 [_TIME_H]: Process all definitions and declarations; otherwise...
803 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
804 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
805 (_WTIME_DEFINED): Obsolete macro; delete all references.
807 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
809 Implement support for POSIX "%n$*m$" printf() format control.
811 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
812 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
813 (__pformat_inline__): New macro; define, and use it where appropriate.
814 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
815 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
816 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
817 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
818 (__pformat_argmap_t): ...this new union data type; define it.
819 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
820 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
821 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
822 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
823 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
824 (__pformat_length_modifier, __pformat_check_length_modifier): New
825 locally defined static and/or inline functions; implement, and...
826 (__pformat): ...use them.
828 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
830 Add prototypes for Microsoft's _printf_p() family of functions.
832 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
833 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
834 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
835 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
836 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
837 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
838 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
839 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
840 available for selective inclusion by both <stdio.h> and <wchar.h>...
841 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
843 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
845 Adapt msvcrt-xref to become msvcrt.def.in provider.
847 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
848 filter value assignment; scale it upwards, by a factor of 0x10000.
849 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
850 (%.def) [msvcr*]: Do not preserve comments; define...
851 (__DLLNAME__): ...this preprocessor symbol.
853 * msvcrt.def.in: Content is obsolete; delete file and replace with...
854 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
855 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
856 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
857 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
858 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
860 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
862 Import msvcrt-xref documentation resources.
864 * msvcrt-xref: New directory.
865 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
866 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
867 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
868 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
870 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
872 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
874 * include/wchar.h: Some minor layout adjustments.
875 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
876 within the scope of reading <wchar.h>; undefine it at end of file.
877 (struct tm): Do not define; it is sufficient to keep it opaque.
878 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
879 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
880 directly; delegate to indirect definition by including <stdio.h>.
881 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
882 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
883 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
884 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
885 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
886 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
887 indirectly, by selective inclusion from <stdio.h>; hence include it.
889 * include/stdio.h: Assert copyright; tidy layout.
890 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
891 (_STDIO_H): ...this, but defined conditionally, subject to...
892 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
893 entities which are required by <wchar.h>; do not define...
894 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
895 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
896 are normally specified within <stdio.h>, INCLUDING those specifically
897 itemised above, as selectively required by <wchar.h>.
899 * pseudo-reloc.c: Some minor layout adjustments.
900 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
901 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
902 include <stddef.h> to guarantee it.
904 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
906 Enable selective definition of POSIX system types.
908 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
909 any specific __need_TYPE selector having been set prior to inclusion;
910 DO define it when no such selector is present, and undefine all such
911 selectors as may have been set, after evaluation of their effects.
912 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
913 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
914 accommodates reorganization of the file, to achieve a tidier layout.
915 (__have_typedef_off_t): New repeat definition guard; define it for
916 compilers which may choke on any repeated typedef for either of...
917 (off_t, _off_t): ...these; make them selectively defineable for...
918 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
919 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
920 in either case, redefine them in terms of...
921 (__off32_t): ...this new internal type, for consistency with...
922 (__off64_t): ...this previously defined non-standard type; also make
923 it selectively defineable, either by...
924 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
925 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
926 (__have_typedef___off64_t): New repeat definition guard; define it.
927 (ssize_t, _ssize_t): Also make them selectively defineable, on...
928 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
929 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
930 (__have_typedef_ssize_t): New repeat definition guard; define it.
932 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
934 Avoid user namespace pollution by non-standard type 'off64_t'.
936 * include/sys/types.h (off64_t): Rename it as...
937 (__off64_t): ...this implementation-private alternative name, so
938 eliminating the potential for user namespace pollution.
940 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
941 return type, and type of offset argument, in both prototype and inline
942 implementation; note that this addresses the issue of pollution in the
943 user namespace, while avoiding the issue of MinGW-Bug [#2024].
945 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
946 instead of 'off64_t', as offset argument type in function prototypes.
947 (ftello64): Likewise, for return type of inline function.
949 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
950 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
951 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
953 * mingwex/stdio/fseeko64.c: Assert copyright.
954 (fseeko64): Use '__off64_t' per modified function prototype.
956 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
958 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
960 * mingwex/ofmtctl.c: New file; it implements...
961 (_mingw_output_format_control): ...this new function; it provides
962 additional MinGW specific printf() format processing options.
964 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
966 * include/stdio.h (_mingw_output_format_control): Declare it.
967 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
968 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
969 manifest constant expressions; define them.
971 * mingwex/stdio/pformat.c: Revise licensing terms.
972 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
973 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
974 modifier; this matches the behaviour specified by ISO-C99, else...
975 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
976 previous MSVC compatible behaviour, treating it as an `L' modifier.
977 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
979 * mingwex/ofmt.c (ARGLIST): Subsume references to...
980 (ARGTYPE): ...this now obsolete macro; delete it throughout.
981 (update_output_format_flag): New inline function; it restricts flag
982 operations to affect only Microsoft's exponent digit bits.
983 [FUNCTION == _set_output_format]: Use it.
984 [FUNCTION == _get_output_format]: Likewise.
986 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
988 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
990 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
991 defined, when implied by any STDC or POSIX version selection, viz. ...
992 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
994 * include/stdlib.h: Assert copyright; tidy layout.
995 (_STDLIB_H_): Multiple inclusion guard macro renamed...
996 (_STDLIB_H): ...to this, preferring no trailing underscore.
997 [!defined __NO_ISOCEXT]: Delete double negative references; use...
998 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
999 (lldiv_t): ...defining this C99 specific aggregate data type, and...
1000 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
1001 (wcstold, _Exit): ...declaring these C99 function prototypes.
1002 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
1003 future removal; not in MSVCRT.DLL, these conform to no known standard.
1004 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
1005 (__strtod): ...this libmingwex.a provided function; it handles string
1006 representations of hexadecimal-floats, infinities and NaNs, whereas...
1007 (strtod): ...this MSVCRT.DLL implementation does not.
1008 (__MSVCRT_VERSION__): Prefer symbolic comparison...
1009 [>= __MSVCR80_DLL]: ...for this requirement.
1011 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1013 Rationalize definition of struct timespec.
1015 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
1016 tv_sec field, in place of anonymous union, thus avoiding missing brace
1017 warnings when initializing; leave a copy of the previous definition...
1018 (struct __mingw32_expanded_timespec): ...named thus.
1020 * include/unistd.h (nanosleep): Adjust inline implementation, to match
1021 altered specification of tv_sec field in struct timespec.
1023 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
1024 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
1026 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
1027 convenience function; defined as inline, with __LIBIMPL__ equivalent,
1028 it facilitates interpretation of an instance of struct timespec as if
1029 it were defined as struct __mingw32_expanded_timespec.
1031 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1033 Make strings.h mostly POSIX.1-2008 compliant.
1035 * include/strings.h: Rewritten. Do not include...
1036 (string.h): ...this; mandated by POSIX.1, it now defines...
1037 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
1038 prototypes, possible in-line implementations, and JMPSTUB references
1039 to corresponding external implementations, which will now become
1040 automatically created within libmingwex.a
1042 * include/parts/strings.h: New file; it declares prototypes for...
1043 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
1044 string.h, but we also require them in strings.h
1046 * include/parts/wchar.h: New file; it declares prototypes for all wide
1047 character functions which MSVC specifies in both wchar.h and string.h
1049 * include/string.h: Miscellaneous layout adjustments.
1050 (strcasecmp, strncasecmp): Delete; they belong in strings.h
1051 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
1052 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
1053 include them from parts/wchar.h instead.
1055 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
1056 prototypes; include them from parts/wchar.h instead, so making this
1057 guard macro redundant; delete it.
1059 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
1060 (wcscmpi.$OBJEXT): Implementations are now automatically generated
1061 from header file, for inclusion in libmingwex.a; remove free-standing
1062 implementations from the entire family of liboldname libraries, and...
1063 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
1064 files; they are no longer required.
1066 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1068 Incorporate build system updates from w32api package.
1070 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
1071 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
1072 (install-strip, uninstall): New make command goals; implement them.
1073 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
1074 (devdist, dlldist): ...these have no need to strip explicitly.
1075 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
1076 (install-mingwrt-headers): ...here.
1078 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1080 Adapt platform feature checks to NTDDI_VERSION conventions.
1082 * include/_mingw.h: Assert copyright; include w32api.h
1083 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
1084 to w32api/include/w32api.h, whence they remain in effect.
1085 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
1087 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1089 Correct mismatched #if/#endif from preceding commit.
1091 * include/_mingw.h (#pragma GCC system_header)
1092 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
1093 correcting for inadvertent removal of matching #endif introduced by
1094 preceding 2015-06-19 commit.
1096 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1098 Define symbolic names for alternative Microsoft runtime DLLs.
1100 * include/msvcrtver.h: New file; it assigns a value for...
1101 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
1102 (__MSVCR60_DLL): ...this new manifest constant, with each of...
1103 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
1104 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
1105 ...these also defined, as user assignable alternatives.
1107 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
1108 to establish its default value.
1110 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1112 Track dependencies on modified system header files.
1114 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
1116 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1118 Correct an anomaly in stage 1 only build procedure.
1120 * Makefile.in (all-gcc): New goal; it is an alias for...
1121 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
1122 (all-mingwrt-stage-1-only): ...this; upate all references.
1123 (active-goals): Adjusted accordingly; it now reguires...
1124 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
1125 (install): Adjusted, as directed by...
1126 (DEFAULT_MAKECMDGOALS): ...this.
1128 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1130 Prefer our hypot() implementation in complex maths operations.
1132 * mingwex/complex/cabs_generic.c: New file; it replaces...
1133 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
1134 * mingwex/complex/cabsl.c: ...these.
1136 * mingwex/complex/catan_generic.c: New file; it replaces...
1137 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
1138 * mingwex/complex/catanl.c: ...these.
1140 * mingwex/complex/clog_generic.c: New file; it replaces...
1141 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
1142 * mingwex/complex/clogl.c: ...these.
1144 * mingwex/complex/cpow_generic.c: New file; it replaces...
1145 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
1146 * mingwex/complex/cpowl.c: ...these.
1148 * mingwex/complex/csqrt_generic.c: Do not use...
1149 (_hypot): ...this Microsoft form of function reference; use...
1150 (hypot): ...this ANSI standard form instead.
1152 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1154 Correct C++ compilation anomaly with hypotf() in cmath header.
1156 * include/math.h: Add copyright notice; generally tidy layout.
1157 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1158 (hypotf): Delete inline implementation; it did not properly handle
1159 range errors, and was uncompilable with optimization when any g++
1160 option implying __STRICT_ANSI__ conformity was specified.
1161 (_MATH_H_): Rename this multiple inclusion guard...
1162 (_MATH_H): ...to this.
1164 * mingwex/math/hypot_generic.c: New file; it implements...
1165 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
1166 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
1168 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1170 Prepare and tag all files for release of mingwrt-3.21.1.
1172 * configure.ac (AC_INIT): Adjust package version argument.
1173 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
1174 (__MINGW32_VERSION): ...increment this to match.
1176 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1178 Refactor to avoid possible time_t conflicts across headers.
1180 * include/parts/time.h (struct timespec): Make it more descriptive of,
1181 and better able to accommodate, potential ambiguity relating to...
1182 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
1183 whence they may be identically imported into each of...
1184 * include/sys/types.h include/time.h include/wchar.h: these; delete
1185 duplicate typedefs, and import accordingly.
1187 * include/sys/types.h: Add licence; general comment additions.
1188 (_TYPES_H_): Rename multiple inclusion guard macro...
1189 (_SYS_TYPES_H): ...to this.
1191 * include/time.h: Add licence; general comment/layout adjustments.
1192 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1193 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
1194 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
1195 (_TIME_H_): Rename multiple inclusion guard macro...
1196 (_TIME_H): ...to this.
1198 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
1199 (struct timespec): ...of this.
1201 * include/wchar.h: Add licence; general comment/layout adjustments.
1202 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1203 [GCC] (system_header): Add pragma, identifying header as such.
1204 (_WCHAR_H_): Rename multiple inclusion guard macro...
1205 (_WCHAR_H): ...to this.
1207 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1209 Remove obsolete varargs.h header file.
1211 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
1212 a GCC header which is no longer supported, and was always intended for
1213 ultimate removal; now is the long overdue time to do so.
1215 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1217 Correct improper unistd.h function attribute declarations.
1219 * include/unistd.h (_cdecl): Correct usage throughout; should be...
1222 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1224 Fix GLOB_DOOFFS initialization bug.
1226 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
1227 (gl_data->gl_offs): ...this is properly initialized to zero.
1229 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1231 Tag all files for release of mingwrt-3.21.
1233 * include/_mingw.h: Adjust version accordingly.
1235 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1237 Improve usage notes in stdlib.h, for mkstemp() function.
1239 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
1240 an original comment, explaining the need to use _O_TEMPORARY, from...
1241 * mingwex/mkstemp.c: ...here; delete trailing white space.
1243 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1245 Eliminate some potential definition inconsistencies.
1247 * include/stdio.h: Cosmetic formatting change, relating to...
1248 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
1249 unconditionally; this allows the compiler to check for consistency
1250 with their primary definitions in stdio.h
1252 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1254 Suppress expected warning diagnostics in LIBIMPL builds.
1256 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
1257 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
1258 GCC flag to supress warnings relating to deprecated declarations.
1260 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1262 Provide more POSIX conforming sleep() functions.
1264 * include/sys/types.h (useconds_t): Make it explicitly long; int may
1265 be okay, but doesn't guarantee enough bits; mark as deprecated, since
1266 POSIX has declared it "obsolete", and no longer specifies it.
1268 * mingwex/usleep.c: Delete file; it provided an implementation of...
1269 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
1270 its error handling was hopelessly broken; replace it with...
1271 * mingwex/nsleep.c: ...this new file; it implements...
1272 (__mingw_sleep): ...this generic helper function; it supports sleep
1273 capability with interval specification to nanosecond precision.
1275 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
1276 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
1277 (sleep, nanosleep): ...these current POSIX functions, and also...
1278 (usleep): ...this obsolete one; mark it as deprecated.
1280 * include/parts: New directory; it is intended to host partial header
1281 implementations, for content which must be shared among arbitrary sets
1282 of multiple standard header files.
1284 * include/parts/time.h: New file; nominally declaring time.h content.
1285 (struct timespec): Declare it; it is currently used within unistd.h,
1286 to facilitate the __CRT_INLINE implementation of nanosleep().
1288 * Makefile.in (libmingwex.a): Remove reference to...
1289 (usleep.$OBJEXT): ...this; replace it with a reference to...
1290 (nsleep.$OBJEXT): ...this alternative.
1291 (mingwrt-includedirs): Add prerequisite to create...
1292 ($includedir/parts): ...this new directory; it is populated by...
1293 (install-mingwrt-headers): ...this rule; add requisite command.
1295 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1297 Delete an unnecessary Unicode wrapper file.
1299 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
1300 UTF-16LE API from dirent.c, without any need for this wrapper.
1302 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1304 Some further inline function rationalization.
1306 * include/io.h (_CRTALIAS): Replace all references...
1307 (__CRT_ALIAS): ...using this syntactically preferred form.
1308 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
1309 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1311 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
1312 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1314 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
1315 * mingwex/ftruncate.c: Likewise.
1317 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1318 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
1320 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1322 Some POSIX feature test adjustments.
1324 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
1325 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
1326 (mkdtemp): This didn't become available until SUSv4, so requires...
1327 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
1329 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1331 Another CRT_INLINE function implementation rationalization.
1333 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
1334 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
1335 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1337 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
1338 (libmingwex.a): Delete obsolete dependency on...
1339 (imaxabs.$OBJEXT): ...this.
1341 * mingwex/imaxabs.c: File is now redundant; delete it.
1343 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1345 More rationalization of CRT_INLINE function implementations.
1347 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
1348 (ftello64): Add __LIBIMPL__ specification for extern implementation.
1349 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1351 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
1352 * mingwex/stdio/ftell064.c: Likewise.
1354 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1355 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
1357 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1359 Don't implicitly define _POSIX_C_SOURCE too early.
1361 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
1362 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
1363 that it is not accidentally activated by implied _POSIX_C_SOURCE.
1365 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1367 Correct complex arcsin computation per issue [#2245].
1369 * mingwex/complex/casin_generic.c: New file; it replaces...
1370 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
1371 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
1373 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1375 Correct complex square root computation per issue [#2246].
1377 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
1378 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
1379 (hypot): ...this libmoldname.a indirection.
1381 * mingwex/complex/csqrt_generic.c: New file; it replaces...
1382 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
1383 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
1385 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1387 Adjust header guards to resolve issue [#2244].
1389 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
1390 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
1391 ...when any of these prevail, or as appropriate to correspond with...
1392 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
1394 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
1395 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
1396 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
1397 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
1399 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1401 Add implementation of mkstemp() and mkdtemp() functions.
1403 * mingwex/cryptnam.c: New file; it implements...
1404 (__mingw_crypto_tmpname): ...this helper function; it generates a
1405 cryptographically secure sequence of characters, used as the random
1406 component in temporary file and directory names.
1408 * mingwex/mkstemp.c: New file; it implements...
1409 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
1411 * mingwex/mkdtemp.c: New file; it implements...
1412 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
1414 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
1415 function implementation, with LIBIMPL extern semantics, in terms of...
1416 (__mingw_mkstemp): ...this; also declare prototype, and define...
1417 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
1418 (_MKSTEMP_SETMODE): New macro; define it, also providing...
1419 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
1420 (mkdtemp): Declare prototype; provide inline implementation, with
1421 JMPSTUB extern semantics, in terms of...
1422 (__mingw_mkdtemp): ...this; declare prototype.
1424 * Makefile.in (libmingwex.a): Add dependency rule, to include...
1425 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
1427 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1429 More JMPSTUB rationalization of inline functions.
1431 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
1432 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
1433 appropriate MSVCRT.DLL equivalent entry point.
1435 * mingwex/_Exit.c: File is now redundant; delete it.
1436 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
1437 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
1439 * Makefile.in (jmpstub_awk_script): Add support for...
1440 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
1441 (libmingwex.a): Remove dependencies on deleted files, namely...
1442 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
1443 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
1445 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1447 Correct omission of complex conjugate functions from libmingwex.a
1449 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
1450 (creal, crealf, creall): Likewise, for consistency of implementation.
1451 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
1453 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
1454 declarations; they should be interpreted analogously to __CRT_ALIAS.
1455 (libmingwex.a): Remove object file references for functions which are
1456 now declared as LIBIMPL, and sort the remainder in ASCII collating
1457 order; deleted function references comprise the set consisting of...
1458 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
1459 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
1460 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
1462 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
1463 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
1464 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
1465 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
1466 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
1468 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1470 Back-port improved asinh() implementation from 4.0-dev branch.
1472 * mingwex/math/asinh_generic.c: New file; it replaces...
1473 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
1474 ...all of these; delete them.
1476 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1478 Enable remake of lost LIBIMPL object files.
1480 * Makefile.in (libimpl_remake): New macro; define it, and...
1481 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
1483 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1485 Implement more robust _get_output_format fallback handling.
1487 * mingwex/ofmt.c: New file; it implements...
1488 (__mingw_output_format_flag): ...backing store, used by...
1489 (__mingw_get_output_format, __mingw_set_output_format): ...these
1490 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
1491 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
1492 version specific Microsoft APIs, which are also supported by some
1493 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
1494 (__mingw_get_output_format_fallback): Implement; it is aliased to...
1495 (__mingw_set_output_format_fallback): ...this; together they provide
1496 the emulation support for the preceding pair of functions, when they
1497 are not available within the run-time platform MSVCRT.DLL
1498 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1499 Implement them; they wrap, and if necessary emulate...
1500 (_get_printf_count_output, _set_printf_count_output): ...these.
1501 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
1502 (__mingw_set_printf_count_output_fallback): ...this; together they are
1503 required to support emulation of the preceding pair of functions, when
1504 they are not available within the run-time platform MSVCRT.DLL
1506 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
1507 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
1508 (__mingw_get_output_format, __mingw_set_output_format)
1509 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1510 Unconditionally declare their prototypes, for subsequent inline use.
1511 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
1512 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
1513 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
1514 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
1515 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
1516 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
1517 represent a compilable token.
1519 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
1520 _get_output_format; consult __mingw_output_format_flag directly.
1522 * ofmt_stub.s: No longer required; delete it.
1524 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
1525 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
1526 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
1527 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
1528 all are compiled from ofmt.c
1530 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1532 Do some more essential build tree clean up.
1534 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
1535 in the way of a successful rebuild from clean.
1537 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1539 Implement wrappers for emulation of POSIX dlfcn API.
1541 * include/dlfcn.h: New file; it declares the API.
1542 * mingwex/dlfcn.c: New file; implement it, with access via...
1543 (__mingw_dlfcn): ...this publicly addressable vector table.
1545 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1546 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1547 (__LIBIMPL__): ...this automatic interface generator; implement it.
1548 (libstub_refnames): New macro; it is adapted from and replaces...
1549 (jmpstub_refs): ...this; when it is then invoked twice to build...
1550 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1551 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1552 (libimpl_awk_script): New inline script; it handles automated builds
1553 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1554 (libimpl_sed_script): New inline script; it prepares intermediate C
1555 source code for LIBIMPL interfaces, as required to satisfy these...
1556 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1557 (LIBIMPL_CFLAGS): New macro; define it.
1559 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1561 Move libgen functions to __mingw_ pseudo-namespace.
1563 * mingwex/dirname.c (dirname): Rename function, as implemented...
1564 (__mingwex_dirname): ...to this.
1566 * mingwex/basename.c (basename): Rename function, as implemented...
1567 (__mingwex_basename): ...to this.
1569 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1570 prototypes, matching and augmenting original declarations for...
1571 (dirname, basename): ...these; reimplement as inline aliases, with
1572 __JMPSTUB__ references to the renamed implementation entry points.
1574 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1576 Implement new command line argument globbing strategy.
1578 * include/_mingw.h: Backport feature defines from master...
1579 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1580 constants; define them. They select the preferred globbing algorithm.
1581 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1582 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1583 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1584 they enable optional additional features supported by this algorithm.
1585 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1587 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1589 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1590 * setargv.c: ...new file; it implements the initialization mechanism
1591 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1592 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1593 it invokes the algorithm via an API similar to that described by MSDN,
1594 while continuing to support our original _CRT_glob interpretation.
1595 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1596 algorithm, via the MSDN-alike API, by calling back to...
1598 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1599 relocated to here, as a publicly addressable function; formerly...
1600 (__mingw_CRTStartup): ...called directly from here, we now redirect
1601 the call through _setargv(), whence it may be called indirectly.
1603 * init.c: Redundant file; delete it. It originally provided...
1604 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1605 original static attribute removed, to allow global addressing.
1607 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1609 Backport glob implementation from master to legacy.
1611 * include/glob.h: New file; copy it from master branch.
1612 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1613 (glob, globfree): ...each of these, respectively.
1615 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1616 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1617 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1618 (accept_glob_nocheck_match): New static function; it adds support for
1619 avoidance of globbing on patterns with no globbing token, so avoiding
1620 the case transliteration effect reported as MinGW-Bug #2106.
1621 (glob_match): Use it.
1623 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1625 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1627 Implement conventionally named dirent function trampolines.
1629 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1630 which redirects a conventionally named function call to its __mingw_
1631 pseudo-namespace implementation.
1633 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1634 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1635 appropriate protocol for compiling *.sx files, (supported natively by
1636 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1638 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1639 yet provide it, so we define it ourselves; deploy it for *.sx files.
1640 (Makefile.stub): New sinclude file; create it dynamically, using...
1641 (jmpstub_awk_script): ...this new inline script, which is based on...
1642 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1643 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1644 (mostlyclean-local): Remove Makefile.stub; do likewise...
1645 (Makefile): ...when remaking this, to ensure that both will be
1648 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1650 Make dirent implementation namespace and time_t clean.
1652 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1653 macros; define them. They facilitate identification of symbols which
1654 must be compiled with `extern "C"' binding, when compiling C++ code.
1655 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1656 (_CRTALIAS): ...this, which is to be considered as deprecated.
1657 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1658 __CRT_ALIAS build hints, while remaining transparent to GCC.
1659 (UNICODE, _UNICODE) [user defined]: Define consistently.
1661 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1662 4.0-dev branch, with additional ABI changes to improve stability).
1663 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1664 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1665 Add `__mingw_' prefix to all publicly exposed symbol names.
1666 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1667 implemented functions; they replace Microsoft's ambiguously defined
1668 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1669 resulting from the ambiguous size of Microsoft's time_t.
1671 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1672 removing unnecessary time_t and file size fields; (our replacements
1673 for _findfirst, and _findnext do not require them to be present).
1674 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1675 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1676 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1677 Adjust prototypes, making them inline aliases for public symbols which
1678 are now qualified by the `__mingw_' prefix; add build hints to support
1679 compilation of addressable stubs, with the original symbol names.
1680 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1681 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1682 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1683 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1684 New macros; define them. (These show availability of optional fields
1685 within the dirent struct, which client code may wish to access).
1687 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1689 Correct improper naming of assembly language source files.
1691 * mingwex/math/*.S: Rename all files with this extension...
1692 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1693 not extended `assembler-with-cpp' as implied by the former extension);
1694 adjust all internal `.file <name>' references accordingly.
1696 * Makefile.in (vpath %.S): Adjust reference to locate files....
1697 (vpath %.s): ...now renamed thus.
1699 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1701 Streamline the build system infrastructure.
1703 * configure.ac: New file; it replaces...
1704 * configure.in: ...this; (name is obsolete); delete it.
1706 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1707 make invocations, when processing subdirectories, and add automatic
1708 dependency tracking for all generated files.
1710 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1712 * mingwex/Makefile.in: No longer required; delete it.
1713 * profile/Makefile.in: Likewise.
1715 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1716 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1718 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1719 longer relevant, and I have no desire to maintain it.
1721 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1723 Add another more rigorous __STRICT_ANSI__ filter.
1725 * include/limits.h [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
1726 * include/sys/param.h [PATH_MAX defined] (MAXPATHLEN): Alias it.
1727 [PATH_MAX not defined] (MAXPATHLEN): Define it directly.
1729 2012-08-02 Ivan Maidanski <ivmai@users.sourceforge.net>
1731 Add missing function prototypes per issue [#1305].
1733 * include/process.h [#ifndef _WPROCESS_DEFINED]
1734 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve)
1735 (_wexecvp, _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe)
1736 (_wspawnv, _wspawnve, _wspawnvp, _wspawnvpe): Declare them.
1738 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1740 Add function prototype declarations per issue [#1293].
1742 * include/stdio.h (_lock_file, _unlock_file): Declare them.
1744 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1746 Apply some more rigorous __STRICT_ANSI__ filtering.
1748 * include/stdio.h (_getws, _putws, _wfdopen, _wfopen)
1749 (_wfreopen, _wfsopen, _wtmpnam, _wtempnam, _wrename, _wremove)
1750 (_wperror, _wpopen): Do not declare these functions unless...
1751 [#ifndef __STRICT_ANSI__]: ...this is satisfied.
1753 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1755 Add string to 64-bit integer conversion function prototypes.
1757 * include/stdlib.h (_strtoi64, _strtoi64_l, _strtoui64, _strtoui64_l)
1758 (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l): Declare them.
1759 * include/wchar.h (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l):
1760 Likewise; these are duplicates of the <stdlib.h> declarations.
1762 2012-08-01 Earnie Boyd <earnie@users.sourceforge.net>
1764 Update for _WIN64 exception handler readiness.
1766 * include/excpt.h [_WIN64] (__try1, __except1): Add alternative inline
1767 assembly code implementation, based on X86-64 architecture.
1769 2012-07-30 Earnie Boyd <earnie@users.sourceforge.net>
1771 Correct missing inclusion of <_mingw.h>.
1773 * include/stdint.h: Add omitted #include; all mingwrt headers are
1774 expected to include this; it is required to define __int64.
1776 2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>
1778 Correct prototypes for _wfindfirst()/_wfindnext() function family.
1780 * include/io.h (_wfindfirst, _wfindfirst32, _wfindfirsti64)
1781 (_wfindfirst32i64, _wfindfirst64i32): Return type changed to intptr_t.
1782 (_wfindnext, _wfindnext32, _wfindnexti64, _wfindnext32i64)
1783 (_wfindnext64i32, _wfindnext64): Type of parameter #1 must match.
1785 2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
1787 Avoid potential GCC "missing function prototype" warnings.
1789 * include/stdio.h (getc, putc, getchar, putchar, fopen64)
1790 (ftello64): Provide a function prototype declaration for each of
1791 these, prior to the corresponding inline implementation.
1793 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1795 * include/_mingw.h: Increment version to 3.20.
1797 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1799 * tlsmthread.c: Update to reflect changes in tlssup.c.
1800 * tlssup.c: code clean-up.
1802 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1804 * include/_mingw.h: Increment version to 3.19.
1806 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1808 * include/float.h: Modify guard to accomodate CLang.
1810 Thanks to Ruben Van Boxem for the report.
1812 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1814 * tlssup.c: Remove mingwm10.dll fallback.
1816 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1818 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1820 Thanks to bvassche for the report.
1822 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1824 Correct checking for short option matches in getopt_long_only().
1826 * mingwex/getopt.c (getopt_verify): New static inline function.
1827 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1828 possible short option match after failing to match, or ambiguously
1829 matching as a long option.
1831 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1833 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1835 Thanks to cgf for the report.
1837 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1839 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1840 compiles with __STRICT_ANSI__.
1842 Thanks to Felipe Contreras for the report.
1844 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1846 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1849 Thanks to Tobias Burnus for the report.
1851 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1853 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1854 by wrapping the functions in brackets.
1856 Thanks to Kai Tietz for the report.
1858 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1860 * Makefile.in: Add support for msvcr100.dll.
1861 * msvcrt.def.in: Ditto.
1863 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1865 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1866 not always available, go the long way and use the explicit named union
1867 members, which are also declared in winnt.h.
1869 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1871 * mingwex/isblank.c: Fix typo in declaration.
1873 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1875 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1876 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1877 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1878 is included before <ctype.h>.
1880 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1882 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1884 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1886 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1888 Correct hexadecimal formatting of double and long double values.
1890 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1891 (__pformat) [A format]: Cast double values to long double, and use...
1892 (__pformat_xldouble): ...this instead, with corrected adjustment of
1893 exponent and alignment of mantissa, when formatting subnormals.
1895 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1897 * include/dirent.h (dd_handle): Define as intptr_t.
1899 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1901 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1904 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1906 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1907 semantically identical MAX_PATH; correct value is 260.
1909 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1911 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1912 system include search path; (issue reported by Mark Brand).
1914 * include/float.h: Add multiple inclusion guard around...
1915 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1916 only when this define does not indicate that it has already been seen;
1917 update comments to document rationale; move it within the scope of...
1918 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1919 GCC's float.h, after an appropriate complementary modification, need
1920 not perform a further include path search when this implementation
1921 specific extension has already been processed.
1923 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1925 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1926 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1927 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1928 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1929 _findnexti64): Correct definition.
1931 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1933 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1935 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1937 * include/_mingw.h: Increment version to 3.18.
1939 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1941 * include/stdio.h: (_vscprintf, _vscwprintf)
1942 * include/tchar.h: (_vsctprintf)
1944 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1946 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1947 (initial implementation)
1949 * new type: __time32_t
1951 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1952 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1953 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1955 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1956 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1957 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1958 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1959 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1960 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1961 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1962 _wstat32i64, _wstat64i32,_wutime32
1964 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1965 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1966 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1967 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1968 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1970 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1972 Implement TLS Callback.
1974 * tlsmcrt.c: New file.
1975 * tlsmthread.c: Ditto.
1978 * Makefile.in: Include new files.
1979 * crt1.c: Implement TLS Callback.
1981 * mthr_stub.c: Remove.
1983 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1985 * include/_mingw.h: Increment version to 3.17.
1987 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1989 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1990 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1992 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1994 * include/io.h (_open_osfhandle): Correct definition.
1996 Thanks to Alexander Shaduri for the information.
1998 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
2000 Final sync of pseudo-reloc.c with mingw64 and cygwin
2001 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
2002 regarding error messages.
2004 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
2006 Honor DESTDIR for winsup/mingw and winsup/w32api.
2007 Detect and report error if installation paths are win32
2008 format, but DESTDIR is non-empty.
2010 * Makefile.in (DESTDIR): Honor per convention.
2011 (need-DESTDIR-compatibility): New macro; define it and a
2013 (fail-DESTDIR-compatibility): New dependency goal.
2014 (install-dirs): Require need-DESTDIR-compatibility.
2015 * mingwex/Makefile.in (DESTDIR): Honor per convention.
2016 (need-DESTDIR-compatibility): New macro; define it and a
2018 (fail-DESTDIR-compatibility): New dependency goal.
2019 (install): Require need-DESTDIR-compatibility.
2020 * profile/Makefile.in: Ditto.
2022 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
2024 Sync pseudo-reloc.c with mingw64
2025 * psuedo-reloc.c: Remove unnecessary includes.
2026 Forward declare _pei386_runtime_relocator.
2027 Decorate _image_base__ symbol with macro for
2028 mingw64 compatibility. Whitespace changes.
2029 (__print_reloc_error): Renamed to...
2030 (__report_error): This. "Returns" void, and
2031 always aborts. Now used on all platforms.
2032 (__write_memory): Remove special case error handling
2033 for different platforms - always call __report_error.
2034 (do_pseudo_reloc): Remove special case error handling
2035 for different platforms - always call __report_error.
2036 (_pei386_runtime_relocator): Decorate _image_base__
2037 symbol with mingw64 compatibility macro.
2039 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
2041 Sync pseudo-reloc.c with cygwin/lib/
2042 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
2043 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
2044 for fatal error handling that is consistent with cygwin process
2045 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
2046 is unique to each address space, across fork().
2047 [CYGWIN] (__print_reloc_error): New function for reporting
2048 errors in a manner supported by cygwin at this early stage of
2049 the process life-cycle.
2050 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
2051 performed only once for each address space, but are repeated
2052 after fork() in the new address space.
2053 [MINGW] (__write_memory): Ensure that b is always initialized
2054 by call to VirtualQuery, even if -DNDEBUG.
2056 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2058 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
2059 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
2061 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
2062 (PFORMAT_HASHED): ...this formatting attribute; honour only user
2063 specified format qualifiers, except in special case...
2064 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
2065 (PFORMAT_ZEROFILL): ...this default formatting attribute...
2066 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
2069 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2071 Avoid multiple link time definitions of _printf() for C++;
2072 (problem reported by Alexander Shaduri, via MinGW-users ML).
2074 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
2075 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
2077 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2079 * include/_mingw.h: Increment version to 3.16.
2081 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2083 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
2084 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
2085 __fp_unordered_compare): Add prototypes.
2086 * include/stdio.h (vsnwprintf): Add prototype.
2087 * include/wchar.h (vsnwprintf): Add prototype.
2088 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
2089 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
2091 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2093 Correct disposition of wchar_t output in printf().
2095 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
2096 (argval): ...this, in inner scope, with singular type `wchar_t'; use
2097 it to pass one wchar to __pformat_wputchars(), for output.
2099 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2101 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
2103 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2105 Convert to monolithic configuration procedure.
2107 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
2108 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
2109 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
2110 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
2111 (CRT0S): Relocate from `profile'; define it as appropriate.
2112 (LIBM_A): Define and AC_SUBST it unconditionally.
2113 (AC_CONFIG_SUBDIRS): Remove; none to configure.
2114 (AC_OUTPUT_FILES): Add `Makefile' for each of...
2115 (mingwex, profile): ...these subdirectories.
2117 * configure: Regenerated.
2119 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
2120 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
2121 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
2122 (SUBDIRS): Define explicitly, to run recursive `make' in...
2123 (mingwex, profile): ...these; simplify build commands...
2124 (rootme, rootsrc): ...without these shell variables.
2125 (all, subdirs): Delete redundant build commands.
2126 (FIXME): Flag various issues for follow up.
2128 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
2129 (top_srcdir): ...this new macro; let AC_SUBST define it.
2130 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2131 (Makefile): Make it depend on...
2132 (top_builddir/config.status): ...this, itself depending on...
2133 (top_srcdir/configure): ...this.
2134 (FIXME): Flag various issues for follow up.
2136 * mingwex/aclocal.m4: File no longer required; delete it.
2137 * mingwex/configure mingwex/configure.in: Likewise.
2139 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
2140 (top_srcdir): ...this new macro; let AC_SUBST define it.
2141 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2142 (Makefile): Make it depend on...
2143 (top_builddir/config.status): ...this, itself depending on...
2144 (top_srcdir/configure): ...this.
2145 (FIXME): Flag various issues for follow up.
2147 * profile/aclocal.m4: File no longer required; delete it.
2148 * profile/configure profile/configure.in: Likewise.
2150 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2152 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
2153 to complaints that it causes issues.
2155 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
2157 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
2159 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2161 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
2162 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
2163 to all inline functions.
2165 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2167 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
2168 * CRT_fp10.c: Ditto.
2170 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2172 * cpu_features.c: replace gcc-specific construct with portable alternative
2173 and match the code a few lines above.
2174 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
2176 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2178 * include/_mingw.h: Changes required for PCC compiler.
2180 2009-07-18 Jeff Lu <jll544@yahoo.com>
2182 * mingwex/usleep.c: round up to next ms
2184 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2186 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
2187 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
2188 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
2189 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
2191 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2193 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
2195 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
2197 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
2198 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
2199 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
2200 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
2201 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
2202 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
2203 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
2204 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
2205 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
2206 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
2207 sources as of Apr. 20, 2009. Update further to match the sources in
2208 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
2209 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
2210 double/ulong union from U to dbl_union for better grepping and white-
2213 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2215 * include/stdlib.h (_wtof): Define.
2217 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
2219 * include/stdint.h (int_fast8_t): Specify as signed char.
2220 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
2221 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
2223 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
2225 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
2227 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2229 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
2230 (Requested by Robert Riebisch)
2232 * mingwex/getopt.c (getopt_parse): Track external increments of...
2233 (optind): ...this global variable.
2235 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2237 * include/_mingw.h: Increment version to 3.15.2.
2239 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2241 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
2242 Also add tentative support for BSD specific `optreset' feature.
2244 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
2245 (__mingw_optreset): ...this new global variable.
2247 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
2248 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
2251 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2253 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
2254 Correct mishandling of invalid characters in printf() format specs.
2256 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
2257 (backtrack): ...this new automatic variable, at start of each format
2258 conversion specification substring; use it to backtrack, and print the
2259 substring literally, if any invalid character is encountered.
2261 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
2263 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
2264 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
2265 ___unguarded_readlc_active_add_func, __crtCompareStringW,
2266 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
2267 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
2268 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
2269 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
2270 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
2271 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
2272 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
2273 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
2274 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
2275 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
2276 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
2278 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
2280 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
2282 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2284 Correct some binary distribution packaging defects.
2286 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
2287 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
2288 intermediate goals; they make packages of files, as specified by...
2289 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
2290 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
2292 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2294 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
2295 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
2297 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
2298 of radix point conditional on precision != 0 or `#' flag specified.
2300 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2302 Fix MinGW-Bug [2160227]
2303 Eliminate conflicting declarations and implementations of scalb().
2305 * moldname.def.in (scalb): Comment out of EXPORTS list.
2306 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
2307 with GCC's built-in declaration.
2309 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
2311 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
2313 * mingwex/Makefile.in: Ditto.
2314 * profile/Makefile.in: Ditto.
2315 * configure.in: Record mingw front-end for building under Cygwin.
2316 * mingwex/configure.in: Ditto.
2317 * profile/configure.in: Ditto.
2318 * configure: Regenerate.
2319 * mingwex/configure: Ditto.
2320 * profile/configure: Ditto.
2322 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2324 Use de-facto standard Makefile goals to invoke test suite.
2326 * Makefile.in: Some minor formatting adjustments.
2327 (test_headers): Unconventionally named goal renamed to...
2328 (check-headers): ...this; make it a prerequisite of...
2329 (check): ...this new conventionally named goal.
2331 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2333 Make strtod() inline definition C89 compliant.
2334 (Issue reported by Ilya Shestopalov and Ian Puleston)
2335 (Correction identified by Danny Smith)
2337 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
2338 reformat inline function definition.
2340 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2342 * include/_mingw.h: Increment version to 3.15.1 and introduce
2343 __MINGW32_PATCHLEVEL variable.
2345 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2347 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
2348 (Reported by Christian Franke)
2350 * mingwex/getopt.c (optind): Make global variable value conform to
2351 behaviour specified by POSIX; do not use it for internal state in...
2352 (getopt_parse): ...this static function; use...
2353 (optbase): ...this new static local variable instead.
2354 (getopt_resolved): Update `optind' as required.
2356 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2358 Improve package identification in configure script.
2360 * configure.ac (AC_INIT): Redefine parameters...
2361 (PACKAGE_NAME): Set to `MinGW Runtime'.
2362 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
2363 (PACKAGE_TARNAME): Set to `mingwrt'.
2364 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
2365 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
2366 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
2368 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
2369 (PACKAGE_TARNAME): ...this.
2371 * configure: Regenerated.
2373 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2375 Fix MinGW-Bug [2125708].
2376 (Reported by Alexandr Zamaraev).
2378 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
2379 not wanted here; remove it; replace it by...
2380 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
2381 (_invalid_parameter_handler): ...this function typedef.
2383 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
2385 * Makefile.in: Don't include host_os as part of snapshot filename.
2387 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2389 Fix MinGW-Bug [2119504].
2390 (Reported by Peiyuan Song).
2392 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
2393 (*retindex): ...this already correctly assigned return variable...
2394 (opt[index].val): ...with this; this should have been assigned to...
2395 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
2397 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2399 Fix MinGW-Bug [2117379].
2400 (Reported by Peiyuan Song).
2402 * include/stdio.h (__argv): Replace all references in function
2403 prototype argument lists and inline function local variables, with ...
2404 (__local_argv): ...this, to avoid potential conflict with ...
2405 * include/stdlib (__argv): ...this #defined macro.
2407 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2409 * include/_mingw.h: Increment version to 3.15.
2411 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2413 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
2414 naming standard for Cygwin.
2416 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2418 Reimplement getopt.c to add getopt_long_only() function.
2420 (N.B. this reimplementation removes support for BSD/Mac-OS-X
2421 `optreset' nonsense; user code should set `optind = 0' instead,
2422 to reinitialise option scanning).
2424 * mingwex/getopt.c: Delete all content; reimplement it.
2425 * include/getopt.h: Likewise.
2427 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
2428 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
2430 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2432 Implement conditional replacement for printf() family functions.
2434 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
2435 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
2436 flag for use in user specified __MINGW_FEATURES__ attribute.
2437 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
2438 currently unused: reserved as components of...
2439 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
2440 a __MINGW_FEATURES__ enhancement to setlocale().
2442 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
2443 (__mingw_fprintf, __mingw_vfprintf): Likewise.
2444 (__mingw_sprintf, __mingw_vsprintf): Likewise.
2445 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
2446 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
2447 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
2448 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
2449 usage; link to DLL import stub, importing from MSVCRT.
2450 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2451 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2452 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
2453 locally defined static stub implementation.
2454 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2455 __mingw_fprintf and __mingw_sprintf respectively.
2456 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
2457 static inline implementation for C++ and GNU C, or locally defined
2458 static stub otherwise.
2459 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2460 __mingw_vfprintf and __mingw_vsprintf respectively.
2462 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2464 Avoid access violations, passing NULL to printf( "...%s..." );
2465 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
2467 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
2468 for argument value, if caller passes a NULL pointer.
2469 (__pformat_wcputs): Likewise, substitute L"(null)".
2471 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2473 Add missing dependencies for building libmingwex.a.
2475 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
2476 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
2477 (pformat.h): ...this.
2479 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2481 Add replacements for remaining members of printf() family.
2483 * mingwex/stdio/printf.c: New file.
2484 * mingwex/stdio/fprintf.c: New file.
2485 * mingwex/stdio/sprintf.c: New file.
2486 * mingwex/stdio/vprintf.c: New file.
2487 * mingwex/stdio/vfprintf.c: New file.
2488 * mingwex/stdio/vsprintf.c: New file.
2490 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2491 (STDIO_OBJS): Add their corresponding object files.
2493 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2495 Replace __mingw_snprintf() with new generic family implementation;
2496 likewise, replace __mingw_vsnprintf().
2498 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
2499 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
2500 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2501 (GDTOA_DISTFILES): Remove mingw_snprintf.c
2502 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
2503 (GDTOA_OBJS): Remove mingw_snprintf.o
2504 (PFORMAT_CFLAGS): New macro; define it, as required by...
2505 (pformat.o): ...this new explicit build target.
2506 (snprintf.o, vsnprintf.o): Declare prerequisites.
2508 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
2510 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2512 Lay foundations for new printf() function family implementation.
2514 * ofmt_stub.s: New file; implement forward compatibility stub for...
2515 (_get_output_format): ...this MSVCR80.DLL and later function.
2517 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
2518 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
2519 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
2520 (lib%.a): Include ofmt_stub.o when import library does not already
2521 advertise availability of the _get_output_format() function;
2522 Add alias stubs for MINGW_REPL_FUNCS, such that...
2523 (__msvcrt_printf): ...is an alias for Microsoft's printf().
2524 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
2525 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
2526 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
2527 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
2528 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
2529 (clean): Add msvcr*.def.
2531 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
2532 * configure: Regenerated.
2534 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2536 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
2537 (_imp____mb_cur_max_dll): Likewise.
2539 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
2541 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
2542 * include/wchar.h (swprintf, vswprintf): Likewise.
2544 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2546 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
2547 (_get_output_format, _set_output_format): Add references.
2549 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
2550 (_get_output_format, _set_output_format): Declare prototypes.
2551 (_TWO_DIGIT_EXPONENT): Define.
2552 Some other minor formatting adjustments.
2554 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2556 [mingw-Bugs-1801641]
2557 * include/wchar.h (_wfdopen): Const-ify second arg.
2558 * include/stdio.h (_wfdopen): Likewise.
2559 Thanks to <tdragon at users dot sourceforge net>
2561 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2563 Avoid precision errors in round(), lround() and llround() functions.
2565 * mingwex/math/round_generic.c: New file; it replaces...
2566 * mingwex/math/round.c: ...this; delete it.
2567 * mingwex/math/roundf.c: ...and this; ditto.
2568 * mingwex/math/roundl.c: ...and this; ditto.
2570 * mingwex/math/lround_generic.c: New file; it replaces...
2571 * mingwex/math/lround.c: ...this; delete it.
2572 * mingwex/math/lroundf.c: ...and this; ditto.
2573 * mingwex/math/lroundl.c: ...and this; ditto.
2574 * mingwex/math/llround.c: ...and this; ditto.
2575 * mingwex/math/llroundf.c: ...and this; ditto.
2576 * mingwex/math/llroundl.c: ...and this; ditto.
2578 * mingwex/math/round_internal.h: New file; it provides generic common
2579 code, which is shared by `round_generic.c' and `lround_generic.c'; the
2580 implementation is based on techniques suggested by Danny Smith and
2583 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
2584 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
2585 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
2586 `round_generic.c' and `lround_generic.c'.
2587 (MATH_OBJS): Factor out files listed in...
2588 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
2589 macros; define them; specify dependencies and build rules; add to...
2590 (LIB_OBJS): ...this list.
2592 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
2594 [ mingw-Bugs-1961893 ]
2595 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
2596 mode to 2 for E format.
2598 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
2600 * include/stdlib.h: Fix strtod under C++.
2602 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
2604 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
2605 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
2607 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
2609 * include/sys/types.h (useconds_t): typedef.
2610 * include/unistd.h (usleep): Add prototype.
2611 * mingwex/usleep.c: New file.
2612 * mingwex/makefile.in: Add usleep source and object.
2614 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2616 Make strtod() conform to C99.
2618 * include/stdlib.h (strtod): Declare this mingwex function, and...
2619 (_strtod): rename this MSVCRT counterpart.
2621 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2623 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2625 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2627 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2629 * include/process.h: Include stdint.h for intptr_t definition.
2630 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2631 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2632 _spawnvpe): Return intptr_t.
2633 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2634 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2636 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2638 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2639 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2640 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2641 _wspawnvp, _wspawnvpe): Return intptr_t.
2643 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2645 * include/wchar.h (fwide): Return success code rather than failure in inline
2647 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2648 code rather than failure.
2650 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2652 * include/math.h (float_t, double_t): Define.
2654 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2656 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2657 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2658 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2660 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2662 * include/complex.h: Don't condition contents on C99 or not
2665 2008-02-01 Brian Dessent <brian@dessent.net>
2667 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2668 the different runtime versions.
2670 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2672 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2673 (mbsinit): Likewise.
2675 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2677 * include/_mingw.h: Increment version to 3.14.
2679 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2681 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
2682 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
2683 * mingwex/math/log10f.S: Correct issue with comments.
2684 * mingwex/math/log10l.S: Ditto.
2685 * mingwex/math/log1p.S: Ditto.
2686 * mingwex/math/log1pf.S: Ditto.
2687 * mingwex/math/log1pl.S: Ditto.
2688 * mingwex/math/log2.S: Ditto.
2689 * mingwex/math/log2f.S: Ditto.
2690 * mingwex/math/log2l.S: Ditto.
2691 * mingwex/math/logf.S: Ditto.
2692 * mingwex/math/logl.S: Ditto.
2694 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
2696 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
2698 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
2700 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
2701 from '_fsize_t' to '__int64' to be consistent with the other ...64
2702 structures and the value set there is 8 bytes not 4. Add guard for both
2703 as the are only used by functions available from 6.1 on.
2705 * include/malloc.h (_HEAP_MAXREQ): Define.
2706 (_aligned_offset_recalloc): Define.
2707 (_aligned_recalloc()): Define.
2709 * include/math.h: fixed a typo in a comment.
2710 (atanhf): Fixed declaration.
2712 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
2713 to '__int64' to be consistent with the other ...64 structures and the value
2714 set there is 8 bytes not 4. Added guard as this function is only used by
2715 functions available from 6.1 on.
2717 * include/sys/stat.h: some members of 'stat' were declared with types with
2718 a prefixed underscore, while the ones without the underscore should have
2719 been used. Added guard to '__stat64' as it is only used by functions
2720 available from 6.1 on. Added the wide character versions of the
2721 exec()/spawn() family for completion
2722 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
2725 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
2726 from 'long' to 'time_t'
2727 (__timeb64): moved declaration of structure directly before the declaration
2728 of the function '_ftime64()', so it is guarded as well
2730 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
2731 before the declaration of the functions using it, so it is guarded as well
2733 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
2735 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
2736 case. Add missing break in 's'/LEN_S case.
2738 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2740 Make snprintf() and vsnprintf() conform to C99.
2742 * include/stdio.h: Add note about incompatibility between...
2743 (snprintf, vsnprintf): These two mingwex functions, and...
2744 (_snprintf, _vsnprintf): these MSVCRT counterparts.
2746 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
2747 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
2749 * mingwex/stdio/snprintf.c: Delete.
2750 * mingwex/stdio/vsnprintf.c: Delete.
2752 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
2753 (vsnprintf): Alias to __mingw_vsnprintf.
2755 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2757 * include/_mingw.h: Increment version to 3.13.
2758 * Makefile.in: Reset CYGRELEASE to 1
2760 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2762 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
2763 resulting from incomplete removal of enclosing `for ...; do ...; done'
2764 loop from compound command; (reported by Greg Chicares).
2766 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2768 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2771 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2773 [mingw-Bugs-1734142]
2774 * include/wchar.h (_wsystem) Declare.
2776 (_wgetenv): Declare.
2777 (_wsearchenv): Declare.
2778 (_wmakepath): Declare.
2779 (_wsplitpath): Declare.
2780 (_wfullpath): Declare.
2781 * include/stdlib.h (_wsystem) Declare.
2782 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
2783 _wfullpath): Move into _WSTDLIB_DEFINED guard.
2784 * include/tchar.h (_tsystem): New UNICODE mapping define.
2786 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
2788 * mingwex/gdtoa/mingw_snprintf.c: New file.
2789 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
2790 (GDTOA_OBJS): Add mingw_snprintf.o.
2792 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
2794 * msvcrt.def.in: Update comment.
2795 Exclude _ctype stub if using msvcr71.dll or newer.
2796 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
2797 * include/wctype.h: Likewise.
2799 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2801 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
2802 *include/dirent.h: Likewise.
2804 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2806 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
2807 * include/conio.h: Likewise.
2808 * include/ctype.h: Likewise.
2809 * include/direct.h: Likewise.
2810 * include/dos.h: Likewise.
2811 * include/errno.h: Likewise.
2812 * include/fenv.h: Likewise.
2813 * include/float.h: Likewise.
2814 * include/inttypes.h: Likewise.
2815 * include/io.h: Likewise.
2816 * include/libgen.h: Likewise.
2817 * include/locale.h: Likewise.
2818 * include/malloc.h: Likewise.
2819 * include/mbctype.h: Likewise.
2820 * include/mbstring.h: Likewise.
2821 * include/process.h: Likewise.
2822 * include/search.h: Likewise.
2823 * include/setjmp.h: Likewise.
2824 * include/signal.h: Likewise.
2825 * include/stdio.h: Likewise.
2826 * include/stdlib.h: Likewise.
2827 * include/string.h: Likewise.
2828 * include/time.h: Likewise.
2829 * include/wchar.h: Likewise.
2830 * include/sys/stat.h: Likewise.
2831 * include/sys/time.h: Likewise.
2832 * include/sys/timeb.h: Likewise.
2833 * include/sys/utime.h: Likewise.
2835 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2837 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2839 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2841 Add POSIX binary tree search API.
2843 * mingwex/tfind.c: New file.
2844 * mingwex/tdelete.c: New file.
2845 * mingwex/tsearch.c: New file.
2846 * mingwex/twalk.c: New file.
2847 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2848 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2849 * include/search.h (tfind): Declare.
2856 (node_t): Define, on condition of _SEARCH_PRIVATE.
2858 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2860 * include/_mingw.h (__MINGW_NOTHROW): Define.
2862 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2864 * include/stdio.h (vsnprintf): Remove inline definition.
2867 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2869 * CRTfmode.c: Nit-pick comment fix.
2871 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2873 * CRTfmode.c: Fix nested comment.
2875 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2877 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2879 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2881 * include/io.h (lseek64) : Add prototype.
2883 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2885 * include/string.h (strcasecmp): Add prototype.
2886 (strncasecmp): Add prototype.
2888 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2890 * Makefile.in (CRT0S): Revert last change.
2891 * CRTfmode.c. Correct comment.
2893 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2895 * Makefile.in (CRT0S): Add back CRTfmode.o.
2897 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2899 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2900 * include/io.h: Likewise.
2902 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2904 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2906 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2908 * include/stdint.h (intptr_t): Fix typo.
2909 Thanks to Charles Wilson for report.
2911 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2913 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2914 Condition on _WIN64.
2915 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2916 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2917 (PTRDIFF_MIN): Define as INTPTR_MIN.
2918 (PTRDIFF_MAX): Define as INTPTR_MAX.
2919 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2920 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2922 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2924 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2925 Cygwin man page location.
2927 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2929 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2930 support Cygwin man page location.
2932 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2934 * Include/_mingw.h: Increment version to 3.12.
2936 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2938 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2940 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2942 * Makefile.in: Tweak srcdist to fix build issue.
2944 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2946 Add --enable-mingw-manpage-transform configure option.
2948 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2949 * configure.in, Makefile.in: Use it.
2950 * configure: Regenerated.
2952 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2954 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2956 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2958 Add manpages for dirname and basename functions.
2960 * man: New directory.
2961 * man/dirname.man: New file; it sources both manpages.
2962 * Makefile.in: Add provisional rules to distribute them.
2964 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2966 * mingwex/basename.c: Make it work with path names containing
2967 multibyte character strings.
2968 * mingwex/dirname.c: Likewise.
2970 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2972 * include/io.h (__mingw_access): New static inline wrapper to restore
2973 pre-Vista 'access (fname, X_OK)' behaviour.
2974 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2976 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2978 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2980 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2982 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2984 * include/stdio.h (_unlink, unlink): Add prototypes.
2986 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2988 * include/excpt.h: Replace "_try1" in comments with "__try1".
2990 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2992 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2993 (ALL_CXXFLAGS): Likewise.
2994 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2995 (ALL_CXXFLAGS): Likewise.
2996 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2997 (ALL_CXXFLAGS): Likewise.
2999 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
3001 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
3003 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
3005 Expose some more msvcr80.dll functions.
3006 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
3007 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
3008 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
3009 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
3011 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3013 Expose some msvcr80.dll functions.
3014 * include/stdlib.h (_set_abort_behavior): Add prototype.
3015 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
3016 _set_abort_behavior mask argument.
3017 (_invalid_parameter_handler): Add typedef.
3018 (_set_invalid_parameter_handler): Add prototype.
3019 * include/stdio.h (_get_printf_count_output): Add prototype.
3020 (_set_printf_count_output): Add prototype.
3021 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
3022 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
3024 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
3026 * include/_mingw.h (CRT_INLINE): Correct typo.
3028 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
3030 * include/io.h (X_OK): Define to F_OK.
3032 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
3034 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
3035 unconditionally. Change comment.
3036 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
3038 * include/io.h (rename): Declare.
3041 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3043 * include/libgen.h: New file; required by...
3044 * mingwex/basename.c, mingwex/dirname.c: New files.
3045 * mingwex/Makefile.in (DISTFILES): Add them...
3046 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
3047 (Dependencies): Typo; s/Dependancies/Dependencies/
3049 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
3051 * Makefile.in (VERSION): Let configure define it.
3053 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
3054 * configure.in: Use it.
3055 Correct quoting of autoconf macro arguments throughout.
3056 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
3057 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
3058 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
3059 (AC_CONFIG_FILES): Add, to generate Makefile.
3061 * configure: Regenerated.
3063 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
3065 * Makefile.in: Add aclocal.m4 to source release.
3066 * mingwex/Makefile.in: Ditto.
3067 * profile/Makefile.in: Ditto.
3069 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3071 * Include/_mingw.h: Increment version to 3.11.
3072 * Makefile.in: Ditto.
3074 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3076 [ mingw-Bugs-1590623 ]
3077 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
3080 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
3082 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
3083 correctly parenthesized.
3085 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3087 * mingwex/mb_wc_common.h (get_codepage): Get it
3090 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3092 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
3094 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
3096 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
3099 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
3101 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
3104 2006-09-11 Christopher Faylor <cgf@timesys.com>
3106 * Makefile.in: Semi-revert 2006-08-30 change.
3108 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3110 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
3111 (__MINGW_IMPORT): Ansify.
3112 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
3113 __MINGW_ATTRIB_DEPRECATED.
3115 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3117 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
3118 Redundant macros; deleted.
3120 * configure.in (LIB_AC_PROG_CC): Replaced by...
3121 (AC_PROG_CC): ...this.
3123 * configure: Regenerated.
3125 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
3127 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
3128 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
3129 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
3131 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
3133 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
3134 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
3135 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
3136 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
3138 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
3139 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
3140 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
3141 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
3142 * mingwex/wcstold.c: Avoid using strtold internals.
3143 * mingwex/wcstof.c: Rewrite.
3144 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
3145 (GDTOA_OBJS): Add to library.
3146 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
3147 (STDLIB_OBJS): Remove.
3148 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
3149 (Q8_OBJS): Add wcstof.o wcstold.o.
3150 * include/stdlib.h (strtof): Remove inline definition.
3152 * include/wchar.h (wcstof): Remove inline definition.
3154 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
3156 * Makefile.in: Add with_cross_host to allow more granular checks.
3157 Set installation directories accordingly. Override CC setting only
3158 if building a Cygwin target.
3159 * aclocal.m4: Regenerate.
3160 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
3161 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
3162 Test AC_ALLOCA only if building on a native system.
3163 * configure: Regenerate.
3165 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3167 * include/ctype.h: Fix typo.
3169 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3171 * include/ctype.h: Expose iswblank if __cplusplus.
3172 * include/wctype.h: Expose iswblank if __cplusplus.
3174 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3176 * include/ctype.h: Remove stray ')';
3178 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3180 * include/ctype.h (_BLANK): Expand comment.
3181 (isblank): Add prototype and inline definition.
3182 (iswblank): Add prototype and inline definition.
3183 * include/wctype.h (iswblank): Add prototype and inline definition.
3184 * mingwex/isblank.c: New file.
3185 * mingwex/iswblank.c: New file.
3186 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
3188 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
3190 * include/math.h (__INFF,__INFL): Remove '#'.
3192 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3194 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
3196 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3198 Support SSE float environment in fenv.h functions.
3199 * cpu_features.c: New file.
3200 * cpu_features.h: New file.
3201 * crt1.c: Include "cpu_features.h".
3202 (__mingw_CRTStartup): Call cpu_features_init().
3203 * Makefile.in (MING_OBJS): Add cpu_features.c.
3204 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
3205 * include/fenv,h ( fenv_t;): Append __mxcsr field.
3206 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
3207 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
3208 (__MXCSR_ROUND_FLAG_SHIFT): New define.
3209 * mingwex/feclearexcept.c: Include "cpu_features.h".
3210 Handle SSE environment.
3211 * mingwex/fegetenv.c: Likewise.
3212 * mingwex/feholdexcept.c: Likewise.
3213 * mingwex/fesetenv.c: Likewise.
3214 * mingwex/fesetexceptflag.c: Likewise.
3215 * mingwex/fesetround.c: Likewise.
3216 * mingwex/fetestexcept.c: Likewise.
3217 * mingwex/feupdateenv.c: Likewise.
3218 * mingwex/fegetround.c: Add comment.
3220 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3222 * Include/_mingw.h: Increment version to 3.10.
3223 * Makefile.in: Ditto.
3225 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3227 * mingwex/math/tgamma.c (SQTPI): Add braces.
3229 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3231 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
3232 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
3234 * mingwex/math/sf_erf.c (erff): Initialize z.
3236 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
3238 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3240 * Include/_mingw.h: Increment version to 3.10.
3241 * Makefile.in: Ditto.
3243 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3245 * include/sys/time.h (struct timezone): Define.
3246 * include/time.h: Correct comment about timezone.
3248 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3250 * configure.in (AC_CONFIG_AUX_DIR): Remove.
3251 * configure: Regenerate.
3253 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
3255 * configure: add srcdir as a possible location for install-sh.
3257 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3259 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
3260 (_topendir): Use it.
3262 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3264 * include/sys/time.h: Add header guard. Add extern "C" bracketing
3266 (gettimeofday): Add prototype.
3267 * mingwex/gettimeofday.c: New file.
3268 * mingwex/makefile.in: Add gettimeofday source and object.
3270 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3272 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
3273 else global library variable.
3274 (HUGEVALF): Likewise.
3275 (HUGEVALL): Likewise.
3276 (INFINITY): Likewise.
3279 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3281 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
3283 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3285 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
3287 2006-05-24 Christopher Faylor <cgf@timesys.com>
3289 * configure.in: Update to newer autoconf.
3290 (thanks to Steve Ellcey)
3291 * mingwex/configure.in: Ditto.
3292 * profile/configure.in: Ditto.
3293 * configure: Regenerate.
3294 * mingwex/configure: Ditto.
3295 * profile/configure: Ditto.
3296 * aclocal.m4: New file.
3297 * mingwex/aclocal.m4: Ditto.
3298 * profile/aclocal.m4: Ditto.
3300 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
3302 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
3303 Use supplied codepage as arg to WideCharToMultiByte.
3305 2006-02-13 Earnie Boyd <earnie@users.sf.net>
3307 * Makefile.in (libmsvcr80.a): Add import lib.
3308 (libmsvcr80d.a): Ditto.
3310 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3312 * Makefile.in: Bump cygwin build number.
3314 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3316 * Include/_mingw.h: Increment version to 3.9.
3317 * Makefile.in: Ditto.
3319 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3321 * include/limits.h (SSIZE_MAX): Define.
3322 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
3324 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
3326 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
3327 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
3329 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3331 * include/stddef.h: Remove.
3332 * include/stdarg.h: Remove.
3334 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3336 * mingwex/complex/csqrt.c (csqrt): The sign of real part
3337 of result is positive when real part of arg == 0;
3338 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
3339 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
3341 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3343 * include/time.h (_time64): Correct prototype.
3345 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
3347 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
3348 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
3349 to non-stop. Use "fnclex" to clear exception flags.
3351 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3353 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
3354 Avoid raising FP exceptions.
3356 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3358 * include/stdlib.h (strtof): Add prototype. Uglify
3359 parameter names in inline definition.
3361 (_Exit): Uglify parameter names in inline definition.
3362 (llabs): Add prototype.
3363 (_set_error_mode): Add prototype and input defines.
3365 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3367 * mingwex/fe*.c: Revert previous changes.
3368 * include/fenv.h: Revert previous changes.
3370 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3372 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
3373 Do not return a value.
3374 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
3375 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
3376 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
3377 * mingwex/fegetenv.c (fegetenv): Likewise.
3378 * mingwex/fesetenv.c (fesetenv): Likewise.
3379 * mingwex/feupdateenv.c (feupdateenv): Likewise.
3380 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
3381 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
3384 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3386 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
3387 getting filelength for SEEK_END.
3389 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3391 * Include/_mingw.h: Increment version to 3.8.
3392 * Makefile.in: Ditto.
3394 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3396 * include/wctype.h (towupper, towlower): Change arg and return value
3398 * include/ctype.h (towupper, towlower): Likewise.
3400 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3402 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
3403 a diagnostic, guarded by #ifdef DEBUG.
3404 (__mingwthr_remove_key_dtor): Likewise.
3406 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
3408 * moldname.def.in (sleep, beep, seterrormode): Remove.
3410 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3412 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
3413 (_MCOUNT_DECL): Use it.
3414 (MCOUNT): Save and restore eax, ecx, edx registers.
3415 * profile/mcount.c (_mcount): ANSI-fy.
3417 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3419 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
3420 guard __MINGW_ATTRIB macro definitions.
3421 * include/math.h (logb[fl]): Don't define inlines for
3422 GCC-4.0+ && __FAST_MATH__.
3423 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
3424 line-continuation backslashes.
3426 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
3428 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
3429 in GNUC version guard.
3431 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
3433 * crt1.c (_gnu_exception_handler): Handle illegal instruction
3434 OS exception as a signal if user has defined a SIGILL handler.
3436 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
3438 * mingwex/math/nexttoward.c: New file.
3439 * mingwex/math/nexttowardf.c: New file.
3440 * mingwex/math/nextafterl.c: Add nexttowardl alias.
3441 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
3443 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
3444 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
3447 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
3449 * mingwex/math/nextafterf.c (nextafterf): Correct
3451 * mingwex/math/nextafterl.c: New file.
3452 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
3453 (MATH_OBJS): Add nextafterl.o.
3454 * include/math.h (nextafterl): Uncomment prototype.
3456 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3458 * mingwex/math/erfl.c: New file.
3459 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
3460 (MATH_OBJS): Add erfl.o.
3461 * include/math.h (erfl, erfcl): Uncomment prototypes.
3463 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
3465 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
3466 #if (WCHAR_MAX <= WCHAR_MIN) is false.
3467 * include/stdint.h (WCHAR_MAX): Likewise.
3468 (WINT_MAX): Likewise.
3470 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
3472 * mingwex/math/signbit.c (__signbit): Make return value
3473 consistent with GCC's __builtin_signbit.
3474 * mingwex/math/signbitf.c (__signbitf): Likewise.
3475 * mingwex/math/signbitf.c (__signbitl): Likewise.
3476 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
3479 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
3481 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
3483 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
3484 Remove unused MBTOWC_FLAGS define.
3486 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
3488 * mingwex/mbrtowc.c: New file.
3489 * mingwex/wcrtomb.c: New file.
3490 * mingwex/btowc.c: New file.
3491 * mingwex/wctob.c: New file.
3492 * mingwex/mb_wc_common.h: New file.
3493 * mingwex/Makefile.in (DISTFILES): Add new files.
3494 (Q8_OBJS): Add new objects.
3495 * include/wchar.h: Adjust comment about mbrtowc() and related
3496 funcions. Add __restrict__ to pointer params in prototypes.
3497 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
3498 arg names from protototypes.
3500 2005-04-23 Wu Yongwei <adah@sh163.net>
3502 * mingwex/dirent.c: Formatting changes.
3503 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
3506 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
3508 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
3510 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
3512 * include/stdio.h (__mingw_fwrite): Change return value to
3514 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
3516 2005-03-15 Hans Leidekker <hans@it.vu.nl>
3518 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
3520 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3522 * include/wctype.h (wctrans): Remove _CRTIMP.
3523 (towctrans): Likewise.
3526 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3528 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
3530 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3532 * mingwex/wctype.c: New file.
3533 * mingwex/wctrans.c: New file.
3534 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
3535 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
3537 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3539 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
3541 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3543 * include/assert.h: Remove header guard. #undef assert macro.
3544 (_assert): Use __MINGW_ATTRIB_NORETURN define.
3546 2005-02-11 Gregory W. Chicares <chicares@cox.net>
3548 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
3549 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
3551 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
3552 * mingwex/math/expm1.c: New file.
3553 * mingwex/math/expm1f.c: New file.
3554 * mingwex/math/expm1l.c: New file.
3556 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3558 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
3559 * include/wchar.h (struct stat): Likewise.
3560 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
3562 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
3564 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3566 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
3567 string is not valid.
3569 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
3571 * include/malloc.h: Add missing return code defines for
3574 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
3576 * include/sys/stat.h (struct __stat64): Change st_size type to
3578 * include/wchar.h (struct __stat64): Change st_size type to __int64.
3580 2005-01-13 Earnie Boyd <earnie@users.sf.net>
3582 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3584 * include/errno.h (ELOOP): Ditto.
3585 * include/_mingw.h: Increment version to 3.7.
3586 * Makefile.in: Ditto.
3588 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3590 * include/tchar.h (_tfreopen): Add UNICODE mappings.
3592 2005-01-11 Earnie Boyd <earnie@users.sf.net>
3594 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3595 lstat): Conditionalize defines for __STRICT_ANSI__.
3597 2005-01-10 Earnie Boyd <earnie@users.sf.net>
3599 * include/errno.h (ELOOP): Add definition.
3601 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
3603 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
3604 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
3605 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
3606 ctanl.c ctanhl.c): New files.
3607 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3608 (COMPLEX_OBJS): Adjust.
3609 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
3610 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
3611 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
3614 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3616 * include/_mingw.h (__int16): Define as short.
3617 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3619 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3621 * include/stdio.h (P_tmpdir): Add define.
3623 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3625 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3627 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3629 * include/_mingw.h: Increment version to 3.6
3630 * Makefile.in: Ditto
3632 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3634 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3635 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3636 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3637 ctanf.c ctanhf.c): New files.
3638 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3639 (COMPLEX_OBJS): Adjust.
3640 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3641 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3642 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3645 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3647 * include/wchar.h (wcsdup): Correct prototype.
3648 * include/string.h (wcsdup): Correct prototype.
3650 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3652 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3654 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3656 * mingwex/math/fastmath.h: New file.
3657 * mingwex/math/asinh.c: New file.
3658 * mingwex/math/asinhf.c: New file.
3659 * mingwex/math/asinhl.c: New file.
3660 * mingwex/math/acosh.c: New file.
3661 * mingwex/math/acoshf.c: New file.
3662 * mingwex/math/acoshl.c: New file.
3663 * mingwex/math/atanh.c: New file.
3664 * mingwex/math/atanhf.c: New file.
3665 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3666 atanh, atanhf, atanhl): Add prototypes.
3667 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3668 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3669 Specify dependency on fastmath.h for new objects.
3671 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3673 * include/sys/stat.h (_S_IFLNK): Add definition.
3680 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3682 * include/sys/stat.h (_S_ISLNK): Add definition.
3685 2004-09-05 Earnie Boyd <earnie@users.sf.net>
3687 * include/_mingw.h: Increment minor version for 3.5 release.
3688 * Makefile.in: Ditto.
3689 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
3691 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3693 * include/malloc.h (__mingw_aligned_offset_malloc,
3694 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
3695 __mingw_aligned_realloc, __mingw_aligned_free): Add
3697 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
3698 tst-aligned-malloc.c.
3699 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
3701 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
3703 * mingwex/mingw-aligned-malloc.c: New file.
3704 * mingwex/tst-aligned-malloc.c: New file.
3706 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3708 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
3709 noreturn attribute. Align stack to 16 bytes before passing args
3711 (mainCRTStartup): Change return to void.
3712 (WinMainCRTStartup): Likewise.
3714 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3716 * profile/COPYING: New file.
3717 * profile/CYGWIN_LICENSE: New file.
3718 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
3720 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3722 * mingwex/fopen64.c: Move.
3723 * mingwex/fseeko64.c: Move.
3724 * mingwex/ftello64.c: Move.
3725 * mingwex/lseek64.c: Move.
3726 * mingwex/stdio/fopen64.c: To here.
3727 * mingwex/stdio/fseeko64.c: To here.
3728 * mingwex/stdio/ftello64.c: To here.
3729 * mingwex/stdio/lseek64.c: To here.
3731 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3733 * profile/gmon.c [__MINGW32__]: Include string.h for
3736 2004-08-08 Christopher Faylor <cgf@timesys.com>
3738 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
3740 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3742 * include/complex.h: Remove __attribute__ ((const)) from
3743 transcendantal and trig functions. Replace __attribute__ ((const))
3744 with __MINGW_ATTRIB_CONST on other declarations.
3746 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3748 * include/wchar.h: Reorganize, avoid including other headers.
3750 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3752 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
3753 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
3756 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3758 * include/dirent.h (struct _wdirent): Remove obsolete comment.
3760 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3762 * include/string.h: Revert 2004-07-26 additions of
3765 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3767 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3768 (__convert_inf_to_maxnum): New.static inline.
3769 (reducl): Use it to protect against Inf - Inf.
3770 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3772 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3774 * mingwex/math/expl.c (expl): Move body of code to new static
3775 function __expl, removing tests for +/-Inf. Extern function
3776 expl calls __expl after testing for max, min log thresholds.
3778 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3780 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
3781 * mingwex/stdio/vfscanf.c: Likewise.
3782 * mingwex/stdio/vswscanf.c: Likewise.
3783 * mingwex/stdio/vfwscanf.c: Likewise.
3785 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3787 * include/_mingw.h: Use only two underscores to uglify
3788 __MINGW_ATTRIB_* macros.
3789 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
3790 * include/setjmp.h: Likewise.
3792 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
3794 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
3796 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3798 * include/string.h: Group wide string functions together,
3799 and protect with _WSTRING_DEFINED.
3801 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3803 * include/_mingw.h (__MINGW_ATTR_*): Replace with
3805 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
3806 __MINGW_ATTRIB_NORETURN, throughout.
3807 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3809 (abs): Declare with __MINGW_ATTRIB_CONST.
3818 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3820 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3822 * include/_mingw.h: Undefine __attribute__.
3823 (__MINGW_ATTR_NORETURN): New define.
3824 (__MINGW_ATTR_CONST): New define.
3825 (__MINGW_ATTR_MALLOC): New define.
3826 (__MINGW_ATTR_PURE): New define.
3827 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3830 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3832 * include/time.h (__time64_t): Add missing ';'.
3834 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3836 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3837 (struct tm): Protect with _TM_DEFINED.
3839 2004-07-17 Christopher Faylor <cgf@timesys.com>
3841 * Makefile.in (CC): Strip inappropriate include file settings from any
3844 2004-07-15 "dgun" <dgun@umpire.com>
3846 * include/complex.h (conj): Correct typo in prototype.
3848 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3850 * include/math.h: Add pragma GCC system_header.
3852 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3854 * mingwex/complex/carg.c: New file.
3855 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3857 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3859 * Makefile.in (INCLUDES): Temporarily revert previous change.
3860 * mingwex/Makefile,in (INCLUDES): Ditto.
3861 * profile/Makefile,in (INCLUDES): Ditto.
3862 * mingwex/Makefile,in: Drop carg.o dependency.
3864 2004-07-14 Christopher Faylor <cgf@timesys.com>
3866 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3868 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3870 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3872 * mingwex/Makefile,in (INCLUDES): Ditto.
3873 * profile/Makefile,in (INCLUDES): Ditto.
3875 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3877 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3879 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3881 * mingwex/Makefile.in: Ditto.
3882 * profile/Makefile.in: Ditto.
3883 * include/limits.h: Change to new file header preamble.
3884 * include/_mingw.h: Increment minor version for 3.4 release.
3885 * Makefile.in: Ditto.
3887 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3889 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3891 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3893 * include/unistd.h (ftruncate): Add inline definition.
3894 * mingwex/ftruncate.c: New file.
3895 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3897 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3899 * include/time.h: Do not include sys/types.h.
3901 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3903 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3904 (MATH_OBJS): Remove pow,o.
3905 * include/math.h (pow): Declare with _CRTIMP.
3906 Add comment on how to avoid excess precision problems.
3908 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3910 * include/stdio.h (__mingw_fseeko64): Add prototype.
3911 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3912 (__mingw_fwrite): Handle huge files.
3914 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3915 Danny Smith <dannysmith@users.sourceforge.net>
3917 * include/stdio.h (fopen64): Add inline function.
3918 (fseeko64): Add prototype.
3919 (ftello64): Add inline function.
3920 * include/io.h (lseek64): Add inline function.
3921 * include/sys/types (off64_t): Add typedef.
3922 (fpos64_t): Add typedef.
3923 * mingwex/fopen64.c: New file.
3924 * mingwex/fseeko64.c: New file.
3925 * mingwex/ftello64.c: New file.
3926 * mingwex/lseek64.c: New file.
3927 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3928 fseeko.64.c, ftello64.c, lseek64.c.
3929 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3931 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3933 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3935 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3937 * DISCLAIMER: Add words about "free to use".
3938 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3939 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3940 (inst_docdir): New variable.
3942 (FLAGS_TO_PASS): Include inst_docdir.
3943 (install-dirs): Add inst_docdir.
3944 (install): Add loop for INSTDOCS.
3945 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3946 section to CONTRIBUTORS file. Remove RCS tags.
3948 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3950 * mingwex/math/lround.c: Rewrite.
3951 * mingwex/math/lroundf.c: Rewrite.
3952 * mingwex/math/lroundl.c: Rewrite.
3953 * mingwex/math/llround.c: Rewrite.
3954 * mingwex/math/llroundf.c: Rewrite.
3955 * mingwex/math/llroundl.c: Rewrite.
3957 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3959 * CONTRIBUTORS: New file.
3960 * DISCLAIMER: Ditto.
3961 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3962 section to CONTRIBUTORS file. Remove RCS tags.
3963 * CRTFmode.c: Ditto.
3967 * crtdll.dev: Ditto.
3977 * msvcrt.def.in: Ditto.
3978 * strcasecmp.c: Ditto.
3981 * include/assert.h: Ditto.
3982 * include/conio.h: Ditto.
3983 * include/ctype.h: Ditto.
3984 * include/direct.h: Ditto.
3985 * include/dirent.h: Ditto.
3986 * include/dos.h: Ditto.
3987 * include/errno.h: Ditto.
3988 * include/excpt.h: Ditto.
3989 * include/fcntl.h: Ditto.
3990 * include/float.h: Ditto.
3991 * include/io.h: Ditto.
3992 * include/locale.h: Ditto.
3993 * include/malloc.h: Ditto.
3994 * include/math.h: Ditto.
3995 * include/process.h: Ditto.
3996 * include/setjmp.h: Ditto.
3997 * include/share.h: Ditto.
3998 * include/signal.h: Ditto.
3999 * include/stdio.h: Ditto.
4000 * include/stdlib.h: Ditto.
4001 * include/string.h: Ditto.
4002 * include/tchar.h: Ditto.
4003 * include/time.h: Ditto.
4004 * include/wchar.h: Ditto.
4005 * include/sys/locking.h: Ditto.
4006 * include/sys/param.h: Ditto.
4007 * include/sys/stat.h: Ditto.
4008 * include/sys/timeb.h: Ditto.
4009 * include/sys/types.h: Ditto.
4010 * include/sys/utime.h: Ditto.
4011 * mingwex/dirent.c: Ditto.
4013 2004-04-19 Earnie Boyd <earnie@users.sf.net>
4015 * include/_mingw.h: Revert to primary release 3 and increment minor
4017 * Makefile.in (VERSION): Ditto.
4019 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4021 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
4022 _fmode if not __MSVCRT__.
4024 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
4026 * include/io.h: (_findfirst): Correct prototype.
4028 2004-03-30 Hans Leidekker <hans@it.vu.nl>
4030 * include/io.h: (_findnext, _findclose): Correct prototype.
4032 2004-03-28 Hans Leidekker <hans@it.vu.nl>
4034 * include/math.h (FP_*): Add defines.
4036 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4038 * mingwex/math/round.c: Rewrite.
4039 * mingwex/math/roundf.c: Rewrite.
4040 * mingwex/math/roundl.c: Rewrite.
4042 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4044 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
4045 * include/time.h (__time64_t): Add typedef.
4046 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4047 (_ctime64): Likewise.
4048 (_wctime64): Likewise.
4049 (_gmtime64): Likewise.
4050 (_localtime64): Likewise.
4051 (wcsftime): Move into _WTIME_DEFINED block.
4052 Regroup non-ANSI prototypes.
4053 * include/io.h: Include <stdint.h>.
4054 (__finddata64_t): Add struct definition.
4055 (__wfinddata64_t): Likewise.
4056 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4057 (_findnext64): Likewise.
4058 (_wfindfirst64): Likewise.
4059 (_wfindnext64): Likewise.
4060 * include/sys/timeb.h (__timeb64): Add struct definition.
4061 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4062 * include/sys/utime.h (__utimbuf64): Add struct definition.
4063 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4064 (_futime64): Likewise.
4065 (_wutime64): Likewise.
4066 * include/sys/stat.h (__stat64): Add struct definition.
4067 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4068 (_stat64): Likewise.
4069 (_wstat64): Likewise.
4070 * include/sys/types.h (__time64_t): Add typedef.
4071 * include/wchar.h (__wfinddata64_t): Add structure definition.
4072 (__stat64): Likewise.
4073 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4074 (_wfindfirst64): Likewise.
4075 (_wfindnext64): Likewise.
4076 (_wutime64): Likewise.
4077 (_wstat64): Likewise.
4078 * include/malloc.h (_aligned_free): Add prototype for
4079 __MSVCRT_VERSION__ >= 0x0700.
4080 (_aligned_malloc): Likewise.
4081 (_aligned_offset_malloc): Likewise.
4082 (_aligned_offset_realloc): Likewise.
4083 (_aligned_realloc): Likewise.
4084 * include/string.h (_wcserror): Add prototype for
4085 __MSVCRT_VERSION__ >= 0x0700.
4086 (__wcserror): Likewise.
4087 * include/math.h (_set_SSE2_enable): Add prototype for
4088 __MSVCRT_VERSION__ >= 0x0701.
4090 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4092 * include/stdio.h (_fsopen): Add prototype.
4093 * include/tchar.h (_tfsopen): Add defines.
4094 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
4096 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
4098 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
4099 msvcr70.dll, and msvcr71.dll.
4100 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
4101 using basename of output def file.
4103 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
4105 * include/malloc.h: Remove __STRICT_ANSI__ guard.
4107 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
4109 * include/process.h: Remove the #endif associated with removal of
4110 __STRICT_ANSI__ guard from non-ANSI header.
4112 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4114 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
4115 * include/direct.h: Ditto.
4116 * include/dirent.h: Ditto.
4117 * include/dos.h: Ditto.
4118 * include/excpt.h: Ditto.
4120 * include/io.h: Ditto.
4121 * inlude/mem.h: Ditto.
4122 * include/memory.h: Ditto.
4123 * include/process.h: Ditto.
4124 * inlude/search.h: Ditto.
4125 * include/share.h: Ditto.
4126 * include/unistd.h: Ditto.
4127 * include/sys/fcntl.h: Ditto.
4128 * include/file.h: Ditto.
4129 * include/sys/locking.h: Ditto.
4130 * include/sys/param.h: Ditto.
4131 * include/sys/stat,h
4132 * include/sys/time.h: Ditto.
4133 * include/sys/timeb.h: Ditto.
4134 * include/sys/types.h: Ditto.
4135 * include/sys/unistd.h: Ditto.
4136 * include/sys/utime.h: Ditto.
4138 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
4140 * include/_mingw.h (__UNUSED_PARAM): Define macro.
4141 * include/wchar.h (fwide): Use it.
4144 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4146 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
4147 NetBSD getopt_long.c.
4149 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4151 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
4152 codes and handling of special chars.
4154 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
4156 * include/stdio.h (feof): Add inlined definition.
4159 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4161 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
4162 directly, rather than via scabnl.
4164 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4166 * mingwex/math/powl.c (powl): Return infinity if
4167 extended precision multiplication of x by log2(y)
4170 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
4172 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
4173 (__enan_NI16): Fix another one.
4174 (__enan_NBITS): Tidy.
4176 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4178 * include/stdint.h [__STDC_CONSTANT_MACROS]: Fix for 8 and 16 bit
4179 types. (Thanks to John Maddock for report.)
4181 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
4183 * include/tchar.h (_puttchar): Define.
4185 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
4187 * include/stdio.h:(_fileno): Define macro version after both
4188 fileno and _fileno functions declared.
4190 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
4191 * moldnames.def.in (rmtmp) Add stub.
4193 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
4195 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
4197 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4199 * include/math.h: Guard ISO C99 additions with __cplusplus
4202 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4204 * include/_mingw.h: Define __attribute__((x)) to nothing
4207 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4209 * include/complex.h: New file.
4210 * mingwex/complex: New directory.
4211 * mingwex/complex/cabs.c: New file.
4212 * mingwex/complex/cacos.c: New file.
4213 * mingwex/complex/cacosh.c: New file.
4214 * mingwex/complex/casin.c: New file.
4215 * mingwex/complex/casinh.c: New file.
4216 * mingwex/complex/catan.c: New file.
4217 * mingwex/complex/catanh.c: New file.
4218 * mingwex/complex/ccos.c: New file.
4219 * mingwex/complex/ccosh.c: New file.
4220 * mingwex/complex/cexp.c: New file.
4221 * mingwex/complex/cimag.c: New file.
4222 * mingwex/complex/clog.c: New file.
4223 * mingwex/complex/cpow.c: New file.
4224 * mingwex/complex/cproj.c: New file.
4225 * mingwex/complex/creal.c: New file.
4226 * mingwex/complex/csin.c: New file.
4227 * mingwex/complex/csinh.c: New file.
4228 * mingwex/complex/csqrt.c: New file.
4229 * mingwex/complex/ctan.c: New file.
4230 * mingwex/complex/ctanh.c: New file.
4231 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
4234 (COMPLEX_OBJS): New list of objects.
4235 (LIB_OBJS): Include it in the library.
4237 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4239 * include/math.h (cabs): Remove non-ISO prototype.
4241 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4243 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
4244 Use GCC __builtin's if available.
4245 (INFINITY, INFINITYF, INFINITYL): Likewise.
4247 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4249 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
4250 beyond approximation limit.
4251 * mingwex/math/sf_erf.c (erff): Likewise.
4253 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
4255 * include/stdio.h (getc): Cast result to unsigned char before
4258 (getchar): Likewise.
4259 (putchar): Likewise.
4260 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
4262 2003-10-10 Earnie Boyd <earnie@users.sf.net>
4264 * include/_mingw.h: Increment version to 3.2.
4265 * Makefile.in: Ditto.
4267 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4269 * include/sys/types.h: Revert last change.
4271 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4273 * include/sys/types.h (ssize_t): Correct the definition.
4275 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4277 * include/stdio.h (_filbuf): Add prototype.
4278 (_flsbuf): Add prototype.
4279 (getc): Add inline version.
4281 (getchar): Likewise.
4282 (putchar): Likewise.
4284 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4286 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
4289 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
4291 * include/stdlib.h: Guard non-ISO functions with
4292 !__STRICT_ANSI__, throughout.
4294 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4296 * include/io.h (_fileno): Remove prototype.
4298 (FILENAME_MAX): Define, if needed.
4299 Don't include <stdio.h>.
4300 * include/stdio.h (FILENAME_MAX): Protect against
4302 (_fileno): Define macro implementation.
4305 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4307 * include/inttypes.h: Include _mingw.h.
4309 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4311 * include/_mingw.h (__CRT_INLINE): Define.
4312 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
4314 * include/inttypes.h: Likewise.
4315 * include/math.h: Likewise.
4316 * include/stdio.h: Likewise.
4317 * include/stdlib.h: Likewise.
4318 * include/string.h: Likewise.
4319 * include/wchar.h: Likewise.
4320 * include/wctype.h: Likewise.
4322 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
4324 * mingwex/dirent.c (_topendir): Allocate enough memory for
4325 DIR struct in UNICODE case too.
4327 2003-09-15 Earnie Boyd <earnie@users.sf.net>
4329 * include/_mingw.h: Increment version to 3.2.
4330 * Makefile.in: Ditto.
4332 2003-07-03 Earnie Boyd <earnie@users.sf.net>
4334 * config.guess, config.sub: Update with versions from ftp.gnu.org.
4336 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4338 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
4339 * mingwex/math/truncf.c (truncf): Likewise.
4340 * mingwex/math/truncl.c (truncl): Likewise.
4341 * mingwex/math/modff.c (modff): Likewise.
4342 * mingwex/math/modfl.c (modfl): Likewise.
4344 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4346 * include/search.h: New file.
4347 * include/stdlib.h: Add comment about qsort, bsearch in
4349 * test_headers.c: Include search.h.
4350 * moldname.def.in (lfind, lsearch): Add.
4352 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4354 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
4355 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
4356 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
4358 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4360 * include/_mingw.h (small, hyper): Change to __small and __hyper to
4361 avoid user space name conflicts.
4363 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4365 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
4366 Note: Also added to w32api/include/basetyps.h.
4367 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
4368 Rename to Small (case difference).
4370 2003-06-18 Earnie Boyd <earnie@users.sf.net>
4372 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
4373 * mingwex/dirent.c: Modifications througout to fill d_name array.
4374 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
4375 libmsvcr71, including debug versions.
4376 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
4378 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
4380 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
4381 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
4383 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
4385 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
4387 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
4389 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
4391 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
4392 but still protect inline definition with __STRICT_ANSI__.
4394 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
4396 * string_old.c: Remove, splitting into...
4397 * strcasecmp.c: New file.
4398 * strncasecmp.c: New file.
4399 * wscmpi.c : New file.
4400 * ctype_old.c: Remove, splitting into...
4401 * isascii.c: New file.
4402 * iscsym.c: New file.
4403 * iscsymf.c: New file.
4404 * toascii.c: New file.
4405 * Makefile.in (MOLD_OBJS): Adjust.
4406 (SRCDIST_FILES): Adjust.
4408 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
4410 * include/math.h (fabs) : Remove inline definition.
4414 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4416 * include/_mingw.h: Change version to 3.0
4417 * Makefile.in: Ditto.
4419 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4421 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
4422 * mingwex/configure.in (W32API_INCLUDE): Ditto.
4423 * profile/configure.in (W32API_INCLUDE): Ditto.
4425 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4427 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
4428 of multiply defined symbols if the symbols is defined locally. E.G.:
4429 A local definition of malloc causes this problem.
4430 * configure: Regenerate.
4431 * profile/Makefile.in (W32API_INCLUDE): New variable.
4432 (ALL_CFLAGS): Use W32API_INCLUDE value.
4433 (ALL_CXXFLAGS): Ditto.
4434 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
4435 Thanks to Jeff Bonggren <jbon@users.sf.net>.
4436 * profile/configure.in (W32API_INCLUDE): Set default value.
4437 * profile/configure: Regenerate.
4438 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
4439 (ALL_CFLAGS): Use W32API-INCLUDE value.
4440 (ALL_CXXFLAGS): Ditto.
4441 * mingwex/configure.in (W32API_INCLUDE): Set default value.
4442 * mingwex/configure: Regenerate.
4444 2003-05-05 Earnie Boyd <earnie@users.sf.net>
4446 * Makefile.in (W32API_INCLUDE): New variable.
4447 (ALL_CFLAGS): Use W32API_INCLUDE value.
4448 (ALL_CXXFLAGS): Ditto.
4449 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
4450 (W32API_INCLUDE): Set default value.
4451 * configure: Regenerate.
4453 2003-04-11 Earnie Boyd <earnie@users.sf.net>
4455 * configure.in (LIBM_A): Define for cygwin target.
4456 * configure (LIBM_A): Ditto.
4458 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
4460 * include/time.h (strftime): Remove duplicate declaration.
4462 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4464 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
4466 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4468 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
4469 * mingwex/strtoimax.c (strtoimax): Likewise.
4470 * mingwex/wcstoimax.c (wcstoimax): Likewise.
4471 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
4472 * mingwex/fesentenv.c: Include float.h.
4473 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
4475 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
4477 * mingwex/math/tgammal.c: Likewise.
4479 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4481 * include/utime.h: New file, forwarding to sys/utime.h.
4483 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4485 * include/sys/param.h (MAXPATHLEN): Define.
4487 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4489 * include/tchar.h: Ansi-fy a comment.
4491 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4493 * profile/profile.h (mcount): Use __builtin_return_address
4494 rather than inline __asm statements.
4495 * profile/Makefile.in: Remove special rule for mcount.o
4496 Specify dependencies for mcount.o profil.o gmon.o.
4498 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4500 * include/stdlib.h (qsort): Remove const from first parm.
4501 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
4503 2003-03-03 Christopher Faylor <cgf@redhat.com>
4505 * mingwex/getopt.c: Refresh from NetBSD sources.
4507 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
4509 * mingwex/getopt.c: New file, copied from cygwin srcs.
4510 * include/getopt.h: New file, copied from cygwin srcs.
4511 * include/unistd.h: Include getopt.h.
4512 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
4513 (POSIX_OBJS): Add getopt.o.
4515 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
4517 * include/stdio.h (vscanf): Add prototype.
4523 * include/wchar.h (vwscanf): Add prototype.
4526 * mingwex/snprintf.c: Move to mingwex/stdio.
4527 * mingwex/vsnprintf.c: Ditto.
4528 * mingwex/snwprintf.c: Ditto.
4529 * mingwex/vsnwprintf.c: Ditto.
4530 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
4531 (STDIO_DISTFILES): Add.
4532 (DISTFILES): Adjust.
4533 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
4537 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
4539 * mingwex/stdio: New directory
4540 * mingwex/stdio/vfscanf.c: New file.
4541 * mingwex/stdio/vfwscanf.c: New file.
4542 * mingwex/stdio/vscanf.c: New file.
4543 * mingwex/stdio/vsscanf.c: New file.
4544 * mingwex/stdio/vswscanf.c: New file.
4545 * mingwex/stdio/vwscanf.c: New file.
4547 2003-02-25 Earnie Boyd <earnie@users.sf.net>
4549 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
4550 (libmsvcrt40.a): Ditto.
4552 2003-02-21 Earnie Boyd <earnie@users.sf.net>
4554 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
4556 * Makefile.in (libmsvcrtd.a): Add target library.
4557 (libmoldnamed.a): Ditto.
4558 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
4560 ($(srcdir)): Remove explicit reference for depencies of object targets.
4561 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
4562 msvcrt20.def, msvcrt40.def: Remove.
4563 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
4565 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
4567 * Makefile.in: Make sure libmingwex.a from current build tree is used.
4569 2003-02-14 Christopher Faylor <cgf@redhat.com>
4571 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
4572 ensure -mno-cygwin where appropriate. Filter out -O2.
4574 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
4576 * profile/Makefile.in (mcount.o): Use -O1 optimization
4579 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4581 * include/math.h: Remove _CRTIMP from pow() prototype,
4582 unless __NO_ISOCEXT.
4584 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4586 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
4588 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4590 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
4591 __declspec(dllimport) supported.
4592 (__cdecl): Define if not already defined.
4593 (__stdcall): Likewise.
4594 * include/dirent.h: Qualify fuctions with __cdecl.
4595 * include/fenv.h: Likewise.
4596 * include/inttypes.h: Likewise.
4597 * include/assert.h: Qualify fuctions with __cdecl. Qualify
4598 CRT dll imports with _CRTIMP.
4599 * include/conio.h: Likewise.
4600 * include/ctype.h: Likewise.
4601 * include/direct.h: Likewise.
4602 * include/dos.h: Likewise.
4603 * include/errno.h: Likewise.
4604 * include/float.h: Likewise.
4605 * include/io.h: Likewise.
4606 * include/locale.h: Likewise.
4607 * include/malloc.h: Likewise.
4608 * include/math.h: Likewise.
4609 * include/mbctype.h: Likewise.
4610 * include/mbstring.h: Likewise.
4611 * include/process.h: Likewise.
4612 * include/setjmp.h: Likewise.
4613 * include/signal.h: Likewise.
4614 * include/stdio.h: Likewise.
4615 * include/stdlib.h: Likewise.
4616 * include/string.h: Likewise.
4617 * include/time.h: Likewise.
4618 * include/wchar.h: Likewise.
4619 * include/wctype.h: Likewise.
4620 * include/sys/stat.h: Likewise.
4621 * include/sys/timeb.h: Likewise.
4622 * include/sys/utime.h: Likewise.
4624 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4625 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4627 * include/stdio.h (__VALIST): Guard against prior definition.
4629 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4631 * include/_mingw.h: Change version to 3.0
4632 * Makefile.in: Ditto.
4634 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4636 * include/stdlib.h: Make words after #endif a comment.
4638 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4640 * include/locale.h: Include stddef.h for definition of NULL.
4642 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4644 * include/math.h (tgamma): Correct typo in comment.
4646 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4648 * mingwex/mingw-fseek.c (INLINE): Remove define.
4649 (__mingw_is_win9x): Remove static inline function.
4650 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4652 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4654 * mingwex/math/llround.c: Correct function name and
4655 change return value to long long.
4657 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4659 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4660 (iswascii): Likewise. Correct mask.
4661 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4664 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4666 * include/stdlib.h (_osver, _winver, _winmajor,
4667 _winminor): Declare as direct imports from dll if
4668 __DECLSPEC_SUPPORTED.
4670 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4672 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4673 * pseudo-reloc-list.c: New file.
4674 * crt1.c (_pei386_runtime_relocator): Declare.
4675 (__mingw_CRTStartup): Call it.
4676 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4677 (DllMainCRTStartup): Call it.
4678 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
4681 2003-01-01 Egor Duda <deo@logos-m.ru>
4683 * pseudo-reloc.c: New file.
4685 2002-12-20 Earnie Boyd <earnie@users.sf.net>
4687 * include/_mingw.h: Increment version to 2.4.
4690 2002-12-12 Earnie Boyd <earnie@users.sf.net>
4692 * include/malloc.h (_alloca): Add definition.
4695 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
4697 * mingwex/math/s_erf.c: New file.
4698 * mingwex/math/sf_erf.c: New file.
4699 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4700 (MATH_OBJS): Add new objects.
4701 * include/math.h (erf[f]): Add prototypes.
4702 (erfc[f]): Add prototypes.
4704 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
4706 * include/math.h: Add traditional/XOPEN math constants.
4708 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
4710 * mingwex/math/lgamma.c: New file.
4711 * mingwex/math/lgammaf.c: New file.
4712 * mingwex/math/lgammal.c: New file.
4713 * mingwex/math/tgamma.c: New file.
4714 * mingwex/math/tgammaf.c: New file.
4715 * mingwex/math/tgammal.c: New file.
4716 * mingwex/math/cephes_mconf (polevlf): Add float version.
4718 Define _CEPHES_USE_ERRNO.
4719 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4720 (MATH_OBJS): Add new objects.
4721 * include/math.h (lgamma[fl]): Add prototypes.
4722 (tgamma[fl]): Add prototypes.
4724 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
4726 * mingwex/strtold.c: New file.
4727 * mingwex/wcstold.c: New file.
4728 * mingwex/ldtoa.c: New file.
4729 * mingwex/math/cephes_emath.h: New file.
4730 * mingwex/math/cephes_emath.c: New file.
4731 * mingwex/Makefile.in (DISTFILES): Add new files.
4732 (MATH_DISTFILES): Ditto.
4733 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
4734 (MATH_OBJS): Add cephes_emath.o.
4735 (LIB_OBJS): Add $(STDLIB_OBJS).
4736 * include/stdlib.h (strtold, wcstold): Add prototypes.
4737 * include/wchar.h (wcstold): Add prototype.
4739 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
4741 * include/math.h (sqrt): Remove inline definition.
4742 (sqrtf): Replace inline definition with prototype.
4744 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
4745 argument less than zero.
4746 * mingwex/math/sqrtf.c (sqrtl): Likewise.
4748 2002-10-30 Guido Serassio <serassio@libero.it>
4750 * include/stdio.h (_getmaxstdio): Add prototype.
4751 (_setmaxstdio): Likewise.
4753 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
4755 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
4757 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4759 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
4761 Define WIN32_MEAN_AND_LEAN before including windows.h
4762 * include/stdlib.h (_fmode): Protect declaration as dllimported
4763 variable with __IN_MINGW_RUNTIME.
4765 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4767 * crt1.c: Include stdlib.h.
4769 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4771 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4772 (MINGW_OBJS): Add txtmode.o.
4773 (SRCDIST_FILES): Add txtmode.c binmode.c.
4774 crt1.c: Don't include fcntrl.h, stdlib.h.
4775 (_fmode): Declare, without dllimport attribute.
4776 (__p__fmode): Declare access function for dll's _fmode.
4777 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
4779 * txtmode.c: New file.
4780 * binmode.c: New file.
4781 * samples/fmode/test2.c: New file.
4782 * samples/fmode/jamfile: Add test2.exe target.
4784 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4786 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
4787 macros work with C89.
4788 (INTMAX_C, UINTMAX_C): Likewise.
4790 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4792 * include/string.h (strcasecmp): Make extern __inline__.
4793 (strncasecmp): Likewise.
4794 (wcscmpi): Likewise.
4796 2002-10-08 Heiko Gerdau <hg@technosis.de>
4798 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
4799 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
4802 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4804 * mingwex/math/powil.c: Rename powil to __powil.
4805 * mingwex/math/powl.c: Adjust declaration and call
4806 to __powil. Remove comment on powil.
4807 * mingwex/math/powi.c: New file.
4808 * mingwex/math/powif.c: New file.
4809 * mingwex/math/pow.c: New file.
4810 * mingwex/math/cephes_mconf.h. Add double and float
4811 versions of constants.
4812 (polevl): Add double precision function.
4814 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4816 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4818 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4820 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4821 (_imp____mbcur_max_dll): Likewise.
4823 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4825 * include/fcntl.h (_fmode): Remove declarations and
4826 compatibility defines.
4827 (_setmode, setmode): Remove prototypes.
4828 * include/stdlib (_fmode): Add declarations and
4829 compatibility defines. Change type to int.
4830 * include/io.h (_setmode, setmode): Add prototypes.
4831 * samples/fmode/all.c: Adjust includes.
4832 * samples/fmode/test.c: Likewise.
4833 * crt1.c (_CRT_fmode): Declare as int.
4834 * CRTfmode.c (_CRT_fmode): Likewise.
4836 * include/stdlib: Remove comment about MB_CUR_MAX.
4838 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4840 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4841 (_imp____mbcur_max_dll): Likewise.
4843 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4845 * mingwex/math/files.txt: Remove inadvertantly added file.
4847 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4849 * include/string.h (_strerror): Move into #ifndef
4850 __STRICT_ANSI__ block.
4852 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4854 * include/time.h (__need_NULL): Define before including
4855 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4857 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4859 * include/stdio.h: Correct comment about directory separator.
4861 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4863 * include/sys/time.h (timeval): Add struct definition and
4864 associated macros (copied from w32api/include/winsock.h).
4866 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4868 * include/_mingw.h: Increment version to 2.3.
4871 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4873 * mingwex/fegetenv.c: Change to \n line endings.
4874 * mingwex/vsnprintf.c: Ditto.
4875 * mingwex/vsnwprintf.c: Ditto.
4877 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4879 * mingwex/math/hypotl.c: Replace with version based on cephes
4882 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4884 * include/sys/param.h: Add ENDIAN defines.
4885 * test_headers.c: Include sys/param.h.
4887 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4889 * test_headers.c: Don't include varargs.h.
4890 * Makefile.in (test_headers): Don't use -std=xx
4893 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4895 * include/sys/param.h: New File.
4897 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4899 * include/math.h (asm): Change to __asm__ throughout.
4900 Expose ISO C99 functions if __GLIPCPP__.
4901 (hypotf): Use hypot, not _hypot in stub.
4903 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4905 * include/tchar.h: Ansi-fy another comment.
4907 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4909 * include/tchar.h: Ansi-fy comment.
4911 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4913 * test_headers.c : New file.
4914 * Makefile.in (test_headers): New target, using it,
4915 (SRCDIST_FILES): Distribute it.
4917 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4919 * include/_mingw.h: Increment version to 2.2.
4922 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4924 * include/unistd.h: Add include of process.h.
4926 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4928 * include/stdio.h (_fcloseall): Add prototype.
4930 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4932 * include/tchar.h (_tfdopen): Correct typo.
4934 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4936 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4937 nextafter): Add non-underscored stubs.
4938 * moldname-msvcrt.def: Regenerate.
4939 * moldname-crtdll.def: Regenerate.
4940 * mingwex/math: New directory.
4941 * mingwex/rint.c: Move to mingwex/math.
4942 * mingwex/rintf.c: Ditto.
4943 * mingwex/rintl.c: Ditto.
4944 * mingwex/round.c: Ditto.
4945 * mingwex/roundf.c: Ditto.
4946 * mingwex/roundl.c: Ditto.
4947 * mingwex/rint.c: Ditto.
4948 * mingwex/rintf.c: Ditto.
4949 * mingwex/rintl.c: Ditto.
4950 * mingwex/trunc.c: Ditto.
4951 * mingwex/truncf.c: Ditto.
4952 * mingwex/truncl.c: Ditto.
4953 * mingwex/signbit.c: Ditto.
4954 * mingwex/signbitf.c: Ditto.
4955 * mingwex/signbitl.c: Ditto.
4956 * mingwex/copysignl.S: Ditto.
4957 * mingwex/fdim.c: Ditto.
4958 * mingwex/fdimf.c: Ditto.
4959 * mingwex/fdiml.c: Ditto.
4960 * mingwex/fmin.c: Ditto.
4961 * mingwex/fminf.c: Ditto.
4962 * mingwex/fminl.c: Ditto.
4963 * mingwex/fmax.c: Ditto.
4964 * mingwex/fmaxf.c: Ditto.
4965 * mingwex/fmaxl.c: Ditto.
4966 * mingwex/fma.c: Ditto.
4967 * mingwex/fmaf.c: Ditto.
4968 * mingwex/fmal.c: Ditto.
4969 * mingwex/fpclassify.c: Ditto.
4970 * mingwex/fpclassifyl.c: Ditto.
4971 * mingwex/fpclassifyl.c: Ditto.
4972 * mingwex/isnan.c: Ditto.
4973 * mingwex/isnanf.c: Ditto.
4974 * mingwex/isnanl.c: Ditto.
4975 * mingwex/fucom.c: Ditto.
4976 * mingwex/fp_consts.c: Ditto. Split out float and long double
4978 * mingwex/math_stubs.c: Remove.
4979 * mingwex/log2.c: Remove. Replaced by math/log2.S
4980 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4981 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4982 * mingwex/math/acosf.c : New file.
4983 * mingwex/math/acosl.c: New file.
4984 * mingwex/math/asinf.c: New file.
4985 * mingwex/math/asinl.c: New file.
4986 * mingwex/math/atan2f.c: New file.
4987 * mingwex/math/atan2l.c: New file.
4988 * mingwex/math/atanf.c: New file.
4989 * mingwex/math/atanl.c: New file.
4990 * mingwex/math/cbrt.c: New file.
4991 * mingwex/math/cbrtf.c: New file.
4992 * mingwex/math/cbrtl.c: New file.
4993 * mingwex/math/ceilf.S: New file.
4994 * mingwex/math/ceill.S: New file.
4995 * mingwex/math/cephes_ld.h: New file.
4996 * mingwex/math/copysign.S: New file.
4997 * mingwex/math/copysignf.S: New file.
4998 * mingwex/math/cosf.S: New file.
4999 * mingwex/math/coshf.c: New file.
5000 * mingwex/math/coshl.c: New file.
5001 * mingwex/math/cosl.S: New file.
5002 * mingwex/math/exp2.S: New file.
5003 * mingwex/math/exp2f.S: New file.
5004 * mingwex/math/exp2l.S: New file.
5005 * mingwex/math/expf.c: New file.
5006 * mingwex/math/expl.c: New file.
5007 * mingwex/math/fabs.c: New file.
5008 * mingwex/math/fabsf.c: New file.
5009 * mingwex/math/fabsl.c: New file.
5010 * mingwex/math/floorf.S: New file.
5011 * mingwex/math/floorl.S: New file.
5012 * mingwex/math/fmodf.c: New file.
5013 * mingwex/math/fmodl.c: New file.
5014 * mingwex/math/fp_consts.h: Ditto.
5015 * mingwex/math/fp_constsf.c: Ditto.
5016 * mingwex/math/fp_constsl.c: Ditto.
5017 * mingwex/math/frexpf.c: New file.
5018 * mingwex/math/frexpl.S: New file.
5019 * mingwex/math/hypotf.c: New file.
5020 * mingwex/math/hypotl.c: New file.
5021 * mingwex/math/ilogb.S: New file.
5022 * mingwex/math/ilogbf.S: New file.
5023 * mingwex/math/ilogbl.S: New file.
5024 * mingwex/math/ldexpf.c: New file.
5025 * mingwex/math/ldexpl.c: New file.
5026 * mingwex/math/llrint.c: New file.
5027 * mingwex/math/llrintf.c: New file.
5028 * mingwex/math/llrintl.c: New file.
5029 * mingwex/math/llround.c: New file.
5030 * mingwex/math/llroundf.c: New file.
5031 * mingwex/math/llroundl.c: New file.
5032 * mingwex/math/log10f.S: New file.
5033 * mingwex/math/log10l.S: New file.
5034 * mingwex/math/log1p.S: New file.
5035 * mingwex/math/log1pf.S: New file.
5036 * mingwex/math/log1pl.S: New file.
5037 * mingwex/math/log2.S: New file.
5038 * mingwex/math/log2f.S: New file.
5039 * mingwex/math/log2l.S: New file.
5040 * mingwex/math/logb.c: New file.
5041 * mingwex/math/logbf.c: New file.
5042 * mingwex/math/logbl.c: New file.
5043 * mingwex/math/logf.S: New file.
5044 * mingwex/math/logl.S: New file.
5045 * mingwex/math/lrint.c: New file.
5046 * mingwex/math/lrintf.c: New file.
5047 * mingwex/math/lrintl.c: New file.
5048 * mingwex/math/lround.c: New file.
5049 * mingwex/math/lroundf.c: New file.
5050 * mingwex/math/lroundl.c: New file.
5051 * mingwex/math/modff.c: New file.
5052 * mingwex/math/modfl.c: New file.
5053 * mingwex/math/nearbyint.S: New file.
5054 * mingwex/math/nearbyintf.S: New file.
5055 * mingwex/math/nearbyintl.S: New file.
5056 * mingwex/math/nextafterf.c: New file.
5057 * mingwex/math/powf.c: New file.
5058 * mingwex/math/powl.c: New file.
5059 * mingwex/math/powil.c: New file.
5060 * mingwex/math/remainder.S: New file.
5061 * mingwex/math/remainderf.S: New file.
5062 * mingwex/math/remainderl.S: New file.
5063 * mingwex/math/remquo.S: New file.
5064 * mingwex/math/remquof.S: New file.
5065 * mingwex/math/remquol.S: New file.
5066 * mingwex/math/scalbn.S: New file.
5067 * mingwex/math/scalbnf.S: New file.
5068 * mingwex/math/scalbnl.S: New file.
5069 * mingwex/math/sinf.S: New file.
5070 * mingwex/math/sinhf.c: New file.
5071 * mingwex/math/sinhl.c: New file.
5072 * mingwex/math/sinl.S: New file.
5073 * mingwex/math/sqrt.c: New file.
5074 * mingwex/math/sqrtf.c: New file.
5075 * mingwex/math/sqrtl.c: New file.
5076 * mingwex/math/tanf.S: New file.
5077 * mingwex/math/tanhf.c: New file.
5078 * mingwex/math/tanhl.c: New file.
5079 * mingwex/math/tanl.S: New file.
5080 * mingwex/Makefile.in: Adjust VPATH for source files in
5083 Add MATH_DISTFILES and use it to build source distro.
5084 * include/math.h: Add protypes for new functions and
5085 reorganise to reflect ANSI,C99 status.
5087 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
5089 * include/tchar.h (_getts): Define as _getws for _UNICODE.
5090 (_putts): Define as _putws for _UNICODE.
5091 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
5093 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
5095 * include/float.h: #include_next<float.h> before header guard.
5097 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
5099 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
5101 * include/excpt.h (): Include windef.h not windows.h.
5102 * include/fcntl.h (_O_SHORT_LIVED): Add define.
5103 (_chmod): Add prototype.
5104 (_creat): Correct prototype.
5105 (SH_DENY*): Rename defines to _SH_DENY*.
5106 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
5107 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
5108 _IOAPPEND): Add defines.
5109 (_wfindfirst): Correct prototype.
5110 (_wfdopen): Add prototype.
5111 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
5113 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
5115 (_wcsdup): Correct prototype.
5116 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
5117 _mbsncat being in string.h.
5118 * include/wchar.h (_wfindfirst): Correct prototype.
5119 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
5121 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5123 * include/_mingw.h: Increment to version 2.1.
5124 * Makefile.in: Ditto.
5126 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5128 * Makefile.in (conf_prefix): New variable.
5129 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
5130 (bindist): Use dist_prefix.
5132 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
5134 * include/_mingw.h: Increment version to 2.0.
5135 * Makefile.in: Ditto.
5137 Merge in mingwex branch.
5139 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
5141 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
5142 * mingwex/fdim.c: New file.
5143 * mingwex/fdimf.c: New file.
5144 * mingwex/fdiml.c: New file.
5145 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
5147 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
5149 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
5151 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
5153 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
5155 * mingwex/isnanl.c: New file.
5157 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5159 * include/stdint.h: Include <stddef.h> to get wchar_t and wint_t.
5160 (WINT_MAX): Define to ((wint_t)-1).
5162 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5164 * include/wctype.h: Replace 'inline' with '__inline__'.
5165 * include/inttypes.h: Likewise.
5167 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5169 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
5170 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
5172 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5174 * mingwex/snprintf.c: Split out vsnprintf to....
5175 * mingwex/vsnprintf.c: New file.
5176 * mingwex/snwprintf.c: Split out vsnwprintf to...
5177 * mingwex/vsnwprintf.c: New file.
5178 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
5180 2002-05-15 Pascal Obry <obry@gnat.com>
5182 * include/dirent.h (DIR): Change dd_stat type to int.
5185 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
5187 * include/stdio.h (vsnprintf): Change inline to __inline__;
5188 (vsnwprintf): Likewise.
5189 * include/wchar.h (vsnwprintf): Likewise.
5192 (mbsinit): Likewise.
5194 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
5196 Change FP default precison from 53 to 64-bit mantissa.
5198 * Makefile.in (CRT0S): Add CRT_fp8.o.
5199 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
5200 * include/float.h: Replace standard float.h defines with
5201 #include_next<float.h> to use GCC's defines. Adjust comments
5204 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5206 * include/dos.h: Change prefix "__imp_" to "_imp__" for
5207 __GNUC__ without __DECLSPEC_SUPPORTED.
5208 * include/fnctl.h: Likewise.
5209 * include/math.h: Likewise.
5210 * include/stdio.h: Likewise.
5211 * include/stdlib.h: Likewise.
5212 * include/time.h: Likewise.
5213 * include/wctype.h: Likewise.
5214 * include/ctype.h: Likewise.
5216 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5218 Add atexit support for dlls.
5219 * crt1.c (atexit): Force thunk to _imp__atexit.
5220 (_onexit): Force thunk to _imp___onexit.
5221 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
5222 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
5223 (__dll_exit): New function to run atexit-registered functions
5224 and flush output buffers on DLL_PROCESS_DETACH or failed
5226 (atexit): Force use of private atexit table via _dllonexit,
5227 (_onexit): New function. Force use of private atexit table via
5229 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
5230 _imp_<_symbol> is visible in import lib.
5231 * msvcrt20.def: Likewise.
5232 * msvcrt40.def: Likewise.
5233 * crtdll.def: Likewise.
5235 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5237 * include/fenv.h: Change header guard macro to _FENV_H_.
5238 (fenv_t, fexcept_t): Move into block protected by
5240 Cleanup some whitespace.
5241 * include/inttypes.h: Change header guard macro to
5244 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5246 * include/math.h (copysignl): Declare.
5247 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
5248 (MATHOBJS):Add copysignl.o.
5250 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5252 * include/math.h (__signbitl, __isnanl): Declare.
5254 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5256 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
5257 roundl, truncl, fmal, log2l): Declare.
5258 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
5259 || !defined __STRICT_ANSI__.
5260 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
5261 * mingwex/fmin.c (fmin): Likewise.
5262 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
5263 * mingwex/fminf.c (fminf): Likewise.
5264 * mingwex/fmaxl.c: New file.
5265 * mingwex/fminl.c: New file.
5266 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
5267 * mingwex/fpclassifyf.c: New file.
5268 * mingwex/fpclassifyl.c: New file.
5269 * mingwex/rint.c (rintf): Split out to...
5270 * mingwex/rintf.c: New file.
5271 * mingwex/rintl.c: New file.
5272 * mingwex/round.c (roundf): Split out to...
5273 * mingwex/roundf.c: New file.
5274 * mingwex/roundl.c: New file.
5275 * mingwex/trunc.c (truncf): Split out to...
5276 * mingwex/truncf.c: New file.
5277 * mingwex/truncl.c: New file.
5278 * mingwex/signbit.c (signbitf): Split out to...
5279 * mingwex/signbitf.c: New file.
5280 * mingwex/signbitl.c: New file.
5281 * mingwex/fmal.c: New file.
5282 * mingwex/copysignl.S: New file.
5283 * mingwex/log2l.c: New file.
5284 * mingwex/fp_consts.c: Add nanl definition.
5285 Comment out unused constants.
5286 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
5287 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
5288 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
5290 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
5291 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
5292 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
5294 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
5296 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
5298 Make wide char versions of opendir and friends.
5300 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
5302 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
5303 _wseekdir): Add prototypes for wide versions of corresponding
5305 * include/tchar.h; Add _UNICODE mappings for dirent.h
5306 structures and functions.
5307 * mingwex/dirent.c: Make _UNICODE neutral.
5308 * mingwex/wdirent.c: New file to define _UNICODE before
5310 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
5311 (POSIX_OBJS): Add wdirent.o.
5312 (wdirent.o): Specify dependency on dirent.c as well as
5314 * samples/dirent/wtest.c: New file, wide version of test.c.
5316 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5318 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
5319 ensure gcc include dir is searched despite -nostdinc.
5320 * profile/Makefile.in (INCLUDES): Likewise.
5321 * mingwex/Makefile.in (INCLUDES): Likewise.
5322 * include/stdarg.h: Replace with stub that just guards the
5323 real gcc system header with #ifndef RC_INVOKED
5324 * include/varargs.h: Likewise.
5325 * include/stddef.h: Likewise.
5326 * include/stdio.h: Include stdarg.h after defining
5328 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
5329 Replace va_list with __VALIST throughout.
5331 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5333 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
5334 * msvcrt.def (_fpreset): Mark as DATA so that only
5335 _imp___fpreset is exported.
5336 * msvcrt20.def (_fpreset): Likewise.
5337 * msvcrt40.def (_fpreset): Likewise.
5338 * crtdll.def (_fpreset): Likewise.
5339 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
5341 (fpreset): Add alias.
5342 (__CRT_PC): Delete definition. _fpreset does it now.
5343 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
5344 (fpreset): Add alias.
5345 (__CRT_PC): Delete definition.
5346 * moldname.def.in: Comment out fpreset.
5347 * moldname-msvcrt.def: Regenerate.
5348 * moldname-crtdll.def: Regenerate.
5349 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
5350 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
5351 with the _fpreset determined by startup CRT_fp object.
5353 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
5355 * CRT_fp8.c: New file.
5356 * CRT_fp10.c: New file.
5357 * crt1.c (__CRT_PC) Declare.
5358 (__CRT_fesetenv): New static function, using _CRT_PC.
5359 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
5360 (_gnu_exception_handler): Likewise.
5361 * Makefile.in (CRT0S): Add CRT_fp10.o.
5362 (MINGW_OBJS): Add CRT_fp8.o.
5363 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
5364 Add CRT_fp8.o, CRT_fp10.o dependancies.
5365 * include/float.h (_fpreset): Expand comment.
5366 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
5367 (extended precison) environmemt.
5368 (FE_PC53_ENV): New define for MSVCRT default environmemt.
5369 (FE_DFL_ENV): Define as FE_PC53_ENV.
5370 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
5371 precision control for default environment.
5373 * include/math.h: Fix long comment line.
5374 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
5376 * profile/configure: Regenerate.
5378 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
5380 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
5382 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
5384 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
5385 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
5386 (__mingw_fseek): New function to work around Win9x f/lseek bug.
5387 (__mingw_fwrite): Likewise.
5388 (__mingw_is_win9x): New helper function.
5390 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
5391 (__mingw_fseek): New prototype and define to replace fseek.
5392 (__mingw_fwrite): New prototype and define to replace fwrite.
5393 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
5394 * moldname-crtdll.def: Remove CR from end of line.
5395 * moldname-msvcrt.def: Ditto.
5397 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
5399 * profile/configure.in (CRT0S): Configure name of gcrt?.o
5400 based on target, building gcrt0.o for cygwin -mno-cygwin.
5401 * profile/configure: Regenerate.
5402 * profile/Makefile.in (CRT0S): Use name from configure.
5403 (gcrt0.o): New rule.
5404 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
5406 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5408 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
5409 _fpecode): Remove prototypes copied from float.h.
5410 (nan, nanf): Move into block protected against RC_INVOKED
5412 * include/stdlib.h (_Exit): Change from static inline to
5414 * mingwex/_Exit.c : New file.
5415 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
5417 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5419 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
5420 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
5421 (configdirs): Likewise.
5422 (LIBGMON_A): Define for cygwin target as well.
5423 * configure: Regenerate.
5424 * profile/configure.in (THREAD_DLL): Remove define.
5425 (LIBM_A): Remove define.
5426 (LIBGMON_A): Define for cygwin target as well.
5427 * profile/configure: Regenerate.
5428 * profile/makefile.in (install): Install to inst_libdir and
5430 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
5431 (OPTFLAGS): New define.
5432 (ALL_CFLAGS): Add $(OPTFLAGS).
5433 (ALL_CXXFLAGS): Same.
5434 (.c.o:): Remove ALL_CXXFLAGS.
5436 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
5438 * include/stdint.h: Add missing newline at eof.
5439 * include/stdio.h (snprintf): Add prototype.
5440 (vsnprintf): Add prototype and inline definition.
5441 (snwprintf): Add prototype.
5442 (vsnwprintf): Add prototype and inline definition.
5443 * include/wchar.h (snwprintf): Add prototype.
5444 (vsnwprintf): Add prototype and inline definition.
5445 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
5447 * mingwex/snprintf.c: New file.
5448 * mingwex/snwprintf.c: New file.
5450 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
5452 * configure.in: Add mingwex as SUBDIRS and configdirs.
5453 * configure: Regenerate.
5454 * Makefile.in (MINGW_OBJS): Remove dirent.o.
5455 (SRC_DIST_FILES): Remove dirent.c.
5457 * include/stdlib.h (_Exit): Add static inline
5459 (struct lldiv_t): Define.
5460 (lldiv): Add prototype.
5461 (llabs): Add extern inline function.
5462 (strtoll,strtoull): Add prototypes.
5463 (wcstol, wcstoul, wcstod): Group together.
5464 (strtof, wcstof): Add extern inline definitions.
5465 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
5466 and extern inline definitions.
5467 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
5468 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
5470 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
5471 (wcstof): Add extern inline definition.
5472 * include/math.h (nan, nanf): Add prototypes.
5473 (NAN, INFINITE): Define constants.
5474 (fpclassify, isnan ,signbit): Add macros and supporting float
5475 and double functions.
5476 (isfinite, isinf, isnormal): Add macros.
5477 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
5479 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
5480 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
5481 (copysign, logb, nextafter, scalb): Add prototypes and
5482 inline stubs for underscored versions in msvcrt.dll.
5483 * include/inttypes.h: New file.
5484 * include/fenv.h: New file
5486 Add new mingwex subdir and files.
5487 * mingwex: New directory.
5488 * mingwex/Makefile.in: New file.
5489 * mingwex/configure.in: New file.
5490 * mingwex/configure: Generate.
5491 * mingwex/dirent.c: Moved here from parent dir.
5492 * mingwex/atoll.c: New file.
5493 * mingwex/feclearexcept.c: New file.
5494 * mingwex/fegetenv.c: New file.
5495 * mingwex/fegetexceptflag.c: New file.
5496 * mingwex/fegetround.c: New file.
5497 * mingwex/feholdexcept.c: New file.
5498 * mingwex/feraiseexcept.c: New file.
5499 * mingwex/fesetenv.c: New file.
5500 * mingwex/fesetexceptflag.c: New file.
5501 * mingwex/fesetround.o: New file.
5502 * mingwex/fetestexcept.c: New file.
5503 * mingwex/feupdateenv.c: New file.
5504 * mingwex/fma.S: New file.
5505 * mingwex/fmaf.S: New file.
5506 * mingwex/fmax.c: New file.
5507 * mingwex/fmaxf.c: New file.
5508 * mingwex/fmin.c: New file.
5509 * mingwex/fminf.c: New file.
5510 * mingwex/fp_consts.c: New file.
5511 * mingwex/fpclassify.c: New file.
5512 * mingwex/fucom.c: New file.
5513 * mingwex/fwide.c: New file.
5514 * mingwex/imaxabs.c: New file.
5515 * mingwex/imaxdiv.c: New file.
5516 * mingwex/isnan.c: New file.
5517 * mingwex/isnanf.c: New file.
5518 * mingwex/lltoa.c: New file.
5519 * mingwex/lltow.c: New file.
5520 * mingwex/log2.c: New file.
5521 * mingwex/log2f.c: New file.
5522 * mingwex/math_stubs.c: New file.
5523 * mingwex/mbsinit.c: New file.
5524 * mingwex/rint.c: New file.
5525 * mingwex/round.c: New file.
5526 * mingwex/signbit.c: New file.
5527 * mingwex/sitest.c: New file.
5528 * mingwex/strtof.c: New file.
5529 * mingwex/strtoimax.c: New file.
5530 * mingwex/strtoumax.c: New file.
5531 * mingwex/testwmem.c: New file.
5532 * mingwex/trunc.c: New file.
5533 * mingwex/ulltoa.c: New file.
5534 * mingwex/ulltow.c: New file.
5535 * mingwex/wcstof.c: New file.
5536 * mingwex/wcstoimax.c: New file.
5537 * mingwex/wcstoumax.c: New file.
5538 * mingwex/wmemchr.c: New file.
5539 * mingwex/wmemcmp.c: New file.
5540 * mingwex/wmemcpy.c: New file.
5541 * mingwex/wmemmove.c: New file.
5542 * mingwex/wmemset.c: New file.
5543 * mingwex/wtoll.c: New file.
5545 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5547 * include/mbstring.h: New file.
5548 * include/mbctype.h: New file.
5550 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5552 * include/tchar.h (__TEXT): Make same as define in
5553 w32api/include/winnt.h.
5555 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5557 * include/tchar.h (_tputenv): Add UNICODE mappings.
5558 (_tsearchenv): Likewise.
5559 (_tmakepath): Likewise.
5560 (_tsplitpath): Likewise.
5561 (_tfullpath): Likewise.
5563 2002-04-18 Pascal Obry <obry@gnat.com>
5565 * dirent.c (opendir): Convert given pathname to
5568 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5570 * include/_mingw.h: Increment version.
5571 * Makefile.in: Ditto.
5573 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5575 * moldname-crtdll.def: Remove CR from end of line.
5576 * moldname-msvcrt.def: Ditto.
5577 * Makefile.in: Use bzip2 compression for Cygwin target.
5579 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
5581 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
5582 TLOSS, PLOSS): Move oldname defines back, following
5583 the underscored names.
5585 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
5587 * include/stdio.h (_snwprintf): Correct spelling.
5588 (_vsnwprintf): Likewise.
5589 * include/wchar.h (_snwprintf): Correct spelling.
5590 (_vsnwprintf): Likewise.
5592 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
5594 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
5595 (wpopen): Add if !(__CRTDLL__).
5596 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
5598 (moldname-crtdll.def rule): Likewise.
5599 * moldname-msvcrt.def: Regenerate.
5600 * moldname-crtdll.def: Regenerate.
5601 * include/stdio.h (wpopen):Use prototype, not a define.
5602 (_swnprintf): Add prototype.
5603 (_vswnprintf): Likewise.
5605 * include/wchar.h (_swnprintf): Add prototype.
5606 (_vswnprintf): Likewise.
5609 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5611 * include/malloc.h (_heapinfo): Correct structure definition.
5612 (_USEDENTRY,_FREEENTRY): Add defines.
5613 Add comment on platform support for _heap* functions.
5614 (_get_sbh_threshold): Add prototype.
5615 (_set_sbh_threshold): Likewise.
5616 (_expand): Likewise.
5618 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5620 * profile/profil.c: Update copyright info.
5621 * profile/profil.h: Likewise.
5622 * profile/gcrt0.c: Likewise.
5624 2002-01-25 Pascal Obry <obry@gnat.com>
5626 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5628 * profile/gmon.c: Define bzero as memset if mingw32.
5629 (monstartup): Use it.
5631 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5633 * include/tchar.h (_TCHAR): Add missing ;.
5635 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5637 * include/tchar.h (_TCHAR): Add typedefs.
5639 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5641 * include/stdlib.h (_onexit_t): Add typedef.
5642 (_onexit): Add prototype.
5644 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5646 * msvcrt.def: Revert accidental change.
5647 * include/stdlib.h: Ditto.
5649 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5651 * Makefile.in: Increment VERSION.
5652 * include/_mingw.h: Ditto.
5654 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5656 * include/strings.h: New File.
5658 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5660 * include/math.h (_FPCLASS* ): Add defines from float.h.
5661 (IEEE recommended functions): Add declarations from float.h.
5662 * include/float.h (_FPCLASS* ): Protect against redefinition.
5664 2001-11-29 Wu Yongwei <adah@netstd.com>
5666 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5667 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5668 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5669 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5670 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5671 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5672 Correct spelling of "disclaimed" in comments.
5673 * include/excpt.h: Another spelling correction.
5675 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5677 * include/errno.h: Fix "errno is not a prototype" warning.
5679 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
5681 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
5682 differences between ANSI and non-ANSI versions.
5683 (_ctype[],_pctype): Declare vars.
5684 (__ISCTYPE): New helper macro using _pctype.
5685 (is* ctype functions): Use __ISCTYPE to define inline versions.
5686 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
5688 (isw* ctype functions): Inline definitions.
5689 * include/wctype.h (_ctype[],_pctype): Declare vars.
5690 (isw* ctype functions): Inline definitions.
5693 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5695 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
5696 __fpecode): Use __STDC__ prototypes.
5699 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
5701 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
5702 * mthr_init.c (DllMain) Run dtors if a process terminates.
5703 * mthr.c (__mingwthr_add_key_dtor) Removed.
5704 (___mingwthr_add_key_dtor) New.
5705 (___mingwthr_remove_key_dtor) New.
5706 (__mingwthr_run_key_dtors) Complete rewrite.
5707 (__mingwthr_remove_key_dtor) New.
5709 2001-11-05 Egor Duda <deo@logos-m.ru>
5711 * Makefile.in: Delete unused executable after creating base-files.
5713 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5715 * include/errno.h (_errno): Use __STDC__ prototype.
5716 Thanks to: Jim Barton.
5718 2001-11-04 "stefan" <stefan@lkcc.org>
5720 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
5722 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5724 * include/io.h (_commit): Add declaration.
5725 Thanks to: "stefan" <stefan@lkcc.org>
5727 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5729 * include/sys/stat.h: Make S_IS* macros safer.
5731 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
5733 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
5735 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5737 * include/stdlib.h (__p__environ, __p__wenviron): Use
5738 __STDC__ prototypes.
5740 2001-09-19 Earnie Boyd <earnie@SF.net>
5742 * Makefile.in: Remove the /usr from the install target.
5743 (VERSION): Increment.
5744 include/_mingw.h: Ditto.
5746 2001-09-17 Earnie Boyd <earnie@SF.net>
5748 * Makefile.in: Increment version.
5749 * include/_mingw.h: Ditto.
5751 2001-09-10 Earnie Boyd <earnie@SF.net>
5753 * dossh: Remove inadvertantly imported file.
5755 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5757 * dirent.c (opendir): Use GetFileAttributes rather than stat
5758 to determine if input arg is dir.
5760 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
5762 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5764 * include/varargs.h (va_list): Ditto.
5765 * include/stdio.h (va_list): Ditto.
5767 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5769 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5770 * include/stdio.h (_IORW): Change constant to 0x0080.
5771 (TMP_MAX): Add new define.
5773 (_wP_tmpdir): Ditto.
5774 (L_tmpnam): Change constant to 16.
5776 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
5778 * include/malloc.h: Fix non-ANSI comment after #endif.
5780 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5782 * profile/configure.in: Make msvcrt.dll version default.
5783 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
5784 * provile/configure: Regenerate.
5786 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
5788 * include/stdio.h (swscanf): Make first arugument const.
5789 * include/wchar.h (swscanf): Ditto.
5790 * include/tchar.h (_tfopen): New _UNICODE define.
5792 (_tsetlocale): Ditto.
5794 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5796 * profile/Makefile.in (mkinstalldirs): Correct relative path.
5798 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5800 * include/_mingw.h: Change version to 1.0.
5803 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
5805 * include/tchar.h: (__TEXT): Remove undef.
5809 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5811 * include/tchar.h: (__TEXT): Add private macro.
5812 (_TEXT): Modify definition to use __TEXT.
5814 This change allows the passing of a MACRO as an argument and have that
5815 MACRO resolved first.
5816 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5818 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5820 * Makefile.in: Increment version to 0.5
5821 * include/_mingw.h: Increment minor version
5823 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5825 * include/assert.h: (assert): Remove ; from end of definition
5826 Thanks to: AJ Reins <tbisp@qwest.net>
5828 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5830 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5831 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5833 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5835 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5837 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5839 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5840 are actually C functions. These functions are resolved via the
5841 -lmsvcp60 library and comments were placed in the header.
5843 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5845 * include/stdlib.h (__p__pgmptr): add prototype.
5846 (__p__wpgmptr): likewise.
5847 (_pgmptr_dll): move declaration from dos.h.
5848 (_wpgmptr_dll): likewise.
5849 (_pgmptr): conditional define (MSVCT/CRTDLL).
5850 (_wpgmptr): likewise.
5851 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5852 (_os*_dll variables): likewise.
5853 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5854 (_wpgmptr_dll): likewise.
5856 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5858 * include/stdint.h: New file.
5860 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5862 * include/wchar.h: Protect prototypes only declared in the C++ STL
5863 from being declared unless __cplusplus is defined.
5865 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5867 * include/stdlib.h: Apply Danny Smith patch 102730
5868 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5869 (_wgetenv) Correction to return type.
5871 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5873 * include/locale.h: Apply Danny Smith patch 101834
5874 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5875 (LC_MIN) Add definition.
5877 (_wsetlocale) Add prototype.
5879 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5881 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5882 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5883 Create a libcoldname.a for the oldname library for CRTDLL.
5884 Restrict libmoldname.a for the oldname library for MSVCRT.
5885 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5886 Restructure the $target_os case logic.
5887 Always name the MinGW thread dll helper mingwm.
5888 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5889 * configure: regenerate.
5891 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5893 * Makefile.in: Fix bindist target to distribute the correct files.
5894 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5895 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5897 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5899 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5900 Add variables and targets to control binary and source distributions.
5901 Add variables and targets to control snapshot distribution.
5902 * profile/gmon.h: Add missing #endif for #ifndef.
5903 * profile/ChangeLog: Merge entries here and remove.
5904 * profile/Makefile.in: Add variables and targets to control
5908 * config.guess: ditto.
5909 * config.sub: ditto.
5910 * mkinstalldirs: ditto.
5911 * install-sh: ditto.
5912 * configure: regenerate.
5913 * profile/configure: ditto.
5915 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5917 * Merge in changes from
5918 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5919 * include/direct.h: add guard around MSVCRT-only prototytpes
5920 * include/io.h: add __int64 struct definitions and function prototypes;
5921 add guard for MSVCRT-only prototypes
5922 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5923 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5924 put wchar functions together to make sync with wchar.h easier
5925 * include/stdlib.h: add wide char functions (__MSVCRT__)
5926 * include/string.h: add string collation functions ( __MSVCRT__)
5927 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5928 * include/tchar.h: add macros and macro function definitions
5929 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5930 enclose more functions in __MSVCRT__ guard;
5931 some oldname wide char function prototypes #if (0)'d
5932 * profile/gmon.h: add guard around BSD-ish typedefs
5934 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5936 * Makefile.in: Use a different variable name for subdirectory since the
5937 previous one was used by the top level make.
5939 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5941 * Makefile.in: Install mingw stuff in a subdirectory if building under
5944 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5946 * Makefile.in (subdirs): Eliminate for loop.
5948 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5950 * Makefile.in (subdirs): Previous change did not fix problem in
5953 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5955 * Makefile.in: Avoid installing dll if we're cross building and the
5956 cross-host system isn't a Windows system.
5957 * configure.in: Detect cross-hosting situation and set appropriate
5958 variables in Makefile.in.
5959 * configure: Regenerate.
5961 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5963 * configure.in: Change HEADER_SUBDIR to mingw32.
5964 * configure: Regenerate.
5966 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5968 * include/string.h: Use proper prototype for _strerror.
5970 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5972 * Makefile.in (subdirs): Workaround for broken shells.
5974 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5976 * Snapshot 2000-02-03.
5978 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5979 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5980 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5981 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5984 * Makefile.in (all): Build CRT0S first.
5985 (libmingwthrd.a): Remove thread support DLL from dependency.
5987 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5989 * Snapshot 2000-01-21.
5991 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5993 Merge in changes from Cygwin:
5994 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5995 (SUBDIRS): Likewise.
5996 * Makefile.in (HEADER_SUBDIRS): New variable.
5997 (install): Use to install Mingw headers to a subdirectory if building
5999 (DLL_CC_STUFF): Add DLL entry point.
6000 * configure: Regenerate.
6002 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
6004 * include/stdio.h (fsetpos): Fix prototype.
6005 (fpos_t): Fix for MSVCRT.
6006 * include/float.h (fpreset): Add prototype.
6007 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
6009 * include/time.h: Don't define tzname as a macro for CRTDLL, and
6010 export using libmoldname.a.
6011 * crtdll.def: Add DATA tags.
6012 * msvcrt.def: Likewise.
6013 * moldname.def.in: Likewise. Add fpreset. Export tzname for
6014 both MSVCRT and CRTDLL.
6015 * moldname-crtdll.def: Regenerate.
6016 * moldname-msvcrt.def: Regenerate.
6018 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
6020 * Snapshot 1999-12-21.
6022 * include/wctype.h: New file.
6023 * include/ctype.h (MB_CUR_MAX): Define.
6025 * include/stdlib.h (MB_CUR_MAX): Define.
6026 * include/wchar.h: Define stat, _stat structures here as well.
6027 * include/float.h: Add invalid subconditions (_SW) and floating
6028 point error (_FPE) macros.
6029 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
6030 (_TIME_T): Rename macro to _TIME_T_DEFINED.
6031 * include/sys/types.h: Likewise.
6033 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
6035 * profile/profil.c (profile_on): Set the profiler thread priority to
6036 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
6037 * Snapshot 1999-11-18.
6039 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
6041 Released 1999-11-07.
6043 * Makefile.in (CRT0S): Add crtst.o.
6044 (install): Install in subdirs as well.
6045 * dirent.h (struct _stat): Rename from struct stat.
6046 * include/tchar.h: Add some new macros. Thanks to
6047 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
6048 * profile/Makefile.in (install): Fix target.
6050 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6052 * Makefile.in: Add support for profile directory.
6053 * configure.in: Likewise.
6054 * configure: Regenerate.
6056 * profile: Imported profiling sources from winsup-19991026 snapshot.
6057 * profile/Makefile.in: New file.
6058 * profile/configure.in: New file.
6059 * profile/configure: Generate.
6060 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
6061 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
6062 * profile/gmon.c (unistd.h): Include conditionally.
6063 (sys/param.h): Likewise.
6064 * profile/mcount.c (sys/param.h): Likewise.
6065 * profile/profil.c (profile_on): thread id is DWORD, not int.
6068 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
6070 * include/stdlib.h: Add wide character version of argv/environ.
6072 * include/wchar.h: More wide character prototypes.
6073 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
6075 * dllcrt1.c (init.c): Don't include.
6076 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
6077 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
6079 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
6081 * moldname.def: Remove file.
6082 * moldname.def.in: And add this.
6083 * moldname-msvcrt.def: Generate from moldname.def.in.
6084 * moldname-crtdll.def: Likewise.
6086 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
6087 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
6088 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
6090 * Makefile.in: Update.
6091 * configure.in: Likewise. Also add *cygwin* target for building
6092 under Cygwin winsup.
6093 * configure: Regenerate.
6095 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
6097 * include/_mingw.h: Add version macros.
6098 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
6099 Also add wide character versions shared with wchar.h.
6100 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
6101 * include/io.h (sopen, _sopen): Fix prototype.
6102 Add wide character prototypes.
6103 * include/wchar.h: Likewise.
6104 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
6105 underscored versions. Potential incompatibility.
6106 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
6107 Add wide character prototypes.
6108 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
6111 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
6113 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
6114 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
6116 * configure: Rengerate.
6117 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
6118 dll name and crt's. CRTDLL and MSVCRT are meant to created
6119 separately, so remove all the *-msvcrt* targets.
6120 (libmingwthr.a): New target. Dummy thread support archive.
6121 (LIBS): Add libmingwthr.a.
6122 (CRT0S): Use CRT_ID. Add crtmt.o.
6123 (MINGW_OBJS): Add crtst.o.
6124 * main.c (WinMain): Fix prototype.
6125 * crtmt.c: New file.
6126 * crtst.c: New file.
6128 * include/process.h (_beginthreadex): Fix prototype.
6129 * include/_mingw.h (__int64): Define for __GNUC__.
6130 * include/tchar.h (_ttol): Add macro.
6131 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
6132 _i64tow, _ui64tow, _wtoi64): Add prototypes.
6134 Reported by Emanuele Aliberti <ea@iol.it>:
6135 * include/tchar.h (_ttoi): Add macro.
6137 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
6138 * include/stdio.h (_snprintf): Add prototype.
6139 (_vsnprintf): Likewise.
6141 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
6143 Reported by Tor Lillqvist <tml@iki.fi>:
6144 * include/stdlib.h (__p___argv): Fix return type.
6146 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6149 * include/errno.h (errno): It's linked in from startup, not imported.
6150 * include/stdlib.h (errno): Likewise.
6151 * include/io.h: Guard against conflicting macros and prototypes in
6153 * include/stdlib.h: Likewise.
6154 * include/string.h: Likewise.
6155 * include/time.h: Likewise.
6157 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6159 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
6160 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
6161 * Makefile.in (INCLUDES): Remove old windows32 include directory.
6163 * crt1.c (_gnu_exception_handler): Fix prototype.
6164 (__mingw_CRTStartup): New function based on mainCRTStartup.
6165 (mainCRTStartup): Set the app type for MSVCRT and call
6167 (WinMainCRTStartup): Likewise.
6168 * init.c (_startupinfo): Define.
6169 (_getmainargs): Add 5th parameter.
6170 (_mingw32_init_mainargs): Use.
6172 * ALL *.c files: Reformat according to GNU coding style.
6174 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
6176 * Makefile.in (INCLUDES): Add w32api include directory.
6178 * include/_mingw.h: New file.
6179 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
6180 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
6181 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
6182 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
6183 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
6184 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
6186 * include/stdlib.h (atexit): Fix prototype.
6188 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
6190 * include/stdio.h (_tempnam): Fix prototype.
6191 (tempnam): Likewise.
6192 * include/stdlib.h: Replace with GCC's version, and guard
6195 From Anders Norlander <anorland@hem2.passagen.se>:
6196 * include/stdlib.h (__argc): Declare.
6199 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
6201 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
6203 * Makefile.in (_libm_dummy.o): New target.
6206 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
6208 * Released 1999-03-16 along with egcs-1.1.2.
6210 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
6212 * Makefile.in (LIBS): Add libm.a.
6213 (libm.a): Dummy libm.a.
6215 * Makefile.in: Update from winsup 1999-02-08 snapshot.
6216 Preserve local changes.
6217 (mkinstalldirs): In ../, not ../../.
6218 (INCLUDES): Point to local windows32api headers and use -nostdinc.
6220 (LIBS): Add libmoldname-msvc.a.
6221 (libmoldname-msvc.a): Add target.
6222 (distclean): Add target.
6224 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
6226 * include/dir.h: Reintroduce as an obsolescent header.
6227 * crt1.c (signal.h): Include.
6228 (_gnu_exception_handler): New function to properly handle win32
6229 asynchronous signals.
6230 (mainCRTStartup): Use.
6232 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
6234 * include/direct.h: Include io.h instead of dir.h
6235 * include/dirent.h: Likewise.
6236 * include/dos.h: Likewise.
6237 * include/stdio.h: Replace reference to dir.h with io.h.
6239 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
6241 * 1999-01-01 release bundled with egcs-1.1.1.
6243 * include/io.h: Incorporate dir.h.
6244 * include/dir.h: Remove.
6245 * include/signal.h: Move RC_INVOKED up a bit.
6247 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
6249 * include/signal.h (sig_atomic_t): Define.
6251 * include/malloc.h: Import defs from deprecated alloc.h.
6252 * include/alloc.h: Remove.
6254 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
6255 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
6256 * include/sys/stat.h (struct stat): st_uid is of type short. Use
6257 _off_t instead of long for st_size.
6259 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
6261 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
6262 * include/stdlib.h: Here.
6264 * include/netdb.h: Remove.
6265 * include/arpa/inet.h: Remove.
6266 * include/netinet/in.h: Remove.
6267 * include/sys/socket.h: Remove.
6269 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
6273 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
6274 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
6276 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6278 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
6279 (jmpbuf): typedef using above.
6280 (setjmp, longjmp): Prototype using jmpbuf.
6282 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
6283 obsolescent imported names, ie., from __imp__ to _imp___.
6285 Also ignored empty include/sys/param.h and incorrect
6286 include/sys/times.h.
6288 * CRTinit.c: New file.
6289 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
6291 * include/io.h (umask): Fix prototype.
6292 * include/stdlib.h (OS constants): Replace with Colin's.
6293 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
6294 * include/sys/state.h: Merge.
6296 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6298 * include/assert.h (assert): Lose the trailing semicolon.
6300 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6302 * include/math.h (matherr): Declare.
6303 * include/stdio.h (fileno, _fileno): Declare.
6304 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
6307 * include/stdio.h (fdopen, _fdopen): Add const.
6308 (getw, putw): Declare.
6309 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
6311 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
6313 * include/time.h (_timezone): Undefine.
6314 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
6316 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
6318 * include/stdlib.h (environ): Use DLL version.
6319 * init.c (environ): Undefine it before use.
6321 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
6323 * Update to 980309 snapshot from Colin Peters.
6325 * include/utime.h: remove
6326 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
6327 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
6328 patches to define these.
6329 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6330 (_daylight, _timezone, _tzname, _tzset): Define.
6332 * include/netdb.h: Add from Colin's windows32api changes.
6333 * include/sys/socket.h: Likewise.
6334 * include/arpa/inet.h: Likewise.
6335 * include/netinet/in.h: Likewise.
6337 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
6339 * Update to 980128 snapshot from Colin Peters.
6341 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
6343 * configure.in (AC_INIT): Use dllmain.c instead of defunct
6345 * configure: Regenerate.
6347 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
6349 * Update to 971205 snapshot from Colin Peters. Lots of changes.
6350 Files renamed and include hierarchy loses directories named
6353 * include/dos.h: from Jan-Jaap.
6355 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
6357 Changes to conform to FSF tree.
6359 * crt1.c: Renamed from mcrt0.c.
6360 * dllcrt1.c: Renamed from dllcrt0.c.
6361 * Makefile.in: Update above. Also renamed libmoldnames.a to
6364 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
6366 * crtdll.def: Export all functions but the ones with funny names.
6367 * moldnames.def: Add fdopen since fileno is already there.
6368 * include/nonansi/dos.h: New file from Jan-Jaap.
6369 * include/errno.h: Add extern decl + various additions from JJ.
6370 * include/stdio.h: Likewise.
6371 * include/stdlib.h: Likewise.
6372 * include/nonansi/io.h: Likewise.
6373 * include/nonansi/process.h: Likewise.
6374 * include/sys/types.h: Likewise.
6376 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6378 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6380 * include/stdlib.h (free): Fix prototype to return void, not void*.
6381 * include/nonansi/process.h: Add P_* and WAIT_* defs.
6383 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
6384 * mcrt0.c: Likewise.
6386 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
6387 (libmoldnames.a): Add explicit rule to create it.
6389 1997-08-15 Rob Savoye <rob@cygnus.com>
6391 New directory for the minimalist cygwin environment.
6393 * crtglob.c: New file. Turn on file globbing support.
6394 * crt_noglob.c: New file. Turn off file globbing support.
6395 * ctype_old.c: New file. Wrappers for functions that don't
6397 * dirent.c: New file. Directory routines readdir, opendir, closedir.
6398 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
6399 * dllmain.c: New file. A stub DllMain function.
6400 * hugeval.c: New file. A gross hack to define HUGE_VAL.
6401 * init.c: New file. Common code to initialize standard file
6402 handles and command line arguments.
6403 * main.c: New file. A main for programs that only call WinMain.
6404 * mcrt0.c: New file. Default crt0 for mingw32.
6405 * oldnames.c: New File. Wrappers for functions that don't
6407 * string_old.c: New File.
6408 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
6409 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
6410 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
6411 * include/sys/types.h: New header file for mingw.
6412 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
6413 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
6414 utime.h,values.h,varargs.h}: New header files for mingw.
6415 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
6416 timeb.h,unistd.h}: New header files for mingw.
6417 * Makefile.in,configure.in: Build and configure support.
6418 * configure: Generated from autoconf 2.12 with Cygnus patches.