1 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Discard redundant config.guess and config.sub files.
5 * config.guess config.sub: Delete them; they are no longer required.
7 2016-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
9 Merge recent legacy branch updates to 5.0-active branch.
11 * Makefile.in include/ctype.h include/excpt.h include/stdint.h
12 * include/glob.h include/limits.h include/locale.h include/search.h
13 * include/stdio.h include/stdlib.h include/wchar.h include/wctype.h
14 * include/sys/param.h include/sys/stat.h mingwex/tdelete.c
15 * mingwex/tfind.c mingwex/tsearch.c mingwex/twalk.c: Updated.
17 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
19 Prepare and tag all files for release of mingwrt-3.22.
21 * configure.ac (AC_INIT): Adjust package version number.
23 2016-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
25 Preserve kludge to evade GCC build failure on S_ISBLK misuse.
27 * include/sys/stat.h (_NO_UNSUPPORTED): New feature test macro; it
28 should be user defined, if desired, before inclusion; leave undefined.
29 [!_S_IFBLK && !_NO_UNSUPPORTED && !_NO_OLDNAMES] (S_ISBLK): Define it,
30 as appropriate for POSIX conforming usage; do not poison it.
32 2016-07-10 Keith Marshall <keithmarshall@users.sourceforge.net>
34 Fix C++ strict type checking inconsistency in <glob.h>
36 * include/glob.h (__ERRFUNC_P): New private macro; define it to match
37 the type signature of the error function pointer, to be passed to...
38 (glob): ...this function; use it to correctly represent error function
39 pointer argument in inline implementation.
41 2016-07-09 Keith Marshall <keithmarshall@users.sourceforge.net>
43 Factor out <ctype.h> vs. <wctype.h> duplicate elements.
45 * include/ctype.h: Assert copyright; tidy layout.
46 [!_CTYPE_H_]: Do not evaluate; rename macro to be tested, as...
47 [!_CTYPE_H]: ...this preferred multiple inclusion guard macro name.
48 (__CTYPE_H_SOURCED__): New macro; define it, and include <wctype.h>,
49 so requesting partial inclusion, to retrieve definitions for...
50 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
51 (_UPPER, WEOF): ...these macros; hence, do not define them locally.
52 (wint_t, wchar_t, wctype_t): Likewise these type definitions...
53 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
54 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
55 (iswupper, iswxdigit, towlower, towupper, is_wctype): ...these function
56 prototypes, and corresponding inline alternative implementations.
57 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
58 [__MSVCRT_VERSION__<=__MSVCR70_DLL]: Likewise.
60 * include/wctype.h: Assert copyright; tidy layout.
61 [!_WCTYPE_H_]: Do not evaluate; rename macro to be tested, as...
62 [!_WCTYPE_H]: ...this preferred multiple inclusion guard macro name;
63 do not define it when partial inclusion only is selected, by...
64 [__CTYPE_H_SOURCED__]: ...this; thence define only...
65 (_ALPHA, _BLANK, _CONTROL, _DIGIT, _HEX, _LOWER, _PUNCT, _SPACE)
66 (_UPPER): ...these character characterisation macros...
67 (wint_t, wchar_t, wctype_t): ...these type definitions...
68 (iswalnum, iswalpha, iswascii, iswblank, iswcntrl, iswctype)
69 (iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace)
70 (iswupper, iswxdigit, towlower, towupper): ...these function
71 prototypes, with corresponding inline alternative implementations...
72 (is_wctype): ...this further prototype, qualified as deprecated...
73 (WEOF): ...and this status reporting macro.
74 (_ctype, _pctype, _pctype_dll, _imp___ctype, _imp___pctype): Delete
75 declarations, and associated definitions; they do not belong here.
76 (isleadbyte): Likewise, this Microsoft specific function prototype...
77 (_LEADBYTE): ...and this associated character classification macro.
78 (_BEGIN_C_DECLS, _END_C_DECLS): Use these as appropriate.
80 2016-07-04 Keith Marshall <keithmarshall@users.sourceforge.net>
82 Do not pass MAKEFLAGS explicitly, when invoking recursive make.
84 * Makefile.in (install-strip, uninstall): Delete explicit $(MAKEFLAGS)
85 references from $(MAKE) command lines; make passes them implicitly.
87 2016-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
89 Rework tsearch and friends; resolve issues [#1512] and [#1576].
91 * include/search.h: Assert copyright; tidy layout.
92 (_SEARCH_H_): Rename this multiple inclusion guard macro...
93 (_SEARCH_H): ...to conform to this preferred standard convention.
94 (__search_comparator): New function prototype typedef; it provides a
95 convenient shorthand notation for argument declarations in functions
96 which require a comparator function pointer; use it where appropriate.
97 (tsearch, tfind, tdelete) [__MINGW_ATTRIB_NONNULL]: Apply to arguments
98 #2 and #3; was previously incorrectly applied to arguments #1 and #3.
99 (twalk) [__MINGW_ATTRIB_NONNULL]: Apply to both arguments #1 and #2.
100 [_SEARCH_PRIVATE] (__MINGW_ATTRIB_NONNULL): Suppress its effect, to
101 ensure that GCC does not optimize away checks within implementation.
102 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
104 * mingwex/tdelete.c: Tidy layout.
105 (tdelete): Reimplement it as a thin wrapper around...
106 (__tdelete): ...this; it encapsulates the original implementation as a
107 __CRT_ALIAS (inline) function, to simplify void ** --> node_t ** casts.
108 Remove unnecessary non-null assertions for arguments #1 and #3; prefer
109 to validate arguments #2 and #3 internally, and simply return NULL if
110 necessary; hence, do not include <assert.h>
112 * mingwex/tfind.c: Tidy layout.
113 (tfind): Similarly reimplement it as a thin wrapper around...
114 (__tfind): ...this __CRT_ALIAS (inline) encapsulation of the original.
115 Add non-null validation for argument #3; do not include <assert.h>
117 * mingwex/tsearch.c: Tidy layout.
118 (tsearch): Once again, reimplement it as a thin wrapper around...
119 (__tsearch): ...this __CRT_ALIAS variant. Add non-null validation for
120 argument #3; do not include <assert.h>
122 * mingwex/twalk.c: Tidy layout; do not include <assert.h>
124 2016-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
126 Rework __try1/__except1 to resolve issue [#1328].
128 * include/excpt.h: Assert copyright; tidy layout.
129 (_EXCPT_H_): Multiple inclusion guard macro renamed to...
130 (_EXCPT_H): ...this; update all references as appropriate.
131 (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
132 (__typecast_alloca): New macro; define it, casting return type of...
133 (__builtin_alloca): ...this to a specified data type; use it in...
134 (__try1_setup, __except1_teardown): ...these new macros; define them
135 as parameterized templates, providing both -masm-att and -masm-intel
136 syntax implementations, with host specific word size and register
137 assignment parameter substitutions; use them to redefine...
138 (__try1, __except1): ...each of these, using __builtin_alloca to avoid
139 direct stack pushes when registering exception handlers; assign the
140 template parameters as appropriate to support implementation for...
141 [_WIN64, _WIN32]: ...either of these, as the host requires.
143 2016-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
145 Merge Cygwin CVS updates to legacy branch.
147 * include/stdio.h: Merge 2011-11-30 and 2012-08-02 commits.
148 (getc, getchar, putc, putchar): Declare function prototypes.
149 (fopen64, ftello64): Likewise; change implementation classification
150 from __CRT_INLINE to __CRT_ALIAS, to avoid C++ emitted code bloat.
151 (_lock_file, _unlock_file): Add prototypes; modify merge to...
152 [__MSVCRT_VERSION__>=__MSVCR80_DLL]: ...require this.
154 * include/stdint.h: Merge 2012-07-30 commit; include <_mingw.h>
156 * include/excpt.h: Merge 2012-08-01 commit.
157 (__try1, __except1) [_WIN64]: Add alternative implementations.
159 * include/stdlib.h: Merge 2012-08-02 commit.
160 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
161 (_strtoi64, _strtoui64, _wcstoi64, _wcstoui64): Declare prototypes.
162 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
163 (_strtoi64_l, _strtoui64_l, _wcstoi64_l, _wcstoui64_l): Likewise...
164 [!__have_typedef_locale_t] (__need_locale_t): ...and define to get...
165 (locale_t): ...this, by selective inclusion of <locale.h>
166 [__WCHAR_H_SOURCED] (_wcstoi64, _wcstoui64, _wcstoi64_l)
167 (_wcstoui64_l): Make these function prototypes available for selective
169 * include/wchar.h: ...this; merge 2012-08-02 commit.
170 [__MSVCRT__VERSION__>=__MSVCR70_DLL || _WIN32_WINNT >= _WINXP]
171 (_wcstoi64, _wcstoui64): Note availability of function prototypes via
172 selective inclusion of their actual declarations from <stdlib.h>
173 [__MSVCRT__VERSION__>=__MSVCR80_DLL || _WIN32_WINNT >= _VISTA]
174 (_wcstoi64_l, _wcstoui64_l): Likewise.
176 * include/limits.h: Merge 2012-08-02 commit.
177 [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
179 * include/sys/param.h: Merge 2012-08-02 commit.
180 [PATH_MAX not defined] (MAXPATHLEN): Define it explicitly.
181 [PATH_MAX defined] (MAXPATHLEN): Define it as an alias.
183 2016-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
185 Add typedef and access support for opaque locale_t objects.
187 * include/locale.h (locale_t, _locale_t): Define opaque types.
188 [__need_locale_t]: Make them selectively accessible; define...
189 (__have_typedef_locale_t): ...this, when they are available.
190 [_LOCALE_H] (_create_locale, _get_current_locale, _free_locale):
191 Declare function prototypes, on direct <locale.h> inclusion only.
192 [_LOCALE_H || _WCHAR_H] (_wcreate_locale): Likewise; this is to be
193 visible on direct inclusion, or when including <wchar.h>
195 * include/stdio.h [!(_STDIO_H && _WCHAR_T)]: Correct expression of...
196 [__MSVCR80_DLL || _WIN32_WINNT_VISTA]: ...this subsidiary condition;
197 for all cases when this is true, (including when [_STDIO_H] alone)...
198 [!__have_typedef_locale_t] (__need_locale_t): ...define this, and
199 include <locale.h>, for selective definition of...
202 2016-05-19 Keith Marshall <keithmarshall@users.sourceforge.net>
204 Occlude unsupported _S_IFBLK feature; resolve issue [#1146].
206 * include/sys/stat.h (_MINGW_S_IFBLK_KLUDGE): New feature test macro;
207 do not define it, and strongly recommend that it remains undefined.
208 [!_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Do not define them.
209 [!_MINGW_S_IFBLK_KLUDGE] (_S_ISBLK, S_ISBLK): Poison them.
210 [_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Adjust definitions; use a
211 modified value, which is guaranteed to be impossible to match in...
212 [_S_ISBLK, S_ISBLK]: ...these, thus enforcing false test results.
214 2016-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
216 Fix a typo in a <sys/stat.h> inline function definition.
218 * include/sys/stat.h [__MSVCRT_VERSION__ >= __MSVCR80_DLL]
219 (stat): First argument declared as 'int'; should be 'const char *';
222 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
224 Synchronize package version management with Win32-API.
226 * VERSION.m4: New file; link it to keep in sync with identically named
227 file in top level composite package source directory; it defines...
228 (__VERSION__): ...this new composite package version macro.
230 * aclocal.m4: Link it, to keep in sync with identically named files in
231 top level composite source and sibling w32api sub-package directories.
232 (__VERSION__): New macro; include VERSION.m4 to define it.
233 (__BUG_REPORT_URL__): New macro; define it.
235 * configure.ac (AC_INIT): Assign package version and bug report URL...
236 (__VERSION__, __BUG_REPORT_URL__): ...from these, as defined through
237 automatic inclusion of aclocal.m4
239 * Makefile.in (configure): Add dependency on VERSION.m4
241 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
243 Resolve some strnlen() implementation issues.
245 * mingwex/strnlen.s (__mingw_strnlen) [!NUL]: Correct termination
246 logic; should have used jnz, not jz, to skip endpoint adjustment on
247 scanning past a terminal NUL character code.
249 * include/string.h [_POSIX_C_SOURCE >= 200809L] (strnlen): Do not
250 #define it, as this breaks GCC compilation; use __CRT_ALIAS instead,
251 with __JMPSTUB__ referencing via "oldname" libraries.
253 * Makefile.in (jmpstub_awk_script, libimpl_awk_script): Adapt to
254 facilitate assignment of __JMPSTUB__ and __LIBIMPL__ references to
255 libraries other than libmingwex.a
256 (strnlen.jmpstub.$OBJEXT): Assign it to all "moldname" libraries prior
257 to libmoldname80.a, in addition to libcoldname.a, as specified by the
258 __JMPSTUB__ assignment within <string.h>
260 2016-05-03 Keith Marshall <keithmarshall@users.sourceforge.net>
262 Enforce consistent specification of package version.
264 * include/_mingw.h: Rename as...
265 * include/_mingw.h.in: ...this build-time template file.
266 (__MINGW32_VERSION): Redefine it, in terms of...
267 (%PACKAGE_VERSION_LONG%): ...this substitution template.
268 (__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION)
269 (__MINGW32_PATCHLEVEL): Likewise, redefine them in terms of...
270 (%PACKAGE_VERSION_MAJOR%, %PACKAGE_VERSION_MINOR%)
271 (%PACKAGE_VERSION_PATCH%): ...these.
273 * configure.ac (AC_CONFIG_SRCDIR): Adjust for renamed file.
274 (MINGW_AC_CONFIG_EXTRA_SRCDIR): Likewise, for similarly renamed
275 w32api/include/w32api.h.in file.
277 * Makefile.in (all-mingwrt-stage-1-only): Add dependency on...
278 (_mingw.h, w32api.h): ...these; add rule to generate them, using...
279 (PACKAGE_VERSION_SCRIPT, PACKAGE_VERSION_FORMAT): ...these new macros;
280 they apply appropriate substitutions to the renamed template files.
281 (install-mingwrt-headers): Explicitly add _mingwrt.h
283 2016-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
285 Make strnlen() available for all MSVCRT.DLL versions.
287 * msvcrt-xref/msvcrt.def.in (strnlen): Mark it as...
288 (__MINGW_DLSYM): ...this, excluding its exposure in libmsvcrt.dll, and
289 thus requiring a dlsym() lookup for versions which provide it.
291 * include/string.h [__MSVCRT_VERSION__>=__MSVCR80_DLL] (strnlen):
292 Declare prototype, for use from these non-free DLLs, otherwise...
293 [_POSIX_C_SOURCE >= 200809L] (strnlen): Define it as an alias for...
294 (__mingw_strnlen): ...this new libmingwex.a function.
296 * mingwex/strnlen.s: New file; it implements...
297 (__mingw_strnlen, __mingw_strnlen_s): ...these new functions.
299 * Makefile.in (libmingwex.a): Add requirement for...
300 (strnlen.$OBJEXT): ...this; add vpath specification for its source.
302 2016-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
304 Use correct paths for partially included header files.
306 * include/io.h include/process.h: Use 'iquote' #include "stdint.h", to
307 ensure that we get stdint.h from the same include directory.
308 * include/stdio.h: Likewise for #include "stdarg.h", and "sys/types.h"
309 * include/wchar.h: Likewise for all of #include "stdio.h", "stdlib.h",
310 "direct.h", "sys/stat.h", "io.h", "time.h", "locale.h", and "process.h"
311 * include/dir.h include/dos.h: Likewise for #include "io.h"
312 * include/direct.h: Likewise for #include "dos.h"
314 2016-04-13 Keith Marshall <keithmarshall@users.sourceforge.net>
316 Generalize procedure for installing manpages.
318 * man/dirname.man: Rename it as...
319 * man/dirname.3.man: ...this, with inherent MANSECT specification.
320 (TH): Use %PAGEREF% substitution for NAME, MANSECT, and DATE.
321 (MS-Windows): Do not append \[tm]; it doesn't render well in Windows
322 console. Further, correct typos; some syntactic adjustments.
324 * Makefile.in (%:%.man): New rule; define it.
325 (%.mancopy, %.mancopy-recursive): New rules; define and use with...
326 (reference_manpage): ...this new macro, defining it to map...
327 (dirname.3.man): ...this as the reference source file for both of...
328 (basename.3, dirname.3): ...these installed manpages.
329 (format_manpage): Add MANSECT and DATE to expansion of...
330 (%PAGEREF%): ...this sed substitution pattern.
332 2016-04-12 Keith Marshall <keithmarshall@users.sourceforge.net>
334 Update several incorrectly attributed header files.
336 * include/direct.h include/io.h include/locale.h include/math.h
337 * include/process.h include/stdio.h include/stdlib.h include/string.h
338 * include/sys/stat.h include/sys/types.h include/time.h: Identify the
339 original author as Colin Peters; Rob Savoye merely imported them into
340 the original CVS repository, when he created it.
342 * include/wchar.h: Likewise, imported by Rob Savoye, but the original
343 source file is unattributed.
345 2016-04-11 Keith Marshall <keithmarshall@users.sourceforge.net>
347 Eliminate all references to non-standard __NO_ISOCEXT macro.
349 * include/math.h: Tidy layout.
350 [!defined __NO_ISOCEXT]: Do not use this ugly double negative; in any
351 case, we do not want to encourage users to define such implementation
352 private macros; instead, prefer to make use of...
353 [defined _ISOC99_SOURCE]: ...this glibc compatible feature test.
354 [__STDC_VERSION__ >= 199901L]: Do not require this; it is implied, by
355 definition, in _ISOC99_SOURCE.
356 * include/stdio.h [!defined __NO_ISOCEXT]: Likewise; replace with...
357 [defined _ISOC99_SOURCE]: ...this, throughout.
359 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
361 Make resetting of __need_typedef requests more robust.
363 * include/sys/types.h [__need_off_t, __need___off64_t]
364 [__need_ssize_t, __need_time_t]: Move corresponding #undef out of, and
365 after the respective conditional blocks, which provide each associated
366 typedef, so ensuring that any repeat request is properly reset.
368 * include/time.h [__need_time_t]: Always delegate to <sys/types.h> for
369 typedef, and reset of request, even in cases where...
370 [_TIME_H]: ...this is already defined.
372 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
374 Add a missing comment terminator.
376 * include/io.h [!(defined _IO_H && defined _WCHAR_H)]: Properly
377 terminate the comment annotating the closing #endif statement.
379 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
381 Declare <dir.h> as formally deprecated.
383 * include/dir.h: Assert copyright.
384 (pragma GCC system_header): Declare it.
385 (_DIR_H): Define as multiple inclusion macro.
386 [!_DIR_H]: Emit "obsolete header" warning message.
388 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
390 Factor out <wchar.h> vs. <io.h> duplicate declarations.
392 * include/io.h: Assert copyright; tidy layout.
393 (_IO_H_): Rename this multiple inclusion guard macro...
394 (_IO_H): ...to this preferred form; do not define it when...
395 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
396 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
397 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
398 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
399 (_wfindnext64i32, _wfindfirst32, _wfindnext32, _findclose): ...only
400 these function prototypes, common to <wchar.h>, together with...
401 (_fsize_t, struct _wfinddata_t, struct _wfinddatai64_t)
402 (struct __wfinddata64_t, struct _wfinddata64i32_t)
403 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these
404 requisite data type definitions.
405 (pragma GCC system_header): Declare it.
406 (__need_intptr_t): Define, and include <stdint.h> to get...
407 (intptr_t): ...this typedef; neither define it locally, nor define...
408 (_INTPTR_T_DEFINED): ...this; delete all references.
409 (_FSIZE_T_DEFINED): Do not define it; delete all references; rather...
410 [!(defined _IO_H && defined _WCHAR)] (_fsize_t): Define it.
411 (FILENAME_MAX): Define it unconditionally.
412 (__struct_finddata_t): New temporary macro; define and use it to...
413 (struct _finddata_t, struct _wfinddata_t, struct _finddatai64_t)
414 (struct _wfinddatai64_t, struct __finddata64_t, struct __wfinddata64_t)
415 (struct _finddata64i32_t, struct _wfinddata64i32_t)
416 (struct _finddata32i64_t, struct _wfinddata32i64_t)
417 (struct __finddata32_t, struct __wfinddata32_t): ...define these.
419 * include/wchar.h (_WFINDDATA_T_DEFINED): Do not define it; delete all
420 references; filter out associated data type definitions, namely...
421 (struct _wfinddata_t, struct _wfinddatai64_t): ...these, and also...
422 (struct __wfinddata64_t, struct _wfinddata64i32_t): ...these, and...
423 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these.
424 (_WIO_DEFINED): Likewise, do not define it; delete all references;
425 filter out associated function prototype declarations for all of...
426 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
427 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
428 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
429 (_wfindnext64i32, _wfindfirst32, _wfindnext32): ...these; reproduce
430 them by selective inclusion of <io.h>.
432 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
434 Factor out <wchar.h> vs. <process.h> duplicate declarations.
436 * include/process.h: Assert copyright; tidy layout.
437 (_PROCESS_H_): Rename this multiple inclusion guard macro...
438 (_PROCESS_H): ...to this preferred form; do not define it when...
439 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
440 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
441 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
442 (_wspawnve, _wspawnvp, _wspawnvpe): ...only these functions.
443 [!__WCHAR_H_SOURCED__] (_PROCESS_H): Define it; declare all functions
444 normally specified herein, including those listed above, as required.
445 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
446 (__need_intptr_t): Define it prior to including <stdint.h>.
447 (pragma GCC system_header): Declare it.
449 * include/wchar.h (_WPROCESS_DEFINED): Delete it; filter out...
450 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
451 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
452 (_wspawnve, _wspawnvp, _wspawnvpe): ...these function prototypes;
453 reproduce them, by selective inclusion of <process.h>.
455 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
457 Enable selective retrieval of intptr typedefs from <stdint.h>.
459 * include/stdint.h: Assert copyright; tidy layout.
460 [__need_intptr_t || __need_uintptr_t] (_STDINT_H): Do not define it;
461 conceal all normally defined data types, except either or both of...
462 [__need_intptr_t] (intptr_t): ...this, and/or...
463 [__need_uintptr_t] (uintptr_t): ...this.
464 (pragma GCC system_header): Declare it.
466 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
468 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
470 * include/sys/stat.h: Assert copyright; tidy layout.
471 (pragma GCC system_header): Declare it.
472 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
473 (_SYS_STAT_H): ...this preferred naming convention; however, when...
474 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
475 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
476 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
477 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
478 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
479 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
480 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
481 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
482 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
483 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
484 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
485 (__struct_stat_defined): New macro; define, and use it to define...
486 (struct stat, struct _stat, struct _stati64, struct __stat64)
487 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
488 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
489 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
490 definition of types size_t and wchar_t; declare all header content,
491 including that declared when __WCHAR_H_SOURCED__ is defined, unless
492 already declared as a result of selective inclusion by <wchar.h>
493 (__need_size_t, __need_wchar_t): Do not define them; consequently,
494 there is no need to include <stddef.h>; do not do so.
496 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
497 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
498 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
499 (struct _stat64i32): Likewise; reproduce them by selective inclusion
502 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
504 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
506 * include/direct.h: Conditionally partition it, such that...
507 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
508 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
509 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
510 (_WDIRECT_DEFINED): Never define it; delete all references.
512 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
513 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
514 selectively #include <direct.h> to reproduce them.
516 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
518 Factor out <direct.h> vs. <dos.h> duplicate declarations.
520 * include/dos.h: Assert copyright; tidy layout.
521 (pragma GCC system_header): Declare it.
522 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
523 (_DOS_H): ...this preferred convention; do not define it when...
524 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
525 (struct _diskfree_t): ...this aggregate data type, together with...
526 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
527 (_getdiskfree): ...this associated function.
528 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
529 emit a warning that this header is obsolete, and should not be used.
530 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
531 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
532 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
533 neither is it necessary to #include <stddef.h>; do not do so. Also,
534 do not #include <_mingw.h> explicitly, but always #include <io.h>,
535 which will implicitly #include <_mingw.h> anyway.
537 * include/direct.h: Assert copyright; tidy layout.
538 (pragma GCC system_header): Declare it.
539 (_DIRECT_H_): Rename this multiple inclusion guard macro...
540 (_DIRECT_H): ...to adopt this preferred naming convention.
541 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
542 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
543 (_getdiskfree): Likewise, do not declare prototype; instead...
544 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
545 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
546 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
547 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
548 although needed, we may inherit it indirectly from <sys/types.h>,
549 included by <io.h> via <dos.h>.
551 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
553 Evade CPP mismatched apostrophe warnings in windres comments.
555 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
557 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
559 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
561 * include/locale.h: Assert copyright; tidy layout.
562 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
563 (_LOCALE_H): ...this; do not define it when...
564 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
565 (_wsetlocale): ...just this one visible function prototype.
566 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
567 (_WLOCALE_DEFINED): Do not define it; delete all references.
568 (pragma GCC system_header): Declare it.
570 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
571 visibility by selective inclusion of <locale.h> instead.
572 (_WLOCALE_DEFINED): Delete all references.
574 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
576 Resolve some "implicit function declaration" warnings.
578 * setargv.c (isspace): Include <ctype.h> for declaration.
579 * cpu_features.h (__cpu_features_init): Declare function prototype.
580 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
582 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
584 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
586 * include/stdlib.h [__WCHAR_H_SOURCED__]
587 (_STDLIB_H): Do not define it; restrict visible declarations to...
588 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
589 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
590 of regular <stdlib.h> content; full content is declared only when...
591 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
592 (_WSTDLIB_DEFINED): Do not define it; delete all references.
593 (pragma GCC system_header): Declare it; tidy layout.
595 * include/wchar.h: Delete duplicated declarations for...
596 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
597 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
598 include <stdlib.h> selectively, to maintain their visibility.
599 (_WSTDLIB_DEFINED): Delete all references.
601 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
603 Relocate misplaced umask() function prototypes.
605 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
606 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
607 here, but leave them for backward, or Microsoft, compatibility.
609 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
611 Correct another _BEGIN_C_DECLS imbalance error.
613 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
614 unbalanced instance deleted; one correctly balanced instance remains.
616 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
618 Support installation of headers with empty parts directory.
620 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
621 (install-mingwrt-headers): ...invoke it; if false, do not perform...
622 (INSTALL_SUB_HEADERS): ...this.
624 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
626 Reinstate typedef for non-standard off64_t.
628 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
629 (__off64_t): ...typedef derived from this; although non-standard, it
630 is gratuitously required when building GCC's libgfortran.a
632 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
634 Correct conditional compilation block nesting errors.
636 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
637 them balanced within, and around, conditional compilation blocks.
639 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
641 Feature test _MINGW32_EXTENDED_SOURCE renamed.
643 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
644 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
645 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
646 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
647 users should enable any conventional feature test which implies it.
649 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
650 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
652 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
654 Correct atexit() and _onexit() export declaration regression.
656 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
657 as DATA; declare them accordingly.
659 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
661 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
663 * include/string.h: Tidy layout.
664 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
665 (_stricmp, _strnicmp): Include their prototypes, selectively from...
666 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
667 * include/parts/strings.h: ...from here; file is obsolete; delete it.
669 * include/string.h (_wcscmpi): Define alias.
670 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
671 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
672 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
673 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
674 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
675 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
676 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
677 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
679 * include/strings.h (_STRINGS_H): Do not define it, when...
680 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
681 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
683 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
685 Refactor to make <parts/time.h> redundant.
687 * include/sys/types.h (time_t, __time32_t, __time32_t)
688 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
689 * include/parts/time.h: ...from here; preserve selective exposure.
691 * include/time.h (time_t, __time32_t, __time32_t): Get them...
692 * include/sys/types.h: ...from here, by selective inclusion.
694 * include/time.h (struct timespec, struct __mingw_extended_timespec)
695 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
696 * include/parts/time.h: ...from here; preserve selective exposure.
698 * include/parts/time.h: Delete file; it is no longer required.
700 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
702 Declare the nanosleep() function where POSIX expects it.
704 * include/time.h (__mingw_sleep): Declare function prototype.
705 (nanosleep): Declare prototype, and provide in-line implementation;
706 this is a reproduction of the original implementation, relocated...
707 * include/unistd.h (nanosleep): ...from here; remove it; hence...
708 (struct timespec): ...this need not be declared here, and there is
709 no need to include <parts/time.h>; remove reference.
711 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
713 Refactor <time.h> vs. <wchar.h> to avoid duplication.
715 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
716 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
717 (struct tm): Delete definition; delegate it, together with each of...
718 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
719 (wcsftime): ...these function prototypes; delete them, but note in
720 comments, that they remain declared, via delegation to...
721 * include/time.h: ...this; include it selectively, subject to...
722 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
723 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
724 [_TIME_H]: Process all definitions and declarations; otherwise...
725 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
726 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
727 (_WTIME_DEFINED): Obsolete macro; delete all references.
729 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
731 Implement support for POSIX "%n$*m$" printf() format control.
733 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
734 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
735 (__pformat_inline__): New macro; define, and use it where appropriate.
736 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
737 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
738 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
739 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
740 (__pformat_argmap_t): ...this new union data type; define it.
741 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
742 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
743 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
744 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
745 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
746 (__pformat_length_modifier, __pformat_check_length_modifier): New
747 locally defined static and/or inline functions; implement, and...
748 (__pformat): ...use them.
750 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
752 Add prototypes for Microsoft's _printf_p() family of functions.
754 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
755 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
756 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
757 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
758 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
759 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
760 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
761 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
762 available for selective inclusion by both <stdio.h> and <wchar.h>...
763 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
765 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
767 Adapt msvcrt-xref to become msvcrt.def.in provider.
769 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
770 filter value assignment; scale it upwards, by a factor of 0x10000.
771 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
772 (%.def) [msvcr*]: Do not preserve comments; define...
773 (__DLLNAME__): ...this preprocessor symbol.
775 * msvcrt.def.in: Content is obsolete; delete file and replace with...
776 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
777 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
778 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
779 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
780 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
782 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
784 Import msvcrt-xref documentation resources.
786 * msvcrt-xref: New directory.
787 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
788 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
789 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
790 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
792 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
794 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
796 * include/wchar.h: Some minor layout adjustments.
797 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
798 within the scope of reading <wchar.h>; undefine it at end of file.
799 (struct tm): Do not define; it is sufficient to keep it opaque.
800 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
801 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
802 directly; delegate to indirect definition by including <stdio.h>.
803 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
804 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
805 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
806 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
807 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
808 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
809 indirectly, by selective inclusion from <stdio.h>; hence include it.
811 * include/stdio.h: Assert copyright; tidy layout.
812 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
813 (_STDIO_H): ...this, but defined conditionally, subject to...
814 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
815 entities which are required by <wchar.h>; do not define...
816 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
817 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
818 are normally specified within <stdio.h>, INCLUDING those specifically
819 itemised above, as selectively required by <wchar.h>.
821 * pseudo-reloc.c: Some minor layout adjustments.
822 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
823 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
824 include <stddef.h> to guarantee it.
826 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
828 Enable selective definition of POSIX system types.
830 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
831 any specific __need_TYPE selector having been set prior to inclusion;
832 DO define it when no such selector is present, and undefine all such
833 selectors as may have been set, after evaluation of their effects.
834 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
835 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
836 accommodates reorganization of the file, to achieve a tidier layout.
837 (__have_typedef_off_t): New repeat definition guard; define it for
838 compilers which may choke on any repeated typedef for either of...
839 (off_t, _off_t): ...these; make them selectively defineable for...
840 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
841 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
842 in either case, redefine them in terms of...
843 (__off32_t): ...this new internal type, for consistency with...
844 (__off64_t): ...this previously defined non-standard type; also make
845 it selectively defineable, either by...
846 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
847 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
848 (__have_typedef___off64_t): New repeat definition guard; define it.
849 (ssize_t, _ssize_t): Also make them selectively defineable, on...
850 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
851 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
852 (__have_typedef_ssize_t): New repeat definition guard; define it.
854 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
856 Avoid user namespace pollution by non-standard type 'off64_t'.
858 * include/sys/types.h (off64_t): Rename it as...
859 (__off64_t): ...this implementation-private alternative name, so
860 eliminating the potential for user namespace pollution.
862 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
863 return type, and type of offset argument, in both prototype and inline
864 implementation; note that this addresses the issue of pollution in the
865 user namespace, while avoiding the issue of MinGW-Bug [#2024].
867 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
868 instead of 'off64_t', as offset argument type in function prototypes.
869 (ftello64): Likewise, for return type of inline function.
871 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
872 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
873 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
875 * mingwex/stdio/fseeko64.c: Assert copyright.
876 (fseeko64): Use '__off64_t' per modified function prototype.
878 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
880 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
882 * mingwex/ofmtctl.c: New file; it implements...
883 (_mingw_output_format_control): ...this new function; it provides
884 additional MinGW specific printf() format processing options.
886 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
888 * include/stdio.h (_mingw_output_format_control): Declare it.
889 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
890 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
891 manifest constant expressions; define them.
893 * mingwex/stdio/pformat.c: Revise licensing terms.
894 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
895 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
896 modifier; this matches the behaviour specified by ISO-C99, else...
897 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
898 previous MSVC compatible behaviour, treating it as an `L' modifier.
899 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
901 * mingwex/ofmt.c (ARGLIST): Subsume references to...
902 (ARGTYPE): ...this now obsolete macro; delete it throughout.
903 (update_output_format_flag): New inline function; it restricts flag
904 operations to affect only Microsoft's exponent digit bits.
905 [FUNCTION == _set_output_format]: Use it.
906 [FUNCTION == _get_output_format]: Likewise.
908 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
910 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
912 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
913 defined, when implied by any STDC or POSIX version selection, viz. ...
914 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
916 * include/stdlib.h: Assert copyright; tidy layout.
917 (_STDLIB_H_): Multiple inclusion guard macro renamed...
918 (_STDLIB_H): ...to this, preferring no trailing underscore.
919 [!defined __NO_ISOCEXT]: Delete double negative references; use...
920 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
921 (lldiv_t): ...defining this C99 specific aggregate data type, and...
922 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
923 (wcstold, _Exit): ...declaring these C99 function prototypes.
924 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
925 future removal; not in MSVCRT.DLL, these conform to no known standard.
926 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
927 (__strtod): ...this libmingwex.a provided function; it handles string
928 representations of hexadecimal-floats, infinities and NaNs, whereas...
929 (strtod): ...this MSVCRT.DLL implementation does not.
930 (__MSVCRT_VERSION__): Prefer symbolic comparison...
931 [>= __MSVCR80_DLL]: ...for this requirement.
933 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
935 Rationalize definition of struct timespec.
937 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
938 tv_sec field, in place of anonymous union, thus avoiding missing brace
939 warnings when initializing; leave a copy of the previous definition...
940 (struct __mingw32_expanded_timespec): ...named thus.
942 * include/unistd.h (nanosleep): Adjust inline implementation, to match
943 altered specification of tv_sec field in struct timespec.
945 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
946 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
948 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
949 convenience function; defined as inline, with __LIBIMPL__ equivalent,
950 it facilitates interpretation of an instance of struct timespec as if
951 it were defined as struct __mingw32_expanded_timespec.
953 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
955 Make strings.h mostly POSIX.1-2008 compliant.
957 * include/strings.h: Rewritten. Do not include...
958 (string.h): ...this; mandated by POSIX.1, it now defines...
959 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
960 prototypes, possible in-line implementations, and JMPSTUB references
961 to corresponding external implementations, which will now become
962 automatically created within libmingwex.a
964 * include/parts/strings.h: New file; it declares prototypes for...
965 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
966 string.h, but we also require them in strings.h
968 * include/parts/wchar.h: New file; it declares prototypes for all wide
969 character functions which MSVC specifies in both wchar.h and string.h
971 * include/string.h: Miscellaneous layout adjustments.
972 (strcasecmp, strncasecmp): Delete; they belong in strings.h
973 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
974 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
975 include them from parts/wchar.h instead.
977 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
978 prototypes; include them from parts/wchar.h instead, so making this
979 guard macro redundant; delete it.
981 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
982 (wcscmpi.$OBJEXT): Implementations are now automatically generated
983 from header file, for inclusion in libmingwex.a; remove free-standing
984 implementations from the entire family of liboldname libraries, and...
985 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
986 files; they are no longer required.
988 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
990 Incorporate build system updates from w32api package.
992 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
993 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
994 (install-strip, uninstall): New make command goals; implement them.
995 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
996 (devdist, dlldist): ...these have no need to strip explicitly.
997 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
998 (install-mingwrt-headers): ...here.
1000 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1002 Adapt platform feature checks to NTDDI_VERSION conventions.
1004 * include/_mingw.h: Assert copyright; include w32api.h
1005 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
1006 to w32api/include/w32api.h, whence they remain in effect.
1007 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
1009 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1011 Correct mismatched #if/#endif from preceding commit.
1013 * include/_mingw.h (#pragma GCC system_header)
1014 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
1015 correcting for inadvertent removal of matching #endif introduced by
1016 preceding 2015-06-19 commit.
1018 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1020 Define symbolic names for alternative Microsoft runtime DLLs.
1022 * include/msvcrtver.h: New file; it assigns a value for...
1023 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
1024 (__MSVCR60_DLL): ...this new manifest constant, with each of...
1025 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
1026 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
1027 ...these also defined, as user assignable alternatives.
1029 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
1030 to establish its default value.
1032 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1034 Track dependencies on modified system header files.
1036 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
1038 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1040 Correct an anomaly in stage 1 only build procedure.
1042 * Makefile.in (all-gcc): New goal; it is an alias for...
1043 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
1044 (all-mingwrt-stage-1-only): ...this; upate all references.
1045 (active-goals): Adjusted accordingly; it now reguires...
1046 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
1047 (install): Adjusted, as directed by...
1048 (DEFAULT_MAKECMDGOALS): ...this.
1050 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1052 Prefer our hypot() implementation in complex maths operations.
1054 * mingwex/complex/cabs_generic.c: New file; it replaces...
1055 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
1056 * mingwex/complex/cabsl.c: ...these.
1058 * mingwex/complex/catan_generic.c: New file; it replaces...
1059 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
1060 * mingwex/complex/catanl.c: ...these.
1062 * mingwex/complex/clog_generic.c: New file; it replaces...
1063 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
1064 * mingwex/complex/clogl.c: ...these.
1066 * mingwex/complex/cpow_generic.c: New file; it replaces...
1067 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
1068 * mingwex/complex/cpowl.c: ...these.
1070 * mingwex/complex/csqrt_generic.c: Do not use...
1071 (_hypot): ...this Microsoft form of function reference; use...
1072 (hypot): ...this ANSI standard form instead.
1074 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1076 Correct C++ compilation anomaly with hypotf() in cmath header.
1078 * include/math.h: Add copyright notice; generally tidy layout.
1079 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1080 (hypotf): Delete inline implementation; it did not properly handle
1081 range errors, and was uncompilable with optimization when any g++
1082 option implying __STRICT_ANSI__ conformity was specified.
1083 (_MATH_H_): Rename this multiple inclusion guard...
1084 (_MATH_H): ...to this.
1086 * mingwex/math/hypot_generic.c: New file; it implements...
1087 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
1088 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
1090 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1092 Prepare and tag all files for release of mingwrt-3.21.1.
1094 * configure.ac (AC_INIT): Adjust package version argument.
1095 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
1096 (__MINGW32_VERSION): ...increment this to match.
1098 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1100 Refactor to avoid possible time_t conflicts across headers.
1102 * include/parts/time.h (struct timespec): Make it more descriptive of,
1103 and better able to accommodate, potential ambiguity relating to...
1104 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
1105 whence they may be identically imported into each of...
1106 * include/sys/types.h include/time.h include/wchar.h: these; delete
1107 duplicate typedefs, and import accordingly.
1109 * include/sys/types.h: Add licence; general comment additions.
1110 (_TYPES_H_): Rename multiple inclusion guard macro...
1111 (_SYS_TYPES_H): ...to this.
1113 * include/time.h: Add licence; general comment/layout adjustments.
1114 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1115 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
1116 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
1117 (_TIME_H_): Rename multiple inclusion guard macro...
1118 (_TIME_H): ...to this.
1120 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
1121 (struct timespec): ...of this.
1123 * include/wchar.h: Add licence; general comment/layout adjustments.
1124 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
1125 [GCC] (system_header): Add pragma, identifying header as such.
1126 (_WCHAR_H_): Rename multiple inclusion guard macro...
1127 (_WCHAR_H): ...to this.
1129 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1131 Remove obsolete varargs.h header file.
1133 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
1134 a GCC header which is no longer supported, and was always intended for
1135 ultimate removal; now is the long overdue time to do so.
1137 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1139 Correct improper unistd.h function attribute declarations.
1141 * include/unistd.h (_cdecl): Correct usage throughout; should be...
1144 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1146 Fix GLOB_DOOFFS initialization bug.
1148 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
1149 (gl_data->gl_offs): ...this is properly initialized to zero.
1151 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1153 Tag all files for release of mingwrt-3.21.
1155 * include/_mingw.h: Adjust version accordingly.
1157 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1159 Improve usage notes in stdlib.h, for mkstemp() function.
1161 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
1162 an original comment, explaining the need to use _O_TEMPORARY, from...
1163 * mingwex/mkstemp.c: ...here; delete trailing white space.
1165 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1167 Eliminate some potential definition inconsistencies.
1169 * include/stdio.h: Cosmetic formatting change, relating to...
1170 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
1171 unconditionally; this allows the compiler to check for consistency
1172 with their primary definitions in stdio.h
1174 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1176 Suppress expected warning diagnostics in LIBIMPL builds.
1178 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
1179 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
1180 GCC flag to supress warnings relating to deprecated declarations.
1182 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1184 Provide more POSIX conforming sleep() functions.
1186 * include/sys/types.h (useconds_t): Make it explicitly long; int may
1187 be okay, but doesn't guarantee enough bits; mark as deprecated, since
1188 POSIX has declared it "obsolete", and no longer specifies it.
1190 * mingwex/usleep.c: Delete file; it provided an implementation of...
1191 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
1192 its error handling was hopelessly broken; replace it with...
1193 * mingwex/nsleep.c: ...this new file; it implements...
1194 (__mingw_sleep): ...this generic helper function; it supports sleep
1195 capability with interval specification to nanosecond precision.
1197 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
1198 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
1199 (sleep, nanosleep): ...these current POSIX functions, and also...
1200 (usleep): ...this obsolete one; mark it as deprecated.
1202 * include/parts: New directory; it is intended to host partial header
1203 implementations, for content which must be shared among arbitrary sets
1204 of multiple standard header files.
1206 * include/parts/time.h: New file; nominally declaring time.h content.
1207 (struct timespec): Declare it; it is currently used within unistd.h,
1208 to facilitate the __CRT_INLINE implementation of nanosleep().
1210 * Makefile.in (libmingwex.a): Remove reference to...
1211 (usleep.$OBJEXT): ...this; replace it with a reference to...
1212 (nsleep.$OBJEXT): ...this alternative.
1213 (mingwrt-includedirs): Add prerequisite to create...
1214 ($includedir/parts): ...this new directory; it is populated by...
1215 (install-mingwrt-headers): ...this rule; add requisite command.
1217 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1219 Delete an unnecessary Unicode wrapper file.
1221 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
1222 UTF-16LE API from dirent.c, without any need for this wrapper.
1224 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1226 Some further inline function rationalization.
1228 * include/io.h (_CRTALIAS): Replace all references...
1229 (__CRT_ALIAS): ...using this syntactically preferred form.
1230 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
1231 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1233 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
1234 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1236 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
1237 * mingwex/ftruncate.c: Likewise.
1239 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1240 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
1242 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1244 Some POSIX feature test adjustments.
1246 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
1247 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
1248 (mkdtemp): This didn't become available until SUSv4, so requires...
1249 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
1251 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1253 Another CRT_INLINE function implementation rationalization.
1255 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
1256 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
1257 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1259 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
1260 (libmingwex.a): Delete obsolete dependency on...
1261 (imaxabs.$OBJEXT): ...this.
1263 * mingwex/imaxabs.c: File is now redundant; delete it.
1265 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1267 More rationalization of CRT_INLINE function implementations.
1269 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
1270 (ftello64): Add __LIBIMPL__ specification for extern implementation.
1271 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1273 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
1274 * mingwex/stdio/ftell064.c: Likewise.
1276 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1277 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
1279 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1281 Don't implicitly define _POSIX_C_SOURCE too early.
1283 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
1284 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
1285 that it is not accidentally activated by implied _POSIX_C_SOURCE.
1287 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1289 Correct complex arcsin computation per issue [#2245].
1291 * mingwex/complex/casin_generic.c: New file; it replaces...
1292 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
1293 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
1295 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1297 Correct complex square root computation per issue [#2246].
1299 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
1300 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
1301 (hypot): ...this libmoldname.a indirection.
1303 * mingwex/complex/csqrt_generic.c: New file; it replaces...
1304 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
1305 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
1307 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1309 Adjust header guards to resolve issue [#2244].
1311 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
1312 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
1313 ...when any of these prevail, or as appropriate to correspond with...
1314 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
1316 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
1317 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
1318 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
1319 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
1321 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1323 Add implementation of mkstemp() and mkdtemp() functions.
1325 * mingwex/cryptnam.c: New file; it implements...
1326 (__mingw_crypto_tmpname): ...this helper function; it generates a
1327 cryptographically secure sequence of characters, used as the random
1328 component in temporary file and directory names.
1330 * mingwex/mkstemp.c: New file; it implements...
1331 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
1333 * mingwex/mkdtemp.c: New file; it implements...
1334 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
1336 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
1337 function implementation, with LIBIMPL extern semantics, in terms of...
1338 (__mingw_mkstemp): ...this; also declare prototype, and define...
1339 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
1340 (_MKSTEMP_SETMODE): New macro; define it, also providing...
1341 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
1342 (mkdtemp): Declare prototype; provide inline implementation, with
1343 JMPSTUB extern semantics, in terms of...
1344 (__mingw_mkdtemp): ...this; declare prototype.
1346 * Makefile.in (libmingwex.a): Add dependency rule, to include...
1347 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
1349 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1351 More JMPSTUB rationalization of inline functions.
1353 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
1354 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
1355 appropriate MSVCRT.DLL equivalent entry point.
1357 * mingwex/_Exit.c: File is now redundant; delete it.
1358 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
1359 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
1361 * Makefile.in (jmpstub_awk_script): Add support for...
1362 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
1363 (libmingwex.a): Remove dependencies on deleted files, namely...
1364 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
1365 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
1367 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1369 Correct omission of complex conjugate functions from libmingwex.a
1371 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
1372 (creal, crealf, creall): Likewise, for consistency of implementation.
1373 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
1375 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
1376 declarations; they should be interpreted analogously to __CRT_ALIAS.
1377 (libmingwex.a): Remove object file references for functions which are
1378 now declared as LIBIMPL, and sort the remainder in ASCII collating
1379 order; deleted function references comprise the set consisting of...
1380 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
1381 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
1382 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
1384 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
1385 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
1386 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
1387 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
1388 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
1390 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1392 Back-port improved asinh() implementation from 4.0-dev branch.
1394 * mingwex/math/asinh_generic.c: New file; it replaces...
1395 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
1396 ...all of these; delete them.
1398 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1400 Enable remake of lost LIBIMPL object files.
1402 * Makefile.in (libimpl_remake): New macro; define it, and...
1403 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
1405 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1407 Implement more robust _get_output_format fallback handling.
1409 * mingwex/ofmt.c: New file; it implements...
1410 (__mingw_output_format_flag): ...backing store, used by...
1411 (__mingw_get_output_format, __mingw_set_output_format): ...these
1412 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
1413 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
1414 version specific Microsoft APIs, which are also supported by some
1415 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
1416 (__mingw_get_output_format_fallback): Implement; it is aliased to...
1417 (__mingw_set_output_format_fallback): ...this; together they provide
1418 the emulation support for the preceding pair of functions, when they
1419 are not available within the run-time platform MSVCRT.DLL
1420 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1421 Implement them; they wrap, and if necessary emulate...
1422 (_get_printf_count_output, _set_printf_count_output): ...these.
1423 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
1424 (__mingw_set_printf_count_output_fallback): ...this; together they are
1425 required to support emulation of the preceding pair of functions, when
1426 they are not available within the run-time platform MSVCRT.DLL
1428 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
1429 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
1430 (__mingw_get_output_format, __mingw_set_output_format)
1431 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1432 Unconditionally declare their prototypes, for subsequent inline use.
1433 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
1434 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
1435 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
1436 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
1437 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
1438 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
1439 represent a compilable token.
1441 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
1442 _get_output_format; consult __mingw_output_format_flag directly.
1444 * ofmt_stub.s: No longer required; delete it.
1446 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
1447 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
1448 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
1449 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
1450 all are compiled from ofmt.c
1452 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1454 Do some more essential build tree clean up.
1456 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
1457 in the way of a successful rebuild from clean.
1459 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1461 Implement wrappers for emulation of POSIX dlfcn API.
1463 * include/dlfcn.h: New file; it declares the API.
1464 * mingwex/dlfcn.c: New file; implement it, with access via...
1465 (__mingw_dlfcn): ...this publicly addressable vector table.
1467 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1468 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1469 (__LIBIMPL__): ...this automatic interface generator; implement it.
1470 (libstub_refnames): New macro; it is adapted from and replaces...
1471 (jmpstub_refs): ...this; when it is then invoked twice to build...
1472 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1473 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1474 (libimpl_awk_script): New inline script; it handles automated builds
1475 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1476 (libimpl_sed_script): New inline script; it prepares intermediate C
1477 source code for LIBIMPL interfaces, as required to satisfy these...
1478 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1479 (LIBIMPL_CFLAGS): New macro; define it.
1481 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1483 Move libgen functions to __mingw_ pseudo-namespace.
1485 * mingwex/dirname.c (dirname): Rename function, as implemented...
1486 (__mingwex_dirname): ...to this.
1488 * mingwex/basename.c (basename): Rename function, as implemented...
1489 (__mingwex_basename): ...to this.
1491 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1492 prototypes, matching and augmenting original declarations for...
1493 (dirname, basename): ...these; reimplement as inline aliases, with
1494 __JMPSTUB__ references to the renamed implementation entry points.
1496 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1498 Implement new command line argument globbing strategy.
1500 * include/_mingw.h: Backport feature defines from master...
1501 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1502 constants; define them. They select the preferred globbing algorithm.
1503 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1504 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1505 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1506 they enable optional additional features supported by this algorithm.
1507 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1509 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1511 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1512 * setargv.c: ...new file; it implements the initialization mechanism
1513 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1514 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1515 it invokes the algorithm via an API similar to that described by MSDN,
1516 while continuing to support our original _CRT_glob interpretation.
1517 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1518 algorithm, via the MSDN-alike API, by calling back to...
1520 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1521 relocated to here, as a publicly addressable function; formerly...
1522 (__mingw_CRTStartup): ...called directly from here, we now redirect
1523 the call through _setargv(), whence it may be called indirectly.
1525 * init.c: Redundant file; delete it. It originally provided...
1526 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1527 original static attribute removed, to allow global addressing.
1529 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1531 Backport glob implementation from master to legacy.
1533 * include/glob.h: New file; copy it from master branch.
1534 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1535 (glob, globfree): ...each of these, respectively.
1537 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1538 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1539 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1540 (accept_glob_nocheck_match): New static function; it adds support for
1541 avoidance of globbing on patterns with no globbing token, so avoiding
1542 the case transliteration effect reported as MinGW-Bug #2106.
1543 (glob_match): Use it.
1545 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1547 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1549 Implement conventionally named dirent function trampolines.
1551 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1552 which redirects a conventionally named function call to its __mingw_
1553 pseudo-namespace implementation.
1555 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1556 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1557 appropriate protocol for compiling *.sx files, (supported natively by
1558 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1560 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1561 yet provide it, so we define it ourselves; deploy it for *.sx files.
1562 (Makefile.stub): New sinclude file; create it dynamically, using...
1563 (jmpstub_awk_script): ...this new inline script, which is based on...
1564 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1565 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1566 (mostlyclean-local): Remove Makefile.stub; do likewise...
1567 (Makefile): ...when remaking this, to ensure that both will be
1570 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1572 Make dirent implementation namespace and time_t clean.
1574 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1575 macros; define them. They facilitate identification of symbols which
1576 must be compiled with `extern "C"' binding, when compiling C++ code.
1577 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1578 (_CRTALIAS): ...this, which is to be considered as deprecated.
1579 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1580 __CRT_ALIAS build hints, while remaining transparent to GCC.
1581 (UNICODE, _UNICODE) [user defined]: Define consistently.
1583 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1584 4.0-dev branch, with additional ABI changes to improve stability).
1585 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1586 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1587 Add `__mingw_' prefix to all publicly exposed symbol names.
1588 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1589 implemented functions; they replace Microsoft's ambiguously defined
1590 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1591 resulting from the ambiguous size of Microsoft's time_t.
1593 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1594 removing unnecessary time_t and file size fields; (our replacements
1595 for _findfirst, and _findnext do not require them to be present).
1596 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1597 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1598 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1599 Adjust prototypes, making them inline aliases for public symbols which
1600 are now qualified by the `__mingw_' prefix; add build hints to support
1601 compilation of addressable stubs, with the original symbol names.
1602 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1603 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1604 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1605 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1606 New macros; define them. (These show availability of optional fields
1607 within the dirent struct, which client code may wish to access).
1609 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1611 Correct improper naming of assembly language source files.
1613 * mingwex/math/*.S: Rename all files with this extension...
1614 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1615 not extended `assembler-with-cpp' as implied by the former extension);
1616 adjust all internal `.file <name>' references accordingly.
1618 * Makefile.in (vpath %.S): Adjust reference to locate files....
1619 (vpath %.s): ...now renamed thus.
1621 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1623 Streamline the build system infrastructure.
1625 * configure.ac: New file; it replaces...
1626 * configure.in: ...this; (name is obsolete); delete it.
1628 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1629 make invocations, when processing subdirectories, and add automatic
1630 dependency tracking for all generated files.
1632 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1634 * mingwex/Makefile.in: No longer required; delete it.
1635 * profile/Makefile.in: Likewise.
1637 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1638 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1640 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1641 longer relevant, and I have no desire to maintain it.
1643 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1645 Add another more rigorous __STRICT_ANSI__ filter.
1647 * include/limits.h [__STRICT_ANSI__] (PATH_MAX): Suppress definition.
1648 * include/sys/param.h [PATH_MAX defined] (MAXPATHLEN): Alias it.
1649 [PATH_MAX not defined] (MAXPATHLEN): Define it directly.
1651 2012-08-02 Ivan Maidanski <ivmai@users.sourceforge.net>
1653 Add missing function prototypes per issue [#1305].
1655 * include/process.h [#ifndef _WPROCESS_DEFINED]
1656 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve)
1657 (_wexecvp, _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe)
1658 (_wspawnv, _wspawnve, _wspawnvp, _wspawnvpe): Declare them.
1660 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1662 Add function prototype declarations per issue [#1293].
1664 * include/stdio.h (_lock_file, _unlock_file): Declare them.
1666 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1668 Apply some more rigorous __STRICT_ANSI__ filtering.
1670 * include/stdio.h (_getws, _putws, _wfdopen, _wfopen)
1671 (_wfreopen, _wfsopen, _wtmpnam, _wtempnam, _wrename, _wremove)
1672 (_wperror, _wpopen): Do not declare these functions unless...
1673 [#ifndef __STRICT_ANSI__]: ...this is satisfied.
1675 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1677 Add string to 64-bit integer conversion function prototypes.
1679 * include/stdlib.h (_strtoi64, _strtoi64_l, _strtoui64, _strtoui64_l)
1680 (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l): Declare them.
1681 * include/wchar.h (_wcstoi64, _wcstoi64_l, _wcstoui64, _wcstoui64_l):
1682 Likewise; these are duplicates of the <stdlib.h> declarations.
1684 2012-08-01 Earnie Boyd <earnie@users.sourceforge.net>
1686 Update for _WIN64 exception handler readiness.
1688 * include/excpt.h [_WIN64] (__try1, __except1): Add alternative inline
1689 assembly code implementation, based on X86-64 architecture.
1691 2012-07-30 Earnie Boyd <earnie@users.sourceforge.net>
1693 Correct missing inclusion of <_mingw.h>.
1695 * include/stdint.h: Add omitted #include; all mingwrt headers are
1696 expected to include this; it is required to define __int64.
1698 2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>
1700 Correct prototypes for _wfindfirst()/_wfindnext() function family.
1702 * include/io.h (_wfindfirst, _wfindfirst32, _wfindfirsti64)
1703 (_wfindfirst32i64, _wfindfirst64i32): Return type changed to intptr_t.
1704 (_wfindnext, _wfindnext32, _wfindnexti64, _wfindnext32i64)
1705 (_wfindnext64i32, _wfindnext64): Type of parameter #1 must match.
1707 2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
1709 Avoid potential GCC "missing function prototype" warnings.
1711 * include/stdio.h (getc, putc, getchar, putchar, fopen64)
1712 (ftello64): Provide a function prototype declaration for each of
1713 these, prior to the corresponding inline implementation.
1715 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1717 * include/_mingw.h: Increment version to 3.20.
1719 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1721 * tlsmthread.c: Update to reflect changes in tlssup.c.
1722 * tlssup.c: code clean-up.
1724 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1726 * include/_mingw.h: Increment version to 3.19.
1728 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1730 * include/float.h: Modify guard to accomodate CLang.
1732 Thanks to Ruben Van Boxem for the report.
1734 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1736 * tlssup.c: Remove mingwm10.dll fallback.
1738 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1740 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1742 Thanks to bvassche for the report.
1744 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1746 Correct checking for short option matches in getopt_long_only().
1748 * mingwex/getopt.c (getopt_verify): New static inline function.
1749 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1750 possible short option match after failing to match, or ambiguously
1751 matching as a long option.
1753 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1755 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1757 Thanks to cgf for the report.
1759 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1761 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1762 compiles with __STRICT_ANSI__.
1764 Thanks to Felipe Contreras for the report.
1766 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1768 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1771 Thanks to Tobias Burnus for the report.
1773 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1775 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1776 by wrapping the functions in brackets.
1778 Thanks to Kai Tietz for the report.
1780 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1782 * Makefile.in: Add support for msvcr100.dll.
1783 * msvcrt.def.in: Ditto.
1785 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1787 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1788 not always available, go the long way and use the explicit named union
1789 members, which are also declared in winnt.h.
1791 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1793 * mingwex/isblank.c: Fix typo in declaration.
1795 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1797 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1798 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1799 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1800 is included before <ctype.h>.
1802 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1804 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1806 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1808 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1810 Correct hexadecimal formatting of double and long double values.
1812 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1813 (__pformat) [A format]: Cast double values to long double, and use...
1814 (__pformat_xldouble): ...this instead, with corrected adjustment of
1815 exponent and alignment of mantissa, when formatting subnormals.
1817 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1819 * include/dirent.h (dd_handle): Define as intptr_t.
1821 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1823 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1826 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1828 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1829 semantically identical MAX_PATH; correct value is 260.
1831 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1833 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1834 system include search path; (issue reported by Mark Brand).
1836 * include/float.h: Add multiple inclusion guard around...
1837 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1838 only when this define does not indicate that it has already been seen;
1839 update comments to document rationale; move it within the scope of...
1840 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1841 GCC's float.h, after an appropriate complementary modification, need
1842 not perform a further include path search when this implementation
1843 specific extension has already been processed.
1845 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1847 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1848 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1849 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1850 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1851 _findnexti64): Correct definition.
1853 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1855 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1857 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1859 * include/_mingw.h: Increment version to 3.18.
1861 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1863 * include/stdio.h: (_vscprintf, _vscwprintf)
1864 * include/tchar.h: (_vsctprintf)
1866 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1868 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1869 (initial implementation)
1871 * new type: __time32_t
1873 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1874 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1875 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1877 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1878 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1879 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1880 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1881 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1882 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1883 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1884 _wstat32i64, _wstat64i32,_wutime32
1886 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1887 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1888 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1889 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1890 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1892 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1894 Implement TLS Callback.
1896 * tlsmcrt.c: New file.
1897 * tlsmthread.c: Ditto.
1900 * Makefile.in: Include new files.
1901 * crt1.c: Implement TLS Callback.
1903 * mthr_stub.c: Remove.
1905 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1907 * include/_mingw.h: Increment version to 3.17.
1909 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1911 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1912 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1914 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1916 * include/io.h (_open_osfhandle): Correct definition.
1918 Thanks to Alexander Shaduri for the information.
1920 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1922 Final sync of pseudo-reloc.c with mingw64 and cygwin
1923 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1924 regarding error messages.
1926 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1928 Honor DESTDIR for winsup/mingw and winsup/w32api.
1929 Detect and report error if installation paths are win32
1930 format, but DESTDIR is non-empty.
1932 * Makefile.in (DESTDIR): Honor per convention.
1933 (need-DESTDIR-compatibility): New macro; define it and a
1935 (fail-DESTDIR-compatibility): New dependency goal.
1936 (install-dirs): Require need-DESTDIR-compatibility.
1937 * mingwex/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): Require need-DESTDIR-compatibility.
1942 * profile/Makefile.in: Ditto.
1944 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1946 Sync pseudo-reloc.c with mingw64
1947 * psuedo-reloc.c: Remove unnecessary includes.
1948 Forward declare _pei386_runtime_relocator.
1949 Decorate _image_base__ symbol with macro for
1950 mingw64 compatibility. Whitespace changes.
1951 (__print_reloc_error): Renamed to...
1952 (__report_error): This. "Returns" void, and
1953 always aborts. Now used on all platforms.
1954 (__write_memory): Remove special case error handling
1955 for different platforms - always call __report_error.
1956 (do_pseudo_reloc): Remove special case error handling
1957 for different platforms - always call __report_error.
1958 (_pei386_runtime_relocator): Decorate _image_base__
1959 symbol with mingw64 compatibility macro.
1961 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1963 Sync pseudo-reloc.c with cygwin/lib/
1964 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1965 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1966 for fatal error handling that is consistent with cygwin process
1967 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1968 is unique to each address space, across fork().
1969 [CYGWIN] (__print_reloc_error): New function for reporting
1970 errors in a manner supported by cygwin at this early stage of
1971 the process life-cycle.
1972 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1973 performed only once for each address space, but are repeated
1974 after fork() in the new address space.
1975 [MINGW] (__write_memory): Ensure that b is always initialized
1976 by call to VirtualQuery, even if -DNDEBUG.
1978 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1980 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1981 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1983 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1984 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1985 specified format qualifiers, except in special case...
1986 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1987 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1988 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1991 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1993 Avoid multiple link time definitions of _printf() for C++;
1994 (problem reported by Alexander Shaduri, via MinGW-users ML).
1996 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
1997 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
1999 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2001 * include/_mingw.h: Increment version to 3.16.
2003 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2005 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
2006 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
2007 __fp_unordered_compare): Add prototypes.
2008 * include/stdio.h (vsnwprintf): Add prototype.
2009 * include/wchar.h (vsnwprintf): Add prototype.
2010 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
2011 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
2013 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2015 Correct disposition of wchar_t output in printf().
2017 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
2018 (argval): ...this, in inner scope, with singular type `wchar_t'; use
2019 it to pass one wchar to __pformat_wputchars(), for output.
2021 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2023 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
2025 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2027 Convert to monolithic configuration procedure.
2029 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
2030 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
2031 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
2032 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
2033 (CRT0S): Relocate from `profile'; define it as appropriate.
2034 (LIBM_A): Define and AC_SUBST it unconditionally.
2035 (AC_CONFIG_SUBDIRS): Remove; none to configure.
2036 (AC_OUTPUT_FILES): Add `Makefile' for each of...
2037 (mingwex, profile): ...these subdirectories.
2039 * configure: Regenerated.
2041 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
2042 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
2043 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
2044 (SUBDIRS): Define explicitly, to run recursive `make' in...
2045 (mingwex, profile): ...these; simplify build commands...
2046 (rootme, rootsrc): ...without these shell variables.
2047 (all, subdirs): Delete redundant build commands.
2048 (FIXME): Flag various issues for follow up.
2050 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
2051 (top_srcdir): ...this new macro; let AC_SUBST define it.
2052 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2053 (Makefile): Make it depend on...
2054 (top_builddir/config.status): ...this, itself depending on...
2055 (top_srcdir/configure): ...this.
2056 (FIXME): Flag various issues for follow up.
2058 * mingwex/aclocal.m4: File no longer required; delete it.
2059 * mingwex/configure mingwex/configure.in: Likewise.
2061 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
2062 (top_srcdir): ...this new macro; let AC_SUBST define it.
2063 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
2064 (Makefile): Make it depend on...
2065 (top_builddir/config.status): ...this, itself depending on...
2066 (top_srcdir/configure): ...this.
2067 (FIXME): Flag various issues for follow up.
2069 * profile/aclocal.m4: File no longer required; delete it.
2070 * profile/configure profile/configure.in: Likewise.
2072 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2074 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
2075 to complaints that it causes issues.
2077 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
2079 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
2081 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2083 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
2084 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
2085 to all inline functions.
2087 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2089 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
2090 * CRT_fp10.c: Ditto.
2092 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2094 * cpu_features.c: replace gcc-specific construct with portable alternative
2095 and match the code a few lines above.
2096 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
2098 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2100 * include/_mingw.h: Changes required for PCC compiler.
2102 2009-07-18 Jeff Lu <jll544@yahoo.com>
2104 * mingwex/usleep.c: round up to next ms
2106 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2108 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
2109 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
2110 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
2111 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
2113 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2115 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
2117 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
2119 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
2120 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
2121 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
2122 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
2123 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
2124 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
2125 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
2126 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
2127 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
2128 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
2129 sources as of Apr. 20, 2009. Update further to match the sources in
2130 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
2131 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
2132 double/ulong union from U to dbl_union for better grepping and white-
2135 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2137 * include/stdlib.h (_wtof): Define.
2139 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
2141 * include/stdint.h (int_fast8_t): Specify as signed char.
2142 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
2143 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
2145 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
2147 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
2149 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2151 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
2152 (Requested by Robert Riebisch)
2154 * mingwex/getopt.c (getopt_parse): Track external increments of...
2155 (optind): ...this global variable.
2157 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2159 * include/_mingw.h: Increment version to 3.15.2.
2161 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2163 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
2164 Also add tentative support for BSD specific `optreset' feature.
2166 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
2167 (__mingw_optreset): ...this new global variable.
2169 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
2170 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
2173 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2175 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
2176 Correct mishandling of invalid characters in printf() format specs.
2178 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
2179 (backtrack): ...this new automatic variable, at start of each format
2180 conversion specification substring; use it to backtrack, and print the
2181 substring literally, if any invalid character is encountered.
2183 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
2185 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
2186 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
2187 ___unguarded_readlc_active_add_func, __crtCompareStringW,
2188 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
2189 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
2190 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
2191 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
2192 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
2193 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
2194 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
2195 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
2196 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
2197 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
2198 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
2200 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
2202 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
2204 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2206 Correct some binary distribution packaging defects.
2208 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
2209 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
2210 intermediate goals; they make packages of files, as specified by...
2211 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
2212 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
2214 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2216 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
2217 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
2219 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
2220 of radix point conditional on precision != 0 or `#' flag specified.
2222 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2224 Fix MinGW-Bug [2160227]
2225 Eliminate conflicting declarations and implementations of scalb().
2227 * moldname.def.in (scalb): Comment out of EXPORTS list.
2228 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
2229 with GCC's built-in declaration.
2231 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
2233 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
2235 * mingwex/Makefile.in: Ditto.
2236 * profile/Makefile.in: Ditto.
2237 * configure.in: Record mingw front-end for building under Cygwin.
2238 * mingwex/configure.in: Ditto.
2239 * profile/configure.in: Ditto.
2240 * configure: Regenerate.
2241 * mingwex/configure: Ditto.
2242 * profile/configure: Ditto.
2244 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2246 Use de-facto standard Makefile goals to invoke test suite.
2248 * Makefile.in: Some minor formatting adjustments.
2249 (test_headers): Unconventionally named goal renamed to...
2250 (check-headers): ...this; make it a prerequisite of...
2251 (check): ...this new conventionally named goal.
2253 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2255 Make strtod() inline definition C89 compliant.
2256 (Issue reported by Ilya Shestopalov and Ian Puleston)
2257 (Correction identified by Danny Smith)
2259 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
2260 reformat inline function definition.
2262 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2264 * include/_mingw.h: Increment version to 3.15.1 and introduce
2265 __MINGW32_PATCHLEVEL variable.
2267 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2269 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
2270 (Reported by Christian Franke)
2272 * mingwex/getopt.c (optind): Make global variable value conform to
2273 behaviour specified by POSIX; do not use it for internal state in...
2274 (getopt_parse): ...this static function; use...
2275 (optbase): ...this new static local variable instead.
2276 (getopt_resolved): Update `optind' as required.
2278 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2280 Improve package identification in configure script.
2282 * configure.ac (AC_INIT): Redefine parameters...
2283 (PACKAGE_NAME): Set to `MinGW Runtime'.
2284 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
2285 (PACKAGE_TARNAME): Set to `mingwrt'.
2286 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
2287 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
2288 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
2290 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
2291 (PACKAGE_TARNAME): ...this.
2293 * configure: Regenerated.
2295 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2297 Fix MinGW-Bug [2125708].
2298 (Reported by Alexandr Zamaraev).
2300 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
2301 not wanted here; remove it; replace it by...
2302 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
2303 (_invalid_parameter_handler): ...this function typedef.
2305 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
2307 * Makefile.in: Don't include host_os as part of snapshot filename.
2309 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2311 Fix MinGW-Bug [2119504].
2312 (Reported by Peiyuan Song).
2314 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
2315 (*retindex): ...this already correctly assigned return variable...
2316 (opt[index].val): ...with this; this should have been assigned to...
2317 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
2319 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2321 Fix MinGW-Bug [2117379].
2322 (Reported by Peiyuan Song).
2324 * include/stdio.h (__argv): Replace all references in function
2325 prototype argument lists and inline function local variables, with ...
2326 (__local_argv): ...this, to avoid potential conflict with ...
2327 * include/stdlib (__argv): ...this #defined macro.
2329 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2331 * include/_mingw.h: Increment version to 3.15.
2333 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2335 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
2336 naming standard for Cygwin.
2338 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2340 Reimplement getopt.c to add getopt_long_only() function.
2342 (N.B. this reimplementation removes support for BSD/Mac-OS-X
2343 `optreset' nonsense; user code should set `optind = 0' instead,
2344 to reinitialise option scanning).
2346 * mingwex/getopt.c: Delete all content; reimplement it.
2347 * include/getopt.h: Likewise.
2349 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
2350 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
2352 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2354 Implement conditional replacement for printf() family functions.
2356 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
2357 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
2358 flag for use in user specified __MINGW_FEATURES__ attribute.
2359 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
2360 currently unused: reserved as components of...
2361 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
2362 a __MINGW_FEATURES__ enhancement to setlocale().
2364 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
2365 (__mingw_fprintf, __mingw_vfprintf): Likewise.
2366 (__mingw_sprintf, __mingw_vsprintf): Likewise.
2367 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
2368 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
2369 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
2370 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
2371 usage; link to DLL import stub, importing from MSVCRT.
2372 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2373 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2374 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
2375 locally defined static stub implementation.
2376 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2377 __mingw_fprintf and __mingw_sprintf respectively.
2378 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
2379 static inline implementation for C++ and GNU C, or locally defined
2380 static stub otherwise.
2381 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2382 __mingw_vfprintf and __mingw_vsprintf respectively.
2384 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2386 Avoid access violations, passing NULL to printf( "...%s..." );
2387 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
2389 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
2390 for argument value, if caller passes a NULL pointer.
2391 (__pformat_wcputs): Likewise, substitute L"(null)".
2393 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2395 Add missing dependencies for building libmingwex.a.
2397 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
2398 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
2399 (pformat.h): ...this.
2401 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2403 Add replacements for remaining members of printf() family.
2405 * mingwex/stdio/printf.c: New file.
2406 * mingwex/stdio/fprintf.c: New file.
2407 * mingwex/stdio/sprintf.c: New file.
2408 * mingwex/stdio/vprintf.c: New file.
2409 * mingwex/stdio/vfprintf.c: New file.
2410 * mingwex/stdio/vsprintf.c: New file.
2412 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2413 (STDIO_OBJS): Add their corresponding object files.
2415 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2417 Replace __mingw_snprintf() with new generic family implementation;
2418 likewise, replace __mingw_vsnprintf().
2420 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
2421 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
2422 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2423 (GDTOA_DISTFILES): Remove mingw_snprintf.c
2424 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
2425 (GDTOA_OBJS): Remove mingw_snprintf.o
2426 (PFORMAT_CFLAGS): New macro; define it, as required by...
2427 (pformat.o): ...this new explicit build target.
2428 (snprintf.o, vsnprintf.o): Declare prerequisites.
2430 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
2432 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2434 Lay foundations for new printf() function family implementation.
2436 * ofmt_stub.s: New file; implement forward compatibility stub for...
2437 (_get_output_format): ...this MSVCR80.DLL and later function.
2439 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
2440 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
2441 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
2442 (lib%.a): Include ofmt_stub.o when import library does not already
2443 advertise availability of the _get_output_format() function;
2444 Add alias stubs for MINGW_REPL_FUNCS, such that...
2445 (__msvcrt_printf): ...is an alias for Microsoft's printf().
2446 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
2447 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
2448 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
2449 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
2450 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
2451 (clean): Add msvcr*.def.
2453 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
2454 * configure: Regenerated.
2456 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2458 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
2459 (_imp____mb_cur_max_dll): Likewise.
2461 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
2463 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
2464 * include/wchar.h (swprintf, vswprintf): Likewise.
2466 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2468 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
2469 (_get_output_format, _set_output_format): Add references.
2471 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
2472 (_get_output_format, _set_output_format): Declare prototypes.
2473 (_TWO_DIGIT_EXPONENT): Define.
2474 Some other minor formatting adjustments.
2476 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2478 [mingw-Bugs-1801641]
2479 * include/wchar.h (_wfdopen): Const-ify second arg.
2480 * include/stdio.h (_wfdopen): Likewise.
2481 Thanks to <tdragon at users dot sourceforge net>
2483 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2485 Avoid precision errors in round(), lround() and llround() functions.
2487 * mingwex/math/round_generic.c: New file; it replaces...
2488 * mingwex/math/round.c: ...this; delete it.
2489 * mingwex/math/roundf.c: ...and this; ditto.
2490 * mingwex/math/roundl.c: ...and this; ditto.
2492 * mingwex/math/lround_generic.c: New file; it replaces...
2493 * mingwex/math/lround.c: ...this; delete it.
2494 * mingwex/math/lroundf.c: ...and this; ditto.
2495 * mingwex/math/lroundl.c: ...and this; ditto.
2496 * mingwex/math/llround.c: ...and this; ditto.
2497 * mingwex/math/llroundf.c: ...and this; ditto.
2498 * mingwex/math/llroundl.c: ...and this; ditto.
2500 * mingwex/math/round_internal.h: New file; it provides generic common
2501 code, which is shared by `round_generic.c' and `lround_generic.c'; the
2502 implementation is based on techniques suggested by Danny Smith and
2505 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
2506 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
2507 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
2508 `round_generic.c' and `lround_generic.c'.
2509 (MATH_OBJS): Factor out files listed in...
2510 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
2511 macros; define them; specify dependencies and build rules; add to...
2512 (LIB_OBJS): ...this list.
2514 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
2516 [ mingw-Bugs-1961893 ]
2517 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
2518 mode to 2 for E format.
2520 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
2522 * include/stdlib.h: Fix strtod under C++.
2524 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
2526 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
2527 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
2529 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
2531 * include/sys/types.h (useconds_t): typedef.
2532 * include/unistd.h (usleep): Add prototype.
2533 * mingwex/usleep.c: New file.
2534 * mingwex/makefile.in: Add usleep source and object.
2536 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2538 Make strtod() conform to C99.
2540 * include/stdlib.h (strtod): Declare this mingwex function, and...
2541 (_strtod): rename this MSVCRT counterpart.
2543 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2545 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2547 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2549 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2551 * include/process.h: Include stdint.h for intptr_t definition.
2552 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2553 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2554 _spawnvpe): Return intptr_t.
2555 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2556 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2558 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2560 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2561 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2562 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2563 _wspawnvp, _wspawnvpe): Return intptr_t.
2565 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2567 * include/wchar.h (fwide): Return success code rather than failure in inline
2569 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2570 code rather than failure.
2572 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2574 * include/math.h (float_t, double_t): Define.
2576 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2578 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2579 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2580 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2582 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2584 * include/complex.h: Don't condition contents on C99 or not
2587 2008-02-01 Brian Dessent <brian@dessent.net>
2589 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2590 the different runtime versions.
2592 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2594 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2595 (mbsinit): Likewise.
2597 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2599 * include/_mingw.h: Increment version to 3.14.
2601 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2603 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
2604 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
2605 * mingwex/math/log10f.S: Correct issue with comments.
2606 * mingwex/math/log10l.S: Ditto.
2607 * mingwex/math/log1p.S: Ditto.
2608 * mingwex/math/log1pf.S: Ditto.
2609 * mingwex/math/log1pl.S: Ditto.
2610 * mingwex/math/log2.S: Ditto.
2611 * mingwex/math/log2f.S: Ditto.
2612 * mingwex/math/log2l.S: Ditto.
2613 * mingwex/math/logf.S: Ditto.
2614 * mingwex/math/logl.S: Ditto.
2616 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
2618 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
2620 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
2622 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
2623 from '_fsize_t' to '__int64' to be consistent with the other ...64
2624 structures and the value set there is 8 bytes not 4. Add guard for both
2625 as the are only used by functions available from 6.1 on.
2627 * include/malloc.h (_HEAP_MAXREQ): Define.
2628 (_aligned_offset_recalloc): Define.
2629 (_aligned_recalloc()): Define.
2631 * include/math.h: fixed a typo in a comment.
2632 (atanhf): Fixed declaration.
2634 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
2635 to '__int64' to be consistent with the other ...64 structures and the value
2636 set there is 8 bytes not 4. Added guard as this function is only used by
2637 functions available from 6.1 on.
2639 * include/sys/stat.h: some members of 'stat' were declared with types with
2640 a prefixed underscore, while the ones without the underscore should have
2641 been used. Added guard to '__stat64' as it is only used by functions
2642 available from 6.1 on. Added the wide character versions of the
2643 exec()/spawn() family for completion
2644 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
2647 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
2648 from 'long' to 'time_t'
2649 (__timeb64): moved declaration of structure directly before the declaration
2650 of the function '_ftime64()', so it is guarded as well
2652 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
2653 before the declaration of the functions using it, so it is guarded as well
2655 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
2657 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
2658 case. Add missing break in 's'/LEN_S case.
2660 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2662 Make snprintf() and vsnprintf() conform to C99.
2664 * include/stdio.h: Add note about incompatibility between...
2665 (snprintf, vsnprintf): These two mingwex functions, and...
2666 (_snprintf, _vsnprintf): these MSVCRT counterparts.
2668 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
2669 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
2671 * mingwex/stdio/snprintf.c: Delete.
2672 * mingwex/stdio/vsnprintf.c: Delete.
2674 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
2675 (vsnprintf): Alias to __mingw_vsnprintf.
2677 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2679 * include/_mingw.h: Increment version to 3.13.
2680 * Makefile.in: Reset CYGRELEASE to 1
2682 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2684 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
2685 resulting from incomplete removal of enclosing `for ...; do ...; done'
2686 loop from compound command; (reported by Greg Chicares).
2688 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2690 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2693 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2695 [mingw-Bugs-1734142]
2696 * include/wchar.h (_wsystem) Declare.
2698 (_wgetenv): Declare.
2699 (_wsearchenv): Declare.
2700 (_wmakepath): Declare.
2701 (_wsplitpath): Declare.
2702 (_wfullpath): Declare.
2703 * include/stdlib.h (_wsystem) Declare.
2704 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
2705 _wfullpath): Move into _WSTDLIB_DEFINED guard.
2706 * include/tchar.h (_tsystem): New UNICODE mapping define.
2708 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
2710 * mingwex/gdtoa/mingw_snprintf.c: New file.
2711 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
2712 (GDTOA_OBJS): Add mingw_snprintf.o.
2714 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
2716 * msvcrt.def.in: Update comment.
2717 Exclude _ctype stub if using msvcr71.dll or newer.
2718 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
2719 * include/wctype.h: Likewise.
2721 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2723 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
2724 *include/dirent.h: Likewise.
2726 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2728 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
2729 * include/conio.h: Likewise.
2730 * include/ctype.h: Likewise.
2731 * include/direct.h: Likewise.
2732 * include/dos.h: Likewise.
2733 * include/errno.h: Likewise.
2734 * include/fenv.h: Likewise.
2735 * include/float.h: Likewise.
2736 * include/inttypes.h: Likewise.
2737 * include/io.h: Likewise.
2738 * include/libgen.h: Likewise.
2739 * include/locale.h: Likewise.
2740 * include/malloc.h: Likewise.
2741 * include/mbctype.h: Likewise.
2742 * include/mbstring.h: Likewise.
2743 * include/process.h: Likewise.
2744 * include/search.h: Likewise.
2745 * include/setjmp.h: Likewise.
2746 * include/signal.h: Likewise.
2747 * include/stdio.h: Likewise.
2748 * include/stdlib.h: Likewise.
2749 * include/string.h: Likewise.
2750 * include/time.h: Likewise.
2751 * include/wchar.h: Likewise.
2752 * include/sys/stat.h: Likewise.
2753 * include/sys/time.h: Likewise.
2754 * include/sys/timeb.h: Likewise.
2755 * include/sys/utime.h: Likewise.
2757 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2759 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2761 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2763 Add POSIX binary tree search API.
2765 * mingwex/tfind.c: New file.
2766 * mingwex/tdelete.c: New file.
2767 * mingwex/tsearch.c: New file.
2768 * mingwex/twalk.c: New file.
2769 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2770 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2771 * include/search.h (tfind): Declare.
2778 (node_t): Define, on condition of _SEARCH_PRIVATE.
2780 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2782 * include/_mingw.h (__MINGW_NOTHROW): Define.
2784 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2786 * include/stdio.h (vsnprintf): Remove inline definition.
2789 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2791 * CRTfmode.c: Nit-pick comment fix.
2793 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2795 * CRTfmode.c: Fix nested comment.
2797 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2799 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2801 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2803 * include/io.h (lseek64) : Add prototype.
2805 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2807 * include/string.h (strcasecmp): Add prototype.
2808 (strncasecmp): Add prototype.
2810 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2812 * Makefile.in (CRT0S): Revert last change.
2813 * CRTfmode.c. Correct comment.
2815 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2817 * Makefile.in (CRT0S): Add back CRTfmode.o.
2819 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2821 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2822 * include/io.h: Likewise.
2824 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2826 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2828 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2830 * include/stdint.h (intptr_t): Fix typo.
2831 Thanks to Charles Wilson for report.
2833 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2835 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2836 Condition on _WIN64.
2837 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2838 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2839 (PTRDIFF_MIN): Define as INTPTR_MIN.
2840 (PTRDIFF_MAX): Define as INTPTR_MAX.
2841 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2842 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2844 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2846 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2847 Cygwin man page location.
2849 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2851 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2852 support Cygwin man page location.
2854 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2856 * Include/_mingw.h: Increment version to 3.12.
2858 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2860 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2862 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2864 * Makefile.in: Tweak srcdist to fix build issue.
2866 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2868 Add --enable-mingw-manpage-transform configure option.
2870 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2871 * configure.in, Makefile.in: Use it.
2872 * configure: Regenerated.
2874 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2876 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2878 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2880 Add manpages for dirname and basename functions.
2882 * man: New directory.
2883 * man/dirname.man: New file; it sources both manpages.
2884 * Makefile.in: Add provisional rules to distribute them.
2886 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2888 * mingwex/basename.c: Make it work with path names containing
2889 multibyte character strings.
2890 * mingwex/dirname.c: Likewise.
2892 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2894 * include/io.h (__mingw_access): New static inline wrapper to restore
2895 pre-Vista 'access (fname, X_OK)' behaviour.
2896 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2898 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2900 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2902 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2904 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2906 * include/stdio.h (_unlink, unlink): Add prototypes.
2908 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2910 * include/excpt.h: Replace "_try1" in comments with "__try1".
2912 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2914 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2915 (ALL_CXXFLAGS): Likewise.
2916 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2917 (ALL_CXXFLAGS): Likewise.
2918 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2919 (ALL_CXXFLAGS): Likewise.
2921 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2923 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2925 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2927 Expose some more msvcr80.dll functions.
2928 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2929 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2930 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2931 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2933 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2935 Expose some msvcr80.dll functions.
2936 * include/stdlib.h (_set_abort_behavior): Add prototype.
2937 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2938 _set_abort_behavior mask argument.
2939 (_invalid_parameter_handler): Add typedef.
2940 (_set_invalid_parameter_handler): Add prototype.
2941 * include/stdio.h (_get_printf_count_output): Add prototype.
2942 (_set_printf_count_output): Add prototype.
2943 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2944 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2946 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2948 * include/_mingw.h (CRT_INLINE): Correct typo.
2950 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2952 * include/io.h (X_OK): Define to F_OK.
2954 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2956 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2957 unconditionally. Change comment.
2958 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2960 * include/io.h (rename): Declare.
2963 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2965 * include/libgen.h: New file; required by...
2966 * mingwex/basename.c, mingwex/dirname.c: New files.
2967 * mingwex/Makefile.in (DISTFILES): Add them...
2968 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2969 (Dependencies): Typo; s/Dependancies/Dependencies/
2971 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2973 * Makefile.in (VERSION): Let configure define it.
2975 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2976 * configure.in: Use it.
2977 Correct quoting of autoconf macro arguments throughout.
2978 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2979 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2980 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2981 (AC_CONFIG_FILES): Add, to generate Makefile.
2983 * configure: Regenerated.
2985 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2987 * Makefile.in: Add aclocal.m4 to source release.
2988 * mingwex/Makefile.in: Ditto.
2989 * profile/Makefile.in: Ditto.
2991 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2993 * Include/_mingw.h: Increment version to 3.11.
2994 * Makefile.in: Ditto.
2996 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
2998 [ mingw-Bugs-1590623 ]
2999 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
3002 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
3004 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
3005 correctly parenthesized.
3007 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3009 * mingwex/mb_wc_common.h (get_codepage): Get it
3012 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3014 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
3016 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
3018 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
3021 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
3023 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
3026 2006-09-11 Christopher Faylor <cgf@timesys.com>
3028 * Makefile.in: Semi-revert 2006-08-30 change.
3030 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3032 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
3033 (__MINGW_IMPORT): Ansify.
3034 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
3035 __MINGW_ATTRIB_DEPRECATED.
3037 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3039 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
3040 Redundant macros; deleted.
3042 * configure.in (LIB_AC_PROG_CC): Replaced by...
3043 (AC_PROG_CC): ...this.
3045 * configure: Regenerated.
3047 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
3049 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
3050 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
3051 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
3053 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
3055 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
3056 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
3057 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
3058 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
3060 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
3061 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
3062 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
3063 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
3064 * mingwex/wcstold.c: Avoid using strtold internals.
3065 * mingwex/wcstof.c: Rewrite.
3066 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
3067 (GDTOA_OBJS): Add to library.
3068 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
3069 (STDLIB_OBJS): Remove.
3070 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
3071 (Q8_OBJS): Add wcstof.o wcstold.o.
3072 * include/stdlib.h (strtof): Remove inline definition.
3074 * include/wchar.h (wcstof): Remove inline definition.
3076 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
3078 * Makefile.in: Add with_cross_host to allow more granular checks.
3079 Set installation directories accordingly. Override CC setting only
3080 if building a Cygwin target.
3081 * aclocal.m4: Regenerate.
3082 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
3083 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
3084 Test AC_ALLOCA only if building on a native system.
3085 * configure: Regenerate.
3087 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3089 * include/ctype.h: Fix typo.
3091 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3093 * include/ctype.h: Expose iswblank if __cplusplus.
3094 * include/wctype.h: Expose iswblank if __cplusplus.
3096 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3098 * include/ctype.h: Remove stray ')';
3100 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
3102 * include/ctype.h (_BLANK): Expand comment.
3103 (isblank): Add prototype and inline definition.
3104 (iswblank): Add prototype and inline definition.
3105 * include/wctype.h (iswblank): Add prototype and inline definition.
3106 * mingwex/isblank.c: New file.
3107 * mingwex/iswblank.c: New file.
3108 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
3110 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
3112 * include/math.h (__INFF,__INFL): Remove '#'.
3114 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3116 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
3118 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3120 Support SSE float environment in fenv.h functions.
3121 * cpu_features.c: New file.
3122 * cpu_features.h: New file.
3123 * crt1.c: Include "cpu_features.h".
3124 (__mingw_CRTStartup): Call cpu_features_init().
3125 * Makefile.in (MING_OBJS): Add cpu_features.c.
3126 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
3127 * include/fenv,h ( fenv_t;): Append __mxcsr field.
3128 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
3129 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
3130 (__MXCSR_ROUND_FLAG_SHIFT): New define.
3131 * mingwex/feclearexcept.c: Include "cpu_features.h".
3132 Handle SSE environment.
3133 * mingwex/fegetenv.c: Likewise.
3134 * mingwex/feholdexcept.c: Likewise.
3135 * mingwex/fesetenv.c: Likewise.
3136 * mingwex/fesetexceptflag.c: Likewise.
3137 * mingwex/fesetround.c: Likewise.
3138 * mingwex/fetestexcept.c: Likewise.
3139 * mingwex/feupdateenv.c: Likewise.
3140 * mingwex/fegetround.c: Add comment.
3142 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3144 * Include/_mingw.h: Increment version to 3.10.
3145 * Makefile.in: Ditto.
3147 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3149 * mingwex/math/tgamma.c (SQTPI): Add braces.
3151 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
3153 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
3154 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
3156 * mingwex/math/sf_erf.c (erff): Initialize z.
3158 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
3160 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3162 * Include/_mingw.h: Increment version to 3.10.
3163 * Makefile.in: Ditto.
3165 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
3167 * include/sys/time.h (struct timezone): Define.
3168 * include/time.h: Correct comment about timezone.
3170 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3172 * configure.in (AC_CONFIG_AUX_DIR): Remove.
3173 * configure: Regenerate.
3175 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
3177 * configure: add srcdir as a possible location for install-sh.
3179 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3181 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
3182 (_topendir): Use it.
3184 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
3186 * include/sys/time.h: Add header guard. Add extern "C" bracketing
3188 (gettimeofday): Add prototype.
3189 * mingwex/gettimeofday.c: New file.
3190 * mingwex/makefile.in: Add gettimeofday source and object.
3192 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3194 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
3195 else global library variable.
3196 (HUGEVALF): Likewise.
3197 (HUGEVALL): Likewise.
3198 (INFINITY): Likewise.
3201 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3203 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
3205 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
3207 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
3209 2006-05-24 Christopher Faylor <cgf@timesys.com>
3211 * configure.in: Update to newer autoconf.
3212 (thanks to Steve Ellcey)
3213 * mingwex/configure.in: Ditto.
3214 * profile/configure.in: Ditto.
3215 * configure: Regenerate.
3216 * mingwex/configure: Ditto.
3217 * profile/configure: Ditto.
3218 * aclocal.m4: New file.
3219 * mingwex/aclocal.m4: Ditto.
3220 * profile/aclocal.m4: Ditto.
3222 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
3224 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
3225 Use supplied codepage as arg to WideCharToMultiByte.
3227 2006-02-13 Earnie Boyd <earnie@users.sf.net>
3229 * Makefile.in (libmsvcr80.a): Add import lib.
3230 (libmsvcr80d.a): Ditto.
3232 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3234 * Makefile.in: Bump cygwin build number.
3236 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3238 * Include/_mingw.h: Increment version to 3.9.
3239 * Makefile.in: Ditto.
3241 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3243 * include/limits.h (SSIZE_MAX): Define.
3244 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
3246 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
3248 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
3249 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
3251 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3253 * include/stddef.h: Remove.
3254 * include/stdarg.h: Remove.
3256 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3258 * mingwex/complex/csqrt.c (csqrt): The sign of real part
3259 of result is positive when real part of arg == 0;
3260 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
3261 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
3263 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
3265 * include/time.h (_time64): Correct prototype.
3267 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
3269 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
3270 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
3271 to non-stop. Use "fnclex" to clear exception flags.
3273 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3275 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
3276 Avoid raising FP exceptions.
3278 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3280 * include/stdlib.h (strtof): Add prototype. Uglify
3281 parameter names in inline definition.
3283 (_Exit): Uglify parameter names in inline definition.
3284 (llabs): Add prototype.
3285 (_set_error_mode): Add prototype and input defines.
3287 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3289 * mingwex/fe*.c: Revert previous changes.
3290 * include/fenv.h: Revert previous changes.
3292 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3294 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
3295 Do not return a value.
3296 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
3297 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
3298 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
3299 * mingwex/fegetenv.c (fegetenv): Likewise.
3300 * mingwex/fesetenv.c (fesetenv): Likewise.
3301 * mingwex/feupdateenv.c (feupdateenv): Likewise.
3302 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
3303 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
3306 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3308 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
3309 getting filelength for SEEK_END.
3311 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3313 * Include/_mingw.h: Increment version to 3.8.
3314 * Makefile.in: Ditto.
3316 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3318 * include/wctype.h (towupper, towlower): Change arg and return value
3320 * include/ctype.h (towupper, towlower): Likewise.
3322 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3324 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
3325 a diagnostic, guarded by #ifdef DEBUG.
3326 (__mingwthr_remove_key_dtor): Likewise.
3328 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
3330 * moldname.def.in (sleep, beep, seterrormode): Remove.
3332 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3334 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
3335 (_MCOUNT_DECL): Use it.
3336 (MCOUNT): Save and restore eax, ecx, edx registers.
3337 * profile/mcount.c (_mcount): ANSI-fy.
3339 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3341 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
3342 guard __MINGW_ATTRIB macro definitions.
3343 * include/math.h (logb[fl]): Don't define inlines for
3344 GCC-4.0+ && __FAST_MATH__.
3345 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
3346 line-continuation backslashes.
3348 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
3350 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
3351 in GNUC version guard.
3353 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
3355 * crt1.c (_gnu_exception_handler): Handle illegal instruction
3356 OS exception as a signal if user has defined a SIGILL handler.
3358 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
3360 * mingwex/math/nexttoward.c: New file.
3361 * mingwex/math/nexttowardf.c: New file.
3362 * mingwex/math/nextafterl.c: Add nexttowardl alias.
3363 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
3365 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
3366 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
3369 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
3371 * mingwex/math/nextafterf.c (nextafterf): Correct
3373 * mingwex/math/nextafterl.c: New file.
3374 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
3375 (MATH_OBJS): Add nextafterl.o.
3376 * include/math.h (nextafterl): Uncomment prototype.
3378 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3380 * mingwex/math/erfl.c: New file.
3381 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
3382 (MATH_OBJS): Add erfl.o.
3383 * include/math.h (erfl, erfcl): Uncomment prototypes.
3385 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
3387 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
3388 #if (WCHAR_MAX <= WCHAR_MIN) is false.
3389 * include/stdint.h (WCHAR_MAX): Likewise.
3390 (WINT_MAX): Likewise.
3392 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
3394 * mingwex/math/signbit.c (__signbit): Make return value
3395 consistent with GCC's __builtin_signbit.
3396 * mingwex/math/signbitf.c (__signbitf): Likewise.
3397 * mingwex/math/signbitf.c (__signbitl): Likewise.
3398 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
3401 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
3403 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
3405 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
3406 Remove unused MBTOWC_FLAGS define.
3408 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
3410 * mingwex/mbrtowc.c: New file.
3411 * mingwex/wcrtomb.c: New file.
3412 * mingwex/btowc.c: New file.
3413 * mingwex/wctob.c: New file.
3414 * mingwex/mb_wc_common.h: New file.
3415 * mingwex/Makefile.in (DISTFILES): Add new files.
3416 (Q8_OBJS): Add new objects.
3417 * include/wchar.h: Adjust comment about mbrtowc() and related
3418 funcions. Add __restrict__ to pointer params in prototypes.
3419 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
3420 arg names from protototypes.
3422 2005-04-23 Wu Yongwei <adah@sh163.net>
3424 * mingwex/dirent.c: Formatting changes.
3425 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
3428 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
3430 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
3432 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
3434 * include/stdio.h (__mingw_fwrite): Change return value to
3436 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
3438 2005-03-15 Hans Leidekker <hans@it.vu.nl>
3440 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
3442 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3444 * include/wctype.h (wctrans): Remove _CRTIMP.
3445 (towctrans): Likewise.
3448 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3450 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
3452 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3454 * mingwex/wctype.c: New file.
3455 * mingwex/wctrans.c: New file.
3456 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
3457 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
3459 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3461 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
3463 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3465 * include/assert.h: Remove header guard. #undef assert macro.
3466 (_assert): Use __MINGW_ATTRIB_NORETURN define.
3468 2005-02-11 Gregory W. Chicares <chicares@cox.net>
3470 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
3471 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
3473 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
3474 * mingwex/math/expm1.c: New file.
3475 * mingwex/math/expm1f.c: New file.
3476 * mingwex/math/expm1l.c: New file.
3478 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3480 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
3481 * include/wchar.h (struct stat): Likewise.
3482 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
3484 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
3486 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3488 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
3489 string is not valid.
3491 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
3493 * include/malloc.h: Add missing return code defines for
3496 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
3498 * include/sys/stat.h (struct __stat64): Change st_size type to
3500 * include/wchar.h (struct __stat64): Change st_size type to __int64.
3502 2005-01-13 Earnie Boyd <earnie@users.sf.net>
3504 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3506 * include/errno.h (ELOOP): Ditto.
3507 * include/_mingw.h: Increment version to 3.7.
3508 * Makefile.in: Ditto.
3510 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3512 * include/tchar.h (_tfreopen): Add UNICODE mappings.
3514 2005-01-11 Earnie Boyd <earnie@users.sf.net>
3516 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3517 lstat): Conditionalize defines for __STRICT_ANSI__.
3519 2005-01-10 Earnie Boyd <earnie@users.sf.net>
3521 * include/errno.h (ELOOP): Add definition.
3523 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
3525 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
3526 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
3527 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
3528 ctanl.c ctanhl.c): New files.
3529 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3530 (COMPLEX_OBJS): Adjust.
3531 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
3532 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
3533 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
3536 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3538 * include/_mingw.h (__int16): Define as short.
3539 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3541 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3543 * include/stdio.h (P_tmpdir): Add define.
3545 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3547 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3549 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3551 * include/_mingw.h: Increment version to 3.6
3552 * Makefile.in: Ditto
3554 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3556 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3557 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3558 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3559 ctanf.c ctanhf.c): New files.
3560 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3561 (COMPLEX_OBJS): Adjust.
3562 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3563 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3564 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3567 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3569 * include/wchar.h (wcsdup): Correct prototype.
3570 * include/string.h (wcsdup): Correct prototype.
3572 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3574 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3576 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3578 * mingwex/math/fastmath.h: New file.
3579 * mingwex/math/asinh.c: New file.
3580 * mingwex/math/asinhf.c: New file.
3581 * mingwex/math/asinhl.c: New file.
3582 * mingwex/math/acosh.c: New file.
3583 * mingwex/math/acoshf.c: New file.
3584 * mingwex/math/acoshl.c: New file.
3585 * mingwex/math/atanh.c: New file.
3586 * mingwex/math/atanhf.c: New file.
3587 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3588 atanh, atanhf, atanhl): Add prototypes.
3589 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3590 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3591 Specify dependency on fastmath.h for new objects.
3593 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3595 * include/sys/stat.h (_S_IFLNK): Add definition.
3602 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3604 * include/sys/stat.h (_S_ISLNK): Add definition.
3607 2004-09-05 Earnie Boyd <earnie@users.sf.net>
3609 * include/_mingw.h: Increment minor version for 3.5 release.
3610 * Makefile.in: Ditto.
3611 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
3613 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3615 * include/malloc.h (__mingw_aligned_offset_malloc,
3616 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
3617 __mingw_aligned_realloc, __mingw_aligned_free): Add
3619 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
3620 tst-aligned-malloc.c.
3621 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
3623 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
3625 * mingwex/mingw-aligned-malloc.c: New file.
3626 * mingwex/tst-aligned-malloc.c: New file.
3628 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3630 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
3631 noreturn attribute. Align stack to 16 bytes before passing args
3633 (mainCRTStartup): Change return to void.
3634 (WinMainCRTStartup): Likewise.
3636 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3638 * profile/COPYING: New file.
3639 * profile/CYGWIN_LICENSE: New file.
3640 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
3642 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3644 * mingwex/fopen64.c: Move.
3645 * mingwex/fseeko64.c: Move.
3646 * mingwex/ftello64.c: Move.
3647 * mingwex/lseek64.c: Move.
3648 * mingwex/stdio/fopen64.c: To here.
3649 * mingwex/stdio/fseeko64.c: To here.
3650 * mingwex/stdio/ftello64.c: To here.
3651 * mingwex/stdio/lseek64.c: To here.
3653 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3655 * profile/gmon.c [__MINGW32__]: Include string.h for
3658 2004-08-08 Christopher Faylor <cgf@timesys.com>
3660 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
3662 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3664 * include/complex.h: Remove __attribute__ ((const)) from
3665 transcendantal and trig functions. Replace __attribute__ ((const))
3666 with __MINGW_ATTRIB_CONST on other declarations.
3668 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3670 * include/wchar.h: Reorganize, avoid including other headers.
3672 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3674 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
3675 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
3678 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3680 * include/dirent.h (struct _wdirent): Remove obsolete comment.
3682 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3684 * include/string.h: Revert 2004-07-26 additions of
3687 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3689 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3690 (__convert_inf_to_maxnum): New.static inline.
3691 (reducl): Use it to protect against Inf - Inf.
3692 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3694 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3696 * mingwex/math/expl.c (expl): Move body of code to new static
3697 function __expl, removing tests for +/-Inf. Extern function
3698 expl calls __expl after testing for max, min log thresholds.
3700 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3702 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
3703 * mingwex/stdio/vfscanf.c: Likewise.
3704 * mingwex/stdio/vswscanf.c: Likewise.
3705 * mingwex/stdio/vfwscanf.c: Likewise.
3707 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3709 * include/_mingw.h: Use only two underscores to uglify
3710 __MINGW_ATTRIB_* macros.
3711 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
3712 * include/setjmp.h: Likewise.
3714 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
3716 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
3718 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3720 * include/string.h: Group wide string functions together,
3721 and protect with _WSTRING_DEFINED.
3723 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3725 * include/_mingw.h (__MINGW_ATTR_*): Replace with
3727 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
3728 __MINGW_ATTRIB_NORETURN, throughout.
3729 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3731 (abs): Declare with __MINGW_ATTRIB_CONST.
3740 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3742 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3744 * include/_mingw.h: Undefine __attribute__.
3745 (__MINGW_ATTR_NORETURN): New define.
3746 (__MINGW_ATTR_CONST): New define.
3747 (__MINGW_ATTR_MALLOC): New define.
3748 (__MINGW_ATTR_PURE): New define.
3749 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3752 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3754 * include/time.h (__time64_t): Add missing ';'.
3756 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3758 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3759 (struct tm): Protect with _TM_DEFINED.
3761 2004-07-17 Christopher Faylor <cgf@timesys.com>
3763 * Makefile.in (CC): Strip inappropriate include file settings from any
3766 2004-07-15 "dgun" <dgun@umpire.com>
3768 * include/complex.h (conj): Correct typo in prototype.
3770 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3772 * include/math.h: Add pragma GCC system_header.
3774 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3776 * mingwex/complex/carg.c: New file.
3777 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3779 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3781 * Makefile.in (INCLUDES): Temporarily revert previous change.
3782 * mingwex/Makefile,in (INCLUDES): Ditto.
3783 * profile/Makefile,in (INCLUDES): Ditto.
3784 * mingwex/Makefile,in: Drop carg.o dependency.
3786 2004-07-14 Christopher Faylor <cgf@timesys.com>
3788 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3790 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3792 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3794 * mingwex/Makefile,in (INCLUDES): Ditto.
3795 * profile/Makefile,in (INCLUDES): Ditto.
3797 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3799 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3801 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3803 * mingwex/Makefile.in: Ditto.
3804 * profile/Makefile.in: Ditto.
3805 * include/limits.h: Change to new file header preamble.
3806 * include/_mingw.h: Increment minor version for 3.4 release.
3807 * Makefile.in: Ditto.
3809 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3811 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3813 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3815 * include/unistd.h (ftruncate): Add inline definition.
3816 * mingwex/ftruncate.c: New file.
3817 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3819 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3821 * include/time.h: Do not include sys/types.h.
3823 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3825 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3826 (MATH_OBJS): Remove pow,o.
3827 * include/math.h (pow): Declare with _CRTIMP.
3828 Add comment on how to avoid excess precision problems.
3830 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3832 * include/stdio.h (__mingw_fseeko64): Add prototype.
3833 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3834 (__mingw_fwrite): Handle huge files.
3836 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3837 Danny Smith <dannysmith@users.sourceforge.net>
3839 * include/stdio.h (fopen64): Add inline function.
3840 (fseeko64): Add prototype.
3841 (ftello64): Add inline function.
3842 * include/io.h (lseek64): Add inline function.
3843 * include/sys/types (off64_t): Add typedef.
3844 (fpos64_t): Add typedef.
3845 * mingwex/fopen64.c: New file.
3846 * mingwex/fseeko64.c: New file.
3847 * mingwex/ftello64.c: New file.
3848 * mingwex/lseek64.c: New file.
3849 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3850 fseeko.64.c, ftello64.c, lseek64.c.
3851 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3853 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3855 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3857 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3859 * DISCLAIMER: Add words about "free to use".
3860 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3861 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3862 (inst_docdir): New variable.
3864 (FLAGS_TO_PASS): Include inst_docdir.
3865 (install-dirs): Add inst_docdir.
3866 (install): Add loop for INSTDOCS.
3867 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3868 section to CONTRIBUTORS file. Remove RCS tags.
3870 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3872 * mingwex/math/lround.c: Rewrite.
3873 * mingwex/math/lroundf.c: Rewrite.
3874 * mingwex/math/lroundl.c: Rewrite.
3875 * mingwex/math/llround.c: Rewrite.
3876 * mingwex/math/llroundf.c: Rewrite.
3877 * mingwex/math/llroundl.c: Rewrite.
3879 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3881 * CONTRIBUTORS: New file.
3882 * DISCLAIMER: Ditto.
3883 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3884 section to CONTRIBUTORS file. Remove RCS tags.
3885 * CRTFmode.c: Ditto.
3889 * crtdll.dev: Ditto.
3899 * msvcrt.def.in: Ditto.
3900 * strcasecmp.c: Ditto.
3903 * include/assert.h: Ditto.
3904 * include/conio.h: Ditto.
3905 * include/ctype.h: Ditto.
3906 * include/direct.h: Ditto.
3907 * include/dirent.h: Ditto.
3908 * include/dos.h: Ditto.
3909 * include/errno.h: Ditto.
3910 * include/excpt.h: Ditto.
3911 * include/fcntl.h: Ditto.
3912 * include/float.h: Ditto.
3913 * include/io.h: Ditto.
3914 * include/locale.h: Ditto.
3915 * include/malloc.h: Ditto.
3916 * include/math.h: Ditto.
3917 * include/process.h: Ditto.
3918 * include/setjmp.h: Ditto.
3919 * include/share.h: Ditto.
3920 * include/signal.h: Ditto.
3921 * include/stdio.h: Ditto.
3922 * include/stdlib.h: Ditto.
3923 * include/string.h: Ditto.
3924 * include/tchar.h: Ditto.
3925 * include/time.h: Ditto.
3926 * include/wchar.h: Ditto.
3927 * include/sys/locking.h: Ditto.
3928 * include/sys/param.h: Ditto.
3929 * include/sys/stat.h: Ditto.
3930 * include/sys/timeb.h: Ditto.
3931 * include/sys/types.h: Ditto.
3932 * include/sys/utime.h: Ditto.
3933 * mingwex/dirent.c: Ditto.
3935 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3937 * include/_mingw.h: Revert to primary release 3 and increment minor
3939 * Makefile.in (VERSION): Ditto.
3941 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3943 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3944 _fmode if not __MSVCRT__.
3946 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3948 * include/io.h: (_findfirst): Correct prototype.
3950 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3952 * include/io.h: (_findnext, _findclose): Correct prototype.
3954 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3956 * include/math.h (FP_*): Add defines.
3958 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3960 * mingwex/math/round.c: Rewrite.
3961 * mingwex/math/roundf.c: Rewrite.
3962 * mingwex/math/roundl.c: Rewrite.
3964 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3966 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3967 * include/time.h (__time64_t): Add typedef.
3968 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3969 (_ctime64): Likewise.
3970 (_wctime64): Likewise.
3971 (_gmtime64): Likewise.
3972 (_localtime64): Likewise.
3973 (wcsftime): Move into _WTIME_DEFINED block.
3974 Regroup non-ANSI prototypes.
3975 * include/io.h: Include <stdint.h>.
3976 (__finddata64_t): Add struct definition.
3977 (__wfinddata64_t): Likewise.
3978 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3979 (_findnext64): Likewise.
3980 (_wfindfirst64): Likewise.
3981 (_wfindnext64): Likewise.
3982 * include/sys/timeb.h (__timeb64): Add struct definition.
3983 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3984 * include/sys/utime.h (__utimbuf64): Add struct definition.
3985 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3986 (_futime64): Likewise.
3987 (_wutime64): Likewise.
3988 * include/sys/stat.h (__stat64): Add struct definition.
3989 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3990 (_stat64): Likewise.
3991 (_wstat64): Likewise.
3992 * include/sys/types.h (__time64_t): Add typedef.
3993 * include/wchar.h (__wfinddata64_t): Add structure definition.
3994 (__stat64): Likewise.
3995 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3996 (_wfindfirst64): Likewise.
3997 (_wfindnext64): Likewise.
3998 (_wutime64): Likewise.
3999 (_wstat64): Likewise.
4000 * include/malloc.h (_aligned_free): Add prototype for
4001 __MSVCRT_VERSION__ >= 0x0700.
4002 (_aligned_malloc): Likewise.
4003 (_aligned_offset_malloc): Likewise.
4004 (_aligned_offset_realloc): Likewise.
4005 (_aligned_realloc): Likewise.
4006 * include/string.h (_wcserror): Add prototype for
4007 __MSVCRT_VERSION__ >= 0x0700.
4008 (__wcserror): Likewise.
4009 * include/math.h (_set_SSE2_enable): Add prototype for
4010 __MSVCRT_VERSION__ >= 0x0701.
4012 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
4014 * include/stdio.h (_fsopen): Add prototype.
4015 * include/tchar.h (_tfsopen): Add defines.
4016 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
4018 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
4020 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
4021 msvcr70.dll, and msvcr71.dll.
4022 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
4023 using basename of output def file.
4025 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
4027 * include/malloc.h: Remove __STRICT_ANSI__ guard.
4029 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
4031 * include/process.h: Remove the #endif associated with removal of
4032 __STRICT_ANSI__ guard from non-ANSI header.
4034 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4036 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
4037 * include/direct.h: Ditto.
4038 * include/dirent.h: Ditto.
4039 * include/dos.h: Ditto.
4040 * include/excpt.h: Ditto.
4042 * include/io.h: Ditto.
4043 * inlude/mem.h: Ditto.
4044 * include/memory.h: Ditto.
4045 * include/process.h: Ditto.
4046 * inlude/search.h: Ditto.
4047 * include/share.h: Ditto.
4048 * include/unistd.h: Ditto.
4049 * include/sys/fcntl.h: Ditto.
4050 * include/file.h: Ditto.
4051 * include/sys/locking.h: Ditto.
4052 * include/sys/param.h: Ditto.
4053 * include/sys/stat,h
4054 * include/sys/time.h: Ditto.
4055 * include/sys/timeb.h: Ditto.
4056 * include/sys/types.h: Ditto.
4057 * include/sys/unistd.h: Ditto.
4058 * include/sys/utime.h: Ditto.
4060 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
4062 * include/_mingw.h (__UNUSED_PARAM): Define macro.
4063 * include/wchar.h (fwide): Use it.
4066 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4068 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
4069 NetBSD getopt_long.c.
4071 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
4073 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
4074 codes and handling of special chars.
4076 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
4078 * include/stdio.h (feof): Add inlined definition.
4081 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4083 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
4084 directly, rather than via scabnl.
4086 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
4088 * mingwex/math/powl.c (powl): Return infinity if
4089 extended precision multiplication of x by log2(y)
4092 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
4094 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
4095 (__enan_NI16): Fix another one.
4096 (__enan_NBITS): Tidy.
4098 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4100 * include/stdint.h [__STDC_CONSTANT_MACROS]: Fix for 8 and 16 bit
4101 types. (Thanks to John Maddock for report.)
4103 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
4105 * include/tchar.h (_puttchar): Define.
4107 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
4109 * include/stdio.h:(_fileno): Define macro version after both
4110 fileno and _fileno functions declared.
4112 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
4113 * moldnames.def.in (rmtmp) Add stub.
4115 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
4117 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
4119 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
4121 * include/math.h: Guard ISO C99 additions with __cplusplus
4124 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4126 * include/_mingw.h: Define __attribute__((x)) to nothing
4129 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4131 * include/complex.h: New file.
4132 * mingwex/complex: New directory.
4133 * mingwex/complex/cabs.c: New file.
4134 * mingwex/complex/cacos.c: New file.
4135 * mingwex/complex/cacosh.c: New file.
4136 * mingwex/complex/casin.c: New file.
4137 * mingwex/complex/casinh.c: New file.
4138 * mingwex/complex/catan.c: New file.
4139 * mingwex/complex/catanh.c: New file.
4140 * mingwex/complex/ccos.c: New file.
4141 * mingwex/complex/ccosh.c: New file.
4142 * mingwex/complex/cexp.c: New file.
4143 * mingwex/complex/cimag.c: New file.
4144 * mingwex/complex/clog.c: New file.
4145 * mingwex/complex/cpow.c: New file.
4146 * mingwex/complex/cproj.c: New file.
4147 * mingwex/complex/creal.c: New file.
4148 * mingwex/complex/csin.c: New file.
4149 * mingwex/complex/csinh.c: New file.
4150 * mingwex/complex/csqrt.c: New file.
4151 * mingwex/complex/ctan.c: New file.
4152 * mingwex/complex/ctanh.c: New file.
4153 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
4156 (COMPLEX_OBJS): New list of objects.
4157 (LIB_OBJS): Include it in the library.
4159 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4161 * include/math.h (cabs): Remove non-ISO prototype.
4163 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4165 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
4166 Use GCC __builtin's if available.
4167 (INFINITY, INFINITYF, INFINITYL): Likewise.
4169 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
4171 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
4172 beyond approximation limit.
4173 * mingwex/math/sf_erf.c (erff): Likewise.
4175 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
4177 * include/stdio.h (getc): Cast result to unsigned char before
4180 (getchar): Likewise.
4181 (putchar): Likewise.
4182 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
4184 2003-10-10 Earnie Boyd <earnie@users.sf.net>
4186 * include/_mingw.h: Increment version to 3.2.
4187 * Makefile.in: Ditto.
4189 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4191 * include/sys/types.h: Revert last change.
4193 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
4195 * include/sys/types.h (ssize_t): Correct the definition.
4197 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4199 * include/stdio.h (_filbuf): Add prototype.
4200 (_flsbuf): Add prototype.
4201 (getc): Add inline version.
4203 (getchar): Likewise.
4204 (putchar): Likewise.
4206 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4208 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
4211 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
4213 * include/stdlib.h: Guard non-ISO functions with
4214 !__STRICT_ANSI__, throughout.
4216 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4218 * include/io.h (_fileno): Remove prototype.
4220 (FILENAME_MAX): Define, if needed.
4221 Don't include <stdio.h>.
4222 * include/stdio.h (FILENAME_MAX): Protect against
4224 (_fileno): Define macro implementation.
4227 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4229 * include/inttypes.h: Include _mingw.h.
4231 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
4233 * include/_mingw.h (__CRT_INLINE): Define.
4234 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
4236 * include/inttypes.h: Likewise.
4237 * include/math.h: Likewise.
4238 * include/stdio.h: Likewise.
4239 * include/stdlib.h: Likewise.
4240 * include/string.h: Likewise.
4241 * include/wchar.h: Likewise.
4242 * include/wctype.h: Likewise.
4244 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
4246 * mingwex/dirent.c (_topendir): Allocate enough memory for
4247 DIR struct in UNICODE case too.
4249 2003-09-15 Earnie Boyd <earnie@users.sf.net>
4251 * include/_mingw.h: Increment version to 3.2.
4252 * Makefile.in: Ditto.
4254 2003-07-03 Earnie Boyd <earnie@users.sf.net>
4256 * config.guess, config.sub: Update with versions from ftp.gnu.org.
4258 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4260 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
4261 * mingwex/math/truncf.c (truncf): Likewise.
4262 * mingwex/math/truncl.c (truncl): Likewise.
4263 * mingwex/math/modff.c (modff): Likewise.
4264 * mingwex/math/modfl.c (modfl): Likewise.
4266 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4268 * include/search.h: New file.
4269 * include/stdlib.h: Add comment about qsort, bsearch in
4271 * test_headers.c: Include search.h.
4272 * moldname.def.in (lfind, lsearch): Add.
4274 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4276 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
4277 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
4278 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
4280 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4282 * include/_mingw.h (small, hyper): Change to __small and __hyper to
4283 avoid user space name conflicts.
4285 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4287 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
4288 Note: Also added to w32api/include/basetyps.h.
4289 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
4290 Rename to Small (case difference).
4292 2003-06-18 Earnie Boyd <earnie@users.sf.net>
4294 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
4295 * mingwex/dirent.c: Modifications througout to fill d_name array.
4296 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
4297 libmsvcr71, including debug versions.
4298 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
4300 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
4302 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
4303 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
4305 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
4307 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
4309 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
4311 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
4313 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
4314 but still protect inline definition with __STRICT_ANSI__.
4316 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
4318 * string_old.c: Remove, splitting into...
4319 * strcasecmp.c: New file.
4320 * strncasecmp.c: New file.
4321 * wscmpi.c : New file.
4322 * ctype_old.c: Remove, splitting into...
4323 * isascii.c: New file.
4324 * iscsym.c: New file.
4325 * iscsymf.c: New file.
4326 * toascii.c: New file.
4327 * Makefile.in (MOLD_OBJS): Adjust.
4328 (SRCDIST_FILES): Adjust.
4330 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
4332 * include/math.h (fabs) : Remove inline definition.
4336 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4338 * include/_mingw.h: Change version to 3.0
4339 * Makefile.in: Ditto.
4341 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4343 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
4344 * mingwex/configure.in (W32API_INCLUDE): Ditto.
4345 * profile/configure.in (W32API_INCLUDE): Ditto.
4347 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4349 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
4350 of multiply defined symbols if the symbols is defined locally. E.G.:
4351 A local definition of malloc causes this problem.
4352 * configure: Regenerate.
4353 * profile/Makefile.in (W32API_INCLUDE): New variable.
4354 (ALL_CFLAGS): Use W32API_INCLUDE value.
4355 (ALL_CXXFLAGS): Ditto.
4356 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
4357 Thanks to Jeff Bonggren <jbon@users.sf.net>.
4358 * profile/configure.in (W32API_INCLUDE): Set default value.
4359 * profile/configure: Regenerate.
4360 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
4361 (ALL_CFLAGS): Use W32API-INCLUDE value.
4362 (ALL_CXXFLAGS): Ditto.
4363 * mingwex/configure.in (W32API_INCLUDE): Set default value.
4364 * mingwex/configure: Regenerate.
4366 2003-05-05 Earnie Boyd <earnie@users.sf.net>
4368 * Makefile.in (W32API_INCLUDE): New variable.
4369 (ALL_CFLAGS): Use W32API_INCLUDE value.
4370 (ALL_CXXFLAGS): Ditto.
4371 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
4372 (W32API_INCLUDE): Set default value.
4373 * configure: Regenerate.
4375 2003-04-11 Earnie Boyd <earnie@users.sf.net>
4377 * configure.in (LIBM_A): Define for cygwin target.
4378 * configure (LIBM_A): Ditto.
4380 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
4382 * include/time.h (strftime): Remove duplicate declaration.
4384 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4386 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
4388 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4390 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
4391 * mingwex/strtoimax.c (strtoimax): Likewise.
4392 * mingwex/wcstoimax.c (wcstoimax): Likewise.
4393 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
4394 * mingwex/fesentenv.c: Include float.h.
4395 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
4397 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
4399 * mingwex/math/tgammal.c: Likewise.
4401 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4403 * include/utime.h: New file, forwarding to sys/utime.h.
4405 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4407 * include/sys/param.h (MAXPATHLEN): Define.
4409 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4411 * include/tchar.h: Ansi-fy a comment.
4413 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4415 * profile/profile.h (mcount): Use __builtin_return_address
4416 rather than inline __asm statements.
4417 * profile/Makefile.in: Remove special rule for mcount.o
4418 Specify dependencies for mcount.o profil.o gmon.o.
4420 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4422 * include/stdlib.h (qsort): Remove const from first parm.
4423 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
4425 2003-03-03 Christopher Faylor <cgf@redhat.com>
4427 * mingwex/getopt.c: Refresh from NetBSD sources.
4429 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
4431 * mingwex/getopt.c: New file, copied from cygwin srcs.
4432 * include/getopt.h: New file, copied from cygwin srcs.
4433 * include/unistd.h: Include getopt.h.
4434 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
4435 (POSIX_OBJS): Add getopt.o.
4437 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
4439 * include/stdio.h (vscanf): Add prototype.
4445 * include/wchar.h (vwscanf): Add prototype.
4448 * mingwex/snprintf.c: Move to mingwex/stdio.
4449 * mingwex/vsnprintf.c: Ditto.
4450 * mingwex/snwprintf.c: Ditto.
4451 * mingwex/vsnwprintf.c: Ditto.
4452 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
4453 (STDIO_DISTFILES): Add.
4454 (DISTFILES): Adjust.
4455 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
4459 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
4461 * mingwex/stdio: New directory
4462 * mingwex/stdio/vfscanf.c: New file.
4463 * mingwex/stdio/vfwscanf.c: New file.
4464 * mingwex/stdio/vscanf.c: New file.
4465 * mingwex/stdio/vsscanf.c: New file.
4466 * mingwex/stdio/vswscanf.c: New file.
4467 * mingwex/stdio/vwscanf.c: New file.
4469 2003-02-25 Earnie Boyd <earnie@users.sf.net>
4471 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
4472 (libmsvcrt40.a): Ditto.
4474 2003-02-21 Earnie Boyd <earnie@users.sf.net>
4476 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
4478 * Makefile.in (libmsvcrtd.a): Add target library.
4479 (libmoldnamed.a): Ditto.
4480 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
4482 ($(srcdir)): Remove explicit reference for depencies of object targets.
4483 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
4484 msvcrt20.def, msvcrt40.def: Remove.
4485 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
4487 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
4489 * Makefile.in: Make sure libmingwex.a from current build tree is used.
4491 2003-02-14 Christopher Faylor <cgf@redhat.com>
4493 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
4494 ensure -mno-cygwin where appropriate. Filter out -O2.
4496 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
4498 * profile/Makefile.in (mcount.o): Use -O1 optimization
4501 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4503 * include/math.h: Remove _CRTIMP from pow() prototype,
4504 unless __NO_ISOCEXT.
4506 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4508 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
4510 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4512 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
4513 __declspec(dllimport) supported.
4514 (__cdecl): Define if not already defined.
4515 (__stdcall): Likewise.
4516 * include/dirent.h: Qualify fuctions with __cdecl.
4517 * include/fenv.h: Likewise.
4518 * include/inttypes.h: Likewise.
4519 * include/assert.h: Qualify fuctions with __cdecl. Qualify
4520 CRT dll imports with _CRTIMP.
4521 * include/conio.h: Likewise.
4522 * include/ctype.h: Likewise.
4523 * include/direct.h: Likewise.
4524 * include/dos.h: Likewise.
4525 * include/errno.h: Likewise.
4526 * include/float.h: Likewise.
4527 * include/io.h: Likewise.
4528 * include/locale.h: Likewise.
4529 * include/malloc.h: Likewise.
4530 * include/math.h: Likewise.
4531 * include/mbctype.h: Likewise.
4532 * include/mbstring.h: Likewise.
4533 * include/process.h: Likewise.
4534 * include/setjmp.h: Likewise.
4535 * include/signal.h: Likewise.
4536 * include/stdio.h: Likewise.
4537 * include/stdlib.h: Likewise.
4538 * include/string.h: Likewise.
4539 * include/time.h: Likewise.
4540 * include/wchar.h: Likewise.
4541 * include/wctype.h: Likewise.
4542 * include/sys/stat.h: Likewise.
4543 * include/sys/timeb.h: Likewise.
4544 * include/sys/utime.h: Likewise.
4546 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4547 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4549 * include/stdio.h (__VALIST): Guard against prior definition.
4551 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4553 * include/_mingw.h: Change version to 3.0
4554 * Makefile.in: Ditto.
4556 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4558 * include/stdlib.h: Make words after #endif a comment.
4560 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4562 * include/locale.h: Include stddef.h for definition of NULL.
4564 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4566 * include/math.h (tgamma): Correct typo in comment.
4568 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4570 * mingwex/mingw-fseek.c (INLINE): Remove define.
4571 (__mingw_is_win9x): Remove static inline function.
4572 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4574 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4576 * mingwex/math/llround.c: Correct function name and
4577 change return value to long long.
4579 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4581 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4582 (iswascii): Likewise. Correct mask.
4583 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4586 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4588 * include/stdlib.h (_osver, _winver, _winmajor,
4589 _winminor): Declare as direct imports from dll if
4590 __DECLSPEC_SUPPORTED.
4592 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4594 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4595 * pseudo-reloc-list.c: New file.
4596 * crt1.c (_pei386_runtime_relocator): Declare.
4597 (__mingw_CRTStartup): Call it.
4598 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4599 (DllMainCRTStartup): Call it.
4600 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
4603 2003-01-01 Egor Duda <deo@logos-m.ru>
4605 * pseudo-reloc.c: New file.
4607 2002-12-20 Earnie Boyd <earnie@users.sf.net>
4609 * include/_mingw.h: Increment version to 2.4.
4612 2002-12-12 Earnie Boyd <earnie@users.sf.net>
4614 * include/malloc.h (_alloca): Add definition.
4617 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
4619 * mingwex/math/s_erf.c: New file.
4620 * mingwex/math/sf_erf.c: New file.
4621 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4622 (MATH_OBJS): Add new objects.
4623 * include/math.h (erf[f]): Add prototypes.
4624 (erfc[f]): Add prototypes.
4626 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
4628 * include/math.h: Add traditional/XOPEN math constants.
4630 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
4632 * mingwex/math/lgamma.c: New file.
4633 * mingwex/math/lgammaf.c: New file.
4634 * mingwex/math/lgammal.c: New file.
4635 * mingwex/math/tgamma.c: New file.
4636 * mingwex/math/tgammaf.c: New file.
4637 * mingwex/math/tgammal.c: New file.
4638 * mingwex/math/cephes_mconf (polevlf): Add float version.
4640 Define _CEPHES_USE_ERRNO.
4641 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4642 (MATH_OBJS): Add new objects.
4643 * include/math.h (lgamma[fl]): Add prototypes.
4644 (tgamma[fl]): Add prototypes.
4646 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
4648 * mingwex/strtold.c: New file.
4649 * mingwex/wcstold.c: New file.
4650 * mingwex/ldtoa.c: New file.
4651 * mingwex/math/cephes_emath.h: New file.
4652 * mingwex/math/cephes_emath.c: New file.
4653 * mingwex/Makefile.in (DISTFILES): Add new files.
4654 (MATH_DISTFILES): Ditto.
4655 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
4656 (MATH_OBJS): Add cephes_emath.o.
4657 (LIB_OBJS): Add $(STDLIB_OBJS).
4658 * include/stdlib.h (strtold, wcstold): Add prototypes.
4659 * include/wchar.h (wcstold): Add prototype.
4661 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
4663 * include/math.h (sqrt): Remove inline definition.
4664 (sqrtf): Replace inline definition with prototype.
4666 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
4667 argument less than zero.
4668 * mingwex/math/sqrtf.c (sqrtl): Likewise.
4670 2002-10-30 Guido Serassio <serassio@libero.it>
4672 * include/stdio.h (_getmaxstdio): Add prototype.
4673 (_setmaxstdio): Likewise.
4675 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
4677 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
4679 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4681 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
4683 Define WIN32_MEAN_AND_LEAN before including windows.h
4684 * include/stdlib.h (_fmode): Protect declaration as dllimported
4685 variable with __IN_MINGW_RUNTIME.
4687 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4689 * crt1.c: Include stdlib.h.
4691 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4693 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4694 (MINGW_OBJS): Add txtmode.o.
4695 (SRCDIST_FILES): Add txtmode.c binmode.c.
4696 crt1.c: Don't include fcntrl.h, stdlib.h.
4697 (_fmode): Declare, without dllimport attribute.
4698 (__p__fmode): Declare access function for dll's _fmode.
4699 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
4701 * txtmode.c: New file.
4702 * binmode.c: New file.
4703 * samples/fmode/test2.c: New file.
4704 * samples/fmode/jamfile: Add test2.exe target.
4706 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4708 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
4709 macros work with C89.
4710 (INTMAX_C, UINTMAX_C): Likewise.
4712 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4714 * include/string.h (strcasecmp): Make extern __inline__.
4715 (strncasecmp): Likewise.
4716 (wcscmpi): Likewise.
4718 2002-10-08 Heiko Gerdau <hg@technosis.de>
4720 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
4721 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
4724 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4726 * mingwex/math/powil.c: Rename powil to __powil.
4727 * mingwex/math/powl.c: Adjust declaration and call
4728 to __powil. Remove comment on powil.
4729 * mingwex/math/powi.c: New file.
4730 * mingwex/math/powif.c: New file.
4731 * mingwex/math/pow.c: New file.
4732 * mingwex/math/cephes_mconf.h. Add double and float
4733 versions of constants.
4734 (polevl): Add double precision function.
4736 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4738 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4740 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4742 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4743 (_imp____mbcur_max_dll): Likewise.
4745 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4747 * include/fcntl.h (_fmode): Remove declarations and
4748 compatibility defines.
4749 (_setmode, setmode): Remove prototypes.
4750 * include/stdlib (_fmode): Add declarations and
4751 compatibility defines. Change type to int.
4752 * include/io.h (_setmode, setmode): Add prototypes.
4753 * samples/fmode/all.c: Adjust includes.
4754 * samples/fmode/test.c: Likewise.
4755 * crt1.c (_CRT_fmode): Declare as int.
4756 * CRTfmode.c (_CRT_fmode): Likewise.
4758 * include/stdlib: Remove comment about MB_CUR_MAX.
4760 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4762 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4763 (_imp____mbcur_max_dll): Likewise.
4765 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4767 * mingwex/math/files.txt: Remove inadvertantly added file.
4769 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4771 * include/string.h (_strerror): Move into #ifndef
4772 __STRICT_ANSI__ block.
4774 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4776 * include/time.h (__need_NULL): Define before including
4777 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4779 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4781 * include/stdio.h: Correct comment about directory separator.
4783 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4785 * include/sys/time.h (timeval): Add struct definition and
4786 associated macros (copied from w32api/include/winsock.h).
4788 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4790 * include/_mingw.h: Increment version to 2.3.
4793 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4795 * mingwex/fegetenv.c: Change to \n line endings.
4796 * mingwex/vsnprintf.c: Ditto.
4797 * mingwex/vsnwprintf.c: Ditto.
4799 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4801 * mingwex/math/hypotl.c: Replace with version based on cephes
4804 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4806 * include/sys/param.h: Add ENDIAN defines.
4807 * test_headers.c: Include sys/param.h.
4809 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4811 * test_headers.c: Don't include varargs.h.
4812 * Makefile.in (test_headers): Don't use -std=xx
4815 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4817 * include/sys/param.h: New File.
4819 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4821 * include/math.h (asm): Change to __asm__ throughout.
4822 Expose ISO C99 functions if __GLIPCPP__.
4823 (hypotf): Use hypot, not _hypot in stub.
4825 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4827 * include/tchar.h: Ansi-fy another comment.
4829 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4831 * include/tchar.h: Ansi-fy comment.
4833 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4835 * test_headers.c : New file.
4836 * Makefile.in (test_headers): New target, using it,
4837 (SRCDIST_FILES): Distribute it.
4839 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4841 * include/_mingw.h: Increment version to 2.2.
4844 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4846 * include/unistd.h: Add include of process.h.
4848 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4850 * include/stdio.h (_fcloseall): Add prototype.
4852 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4854 * include/tchar.h (_tfdopen): Correct typo.
4856 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4858 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4859 nextafter): Add non-underscored stubs.
4860 * moldname-msvcrt.def: Regenerate.
4861 * moldname-crtdll.def: Regenerate.
4862 * mingwex/math: New directory.
4863 * mingwex/rint.c: Move to mingwex/math.
4864 * mingwex/rintf.c: Ditto.
4865 * mingwex/rintl.c: Ditto.
4866 * mingwex/round.c: Ditto.
4867 * mingwex/roundf.c: Ditto.
4868 * mingwex/roundl.c: Ditto.
4869 * mingwex/rint.c: Ditto.
4870 * mingwex/rintf.c: Ditto.
4871 * mingwex/rintl.c: Ditto.
4872 * mingwex/trunc.c: Ditto.
4873 * mingwex/truncf.c: Ditto.
4874 * mingwex/truncl.c: Ditto.
4875 * mingwex/signbit.c: Ditto.
4876 * mingwex/signbitf.c: Ditto.
4877 * mingwex/signbitl.c: Ditto.
4878 * mingwex/copysignl.S: Ditto.
4879 * mingwex/fdim.c: Ditto.
4880 * mingwex/fdimf.c: Ditto.
4881 * mingwex/fdiml.c: Ditto.
4882 * mingwex/fmin.c: Ditto.
4883 * mingwex/fminf.c: Ditto.
4884 * mingwex/fminl.c: Ditto.
4885 * mingwex/fmax.c: Ditto.
4886 * mingwex/fmaxf.c: Ditto.
4887 * mingwex/fmaxl.c: Ditto.
4888 * mingwex/fma.c: Ditto.
4889 * mingwex/fmaf.c: Ditto.
4890 * mingwex/fmal.c: Ditto.
4891 * mingwex/fpclassify.c: Ditto.
4892 * mingwex/fpclassifyl.c: Ditto.
4893 * mingwex/fpclassifyl.c: Ditto.
4894 * mingwex/isnan.c: Ditto.
4895 * mingwex/isnanf.c: Ditto.
4896 * mingwex/isnanl.c: Ditto.
4897 * mingwex/fucom.c: Ditto.
4898 * mingwex/fp_consts.c: Ditto. Split out float and long double
4900 * mingwex/math_stubs.c: Remove.
4901 * mingwex/log2.c: Remove. Replaced by math/log2.S
4902 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4903 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4904 * mingwex/math/acosf.c : New file.
4905 * mingwex/math/acosl.c: New file.
4906 * mingwex/math/asinf.c: New file.
4907 * mingwex/math/asinl.c: New file.
4908 * mingwex/math/atan2f.c: New file.
4909 * mingwex/math/atan2l.c: New file.
4910 * mingwex/math/atanf.c: New file.
4911 * mingwex/math/atanl.c: New file.
4912 * mingwex/math/cbrt.c: New file.
4913 * mingwex/math/cbrtf.c: New file.
4914 * mingwex/math/cbrtl.c: New file.
4915 * mingwex/math/ceilf.S: New file.
4916 * mingwex/math/ceill.S: New file.
4917 * mingwex/math/cephes_ld.h: New file.
4918 * mingwex/math/copysign.S: New file.
4919 * mingwex/math/copysignf.S: New file.
4920 * mingwex/math/cosf.S: New file.
4921 * mingwex/math/coshf.c: New file.
4922 * mingwex/math/coshl.c: New file.
4923 * mingwex/math/cosl.S: New file.
4924 * mingwex/math/exp2.S: New file.
4925 * mingwex/math/exp2f.S: New file.
4926 * mingwex/math/exp2l.S: New file.
4927 * mingwex/math/expf.c: New file.
4928 * mingwex/math/expl.c: New file.
4929 * mingwex/math/fabs.c: New file.
4930 * mingwex/math/fabsf.c: New file.
4931 * mingwex/math/fabsl.c: New file.
4932 * mingwex/math/floorf.S: New file.
4933 * mingwex/math/floorl.S: New file.
4934 * mingwex/math/fmodf.c: New file.
4935 * mingwex/math/fmodl.c: New file.
4936 * mingwex/math/fp_consts.h: Ditto.
4937 * mingwex/math/fp_constsf.c: Ditto.
4938 * mingwex/math/fp_constsl.c: Ditto.
4939 * mingwex/math/frexpf.c: New file.
4940 * mingwex/math/frexpl.S: New file.
4941 * mingwex/math/hypotf.c: New file.
4942 * mingwex/math/hypotl.c: New file.
4943 * mingwex/math/ilogb.S: New file.
4944 * mingwex/math/ilogbf.S: New file.
4945 * mingwex/math/ilogbl.S: New file.
4946 * mingwex/math/ldexpf.c: New file.
4947 * mingwex/math/ldexpl.c: New file.
4948 * mingwex/math/llrint.c: New file.
4949 * mingwex/math/llrintf.c: New file.
4950 * mingwex/math/llrintl.c: New file.
4951 * mingwex/math/llround.c: New file.
4952 * mingwex/math/llroundf.c: New file.
4953 * mingwex/math/llroundl.c: New file.
4954 * mingwex/math/log10f.S: New file.
4955 * mingwex/math/log10l.S: New file.
4956 * mingwex/math/log1p.S: New file.
4957 * mingwex/math/log1pf.S: New file.
4958 * mingwex/math/log1pl.S: New file.
4959 * mingwex/math/log2.S: New file.
4960 * mingwex/math/log2f.S: New file.
4961 * mingwex/math/log2l.S: New file.
4962 * mingwex/math/logb.c: New file.
4963 * mingwex/math/logbf.c: New file.
4964 * mingwex/math/logbl.c: New file.
4965 * mingwex/math/logf.S: New file.
4966 * mingwex/math/logl.S: New file.
4967 * mingwex/math/lrint.c: New file.
4968 * mingwex/math/lrintf.c: New file.
4969 * mingwex/math/lrintl.c: New file.
4970 * mingwex/math/lround.c: New file.
4971 * mingwex/math/lroundf.c: New file.
4972 * mingwex/math/lroundl.c: New file.
4973 * mingwex/math/modff.c: New file.
4974 * mingwex/math/modfl.c: New file.
4975 * mingwex/math/nearbyint.S: New file.
4976 * mingwex/math/nearbyintf.S: New file.
4977 * mingwex/math/nearbyintl.S: New file.
4978 * mingwex/math/nextafterf.c: New file.
4979 * mingwex/math/powf.c: New file.
4980 * mingwex/math/powl.c: New file.
4981 * mingwex/math/powil.c: New file.
4982 * mingwex/math/remainder.S: New file.
4983 * mingwex/math/remainderf.S: New file.
4984 * mingwex/math/remainderl.S: New file.
4985 * mingwex/math/remquo.S: New file.
4986 * mingwex/math/remquof.S: New file.
4987 * mingwex/math/remquol.S: New file.
4988 * mingwex/math/scalbn.S: New file.
4989 * mingwex/math/scalbnf.S: New file.
4990 * mingwex/math/scalbnl.S: New file.
4991 * mingwex/math/sinf.S: New file.
4992 * mingwex/math/sinhf.c: New file.
4993 * mingwex/math/sinhl.c: New file.
4994 * mingwex/math/sinl.S: New file.
4995 * mingwex/math/sqrt.c: New file.
4996 * mingwex/math/sqrtf.c: New file.
4997 * mingwex/math/sqrtl.c: New file.
4998 * mingwex/math/tanf.S: New file.
4999 * mingwex/math/tanhf.c: New file.
5000 * mingwex/math/tanhl.c: New file.
5001 * mingwex/math/tanl.S: New file.
5002 * mingwex/Makefile.in: Adjust VPATH for source files in
5005 Add MATH_DISTFILES and use it to build source distro.
5006 * include/math.h: Add protypes for new functions and
5007 reorganise to reflect ANSI,C99 status.
5009 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
5011 * include/tchar.h (_getts): Define as _getws for _UNICODE.
5012 (_putts): Define as _putws for _UNICODE.
5013 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
5015 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
5017 * include/float.h: #include_next<float.h> before header guard.
5019 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
5021 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
5023 * include/excpt.h (): Include windef.h not windows.h.
5024 * include/fcntl.h (_O_SHORT_LIVED): Add define.
5025 (_chmod): Add prototype.
5026 (_creat): Correct prototype.
5027 (SH_DENY*): Rename defines to _SH_DENY*.
5028 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
5029 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
5030 _IOAPPEND): Add defines.
5031 (_wfindfirst): Correct prototype.
5032 (_wfdopen): Add prototype.
5033 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
5035 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
5037 (_wcsdup): Correct prototype.
5038 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
5039 _mbsncat being in string.h.
5040 * include/wchar.h (_wfindfirst): Correct prototype.
5041 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
5043 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5045 * include/_mingw.h: Increment to version 2.1.
5046 * Makefile.in: Ditto.
5048 2002-06-15 Earnie Boyd <earnie@users.sf.net>
5050 * Makefile.in (conf_prefix): New variable.
5051 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
5052 (bindist): Use dist_prefix.
5054 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
5056 * include/_mingw.h: Increment version to 2.0.
5057 * Makefile.in: Ditto.
5059 Merge in mingwex branch.
5061 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
5063 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
5064 * mingwex/fdim.c: New file.
5065 * mingwex/fdimf.c: New file.
5066 * mingwex/fdiml.c: New file.
5067 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
5069 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
5071 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
5073 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
5075 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
5077 * mingwex/isnanl.c: New file.
5079 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5081 * include/stdint.h: Include <stddef.h> to get wchar_t and wint_t.
5082 (WINT_MAX): Define to ((wint_t)-1).
5084 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5086 * include/wctype.h: Replace 'inline' with '__inline__'.
5087 * include/inttypes.h: Likewise.
5089 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5091 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
5092 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
5094 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
5096 * mingwex/snprintf.c: Split out vsnprintf to....
5097 * mingwex/vsnprintf.c: New file.
5098 * mingwex/snwprintf.c: Split out vsnwprintf to...
5099 * mingwex/vsnwprintf.c: New file.
5100 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
5102 2002-05-15 Pascal Obry <obry@gnat.com>
5104 * include/dirent.h (DIR): Change dd_stat type to int.
5107 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
5109 * include/stdio.h (vsnprintf): Change inline to __inline__;
5110 (vsnwprintf): Likewise.
5111 * include/wchar.h (vsnwprintf): Likewise.
5114 (mbsinit): Likewise.
5116 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
5118 Change FP default precison from 53 to 64-bit mantissa.
5120 * Makefile.in (CRT0S): Add CRT_fp8.o.
5121 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
5122 * include/float.h: Replace standard float.h defines with
5123 #include_next<float.h> to use GCC's defines. Adjust comments
5126 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5128 * include/dos.h: Change prefix "__imp_" to "_imp__" for
5129 __GNUC__ without __DECLSPEC_SUPPORTED.
5130 * include/fnctl.h: Likewise.
5131 * include/math.h: Likewise.
5132 * include/stdio.h: Likewise.
5133 * include/stdlib.h: Likewise.
5134 * include/time.h: Likewise.
5135 * include/wctype.h: Likewise.
5136 * include/ctype.h: Likewise.
5138 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5140 Add atexit support for dlls.
5141 * crt1.c (atexit): Force thunk to _imp__atexit.
5142 (_onexit): Force thunk to _imp___onexit.
5143 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
5144 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
5145 (__dll_exit): New function to run atexit-registered functions
5146 and flush output buffers on DLL_PROCESS_DETACH or failed
5148 (atexit): Force use of private atexit table via _dllonexit,
5149 (_onexit): New function. Force use of private atexit table via
5151 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
5152 _imp_<_symbol> is visible in import lib.
5153 * msvcrt20.def: Likewise.
5154 * msvcrt40.def: Likewise.
5155 * crtdll.def: Likewise.
5157 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5159 * include/fenv.h: Change header guard macro to _FENV_H_.
5160 (fenv_t, fexcept_t): Move into block protected by
5162 Cleanup some whitespace.
5163 * include/inttypes.h: Change header guard macro to
5166 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
5168 * include/math.h (copysignl): Declare.
5169 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
5170 (MATHOBJS):Add copysignl.o.
5172 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5174 * include/math.h (__signbitl, __isnanl): Declare.
5176 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
5178 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
5179 roundl, truncl, fmal, log2l): Declare.
5180 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
5181 || !defined __STRICT_ANSI__.
5182 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
5183 * mingwex/fmin.c (fmin): Likewise.
5184 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
5185 * mingwex/fminf.c (fminf): Likewise.
5186 * mingwex/fmaxl.c: New file.
5187 * mingwex/fminl.c: New file.
5188 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
5189 * mingwex/fpclassifyf.c: New file.
5190 * mingwex/fpclassifyl.c: New file.
5191 * mingwex/rint.c (rintf): Split out to...
5192 * mingwex/rintf.c: New file.
5193 * mingwex/rintl.c: New file.
5194 * mingwex/round.c (roundf): Split out to...
5195 * mingwex/roundf.c: New file.
5196 * mingwex/roundl.c: New file.
5197 * mingwex/trunc.c (truncf): Split out to...
5198 * mingwex/truncf.c: New file.
5199 * mingwex/truncl.c: New file.
5200 * mingwex/signbit.c (signbitf): Split out to...
5201 * mingwex/signbitf.c: New file.
5202 * mingwex/signbitl.c: New file.
5203 * mingwex/fmal.c: New file.
5204 * mingwex/copysignl.S: New file.
5205 * mingwex/log2l.c: New file.
5206 * mingwex/fp_consts.c: Add nanl definition.
5207 Comment out unused constants.
5208 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
5209 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
5210 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
5212 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
5213 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
5214 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
5216 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
5218 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
5220 Make wide char versions of opendir and friends.
5222 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
5224 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
5225 _wseekdir): Add prototypes for wide versions of corresponding
5227 * include/tchar.h; Add _UNICODE mappings for dirent.h
5228 structures and functions.
5229 * mingwex/dirent.c: Make _UNICODE neutral.
5230 * mingwex/wdirent.c: New file to define _UNICODE before
5232 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
5233 (POSIX_OBJS): Add wdirent.o.
5234 (wdirent.o): Specify dependency on dirent.c as well as
5236 * samples/dirent/wtest.c: New file, wide version of test.c.
5238 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5240 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
5241 ensure gcc include dir is searched despite -nostdinc.
5242 * profile/Makefile.in (INCLUDES): Likewise.
5243 * mingwex/Makefile.in (INCLUDES): Likewise.
5244 * include/stdarg.h: Replace with stub that just guards the
5245 real gcc system header with #ifndef RC_INVOKED
5246 * include/varargs.h: Likewise.
5247 * include/stddef.h: Likewise.
5248 * include/stdio.h: Include stdarg.h after defining
5250 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
5251 Replace va_list with __VALIST throughout.
5253 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
5255 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
5256 * msvcrt.def (_fpreset): Mark as DATA so that only
5257 _imp___fpreset is exported.
5258 * msvcrt20.def (_fpreset): Likewise.
5259 * msvcrt40.def (_fpreset): Likewise.
5260 * crtdll.def (_fpreset): Likewise.
5261 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
5263 (fpreset): Add alias.
5264 (__CRT_PC): Delete definition. _fpreset does it now.
5265 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
5266 (fpreset): Add alias.
5267 (__CRT_PC): Delete definition.
5268 * moldname.def.in: Comment out fpreset.
5269 * moldname-msvcrt.def: Regenerate.
5270 * moldname-crtdll.def: Regenerate.
5271 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
5272 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
5273 with the _fpreset determined by startup CRT_fp object.
5275 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
5277 * CRT_fp8.c: New file.
5278 * CRT_fp10.c: New file.
5279 * crt1.c (__CRT_PC) Declare.
5280 (__CRT_fesetenv): New static function, using _CRT_PC.
5281 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
5282 (_gnu_exception_handler): Likewise.
5283 * Makefile.in (CRT0S): Add CRT_fp10.o.
5284 (MINGW_OBJS): Add CRT_fp8.o.
5285 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
5286 Add CRT_fp8.o, CRT_fp10.o dependancies.
5287 * include/float.h (_fpreset): Expand comment.
5288 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
5289 (extended precison) environmemt.
5290 (FE_PC53_ENV): New define for MSVCRT default environmemt.
5291 (FE_DFL_ENV): Define as FE_PC53_ENV.
5292 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
5293 precision control for default environment.
5295 * include/math.h: Fix long comment line.
5296 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
5298 * profile/configure: Regenerate.
5300 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
5302 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
5304 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
5306 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
5307 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
5308 (__mingw_fseek): New function to work around Win9x f/lseek bug.
5309 (__mingw_fwrite): Likewise.
5310 (__mingw_is_win9x): New helper function.
5312 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
5313 (__mingw_fseek): New prototype and define to replace fseek.
5314 (__mingw_fwrite): New prototype and define to replace fwrite.
5315 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
5316 * moldname-crtdll.def: Remove CR from end of line.
5317 * moldname-msvcrt.def: Ditto.
5319 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
5321 * profile/configure.in (CRT0S): Configure name of gcrt?.o
5322 based on target, building gcrt0.o for cygwin -mno-cygwin.
5323 * profile/configure: Regenerate.
5324 * profile/Makefile.in (CRT0S): Use name from configure.
5325 (gcrt0.o): New rule.
5326 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
5328 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5330 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
5331 _fpecode): Remove prototypes copied from float.h.
5332 (nan, nanf): Move into block protected against RC_INVOKED
5334 * include/stdlib.h (_Exit): Change from static inline to
5336 * mingwex/_Exit.c : New file.
5337 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
5339 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5341 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
5342 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
5343 (configdirs): Likewise.
5344 (LIBGMON_A): Define for cygwin target as well.
5345 * configure: Regenerate.
5346 * profile/configure.in (THREAD_DLL): Remove define.
5347 (LIBM_A): Remove define.
5348 (LIBGMON_A): Define for cygwin target as well.
5349 * profile/configure: Regenerate.
5350 * profile/makefile.in (install): Install to inst_libdir and
5352 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
5353 (OPTFLAGS): New define.
5354 (ALL_CFLAGS): Add $(OPTFLAGS).
5355 (ALL_CXXFLAGS): Same.
5356 (.c.o:): Remove ALL_CXXFLAGS.
5358 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
5360 * include/stdint.h: Add missing newline at eof.
5361 * include/stdio.h (snprintf): Add prototype.
5362 (vsnprintf): Add prototype and inline definition.
5363 (snwprintf): Add prototype.
5364 (vsnwprintf): Add prototype and inline definition.
5365 * include/wchar.h (snwprintf): Add prototype.
5366 (vsnwprintf): Add prototype and inline definition.
5367 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
5369 * mingwex/snprintf.c: New file.
5370 * mingwex/snwprintf.c: New file.
5372 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
5374 * configure.in: Add mingwex as SUBDIRS and configdirs.
5375 * configure: Regenerate.
5376 * Makefile.in (MINGW_OBJS): Remove dirent.o.
5377 (SRC_DIST_FILES): Remove dirent.c.
5379 * include/stdlib.h (_Exit): Add static inline
5381 (struct lldiv_t): Define.
5382 (lldiv): Add prototype.
5383 (llabs): Add extern inline function.
5384 (strtoll,strtoull): Add prototypes.
5385 (wcstol, wcstoul, wcstod): Group together.
5386 (strtof, wcstof): Add extern inline definitions.
5387 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
5388 and extern inline definitions.
5389 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
5390 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
5392 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
5393 (wcstof): Add extern inline definition.
5394 * include/math.h (nan, nanf): Add prototypes.
5395 (NAN, INFINITE): Define constants.
5396 (fpclassify, isnan ,signbit): Add macros and supporting float
5397 and double functions.
5398 (isfinite, isinf, isnormal): Add macros.
5399 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
5401 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
5402 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
5403 (copysign, logb, nextafter, scalb): Add prototypes and
5404 inline stubs for underscored versions in msvcrt.dll.
5405 * include/inttypes.h: New file.
5406 * include/fenv.h: New file
5408 Add new mingwex subdir and files.
5409 * mingwex: New directory.
5410 * mingwex/Makefile.in: New file.
5411 * mingwex/configure.in: New file.
5412 * mingwex/configure: Generate.
5413 * mingwex/dirent.c: Moved here from parent dir.
5414 * mingwex/atoll.c: New file.
5415 * mingwex/feclearexcept.c: New file.
5416 * mingwex/fegetenv.c: New file.
5417 * mingwex/fegetexceptflag.c: New file.
5418 * mingwex/fegetround.c: New file.
5419 * mingwex/feholdexcept.c: New file.
5420 * mingwex/feraiseexcept.c: New file.
5421 * mingwex/fesetenv.c: New file.
5422 * mingwex/fesetexceptflag.c: New file.
5423 * mingwex/fesetround.o: New file.
5424 * mingwex/fetestexcept.c: New file.
5425 * mingwex/feupdateenv.c: New file.
5426 * mingwex/fma.S: New file.
5427 * mingwex/fmaf.S: New file.
5428 * mingwex/fmax.c: New file.
5429 * mingwex/fmaxf.c: New file.
5430 * mingwex/fmin.c: New file.
5431 * mingwex/fminf.c: New file.
5432 * mingwex/fp_consts.c: New file.
5433 * mingwex/fpclassify.c: New file.
5434 * mingwex/fucom.c: New file.
5435 * mingwex/fwide.c: New file.
5436 * mingwex/imaxabs.c: New file.
5437 * mingwex/imaxdiv.c: New file.
5438 * mingwex/isnan.c: New file.
5439 * mingwex/isnanf.c: New file.
5440 * mingwex/lltoa.c: New file.
5441 * mingwex/lltow.c: New file.
5442 * mingwex/log2.c: New file.
5443 * mingwex/log2f.c: New file.
5444 * mingwex/math_stubs.c: New file.
5445 * mingwex/mbsinit.c: New file.
5446 * mingwex/rint.c: New file.
5447 * mingwex/round.c: New file.
5448 * mingwex/signbit.c: New file.
5449 * mingwex/sitest.c: New file.
5450 * mingwex/strtof.c: New file.
5451 * mingwex/strtoimax.c: New file.
5452 * mingwex/strtoumax.c: New file.
5453 * mingwex/testwmem.c: New file.
5454 * mingwex/trunc.c: New file.
5455 * mingwex/ulltoa.c: New file.
5456 * mingwex/ulltow.c: New file.
5457 * mingwex/wcstof.c: New file.
5458 * mingwex/wcstoimax.c: New file.
5459 * mingwex/wcstoumax.c: New file.
5460 * mingwex/wmemchr.c: New file.
5461 * mingwex/wmemcmp.c: New file.
5462 * mingwex/wmemcpy.c: New file.
5463 * mingwex/wmemmove.c: New file.
5464 * mingwex/wmemset.c: New file.
5465 * mingwex/wtoll.c: New file.
5467 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5469 * include/mbstring.h: New file.
5470 * include/mbctype.h: New file.
5472 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5474 * include/tchar.h (__TEXT): Make same as define in
5475 w32api/include/winnt.h.
5477 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5479 * include/tchar.h (_tputenv): Add UNICODE mappings.
5480 (_tsearchenv): Likewise.
5481 (_tmakepath): Likewise.
5482 (_tsplitpath): Likewise.
5483 (_tfullpath): Likewise.
5485 2002-04-18 Pascal Obry <obry@gnat.com>
5487 * dirent.c (opendir): Convert given pathname to
5490 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5492 * include/_mingw.h: Increment version.
5493 * Makefile.in: Ditto.
5495 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5497 * moldname-crtdll.def: Remove CR from end of line.
5498 * moldname-msvcrt.def: Ditto.
5499 * Makefile.in: Use bzip2 compression for Cygwin target.
5501 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
5503 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
5504 TLOSS, PLOSS): Move oldname defines back, following
5505 the underscored names.
5507 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
5509 * include/stdio.h (_snwprintf): Correct spelling.
5510 (_vsnwprintf): Likewise.
5511 * include/wchar.h (_snwprintf): Correct spelling.
5512 (_vsnwprintf): Likewise.
5514 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
5516 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
5517 (wpopen): Add if !(__CRTDLL__).
5518 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
5520 (moldname-crtdll.def rule): Likewise.
5521 * moldname-msvcrt.def: Regenerate.
5522 * moldname-crtdll.def: Regenerate.
5523 * include/stdio.h (wpopen):Use prototype, not a define.
5524 (_swnprintf): Add prototype.
5525 (_vswnprintf): Likewise.
5527 * include/wchar.h (_swnprintf): Add prototype.
5528 (_vswnprintf): Likewise.
5531 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5533 * include/malloc.h (_heapinfo): Correct structure definition.
5534 (_USEDENTRY,_FREEENTRY): Add defines.
5535 Add comment on platform support for _heap* functions.
5536 (_get_sbh_threshold): Add prototype.
5537 (_set_sbh_threshold): Likewise.
5538 (_expand): Likewise.
5540 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5542 * profile/profil.c: Update copyright info.
5543 * profile/profil.h: Likewise.
5544 * profile/gcrt0.c: Likewise.
5546 2002-01-25 Pascal Obry <obry@gnat.com>
5548 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5550 * profile/gmon.c: Define bzero as memset if mingw32.
5551 (monstartup): Use it.
5553 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5555 * include/tchar.h (_TCHAR): Add missing ;.
5557 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5559 * include/tchar.h (_TCHAR): Add typedefs.
5561 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5563 * include/stdlib.h (_onexit_t): Add typedef.
5564 (_onexit): Add prototype.
5566 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5568 * msvcrt.def: Revert accidental change.
5569 * include/stdlib.h: Ditto.
5571 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5573 * Makefile.in: Increment VERSION.
5574 * include/_mingw.h: Ditto.
5576 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5578 * include/strings.h: New File.
5580 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5582 * include/math.h (_FPCLASS* ): Add defines from float.h.
5583 (IEEE recommended functions): Add declarations from float.h.
5584 * include/float.h (_FPCLASS* ): Protect against redefinition.
5586 2001-11-29 Wu Yongwei <adah@netstd.com>
5588 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5589 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5590 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5591 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5592 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5593 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5594 Correct spelling of "disclaimed" in comments.
5595 * include/excpt.h: Another spelling correction.
5597 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5599 * include/errno.h: Fix "errno is not a prototype" warning.
5601 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
5603 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
5604 differences between ANSI and non-ANSI versions.
5605 (_ctype[],_pctype): Declare vars.
5606 (__ISCTYPE): New helper macro using _pctype.
5607 (is* ctype functions): Use __ISCTYPE to define inline versions.
5608 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
5610 (isw* ctype functions): Inline definitions.
5611 * include/wctype.h (_ctype[],_pctype): Declare vars.
5612 (isw* ctype functions): Inline definitions.
5615 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5617 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
5618 __fpecode): Use __STDC__ prototypes.
5621 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
5623 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
5624 * mthr_init.c (DllMain) Run dtors if a process terminates.
5625 * mthr.c (__mingwthr_add_key_dtor) Removed.
5626 (___mingwthr_add_key_dtor) New.
5627 (___mingwthr_remove_key_dtor) New.
5628 (__mingwthr_run_key_dtors) Complete rewrite.
5629 (__mingwthr_remove_key_dtor) New.
5631 2001-11-05 Egor Duda <deo@logos-m.ru>
5633 * Makefile.in: Delete unused executable after creating base-files.
5635 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5637 * include/errno.h (_errno): Use __STDC__ prototype.
5638 Thanks to: Jim Barton.
5640 2001-11-04 "stefan" <stefan@lkcc.org>
5642 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
5644 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5646 * include/io.h (_commit): Add declaration.
5647 Thanks to: "stefan" <stefan@lkcc.org>
5649 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5651 * include/sys/stat.h: Make S_IS* macros safer.
5653 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
5655 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
5657 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5659 * include/stdlib.h (__p__environ, __p__wenviron): Use
5660 __STDC__ prototypes.
5662 2001-09-19 Earnie Boyd <earnie@SF.net>
5664 * Makefile.in: Remove the /usr from the install target.
5665 (VERSION): Increment.
5666 include/_mingw.h: Ditto.
5668 2001-09-17 Earnie Boyd <earnie@SF.net>
5670 * Makefile.in: Increment version.
5671 * include/_mingw.h: Ditto.
5673 2001-09-10 Earnie Boyd <earnie@SF.net>
5675 * dossh: Remove inadvertantly imported file.
5677 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5679 * dirent.c (opendir): Use GetFileAttributes rather than stat
5680 to determine if input arg is dir.
5682 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
5684 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5686 * include/varargs.h (va_list): Ditto.
5687 * include/stdio.h (va_list): Ditto.
5689 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5691 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5692 * include/stdio.h (_IORW): Change constant to 0x0080.
5693 (TMP_MAX): Add new define.
5695 (_wP_tmpdir): Ditto.
5696 (L_tmpnam): Change constant to 16.
5698 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
5700 * include/malloc.h: Fix non-ANSI comment after #endif.
5702 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5704 * profile/configure.in: Make msvcrt.dll version default.
5705 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
5706 * provile/configure: Regenerate.
5708 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
5710 * include/stdio.h (swscanf): Make first arugument const.
5711 * include/wchar.h (swscanf): Ditto.
5712 * include/tchar.h (_tfopen): New _UNICODE define.
5714 (_tsetlocale): Ditto.
5716 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5718 * profile/Makefile.in (mkinstalldirs): Correct relative path.
5720 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5722 * include/_mingw.h: Change version to 1.0.
5725 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
5727 * include/tchar.h: (__TEXT): Remove undef.
5731 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5733 * include/tchar.h: (__TEXT): Add private macro.
5734 (_TEXT): Modify definition to use __TEXT.
5736 This change allows the passing of a MACRO as an argument and have that
5737 MACRO resolved first.
5738 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5740 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5742 * Makefile.in: Increment version to 0.5
5743 * include/_mingw.h: Increment minor version
5745 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5747 * include/assert.h: (assert): Remove ; from end of definition
5748 Thanks to: AJ Reins <tbisp@qwest.net>
5750 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5752 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5753 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5755 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5757 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5759 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5761 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5762 are actually C functions. These functions are resolved via the
5763 -lmsvcp60 library and comments were placed in the header.
5765 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5767 * include/stdlib.h (__p__pgmptr): add prototype.
5768 (__p__wpgmptr): likewise.
5769 (_pgmptr_dll): move declaration from dos.h.
5770 (_wpgmptr_dll): likewise.
5771 (_pgmptr): conditional define (MSVCT/CRTDLL).
5772 (_wpgmptr): likewise.
5773 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5774 (_os*_dll variables): likewise.
5775 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5776 (_wpgmptr_dll): likewise.
5778 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5780 * include/stdint.h: New file.
5782 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5784 * include/wchar.h: Protect prototypes only declared in the C++ STL
5785 from being declared unless __cplusplus is defined.
5787 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5789 * include/stdlib.h: Apply Danny Smith patch 102730
5790 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5791 (_wgetenv) Correction to return type.
5793 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5795 * include/locale.h: Apply Danny Smith patch 101834
5796 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5797 (LC_MIN) Add definition.
5799 (_wsetlocale) Add prototype.
5801 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5803 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5804 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5805 Create a libcoldname.a for the oldname library for CRTDLL.
5806 Restrict libmoldname.a for the oldname library for MSVCRT.
5807 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5808 Restructure the $target_os case logic.
5809 Always name the MinGW thread dll helper mingwm.
5810 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5811 * configure: regenerate.
5813 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5815 * Makefile.in: Fix bindist target to distribute the correct files.
5816 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5817 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5819 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5821 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5822 Add variables and targets to control binary and source distributions.
5823 Add variables and targets to control snapshot distribution.
5824 * profile/gmon.h: Add missing #endif for #ifndef.
5825 * profile/ChangeLog: Merge entries here and remove.
5826 * profile/Makefile.in: Add variables and targets to control
5830 * config.guess: ditto.
5831 * config.sub: ditto.
5832 * mkinstalldirs: ditto.
5833 * install-sh: ditto.
5834 * configure: regenerate.
5835 * profile/configure: ditto.
5837 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5839 * Merge in changes from
5840 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5841 * include/direct.h: add guard around MSVCRT-only prototytpes
5842 * include/io.h: add __int64 struct definitions and function prototypes;
5843 add guard for MSVCRT-only prototypes
5844 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5845 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5846 put wchar functions together to make sync with wchar.h easier
5847 * include/stdlib.h: add wide char functions (__MSVCRT__)
5848 * include/string.h: add string collation functions ( __MSVCRT__)
5849 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5850 * include/tchar.h: add macros and macro function definitions
5851 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5852 enclose more functions in __MSVCRT__ guard;
5853 some oldname wide char function prototypes #if (0)'d
5854 * profile/gmon.h: add guard around BSD-ish typedefs
5856 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5858 * Makefile.in: Use a different variable name for subdirectory since the
5859 previous one was used by the top level make.
5861 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5863 * Makefile.in: Install mingw stuff in a subdirectory if building under
5866 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5868 * Makefile.in (subdirs): Eliminate for loop.
5870 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5872 * Makefile.in (subdirs): Previous change did not fix problem in
5875 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5877 * Makefile.in: Avoid installing dll if we're cross building and the
5878 cross-host system isn't a Windows system.
5879 * configure.in: Detect cross-hosting situation and set appropriate
5880 variables in Makefile.in.
5881 * configure: Regenerate.
5883 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5885 * configure.in: Change HEADER_SUBDIR to mingw32.
5886 * configure: Regenerate.
5888 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5890 * include/string.h: Use proper prototype for _strerror.
5892 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5894 * Makefile.in (subdirs): Workaround for broken shells.
5896 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5898 * Snapshot 2000-02-03.
5900 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5901 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5902 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5903 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5906 * Makefile.in (all): Build CRT0S first.
5907 (libmingwthrd.a): Remove thread support DLL from dependency.
5909 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5911 * Snapshot 2000-01-21.
5913 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5915 Merge in changes from Cygwin:
5916 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5917 (SUBDIRS): Likewise.
5918 * Makefile.in (HEADER_SUBDIRS): New variable.
5919 (install): Use to install Mingw headers to a subdirectory if building
5921 (DLL_CC_STUFF): Add DLL entry point.
5922 * configure: Regenerate.
5924 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5926 * include/stdio.h (fsetpos): Fix prototype.
5927 (fpos_t): Fix for MSVCRT.
5928 * include/float.h (fpreset): Add prototype.
5929 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5931 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5932 export using libmoldname.a.
5933 * crtdll.def: Add DATA tags.
5934 * msvcrt.def: Likewise.
5935 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5936 both MSVCRT and CRTDLL.
5937 * moldname-crtdll.def: Regenerate.
5938 * moldname-msvcrt.def: Regenerate.
5940 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5942 * Snapshot 1999-12-21.
5944 * include/wctype.h: New file.
5945 * include/ctype.h (MB_CUR_MAX): Define.
5947 * include/stdlib.h (MB_CUR_MAX): Define.
5948 * include/wchar.h: Define stat, _stat structures here as well.
5949 * include/float.h: Add invalid subconditions (_SW) and floating
5950 point error (_FPE) macros.
5951 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5952 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5953 * include/sys/types.h: Likewise.
5955 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5957 * profile/profil.c (profile_on): Set the profiler thread priority to
5958 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5959 * Snapshot 1999-11-18.
5961 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5963 Released 1999-11-07.
5965 * Makefile.in (CRT0S): Add crtst.o.
5966 (install): Install in subdirs as well.
5967 * dirent.h (struct _stat): Rename from struct stat.
5968 * include/tchar.h: Add some new macros. Thanks to
5969 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5970 * profile/Makefile.in (install): Fix target.
5972 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5974 * Makefile.in: Add support for profile directory.
5975 * configure.in: Likewise.
5976 * configure: Regenerate.
5978 * profile: Imported profiling sources from winsup-19991026 snapshot.
5979 * profile/Makefile.in: New file.
5980 * profile/configure.in: New file.
5981 * profile/configure: Generate.
5982 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5983 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5984 * profile/gmon.c (unistd.h): Include conditionally.
5985 (sys/param.h): Likewise.
5986 * profile/mcount.c (sys/param.h): Likewise.
5987 * profile/profil.c (profile_on): thread id is DWORD, not int.
5990 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5992 * include/stdlib.h: Add wide character version of argv/environ.
5994 * include/wchar.h: More wide character prototypes.
5995 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
5997 * dllcrt1.c (init.c): Don't include.
5998 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
5999 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
6001 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
6003 * moldname.def: Remove file.
6004 * moldname.def.in: And add this.
6005 * moldname-msvcrt.def: Generate from moldname.def.in.
6006 * moldname-crtdll.def: Likewise.
6008 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
6009 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
6010 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
6012 * Makefile.in: Update.
6013 * configure.in: Likewise. Also add *cygwin* target for building
6014 under Cygwin winsup.
6015 * configure: Regenerate.
6017 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
6019 * include/_mingw.h: Add version macros.
6020 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
6021 Also add wide character versions shared with wchar.h.
6022 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
6023 * include/io.h (sopen, _sopen): Fix prototype.
6024 Add wide character prototypes.
6025 * include/wchar.h: Likewise.
6026 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
6027 underscored versions. Potential incompatibility.
6028 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
6029 Add wide character prototypes.
6030 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
6033 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
6035 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
6036 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
6038 * configure: Rengerate.
6039 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
6040 dll name and crt's. CRTDLL and MSVCRT are meant to created
6041 separately, so remove all the *-msvcrt* targets.
6042 (libmingwthr.a): New target. Dummy thread support archive.
6043 (LIBS): Add libmingwthr.a.
6044 (CRT0S): Use CRT_ID. Add crtmt.o.
6045 (MINGW_OBJS): Add crtst.o.
6046 * main.c (WinMain): Fix prototype.
6047 * crtmt.c: New file.
6048 * crtst.c: New file.
6050 * include/process.h (_beginthreadex): Fix prototype.
6051 * include/_mingw.h (__int64): Define for __GNUC__.
6052 * include/tchar.h (_ttol): Add macro.
6053 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
6054 _i64tow, _ui64tow, _wtoi64): Add prototypes.
6056 Reported by Emanuele Aliberti <ea@iol.it>:
6057 * include/tchar.h (_ttoi): Add macro.
6059 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
6060 * include/stdio.h (_snprintf): Add prototype.
6061 (_vsnprintf): Likewise.
6063 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
6065 Reported by Tor Lillqvist <tml@iki.fi>:
6066 * include/stdlib.h (__p___argv): Fix return type.
6068 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6071 * include/errno.h (errno): It's linked in from startup, not imported.
6072 * include/stdlib.h (errno): Likewise.
6073 * include/io.h: Guard against conflicting macros and prototypes in
6075 * include/stdlib.h: Likewise.
6076 * include/string.h: Likewise.
6077 * include/time.h: Likewise.
6079 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6081 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
6082 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
6083 * Makefile.in (INCLUDES): Remove old windows32 include directory.
6085 * crt1.c (_gnu_exception_handler): Fix prototype.
6086 (__mingw_CRTStartup): New function based on mainCRTStartup.
6087 (mainCRTStartup): Set the app type for MSVCRT and call
6089 (WinMainCRTStartup): Likewise.
6090 * init.c (_startupinfo): Define.
6091 (_getmainargs): Add 5th parameter.
6092 (_mingw32_init_mainargs): Use.
6094 * ALL *.c files: Reformat according to GNU coding style.
6096 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
6098 * Makefile.in (INCLUDES): Add w32api include directory.
6100 * include/_mingw.h: New file.
6101 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
6102 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
6103 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
6104 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
6105 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
6106 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
6108 * include/stdlib.h (atexit): Fix prototype.
6110 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
6112 * include/stdio.h (_tempnam): Fix prototype.
6113 (tempnam): Likewise.
6114 * include/stdlib.h: Replace with GCC's version, and guard
6117 From Anders Norlander <anorland@hem2.passagen.se>:
6118 * include/stdlib.h (__argc): Declare.
6121 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
6123 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
6125 * Makefile.in (_libm_dummy.o): New target.
6128 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
6130 * Released 1999-03-16 along with egcs-1.1.2.
6132 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
6134 * Makefile.in (LIBS): Add libm.a.
6135 (libm.a): Dummy libm.a.
6137 * Makefile.in: Update from winsup 1999-02-08 snapshot.
6138 Preserve local changes.
6139 (mkinstalldirs): In ../, not ../../.
6140 (INCLUDES): Point to local windows32api headers and use -nostdinc.
6142 (LIBS): Add libmoldname-msvc.a.
6143 (libmoldname-msvc.a): Add target.
6144 (distclean): Add target.
6146 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
6148 * include/dir.h: Reintroduce as an obsolescent header.
6149 * crt1.c (signal.h): Include.
6150 (_gnu_exception_handler): New function to properly handle win32
6151 asynchronous signals.
6152 (mainCRTStartup): Use.
6154 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
6156 * include/direct.h: Include io.h instead of dir.h
6157 * include/dirent.h: Likewise.
6158 * include/dos.h: Likewise.
6159 * include/stdio.h: Replace reference to dir.h with io.h.
6161 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
6163 * 1999-01-01 release bundled with egcs-1.1.1.
6165 * include/io.h: Incorporate dir.h.
6166 * include/dir.h: Remove.
6167 * include/signal.h: Move RC_INVOKED up a bit.
6169 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
6171 * include/signal.h (sig_atomic_t): Define.
6173 * include/malloc.h: Import defs from deprecated alloc.h.
6174 * include/alloc.h: Remove.
6176 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
6177 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
6178 * include/sys/stat.h (struct stat): st_uid is of type short. Use
6179 _off_t instead of long for st_size.
6181 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
6183 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
6184 * include/stdlib.h: Here.
6186 * include/netdb.h: Remove.
6187 * include/arpa/inet.h: Remove.
6188 * include/netinet/in.h: Remove.
6189 * include/sys/socket.h: Remove.
6191 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
6195 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
6196 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
6198 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6200 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
6201 (jmpbuf): typedef using above.
6202 (setjmp, longjmp): Prototype using jmpbuf.
6204 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
6205 obsolescent imported names, ie., from __imp__ to _imp___.
6207 Also ignored empty include/sys/param.h and incorrect
6208 include/sys/times.h.
6210 * CRTinit.c: New file.
6211 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
6213 * include/io.h (umask): Fix prototype.
6214 * include/stdlib.h (OS constants): Replace with Colin's.
6215 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
6216 * include/sys/state.h: Merge.
6218 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
6220 * include/assert.h (assert): Lose the trailing semicolon.
6222 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
6224 * include/math.h (matherr): Declare.
6225 * include/stdio.h (fileno, _fileno): Declare.
6226 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
6229 * include/stdio.h (fdopen, _fdopen): Add const.
6230 (getw, putw): Declare.
6231 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
6233 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
6235 * include/time.h (_timezone): Undefine.
6236 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
6238 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
6240 * include/stdlib.h (environ): Use DLL version.
6241 * init.c (environ): Undefine it before use.
6243 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
6245 * Update to 980309 snapshot from Colin Peters.
6247 * include/utime.h: remove
6248 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
6249 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
6250 patches to define these.
6251 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6252 (_daylight, _timezone, _tzname, _tzset): Define.
6254 * include/netdb.h: Add from Colin's windows32api changes.
6255 * include/sys/socket.h: Likewise.
6256 * include/arpa/inet.h: Likewise.
6257 * include/netinet/in.h: Likewise.
6259 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
6261 * Update to 980128 snapshot from Colin Peters.
6263 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
6265 * configure.in (AC_INIT): Use dllmain.c instead of defunct
6267 * configure: Regenerate.
6269 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
6271 * Update to 971205 snapshot from Colin Peters. Lots of changes.
6272 Files renamed and include hierarchy loses directories named
6275 * include/dos.h: from Jan-Jaap.
6277 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
6279 Changes to conform to FSF tree.
6281 * crt1.c: Renamed from mcrt0.c.
6282 * dllcrt1.c: Renamed from dllcrt0.c.
6283 * Makefile.in: Update above. Also renamed libmoldnames.a to
6286 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
6288 * crtdll.def: Export all functions but the ones with funny names.
6289 * moldnames.def: Add fdopen since fileno is already there.
6290 * include/nonansi/dos.h: New file from Jan-Jaap.
6291 * include/errno.h: Add extern decl + various additions from JJ.
6292 * include/stdio.h: Likewise.
6293 * include/stdlib.h: Likewise.
6294 * include/nonansi/io.h: Likewise.
6295 * include/nonansi/process.h: Likewise.
6296 * include/sys/types.h: Likewise.
6298 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6300 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6302 * include/stdlib.h (free): Fix prototype to return void, not void*.
6303 * include/nonansi/process.h: Add P_* and WAIT_* defs.
6305 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
6306 * mcrt0.c: Likewise.
6308 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
6309 (libmoldnames.a): Add explicit rule to create it.
6311 1997-08-15 Rob Savoye <rob@cygnus.com>
6313 New directory for the minimalist cygwin environment.
6315 * crtglob.c: New file. Turn on file globbing support.
6316 * crt_noglob.c: New file. Turn off file globbing support.
6317 * ctype_old.c: New file. Wrappers for functions that don't
6319 * dirent.c: New file. Directory routines readdir, opendir, closedir.
6320 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
6321 * dllmain.c: New file. A stub DllMain function.
6322 * hugeval.c: New file. A gross hack to define HUGE_VAL.
6323 * init.c: New file. Common code to initialize standard file
6324 handles and command line arguments.
6325 * main.c: New file. A main for programs that only call WinMain.
6326 * mcrt0.c: New file. Default crt0 for mingw32.
6327 * oldnames.c: New File. Wrappers for functions that don't
6329 * string_old.c: New File.
6330 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
6331 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
6332 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
6333 * include/sys/types.h: New header file for mingw.
6334 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
6335 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
6336 utime.h,values.h,varargs.h}: New header files for mingw.
6337 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
6338 timeb.h,unistd.h}: New header files for mingw.
6339 * Makefile.in,configure.in: Build and configure support.
6340 * configure: Generated from autoconf 2.12 with Cygnus patches.