1 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Prepare and tag all files for release of mingwrt-3.22.1.
5 * configure.ac (AC_INIT): Adjust package version number; append
6 patch level identification.
8 2016-07-31 Keith Marshall <keithmarshall@users.sourceforge.net>
10 Interim workaround for issue [#2306].
12 * mingwex/math/powl.c: Tidy layout; correct indentation.
13 (powl, reducl): Use ISO-C declaration syntax; K&R is obsolescent.
14 (powl) [OVERFLOW]: Correct representation of return value, using...
15 (INFINITYL): ...this manifest constant value, instead of...
18 2016-07-24 Keith Marshall <keithmarshall@users.sourceforge.net>
20 Optimize printf() field width accumulation function.
22 * mingwex/stdio/pformat.c (__imul10plus): Omit multiply by ten on
23 already accumulated zero total; it is unnecessary, since ten times
26 2016-07-22 Keith Marshall <keithmarshall@users.sourceforge.net>
28 Fix printf() field width parsing regression issue [#2309].
30 * mingwex/stdio/pformat.c (__imul10plus): Coerce any accumulated
31 negative total to zero; the only negative value to be handled is...
32 (PFORMAT_IGNORE): ...this; it ceases to be applicable, on first call
33 to __imul10plus(), to accumulate field width or precision.
35 2016-07-17 Keith Marshall <keithmarshall@users.sourceforge.net>
37 Correct source package omission of msvcrt-xref subdirectory.
39 * Makefile.in (mingwrt-srcdist-files): Add msvcrt-xref.
41 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
43 Prepare and tag all files for release of mingwrt-3.22.
45 * configure.ac (AC_INIT): Adjust package version number.
47 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
49 Preserve kludge to evade GCC build failure on S_ISBLK misuse.
51 * include/sys/stat.h (_NO_UNSUPPORTED): New feature test macro; it
52 should be user defined, if desired, before inclusion; leave undefined.
53 [!_S_IFBLK && !_NO_UNSUPPORTED && !_NO_OLDNAMES] (S_ISBLK): Define it,
54 as appropriate for POSIX conforming usage; do not poison it.
56 2016-07-10 Keith Marshall <keithmarshall@users.sourceforge.net>
58 Fix C++ strict type checking inconsistency in <glob.h>
60 * include/glob.h (__ERRFUNC_P): New private macro; define it to match
61 the type signature of the error function pointer, to be passed to...
62 (glob): ...this function; use it to correctly represent error function
63 pointer argument in inline implementation.
65 2016-07-09 Keith Marshall <keithmarshall@users.sourceforge.net>
67 Factor out <ctype.h> vs. <wctype.h> duplicate elements.
69 * include/ctype.h: Assert copyright; tidy layout.
70 [!_CTYPE_H_]: Do not evaluate; rename macro to be tested, as...
71 [!_CTYPE_H]: ...this preferred multiple inclusion guard macro name.
72 (__CTYPE_H_SOURCED__): New macro; define it, and include <wctype.h>,
73 so requesting partial inclusion, to retrieve definitions for...
74 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
75 (_UPPER, WEOF): ...these macros; hence, do not define them locally.
76 (wint_t, wchar_t, wctype_t): Likewise these type definitions...
77 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
78 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
79 (iswupper, iswxdigit, towlower, towupper, is_wctype): ...these function
80 prototypes, and corresponding inline alternative implementations.
81 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
82 [__MSVCRT_VERSION__<=__MSVCR70_DLL]: Likewise.
84 * include/wctype.h: Assert copyright; tidy layout.
85 [!_WCTYPE_H_]: Do not evaluate; rename macro to be tested, as...
86 [!_WCTYPE_H]: ...this preferred multiple inclusion guard macro name;
87 do not define it when partial inclusion only is selected, by...
88 [__CTYPE_H_SOURCED__]: ...this; thence define only...
89 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
90 (_UPPER): ...these character characterisation macros...
91 (wint_t, wchar_t, wctype_t): ...these type definitions...
92 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
93 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
94 (iswupper, iswxdigit, towlower, towupper): ...these function
95 prototypes, with corresponding inline alternative implementations...
96 (is_wctype): ...this further prototype, qualified as deprecated...
97 (WEOF): ...and this status reporting macro.
98 (_ctype, _pctype, _pctype_dll, _imp___ctype, _imp___pctype): Delete
99 declarations, and associated definitions; they do not belong here.
100 (isleadbyte): Likewise, this Microsoft specific function prototype...
101 (_LEADBYTE): ...and this associated character classification macro.
102 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
104 2016-07-04 Keith Marshall <keithmarshall@users.sourceforge.net>
106 Do not pass MAKEFLAGS explicitly, when invoking recursive make.
108 * Makefile.in (install-strip, uninstall): Delete explicit $(MAKEFLAGS)
109 references from $(MAKE) command lines; make passes them implicitly.
111 2016-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
113 Rework tsearch and friends; resolve issues [#1512] and [#1576].
115 * include/search.h: Assert copyright; tidy layout.
116 (_SEARCH_H_): Rename this multiple inclusion guard macro...
117 (_SEARCH_H): ...to conform to this preferred standard convention.
118 (__search_comparator): New function prototype typedef; it provides a
119 convenient shorthand notation for argument declarations in functions
120 which require a comparator function pointer; use it where appropriate.
121 (tsearch, tfind, tdelete) [__MINGW_ATTRIB_NONNULL]: Apply to arguments
122 #2 and #3; was previously incorrectly applied to arguments #1 and #3.
123 (twalk) [__MINGW_ATTRIB_NONNULL]: Apply to both arguments #1 and #2.
124 [_SEARCH_PRIVATE] (__MINGW_ATTRIB_NONNULL): Suppress its effect, to
125 ensure that GCC does not optimize away checks within implementation.
126 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
128 * mingwex/tdelete.c: Tidy layout.
129 (tdelete): Reimplement it as a thin wrapper around...
130 (__tdelete): ...this; it encapsulates the original implementation as a
131 __CRT_ALIAS (inline) function, to simplify void ** --> node_t ** casts.
132 Remove unnecessary non-null assertions for arguments #1 and #3; prefer
133 to validate arguments #2 and #3 internally, and simply return NULL if
134 necessary; hence, do not include <assert.h>
136 * mingwex/tfind.c: Tidy layout.
137 (tfind): Similarly reimplement it as a thin wrapper around...
138 (__tfind): ...this __CRT_ALIAS (inline) encapsulation of the original.
139 Add non-null validation for argument #3; do not include <assert.h>
141 * mingwex/tsearch.c: Tidy layout.
142 (tsearch): Once again, reimplement it as a thin wrapper around...
143 (__tsearch): ...this __CRT_ALIAS variant. Add non-null validation for
144 argument #3; do not include <assert.h>
146 * mingwex/twalk.c: Tidy layout; do not include <assert.h>
148 2016-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
150 Rework __try1/__except1 to resolve issue [#1328].
152 * include/excpt.h: Assert copyright; tidy layout.
153 (_EXCPT_H_): Multiple inclusion guard macro renamed to...
154 (_EXCPT_H): ...this; update all references as appropriate.
155 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
156 (__typecast_alloca): New macro; define it, casting return type of...
157 (__builtin_alloca): ...this to a specified data type; use it in...
158 (__try1_setup, __except1_teardown): ...these new macros; define them
159 as parameterized templates, providing both -masm-att and -masm-intel
160 syntax implementations, with host specific word size and register
161 assignment parameter substitutions; use them to redefine...
162 (__try1, __except1): ...each of these, using __builtin_alloca to avoid
163 direct stack pushes when registering exception handlers; assign the
164 template parameters as appropriate to support implementation for...
165 [_WIN64, _WIN32]: ...either of these, as the host requires.
167 2016-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
169 Merge Cygwin CVS updates to legacy branch.
171 * include/stdio.h: Merge 2011-11-30 and 2012-08-02 commits.
172 (getc, getchar, putc, putchar): Declare function prototypes.
173 (fopen64, ftello64): Likewise; change implementation classification
174 from __CRT_INLINE to __CRT_ALIAS, to avoid C++ emitted code bloat.
175 (_lock_file, _unlock_file): Add prototypes; modify merge to...
176 [__MSVCRT_VERSION__>=__MSVCR80_DLL]: ...require this.
178 * include/stdint.h: Merge 2012-07-30 commit; include <_mingw.h>
180 * include/excpt.h: Merge 2012-08-01 commit.
181 (__try1, __except1) [_WIN64]: Add alternative implementations.
183 * include/stdlib.h: Merge 2012-08-02 commit.
184 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
185 (_strtoi64, _strtoui64, _wcstoi64, _wcstoui64): Declare prototypes.
186 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
187 (_strtoi64_l, _strtoui64_l, _wcstoi64_l, _wcstoui64_l): Likewise...
188 [!__have_typedef_locale_t] (__need_locale_t): ...and define to get...
189 (locale_t): ...this, by selective inclusion of <locale.h>
190 [__WCHAR_H_SOURCED] (_wcstoi64, _wcstoui64, _wcstoi64_l)
191 (_wcstoui64_l): Make these function prototypes available for selective
193 * include/wchar.h: ...this; merge 2012-08-02 commit.
194 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
195 (_wcstoi64, _wcstoui64): Note availability of function prototypes via
196 selective inclusion of their actual declarations from <stdlib.h>
197 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
198 (_wcstoi64_l, _wcstoui64_l): Likewise.
200 * include/limits.h: Merge 2012-08-02 commit.
201 [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
203 * include/sys/param.h: Merge 2012-08-02 commit.
204 [PATH_MAX not defined] (MAXPATHLEN): Define it explicitly.
205 [PATH_MAX defined] (MAXPATHLEN): Define it as an alias.
207 2016-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
209 Add typedef and access support for opaque locale_t objects.
211 * include/locale.h (locale_t, _locale_t): Define opaque types.
212 [__need_locale_t]: Make them selectively accessible; define...
213 (__have_typedef_locale_t): ...this, when they are available.
214 [_LOCALE_H] (_create_locale, _get_current_locale, _free_locale):
215 Declare function prototypes, on direct <locale.h> inclusion only.
216 [_LOCALE_H || _WCHAR_H] (_wcreate_locale): Likewise; this is to be
217 visible on direct inclusion, or when including <wchar.h>
219 * include/stdio.h [!(_STDIO_H && _WCHAR_T)]: Correct expression of...
220 [__MSVCR80_DLL || _WIN32_WINNT_VISTA]: ...this subsidiary condition;
221 for all cases when this is true, (including when [_STDIO_H] alone)...
222 [!__have_typedef_locale_t] (__need_locale_t): ...define this, and
223 include <locale.h>, for selective definition of...
226 2016-05-19 Keith Marshall <keithmarshall@users.sourceforge.net>
228 Occlude unsupported _S_IFBLK feature; resolve issue [#1146].
230 * include/sys/stat.h (_MINGW_S_IFBLK_KLUDGE): New feature test macro;
231 do not define it, and strongly recommend that it remains undefined.
232 [!_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Do not define them.
233 [!_MINGW_S_IFBLK_KLUDGE] (_S_ISBLK, S_ISBLK): Poison them.
234 [_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Adjust definitions; use a
235 modified value, which is guaranteed to be impossible to match in...
236 [_S_ISBLK, S_ISBLK]: ...these, thus enforcing false test results.
238 2016-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
240 Fix a typo in a <sys/stat.h> inline function definition.
242 * include/sys/stat.h [__MSVCRT_VERSION__ >= __MSVCR80_DLL]
243 (stat): First argument declared as 'int'; should be 'const char *';
246 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
248 Resolve some strnlen() implementation issues.
250 * mingwex/strnlen.s (__mingw_strnlen) [!NUL]: Correct termination
251 logic; should have used jnz, not jz, to skip endpoint adjustment on
252 scanning past a terminal NUL character code.
254 * include/string.h [_POSIX_C_SOURCE >= 200809L] (strnlen): Do not
255 #define it, as this breaks GCC compilation; use __CRT_ALIAS instead,
256 with __JMPSTUB__ referencing via "oldname" libraries.
258 * Makefile.in (jmpstub_awk_script, libimpl_awk_script): Adapt to
259 facilitate assignment of __JMPSTUB__ and __LIBIMPL__ references to
260 libraries other than libmingwex.a
261 (strnlen.jmpstub.$OBJEXT): Assign it to all "moldname" libraries prior
262 to libmoldname80.a, in addition to libcoldname.a, as specified by the
263 __JMPSTUB__ assignment within <string.h>
265 2016-05-03 Keith Marshall <keithmarshall@users.sourceforge.net>
267 Enforce consistent specification of package version.
269 * include/_mingw.h: Rename as...
270 * include/_mingw.h.in: ...this build-time template file.
271 (__MINGW32_VERSION): Redefine it, in terms of...
272 (%PACKAGE_VERSION_LONG%): ...this substitution template.
273 (__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION)
274 (__MINGW32_PATCHLEVEL): Likewise, redefine them in terms of...
275 (%PACKAGE_VERSION_MAJOR%, %PACKAGE_VERSION_MINOR%)
276 (%PACKAGE_VERSION_PATCH%): ...these.
278 * configure.ac (AC_CONFIG_SRCDIR): Adjust for renamed file.
279 (MINGW_AC_CONFIG_EXTRA_SRCDIR): Likewise, for similarly renamed
280 w32api/include/w32api.h.in file.
282 * Makefile.in (all-mingwrt-stage-1-only): Add dependency on...
283 (_mingw.h, w32api.h): ...these; add rule to generate them, using...
284 (PACKAGE_VERSION_SCRIPT, PACKAGE_VERSION_FORMAT): ...these new macros;
285 they apply appropriate substitutions to the renamed template files.
286 (install-mingwrt-headers): Explicitly add _mingwrt.h
288 2016-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
290 Make strnlen() available for all MSVCRT.DLL versions.
292 * msvcrt-xref/msvcrt.def.in (strnlen): Mark it as...
293 (__MINGW_DLSYM): ...this, excluding its exposure in libmsvcrt.dll, and
294 thus requiring a dlsym() lookup for versions which provide it.
296 * include/string.h [__MSVCRT_VERSION__>=__MSVCR80_DLL] (strnlen):
297 Declare prototype, for use from these non-free DLLs, otherwise...
298 [_POSIX_C_SOURCE >= 200809L] (strnlen): Define it as an alias for...
299 (__mingw_strnlen): ...this new libmingwex.a function.
301 * mingwex/strnlen.s: New file; it implements...
302 (__mingw_strnlen, __mingw_strnlen_s): ...these new functions.
304 * Makefile.in (libmingwex.a): Add requirement for...
305 (strnlen.$OBJEXT): ...this; add vpath specification for its source.
307 2016-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
309 Use correct paths for partially included header files.
311 * include/io.h include/process.h: Use 'iquote' #include "stdint.h", to
312 ensure that we get stdint.h from the same include directory.
313 * include/stdio.h: Likewise for #include "stdarg.h", and "sys/types.h"
314 * include/wchar.h: Likewise for all of #include "stdio.h", "stdlib.h",
315 "direct.h", "sys/stat.h", "io.h", "time.h", "locale.h", and "process.h"
316 * include/dir.h include/dos.h: Likewise for #include "io.h"
317 * include/direct.h: Likewise for #include "dos.h"
319 2016-04-13 Keith Marshall <keithmarshall@users.sourceforge.net>
321 Generalize procedure for installing manpages.
323 * man/dirname.man: Rename it as...
324 * man/dirname.3.man: ...this, with inherent MANSECT specification.
325 (TH): Use %PAGEREF% substitution for NAME, MANSECT, and DATE.
326 (MS-Windows): Do not append \[tm]; it doesn't render well in Windows
327 console. Further, correct typos; some syntactic adjustments.
329 * Makefile.in (%:%.man): New rule; define it.
330 (%.mancopy, %.mancopy-recursive): New rules; define and use with...
331 (reference_manpage): ...this new macro, defining it to map...
332 (dirname.3.man): ...this as the reference source file for both of...
333 (basename.3, dirname.3): ...these installed manpages.
334 (format_manpage): Add MANSECT and DATE to expansion of...
335 (%PAGEREF%): ...this sed substitution pattern.
337 2016-04-12 Keith Marshall <keithmarshall@users.sourceforge.net>
339 Update several incorrectly attributed header files.
341 * include/direct.h include/io.h include/locale.h include/math.h
342 * include/process.h include/stdio.h include/stdlib.h include/string.h
343 * include/sys/stat.h include/sys/types.h include/time.h: Identify the
344 original author as Colin Peters; Rob Savoye merely imported them into
345 the original CVS repository, when he created it.
347 * include/wchar.h: Likewise, imported by Rob Savoye, but the original
348 source file is unattributed.
350 2016-04-11 Keith Marshall <keithmarshall@users.sourceforge.net>
352 Eliminate all references to non-standard __NO_ISOCEXT macro.
354 * include/math.h: Tidy layout.
355 [!defined __NO_ISOCEXT]: Do not use this ugly double negative; in any
356 case, we do not want to encourage users to define such implementation
357 private macros; instead, prefer to make use of...
358 [defined _ISOC99_SOURCE]: ...this glibc compatible feature test.
359 [__STDC_VERSION__ >= 199901L]: Do not require this; it is implied, by
360 definition, in _ISOC99_SOURCE.
361 * include/stdio.h [!defined __NO_ISOCEXT]: Likewise; replace with...
362 [defined _ISOC99_SOURCE]: ...this, throughout.
364 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
366 Make resetting of __need_typedef requests more robust.
368 * include/sys/types.h [__need_off_t, __need___off64_t]
369 [__need_ssize_t, __need_time_t]: Move corresponding #undef out of, and
370 after the respective conditional blocks, which provide each associated
371 typedef, so ensuring that any repeat request is properly reset.
373 * include/time.h [__need_time_t]: Always delegate to <sys/types.h> for
374 typedef, and reset of request, even in cases where...
375 [_TIME_H]: ...this is already defined.
377 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
379 Add a missing comment terminator.
381 * include/io.h [!(defined _IO_H && defined _WCHAR_H)]: Properly
382 terminate the comment annotating the closing #endif statement.
384 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
386 Declare <dir.h> as formally deprecated.
388 * include/dir.h: Assert copyright.
389 (pragma GCC system_header): Declare it.
390 (_DIR_H): Define as multiple inclusion macro.
391 [!_DIR_H]: Emit "obsolete header" warning message.
393 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
395 Factor out <wchar.h> vs. <io.h> duplicate declarations.
397 * include/io.h: Assert copyright; tidy layout.
398 (_IO_H_): Rename this multiple inclusion guard macro...
399 (_IO_H): ...to this preferred form; do not define it when...
400 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
401 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
402 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
403 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
404 (_wfindnext64i32, _wfindfirst32, _wfindnext32, _findclose): ...only
405 these function prototypes, common to <wchar.h>, together with...
406 (_fsize_t, struct _wfinddata_t, struct _wfinddatai64_t)
407 (struct __wfinddata64_t, struct _wfinddata64i32_t)
408 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these
409 requisite data type definitions.
410 (pragma GCC system_header): Declare it.
411 (__need_intptr_t): Define, and include <stdint.h> to get...
412 (intptr_t): ...this typedef; neither define it locally, nor define...
413 (_INTPTR_T_DEFINED): ...this; delete all references.
414 (_FSIZE_T_DEFINED): Do not define it; delete all references; rather...
415 [!(defined _IO_H && defined _WCHAR)] (_fsize_t): Define it.
416 (FILENAME_MAX): Define it unconditionally.
417 (__struct_finddata_t): New temporary macro; define and use it to...
418 (struct _finddata_t, struct _wfinddata_t, struct _finddatai64_t)
419 (struct _wfinddatai64_t, struct __finddata64_t, struct __wfinddata64_t)
420 (struct _finddata64i32_t, struct _wfinddata64i32_t)
421 (struct _finddata32i64_t, struct _wfinddata32i64_t)
422 (struct __finddata32_t, struct __wfinddata32_t): ...define these.
424 * include/wchar.h (_WFINDDATA_T_DEFINED): Do not define it; delete all
425 references; filter out associated data type definitions, namely...
426 (struct _wfinddata_t, struct _wfinddatai64_t): ...these, and also...
427 (struct __wfinddata64_t, struct _wfinddata64i32_t): ...these, and...
428 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these.
429 (_WIO_DEFINED): Likewise, do not define it; delete all references;
430 filter out associated function prototype declarations for all of...
431 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
432 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
433 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
434 (_wfindnext64i32, _wfindfirst32, _wfindnext32): ...these; reproduce
435 them by selective inclusion of <io.h>.
437 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
439 Factor out <wchar.h> vs. <process.h> duplicate declarations.
441 * include/process.h: Assert copyright; tidy layout.
442 (_PROCESS_H_): Rename this multiple inclusion guard macro...
443 (_PROCESS_H): ...to this preferred form; do not define it when...
444 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
445 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
446 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
447 (_wspawnve, _wspawnvp, _wspawnvpe): ...only these functions.
448 [!__WCHAR_H_SOURCED__] (_PROCESS_H): Define it; declare all functions
449 normally specified herein, including those listed above, as required.
450 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
451 (__need_intptr_t): Define it prior to including <stdint.h>.
452 (pragma GCC system_header): Declare it.
454 * include/wchar.h (_WPROCESS_DEFINED): Delete it; filter out...
455 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
456 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
457 (_wspawnve, _wspawnvp, _wspawnvpe): ...these function prototypes;
458 reproduce them, by selective inclusion of <process.h>.
460 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
462 Enable selective retrieval of intptr typedefs from <stdint.h>.
464 * include/stdint.h: Assert copyright; tidy layout.
465 [__need_intptr_t || __need_uintptr_t] (_STDINT_H): Do not define it;
466 conceal all normally defined data types, except either or both of...
467 [__need_intptr_t] (intptr_t): ...this, and/or...
468 [__need_uintptr_t] (uintptr_t): ...this.
469 (pragma GCC system_header): Declare it.
471 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
473 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
475 * include/sys/stat.h: Assert copyright; tidy layout.
476 (pragma GCC system_header): Declare it.
477 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
478 (_SYS_STAT_H): ...this preferred naming convention; however, when...
479 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
480 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
481 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
482 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
483 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
484 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
485 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
486 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
487 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
488 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
489 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
490 (__struct_stat_defined): New macro; define, and use it to define...
491 (struct stat, struct _stat, struct _stati64, struct __stat64)
492 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
493 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
494 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
495 definition of types size_t and wchar_t; declare all header content,
496 including that declared when __WCHAR_H_SOURCED__ is defined, unless
497 already declared as a result of selective inclusion by <wchar.h>
498 (__need_size_t, __need_wchar_t): Do not define them; consequently,
499 there is no need to include <stddef.h>; do not do so.
501 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
502 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
503 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
504 (struct _stat64i32): Likewise; reproduce them by selective inclusion
507 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
509 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
511 * include/direct.h: Conditionally partition it, such that...
512 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
513 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
514 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
515 (_WDIRECT_DEFINED): Never define it; delete all references.
517 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
518 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
519 selectively #include <direct.h> to reproduce them.
521 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
523 Factor out <direct.h> vs. <dos.h> duplicate declarations.
525 * include/dos.h: Assert copyright; tidy layout.
526 (pragma GCC system_header): Declare it.
527 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
528 (_DOS_H): ...this preferred convention; do not define it when...
529 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
530 (struct _diskfree_t): ...this aggregate data type, together with...
531 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
532 (_getdiskfree): ...this associated function.
533 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
534 emit a warning that this header is obsolete, and should not be used.
535 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
536 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
537 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
538 neither is it necessary to #include <stddef.h>; do not do so. Also,
539 do not #include <_mingw.h> explicitly, but always #include <io.h>,
540 which will implicitly #include <_mingw.h> anyway.
542 * include/direct.h: Assert copyright; tidy layout.
543 (pragma GCC system_header): Declare it.
544 (_DIRECT_H_): Rename this multiple inclusion guard macro...
545 (_DIRECT_H): ...to adopt this preferred naming convention.
546 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
547 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
548 (_getdiskfree): Likewise, do not declare prototype; instead...
549 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
550 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
551 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
552 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
553 although needed, we may inherit it indirectly from <sys/types.h>,
554 included by <io.h> via <dos.h>.
556 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
558 Evade CPP mismatched apostrophe warnings in windres comments.
560 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
562 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
564 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
566 * include/locale.h: Assert copyright; tidy layout.
567 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
568 (_LOCALE_H): ...this; do not define it when...
569 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
570 (_wsetlocale): ...just this one visible function prototype.
571 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
572 (_WLOCALE_DEFINED): Do not define it; delete all references.
573 (pragma GCC system_header): Declare it.
575 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
576 visibility by selective inclusion of <locale.h> instead.
577 (_WLOCALE_DEFINED): Delete all references.
579 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
581 Resolve some "implicit function declaration" warnings.
583 * setargv.c (isspace): Include <ctype.h> for declaration.
584 * cpu_features.h (__cpu_features_init): Declare function prototype.
585 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
587 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
589 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
591 * include/stdlib.h [__WCHAR_H_SOURCED__]
592 (_STDLIB_H): Do not define it; restrict visible declarations to...
593 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
594 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
595 of regular <stdlib.h> content; full content is declared only when...
596 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
597 (_WSTDLIB_DEFINED): Do not define it; delete all references.
598 (pragma GCC system_header): Declare it; tidy layout.
600 * include/wchar.h: Delete duplicated declarations for...
601 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
602 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
603 include <stdlib.h> selectively, to maintain their visibility.
604 (_WSTDLIB_DEFINED): Delete all references.
606 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
608 Relocate misplaced umask() function prototypes.
610 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
611 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
612 here, but leave them for backward, or Microsoft, compatibility.
614 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
616 Correct another _BEGIN_C_DECLS imbalance error.
618 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
619 unbalanced instance deleted; one correctly balanced instance remains.
621 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
623 Support installation of headers with empty parts directory.
625 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
626 (install-mingwrt-headers): ...invoke it; if false, do not perform...
627 (INSTALL_SUB_HEADERS): ...this.
629 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
631 Reinstate typedef for non-standard off64_t.
633 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
634 (__off64_t): ...typedef derived from this; although non-standard, it
635 is gratuitously required when building GCC's libgfortran.a
637 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
639 Correct conditional compilation block nesting errors.
641 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
642 them balanced within, and around, conditional compilation blocks.
644 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
646 Feature test _MINGW32_EXTENDED_SOURCE renamed.
648 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
649 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
650 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
651 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
652 users should enable any conventional feature test which implies it.
654 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
655 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
657 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
659 Correct atexit() and _onexit() export declaration regression.
661 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
662 as DATA; declare them accordingly.
664 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
666 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
668 * include/string.h: Tidy layout.
669 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
670 (_stricmp, _strnicmp): Include their prototypes, selectively from...
671 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
672 * include/parts/strings.h: ...from here; file is obsolete; delete it.
674 * include/string.h (_wcscmpi): Define alias.
675 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
676 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
677 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
678 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
679 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
680 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
681 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
682 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
684 * include/strings.h (_STRINGS_H): Do not define it, when...
685 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
686 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
688 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
690 Refactor to make <parts/time.h> redundant.
692 * include/sys/types.h (time_t, __time32_t, __time32_t)
693 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
694 * include/parts/time.h: ...from here; preserve selective exposure.
696 * include/time.h (time_t, __time32_t, __time32_t): Get them...
697 * include/sys/types.h: ...from here, by selective inclusion.
699 * include/time.h (struct timespec, struct __mingw_extended_timespec)
700 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
701 * include/parts/time.h: ...from here; preserve selective exposure.
703 * include/parts/time.h: Delete file; it is no longer required.
705 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
707 Declare the nanosleep() function where POSIX expects it.
709 * include/time.h (__mingw_sleep): Declare function prototype.
710 (nanosleep): Declare prototype, and provide in-line implementation;
711 this is a reproduction of the original implementation, relocated...
712 * include/unistd.h (nanosleep): ...from here; remove it; hence...
713 (struct timespec): ...this need not be declared here, and there is
714 no need to include <parts/time.h>; remove reference.
716 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
718 Refactor <time.h> vs. <wchar.h> to avoid duplication.
720 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
721 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
722 (struct tm): Delete definition; delegate it, together with each of...
723 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
724 (wcsftime): ...these function prototypes; delete them, but note in
725 comments, that they remain declared, via delegation to...
726 * include/time.h: ...this; include it selectively, subject to...
727 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
728 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
729 [_TIME_H]: Process all definitions and declarations; otherwise...
730 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
731 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
732 (_WTIME_DEFINED): Obsolete macro; delete all references.
734 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
736 Implement support for POSIX "%n$*m$" printf() format control.
738 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
739 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
740 (__pformat_inline__): New macro; define, and use it where appropriate.
741 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
742 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
743 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
744 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
745 (__pformat_argmap_t): ...this new union data type; define it.
746 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
747 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
748 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
749 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
750 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
751 (__pformat_length_modifier, __pformat_check_length_modifier): New
752 locally defined static and/or inline functions; implement, and...
753 (__pformat): ...use them.
755 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
757 Add prototypes for Microsoft's _printf_p() family of functions.
759 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
760 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
761 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
762 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
763 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
764 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
765 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
766 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
767 available for selective inclusion by both <stdio.h> and <wchar.h>...
768 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
770 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
772 Adapt msvcrt-xref to become msvcrt.def.in provider.
774 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
775 filter value assignment; scale it upwards, by a factor of 0x10000.
776 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
777 (%.def) [msvcr*]: Do not preserve comments; define...
778 (__DLLNAME__): ...this preprocessor symbol.
780 * msvcrt.def.in: Content is obsolete; delete file and replace with...
781 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
782 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
783 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
784 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
785 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
787 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
789 Import msvcrt-xref documentation resources.
791 * msvcrt-xref: New directory.
792 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
793 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
794 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
795 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
797 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
799 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
801 * include/wchar.h: Some minor layout adjustments.
802 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
803 within the scope of reading <wchar.h>; undefine it at end of file.
804 (struct tm): Do not define; it is sufficient to keep it opaque.
805 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
806 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
807 directly; delegate to indirect definition by including <stdio.h>.
808 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
809 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
810 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
811 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
812 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
813 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
814 indirectly, by selective inclusion from <stdio.h>; hence include it.
816 * include/stdio.h: Assert copyright; tidy layout.
817 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
818 (_STDIO_H): ...this, but defined conditionally, subject to...
819 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
820 entities which are required by <wchar.h>; do not define...
821 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
822 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
823 are normally specified within <stdio.h>, INCLUDING those specifically
824 itemised above, as selectively required by <wchar.h>.
826 * pseudo-reloc.c: Some minor layout adjustments.
827 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
828 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
829 include <stddef.h> to guarantee it.
831 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
833 Enable selective definition of POSIX system types.
835 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
836 any specific __need_TYPE selector having been set prior to inclusion;
837 DO define it when no such selector is present, and undefine all such
838 selectors as may have been set, after evaluation of their effects.
839 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
840 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
841 accommodates reorganization of the file, to achieve a tidier layout.
842 (__have_typedef_off_t): New repeat definition guard; define it for
843 compilers which may choke on any repeated typedef for either of...
844 (off_t, _off_t): ...these; make them selectively defineable for...
845 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
846 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
847 in either case, redefine them in terms of...
848 (__off32_t): ...this new internal type, for consistency with...
849 (__off64_t): ...this previously defined non-standard type; also make
850 it selectively defineable, either by...
851 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
852 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
853 (__have_typedef___off64_t): New repeat definition guard; define it.
854 (ssize_t, _ssize_t): Also make them selectively defineable, on...
855 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
856 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
857 (__have_typedef_ssize_t): New repeat definition guard; define it.
859 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
861 Avoid user namespace pollution by non-standard type 'off64_t'.
863 * include/sys/types.h (off64_t): Rename it as...
864 (__off64_t): ...this implementation-private alternative name, so
865 eliminating the potential for user namespace pollution.
867 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
868 return type, and type of offset argument, in both prototype and inline
869 implementation; note that this addresses the issue of pollution in the
870 user namespace, while avoiding the issue of MinGW-Bug [#2024].
872 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
873 instead of 'off64_t', as offset argument type in function prototypes.
874 (ftello64): Likewise, for return type of inline function.
876 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
877 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
878 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
880 * mingwex/stdio/fseeko64.c: Assert copyright.
881 (fseeko64): Use '__off64_t' per modified function prototype.
883 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
885 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
887 * mingwex/ofmtctl.c: New file; it implements...
888 (_mingw_output_format_control): ...this new function; it provides
889 additional MinGW specific printf() format processing options.
891 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
893 * include/stdio.h (_mingw_output_format_control): Declare it.
894 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
895 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
896 manifest constant expressions; define them.
898 * mingwex/stdio/pformat.c: Revise licensing terms.
899 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
900 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
901 modifier; this matches the behaviour specified by ISO-C99, else...
902 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
903 previous MSVC compatible behaviour, treating it as an `L' modifier.
904 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
906 * mingwex/ofmt.c (ARGLIST): Subsume references to...
907 (ARGTYPE): ...this now obsolete macro; delete it throughout.
908 (update_output_format_flag): New inline function; it restricts flag
909 operations to affect only Microsoft's exponent digit bits.
910 [FUNCTION == _set_output_format]: Use it.
911 [FUNCTION == _get_output_format]: Likewise.
913 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
915 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
917 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
918 defined, when implied by any STDC or POSIX version selection, viz. ...
919 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
921 * include/stdlib.h: Assert copyright; tidy layout.
922 (_STDLIB_H_): Multiple inclusion guard macro renamed...
923 (_STDLIB_H): ...to this, preferring no trailing underscore.
924 [!defined __NO_ISOCEXT]: Delete double negative references; use...
925 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
926 (lldiv_t): ...defining this C99 specific aggregate data type, and...
927 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
928 (wcstold, _Exit): ...declaring these C99 function prototypes.
929 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
930 future removal; not in MSVCRT.DLL, these conform to no known standard.
931 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
932 (__strtod): ...this libmingwex.a provided function; it handles string
933 representations of hexadecimal-floats, infinities and NaNs, whereas...
934 (strtod): ...this MSVCRT.DLL implementation does not.
935 (__MSVCRT_VERSION__): Prefer symbolic comparison...
936 [>= __MSVCR80_DLL]: ...for this requirement.
938 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
940 Rationalize definition of struct timespec.
942 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
943 tv_sec field, in place of anonymous union, thus avoiding missing brace
944 warnings when initializing; leave a copy of the previous definition...
945 (struct __mingw32_expanded_timespec): ...named thus.
947 * include/unistd.h (nanosleep): Adjust inline implementation, to match
948 altered specification of tv_sec field in struct timespec.
950 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
951 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
953 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
954 convenience function; defined as inline, with __LIBIMPL__ equivalent,
955 it facilitates interpretation of an instance of struct timespec as if
956 it were defined as struct __mingw32_expanded_timespec.
958 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
960 Make strings.h mostly POSIX.1-2008 compliant.
962 * include/strings.h: Rewritten. Do not include...
963 (string.h): ...this; mandated by POSIX.1, it now defines...
964 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
965 prototypes, possible in-line implementations, and JMPSTUB references
966 to corresponding external implementations, which will now become
967 automatically created within libmingwex.a
969 * include/parts/strings.h: New file; it declares prototypes for...
970 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
971 string.h, but we also require them in strings.h
973 * include/parts/wchar.h: New file; it declares prototypes for all wide
974 character functions which MSVC specifies in both wchar.h and string.h
976 * include/string.h: Miscellaneous layout adjustments.
977 (strcasecmp, strncasecmp): Delete; they belong in strings.h
978 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
979 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
980 include them from parts/wchar.h instead.
982 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
983 prototypes; include them from parts/wchar.h instead, so making this
984 guard macro redundant; delete it.
986 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
987 (wcscmpi.$OBJEXT): Implementations are now automatically generated
988 from header file, for inclusion in libmingwex.a; remove free-standing
989 implementations from the entire family of liboldname libraries, and...
990 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
991 files; they are no longer required.
993 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
995 Incorporate build system updates from w32api package.
997 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
998 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
999 (install-strip, uninstall): New make command goals; implement them.
1000 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
1001 (devdist, dlldist): ...these have no need to strip explicitly.
1002 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
1003 (install-mingwrt-headers): ...here.
1005 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1007 Adapt platform feature checks to NTDDI_VERSION conventions.
1009 * include/_mingw.h: Assert copyright; include w32api.h
1010 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
1011 to w32api/include/w32api.h, whence they remain in effect.
1012 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
1014 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1016 Correct mismatched #if/#endif from preceding commit.
1018 * include/_mingw.h (#pragma GCC system_header)
1019 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
1020 correcting for inadvertent removal of matching #endif introduced by
1021 preceding 2015-06-19 commit.
1023 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1025 Define symbolic names for alternative Microsoft runtime DLLs.
1027 * include/msvcrtver.h: New file; it assigns a value for...
1028 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
1029 (__MSVCR60_DLL): ...this new manifest constant, with each of...
1030 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
1031 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
1032 ...these also defined, as user assignable alternatives.
1034 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
1035 to establish its default value.
1037 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1039 Track dependencies on modified system header files.
1041 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
1043 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1045 Correct an anomaly in stage 1 only build procedure.
1047 * Makefile.in (all-gcc): New goal; it is an alias for...
1048 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
1049 (all-mingwrt-stage-1-only): ...this; upate all references.
1050 (active-goals): Adjusted accordingly; it now reguires...
1051 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
1052 (install): Adjusted, as directed by...
1053 (DEFAULT_MAKECMDGOALS): ...this.
1055 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1057 Prefer our hypot() implementation in complex maths operations.
1059 * mingwex/complex/cabs_generic.c: New file; it replaces...
1060 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
1061 * mingwex/complex/cabsl.c: ...these.
1063 * mingwex/complex/catan_generic.c: New file; it replaces...
1064 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
1065 * mingwex/complex/catanl.c: ...these.
1067 * mingwex/complex/clog_generic.c: New file; it replaces...
1068 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
1069 * mingwex/complex/clogl.c: ...these.
1071 * mingwex/complex/cpow_generic.c: New file; it replaces...
1072 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
1073 * mingwex/complex/cpowl.c: ...these.
1075 * mingwex/complex/csqrt_generic.c: Do not use...
1076 (_hypot): ...this Microsoft form of function reference; use...
1077 (hypot): ...this ANSI standard form instead.
1079 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1081 Correct C++ compilation anomaly with hypotf() in cmath header.
1083 * include/math.h: Add copyright notice; generally tidy layout.
1084 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1085 (hypotf): Delete inline implementation; it did not properly handle
1086 range errors, and was uncompilable with optimization when any g++
1087 option implying __STRICT_ANSI__ conformity was specified.
1088 (_MATH_H_): Rename this multiple inclusion guard...
1089 (_MATH_H): ...to this.
1091 * mingwex/math/hypot_generic.c: New file; it implements...
1092 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
1093 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
1095 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1097 Prepare and tag all files for release of mingwrt-3.21.1.
1099 * configure.ac (AC_INIT): Adjust package version argument.
1100 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
1101 (__MINGW32_VERSION): ...increment this to match.
1103 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1105 Refactor to avoid possible time_t conflicts across headers.
1107 * include/parts/time.h (struct timespec): Make it more descriptive of,
1108 and better able to accommodate, potential ambiguity relating to...
1109 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
1110 whence they may be identically imported into each of...
1111 * include/sys/types.h include/time.h include/wchar.h: these; delete
1112 duplicate typedefs, and import accordingly.
1114 * include/sys/types.h: Add licence; general comment additions.
1115 (_TYPES_H_): Rename multiple inclusion guard macro...
1116 (_SYS_TYPES_H): ...to this.
1118 * include/time.h: Add licence; general comment/layout adjustments.
1119 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1120 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
1121 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
1122 (_TIME_H_): Rename multiple inclusion guard macro...
1123 (_TIME_H): ...to this.
1125 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
1126 (struct timespec): ...of this.
1128 * include/wchar.h: Add licence; general comment/layout adjustments.
1129 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1130 [GCC] (system_header): Add pragma, identifying header as such.
1131 (_WCHAR_H_): Rename multiple inclusion guard macro...
1132 (_WCHAR_H): ...to this.
1134 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1136 Remove obsolete varargs.h header file.
1138 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
1139 a GCC header which is no longer supported, and was always intended for
1140 ultimate removal; now is the long overdue time to do so.
1142 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1144 Correct improper unistd.h function attribute declarations.
1146 * include/unistd.h (_cdecl): Correct usage throughout; should be...
1149 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1151 Fix GLOB_DOOFFS initialization bug.
1153 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
1154 (gl_data->gl_offs): ...this is properly initialized to zero.
1156 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1158 Tag all files for release of mingwrt-3.21.
1160 * include/_mingw.h: Adjust version accordingly.
1162 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1164 Improve usage notes in stdlib.h, for mkstemp() function.
1166 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
1167 an original comment, explaining the need to use _O_TEMPORARY, from...
1168 * mingwex/mkstemp.c: ...here; delete trailing white space.
1170 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1172 Eliminate some potential definition inconsistencies.
1174 * include/stdio.h: Cosmetic formatting change, relating to...
1175 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
1176 unconditionally; this allows the compiler to check for consistency
1177 with their primary definitions in stdio.h
1179 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1181 Suppress expected warning diagnostics in LIBIMPL builds.
1183 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
1184 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
1185 GCC flag to supress warnings relating to deprecated declarations.
1187 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1189 Provide more POSIX conforming sleep() functions.
1191 * include/sys/types.h (useconds_t): Make it explicitly long; int may
1192 be okay, but doesn't guarantee enough bits; mark as deprecated, since
1193 POSIX has declared it "obsolete", and no longer specifies it.
1195 * mingwex/usleep.c: Delete file; it provided an implementation of...
1196 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
1197 its error handling was hopelessly broken; replace it with...
1198 * mingwex/nsleep.c: ...this new file; it implements...
1199 (__mingw_sleep): ...this generic helper function; it supports sleep
1200 capability with interval specification to nanosecond precision.
1202 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
1203 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
1204 (sleep, nanosleep): ...these current POSIX functions, and also...
1205 (usleep): ...this obsolete one; mark it as deprecated.
1207 * include/parts: New directory; it is intended to host partial header
1208 implementations, for content which must be shared among arbitrary sets
1209 of multiple standard header files.
1211 * include/parts/time.h: New file; nominally declaring time.h content.
1212 (struct timespec): Declare it; it is currently used within unistd.h,
1213 to facilitate the __CRT_INLINE implementation of nanosleep().
1215 * Makefile.in (libmingwex.a): Remove reference to...
1216 (usleep.$OBJEXT): ...this; replace it with a reference to...
1217 (nsleep.$OBJEXT): ...this alternative.
1218 (mingwrt-includedirs): Add prerequisite to create...
1219 ($includedir/parts): ...this new directory; it is populated by...
1220 (install-mingwrt-headers): ...this rule; add requisite command.
1222 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1224 Delete an unnecessary Unicode wrapper file.
1226 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
1227 UTF-16LE API from dirent.c, without any need for this wrapper.
1229 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1231 Some further inline function rationalization.
1233 * include/io.h (_CRTALIAS): Replace all references...
1234 (__CRT_ALIAS): ...using this syntactically preferred form.
1235 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
1236 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1238 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
1239 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1241 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
1242 * mingwex/ftruncate.c: Likewise.
1244 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1245 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
1247 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1249 Some POSIX feature test adjustments.
1251 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
1252 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
1253 (mkdtemp): This didn't become available until SUSv4, so requires...
1254 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
1256 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1258 Another CRT_INLINE function implementation rationalization.
1260 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
1261 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
1262 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1264 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
1265 (libmingwex.a): Delete obsolete dependency on...
1266 (imaxabs.$OBJEXT): ...this.
1268 * mingwex/imaxabs.c: File is now redundant; delete it.
1270 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1272 More rationalization of CRT_INLINE function implementations.
1274 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
1275 (ftello64): Add __LIBIMPL__ specification for extern implementation.
1276 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1278 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
1279 * mingwex/stdio/ftell064.c: Likewise.
1281 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1282 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
1284 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1286 Don't implicitly define _POSIX_C_SOURCE too early.
1288 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
1289 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
1290 that it is not accidentally activated by implied _POSIX_C_SOURCE.
1292 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1294 Correct complex arcsin computation per issue [#2245].
1296 * mingwex/complex/casin_generic.c: New file; it replaces...
1297 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
1298 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
1300 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1302 Correct complex square root computation per issue [#2246].
1304 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
1305 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
1306 (hypot): ...this libmoldname.a indirection.
1308 * mingwex/complex/csqrt_generic.c: New file; it replaces...
1309 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
1310 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
1312 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1314 Adjust header guards to resolve issue [#2244].
1316 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
1317 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
1318 ...when any of these prevail, or as appropriate to correspond with...
1319 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
1321 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
1322 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
1323 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
1324 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
1326 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1328 Add implementation of mkstemp() and mkdtemp() functions.
1330 * mingwex/cryptnam.c: New file; it implements...
1331 (__mingw_crypto_tmpname): ...this helper function; it generates a
1332 cryptographically secure sequence of characters, used as the random
1333 component in temporary file and directory names.
1335 * mingwex/mkstemp.c: New file; it implements...
1336 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
1338 * mingwex/mkdtemp.c: New file; it implements...
1339 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
1341 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
1342 function implementation, with LIBIMPL extern semantics, in terms of...
1343 (__mingw_mkstemp): ...this; also declare prototype, and define...
1344 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
1345 (_MKSTEMP_SETMODE): New macro; define it, also providing...
1346 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
1347 (mkdtemp): Declare prototype; provide inline implementation, with
1348 JMPSTUB extern semantics, in terms of...
1349 (__mingw_mkdtemp): ...this; declare prototype.
1351 * Makefile.in (libmingwex.a): Add dependency rule, to include...
1352 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
1354 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1356 More JMPSTUB rationalization of inline functions.
1358 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
1359 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
1360 appropriate MSVCRT.DLL equivalent entry point.
1362 * mingwex/_Exit.c: File is now redundant; delete it.
1363 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
1364 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
1366 * Makefile.in (jmpstub_awk_script): Add support for...
1367 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
1368 (libmingwex.a): Remove dependencies on deleted files, namely...
1369 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
1370 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
1372 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1374 Correct omission of complex conjugate functions from libmingwex.a
1376 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
1377 (creal, crealf, creall): Likewise, for consistency of implementation.
1378 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
1380 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
1381 declarations; they should be interpreted analogously to __CRT_ALIAS.
1382 (libmingwex.a): Remove object file references for functions which are
1383 now declared as LIBIMPL, and sort the remainder in ASCII collating
1384 order; deleted function references comprise the set consisting of...
1385 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
1386 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
1387 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
1389 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
1390 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
1391 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
1392 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
1393 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
1395 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1397 Back-port improved asinh() implementation from 4.0-dev branch.
1399 * mingwex/math/asinh_generic.c: New file; it replaces...
1400 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
1401 ...all of these; delete them.
1403 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1405 Enable remake of lost LIBIMPL object files.
1407 * Makefile.in (libimpl_remake): New macro; define it, and...
1408 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
1410 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1412 Implement more robust _get_output_format fallback handling.
1414 * mingwex/ofmt.c: New file; it implements...
1415 (__mingw_output_format_flag): ...backing store, used by...
1416 (__mingw_get_output_format, __mingw_set_output_format): ...these
1417 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
1418 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
1419 version specific Microsoft APIs, which are also supported by some
1420 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
1421 (__mingw_get_output_format_fallback): Implement; it is aliased to...
1422 (__mingw_set_output_format_fallback): ...this; together they provide
1423 the emulation support for the preceding pair of functions, when they
1424 are not available within the run-time platform MSVCRT.DLL
1425 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1426 Implement them; they wrap, and if necessary emulate...
1427 (_get_printf_count_output, _set_printf_count_output): ...these.
1428 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
1429 (__mingw_set_printf_count_output_fallback): ...this; together they are
1430 required to support emulation of the preceding pair of functions, when
1431 they are not available within the run-time platform MSVCRT.DLL
1433 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
1434 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
1435 (__mingw_get_output_format, __mingw_set_output_format)
1436 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1437 Unconditionally declare their prototypes, for subsequent inline use.
1438 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
1439 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
1440 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
1441 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
1442 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
1443 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
1444 represent a compilable token.
1446 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
1447 _get_output_format; consult __mingw_output_format_flag directly.
1449 * ofmt_stub.s: No longer required; delete it.
1451 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
1452 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
1453 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
1454 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
1455 all are compiled from ofmt.c
1457 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1459 Do some more essential build tree clean up.
1461 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
1462 in the way of a successful rebuild from clean.
1464 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1466 Implement wrappers for emulation of POSIX dlfcn API.
1468 * include/dlfcn.h: New file; it declares the API.
1469 * mingwex/dlfcn.c: New file; implement it, with access via...
1470 (__mingw_dlfcn): ...this publicly addressable vector table.
1472 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1473 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1474 (__LIBIMPL__): ...this automatic interface generator; implement it.
1475 (libstub_refnames): New macro; it is adapted from and replaces...
1476 (jmpstub_refs): ...this; when it is then invoked twice to build...
1477 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1478 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1479 (libimpl_awk_script): New inline script; it handles automated builds
1480 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1481 (libimpl_sed_script): New inline script; it prepares intermediate C
1482 source code for LIBIMPL interfaces, as required to satisfy these...
1483 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1484 (LIBIMPL_CFLAGS): New macro; define it.
1486 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1488 Move libgen functions to __mingw_ pseudo-namespace.
1490 * mingwex/dirname.c (dirname): Rename function, as implemented...
1491 (__mingwex_dirname): ...to this.
1493 * mingwex/basename.c (basename): Rename function, as implemented...
1494 (__mingwex_basename): ...to this.
1496 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1497 prototypes, matching and augmenting original declarations for...
1498 (dirname, basename): ...these; reimplement as inline aliases, with
1499 __JMPSTUB__ references to the renamed implementation entry points.
1501 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1503 Implement new command line argument globbing strategy.
1505 * include/_mingw.h: Backport feature defines from master...
1506 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1507 constants; define them. They select the preferred globbing algorithm.
1508 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1509 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1510 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1511 they enable optional additional features supported by this algorithm.
1512 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1514 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1516 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1517 * setargv.c: ...new file; it implements the initialization mechanism
1518 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1519 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1520 it invokes the algorithm via an API similar to that described by MSDN,
1521 while continuing to support our original _CRT_glob interpretation.
1522 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1523 algorithm, via the MSDN-alike API, by calling back to...
1525 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1526 relocated to here, as a publicly addressable function; formerly...
1527 (__mingw_CRTStartup): ...called directly from here, we now redirect
1528 the call through _setargv(), whence it may be called indirectly.
1530 * init.c: Redundant file; delete it. It originally provided...
1531 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1532 original static attribute removed, to allow global addressing.
1534 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1536 Backport glob implementation from master to legacy.
1538 * include/glob.h: New file; copy it from master branch.
1539 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1540 (glob, globfree): ...each of these, respectively.
1542 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1543 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1544 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1545 (accept_glob_nocheck_match): New static function; it adds support for
1546 avoidance of globbing on patterns with no globbing token, so avoiding
1547 the case transliteration effect reported as MinGW-Bug #2106.
1548 (glob_match): Use it.
1550 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1552 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1554 Implement conventionally named dirent function trampolines.
1556 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1557 which redirects a conventionally named function call to its __mingw_
1558 pseudo-namespace implementation.
1560 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1561 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1562 appropriate protocol for compiling *.sx files, (supported natively by
1563 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1565 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1566 yet provide it, so we define it ourselves; deploy it for *.sx files.
1567 (Makefile.stub): New sinclude file; create it dynamically, using...
1568 (jmpstub_awk_script): ...this new inline script, which is based on...
1569 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1570 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1571 (mostlyclean-local): Remove Makefile.stub; do likewise...
1572 (Makefile): ...when remaking this, to ensure that both will be
1575 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1577 Make dirent implementation namespace and time_t clean.
1579 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1580 macros; define them. They facilitate identification of symbols which
1581 must be compiled with `extern "C"' binding, when compiling C++ code.
1582 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1583 (_CRTALIAS): ...this, which is to be considered as deprecated.
1584 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1585 __CRT_ALIAS build hints, while remaining transparent to GCC.
1586 (UNICODE, _UNICODE) [user defined]: Define consistently.
1588 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1589 4.0-dev branch, with additional ABI changes to improve stability).
1590 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1591 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1592 Add `__mingw_' prefix to all publicly exposed symbol names.
1593 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1594 implemented functions; they replace Microsoft's ambiguously defined
1595 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1596 resulting from the ambiguous size of Microsoft's time_t.
1598 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1599 removing unnecessary time_t and file size fields; (our replacements
1600 for _findfirst, and _findnext do not require them to be present).
1601 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1602 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1603 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1604 Adjust prototypes, making them inline aliases for public symbols which
1605 are now qualified by the `__mingw_' prefix; add build hints to support
1606 compilation of addressable stubs, with the original symbol names.
1607 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1608 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1609 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1610 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1611 New macros; define them. (These show availability of optional fields
1612 within the dirent struct, which client code may wish to access).
1614 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1616 Correct improper naming of assembly language source files.
1618 * mingwex/math/*.S: Rename all files with this extension...
1619 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1620 not extended `assembler-with-cpp' as implied by the former extension);
1621 adjust all internal `.file <name>' references accordingly.
1623 * Makefile.in (vpath %.S): Adjust reference to locate files....
1624 (vpath %.s): ...now renamed thus.
1626 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1628 Streamline the build system infrastructure.
1630 * configure.ac: New file; it replaces...
1631 * configure.in: ...this; (name is obsolete); delete it.
1633 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1634 make invocations, when processing subdirectories, and add automatic
1635 dependency tracking for all generated files.
1637 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1639 * mingwex/Makefile.in: No longer required; delete it.
1640 * profile/Makefile.in: Likewise.
1642 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1643 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1645 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1646 longer relevant, and I have no desire to maintain it.
1648 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1650 Add another more rigorous __STRICT_ANSI__ filter.
1652 * include/limits.h [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
1653 * include/sys/param.h [PATH_MAX defined] (MAXPATHLEN): Alias it.
1654 [PATH_MAX not defined] (MAXPATHLEN): Define it directly.
1656 2012-08-02 Ivan Maidanski <ivmai@users.sourceforge.net>
1658 Add missing function prototypes per issue [#1305].
1660 * include/process.h [#ifndef _WPROCESS_DEFINED]
1661 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve)
1662 (_wexecvp, _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe)
1663 (_wspawnv, _wspawnve, _wspawnvp, _wspawnvpe): Declare them.
1665 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1667 Add function prototype declarations per issue [#1293].
1669 * include/stdio.h (_lock_file, _unlock_file): Declare them.
1671 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1673 Apply some more rigorous __STRICT_ANSI__ filtering.
1675 * include/stdio.h (_getws, _putws, _wfdopen, _wfopen)
1676 (_wfreopen, _wfsopen, _wtmpnam, _wtempnam, _wrename, _wremove)
1677 (_wperror, _wpopen): Do not declare these functions unless...
1678 [#ifndef __STRICT_ANSI__]: ...this is satisfied.
1680 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1682 Add string to 64-bit integer conversion function prototypes.
1684 * include/stdlib.h (_strtoi64, _strtoi64_l, _strtoui64, _strtoui64_l)
1685 (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l): Declare them.
1686 * include/wchar.h (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l):
1687 Likewise; these are duplicates of the <stdlib.h> declarations.
1689 2012-08-01 Earnie Boyd <earnie@users.sourceforge.net>
1691 Update for _WIN64 exception handler readiness.
1693 * include/excpt.h [_WIN64] (__try1, __except1): Add alternative inline
1694 assembly code implementation, based on X86-64 architecture.
1696 2012-07-30 Earnie Boyd <earnie@users.sourceforge.net>
1698 Correct missing inclusion of <_mingw.h>.
1700 * include/stdint.h: Add omitted #include; all mingwrt headers are
1701 expected to include this; it is required to define __int64.
1703 2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>
1705 Correct prototypes for _wfindfirst()/_wfindnext() function family.
1707 * include/io.h (_wfindfirst, _wfindfirst32, _wfindfirsti64)
1708 (_wfindfirst32i64, _wfindfirst64i32): Return type changed to intptr_t.
1709 (_wfindnext, _wfindnext32, _wfindnexti64, _wfindnext32i64)
1710 (_wfindnext64i32, _wfindnext64): Type of parameter #1 must match.
1712 2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
1714 Avoid potential GCC "missing function prototype" warnings.
1716 * include/stdio.h (getc, putc, getchar, putchar, fopen64)
1717 (ftello64): Provide a function prototype declaration for each of
1718 these, prior to the corresponding inline implementation.
1720 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1722 * include/_mingw.h: Increment version to 3.20.
1724 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1726 * tlsmthread.c: Update to reflect changes in tlssup.c.
1727 * tlssup.c: code clean-up.
1729 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1731 * include/_mingw.h: Increment version to 3.19.
1733 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1735 * include/float.h: Modify guard to accomodate CLang.
1737 Thanks to Ruben Van Boxem for the report.
1739 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1741 * tlssup.c: Remove mingwm10.dll fallback.
1743 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1745 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1747 Thanks to bvassche for the report.
1749 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1751 Correct checking for short option matches in getopt_long_only().
1753 * mingwex/getopt.c (getopt_verify): New static inline function.
1754 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1755 possible short option match after failing to match, or ambiguously
1756 matching as a long option.
1758 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1760 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1762 Thanks to cgf for the report.
1764 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1766 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1767 compiles with __STRICT_ANSI__.
1769 Thanks to Felipe Contreras for the report.
1771 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1773 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1776 Thanks to Tobias Burnus for the report.
1778 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1780 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1781 by wrapping the functions in brackets.
1783 Thanks to Kai Tietz for the report.
1785 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1787 * Makefile.in: Add support for msvcr100.dll.
1788 * msvcrt.def.in: Ditto.
1790 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1792 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1793 not always available, go the long way and use the explicit named union
1794 members, which are also declared in winnt.h.
1796 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1798 * mingwex/isblank.c: Fix typo in declaration.
1800 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1802 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1803 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1804 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1805 is included before <ctype.h>.
1807 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1809 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1811 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1813 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1815 Correct hexadecimal formatting of double and long double values.
1817 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1818 (__pformat) [A format]: Cast double values to long double, and use...
1819 (__pformat_xldouble): ...this instead, with corrected adjustment of
1820 exponent and alignment of mantissa, when formatting subnormals.
1822 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1824 * include/dirent.h (dd_handle): Define as intptr_t.
1826 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1828 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1831 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1833 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1834 semantically identical MAX_PATH; correct value is 260.
1836 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1838 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1839 system include search path; (issue reported by Mark Brand).
1841 * include/float.h: Add multiple inclusion guard around...
1842 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1843 only when this define does not indicate that it has already been seen;
1844 update comments to document rationale; move it within the scope of...
1845 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1846 GCC's float.h, after an appropriate complementary modification, need
1847 not perform a further include path search when this implementation
1848 specific extension has already been processed.
1850 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1852 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1853 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1854 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1855 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1856 _findnexti64): Correct definition.
1858 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1860 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1862 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1864 * include/_mingw.h: Increment version to 3.18.
1866 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1868 * include/stdio.h: (_vscprintf, _vscwprintf)
1869 * include/tchar.h: (_vsctprintf)
1871 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1873 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1874 (initial implementation)
1876 * new type: __time32_t
1878 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1879 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1880 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1882 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1883 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1884 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1885 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1886 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1887 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1888 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1889 _wstat32i64, _wstat64i32,_wutime32
1891 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1892 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1893 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1894 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1895 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1897 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1899 Implement TLS Callback.
1901 * tlsmcrt.c: New file.
1902 * tlsmthread.c: Ditto.
1905 * Makefile.in: Include new files.
1906 * crt1.c: Implement TLS Callback.
1908 * mthr_stub.c: Remove.
1910 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1912 * include/_mingw.h: Increment version to 3.17.
1914 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1916 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1917 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1919 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1921 * include/io.h (_open_osfhandle): Correct definition.
1923 Thanks to Alexander Shaduri for the information.
1925 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1927 Final sync of pseudo-reloc.c with mingw64 and cygwin
1928 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1929 regarding error messages.
1931 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1933 Honor DESTDIR for winsup/mingw and winsup/w32api.
1934 Detect and report error if installation paths are win32
1935 format, but DESTDIR is non-empty.
1937 * Makefile.in (DESTDIR): Honor per convention.
1938 (need-DESTDIR-compatibility): New macro; define it and a
1940 (fail-DESTDIR-compatibility): New dependency goal.
1941 (install-dirs): Require need-DESTDIR-compatibility.
1942 * mingwex/Makefile.in (DESTDIR): Honor per convention.
1943 (need-DESTDIR-compatibility): New macro; define it and a
1945 (fail-DESTDIR-compatibility): New dependency goal.
1946 (install): Require need-DESTDIR-compatibility.
1947 * profile/Makefile.in: Ditto.
1949 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1951 Sync pseudo-reloc.c with mingw64
1952 * psuedo-reloc.c: Remove unnecessary includes.
1953 Forward declare _pei386_runtime_relocator.
1954 Decorate _image_base__ symbol with macro for
1955 mingw64 compatibility. Whitespace changes.
1956 (__print_reloc_error): Renamed to...
1957 (__report_error): This. "Returns" void, and
1958 always aborts. Now used on all platforms.
1959 (__write_memory): Remove special case error handling
1960 for different platforms - always call __report_error.
1961 (do_pseudo_reloc): Remove special case error handling
1962 for different platforms - always call __report_error.
1963 (_pei386_runtime_relocator): Decorate _image_base__
1964 symbol with mingw64 compatibility macro.
1966 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1968 Sync pseudo-reloc.c with cygwin/lib/
1969 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1970 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1971 for fatal error handling that is consistent with cygwin process
1972 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1973 is unique to each address space, across fork().
1974 [CYGWIN] (__print_reloc_error): New function for reporting
1975 errors in a manner supported by cygwin at this early stage of
1976 the process life-cycle.
1977 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1978 performed only once for each address space, but are repeated
1979 after fork() in the new address space.
1980 [MINGW] (__write_memory): Ensure that b is always initialized
1981 by call to VirtualQuery, even if -DNDEBUG.
1983 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1985 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1986 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1988 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1989 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1990 specified format qualifiers, except in special case...
1991 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1992 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1993 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1996 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1998 Avoid multiple link time definitions of _printf() for C++;
1999 (problem reported by Alexander Shaduri, via MinGW-users ML).
2001 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
2002 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
2004 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2006 * include/_mingw.h: Increment version to 3.16.
2008 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2010 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
2011 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
2012 __fp_unordered_compare): Add prototypes.
2013 * include/stdio.h (vsnwprintf): Add prototype.
2014 * include/wchar.h (vsnwprintf): Add prototype.
2015 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
2016 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
2018 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2020 Correct disposition of wchar_t output in printf().
2022 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
2023 (argval): ...this, in inner scope, with singular type `wchar_t'; use
2024 it to pass one wchar to __pformat_wputchars(), for output.
2026 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2028 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
2030 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2032 Convert to monolithic configuration procedure.
2034 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
2035 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
2036 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
2037 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
2038 (CRT0S): Relocate from `profile'; define it as appropriate.
2039 (LIBM_A): Define and AC_SUBST it unconditionally.
2040 (AC_CONFIG_SUBDIRS): Remove; none to configure.
2041 (AC_OUTPUT_FILES): Add `Makefile' for each of...
2042 (mingwex, profile): ...these subdirectories.
2044 * configure: Regenerated.
2046 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
2047 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
2048 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
2049 (SUBDIRS): Define explicitly, to run recursive `make' in...
2050 (mingwex, profile): ...these; simplify build commands...
2051 (rootme, rootsrc): ...without these shell variables.
2052 (all, subdirs): Delete redundant build commands.
2053 (FIXME): Flag various issues for follow up.
2055 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
2056 (top_srcdir): ...this new macro; let AC_SUBST define it.
2057 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2058 (Makefile): Make it depend on...
2059 (top_builddir/config.status): ...this, itself depending on...
2060 (top_srcdir/configure): ...this.
2061 (FIXME): Flag various issues for follow up.
2063 * mingwex/aclocal.m4: File no longer required; delete it.
2064 * mingwex/configure mingwex/configure.in: Likewise.
2066 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
2067 (top_srcdir): ...this new macro; let AC_SUBST define it.
2068 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2069 (Makefile): Make it depend on...
2070 (top_builddir/config.status): ...this, itself depending on...
2071 (top_srcdir/configure): ...this.
2072 (FIXME): Flag various issues for follow up.
2074 * profile/aclocal.m4: File no longer required; delete it.
2075 * profile/configure profile/configure.in: Likewise.
2077 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2079 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
2080 to complaints that it causes issues.
2082 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
2084 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
2086 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2088 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
2089 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
2090 to all inline functions.
2092 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2094 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
2095 * CRT_fp10.c: Ditto.
2097 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2099 * cpu_features.c: replace gcc-specific construct with portable alternative
2100 and match the code a few lines above.
2101 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
2103 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2105 * include/_mingw.h: Changes required for PCC compiler.
2107 2009-07-18 Jeff Lu <jll544@yahoo.com>
2109 * mingwex/usleep.c: round up to next ms
2111 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2113 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
2114 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
2115 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
2116 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
2118 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2120 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
2122 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
2124 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
2125 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
2126 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
2127 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
2128 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
2129 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
2130 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
2131 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
2132 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
2133 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
2134 sources as of Apr. 20, 2009. Update further to match the sources in
2135 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
2136 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
2137 double/ulong union from U to dbl_union for better grepping and white-
2140 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2142 * include/stdlib.h (_wtof): Define.
2144 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
2146 * include/stdint.h (int_fast8_t): Specify as signed char.
2147 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
2148 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
2150 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
2152 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
2154 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2156 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
2157 (Requested by Robert Riebisch)
2159 * mingwex/getopt.c (getopt_parse): Track external increments of...
2160 (optind): ...this global variable.
2162 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2164 * include/_mingw.h: Increment version to 3.15.2.
2166 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2168 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
2169 Also add tentative support for BSD specific `optreset' feature.
2171 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
2172 (__mingw_optreset): ...this new global variable.
2174 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
2175 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
2178 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2180 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
2181 Correct mishandling of invalid characters in printf() format specs.
2183 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
2184 (backtrack): ...this new automatic variable, at start of each format
2185 conversion specification substring; use it to backtrack, and print the
2186 substring literally, if any invalid character is encountered.
2188 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
2190 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
2191 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
2192 ___unguarded_readlc_active_add_func, __crtCompareStringW,
2193 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
2194 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
2195 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
2196 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
2197 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
2198 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
2199 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
2200 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
2201 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
2202 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
2203 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
2205 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
2207 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
2209 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2211 Correct some binary distribution packaging defects.
2213 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
2214 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
2215 intermediate goals; they make packages of files, as specified by...
2216 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
2217 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
2219 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2221 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
2222 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
2224 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
2225 of radix point conditional on precision != 0 or `#' flag specified.
2227 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2229 Fix MinGW-Bug [2160227]
2230 Eliminate conflicting declarations and implementations of scalb().
2232 * moldname.def.in (scalb): Comment out of EXPORTS list.
2233 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
2234 with GCC's built-in declaration.
2236 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
2238 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
2240 * mingwex/Makefile.in: Ditto.
2241 * profile/Makefile.in: Ditto.
2242 * configure.in: Record mingw front-end for building under Cygwin.
2243 * mingwex/configure.in: Ditto.
2244 * profile/configure.in: Ditto.
2245 * configure: Regenerate.
2246 * mingwex/configure: Ditto.
2247 * profile/configure: Ditto.
2249 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2251 Use de-facto standard Makefile goals to invoke test suite.
2253 * Makefile.in: Some minor formatting adjustments.
2254 (test_headers): Unconventionally named goal renamed to...
2255 (check-headers): ...this; make it a prerequisite of...
2256 (check): ...this new conventionally named goal.
2258 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2260 Make strtod() inline definition C89 compliant.
2261 (Issue reported by Ilya Shestopalov and Ian Puleston)
2262 (Correction identified by Danny Smith)
2264 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
2265 reformat inline function definition.
2267 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2269 * include/_mingw.h: Increment version to 3.15.1 and introduce
2270 __MINGW32_PATCHLEVEL variable.
2272 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2274 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
2275 (Reported by Christian Franke)
2277 * mingwex/getopt.c (optind): Make global variable value conform to
2278 behaviour specified by POSIX; do not use it for internal state in...
2279 (getopt_parse): ...this static function; use...
2280 (optbase): ...this new static local variable instead.
2281 (getopt_resolved): Update `optind' as required.
2283 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2285 Improve package identification in configure script.
2287 * configure.ac (AC_INIT): Redefine parameters...
2288 (PACKAGE_NAME): Set to `MinGW Runtime'.
2289 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
2290 (PACKAGE_TARNAME): Set to `mingwrt'.
2291 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
2292 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
2293 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
2295 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
2296 (PACKAGE_TARNAME): ...this.
2298 * configure: Regenerated.
2300 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2302 Fix MinGW-Bug [2125708].
2303 (Reported by Alexandr Zamaraev).
2305 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
2306 not wanted here; remove it; replace it by...
2307 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
2308 (_invalid_parameter_handler): ...this function typedef.
2310 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
2312 * Makefile.in: Don't include host_os as part of snapshot filename.
2314 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2316 Fix MinGW-Bug [2119504].
2317 (Reported by Peiyuan Song).
2319 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
2320 (*retindex): ...this already correctly assigned return variable...
2321 (opt[index].val): ...with this; this should have been assigned to...
2322 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
2324 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2326 Fix MinGW-Bug [2117379].
2327 (Reported by Peiyuan Song).
2329 * include/stdio.h (__argv): Replace all references in function
2330 prototype argument lists and inline function local variables, with ...
2331 (__local_argv): ...this, to avoid potential conflict with ...
2332 * include/stdlib (__argv): ...this #defined macro.
2334 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2336 * include/_mingw.h: Increment version to 3.15.
2338 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2340 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
2341 naming standard for Cygwin.
2343 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2345 Reimplement getopt.c to add getopt_long_only() function.
2347 (N.B. this reimplementation removes support for BSD/Mac-OS-X
2348 `optreset' nonsense; user code should set `optind = 0' instead,
2349 to reinitialise option scanning).
2351 * mingwex/getopt.c: Delete all content; reimplement it.
2352 * include/getopt.h: Likewise.
2354 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
2355 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
2357 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2359 Implement conditional replacement for printf() family functions.
2361 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
2362 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
2363 flag for use in user specified __MINGW_FEATURES__ attribute.
2364 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
2365 currently unused: reserved as components of...
2366 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
2367 a __MINGW_FEATURES__ enhancement to setlocale().
2369 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
2370 (__mingw_fprintf, __mingw_vfprintf): Likewise.
2371 (__mingw_sprintf, __mingw_vsprintf): Likewise.
2372 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
2373 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
2374 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
2375 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
2376 usage; link to DLL import stub, importing from MSVCRT.
2377 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2378 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2379 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
2380 locally defined static stub implementation.
2381 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2382 __mingw_fprintf and __mingw_sprintf respectively.
2383 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
2384 static inline implementation for C++ and GNU C, or locally defined
2385 static stub otherwise.
2386 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2387 __mingw_vfprintf and __mingw_vsprintf respectively.
2389 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2391 Avoid access violations, passing NULL to printf( "...%s..." );
2392 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
2394 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
2395 for argument value, if caller passes a NULL pointer.
2396 (__pformat_wcputs): Likewise, substitute L"(null)".
2398 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2400 Add missing dependencies for building libmingwex.a.
2402 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
2403 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
2404 (pformat.h): ...this.
2406 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2408 Add replacements for remaining members of printf() family.
2410 * mingwex/stdio/printf.c: New file.
2411 * mingwex/stdio/fprintf.c: New file.
2412 * mingwex/stdio/sprintf.c: New file.
2413 * mingwex/stdio/vprintf.c: New file.
2414 * mingwex/stdio/vfprintf.c: New file.
2415 * mingwex/stdio/vsprintf.c: New file.
2417 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2418 (STDIO_OBJS): Add their corresponding object files.
2420 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2422 Replace __mingw_snprintf() with new generic family implementation;
2423 likewise, replace __mingw_vsnprintf().
2425 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
2426 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
2427 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2428 (GDTOA_DISTFILES): Remove mingw_snprintf.c
2429 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
2430 (GDTOA_OBJS): Remove mingw_snprintf.o
2431 (PFORMAT_CFLAGS): New macro; define it, as required by...
2432 (pformat.o): ...this new explicit build target.
2433 (snprintf.o, vsnprintf.o): Declare prerequisites.
2435 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
2437 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2439 Lay foundations for new printf() function family implementation.
2441 * ofmt_stub.s: New file; implement forward compatibility stub for...
2442 (_get_output_format): ...this MSVCR80.DLL and later function.
2444 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
2445 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
2446 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
2447 (lib%.a): Include ofmt_stub.o when import library does not already
2448 advertise availability of the _get_output_format() function;
2449 Add alias stubs for MINGW_REPL_FUNCS, such that...
2450 (__msvcrt_printf): ...is an alias for Microsoft's printf().
2451 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
2452 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
2453 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
2454 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
2455 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
2456 (clean): Add msvcr*.def.
2458 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
2459 * configure: Regenerated.
2461 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2463 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
2464 (_imp____mb_cur_max_dll): Likewise.
2466 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
2468 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
2469 * include/wchar.h (swprintf, vswprintf): Likewise.
2471 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2473 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
2474 (_get_output_format, _set_output_format): Add references.
2476 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
2477 (_get_output_format, _set_output_format): Declare prototypes.
2478 (_TWO_DIGIT_EXPONENT): Define.
2479 Some other minor formatting adjustments.
2481 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2483 [mingw-Bugs-1801641]
2484 * include/wchar.h (_wfdopen): Const-ify second arg.
2485 * include/stdio.h (_wfdopen): Likewise.
2486 Thanks to <tdragon at users dot sourceforge net>
2488 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2490 Avoid precision errors in round(), lround() and llround() functions.
2492 * mingwex/math/round_generic.c: New file; it replaces...
2493 * mingwex/math/round.c: ...this; delete it.
2494 * mingwex/math/roundf.c: ...and this; ditto.
2495 * mingwex/math/roundl.c: ...and this; ditto.
2497 * mingwex/math/lround_generic.c: New file; it replaces...
2498 * mingwex/math/lround.c: ...this; delete it.
2499 * mingwex/math/lroundf.c: ...and this; ditto.
2500 * mingwex/math/lroundl.c: ...and this; ditto.
2501 * mingwex/math/llround.c: ...and this; ditto.
2502 * mingwex/math/llroundf.c: ...and this; ditto.
2503 * mingwex/math/llroundl.c: ...and this; ditto.
2505 * mingwex/math/round_internal.h: New file; it provides generic common
2506 code, which is shared by `round_generic.c' and `lround_generic.c'; the
2507 implementation is based on techniques suggested by Danny Smith and
2510 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
2511 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
2512 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
2513 `round_generic.c' and `lround_generic.c'.
2514 (MATH_OBJS): Factor out files listed in...
2515 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
2516 macros; define them; specify dependencies and build rules; add to...
2517 (LIB_OBJS): ...this list.
2519 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
2521 [ mingw-Bugs-1961893 ]
2522 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
2523 mode to 2 for E format.
2525 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
2527 * include/stdlib.h: Fix strtod under C++.
2529 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
2531 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
2532 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
2534 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
2536 * include/sys/types.h (useconds_t): typedef.
2537 * include/unistd.h (usleep): Add prototype.
2538 * mingwex/usleep.c: New file.
2539 * mingwex/makefile.in: Add usleep source and object.
2541 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2543 Make strtod() conform to C99.
2545 * include/stdlib.h (strtod): Declare this mingwex function, and...
2546 (_strtod): rename this MSVCRT counterpart.
2548 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2550 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2552 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2554 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2556 * include/process.h: Include stdint.h for intptr_t definition.
2557 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2558 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2559 _spawnvpe): Return intptr_t.
2560 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2561 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2563 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2565 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2566 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2567 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2568 _wspawnvp, _wspawnvpe): Return intptr_t.
2570 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2572 * include/wchar.h (fwide): Return success code rather than failure in inline
2574 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2575 code rather than failure.
2577 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2579 * include/math.h (float_t, double_t): Define.
2581 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2583 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2584 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2585 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2587 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2589 * include/complex.h: Don't condition contents on C99 or not
2592 2008-02-01 Brian Dessent <brian@dessent.net>
2594 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2595 the different runtime versions.
2597 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2599 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2600 (mbsinit): Likewise.
2602 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2604 * include/_mingw.h: Increment version to 3.14.
2606 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2608 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
2609 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
2610 * mingwex/math/log10f.S: Correct issue with comments.
2611 * mingwex/math/log10l.S: Ditto.
2612 * mingwex/math/log1p.S: Ditto.
2613 * mingwex/math/log1pf.S: Ditto.
2614 * mingwex/math/log1pl.S: Ditto.
2615 * mingwex/math/log2.S: Ditto.
2616 * mingwex/math/log2f.S: Ditto.
2617 * mingwex/math/log2l.S: Ditto.
2618 * mingwex/math/logf.S: Ditto.
2619 * mingwex/math/logl.S: Ditto.
2621 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
2623 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
2625 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
2627 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
2628 from '_fsize_t' to '__int64' to be consistent with the other ...64
2629 structures and the value set there is 8 bytes not 4. Add guard for both
2630 as the are only used by functions available from 6.1 on.
2632 * include/malloc.h (_HEAP_MAXREQ): Define.
2633 (_aligned_offset_recalloc): Define.
2634 (_aligned_recalloc()): Define.
2636 * include/math.h: fixed a typo in a comment.
2637 (atanhf): Fixed declaration.
2639 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
2640 to '__int64' to be consistent with the other ...64 structures and the value
2641 set there is 8 bytes not 4. Added guard as this function is only used by
2642 functions available from 6.1 on.
2644 * include/sys/stat.h: some members of 'stat' were declared with types with
2645 a prefixed underscore, while the ones without the underscore should have
2646 been used. Added guard to '__stat64' as it is only used by functions
2647 available from 6.1 on. Added the wide character versions of the
2648 exec()/spawn() family for completion
2649 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
2652 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
2653 from 'long' to 'time_t'
2654 (__timeb64): moved declaration of structure directly before the declaration
2655 of the function '_ftime64()', so it is guarded as well
2657 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
2658 before the declaration of the functions using it, so it is guarded as well
2660 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
2662 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
2663 case. Add missing break in 's'/LEN_S case.
2665 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2667 Make snprintf() and vsnprintf() conform to C99.
2669 * include/stdio.h: Add note about incompatibility between...
2670 (snprintf, vsnprintf): These two mingwex functions, and...
2671 (_snprintf, _vsnprintf): these MSVCRT counterparts.
2673 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
2674 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
2676 * mingwex/stdio/snprintf.c: Delete.
2677 * mingwex/stdio/vsnprintf.c: Delete.
2679 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
2680 (vsnprintf): Alias to __mingw_vsnprintf.
2682 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2684 * include/_mingw.h: Increment version to 3.13.
2685 * Makefile.in: Reset CYGRELEASE to 1
2687 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2689 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
2690 resulting from incomplete removal of enclosing `for ...; do ...; done'
2691 loop from compound command; (reported by Greg Chicares).
2693 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2695 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2698 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2700 [mingw-Bugs-1734142]
2701 * include/wchar.h (_wsystem) Declare.
2703 (_wgetenv): Declare.
2704 (_wsearchenv): Declare.
2705 (_wmakepath): Declare.
2706 (_wsplitpath): Declare.
2707 (_wfullpath): Declare.
2708 * include/stdlib.h (_wsystem) Declare.
2709 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
2710 _wfullpath): Move into _WSTDLIB_DEFINED guard.
2711 * include/tchar.h (_tsystem): New UNICODE mapping define.
2713 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
2715 * mingwex/gdtoa/mingw_snprintf.c: New file.
2716 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
2717 (GDTOA_OBJS): Add mingw_snprintf.o.
2719 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
2721 * msvcrt.def.in: Update comment.
2722 Exclude _ctype stub if using msvcr71.dll or newer.
2723 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
2724 * include/wctype.h: Likewise.
2726 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2728 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
2729 *include/dirent.h: Likewise.
2731 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2733 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
2734 * include/conio.h: Likewise.
2735 * include/ctype.h: Likewise.
2736 * include/direct.h: Likewise.
2737 * include/dos.h: Likewise.
2738 * include/errno.h: Likewise.
2739 * include/fenv.h: Likewise.
2740 * include/float.h: Likewise.
2741 * include/inttypes.h: Likewise.
2742 * include/io.h: Likewise.
2743 * include/libgen.h: Likewise.
2744 * include/locale.h: Likewise.
2745 * include/malloc.h: Likewise.
2746 * include/mbctype.h: Likewise.
2747 * include/mbstring.h: Likewise.
2748 * include/process.h: Likewise.
2749 * include/search.h: Likewise.
2750 * include/setjmp.h: Likewise.
2751 * include/signal.h: Likewise.
2752 * include/stdio.h: Likewise.
2753 * include/stdlib.h: Likewise.
2754 * include/string.h: Likewise.
2755 * include/time.h: Likewise.
2756 * include/wchar.h: Likewise.
2757 * include/sys/stat.h: Likewise.
2758 * include/sys/time.h: Likewise.
2759 * include/sys/timeb.h: Likewise.
2760 * include/sys/utime.h: Likewise.
2762 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2764 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2766 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2768 Add POSIX binary tree search API.
2770 * mingwex/tfind.c: New file.
2771 * mingwex/tdelete.c: New file.
2772 * mingwex/tsearch.c: New file.
2773 * mingwex/twalk.c: New file.
2774 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2775 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2776 * include/search.h (tfind): Declare.
2783 (node_t): Define, on condition of _SEARCH_PRIVATE.
2785 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2787 * include/_mingw.h (__MINGW_NOTHROW): Define.
2789 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2791 * include/stdio.h (vsnprintf): Remove inline definition.
2794 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2796 * CRTfmode.c: Nit-pick comment fix.
2798 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2800 * CRTfmode.c: Fix nested comment.
2802 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2804 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2806 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2808 * include/io.h (lseek64) : Add prototype.
2810 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2812 * include/string.h (strcasecmp): Add prototype.
2813 (strncasecmp): Add prototype.
2815 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2817 * Makefile.in (CRT0S): Revert last change.
2818 * CRTfmode.c. Correct comment.
2820 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2822 * Makefile.in (CRT0S): Add back CRTfmode.o.
2824 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2826 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2827 * include/io.h: Likewise.
2829 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2831 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2833 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2835 * include/stdint.h (intptr_t): Fix typo.
2836 Thanks to Charles Wilson for report.
2838 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2840 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2841 Condition on _WIN64.
2842 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2843 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2844 (PTRDIFF_MIN): Define as INTPTR_MIN.
2845 (PTRDIFF_MAX): Define as INTPTR_MAX.
2846 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2847 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2849 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2851 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2852 Cygwin man page location.
2854 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2856 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2857 support Cygwin man page location.
2859 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2861 * Include/_mingw.h: Increment version to 3.12.
2863 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2865 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2867 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2869 * Makefile.in: Tweak srcdist to fix build issue.
2871 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2873 Add --enable-mingw-manpage-transform configure option.
2875 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2876 * configure.in, Makefile.in: Use it.
2877 * configure: Regenerated.
2879 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2881 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2883 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2885 Add manpages for dirname and basename functions.
2887 * man: New directory.
2888 * man/dirname.man: New file; it sources both manpages.
2889 * Makefile.in: Add provisional rules to distribute them.
2891 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2893 * mingwex/basename.c: Make it work with path names containing
2894 multibyte character strings.
2895 * mingwex/dirname.c: Likewise.
2897 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2899 * include/io.h (__mingw_access): New static inline wrapper to restore
2900 pre-Vista 'access (fname, X_OK)' behaviour.
2901 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2903 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2905 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2907 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2909 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2911 * include/stdio.h (_unlink, unlink): Add prototypes.
2913 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2915 * include/excpt.h: Replace "_try1" in comments with "__try1".
2917 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2919 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2920 (ALL_CXXFLAGS): Likewise.
2921 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2922 (ALL_CXXFLAGS): Likewise.
2923 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2924 (ALL_CXXFLAGS): Likewise.
2926 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2928 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2930 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2932 Expose some more msvcr80.dll functions.
2933 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2934 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2935 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2936 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2938 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2940 Expose some msvcr80.dll functions.
2941 * include/stdlib.h (_set_abort_behavior): Add prototype.
2942 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2943 _set_abort_behavior mask argument.
2944 (_invalid_parameter_handler): Add typedef.
2945 (_set_invalid_parameter_handler): Add prototype.
2946 * include/stdio.h (_get_printf_count_output): Add prototype.
2947 (_set_printf_count_output): Add prototype.
2948 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2949 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2951 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2953 * include/_mingw.h (CRT_INLINE): Correct typo.
2955 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2957 * include/io.h (X_OK): Define to F_OK.
2959 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2961 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2962 unconditionally. Change comment.
2963 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2965 * include/io.h (rename): Declare.
2968 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2970 * include/libgen.h: New file; required by...
2971 * mingwex/basename.c, mingwex/dirname.c: New files.
2972 * mingwex/Makefile.in (DISTFILES): Add them...
2973 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2974 (Dependencies): Typo; s/Dependancies/Dependencies/
2976 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2978 * Makefile.in (VERSION): Let configure define it.
2980 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2981 * configure.in: Use it.
2982 Correct quoting of autoconf macro arguments throughout.
2983 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2984 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2985 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2986 (AC_CONFIG_FILES): Add, to generate Makefile.
2988 * configure: Regenerated.
2990 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2992 * Makefile.in: Add aclocal.m4 to source release.
2993 * mingwex/Makefile.in: Ditto.
2994 * profile/Makefile.in: Ditto.
2996 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2998 * Include/_mingw.h: Increment version to 3.11.
2999 * Makefile.in: Ditto.
3001 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
3003 [ mingw-Bugs-1590623 ]
3004 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
3007 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
3009 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
3010 correctly parenthesized.
3012 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3014 * mingwex/mb_wc_common.h (get_codepage): Get it
3017 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3019 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
3021 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
3023 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
3026 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
3028 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
3031 2006-09-11 Christopher Faylor <cgf@timesys.com>
3033 * Makefile.in: Semi-revert 2006-08-30 change.
3035 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3037 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
3038 (__MINGW_IMPORT): Ansify.
3039 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
3040 __MINGW_ATTRIB_DEPRECATED.
3042 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3044 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
3045 Redundant macros; deleted.
3047 * configure.in (LIB_AC_PROG_CC): Replaced by...
3048 (AC_PROG_CC): ...this.
3050 * configure: Regenerated.
3052 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
3054 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
3055 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
3056 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
3058 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
3060 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
3061 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
3062 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
3063 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
3065 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
3066 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
3067 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
3068 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
3069 * mingwex/wcstold.c: Avoid using strtold internals.
3070 * mingwex/wcstof.c: Rewrite.
3071 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
3072 (GDTOA_OBJS): Add to library.
3073 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
3074 (STDLIB_OBJS): Remove.
3075 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
3076 (Q8_OBJS): Add wcstof.o wcstold.o.
3077 * include/stdlib.h (strtof): Remove inline definition.
3079 * include/wchar.h (wcstof): Remove inline definition.
3081 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
3083 * Makefile.in: Add with_cross_host to allow more granular checks.
3084 Set installation directories accordingly. Override CC setting only
3085 if building a Cygwin target.
3086 * aclocal.m4: Regenerate.
3087 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
3088 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
3089 Test AC_ALLOCA only if building on a native system.
3090 * configure: Regenerate.
3092 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3094 * include/ctype.h: Fix typo.
3096 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3098 * include/ctype.h: Expose iswblank if __cplusplus.
3099 * include/wctype.h: Expose iswblank if __cplusplus.
3101 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3103 * include/ctype.h: Remove stray ')';
3105 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3107 * include/ctype.h (_BLANK): Expand comment.
3108 (isblank): Add prototype and inline definition.
3109 (iswblank): Add prototype and inline definition.
3110 * include/wctype.h (iswblank): Add prototype and inline definition.
3111 * mingwex/isblank.c: New file.
3112 * mingwex/iswblank.c: New file.
3113 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
3115 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
3117 * include/math.h (__INFF,__INFL): Remove '#'.
3119 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3121 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
3123 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3125 Support SSE float environment in fenv.h functions.
3126 * cpu_features.c: New file.
3127 * cpu_features.h: New file.
3128 * crt1.c: Include "cpu_features.h".
3129 (__mingw_CRTStartup): Call cpu_features_init().
3130 * Makefile.in (MING_OBJS): Add cpu_features.c.
3131 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
3132 * include/fenv,h ( fenv_t;): Append __mxcsr field.
3133 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
3134 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
3135 (__MXCSR_ROUND_FLAG_SHIFT): New define.
3136 * mingwex/feclearexcept.c: Include "cpu_features.h".
3137 Handle SSE environment.
3138 * mingwex/fegetenv.c: Likewise.
3139 * mingwex/feholdexcept.c: Likewise.
3140 * mingwex/fesetenv.c: Likewise.
3141 * mingwex/fesetexceptflag.c: Likewise.
3142 * mingwex/fesetround.c: Likewise.
3143 * mingwex/fetestexcept.c: Likewise.
3144 * mingwex/feupdateenv.c: Likewise.
3145 * mingwex/fegetround.c: Add comment.
3147 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3149 * Include/_mingw.h: Increment version to 3.10.
3150 * Makefile.in: Ditto.
3152 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3154 * mingwex/math/tgamma.c (SQTPI): Add braces.
3156 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3158 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
3159 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
3161 * mingwex/math/sf_erf.c (erff): Initialize z.
3163 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
3165 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3167 * Include/_mingw.h: Increment version to 3.10.
3168 * Makefile.in: Ditto.
3170 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3172 * include/sys/time.h (struct timezone): Define.
3173 * include/time.h: Correct comment about timezone.
3175 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3177 * configure.in (AC_CONFIG_AUX_DIR): Remove.
3178 * configure: Regenerate.
3180 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
3182 * configure: add srcdir as a possible location for install-sh.
3184 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3186 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
3187 (_topendir): Use it.
3189 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3191 * include/sys/time.h: Add header guard. Add extern "C" bracketing
3193 (gettimeofday): Add prototype.
3194 * mingwex/gettimeofday.c: New file.
3195 * mingwex/makefile.in: Add gettimeofday source and object.
3197 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3199 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
3200 else global library variable.
3201 (HUGEVALF): Likewise.
3202 (HUGEVALL): Likewise.
3203 (INFINITY): Likewise.
3206 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3208 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
3210 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3212 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
3214 2006-05-24 Christopher Faylor <cgf@timesys.com>
3216 * configure.in: Update to newer autoconf.
3217 (thanks to Steve Ellcey)
3218 * mingwex/configure.in: Ditto.
3219 * profile/configure.in: Ditto.
3220 * configure: Regenerate.
3221 * mingwex/configure: Ditto.
3222 * profile/configure: Ditto.
3223 * aclocal.m4: New file.
3224 * mingwex/aclocal.m4: Ditto.
3225 * profile/aclocal.m4: Ditto.
3227 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
3229 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
3230 Use supplied codepage as arg to WideCharToMultiByte.
3232 2006-02-13 Earnie Boyd <earnie@users.sf.net>
3234 * Makefile.in (libmsvcr80.a): Add import lib.
3235 (libmsvcr80d.a): Ditto.
3237 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3239 * Makefile.in: Bump cygwin build number.
3241 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3243 * Include/_mingw.h: Increment version to 3.9.
3244 * Makefile.in: Ditto.
3246 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3248 * include/limits.h (SSIZE_MAX): Define.
3249 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
3251 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
3253 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
3254 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
3256 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3258 * include/stddef.h: Remove.
3259 * include/stdarg.h: Remove.
3261 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3263 * mingwex/complex/csqrt.c (csqrt): The sign of real part
3264 of result is positive when real part of arg == 0;
3265 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
3266 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
3268 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3270 * include/time.h (_time64): Correct prototype.
3272 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
3274 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
3275 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
3276 to non-stop. Use "fnclex" to clear exception flags.
3278 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3280 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
3281 Avoid raising FP exceptions.
3283 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3285 * include/stdlib.h (strtof): Add prototype. Uglify
3286 parameter names in inline definition.
3288 (_Exit): Uglify parameter names in inline definition.
3289 (llabs): Add prototype.
3290 (_set_error_mode): Add prototype and input defines.
3292 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3294 * mingwex/fe*.c: Revert previous changes.
3295 * include/fenv.h: Revert previous changes.
3297 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3299 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
3300 Do not return a value.
3301 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
3302 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
3303 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
3304 * mingwex/fegetenv.c (fegetenv): Likewise.
3305 * mingwex/fesetenv.c (fesetenv): Likewise.
3306 * mingwex/feupdateenv.c (feupdateenv): Likewise.
3307 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
3308 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
3311 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3313 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
3314 getting filelength for SEEK_END.
3316 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3318 * Include/_mingw.h: Increment version to 3.8.
3319 * Makefile.in: Ditto.
3321 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3323 * include/wctype.h (towupper, towlower): Change arg and return value
3325 * include/ctype.h (towupper, towlower): Likewise.
3327 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3329 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
3330 a diagnostic, guarded by #ifdef DEBUG.
3331 (__mingwthr_remove_key_dtor): Likewise.
3333 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
3335 * moldname.def.in (sleep, beep, seterrormode): Remove.
3337 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3339 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
3340 (_MCOUNT_DECL): Use it.
3341 (MCOUNT): Save and restore eax, ecx, edx registers.
3342 * profile/mcount.c (_mcount): ANSI-fy.
3344 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3346 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
3347 guard __MINGW_ATTRIB macro definitions.
3348 * include/math.h (logb[fl]): Don't define inlines for
3349 GCC-4.0+ && __FAST_MATH__.
3350 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
3351 line-continuation backslashes.
3353 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
3355 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
3356 in GNUC version guard.
3358 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
3360 * crt1.c (_gnu_exception_handler): Handle illegal instruction
3361 OS exception as a signal if user has defined a SIGILL handler.
3363 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
3365 * mingwex/math/nexttoward.c: New file.
3366 * mingwex/math/nexttowardf.c: New file.
3367 * mingwex/math/nextafterl.c: Add nexttowardl alias.
3368 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
3370 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
3371 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
3374 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
3376 * mingwex/math/nextafterf.c (nextafterf): Correct
3378 * mingwex/math/nextafterl.c: New file.
3379 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
3380 (MATH_OBJS): Add nextafterl.o.
3381 * include/math.h (nextafterl): Uncomment prototype.
3383 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3385 * mingwex/math/erfl.c: New file.
3386 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
3387 (MATH_OBJS): Add erfl.o.
3388 * include/math.h (erfl, erfcl): Uncomment prototypes.
3390 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
3392 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
3393 #if (WCHAR_MAX <= WCHAR_MIN) is false.
3394 * include/stdint.h (WCHAR_MAX): Likewise.
3395 (WINT_MAX): Likewise.
3397 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
3399 * mingwex/math/signbit.c (__signbit): Make return value
3400 consistent with GCC's __builtin_signbit.
3401 * mingwex/math/signbitf.c (__signbitf): Likewise.
3402 * mingwex/math/signbitf.c (__signbitl): Likewise.
3403 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
3406 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
3408 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
3410 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
3411 Remove unused MBTOWC_FLAGS define.
3413 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
3415 * mingwex/mbrtowc.c: New file.
3416 * mingwex/wcrtomb.c: New file.
3417 * mingwex/btowc.c: New file.
3418 * mingwex/wctob.c: New file.
3419 * mingwex/mb_wc_common.h: New file.
3420 * mingwex/Makefile.in (DISTFILES): Add new files.
3421 (Q8_OBJS): Add new objects.
3422 * include/wchar.h: Adjust comment about mbrtowc() and related
3423 funcions. Add __restrict__ to pointer params in prototypes.
3424 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
3425 arg names from protototypes.
3427 2005-04-23 Wu Yongwei <adah@sh163.net>
3429 * mingwex/dirent.c: Formatting changes.
3430 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
3433 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
3435 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
3437 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
3439 * include/stdio.h (__mingw_fwrite): Change return value to
3441 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
3443 2005-03-15 Hans Leidekker <hans@it.vu.nl>
3445 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
3447 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3449 * include/wctype.h (wctrans): Remove _CRTIMP.
3450 (towctrans): Likewise.
3453 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3455 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
3457 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3459 * mingwex/wctype.c: New file.
3460 * mingwex/wctrans.c: New file.
3461 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
3462 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
3464 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3466 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
3468 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3470 * include/assert.h: Remove header guard. #undef assert macro.
3471 (_assert): Use __MINGW_ATTRIB_NORETURN define.
3473 2005-02-11 Gregory W. Chicares <chicares@cox.net>
3475 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
3476 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
3478 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
3479 * mingwex/math/expm1.c: New file.
3480 * mingwex/math/expm1f.c: New file.
3481 * mingwex/math/expm1l.c: New file.
3483 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3485 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
3486 * include/wchar.h (struct stat): Likewise.
3487 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
3489 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
3491 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3493 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
3494 string is not valid.
3496 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
3498 * include/malloc.h: Add missing return code defines for
3501 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
3503 * include/sys/stat.h (struct __stat64): Change st_size type to
3505 * include/wchar.h (struct __stat64): Change st_size type to __int64.
3507 2005-01-13 Earnie Boyd <earnie@users.sf.net>
3509 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3511 * include/errno.h (ELOOP): Ditto.
3512 * include/_mingw.h: Increment version to 3.7.
3513 * Makefile.in: Ditto.
3515 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3517 * include/tchar.h (_tfreopen): Add UNICODE mappings.
3519 2005-01-11 Earnie Boyd <earnie@users.sf.net>
3521 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3522 lstat): Conditionalize defines for __STRICT_ANSI__.
3524 2005-01-10 Earnie Boyd <earnie@users.sf.net>
3526 * include/errno.h (ELOOP): Add definition.
3528 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
3530 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
3531 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
3532 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
3533 ctanl.c ctanhl.c): New files.
3534 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3535 (COMPLEX_OBJS): Adjust.
3536 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
3537 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
3538 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
3541 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3543 * include/_mingw.h (__int16): Define as short.
3544 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3546 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3548 * include/stdio.h (P_tmpdir): Add define.
3550 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3552 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3554 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3556 * include/_mingw.h: Increment version to 3.6
3557 * Makefile.in: Ditto
3559 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3561 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3562 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3563 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3564 ctanf.c ctanhf.c): New files.
3565 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3566 (COMPLEX_OBJS): Adjust.
3567 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3568 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3569 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3572 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3574 * include/wchar.h (wcsdup): Correct prototype.
3575 * include/string.h (wcsdup): Correct prototype.
3577 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3579 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3581 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3583 * mingwex/math/fastmath.h: New file.
3584 * mingwex/math/asinh.c: New file.
3585 * mingwex/math/asinhf.c: New file.
3586 * mingwex/math/asinhl.c: New file.
3587 * mingwex/math/acosh.c: New file.
3588 * mingwex/math/acoshf.c: New file.
3589 * mingwex/math/acoshl.c: New file.
3590 * mingwex/math/atanh.c: New file.
3591 * mingwex/math/atanhf.c: New file.
3592 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3593 atanh, atanhf, atanhl): Add prototypes.
3594 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3595 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3596 Specify dependency on fastmath.h for new objects.
3598 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3600 * include/sys/stat.h (_S_IFLNK): Add definition.
3607 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3609 * include/sys/stat.h (_S_ISLNK): Add definition.
3612 2004-09-05 Earnie Boyd <earnie@users.sf.net>
3614 * include/_mingw.h: Increment minor version for 3.5 release.
3615 * Makefile.in: Ditto.
3616 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
3618 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3620 * include/malloc.h (__mingw_aligned_offset_malloc,
3621 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
3622 __mingw_aligned_realloc, __mingw_aligned_free): Add
3624 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
3625 tst-aligned-malloc.c.
3626 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
3628 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
3630 * mingwex/mingw-aligned-malloc.c: New file.
3631 * mingwex/tst-aligned-malloc.c: New file.
3633 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3635 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
3636 noreturn attribute. Align stack to 16 bytes before passing args
3638 (mainCRTStartup): Change return to void.
3639 (WinMainCRTStartup): Likewise.
3641 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3643 * profile/COPYING: New file.
3644 * profile/CYGWIN_LICENSE: New file.
3645 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
3647 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3649 * mingwex/fopen64.c: Move.
3650 * mingwex/fseeko64.c: Move.
3651 * mingwex/ftello64.c: Move.
3652 * mingwex/lseek64.c: Move.
3653 * mingwex/stdio/fopen64.c: To here.
3654 * mingwex/stdio/fseeko64.c: To here.
3655 * mingwex/stdio/ftello64.c: To here.
3656 * mingwex/stdio/lseek64.c: To here.
3658 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3660 * profile/gmon.c [__MINGW32__]: Include string.h for
3663 2004-08-08 Christopher Faylor <cgf@timesys.com>
3665 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
3667 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3669 * include/complex.h: Remove __attribute__ ((const)) from
3670 transcendantal and trig functions. Replace __attribute__ ((const))
3671 with __MINGW_ATTRIB_CONST on other declarations.
3673 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3675 * include/wchar.h: Reorganize, avoid including other headers.
3677 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3679 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
3680 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
3683 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3685 * include/dirent.h (struct _wdirent): Remove obsolete comment.
3687 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3689 * include/string.h: Revert 2004-07-26 additions of
3692 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3694 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3695 (__convert_inf_to_maxnum): New.static inline.
3696 (reducl): Use it to protect against Inf - Inf.
3697 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3699 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3701 * mingwex/math/expl.c (expl): Move body of code to new static
3702 function __expl, removing tests for +/-Inf. Extern function
3703 expl calls __expl after testing for max, min log thresholds.
3705 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3707 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
3708 * mingwex/stdio/vfscanf.c: Likewise.
3709 * mingwex/stdio/vswscanf.c: Likewise.
3710 * mingwex/stdio/vfwscanf.c: Likewise.
3712 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3714 * include/_mingw.h: Use only two underscores to uglify
3715 __MINGW_ATTRIB_* macros.
3716 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
3717 * include/setjmp.h: Likewise.
3719 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
3721 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
3723 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3725 * include/string.h: Group wide string functions together,
3726 and protect with _WSTRING_DEFINED.
3728 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3730 * include/_mingw.h (__MINGW_ATTR_*): Replace with
3732 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
3733 __MINGW_ATTRIB_NORETURN, throughout.
3734 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3736 (abs): Declare with __MINGW_ATTRIB_CONST.
3745 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3747 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3749 * include/_mingw.h: Undefine __attribute__.
3750 (__MINGW_ATTR_NORETURN): New define.
3751 (__MINGW_ATTR_CONST): New define.
3752 (__MINGW_ATTR_MALLOC): New define.
3753 (__MINGW_ATTR_PURE): New define.
3754 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3757 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3759 * include/time.h (__time64_t): Add missing ';'.
3761 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3763 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3764 (struct tm): Protect with _TM_DEFINED.
3766 2004-07-17 Christopher Faylor <cgf@timesys.com>
3768 * Makefile.in (CC): Strip inappropriate include file settings from any
3771 2004-07-15 "dgun" <dgun@umpire.com>
3773 * include/complex.h (conj): Correct typo in prototype.
3775 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3777 * include/math.h: Add pragma GCC system_header.
3779 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3781 * mingwex/complex/carg.c: New file.
3782 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3784 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3786 * Makefile.in (INCLUDES): Temporarily revert previous change.
3787 * mingwex/Makefile,in (INCLUDES): Ditto.
3788 * profile/Makefile,in (INCLUDES): Ditto.
3789 * mingwex/Makefile,in: Drop carg.o dependency.
3791 2004-07-14 Christopher Faylor <cgf@timesys.com>
3793 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3795 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3797 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3799 * mingwex/Makefile,in (INCLUDES): Ditto.
3800 * profile/Makefile,in (INCLUDES): Ditto.
3802 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3804 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3806 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3808 * mingwex/Makefile.in: Ditto.
3809 * profile/Makefile.in: Ditto.
3810 * include/limits.h: Change to new file header preamble.
3811 * include/_mingw.h: Increment minor version for 3.4 release.
3812 * Makefile.in: Ditto.
3814 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3816 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3818 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3820 * include/unistd.h (ftruncate): Add inline definition.
3821 * mingwex/ftruncate.c: New file.
3822 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3824 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3826 * include/time.h: Do not include sys/types.h.
3828 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3830 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3831 (MATH_OBJS): Remove pow,o.
3832 * include/math.h (pow): Declare with _CRTIMP.
3833 Add comment on how to avoid excess precision problems.
3835 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3837 * include/stdio.h (__mingw_fseeko64): Add prototype.
3838 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3839 (__mingw_fwrite): Handle huge files.
3841 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3842 Danny Smith <dannysmith@users.sourceforge.net>
3844 * include/stdio.h (fopen64): Add inline function.
3845 (fseeko64): Add prototype.
3846 (ftello64): Add inline function.
3847 * include/io.h (lseek64): Add inline function.
3848 * include/sys/types (off64_t): Add typedef.
3849 (fpos64_t): Add typedef.
3850 * mingwex/fopen64.c: New file.
3851 * mingwex/fseeko64.c: New file.
3852 * mingwex/ftello64.c: New file.
3853 * mingwex/lseek64.c: New file.
3854 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3855 fseeko.64.c, ftello64.c, lseek64.c.
3856 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3858 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3860 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3862 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3864 * DISCLAIMER: Add words about "free to use".
3865 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3866 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3867 (inst_docdir): New variable.
3869 (FLAGS_TO_PASS): Include inst_docdir.
3870 (install-dirs): Add inst_docdir.
3871 (install): Add loop for INSTDOCS.
3872 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3873 section to CONTRIBUTORS file. Remove RCS tags.
3875 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3877 * mingwex/math/lround.c: Rewrite.
3878 * mingwex/math/lroundf.c: Rewrite.
3879 * mingwex/math/lroundl.c: Rewrite.
3880 * mingwex/math/llround.c: Rewrite.
3881 * mingwex/math/llroundf.c: Rewrite.
3882 * mingwex/math/llroundl.c: Rewrite.
3884 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3886 * CONTRIBUTORS: New file.
3887 * DISCLAIMER: Ditto.
3888 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3889 section to CONTRIBUTORS file. Remove RCS tags.
3890 * CRTFmode.c: Ditto.
3894 * crtdll.dev: Ditto.
3904 * msvcrt.def.in: Ditto.
3905 * strcasecmp.c: Ditto.
3908 * include/assert.h: Ditto.
3909 * include/conio.h: Ditto.
3910 * include/ctype.h: Ditto.
3911 * include/direct.h: Ditto.
3912 * include/dirent.h: Ditto.
3913 * include/dos.h: Ditto.
3914 * include/errno.h: Ditto.
3915 * include/excpt.h: Ditto.
3916 * include/fcntl.h: Ditto.
3917 * include/float.h: Ditto.
3918 * include/io.h: Ditto.
3919 * include/locale.h: Ditto.
3920 * include/malloc.h: Ditto.
3921 * include/math.h: Ditto.
3922 * include/process.h: Ditto.
3923 * include/setjmp.h: Ditto.
3924 * include/share.h: Ditto.
3925 * include/signal.h: Ditto.
3926 * include/stdio.h: Ditto.
3927 * include/stdlib.h: Ditto.
3928 * include/string.h: Ditto.
3929 * include/tchar.h: Ditto.
3930 * include/time.h: Ditto.
3931 * include/wchar.h: Ditto.
3932 * include/sys/locking.h: Ditto.
3933 * include/sys/param.h: Ditto.
3934 * include/sys/stat.h: Ditto.
3935 * include/sys/timeb.h: Ditto.
3936 * include/sys/types.h: Ditto.
3937 * include/sys/utime.h: Ditto.
3938 * mingwex/dirent.c: Ditto.
3940 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3942 * include/_mingw.h: Revert to primary release 3 and increment minor
3944 * Makefile.in (VERSION): Ditto.
3946 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3948 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3949 _fmode if not __MSVCRT__.
3951 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3953 * include/io.h: (_findfirst): Correct prototype.
3955 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3957 * include/io.h: (_findnext, _findclose): Correct prototype.
3959 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3961 * include/math.h (FP_*): Add defines.
3963 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3965 * mingwex/math/round.c: Rewrite.
3966 * mingwex/math/roundf.c: Rewrite.
3967 * mingwex/math/roundl.c: Rewrite.
3969 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3971 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3972 * include/time.h (__time64_t): Add typedef.
3973 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3974 (_ctime64): Likewise.
3975 (_wctime64): Likewise.
3976 (_gmtime64): Likewise.
3977 (_localtime64): Likewise.
3978 (wcsftime): Move into _WTIME_DEFINED block.
3979 Regroup non-ANSI prototypes.
3980 * include/io.h: Include <stdint.h>.
3981 (__finddata64_t): Add struct definition.
3982 (__wfinddata64_t): Likewise.
3983 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3984 (_findnext64): Likewise.
3985 (_wfindfirst64): Likewise.
3986 (_wfindnext64): Likewise.
3987 * include/sys/timeb.h (__timeb64): Add struct definition.
3988 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3989 * include/sys/utime.h (__utimbuf64): Add struct definition.
3990 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3991 (_futime64): Likewise.
3992 (_wutime64): Likewise.
3993 * include/sys/stat.h (__stat64): Add struct definition.
3994 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3995 (_stat64): Likewise.
3996 (_wstat64): Likewise.
3997 * include/sys/types.h (__time64_t): Add typedef.
3998 * include/wchar.h (__wfinddata64_t): Add structure definition.
3999 (__stat64): Likewise.
4000 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
4001 (_wfindfirst64): Likewise.
4002 (_wfindnext64): Likewise.
4003 (_wutime64): Likewise.
4004 (_wstat64): Likewise.
4005 * include/malloc.h (_aligned_free): Add prototype for
4006 __MSVCRT_VERSION__ >= 0x0700.
4007 (_aligned_malloc): Likewise.
4008 (_aligned_offset_malloc): Likewise.
4009 (_aligned_offset_realloc): Likewise.
4010 (_aligned_realloc): Likewise.
4011 * include/string.h (_wcserror): Add prototype for
4012 __MSVCRT_VERSION__ >= 0x0700.
4013 (__wcserror): Likewise.
4014 * include/math.h (_set_SSE2_enable): Add prototype for
4015 __MSVCRT_VERSION__ >= 0x0701.
4017 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4019 * include/stdio.h (_fsopen): Add prototype.
4020 * include/tchar.h (_tfsopen): Add defines.
4021 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
4023 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
4025 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
4026 msvcr70.dll, and msvcr71.dll.
4027 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
4028 using basename of output def file.
4030 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
4032 * include/malloc.h: Remove __STRICT_ANSI__ guard.
4034 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
4036 * include/process.h: Remove the #endif associated with removal of
4037 __STRICT_ANSI__ guard from non-ANSI header.
4039 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4041 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
4042 * include/direct.h: Ditto.
4043 * include/dirent.h: Ditto.
4044 * include/dos.h: Ditto.
4045 * include/excpt.h: Ditto.
4047 * include/io.h: Ditto.
4048 * inlude/mem.h: Ditto.
4049 * include/memory.h: Ditto.
4050 * include/process.h: Ditto.
4051 * inlude/search.h: Ditto.
4052 * include/share.h: Ditto.
4053 * include/unistd.h: Ditto.
4054 * include/sys/fcntl.h: Ditto.
4055 * include/file.h: Ditto.
4056 * include/sys/locking.h: Ditto.
4057 * include/sys/param.h: Ditto.
4058 * include/sys/stat,h
4059 * include/sys/time.h: Ditto.
4060 * include/sys/timeb.h: Ditto.
4061 * include/sys/types.h: Ditto.
4062 * include/sys/unistd.h: Ditto.
4063 * include/sys/utime.h: Ditto.
4065 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
4067 * include/_mingw.h (__UNUSED_PARAM): Define macro.
4068 * include/wchar.h (fwide): Use it.
4071 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4073 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
4074 NetBSD getopt_long.c.
4076 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4078 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
4079 codes and handling of special chars.
4081 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
4083 * include/stdio.h (feof): Add inlined definition.
4086 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4088 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
4089 directly, rather than via scabnl.
4091 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4093 * mingwex/math/powl.c (powl): Return infinity if
4094 extended precision multiplication of x by log2(y)
4097 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
4099 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
4100 (__enan_NI16): Fix another one.
4101 (__enan_NBITS): Tidy.
4103 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4105 * include/stdint.h [__STDC_CONSTANT_MACROS]: Fix for 8 and 16 bit
4106 types. (Thanks to John Maddock for report.)
4108 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
4110 * include/tchar.h (_puttchar): Define.
4112 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
4114 * include/stdio.h:(_fileno): Define macro version after both
4115 fileno and _fileno functions declared.
4117 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
4118 * moldnames.def.in (rmtmp) Add stub.
4120 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
4122 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
4124 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4126 * include/math.h: Guard ISO C99 additions with __cplusplus
4129 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4131 * include/_mingw.h: Define __attribute__((x)) to nothing
4134 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4136 * include/complex.h: New file.
4137 * mingwex/complex: New directory.
4138 * mingwex/complex/cabs.c: New file.
4139 * mingwex/complex/cacos.c: New file.
4140 * mingwex/complex/cacosh.c: New file.
4141 * mingwex/complex/casin.c: New file.
4142 * mingwex/complex/casinh.c: New file.
4143 * mingwex/complex/catan.c: New file.
4144 * mingwex/complex/catanh.c: New file.
4145 * mingwex/complex/ccos.c: New file.
4146 * mingwex/complex/ccosh.c: New file.
4147 * mingwex/complex/cexp.c: New file.
4148 * mingwex/complex/cimag.c: New file.
4149 * mingwex/complex/clog.c: New file.
4150 * mingwex/complex/cpow.c: New file.
4151 * mingwex/complex/cproj.c: New file.
4152 * mingwex/complex/creal.c: New file.
4153 * mingwex/complex/csin.c: New file.
4154 * mingwex/complex/csinh.c: New file.
4155 * mingwex/complex/csqrt.c: New file.
4156 * mingwex/complex/ctan.c: New file.
4157 * mingwex/complex/ctanh.c: New file.
4158 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
4161 (COMPLEX_OBJS): New list of objects.
4162 (LIB_OBJS): Include it in the library.
4164 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4166 * include/math.h (cabs): Remove non-ISO prototype.
4168 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4170 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
4171 Use GCC __builtin's if available.
4172 (INFINITY, INFINITYF, INFINITYL): Likewise.
4174 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4176 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
4177 beyond approximation limit.
4178 * mingwex/math/sf_erf.c (erff): Likewise.
4180 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
4182 * include/stdio.h (getc): Cast result to unsigned char before
4185 (getchar): Likewise.
4186 (putchar): Likewise.
4187 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
4189 2003-10-10 Earnie Boyd <earnie@users.sf.net>
4191 * include/_mingw.h: Increment version to 3.2.
4192 * Makefile.in: Ditto.
4194 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4196 * include/sys/types.h: Revert last change.
4198 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4200 * include/sys/types.h (ssize_t): Correct the definition.
4202 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4204 * include/stdio.h (_filbuf): Add prototype.
4205 (_flsbuf): Add prototype.
4206 (getc): Add inline version.
4208 (getchar): Likewise.
4209 (putchar): Likewise.
4211 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4213 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
4216 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
4218 * include/stdlib.h: Guard non-ISO functions with
4219 !__STRICT_ANSI__, throughout.
4221 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4223 * include/io.h (_fileno): Remove prototype.
4225 (FILENAME_MAX): Define, if needed.
4226 Don't include <stdio.h>.
4227 * include/stdio.h (FILENAME_MAX): Protect against
4229 (_fileno): Define macro implementation.
4232 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4234 * include/inttypes.h: Include _mingw.h.
4236 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4238 * include/_mingw.h (__CRT_INLINE): Define.
4239 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
4241 * include/inttypes.h: Likewise.
4242 * include/math.h: Likewise.
4243 * include/stdio.h: Likewise.
4244 * include/stdlib.h: Likewise.
4245 * include/string.h: Likewise.
4246 * include/wchar.h: Likewise.
4247 * include/wctype.h: Likewise.
4249 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
4251 * mingwex/dirent.c (_topendir): Allocate enough memory for
4252 DIR struct in UNICODE case too.
4254 2003-09-15 Earnie Boyd <earnie@users.sf.net>
4256 * include/_mingw.h: Increment version to 3.2.
4257 * Makefile.in: Ditto.
4259 2003-07-03 Earnie Boyd <earnie@users.sf.net>
4261 * config.guess, config.sub: Update with versions from ftp.gnu.org.
4263 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4265 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
4266 * mingwex/math/truncf.c (truncf): Likewise.
4267 * mingwex/math/truncl.c (truncl): Likewise.
4268 * mingwex/math/modff.c (modff): Likewise.
4269 * mingwex/math/modfl.c (modfl): Likewise.
4271 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4273 * include/search.h: New file.
4274 * include/stdlib.h: Add comment about qsort, bsearch in
4276 * test_headers.c: Include search.h.
4277 * moldname.def.in (lfind, lsearch): Add.
4279 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4281 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
4282 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
4283 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
4285 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4287 * include/_mingw.h (small, hyper): Change to __small and __hyper to
4288 avoid user space name conflicts.
4290 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4292 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
4293 Note: Also added to w32api/include/basetyps.h.
4294 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
4295 Rename to Small (case difference).
4297 2003-06-18 Earnie Boyd <earnie@users.sf.net>
4299 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
4300 * mingwex/dirent.c: Modifications througout to fill d_name array.
4301 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
4302 libmsvcr71, including debug versions.
4303 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
4305 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
4307 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
4308 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
4310 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
4312 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
4314 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
4316 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
4318 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
4319 but still protect inline definition with __STRICT_ANSI__.
4321 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
4323 * string_old.c: Remove, splitting into...
4324 * strcasecmp.c: New file.
4325 * strncasecmp.c: New file.
4326 * wscmpi.c : New file.
4327 * ctype_old.c: Remove, splitting into...
4328 * isascii.c: New file.
4329 * iscsym.c: New file.
4330 * iscsymf.c: New file.
4331 * toascii.c: New file.
4332 * Makefile.in (MOLD_OBJS): Adjust.
4333 (SRCDIST_FILES): Adjust.
4335 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
4337 * include/math.h (fabs) : Remove inline definition.
4341 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4343 * include/_mingw.h: Change version to 3.0
4344 * Makefile.in: Ditto.
4346 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4348 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
4349 * mingwex/configure.in (W32API_INCLUDE): Ditto.
4350 * profile/configure.in (W32API_INCLUDE): Ditto.
4352 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4354 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
4355 of multiply defined symbols if the symbols is defined locally. E.G.:
4356 A local definition of malloc causes this problem.
4357 * configure: Regenerate.
4358 * profile/Makefile.in (W32API_INCLUDE): New variable.
4359 (ALL_CFLAGS): Use W32API_INCLUDE value.
4360 (ALL_CXXFLAGS): Ditto.
4361 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
4362 Thanks to Jeff Bonggren <jbon@users.sf.net>.
4363 * profile/configure.in (W32API_INCLUDE): Set default value.
4364 * profile/configure: Regenerate.
4365 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
4366 (ALL_CFLAGS): Use W32API-INCLUDE value.
4367 (ALL_CXXFLAGS): Ditto.
4368 * mingwex/configure.in (W32API_INCLUDE): Set default value.
4369 * mingwex/configure: Regenerate.
4371 2003-05-05 Earnie Boyd <earnie@users.sf.net>
4373 * Makefile.in (W32API_INCLUDE): New variable.
4374 (ALL_CFLAGS): Use W32API_INCLUDE value.
4375 (ALL_CXXFLAGS): Ditto.
4376 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
4377 (W32API_INCLUDE): Set default value.
4378 * configure: Regenerate.
4380 2003-04-11 Earnie Boyd <earnie@users.sf.net>
4382 * configure.in (LIBM_A): Define for cygwin target.
4383 * configure (LIBM_A): Ditto.
4385 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
4387 * include/time.h (strftime): Remove duplicate declaration.
4389 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4391 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
4393 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4395 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
4396 * mingwex/strtoimax.c (strtoimax): Likewise.
4397 * mingwex/wcstoimax.c (wcstoimax): Likewise.
4398 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
4399 * mingwex/fesentenv.c: Include float.h.
4400 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
4402 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
4404 * mingwex/math/tgammal.c: Likewise.
4406 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4408 * include/utime.h: New file, forwarding to sys/utime.h.
4410 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4412 * include/sys/param.h (MAXPATHLEN): Define.
4414 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4416 * include/tchar.h: Ansi-fy a comment.
4418 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4420 * profile/profile.h (mcount): Use __builtin_return_address
4421 rather than inline __asm statements.
4422 * profile/Makefile.in: Remove special rule for mcount.o
4423 Specify dependencies for mcount.o profil.o gmon.o.
4425 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4427 * include/stdlib.h (qsort): Remove const from first parm.
4428 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
4430 2003-03-03 Christopher Faylor <cgf@redhat.com>
4432 * mingwex/getopt.c: Refresh from NetBSD sources.
4434 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
4436 * mingwex/getopt.c: New file, copied from cygwin srcs.
4437 * include/getopt.h: New file, copied from cygwin srcs.
4438 * include/unistd.h: Include getopt.h.
4439 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
4440 (POSIX_OBJS): Add getopt.o.
4442 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
4444 * include/stdio.h (vscanf): Add prototype.
4450 * include/wchar.h (vwscanf): Add prototype.
4453 * mingwex/snprintf.c: Move to mingwex/stdio.
4454 * mingwex/vsnprintf.c: Ditto.
4455 * mingwex/snwprintf.c: Ditto.
4456 * mingwex/vsnwprintf.c: Ditto.
4457 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
4458 (STDIO_DISTFILES): Add.
4459 (DISTFILES): Adjust.
4460 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
4464 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
4466 * mingwex/stdio: New directory
4467 * mingwex/stdio/vfscanf.c: New file.
4468 * mingwex/stdio/vfwscanf.c: New file.
4469 * mingwex/stdio/vscanf.c: New file.
4470 * mingwex/stdio/vsscanf.c: New file.
4471 * mingwex/stdio/vswscanf.c: New file.
4472 * mingwex/stdio/vwscanf.c: New file.
4474 2003-02-25 Earnie Boyd <earnie@users.sf.net>
4476 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
4477 (libmsvcrt40.a): Ditto.
4479 2003-02-21 Earnie Boyd <earnie@users.sf.net>
4481 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
4483 * Makefile.in (libmsvcrtd.a): Add target library.
4484 (libmoldnamed.a): Ditto.
4485 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
4487 ($(srcdir)): Remove explicit reference for depencies of object targets.
4488 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
4489 msvcrt20.def, msvcrt40.def: Remove.
4490 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
4492 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
4494 * Makefile.in: Make sure libmingwex.a from current build tree is used.
4496 2003-02-14 Christopher Faylor <cgf@redhat.com>
4498 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
4499 ensure -mno-cygwin where appropriate. Filter out -O2.
4501 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
4503 * profile/Makefile.in (mcount.o): Use -O1 optimization
4506 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4508 * include/math.h: Remove _CRTIMP from pow() prototype,
4509 unless __NO_ISOCEXT.
4511 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4513 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
4515 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4517 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
4518 __declspec(dllimport) supported.
4519 (__cdecl): Define if not already defined.
4520 (__stdcall): Likewise.
4521 * include/dirent.h: Qualify fuctions with __cdecl.
4522 * include/fenv.h: Likewise.
4523 * include/inttypes.h: Likewise.
4524 * include/assert.h: Qualify fuctions with __cdecl. Qualify
4525 CRT dll imports with _CRTIMP.
4526 * include/conio.h: Likewise.
4527 * include/ctype.h: Likewise.
4528 * include/direct.h: Likewise.
4529 * include/dos.h: Likewise.
4530 * include/errno.h: Likewise.
4531 * include/float.h: Likewise.
4532 * include/io.h: Likewise.
4533 * include/locale.h: Likewise.
4534 * include/malloc.h: Likewise.
4535 * include/math.h: Likewise.
4536 * include/mbctype.h: Likewise.
4537 * include/mbstring.h: Likewise.
4538 * include/process.h: Likewise.
4539 * include/setjmp.h: Likewise.
4540 * include/signal.h: Likewise.
4541 * include/stdio.h: Likewise.
4542 * include/stdlib.h: Likewise.
4543 * include/string.h: Likewise.
4544 * include/time.h: Likewise.
4545 * include/wchar.h: Likewise.
4546 * include/wctype.h: Likewise.
4547 * include/sys/stat.h: Likewise.
4548 * include/sys/timeb.h: Likewise.
4549 * include/sys/utime.h: Likewise.
4551 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4552 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4554 * include/stdio.h (__VALIST): Guard against prior definition.
4556 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4558 * include/_mingw.h: Change version to 3.0
4559 * Makefile.in: Ditto.
4561 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4563 * include/stdlib.h: Make words after #endif a comment.
4565 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4567 * include/locale.h: Include stddef.h for definition of NULL.
4569 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4571 * include/math.h (tgamma): Correct typo in comment.
4573 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4575 * mingwex/mingw-fseek.c (INLINE): Remove define.
4576 (__mingw_is_win9x): Remove static inline function.
4577 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4579 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4581 * mingwex/math/llround.c: Correct function name and
4582 change return value to long long.
4584 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4586 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4587 (iswascii): Likewise. Correct mask.
4588 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4591 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4593 * include/stdlib.h (_osver, _winver, _winmajor,
4594 _winminor): Declare as direct imports from dll if
4595 __DECLSPEC_SUPPORTED.
4597 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4599 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4600 * pseudo-reloc-list.c: New file.
4601 * crt1.c (_pei386_runtime_relocator): Declare.
4602 (__mingw_CRTStartup): Call it.
4603 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4604 (DllMainCRTStartup): Call it.
4605 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
4608 2003-01-01 Egor Duda <deo@logos-m.ru>
4610 * pseudo-reloc.c: New file.
4612 2002-12-20 Earnie Boyd <earnie@users.sf.net>
4614 * include/_mingw.h: Increment version to 2.4.
4617 2002-12-12 Earnie Boyd <earnie@users.sf.net>
4619 * include/malloc.h (_alloca): Add definition.
4622 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
4624 * mingwex/math/s_erf.c: New file.
4625 * mingwex/math/sf_erf.c: New file.
4626 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4627 (MATH_OBJS): Add new objects.
4628 * include/math.h (erf[f]): Add prototypes.
4629 (erfc[f]): Add prototypes.
4631 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
4633 * include/math.h: Add traditional/XOPEN math constants.
4635 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
4637 * mingwex/math/lgamma.c: New file.
4638 * mingwex/math/lgammaf.c: New file.
4639 * mingwex/math/lgammal.c: New file.
4640 * mingwex/math/tgamma.c: New file.
4641 * mingwex/math/tgammaf.c: New file.
4642 * mingwex/math/tgammal.c: New file.
4643 * mingwex/math/cephes_mconf (polevlf): Add float version.
4645 Define _CEPHES_USE_ERRNO.
4646 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4647 (MATH_OBJS): Add new objects.
4648 * include/math.h (lgamma[fl]): Add prototypes.
4649 (tgamma[fl]): Add prototypes.
4651 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
4653 * mingwex/strtold.c: New file.
4654 * mingwex/wcstold.c: New file.
4655 * mingwex/ldtoa.c: New file.
4656 * mingwex/math/cephes_emath.h: New file.
4657 * mingwex/math/cephes_emath.c: New file.
4658 * mingwex/Makefile.in (DISTFILES): Add new files.
4659 (MATH_DISTFILES): Ditto.
4660 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
4661 (MATH_OBJS): Add cephes_emath.o.
4662 (LIB_OBJS): Add $(STDLIB_OBJS).
4663 * include/stdlib.h (strtold, wcstold): Add prototypes.
4664 * include/wchar.h (wcstold): Add prototype.
4666 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
4668 * include/math.h (sqrt): Remove inline definition.
4669 (sqrtf): Replace inline definition with prototype.
4671 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
4672 argument less than zero.
4673 * mingwex/math/sqrtf.c (sqrtl): Likewise.
4675 2002-10-30 Guido Serassio <serassio@libero.it>
4677 * include/stdio.h (_getmaxstdio): Add prototype.
4678 (_setmaxstdio): Likewise.
4680 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
4682 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
4684 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4686 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
4688 Define WIN32_MEAN_AND_LEAN before including windows.h
4689 * include/stdlib.h (_fmode): Protect declaration as dllimported
4690 variable with __IN_MINGW_RUNTIME.
4692 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4694 * crt1.c: Include stdlib.h.
4696 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4698 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4699 (MINGW_OBJS): Add txtmode.o.
4700 (SRCDIST_FILES): Add txtmode.c binmode.c.
4701 crt1.c: Don't include fcntrl.h, stdlib.h.
4702 (_fmode): Declare, without dllimport attribute.
4703 (__p__fmode): Declare access function for dll's _fmode.
4704 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
4706 * txtmode.c: New file.
4707 * binmode.c: New file.
4708 * samples/fmode/test2.c: New file.
4709 * samples/fmode/jamfile: Add test2.exe target.
4711 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4713 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
4714 macros work with C89.
4715 (INTMAX_C, UINTMAX_C): Likewise.
4717 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4719 * include/string.h (strcasecmp): Make extern __inline__.
4720 (strncasecmp): Likewise.
4721 (wcscmpi): Likewise.
4723 2002-10-08 Heiko Gerdau <hg@technosis.de>
4725 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
4726 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
4729 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4731 * mingwex/math/powil.c: Rename powil to __powil.
4732 * mingwex/math/powl.c: Adjust declaration and call
4733 to __powil. Remove comment on powil.
4734 * mingwex/math/powi.c: New file.
4735 * mingwex/math/powif.c: New file.
4736 * mingwex/math/pow.c: New file.
4737 * mingwex/math/cephes_mconf.h. Add double and float
4738 versions of constants.
4739 (polevl): Add double precision function.
4741 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4743 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4745 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4747 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4748 (_imp____mbcur_max_dll): Likewise.
4750 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4752 * include/fcntl.h (_fmode): Remove declarations and
4753 compatibility defines.
4754 (_setmode, setmode): Remove prototypes.
4755 * include/stdlib (_fmode): Add declarations and
4756 compatibility defines. Change type to int.
4757 * include/io.h (_setmode, setmode): Add prototypes.
4758 * samples/fmode/all.c: Adjust includes.
4759 * samples/fmode/test.c: Likewise.
4760 * crt1.c (_CRT_fmode): Declare as int.
4761 * CRTfmode.c (_CRT_fmode): Likewise.
4763 * include/stdlib: Remove comment about MB_CUR_MAX.
4765 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4767 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4768 (_imp____mbcur_max_dll): Likewise.
4770 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4772 * mingwex/math/files.txt: Remove inadvertantly added file.
4774 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4776 * include/string.h (_strerror): Move into #ifndef
4777 __STRICT_ANSI__ block.
4779 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4781 * include/time.h (__need_NULL): Define before including
4782 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4784 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4786 * include/stdio.h: Correct comment about directory separator.
4788 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4790 * include/sys/time.h (timeval): Add struct definition and
4791 associated macros (copied from w32api/include/winsock.h).
4793 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4795 * include/_mingw.h: Increment version to 2.3.
4798 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4800 * mingwex/fegetenv.c: Change to \n line endings.
4801 * mingwex/vsnprintf.c: Ditto.
4802 * mingwex/vsnwprintf.c: Ditto.
4804 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4806 * mingwex/math/hypotl.c: Replace with version based on cephes
4809 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4811 * include/sys/param.h: Add ENDIAN defines.
4812 * test_headers.c: Include sys/param.h.
4814 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4816 * test_headers.c: Don't include varargs.h.
4817 * Makefile.in (test_headers): Don't use -std=xx
4820 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4822 * include/sys/param.h: New File.
4824 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4826 * include/math.h (asm): Change to __asm__ throughout.
4827 Expose ISO C99 functions if __GLIPCPP__.
4828 (hypotf): Use hypot, not _hypot in stub.
4830 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4832 * include/tchar.h: Ansi-fy another comment.
4834 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4836 * include/tchar.h: Ansi-fy comment.
4838 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4840 * test_headers.c : New file.
4841 * Makefile.in (test_headers): New target, using it,
4842 (SRCDIST_FILES): Distribute it.
4844 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4846 * include/_mingw.h: Increment version to 2.2.
4849 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4851 * include/unistd.h: Add include of process.h.
4853 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4855 * include/stdio.h (_fcloseall): Add prototype.
4857 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4859 * include/tchar.h (_tfdopen): Correct typo.
4861 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4863 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4864 nextafter): Add non-underscored stubs.
4865 * moldname-msvcrt.def: Regenerate.
4866 * moldname-crtdll.def: Regenerate.
4867 * mingwex/math: New directory.
4868 * mingwex/rint.c: Move to mingwex/math.
4869 * mingwex/rintf.c: Ditto.
4870 * mingwex/rintl.c: Ditto.
4871 * mingwex/round.c: Ditto.
4872 * mingwex/roundf.c: Ditto.
4873 * mingwex/roundl.c: Ditto.
4874 * mingwex/rint.c: Ditto.
4875 * mingwex/rintf.c: Ditto.
4876 * mingwex/rintl.c: Ditto.
4877 * mingwex/trunc.c: Ditto.
4878 * mingwex/truncf.c: Ditto.
4879 * mingwex/truncl.c: Ditto.
4880 * mingwex/signbit.c: Ditto.
4881 * mingwex/signbitf.c: Ditto.
4882 * mingwex/signbitl.c: Ditto.
4883 * mingwex/copysignl.S: Ditto.
4884 * mingwex/fdim.c: Ditto.
4885 * mingwex/fdimf.c: Ditto.
4886 * mingwex/fdiml.c: Ditto.
4887 * mingwex/fmin.c: Ditto.
4888 * mingwex/fminf.c: Ditto.
4889 * mingwex/fminl.c: Ditto.
4890 * mingwex/fmax.c: Ditto.
4891 * mingwex/fmaxf.c: Ditto.
4892 * mingwex/fmaxl.c: Ditto.
4893 * mingwex/fma.c: Ditto.
4894 * mingwex/fmaf.c: Ditto.
4895 * mingwex/fmal.c: Ditto.
4896 * mingwex/fpclassify.c: Ditto.
4897 * mingwex/fpclassifyl.c: Ditto.
4898 * mingwex/fpclassifyl.c: Ditto.
4899 * mingwex/isnan.c: Ditto.
4900 * mingwex/isnanf.c: Ditto.
4901 * mingwex/isnanl.c: Ditto.
4902 * mingwex/fucom.c: Ditto.
4903 * mingwex/fp_consts.c: Ditto. Split out float and long double
4905 * mingwex/math_stubs.c: Remove.
4906 * mingwex/log2.c: Remove. Replaced by math/log2.S
4907 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4908 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4909 * mingwex/math/acosf.c : New file.
4910 * mingwex/math/acosl.c: New file.
4911 * mingwex/math/asinf.c: New file.
4912 * mingwex/math/asinl.c: New file.
4913 * mingwex/math/atan2f.c: New file.
4914 * mingwex/math/atan2l.c: New file.
4915 * mingwex/math/atanf.c: New file.
4916 * mingwex/math/atanl.c: New file.
4917 * mingwex/math/cbrt.c: New file.
4918 * mingwex/math/cbrtf.c: New file.
4919 * mingwex/math/cbrtl.c: New file.
4920 * mingwex/math/ceilf.S: New file.
4921 * mingwex/math/ceill.S: New file.
4922 * mingwex/math/cephes_ld.h: New file.
4923 * mingwex/math/copysign.S: New file.
4924 * mingwex/math/copysignf.S: New file.
4925 * mingwex/math/cosf.S: New file.
4926 * mingwex/math/coshf.c: New file.
4927 * mingwex/math/coshl.c: New file.
4928 * mingwex/math/cosl.S: New file.
4929 * mingwex/math/exp2.S: New file.
4930 * mingwex/math/exp2f.S: New file.
4931 * mingwex/math/exp2l.S: New file.
4932 * mingwex/math/expf.c: New file.
4933 * mingwex/math/expl.c: New file.
4934 * mingwex/math/fabs.c: New file.
4935 * mingwex/math/fabsf.c: New file.
4936 * mingwex/math/fabsl.c: New file.
4937 * mingwex/math/floorf.S: New file.
4938 * mingwex/math/floorl.S: New file.
4939 * mingwex/math/fmodf.c: New file.
4940 * mingwex/math/fmodl.c: New file.
4941 * mingwex/math/fp_consts.h: Ditto.
4942 * mingwex/math/fp_constsf.c: Ditto.
4943 * mingwex/math/fp_constsl.c: Ditto.
4944 * mingwex/math/frexpf.c: New file.
4945 * mingwex/math/frexpl.S: New file.
4946 * mingwex/math/hypotf.c: New file.
4947 * mingwex/math/hypotl.c: New file.
4948 * mingwex/math/ilogb.S: New file.
4949 * mingwex/math/ilogbf.S: New file.
4950 * mingwex/math/ilogbl.S: New file.
4951 * mingwex/math/ldexpf.c: New file.
4952 * mingwex/math/ldexpl.c: New file.
4953 * mingwex/math/llrint.c: New file.
4954 * mingwex/math/llrintf.c: New file.
4955 * mingwex/math/llrintl.c: New file.
4956 * mingwex/math/llround.c: New file.
4957 * mingwex/math/llroundf.c: New file.
4958 * mingwex/math/llroundl.c: New file.
4959 * mingwex/math/log10f.S: New file.
4960 * mingwex/math/log10l.S: New file.
4961 * mingwex/math/log1p.S: New file.
4962 * mingwex/math/log1pf.S: New file.
4963 * mingwex/math/log1pl.S: New file.
4964 * mingwex/math/log2.S: New file.
4965 * mingwex/math/log2f.S: New file.
4966 * mingwex/math/log2l.S: New file.
4967 * mingwex/math/logb.c: New file.
4968 * mingwex/math/logbf.c: New file.
4969 * mingwex/math/logbl.c: New file.
4970 * mingwex/math/logf.S: New file.
4971 * mingwex/math/logl.S: New file.
4972 * mingwex/math/lrint.c: New file.
4973 * mingwex/math/lrintf.c: New file.
4974 * mingwex/math/lrintl.c: New file.
4975 * mingwex/math/lround.c: New file.
4976 * mingwex/math/lroundf.c: New file.
4977 * mingwex/math/lroundl.c: New file.
4978 * mingwex/math/modff.c: New file.
4979 * mingwex/math/modfl.c: New file.
4980 * mingwex/math/nearbyint.S: New file.
4981 * mingwex/math/nearbyintf.S: New file.
4982 * mingwex/math/nearbyintl.S: New file.
4983 * mingwex/math/nextafterf.c: New file.
4984 * mingwex/math/powf.c: New file.
4985 * mingwex/math/powl.c: New file.
4986 * mingwex/math/powil.c: New file.
4987 * mingwex/math/remainder.S: New file.
4988 * mingwex/math/remainderf.S: New file.
4989 * mingwex/math/remainderl.S: New file.
4990 * mingwex/math/remquo.S: New file.
4991 * mingwex/math/remquof.S: New file.
4992 * mingwex/math/remquol.S: New file.
4993 * mingwex/math/scalbn.S: New file.
4994 * mingwex/math/scalbnf.S: New file.
4995 * mingwex/math/scalbnl.S: New file.
4996 * mingwex/math/sinf.S: New file.
4997 * mingwex/math/sinhf.c: New file.
4998 * mingwex/math/sinhl.c: New file.
4999 * mingwex/math/sinl.S: New file.
5000 * mingwex/math/sqrt.c: New file.
5001 * mingwex/math/sqrtf.c: New file.
5002 * mingwex/math/sqrtl.c: New file.
5003 * mingwex/math/tanf.S: New file.
5004 * mingwex/math/tanhf.c: New file.
5005 * mingwex/math/tanhl.c: New file.
5006 * mingwex/math/tanl.S: New file.
5007 * mingwex/Makefile.in: Adjust VPATH for source files in
5010 Add MATH_DISTFILES and use it to build source distro.
5011 * include/math.h: Add protypes for new functions and
5012 reorganise to reflect ANSI,C99 status.
5014 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
5016 * include/tchar.h (_getts): Define as _getws for _UNICODE.
5017 (_putts): Define as _putws for _UNICODE.
5018 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
5020 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
5022 * include/float.h: #include_next<float.h> before header guard.
5024 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
5026 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
5028 * include/excpt.h (): Include windef.h not windows.h.
5029 * include/fcntl.h (_O_SHORT_LIVED): Add define.
5030 (_chmod): Add prototype.
5031 (_creat): Correct prototype.
5032 (SH_DENY*): Rename defines to _SH_DENY*.
5033 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
5034 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
5035 _IOAPPEND): Add defines.
5036 (_wfindfirst): Correct prototype.
5037 (_wfdopen): Add prototype.
5038 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
5040 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
5042 (_wcsdup): Correct prototype.
5043 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
5044 _mbsncat being in string.h.
5045 * include/wchar.h (_wfindfirst): Correct prototype.
5046 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
5048 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5050 * include/_mingw.h: Increment to version 2.1.
5051 * Makefile.in: Ditto.
5053 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5055 * Makefile.in (conf_prefix): New variable.
5056 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
5057 (bindist): Use dist_prefix.
5059 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
5061 * include/_mingw.h: Increment version to 2.0.
5062 * Makefile.in: Ditto.
5064 Merge in mingwex branch.
5066 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
5068 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
5069 * mingwex/fdim.c: New file.
5070 * mingwex/fdimf.c: New file.
5071 * mingwex/fdiml.c: New file.
5072 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
5074 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
5076 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
5078 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
5080 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
5082 * mingwex/isnanl.c: New file.
5084 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5086 * include/stdint.h: Include <stddef.h> to get wchar_t and wint_t.
5087 (WINT_MAX): Define to ((wint_t)-1).
5089 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5091 * include/wctype.h: Replace 'inline' with '__inline__'.
5092 * include/inttypes.h: Likewise.
5094 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5096 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
5097 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
5099 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5101 * mingwex/snprintf.c: Split out vsnprintf to....
5102 * mingwex/vsnprintf.c: New file.
5103 * mingwex/snwprintf.c: Split out vsnwprintf to...
5104 * mingwex/vsnwprintf.c: New file.
5105 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
5107 2002-05-15 Pascal Obry <obry@gnat.com>
5109 * include/dirent.h (DIR): Change dd_stat type to int.
5112 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
5114 * include/stdio.h (vsnprintf): Change inline to __inline__;
5115 (vsnwprintf): Likewise.
5116 * include/wchar.h (vsnwprintf): Likewise.
5119 (mbsinit): Likewise.
5121 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
5123 Change FP default precison from 53 to 64-bit mantissa.
5125 * Makefile.in (CRT0S): Add CRT_fp8.o.
5126 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
5127 * include/float.h: Replace standard float.h defines with
5128 #include_next<float.h> to use GCC's defines. Adjust comments
5131 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5133 * include/dos.h: Change prefix "__imp_" to "_imp__" for
5134 __GNUC__ without __DECLSPEC_SUPPORTED.
5135 * include/fnctl.h: Likewise.
5136 * include/math.h: Likewise.
5137 * include/stdio.h: Likewise.
5138 * include/stdlib.h: Likewise.
5139 * include/time.h: Likewise.
5140 * include/wctype.h: Likewise.
5141 * include/ctype.h: Likewise.
5143 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5145 Add atexit support for dlls.
5146 * crt1.c (atexit): Force thunk to _imp__atexit.
5147 (_onexit): Force thunk to _imp___onexit.
5148 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
5149 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
5150 (__dll_exit): New function to run atexit-registered functions
5151 and flush output buffers on DLL_PROCESS_DETACH or failed
5153 (atexit): Force use of private atexit table via _dllonexit,
5154 (_onexit): New function. Force use of private atexit table via
5156 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
5157 _imp_<_symbol> is visible in import lib.
5158 * msvcrt20.def: Likewise.
5159 * msvcrt40.def: Likewise.
5160 * crtdll.def: Likewise.
5162 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5164 * include/fenv.h: Change header guard macro to _FENV_H_.
5165 (fenv_t, fexcept_t): Move into block protected by
5167 Cleanup some whitespace.
5168 * include/inttypes.h: Change header guard macro to
5171 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5173 * include/math.h (copysignl): Declare.
5174 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
5175 (MATHOBJS):Add copysignl.o.
5177 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5179 * include/math.h (__signbitl, __isnanl): Declare.
5181 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5183 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
5184 roundl, truncl, fmal, log2l): Declare.
5185 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
5186 || !defined __STRICT_ANSI__.
5187 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
5188 * mingwex/fmin.c (fmin): Likewise.
5189 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
5190 * mingwex/fminf.c (fminf): Likewise.
5191 * mingwex/fmaxl.c: New file.
5192 * mingwex/fminl.c: New file.
5193 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
5194 * mingwex/fpclassifyf.c: New file.
5195 * mingwex/fpclassifyl.c: New file.
5196 * mingwex/rint.c (rintf): Split out to...
5197 * mingwex/rintf.c: New file.
5198 * mingwex/rintl.c: New file.
5199 * mingwex/round.c (roundf): Split out to...
5200 * mingwex/roundf.c: New file.
5201 * mingwex/roundl.c: New file.
5202 * mingwex/trunc.c (truncf): Split out to...
5203 * mingwex/truncf.c: New file.
5204 * mingwex/truncl.c: New file.
5205 * mingwex/signbit.c (signbitf): Split out to...
5206 * mingwex/signbitf.c: New file.
5207 * mingwex/signbitl.c: New file.
5208 * mingwex/fmal.c: New file.
5209 * mingwex/copysignl.S: New file.
5210 * mingwex/log2l.c: New file.
5211 * mingwex/fp_consts.c: Add nanl definition.
5212 Comment out unused constants.
5213 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
5214 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
5215 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
5217 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
5218 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
5219 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
5221 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
5223 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
5225 Make wide char versions of opendir and friends.
5227 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
5229 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
5230 _wseekdir): Add prototypes for wide versions of corresponding
5232 * include/tchar.h; Add _UNICODE mappings for dirent.h
5233 structures and functions.
5234 * mingwex/dirent.c: Make _UNICODE neutral.
5235 * mingwex/wdirent.c: New file to define _UNICODE before
5237 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
5238 (POSIX_OBJS): Add wdirent.o.
5239 (wdirent.o): Specify dependency on dirent.c as well as
5241 * samples/dirent/wtest.c: New file, wide version of test.c.
5243 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5245 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
5246 ensure gcc include dir is searched despite -nostdinc.
5247 * profile/Makefile.in (INCLUDES): Likewise.
5248 * mingwex/Makefile.in (INCLUDES): Likewise.
5249 * include/stdarg.h: Replace with stub that just guards the
5250 real gcc system header with #ifndef RC_INVOKED
5251 * include/varargs.h: Likewise.
5252 * include/stddef.h: Likewise.
5253 * include/stdio.h: Include stdarg.h after defining
5255 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
5256 Replace va_list with __VALIST throughout.
5258 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5260 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
5261 * msvcrt.def (_fpreset): Mark as DATA so that only
5262 _imp___fpreset is exported.
5263 * msvcrt20.def (_fpreset): Likewise.
5264 * msvcrt40.def (_fpreset): Likewise.
5265 * crtdll.def (_fpreset): Likewise.
5266 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
5268 (fpreset): Add alias.
5269 (__CRT_PC): Delete definition. _fpreset does it now.
5270 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
5271 (fpreset): Add alias.
5272 (__CRT_PC): Delete definition.
5273 * moldname.def.in: Comment out fpreset.
5274 * moldname-msvcrt.def: Regenerate.
5275 * moldname-crtdll.def: Regenerate.
5276 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
5277 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
5278 with the _fpreset determined by startup CRT_fp object.
5280 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
5282 * CRT_fp8.c: New file.
5283 * CRT_fp10.c: New file.
5284 * crt1.c (__CRT_PC) Declare.
5285 (__CRT_fesetenv): New static function, using _CRT_PC.
5286 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
5287 (_gnu_exception_handler): Likewise.
5288 * Makefile.in (CRT0S): Add CRT_fp10.o.
5289 (MINGW_OBJS): Add CRT_fp8.o.
5290 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
5291 Add CRT_fp8.o, CRT_fp10.o dependancies.
5292 * include/float.h (_fpreset): Expand comment.
5293 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
5294 (extended precison) environmemt.
5295 (FE_PC53_ENV): New define for MSVCRT default environmemt.
5296 (FE_DFL_ENV): Define as FE_PC53_ENV.
5297 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
5298 precision control for default environment.
5300 * include/math.h: Fix long comment line.
5301 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
5303 * profile/configure: Regenerate.
5305 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
5307 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
5309 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
5311 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
5312 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
5313 (__mingw_fseek): New function to work around Win9x f/lseek bug.
5314 (__mingw_fwrite): Likewise.
5315 (__mingw_is_win9x): New helper function.
5317 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
5318 (__mingw_fseek): New prototype and define to replace fseek.
5319 (__mingw_fwrite): New prototype and define to replace fwrite.
5320 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
5321 * moldname-crtdll.def: Remove CR from end of line.
5322 * moldname-msvcrt.def: Ditto.
5324 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
5326 * profile/configure.in (CRT0S): Configure name of gcrt?.o
5327 based on target, building gcrt0.o for cygwin -mno-cygwin.
5328 * profile/configure: Regenerate.
5329 * profile/Makefile.in (CRT0S): Use name from configure.
5330 (gcrt0.o): New rule.
5331 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
5333 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5335 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
5336 _fpecode): Remove prototypes copied from float.h.
5337 (nan, nanf): Move into block protected against RC_INVOKED
5339 * include/stdlib.h (_Exit): Change from static inline to
5341 * mingwex/_Exit.c : New file.
5342 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
5344 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5346 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
5347 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
5348 (configdirs): Likewise.
5349 (LIBGMON_A): Define for cygwin target as well.
5350 * configure: Regenerate.
5351 * profile/configure.in (THREAD_DLL): Remove define.
5352 (LIBM_A): Remove define.
5353 (LIBGMON_A): Define for cygwin target as well.
5354 * profile/configure: Regenerate.
5355 * profile/makefile.in (install): Install to inst_libdir and
5357 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
5358 (OPTFLAGS): New define.
5359 (ALL_CFLAGS): Add $(OPTFLAGS).
5360 (ALL_CXXFLAGS): Same.
5361 (.c.o:): Remove ALL_CXXFLAGS.
5363 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
5365 * include/stdint.h: Add missing newline at eof.
5366 * include/stdio.h (snprintf): Add prototype.
5367 (vsnprintf): Add prototype and inline definition.
5368 (snwprintf): Add prototype.
5369 (vsnwprintf): Add prototype and inline definition.
5370 * include/wchar.h (snwprintf): Add prototype.
5371 (vsnwprintf): Add prototype and inline definition.
5372 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
5374 * mingwex/snprintf.c: New file.
5375 * mingwex/snwprintf.c: New file.
5377 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
5379 * configure.in: Add mingwex as SUBDIRS and configdirs.
5380 * configure: Regenerate.
5381 * Makefile.in (MINGW_OBJS): Remove dirent.o.
5382 (SRC_DIST_FILES): Remove dirent.c.
5384 * include/stdlib.h (_Exit): Add static inline
5386 (struct lldiv_t): Define.
5387 (lldiv): Add prototype.
5388 (llabs): Add extern inline function.
5389 (strtoll,strtoull): Add prototypes.
5390 (wcstol, wcstoul, wcstod): Group together.
5391 (strtof, wcstof): Add extern inline definitions.
5392 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
5393 and extern inline definitions.
5394 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
5395 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
5397 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
5398 (wcstof): Add extern inline definition.
5399 * include/math.h (nan, nanf): Add prototypes.
5400 (NAN, INFINITE): Define constants.
5401 (fpclassify, isnan ,signbit): Add macros and supporting float
5402 and double functions.
5403 (isfinite, isinf, isnormal): Add macros.
5404 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
5406 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
5407 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
5408 (copysign, logb, nextafter, scalb): Add prototypes and
5409 inline stubs for underscored versions in msvcrt.dll.
5410 * include/inttypes.h: New file.
5411 * include/fenv.h: New file
5413 Add new mingwex subdir and files.
5414 * mingwex: New directory.
5415 * mingwex/Makefile.in: New file.
5416 * mingwex/configure.in: New file.
5417 * mingwex/configure: Generate.
5418 * mingwex/dirent.c: Moved here from parent dir.
5419 * mingwex/atoll.c: New file.
5420 * mingwex/feclearexcept.c: New file.
5421 * mingwex/fegetenv.c: New file.
5422 * mingwex/fegetexceptflag.c: New file.
5423 * mingwex/fegetround.c: New file.
5424 * mingwex/feholdexcept.c: New file.
5425 * mingwex/feraiseexcept.c: New file.
5426 * mingwex/fesetenv.c: New file.
5427 * mingwex/fesetexceptflag.c: New file.
5428 * mingwex/fesetround.o: New file.
5429 * mingwex/fetestexcept.c: New file.
5430 * mingwex/feupdateenv.c: New file.
5431 * mingwex/fma.S: New file.
5432 * mingwex/fmaf.S: New file.
5433 * mingwex/fmax.c: New file.
5434 * mingwex/fmaxf.c: New file.
5435 * mingwex/fmin.c: New file.
5436 * mingwex/fminf.c: New file.
5437 * mingwex/fp_consts.c: New file.
5438 * mingwex/fpclassify.c: New file.
5439 * mingwex/fucom.c: New file.
5440 * mingwex/fwide.c: New file.
5441 * mingwex/imaxabs.c: New file.
5442 * mingwex/imaxdiv.c: New file.
5443 * mingwex/isnan.c: New file.
5444 * mingwex/isnanf.c: New file.
5445 * mingwex/lltoa.c: New file.
5446 * mingwex/lltow.c: New file.
5447 * mingwex/log2.c: New file.
5448 * mingwex/log2f.c: New file.
5449 * mingwex/math_stubs.c: New file.
5450 * mingwex/mbsinit.c: New file.
5451 * mingwex/rint.c: New file.
5452 * mingwex/round.c: New file.
5453 * mingwex/signbit.c: New file.
5454 * mingwex/sitest.c: New file.
5455 * mingwex/strtof.c: New file.
5456 * mingwex/strtoimax.c: New file.
5457 * mingwex/strtoumax.c: New file.
5458 * mingwex/testwmem.c: New file.
5459 * mingwex/trunc.c: New file.
5460 * mingwex/ulltoa.c: New file.
5461 * mingwex/ulltow.c: New file.
5462 * mingwex/wcstof.c: New file.
5463 * mingwex/wcstoimax.c: New file.
5464 * mingwex/wcstoumax.c: New file.
5465 * mingwex/wmemchr.c: New file.
5466 * mingwex/wmemcmp.c: New file.
5467 * mingwex/wmemcpy.c: New file.
5468 * mingwex/wmemmove.c: New file.
5469 * mingwex/wmemset.c: New file.
5470 * mingwex/wtoll.c: New file.
5472 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5474 * include/mbstring.h: New file.
5475 * include/mbctype.h: New file.
5477 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5479 * include/tchar.h (__TEXT): Make same as define in
5480 w32api/include/winnt.h.
5482 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5484 * include/tchar.h (_tputenv): Add UNICODE mappings.
5485 (_tsearchenv): Likewise.
5486 (_tmakepath): Likewise.
5487 (_tsplitpath): Likewise.
5488 (_tfullpath): Likewise.
5490 2002-04-18 Pascal Obry <obry@gnat.com>
5492 * dirent.c (opendir): Convert given pathname to
5495 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5497 * include/_mingw.h: Increment version.
5498 * Makefile.in: Ditto.
5500 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5502 * moldname-crtdll.def: Remove CR from end of line.
5503 * moldname-msvcrt.def: Ditto.
5504 * Makefile.in: Use bzip2 compression for Cygwin target.
5506 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
5508 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
5509 TLOSS, PLOSS): Move oldname defines back, following
5510 the underscored names.
5512 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
5514 * include/stdio.h (_snwprintf): Correct spelling.
5515 (_vsnwprintf): Likewise.
5516 * include/wchar.h (_snwprintf): Correct spelling.
5517 (_vsnwprintf): Likewise.
5519 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
5521 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
5522 (wpopen): Add if !(__CRTDLL__).
5523 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
5525 (moldname-crtdll.def rule): Likewise.
5526 * moldname-msvcrt.def: Regenerate.
5527 * moldname-crtdll.def: Regenerate.
5528 * include/stdio.h (wpopen):Use prototype, not a define.
5529 (_swnprintf): Add prototype.
5530 (_vswnprintf): Likewise.
5532 * include/wchar.h (_swnprintf): Add prototype.
5533 (_vswnprintf): Likewise.
5536 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5538 * include/malloc.h (_heapinfo): Correct structure definition.
5539 (_USEDENTRY,_FREEENTRY): Add defines.
5540 Add comment on platform support for _heap* functions.
5541 (_get_sbh_threshold): Add prototype.
5542 (_set_sbh_threshold): Likewise.
5543 (_expand): Likewise.
5545 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5547 * profile/profil.c: Update copyright info.
5548 * profile/profil.h: Likewise.
5549 * profile/gcrt0.c: Likewise.
5551 2002-01-25 Pascal Obry <obry@gnat.com>
5553 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5555 * profile/gmon.c: Define bzero as memset if mingw32.
5556 (monstartup): Use it.
5558 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5560 * include/tchar.h (_TCHAR): Add missing ;.
5562 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5564 * include/tchar.h (_TCHAR): Add typedefs.
5566 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5568 * include/stdlib.h (_onexit_t): Add typedef.
5569 (_onexit): Add prototype.
5571 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5573 * msvcrt.def: Revert accidental change.
5574 * include/stdlib.h: Ditto.
5576 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5578 * Makefile.in: Increment VERSION.
5579 * include/_mingw.h: Ditto.
5581 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5583 * include/strings.h: New File.
5585 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5587 * include/math.h (_FPCLASS* ): Add defines from float.h.
5588 (IEEE recommended functions): Add declarations from float.h.
5589 * include/float.h (_FPCLASS* ): Protect against redefinition.
5591 2001-11-29 Wu Yongwei <adah@netstd.com>
5593 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5594 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5595 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5596 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5597 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5598 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5599 Correct spelling of "disclaimed" in comments.
5600 * include/excpt.h: Another spelling correction.
5602 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5604 * include/errno.h: Fix "errno is not a prototype" warning.
5606 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
5608 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
5609 differences between ANSI and non-ANSI versions.
5610 (_ctype[],_pctype): Declare vars.
5611 (__ISCTYPE): New helper macro using _pctype.
5612 (is* ctype functions): Use __ISCTYPE to define inline versions.
5613 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
5615 (isw* ctype functions): Inline definitions.
5616 * include/wctype.h (_ctype[],_pctype): Declare vars.
5617 (isw* ctype functions): Inline definitions.
5620 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5622 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
5623 __fpecode): Use __STDC__ prototypes.
5626 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
5628 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
5629 * mthr_init.c (DllMain) Run dtors if a process terminates.
5630 * mthr.c (__mingwthr_add_key_dtor) Removed.
5631 (___mingwthr_add_key_dtor) New.
5632 (___mingwthr_remove_key_dtor) New.
5633 (__mingwthr_run_key_dtors) Complete rewrite.
5634 (__mingwthr_remove_key_dtor) New.
5636 2001-11-05 Egor Duda <deo@logos-m.ru>
5638 * Makefile.in: Delete unused executable after creating base-files.
5640 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5642 * include/errno.h (_errno): Use __STDC__ prototype.
5643 Thanks to: Jim Barton.
5645 2001-11-04 "stefan" <stefan@lkcc.org>
5647 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
5649 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5651 * include/io.h (_commit): Add declaration.
5652 Thanks to: "stefan" <stefan@lkcc.org>
5654 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5656 * include/sys/stat.h: Make S_IS* macros safer.
5658 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
5660 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
5662 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5664 * include/stdlib.h (__p__environ, __p__wenviron): Use
5665 __STDC__ prototypes.
5667 2001-09-19 Earnie Boyd <earnie@SF.net>
5669 * Makefile.in: Remove the /usr from the install target.
5670 (VERSION): Increment.
5671 include/_mingw.h: Ditto.
5673 2001-09-17 Earnie Boyd <earnie@SF.net>
5675 * Makefile.in: Increment version.
5676 * include/_mingw.h: Ditto.
5678 2001-09-10 Earnie Boyd <earnie@SF.net>
5680 * dossh: Remove inadvertantly imported file.
5682 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5684 * dirent.c (opendir): Use GetFileAttributes rather than stat
5685 to determine if input arg is dir.
5687 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
5689 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5691 * include/varargs.h (va_list): Ditto.
5692 * include/stdio.h (va_list): Ditto.
5694 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5696 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5697 * include/stdio.h (_IORW): Change constant to 0x0080.
5698 (TMP_MAX): Add new define.
5700 (_wP_tmpdir): Ditto.
5701 (L_tmpnam): Change constant to 16.
5703 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
5705 * include/malloc.h: Fix non-ANSI comment after #endif.
5707 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5709 * profile/configure.in: Make msvcrt.dll version default.
5710 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
5711 * provile/configure: Regenerate.
5713 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
5715 * include/stdio.h (swscanf): Make first arugument const.
5716 * include/wchar.h (swscanf): Ditto.
5717 * include/tchar.h (_tfopen): New _UNICODE define.
5719 (_tsetlocale): Ditto.
5721 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5723 * profile/Makefile.in (mkinstalldirs): Correct relative path.
5725 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5727 * include/_mingw.h: Change version to 1.0.
5730 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
5732 * include/tchar.h: (__TEXT): Remove undef.
5736 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5738 * include/tchar.h: (__TEXT): Add private macro.
5739 (_TEXT): Modify definition to use __TEXT.
5741 This change allows the passing of a MACRO as an argument and have that
5742 MACRO resolved first.
5743 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5745 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5747 * Makefile.in: Increment version to 0.5
5748 * include/_mingw.h: Increment minor version
5750 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5752 * include/assert.h: (assert): Remove ; from end of definition
5753 Thanks to: AJ Reins <tbisp@qwest.net>
5755 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5757 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5758 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5760 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5762 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5764 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5766 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5767 are actually C functions. These functions are resolved via the
5768 -lmsvcp60 library and comments were placed in the header.
5770 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5772 * include/stdlib.h (__p__pgmptr): add prototype.
5773 (__p__wpgmptr): likewise.
5774 (_pgmptr_dll): move declaration from dos.h.
5775 (_wpgmptr_dll): likewise.
5776 (_pgmptr): conditional define (MSVCT/CRTDLL).
5777 (_wpgmptr): likewise.
5778 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5779 (_os*_dll variables): likewise.
5780 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5781 (_wpgmptr_dll): likewise.
5783 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5785 * include/stdint.h: New file.
5787 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5789 * include/wchar.h: Protect prototypes only declared in the C++ STL
5790 from being declared unless __cplusplus is defined.
5792 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5794 * include/stdlib.h: Apply Danny Smith patch 102730
5795 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5796 (_wgetenv) Correction to return type.
5798 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5800 * include/locale.h: Apply Danny Smith patch 101834
5801 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5802 (LC_MIN) Add definition.
5804 (_wsetlocale) Add prototype.
5806 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5808 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5809 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5810 Create a libcoldname.a for the oldname library for CRTDLL.
5811 Restrict libmoldname.a for the oldname library for MSVCRT.
5812 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5813 Restructure the $target_os case logic.
5814 Always name the MinGW thread dll helper mingwm.
5815 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5816 * configure: regenerate.
5818 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5820 * Makefile.in: Fix bindist target to distribute the correct files.
5821 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5822 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5824 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5826 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5827 Add variables and targets to control binary and source distributions.
5828 Add variables and targets to control snapshot distribution.
5829 * profile/gmon.h: Add missing #endif for #ifndef.
5830 * profile/ChangeLog: Merge entries here and remove.
5831 * profile/Makefile.in: Add variables and targets to control
5835 * config.guess: ditto.
5836 * config.sub: ditto.
5837 * mkinstalldirs: ditto.
5838 * install-sh: ditto.
5839 * configure: regenerate.
5840 * profile/configure: ditto.
5842 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5844 * Merge in changes from
5845 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5846 * include/direct.h: add guard around MSVCRT-only prototytpes
5847 * include/io.h: add __int64 struct definitions and function prototypes;
5848 add guard for MSVCRT-only prototypes
5849 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5850 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5851 put wchar functions together to make sync with wchar.h easier
5852 * include/stdlib.h: add wide char functions (__MSVCRT__)
5853 * include/string.h: add string collation functions ( __MSVCRT__)
5854 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5855 * include/tchar.h: add macros and macro function definitions
5856 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5857 enclose more functions in __MSVCRT__ guard;
5858 some oldname wide char function prototypes #if (0)'d
5859 * profile/gmon.h: add guard around BSD-ish typedefs
5861 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5863 * Makefile.in: Use a different variable name for subdirectory since the
5864 previous one was used by the top level make.
5866 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5868 * Makefile.in: Install mingw stuff in a subdirectory if building under
5871 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5873 * Makefile.in (subdirs): Eliminate for loop.
5875 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5877 * Makefile.in (subdirs): Previous change did not fix problem in
5880 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5882 * Makefile.in: Avoid installing dll if we're cross building and the
5883 cross-host system isn't a Windows system.
5884 * configure.in: Detect cross-hosting situation and set appropriate
5885 variables in Makefile.in.
5886 * configure: Regenerate.
5888 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5890 * configure.in: Change HEADER_SUBDIR to mingw32.
5891 * configure: Regenerate.
5893 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5895 * include/string.h: Use proper prototype for _strerror.
5897 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5899 * Makefile.in (subdirs): Workaround for broken shells.
5901 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5903 * Snapshot 2000-02-03.
5905 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5906 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5907 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5908 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5911 * Makefile.in (all): Build CRT0S first.
5912 (libmingwthrd.a): Remove thread support DLL from dependency.
5914 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5916 * Snapshot 2000-01-21.
5918 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5920 Merge in changes from Cygwin:
5921 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5922 (SUBDIRS): Likewise.
5923 * Makefile.in (HEADER_SUBDIRS): New variable.
5924 (install): Use to install Mingw headers to a subdirectory if building
5926 (DLL_CC_STUFF): Add DLL entry point.
5927 * configure: Regenerate.
5929 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5931 * include/stdio.h (fsetpos): Fix prototype.
5932 (fpos_t): Fix for MSVCRT.
5933 * include/float.h (fpreset): Add prototype.
5934 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5936 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5937 export using libmoldname.a.
5938 * crtdll.def: Add DATA tags.
5939 * msvcrt.def: Likewise.
5940 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5941 both MSVCRT and CRTDLL.
5942 * moldname-crtdll.def: Regenerate.
5943 * moldname-msvcrt.def: Regenerate.
5945 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5947 * Snapshot 1999-12-21.
5949 * include/wctype.h: New file.
5950 * include/ctype.h (MB_CUR_MAX): Define.
5952 * include/stdlib.h (MB_CUR_MAX): Define.
5953 * include/wchar.h: Define stat, _stat structures here as well.
5954 * include/float.h: Add invalid subconditions (_SW) and floating
5955 point error (_FPE) macros.
5956 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5957 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5958 * include/sys/types.h: Likewise.
5960 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5962 * profile/profil.c (profile_on): Set the profiler thread priority to
5963 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5964 * Snapshot 1999-11-18.
5966 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5968 Released 1999-11-07.
5970 * Makefile.in (CRT0S): Add crtst.o.
5971 (install): Install in subdirs as well.
5972 * dirent.h (struct _stat): Rename from struct stat.
5973 * include/tchar.h: Add some new macros. Thanks to
5974 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5975 * profile/Makefile.in (install): Fix target.
5977 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5979 * Makefile.in: Add support for profile directory.
5980 * configure.in: Likewise.
5981 * configure: Regenerate.
5983 * profile: Imported profiling sources from winsup-19991026 snapshot.
5984 * profile/Makefile.in: New file.
5985 * profile/configure.in: New file.
5986 * profile/configure: Generate.
5987 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5988 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5989 * profile/gmon.c (unistd.h): Include conditionally.
5990 (sys/param.h): Likewise.
5991 * profile/mcount.c (sys/param.h): Likewise.
5992 * profile/profil.c (profile_on): thread id is DWORD, not int.
5995 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5997 * include/stdlib.h: Add wide character version of argv/environ.
5999 * include/wchar.h: More wide character prototypes.
6000 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
6002 * dllcrt1.c (init.c): Don't include.
6003 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
6004 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
6006 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
6008 * moldname.def: Remove file.
6009 * moldname.def.in: And add this.
6010 * moldname-msvcrt.def: Generate from moldname.def.in.
6011 * moldname-crtdll.def: Likewise.
6013 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
6014 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
6015 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
6017 * Makefile.in: Update.
6018 * configure.in: Likewise. Also add *cygwin* target for building
6019 under Cygwin winsup.
6020 * configure: Regenerate.
6022 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
6024 * include/_mingw.h: Add version macros.
6025 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
6026 Also add wide character versions shared with wchar.h.
6027 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
6028 * include/io.h (sopen, _sopen): Fix prototype.
6029 Add wide character prototypes.
6030 * include/wchar.h: Likewise.
6031 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
6032 underscored versions. Potential incompatibility.
6033 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
6034 Add wide character prototypes.
6035 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
6038 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
6040 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
6041 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
6043 * configure: Rengerate.
6044 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
6045 dll name and crt's. CRTDLL and MSVCRT are meant to created
6046 separately, so remove all the *-msvcrt* targets.
6047 (libmingwthr.a): New target. Dummy thread support archive.
6048 (LIBS): Add libmingwthr.a.
6049 (CRT0S): Use CRT_ID. Add crtmt.o.
6050 (MINGW_OBJS): Add crtst.o.
6051 * main.c (WinMain): Fix prototype.
6052 * crtmt.c: New file.
6053 * crtst.c: New file.
6055 * include/process.h (_beginthreadex): Fix prototype.
6056 * include/_mingw.h (__int64): Define for __GNUC__.
6057 * include/tchar.h (_ttol): Add macro.
6058 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
6059 _i64tow, _ui64tow, _wtoi64): Add prototypes.
6061 Reported by Emanuele Aliberti <ea@iol.it>:
6062 * include/tchar.h (_ttoi): Add macro.
6064 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
6065 * include/stdio.h (_snprintf): Add prototype.
6066 (_vsnprintf): Likewise.
6068 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
6070 Reported by Tor Lillqvist <tml@iki.fi>:
6071 * include/stdlib.h (__p___argv): Fix return type.
6073 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6076 * include/errno.h (errno): It's linked in from startup, not imported.
6077 * include/stdlib.h (errno): Likewise.
6078 * include/io.h: Guard against conflicting macros and prototypes in
6080 * include/stdlib.h: Likewise.
6081 * include/string.h: Likewise.
6082 * include/time.h: Likewise.
6084 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6086 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
6087 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
6088 * Makefile.in (INCLUDES): Remove old windows32 include directory.
6090 * crt1.c (_gnu_exception_handler): Fix prototype.
6091 (__mingw_CRTStartup): New function based on mainCRTStartup.
6092 (mainCRTStartup): Set the app type for MSVCRT and call
6094 (WinMainCRTStartup): Likewise.
6095 * init.c (_startupinfo): Define.
6096 (_getmainargs): Add 5th parameter.
6097 (_mingw32_init_mainargs): Use.
6099 * ALL *.c files: Reformat according to GNU coding style.
6101 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
6103 * Makefile.in (INCLUDES): Add w32api include directory.
6105 * include/_mingw.h: New file.
6106 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
6107 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
6108 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
6109 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
6110 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
6111 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
6113 * include/stdlib.h (atexit): Fix prototype.
6115 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
6117 * include/stdio.h (_tempnam): Fix prototype.
6118 (tempnam): Likewise.
6119 * include/stdlib.h: Replace with GCC's version, and guard
6122 From Anders Norlander <anorland@hem2.passagen.se>:
6123 * include/stdlib.h (__argc): Declare.
6126 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
6128 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
6130 * Makefile.in (_libm_dummy.o): New target.
6133 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
6135 * Released 1999-03-16 along with egcs-1.1.2.
6137 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
6139 * Makefile.in (LIBS): Add libm.a.
6140 (libm.a): Dummy libm.a.
6142 * Makefile.in: Update from winsup 1999-02-08 snapshot.
6143 Preserve local changes.
6144 (mkinstalldirs): In ../, not ../../.
6145 (INCLUDES): Point to local windows32api headers and use -nostdinc.
6147 (LIBS): Add libmoldname-msvc.a.
6148 (libmoldname-msvc.a): Add target.
6149 (distclean): Add target.
6151 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
6153 * include/dir.h: Reintroduce as an obsolescent header.
6154 * crt1.c (signal.h): Include.
6155 (_gnu_exception_handler): New function to properly handle win32
6156 asynchronous signals.
6157 (mainCRTStartup): Use.
6159 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
6161 * include/direct.h: Include io.h instead of dir.h
6162 * include/dirent.h: Likewise.
6163 * include/dos.h: Likewise.
6164 * include/stdio.h: Replace reference to dir.h with io.h.
6166 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
6168 * 1999-01-01 release bundled with egcs-1.1.1.
6170 * include/io.h: Incorporate dir.h.
6171 * include/dir.h: Remove.
6172 * include/signal.h: Move RC_INVOKED up a bit.
6174 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
6176 * include/signal.h (sig_atomic_t): Define.
6178 * include/malloc.h: Import defs from deprecated alloc.h.
6179 * include/alloc.h: Remove.
6181 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
6182 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
6183 * include/sys/stat.h (struct stat): st_uid is of type short. Use
6184 _off_t instead of long for st_size.
6186 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
6188 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
6189 * include/stdlib.h: Here.
6191 * include/netdb.h: Remove.
6192 * include/arpa/inet.h: Remove.
6193 * include/netinet/in.h: Remove.
6194 * include/sys/socket.h: Remove.
6196 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
6200 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
6201 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
6203 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6205 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
6206 (jmpbuf): typedef using above.
6207 (setjmp, longjmp): Prototype using jmpbuf.
6209 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
6210 obsolescent imported names, ie., from __imp__ to _imp___.
6212 Also ignored empty include/sys/param.h and incorrect
6213 include/sys/times.h.
6215 * CRTinit.c: New file.
6216 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
6218 * include/io.h (umask): Fix prototype.
6219 * include/stdlib.h (OS constants): Replace with Colin's.
6220 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
6221 * include/sys/state.h: Merge.
6223 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6225 * include/assert.h (assert): Lose the trailing semicolon.
6227 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6229 * include/math.h (matherr): Declare.
6230 * include/stdio.h (fileno, _fileno): Declare.
6231 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
6234 * include/stdio.h (fdopen, _fdopen): Add const.
6235 (getw, putw): Declare.
6236 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
6238 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
6240 * include/time.h (_timezone): Undefine.
6241 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
6243 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
6245 * include/stdlib.h (environ): Use DLL version.
6246 * init.c (environ): Undefine it before use.
6248 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
6250 * Update to 980309 snapshot from Colin Peters.
6252 * include/utime.h: remove
6253 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
6254 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
6255 patches to define these.
6256 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6257 (_daylight, _timezone, _tzname, _tzset): Define.
6259 * include/netdb.h: Add from Colin's windows32api changes.
6260 * include/sys/socket.h: Likewise.
6261 * include/arpa/inet.h: Likewise.
6262 * include/netinet/in.h: Likewise.
6264 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
6266 * Update to 980128 snapshot from Colin Peters.
6268 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
6270 * configure.in (AC_INIT): Use dllmain.c instead of defunct
6272 * configure: Regenerate.
6274 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
6276 * Update to 971205 snapshot from Colin Peters. Lots of changes.
6277 Files renamed and include hierarchy loses directories named
6280 * include/dos.h: from Jan-Jaap.
6282 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
6284 Changes to conform to FSF tree.
6286 * crt1.c: Renamed from mcrt0.c.
6287 * dllcrt1.c: Renamed from dllcrt0.c.
6288 * Makefile.in: Update above. Also renamed libmoldnames.a to
6291 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
6293 * crtdll.def: Export all functions but the ones with funny names.
6294 * moldnames.def: Add fdopen since fileno is already there.
6295 * include/nonansi/dos.h: New file from Jan-Jaap.
6296 * include/errno.h: Add extern decl + various additions from JJ.
6297 * include/stdio.h: Likewise.
6298 * include/stdlib.h: Likewise.
6299 * include/nonansi/io.h: Likewise.
6300 * include/nonansi/process.h: Likewise.
6301 * include/sys/types.h: Likewise.
6303 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6305 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6307 * include/stdlib.h (free): Fix prototype to return void, not void*.
6308 * include/nonansi/process.h: Add P_* and WAIT_* defs.
6310 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
6311 * mcrt0.c: Likewise.
6313 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
6314 (libmoldnames.a): Add explicit rule to create it.
6316 1997-08-15 Rob Savoye <rob@cygnus.com>
6318 New directory for the minimalist cygwin environment.
6320 * crtglob.c: New file. Turn on file globbing support.
6321 * crt_noglob.c: New file. Turn off file globbing support.
6322 * ctype_old.c: New file. Wrappers for functions that don't
6324 * dirent.c: New file. Directory routines readdir, opendir, closedir.
6325 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
6326 * dllmain.c: New file. A stub DllMain function.
6327 * hugeval.c: New file. A gross hack to define HUGE_VAL.
6328 * init.c: New file. Common code to initialize standard file
6329 handles and command line arguments.
6330 * main.c: New file. A main for programs that only call WinMain.
6331 * mcrt0.c: New file. Default crt0 for mingw32.
6332 * oldnames.c: New File. Wrappers for functions that don't
6334 * string_old.c: New File.
6335 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
6336 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
6337 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
6338 * include/sys/types.h: New header file for mingw.
6339 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
6340 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
6341 utime.h,values.h,varargs.h}: New header files for mingw.
6342 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
6343 timeb.h,unistd.h}: New header files for mingw.
6344 * Makefile.in,configure.in: Build and configure support.
6345 * configure: Generated from autoconf 2.12 with Cygnus patches.