1 2016-05-19 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Occlude unsupported _S_IFBLK feature; resolve issue [#1146].
5 * include/sys/stat.h (_MINGW_S_IFBLK_KLUDGE): New feature test macro;
6 do not define it, and strongly recommend that it remains undefined.
7 [!_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Do not define them.
8 [!_MINGW_S_IFBLK_KLUDGE] (_S_ISBLK, S_ISBLK): Poison them.
9 [_MINGW_S_IFBLK_KLUDGE] (_S_IFBLK, S_IFBLK): Adjust definitions; use a
10 modified value, which is guaranteed to be impossible to match in...
11 [_S_ISBLK, S_ISBLK]: ...these, thus enforcing false test results.
13 2016-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
15 Fix a typo in a <sys/stat.h> inline function definition.
17 * include/sys/stat.h [__MSVCRT_VERSION__ >= __MSVCR80_DLL]
18 (stat): First argument declared as 'int'; should be 'const char *';
21 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
23 Synchronize package version management with Win32-API.
25 * VERSION.m4: New file; link it to keep in sync with identically named
26 file in top level composite package source directory; it defines...
27 (__VERSION__): ...this new composite package version macro.
29 * aclocal.m4: Link it, to keep in sync with identically named files in
30 top level composite source and sibling w32api sub-package directories.
31 (__VERSION__): New macro; include VERSION.m4 to define it.
32 (__BUG_REPORT_URL__): New macro; define it.
34 * configure.ac (AC_INIT): Assign package version and bug report URL...
35 (__VERSION__, __BUG_REPORT_URL__): ...from these, as defined through
36 automatic inclusion of aclocal.m4
38 * Makefile.in (configure): Add dependency on VERSION.m4
40 2016-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
42 Resolve some strnlen() implementation issues.
44 * mingwex/strnlen.s (__mingw_strnlen) [!NUL]: Correct termination
45 logic; should have used jnz, not jz, to skip endpoint adjustment on
46 scanning past a terminal NUL character code.
48 * include/string.h [_POSIX_C_SOURCE >= 200809L] (strnlen): Do not
49 #define it, as this breaks GCC compilation; use __CRT_ALIAS instead,
50 with __JMPSTUB__ referencing via "oldname" libraries.
52 * Makefile.in (jmpstub_awk_script, libimpl_awk_script): Adapt to
53 facilitate assignment of __JMPSTUB__ and __LIBIMPL__ references to
54 libraries other than libmingwex.a
55 (strnlen.jmpstub.$OBJEXT): Assign it to all "moldname" libraries prior
56 to libmoldname80.a, in addition to libcoldname.a, as specified by the
57 __JMPSTUB__ assignment within <string.h>
59 2016-05-03 Keith Marshall <keithmarshall@users.sourceforge.net>
61 Enforce consistent specification of package version.
63 * include/_mingw.h: Rename as...
64 * include/_mingw.h.in: ...this build-time template file.
65 (__MINGW32_VERSION): Redefine it, in terms of...
66 (%PACKAGE_VERSION_LONG%): ...this substitution template.
67 (__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION)
68 (__MINGW32_PATCHLEVEL): Likewise, redefine them in terms of...
69 (%PACKAGE_VERSION_MAJOR%, %PACKAGE_VERSION_MINOR%)
70 (%PACKAGE_VERSION_PATCH%): ...these.
72 * configure.ac (AC_CONFIG_SRCDIR): Adjust for renamed file.
73 (MINGW_AC_CONFIG_EXTRA_SRCDIR): Likewise, for similarly renamed
74 w32api/include/w32api.h.in file.
76 * Makefile.in (all-mingwrt-stage-1-only): Add dependency on...
77 (_mingw.h, w32api.h): ...these; add rule to generate them, using...
78 (PACKAGE_VERSION_SCRIPT, PACKAGE_VERSION_FORMAT): ...these new macros;
79 they apply appropriate substitutions to the renamed template files.
80 (install-mingwrt-headers): Explicitly add _mingwrt.h
82 2016-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
84 Make strnlen() available for all MSVCRT.DLL versions.
86 * msvcrt-xref/msvcrt.def.in (strnlen): Mark it as...
87 (__MINGW_DLSYM): ...this, excluding its exposure in libmsvcrt.dll, and
88 thus requiring a dlsym() lookup for versions which provide it.
90 * include/string.h [__MSVCRT_VERSION__>=__MSVCR80_DLL] (strnlen):
91 Declare prototype, for use from these non-free DLLs, otherwise...
92 [_POSIX_C_SOURCE >= 200809L] (strnlen): Define it as an alias for...
93 (__mingw_strnlen): ...this new libmingwex.a function.
95 * mingwex/strnlen.s: New file; it implements...
96 (__mingw_strnlen, __mingw_strnlen_s): ...these new functions.
98 * Makefile.in (libmingwex.a): Add requirement for...
99 (strnlen.$OBJEXT): ...this; add vpath specification for its source.
101 2016-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
103 Use correct paths for partially included header files.
105 * include/io.h include/process.h: Use 'iquote' #include "stdint.h", to
106 ensure that we get stdint.h from the same include directory.
107 * include/stdio.h: Likewise for #include "stdarg.h", and "sys/types.h"
108 * include/wchar.h: Likewise for all of #include "stdio.h", "stdlib.h",
109 "direct.h", "sys/stat.h", "io.h", "time.h", "locale.h", and "process.h"
110 * include/dir.h include/dos.h: Likewise for #include "io.h"
111 * include/direct.h: Likewise for #include "dos.h"
113 2016-04-13 Keith Marshall <keithmarshall@users.sourceforge.net>
115 Generalize procedure for installing manpages.
117 * man/dirname.man: Rename it as...
118 * man/dirname.3.man: ...this, with inherent MANSECT specification.
119 (TH): Use %PAGEREF% substitution for NAME, MANSECT, and DATE.
120 (MS-Windows): Do not append \[tm]; it doesn't render well in Windows
121 console. Further, correct typos; some syntactic adjustments.
123 * Makefile.in (%:%.man): New rule; define it.
124 (%.mancopy, %.mancopy-recursive): New rules; define and use with...
125 (reference_manpage): ...this new macro, defining it to map...
126 (dirname.3.man): ...this as the reference source file for both of...
127 (basename.3, dirname.3): ...these installed manpages.
128 (format_manpage): Add MANSECT and DATE to expansion of...
129 (%PAGEREF%): ...this sed substitution pattern.
131 2016-04-12 Keith Marshall <keithmarshall@users.sourceforge.net>
133 Update several incorrectly attributed header files.
135 * include/direct.h include/io.h include/locale.h include/math.h
136 * include/process.h include/stdio.h include/stdlib.h include/string.h
137 * include/sys/stat.h include/sys/types.h include/time.h: Identify the
138 original author as Colin Peters; Rob Savoye merely imported them into
139 the original CVS repository, when he created it.
141 * include/wchar.h: Likewise, imported by Rob Savoye, but the original
142 source file is unattributed.
144 2016-04-11 Keith Marshall <keithmarshall@users.sourceforge.net>
146 Eliminate all references to non-standard __NO_ISOCEXT macro.
148 * include/math.h: Tidy layout.
149 [!defined __NO_ISOCEXT]: Do not use this ugly double negative; in any
150 case, we do not want to encourage users to define such implementation
151 private macros; instead, prefer to make use of...
152 [defined _ISOC99_SOURCE]: ...this glibc compatible feature test.
153 [__STDC_VERSION__ >= 199901L]: Do not require this; it is implied, by
154 definition, in _ISOC99_SOURCE.
155 * include/stdio.h [!defined __NO_ISOCEXT]: Likewise; replace with...
156 [defined _ISOC99_SOURCE]: ...this, throughout.
158 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
160 Make resetting of __need_typedef requests more robust.
162 * include/sys/types.h [__need_off_t, __need___off64_t]
163 [__need_ssize_t, __need_time_t]: Move corresponding #undef out of, and
164 after the respective conditional blocks, which provide each associated
165 typedef, so ensuring that any repeat request is properly reset.
167 * include/time.h [__need_time_t]: Always delegate to <sys/types.h> for
168 typedef, and reset of request, even in cases where...
169 [_TIME_H]: ...this is already defined.
171 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
173 Add a missing comment terminator.
175 * include/io.h [!(defined _IO_H && defined _WCHAR_H)]: Properly
176 terminate the comment annotating the closing #endif statement.
178 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
180 Declare <dir.h> as formally deprecated.
182 * include/dir.h: Assert copyright.
183 (pragma GCC system_header): Declare it.
184 (_DIR_H): Define as multiple inclusion macro.
185 [!_DIR_H]: Emit "obsolete header" warning message.
187 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
189 Factor out <wchar.h> vs. <io.h> duplicate declarations.
191 * include/io.h: Assert copyright; tidy layout.
192 (_IO_H_): Rename this multiple inclusion guard macro...
193 (_IO_H): ...to this preferred form; do not define it when...
194 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
195 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
196 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
197 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
198 (_wfindnext64i32, _wfindfirst32, _wfindnext32, _findclose): ...only
199 these function prototypes, common to <wchar.h>, together with...
200 (_fsize_t, struct _wfinddata_t, struct _wfinddatai64_t)
201 (struct __wfinddata64_t, struct _wfinddata64i32_t)
202 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these
203 requisite data type definitions.
204 (pragma GCC system_header): Declare it.
205 (__need_intptr_t): Define, and include <stdint.h> to get...
206 (intptr_t): ...this typedef; neither define it locally, nor define...
207 (_INTPTR_T_DEFINED): ...this; delete all references.
208 (_FSIZE_T_DEFINED): Do not define it; delete all references; rather...
209 [!(defined _IO_H && defined _WCHAR)] (_fsize_t): Define it.
210 (FILENAME_MAX): Define it unconditionally.
211 (__struct_finddata_t): New temporary macro; define and use it to...
212 (struct _finddata_t, struct _wfinddata_t, struct _finddatai64_t)
213 (struct _wfinddatai64_t, struct __finddata64_t, struct __wfinddata64_t)
214 (struct _finddata64i32_t, struct _wfinddata64i32_t)
215 (struct _finddata32i64_t, struct _wfinddata32i64_t)
216 (struct __finddata32_t, struct __wfinddata32_t): ...define these.
218 * include/wchar.h (_WFINDDATA_T_DEFINED): Do not define it; delete all
219 references; filter out associated data type definitions, namely...
220 (struct _wfinddata_t, struct _wfinddatai64_t): ...these, and also...
221 (struct __wfinddata64_t, struct _wfinddata64i32_t): ...these, and...
222 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these.
223 (_WIO_DEFINED): Likewise, do not define it; delete all references;
224 filter out associated function prototype declarations for all of...
225 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
226 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
227 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
228 (_wfindnext64i32, _wfindfirst32, _wfindnext32): ...these; reproduce
229 them by selective inclusion of <io.h>.
231 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
233 Factor out <wchar.h> vs. <process.h> duplicate declarations.
235 * include/process.h: Assert copyright; tidy layout.
236 (_PROCESS_H_): Rename this multiple inclusion guard macro...
237 (_PROCESS_H): ...to this preferred form; do not define it when...
238 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
239 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
240 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
241 (_wspawnve, _wspawnvp, _wspawnvpe): ...only these functions.
242 [!__WCHAR_H_SOURCED__] (_PROCESS_H): Define it; declare all functions
243 normally specified herein, including those listed above, as required.
244 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
245 (__need_intptr_t): Define it prior to including <stdint.h>.
246 (pragma GCC system_header): Declare it.
248 * include/wchar.h (_WPROCESS_DEFINED): Delete it; filter out...
249 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
250 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
251 (_wspawnve, _wspawnvp, _wspawnvpe): ...these function prototypes;
252 reproduce them, by selective inclusion of <process.h>.
254 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
256 Enable selective retrieval of intptr typedefs from <stdint.h>.
258 * include/stdint.h: Assert copyright; tidy layout.
259 [__need_intptr_t || __need_uintptr_t] (_STDINT_H): Do not define it;
260 conceal all normally defined data types, except either or both of...
261 [__need_intptr_t] (intptr_t): ...this, and/or...
262 [__need_uintptr_t] (uintptr_t): ...this.
263 (pragma GCC system_header): Declare it.
265 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
267 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
269 * include/sys/stat.h: Assert copyright; tidy layout.
270 (pragma GCC system_header): Declare it.
271 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
272 (_SYS_STAT_H): ...this preferred naming convention; however, when...
273 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
274 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
275 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
276 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
277 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
278 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
279 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
280 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
281 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
282 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
283 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
284 (__struct_stat_defined): New macro; define, and use it to define...
285 (struct stat, struct _stat, struct _stati64, struct __stat64)
286 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
287 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
288 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
289 definition of types size_t and wchar_t; declare all header content,
290 including that declared when __WCHAR_H_SOURCED__ is defined, unless
291 already declared as a result of selective inclusion by <wchar.h>
292 (__need_size_t, __need_wchar_t): Do not define them; consequently,
293 there is no need to include <stddef.h>; do not do so.
295 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
296 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
297 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
298 (struct _stat64i32): Likewise; reproduce them by selective inclusion
301 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
303 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
305 * include/direct.h: Conditionally partition it, such that...
306 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
307 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
308 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
309 (_WDIRECT_DEFINED): Never define it; delete all references.
311 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
312 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
313 selectively #include <direct.h> to reproduce them.
315 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
317 Factor out <direct.h> vs. <dos.h> duplicate declarations.
319 * include/dos.h: Assert copyright; tidy layout.
320 (pragma GCC system_header): Declare it.
321 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
322 (_DOS_H): ...this preferred convention; do not define it when...
323 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
324 (struct _diskfree_t): ...this aggregate data type, together with...
325 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
326 (_getdiskfree): ...this associated function.
327 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
328 emit a warning that this header is obsolete, and should not be used.
329 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
330 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
331 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
332 neither is it necessary to #include <stddef.h>; do not do so. Also,
333 do not #include <_mingw.h> explicitly, but always #include <io.h>,
334 which will implicitly #include <_mingw.h> anyway.
336 * include/direct.h: Assert copyright; tidy layout.
337 (pragma GCC system_header): Declare it.
338 (_DIRECT_H_): Rename this multiple inclusion guard macro...
339 (_DIRECT_H): ...to adopt this preferred naming convention.
340 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
341 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
342 (_getdiskfree): Likewise, do not declare prototype; instead...
343 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
344 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
345 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
346 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
347 although needed, we may inherit it indirectly from <sys/types.h>,
348 included by <io.h> via <dos.h>.
350 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
352 Evade CPP mismatched apostrophe warnings in windres comments.
354 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
356 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
358 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
360 * include/locale.h: Assert copyright; tidy layout.
361 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
362 (_LOCALE_H): ...this; do not define it when...
363 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
364 (_wsetlocale): ...just this one visible function prototype.
365 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
366 (_WLOCALE_DEFINED): Do not define it; delete all references.
367 (pragma GCC system_header): Declare it.
369 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
370 visibility by selective inclusion of <locale.h> instead.
371 (_WLOCALE_DEFINED): Delete all references.
373 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
375 Resolve some "implicit function declaration" warnings.
377 * setargv.c (isspace): Include <ctype.h> for declaration.
378 * cpu_features.h (__cpu_features_init): Declare function prototype.
379 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
381 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
383 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
385 * include/stdlib.h [__WCHAR_H_SOURCED__]
386 (_STDLIB_H): Do not define it; restrict visible declarations to...
387 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
388 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
389 of regular <stdlib.h> content; full content is declared only when...
390 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
391 (_WSTDLIB_DEFINED): Do not define it; delete all references.
392 (pragma GCC system_header): Declare it; tidy layout.
394 * include/wchar.h: Delete duplicated declarations for...
395 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
396 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
397 include <stdlib.h> selectively, to maintain their visibility.
398 (_WSTDLIB_DEFINED): Delete all references.
400 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
402 Relocate misplaced umask() function prototypes.
404 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
405 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
406 here, but leave them for backward, or Microsoft, compatibility.
408 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
410 Correct another _BEGIN_C_DECLS imbalance error.
412 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
413 unbalanced instance deleted; one correctly balanced instance remains.
415 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
417 Support installation of headers with empty parts directory.
419 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
420 (install-mingwrt-headers): ...invoke it; if false, do not perform...
421 (INSTALL_SUB_HEADERS): ...this.
423 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
425 Reinstate typedef for non-standard off64_t.
427 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
428 (__off64_t): ...typedef derived from this; although non-standard, it
429 is gratuitously required when building GCC's libgfortran.a
431 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
433 Correct conditional compilation block nesting errors.
435 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
436 them balanced within, and around, conditional compilation blocks.
438 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
440 Feature test _MINGW32_EXTENDED_SOURCE renamed.
442 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
443 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
444 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
445 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
446 users should enable any conventional feature test which implies it.
448 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
449 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
451 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
453 Correct atexit() and _onexit() export declaration regression.
455 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
456 as DATA; declare them accordingly.
458 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
460 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
462 * include/string.h: Tidy layout.
463 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
464 (_stricmp, _strnicmp): Include their prototypes, selectively from...
465 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
466 * include/parts/strings.h: ...from here; file is obsolete; delete it.
468 * include/string.h (_wcscmpi): Define alias.
469 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
470 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
471 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
472 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
473 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
474 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
475 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
476 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
478 * include/strings.h (_STRINGS_H): Do not define it, when...
479 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
480 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
482 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
484 Refactor to make <parts/time.h> redundant.
486 * include/sys/types.h (time_t, __time32_t, __time32_t)
487 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
488 * include/parts/time.h: ...from here; preserve selective exposure.
490 * include/time.h (time_t, __time32_t, __time32_t): Get them...
491 * include/sys/types.h: ...from here, by selective inclusion.
493 * include/time.h (struct timespec, struct __mingw_extended_timespec)
494 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
495 * include/parts/time.h: ...from here; preserve selective exposure.
497 * include/parts/time.h: Delete file; it is no longer required.
499 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
501 Declare the nanosleep() function where POSIX expects it.
503 * include/time.h (__mingw_sleep): Declare function prototype.
504 (nanosleep): Declare prototype, and provide in-line implementation;
505 this is a reproduction of the original implementation, relocated...
506 * include/unistd.h (nanosleep): ...from here; remove it; hence...
507 (struct timespec): ...this need not be declared here, and there is
508 no need to include <parts/time.h>; remove reference.
510 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
512 Refactor <time.h> vs. <wchar.h> to avoid duplication.
514 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
515 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
516 (struct tm): Delete definition; delegate it, together with each of...
517 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
518 (wcsftime): ...these function prototypes; delete them, but note in
519 comments, that they remain declared, via delegation to...
520 * include/time.h: ...this; include it selectively, subject to...
521 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
522 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
523 [_TIME_H]: Process all definitions and declarations; otherwise...
524 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
525 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
526 (_WTIME_DEFINED): Obsolete macro; delete all references.
528 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
530 Implement support for POSIX "%n$*m$" printf() format control.
532 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
533 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
534 (__pformat_inline__): New macro; define, and use it where appropriate.
535 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
536 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
537 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
538 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
539 (__pformat_argmap_t): ...this new union data type; define it.
540 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
541 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
542 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
543 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
544 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
545 (__pformat_length_modifier, __pformat_check_length_modifier): New
546 locally defined static and/or inline functions; implement, and...
547 (__pformat): ...use them.
549 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
551 Add prototypes for Microsoft's _printf_p() family of functions.
553 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
554 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
555 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
556 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
557 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
558 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
559 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
560 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
561 available for selective inclusion by both <stdio.h> and <wchar.h>...
562 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
564 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
566 Adapt msvcrt-xref to become msvcrt.def.in provider.
568 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
569 filter value assignment; scale it upwards, by a factor of 0x10000.
570 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
571 (%.def) [msvcr*]: Do not preserve comments; define...
572 (__DLLNAME__): ...this preprocessor symbol.
574 * msvcrt.def.in: Content is obsolete; delete file and replace with...
575 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
576 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
577 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
578 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
579 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
581 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
583 Import msvcrt-xref documentation resources.
585 * msvcrt-xref: New directory.
586 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
587 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
588 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
589 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
591 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
593 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
595 * include/wchar.h: Some minor layout adjustments.
596 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
597 within the scope of reading <wchar.h>; undefine it at end of file.
598 (struct tm): Do not define; it is sufficient to keep it opaque.
599 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
600 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
601 directly; delegate to indirect definition by including <stdio.h>.
602 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
603 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
604 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
605 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
606 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
607 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
608 indirectly, by selective inclusion from <stdio.h>; hence include it.
610 * include/stdio.h: Assert copyright; tidy layout.
611 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
612 (_STDIO_H): ...this, but defined conditionally, subject to...
613 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
614 entities which are required by <wchar.h>; do not define...
615 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
616 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
617 are normally specified within <stdio.h>, INCLUDING those specifically
618 itemised above, as selectively required by <wchar.h>.
620 * pseudo-reloc.c: Some minor layout adjustments.
621 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
622 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
623 include <stddef.h> to guarantee it.
625 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
627 Enable selective definition of POSIX system types.
629 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
630 any specific __need_TYPE selector having been set prior to inclusion;
631 DO define it when no such selector is present, and undefine all such
632 selectors as may have been set, after evaluation of their effects.
633 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
634 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
635 accommodates reorganization of the file, to achieve a tidier layout.
636 (__have_typedef_off_t): New repeat definition guard; define it for
637 compilers which may choke on any repeated typedef for either of...
638 (off_t, _off_t): ...these; make them selectively defineable for...
639 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
640 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
641 in either case, redefine them in terms of...
642 (__off32_t): ...this new internal type, for consistency with...
643 (__off64_t): ...this previously defined non-standard type; also make
644 it selectively defineable, either by...
645 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
646 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
647 (__have_typedef___off64_t): New repeat definition guard; define it.
648 (ssize_t, _ssize_t): Also make them selectively defineable, on...
649 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
650 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
651 (__have_typedef_ssize_t): New repeat definition guard; define it.
653 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
655 Avoid user namespace pollution by non-standard type 'off64_t'.
657 * include/sys/types.h (off64_t): Rename it as...
658 (__off64_t): ...this implementation-private alternative name, so
659 eliminating the potential for user namespace pollution.
661 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
662 return type, and type of offset argument, in both prototype and inline
663 implementation; note that this addresses the issue of pollution in the
664 user namespace, while avoiding the issue of MinGW-Bug [#2024].
666 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
667 instead of 'off64_t', as offset argument type in function prototypes.
668 (ftello64): Likewise, for return type of inline function.
670 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
671 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
672 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
674 * mingwex/stdio/fseeko64.c: Assert copyright.
675 (fseeko64): Use '__off64_t' per modified function prototype.
677 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
679 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
681 * mingwex/ofmtctl.c: New file; it implements...
682 (_mingw_output_format_control): ...this new function; it provides
683 additional MinGW specific printf() format processing options.
685 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
687 * include/stdio.h (_mingw_output_format_control): Declare it.
688 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
689 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
690 manifest constant expressions; define them.
692 * mingwex/stdio/pformat.c: Revise licensing terms.
693 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
694 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
695 modifier; this matches the behaviour specified by ISO-C99, else...
696 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
697 previous MSVC compatible behaviour, treating it as an `L' modifier.
698 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
700 * mingwex/ofmt.c (ARGLIST): Subsume references to...
701 (ARGTYPE): ...this now obsolete macro; delete it throughout.
702 (update_output_format_flag): New inline function; it restricts flag
703 operations to affect only Microsoft's exponent digit bits.
704 [FUNCTION == _set_output_format]: Use it.
705 [FUNCTION == _get_output_format]: Likewise.
707 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
709 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
711 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
712 defined, when implied by any STDC or POSIX version selection, viz. ...
713 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
715 * include/stdlib.h: Assert copyright; tidy layout.
716 (_STDLIB_H_): Multiple inclusion guard macro renamed...
717 (_STDLIB_H): ...to this, preferring no trailing underscore.
718 [!defined __NO_ISOCEXT]: Delete double negative references; use...
719 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
720 (lldiv_t): ...defining this C99 specific aggregate data type, and...
721 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
722 (wcstold, _Exit): ...declaring these C99 function prototypes.
723 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
724 future removal; not in MSVCRT.DLL, these conform to no known standard.
725 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
726 (__strtod): ...this libmingwex.a provided function; it handles string
727 representations of hexadecimal-floats, infinities and NaNs, whereas...
728 (strtod): ...this MSVCRT.DLL implementation does not.
729 (__MSVCRT_VERSION__): Prefer symbolic comparison...
730 [>= __MSVCR80_DLL]: ...for this requirement.
732 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
734 Rationalize definition of struct timespec.
736 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
737 tv_sec field, in place of anonymous union, thus avoiding missing brace
738 warnings when initializing; leave a copy of the previous definition...
739 (struct __mingw32_expanded_timespec): ...named thus.
741 * include/unistd.h (nanosleep): Adjust inline implementation, to match
742 altered specification of tv_sec field in struct timespec.
744 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
745 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
747 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
748 convenience function; defined as inline, with __LIBIMPL__ equivalent,
749 it facilitates interpretation of an instance of struct timespec as if
750 it were defined as struct __mingw32_expanded_timespec.
752 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
754 Make strings.h mostly POSIX.1-2008 compliant.
756 * include/strings.h: Rewritten. Do not include...
757 (string.h): ...this; mandated by POSIX.1, it now defines...
758 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
759 prototypes, possible in-line implementations, and JMPSTUB references
760 to corresponding external implementations, which will now become
761 automatically created within libmingwex.a
763 * include/parts/strings.h: New file; it declares prototypes for...
764 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
765 string.h, but we also require them in strings.h
767 * include/parts/wchar.h: New file; it declares prototypes for all wide
768 character functions which MSVC specifies in both wchar.h and string.h
770 * include/string.h: Miscellaneous layout adjustments.
771 (strcasecmp, strncasecmp): Delete; they belong in strings.h
772 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
773 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
774 include them from parts/wchar.h instead.
776 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
777 prototypes; include them from parts/wchar.h instead, so making this
778 guard macro redundant; delete it.
780 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
781 (wcscmpi.$OBJEXT): Implementations are now automatically generated
782 from header file, for inclusion in libmingwex.a; remove free-standing
783 implementations from the entire family of liboldname libraries, and...
784 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
785 files; they are no longer required.
787 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
789 Incorporate build system updates from w32api package.
791 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
792 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
793 (install-strip, uninstall): New make command goals; implement them.
794 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
795 (devdist, dlldist): ...these have no need to strip explicitly.
796 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
797 (install-mingwrt-headers): ...here.
799 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
801 Adapt platform feature checks to NTDDI_VERSION conventions.
803 * include/_mingw.h: Assert copyright; include w32api.h
804 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
805 to w32api/include/w32api.h, whence they remain in effect.
806 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
808 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
810 Correct mismatched #if/#endif from preceding commit.
812 * include/_mingw.h (#pragma GCC system_header)
813 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
814 correcting for inadvertent removal of matching #endif introduced by
815 preceding 2015-06-19 commit.
817 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
819 Define symbolic names for alternative Microsoft runtime DLLs.
821 * include/msvcrtver.h: New file; it assigns a value for...
822 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
823 (__MSVCR60_DLL): ...this new manifest constant, with each of...
824 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
825 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
826 ...these also defined, as user assignable alternatives.
828 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
829 to establish its default value.
831 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
833 Track dependencies on modified system header files.
835 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
837 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
839 Correct an anomaly in stage 1 only build procedure.
841 * Makefile.in (all-gcc): New goal; it is an alias for...
842 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
843 (all-mingwrt-stage-1-only): ...this; upate all references.
844 (active-goals): Adjusted accordingly; it now reguires...
845 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
846 (install): Adjusted, as directed by...
847 (DEFAULT_MAKECMDGOALS): ...this.
849 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
851 Prefer our hypot() implementation in complex maths operations.
853 * mingwex/complex/cabs_generic.c: New file; it replaces...
854 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
855 * mingwex/complex/cabsl.c: ...these.
857 * mingwex/complex/catan_generic.c: New file; it replaces...
858 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
859 * mingwex/complex/catanl.c: ...these.
861 * mingwex/complex/clog_generic.c: New file; it replaces...
862 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
863 * mingwex/complex/clogl.c: ...these.
865 * mingwex/complex/cpow_generic.c: New file; it replaces...
866 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
867 * mingwex/complex/cpowl.c: ...these.
869 * mingwex/complex/csqrt_generic.c: Do not use...
870 (_hypot): ...this Microsoft form of function reference; use...
871 (hypot): ...this ANSI standard form instead.
873 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
875 Correct C++ compilation anomaly with hypotf() in cmath header.
877 * include/math.h: Add copyright notice; generally tidy layout.
878 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
879 (hypotf): Delete inline implementation; it did not properly handle
880 range errors, and was uncompilable with optimization when any g++
881 option implying __STRICT_ANSI__ conformity was specified.
882 (_MATH_H_): Rename this multiple inclusion guard...
883 (_MATH_H): ...to this.
885 * mingwex/math/hypot_generic.c: New file; it implements...
886 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
887 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
889 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
891 Prepare and tag all files for release of mingwrt-3.21.1.
893 * configure.ac (AC_INIT): Adjust package version argument.
894 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
895 (__MINGW32_VERSION): ...increment this to match.
897 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
899 Refactor to avoid possible time_t conflicts across headers.
901 * include/parts/time.h (struct timespec): Make it more descriptive of,
902 and better able to accommodate, potential ambiguity relating to...
903 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
904 whence they may be identically imported into each of...
905 * include/sys/types.h include/time.h include/wchar.h: these; delete
906 duplicate typedefs, and import accordingly.
908 * include/sys/types.h: Add licence; general comment additions.
909 (_TYPES_H_): Rename multiple inclusion guard macro...
910 (_SYS_TYPES_H): ...to this.
912 * include/time.h: Add licence; general comment/layout adjustments.
913 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
914 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
915 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
916 (_TIME_H_): Rename multiple inclusion guard macro...
917 (_TIME_H): ...to this.
919 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
920 (struct timespec): ...of this.
922 * include/wchar.h: Add licence; general comment/layout adjustments.
923 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
924 [GCC] (system_header): Add pragma, identifying header as such.
925 (_WCHAR_H_): Rename multiple inclusion guard macro...
926 (_WCHAR_H): ...to this.
928 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
930 Remove obsolete varargs.h header file.
932 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
933 a GCC header which is no longer supported, and was always intended for
934 ultimate removal; now is the long overdue time to do so.
936 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
938 Correct improper unistd.h function attribute declarations.
940 * include/unistd.h (_cdecl): Correct usage throughout; should be...
943 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
945 Fix GLOB_DOOFFS initialization bug.
947 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
948 (gl_data->gl_offs): ...this is properly initialized to zero.
950 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
952 Tag all files for release of mingwrt-3.21.
954 * include/_mingw.h: Adjust version accordingly.
956 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
958 Improve usage notes in stdlib.h, for mkstemp() function.
960 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
961 an original comment, explaining the need to use _O_TEMPORARY, from...
962 * mingwex/mkstemp.c: ...here; delete trailing white space.
964 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
966 Eliminate some potential definition inconsistencies.
968 * include/stdio.h: Cosmetic formatting change, relating to...
969 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
970 unconditionally; this allows the compiler to check for consistency
971 with their primary definitions in stdio.h
973 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
975 Suppress expected warning diagnostics in LIBIMPL builds.
977 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
978 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
979 GCC flag to supress warnings relating to deprecated declarations.
981 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
983 Provide more POSIX conforming sleep() functions.
985 * include/sys/types.h (useconds_t): Make it explicitly long; int may
986 be okay, but doesn't guarantee enough bits; mark as deprecated, since
987 POSIX has declared it "obsolete", and no longer specifies it.
989 * mingwex/usleep.c: Delete file; it provided an implementation of...
990 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
991 its error handling was hopelessly broken; replace it with...
992 * mingwex/nsleep.c: ...this new file; it implements...
993 (__mingw_sleep): ...this generic helper function; it supports sleep
994 capability with interval specification to nanosecond precision.
996 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
997 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
998 (sleep, nanosleep): ...these current POSIX functions, and also...
999 (usleep): ...this obsolete one; mark it as deprecated.
1001 * include/parts: New directory; it is intended to host partial header
1002 implementations, for content which must be shared among arbitrary sets
1003 of multiple standard header files.
1005 * include/parts/time.h: New file; nominally declaring time.h content.
1006 (struct timespec): Declare it; it is currently used within unistd.h,
1007 to facilitate the __CRT_INLINE implementation of nanosleep().
1009 * Makefile.in (libmingwex.a): Remove reference to...
1010 (usleep.$OBJEXT): ...this; replace it with a reference to...
1011 (nsleep.$OBJEXT): ...this alternative.
1012 (mingwrt-includedirs): Add prerequisite to create...
1013 ($includedir/parts): ...this new directory; it is populated by...
1014 (install-mingwrt-headers): ...this rule; add requisite command.
1016 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1018 Delete an unnecessary Unicode wrapper file.
1020 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
1021 UTF-16LE API from dirent.c, without any need for this wrapper.
1023 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1025 Some further inline function rationalization.
1027 * include/io.h (_CRTALIAS): Replace all references...
1028 (__CRT_ALIAS): ...using this syntactically preferred form.
1029 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
1030 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1032 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
1033 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1035 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
1036 * mingwex/ftruncate.c: Likewise.
1038 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1039 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
1041 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1043 Some POSIX feature test adjustments.
1045 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
1046 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
1047 (mkdtemp): This didn't become available until SUSv4, so requires...
1048 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
1050 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1052 Another CRT_INLINE function implementation rationalization.
1054 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
1055 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
1056 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1058 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
1059 (libmingwex.a): Delete obsolete dependency on...
1060 (imaxabs.$OBJEXT): ...this.
1062 * mingwex/imaxabs.c: File is now redundant; delete it.
1064 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1066 More rationalization of CRT_INLINE function implementations.
1068 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
1069 (ftello64): Add __LIBIMPL__ specification for extern implementation.
1070 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1072 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
1073 * mingwex/stdio/ftell064.c: Likewise.
1075 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1076 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
1078 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1080 Don't implicitly define _POSIX_C_SOURCE too early.
1082 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
1083 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
1084 that it is not accidentally activated by implied _POSIX_C_SOURCE.
1086 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1088 Correct complex arcsin computation per issue [#2245].
1090 * mingwex/complex/casin_generic.c: New file; it replaces...
1091 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
1092 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
1094 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1096 Correct complex square root computation per issue [#2246].
1098 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
1099 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
1100 (hypot): ...this libmoldname.a indirection.
1102 * mingwex/complex/csqrt_generic.c: New file; it replaces...
1103 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
1104 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
1106 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1108 Adjust header guards to resolve issue [#2244].
1110 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
1111 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
1112 ...when any of these prevail, or as appropriate to correspond with...
1113 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
1115 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
1116 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
1117 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
1118 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
1120 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1122 Add implementation of mkstemp() and mkdtemp() functions.
1124 * mingwex/cryptnam.c: New file; it implements...
1125 (__mingw_crypto_tmpname): ...this helper function; it generates a
1126 cryptographically secure sequence of characters, used as the random
1127 component in temporary file and directory names.
1129 * mingwex/mkstemp.c: New file; it implements...
1130 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
1132 * mingwex/mkdtemp.c: New file; it implements...
1133 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
1135 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
1136 function implementation, with LIBIMPL extern semantics, in terms of...
1137 (__mingw_mkstemp): ...this; also declare prototype, and define...
1138 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
1139 (_MKSTEMP_SETMODE): New macro; define it, also providing...
1140 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
1141 (mkdtemp): Declare prototype; provide inline implementation, with
1142 JMPSTUB extern semantics, in terms of...
1143 (__mingw_mkdtemp): ...this; declare prototype.
1145 * Makefile.in (libmingwex.a): Add dependency rule, to include...
1146 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
1148 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1150 More JMPSTUB rationalization of inline functions.
1152 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
1153 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
1154 appropriate MSVCRT.DLL equivalent entry point.
1156 * mingwex/_Exit.c: File is now redundant; delete it.
1157 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
1158 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
1160 * Makefile.in (jmpstub_awk_script): Add support for...
1161 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
1162 (libmingwex.a): Remove dependencies on deleted files, namely...
1163 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
1164 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
1166 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1168 Correct omission of complex conjugate functions from libmingwex.a
1170 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
1171 (creal, crealf, creall): Likewise, for consistency of implementation.
1172 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
1174 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
1175 declarations; they should be interpreted analogously to __CRT_ALIAS.
1176 (libmingwex.a): Remove object file references for functions which are
1177 now declared as LIBIMPL, and sort the remainder in ASCII collating
1178 order; deleted function references comprise the set consisting of...
1179 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
1180 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
1181 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
1183 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
1184 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
1185 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
1186 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
1187 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
1189 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1191 Back-port improved asinh() implementation from 4.0-dev branch.
1193 * mingwex/math/asinh_generic.c: New file; it replaces...
1194 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
1195 ...all of these; delete them.
1197 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1199 Enable remake of lost LIBIMPL object files.
1201 * Makefile.in (libimpl_remake): New macro; define it, and...
1202 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
1204 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1206 Implement more robust _get_output_format fallback handling.
1208 * mingwex/ofmt.c: New file; it implements...
1209 (__mingw_output_format_flag): ...backing store, used by...
1210 (__mingw_get_output_format, __mingw_set_output_format): ...these
1211 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
1212 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
1213 version specific Microsoft APIs, which are also supported by some
1214 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
1215 (__mingw_get_output_format_fallback): Implement; it is aliased to...
1216 (__mingw_set_output_format_fallback): ...this; together they provide
1217 the emulation support for the preceding pair of functions, when they
1218 are not available within the run-time platform MSVCRT.DLL
1219 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1220 Implement them; they wrap, and if necessary emulate...
1221 (_get_printf_count_output, _set_printf_count_output): ...these.
1222 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
1223 (__mingw_set_printf_count_output_fallback): ...this; together they are
1224 required to support emulation of the preceding pair of functions, when
1225 they are not available within the run-time platform MSVCRT.DLL
1227 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
1228 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
1229 (__mingw_get_output_format, __mingw_set_output_format)
1230 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1231 Unconditionally declare their prototypes, for subsequent inline use.
1232 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
1233 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
1234 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
1235 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
1236 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
1237 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
1238 represent a compilable token.
1240 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
1241 _get_output_format; consult __mingw_output_format_flag directly.
1243 * ofmt_stub.s: No longer required; delete it.
1245 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
1246 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
1247 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
1248 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
1249 all are compiled from ofmt.c
1251 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1253 Do some more essential build tree clean up.
1255 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
1256 in the way of a successful rebuild from clean.
1258 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1260 Implement wrappers for emulation of POSIX dlfcn API.
1262 * include/dlfcn.h: New file; it declares the API.
1263 * mingwex/dlfcn.c: New file; implement it, with access via...
1264 (__mingw_dlfcn): ...this publicly addressable vector table.
1266 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1267 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1268 (__LIBIMPL__): ...this automatic interface generator; implement it.
1269 (libstub_refnames): New macro; it is adapted from and replaces...
1270 (jmpstub_refs): ...this; when it is then invoked twice to build...
1271 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1272 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1273 (libimpl_awk_script): New inline script; it handles automated builds
1274 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1275 (libimpl_sed_script): New inline script; it prepares intermediate C
1276 source code for LIBIMPL interfaces, as required to satisfy these...
1277 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1278 (LIBIMPL_CFLAGS): New macro; define it.
1280 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1282 Move libgen functions to __mingw_ pseudo-namespace.
1284 * mingwex/dirname.c (dirname): Rename function, as implemented...
1285 (__mingwex_dirname): ...to this.
1287 * mingwex/basename.c (basename): Rename function, as implemented...
1288 (__mingwex_basename): ...to this.
1290 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1291 prototypes, matching and augmenting original declarations for...
1292 (dirname, basename): ...these; reimplement as inline aliases, with
1293 __JMPSTUB__ references to the renamed implementation entry points.
1295 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1297 Implement new command line argument globbing strategy.
1299 * include/_mingw.h: Backport feature defines from master...
1300 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1301 constants; define them. They select the preferred globbing algorithm.
1302 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1303 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1304 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1305 they enable optional additional features supported by this algorithm.
1306 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1308 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1310 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1311 * setargv.c: ...new file; it implements the initialization mechanism
1312 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1313 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1314 it invokes the algorithm via an API similar to that described by MSDN,
1315 while continuing to support our original _CRT_glob interpretation.
1316 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1317 algorithm, via the MSDN-alike API, by calling back to...
1319 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1320 relocated to here, as a publicly addressable function; formerly...
1321 (__mingw_CRTStartup): ...called directly from here, we now redirect
1322 the call through _setargv(), whence it may be called indirectly.
1324 * init.c: Redundant file; delete it. It originally provided...
1325 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1326 original static attribute removed, to allow global addressing.
1328 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1330 Backport glob implementation from master to legacy.
1332 * include/glob.h: New file; copy it from master branch.
1333 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1334 (glob, globfree): ...each of these, respectively.
1336 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1337 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1338 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1339 (accept_glob_nocheck_match): New static function; it adds support for
1340 avoidance of globbing on patterns with no globbing token, so avoiding
1341 the case transliteration effect reported as MinGW-Bug #2106.
1342 (glob_match): Use it.
1344 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1346 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1348 Implement conventionally named dirent function trampolines.
1350 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1351 which redirects a conventionally named function call to its __mingw_
1352 pseudo-namespace implementation.
1354 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1355 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1356 appropriate protocol for compiling *.sx files, (supported natively by
1357 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1359 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1360 yet provide it, so we define it ourselves; deploy it for *.sx files.
1361 (Makefile.stub): New sinclude file; create it dynamically, using...
1362 (jmpstub_awk_script): ...this new inline script, which is based on...
1363 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1364 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1365 (mostlyclean-local): Remove Makefile.stub; do likewise...
1366 (Makefile): ...when remaking this, to ensure that both will be
1369 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1371 Make dirent implementation namespace and time_t clean.
1373 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1374 macros; define them. They facilitate identification of symbols which
1375 must be compiled with `extern "C"' binding, when compiling C++ code.
1376 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1377 (_CRTALIAS): ...this, which is to be considered as deprecated.
1378 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1379 __CRT_ALIAS build hints, while remaining transparent to GCC.
1380 (UNICODE, _UNICODE) [user defined]: Define consistently.
1382 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1383 4.0-dev branch, with additional ABI changes to improve stability).
1384 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1385 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1386 Add `__mingw_' prefix to all publicly exposed symbol names.
1387 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1388 implemented functions; they replace Microsoft's ambiguously defined
1389 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1390 resulting from the ambiguous size of Microsoft's time_t.
1392 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1393 removing unnecessary time_t and file size fields; (our replacements
1394 for _findfirst, and _findnext do not require them to be present).
1395 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1396 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1397 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1398 Adjust prototypes, making them inline aliases for public symbols which
1399 are now qualified by the `__mingw_' prefix; add build hints to support
1400 compilation of addressable stubs, with the original symbol names.
1401 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1402 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1403 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1404 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1405 New macros; define them. (These show availability of optional fields
1406 within the dirent struct, which client code may wish to access).
1408 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1410 Correct improper naming of assembly language source files.
1412 * mingwex/math/*.S: Rename all files with this extension...
1413 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1414 not extended `assembler-with-cpp' as implied by the former extension);
1415 adjust all internal `.file <name>' references accordingly.
1417 * Makefile.in (vpath %.S): Adjust reference to locate files....
1418 (vpath %.s): ...now renamed thus.
1420 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1422 Streamline the build system infrastructure.
1424 * configure.ac: New file; it replaces...
1425 * configure.in: ...this; (name is obsolete); delete it.
1427 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1428 make invocations, when processing subdirectories, and add automatic
1429 dependency tracking for all generated files.
1431 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1433 * mingwex/Makefile.in: No longer required; delete it.
1434 * profile/Makefile.in: Likewise.
1436 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1437 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1439 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1440 longer relevant, and I have no desire to maintain it.
1442 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1444 * include/_mingw.h: Increment version to 3.20.
1446 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1448 * tlsmthread.c: Update to reflect changes in tlssup.c.
1449 * tlssup.c: code clean-up.
1451 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1453 * include/_mingw.h: Increment version to 3.19.
1455 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1457 * include/float.h: Modify guard to accomodate CLang.
1459 Thanks to Ruben Van Boxem for the report.
1461 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1463 * tlssup.c: Remove mingwm10.dll fallback.
1465 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1467 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1469 Thanks to bvassche for the report.
1471 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1473 Correct checking for short option matches in getopt_long_only().
1475 * mingwex/getopt.c (getopt_verify): New static inline function.
1476 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1477 possible short option match after failing to match, or ambiguously
1478 matching as a long option.
1480 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1482 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1484 Thanks to cgf for the report.
1486 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1488 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1489 compiles with __STRICT_ANSI__.
1491 Thanks to Felipe Contreras for the report.
1493 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1495 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1498 Thanks to Tobias Burnus for the report.
1500 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1502 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1503 by wrapping the functions in brackets.
1505 Thanks to Kai Tietz for the report.
1507 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1509 * Makefile.in: Add support for msvcr100.dll.
1510 * msvcrt.def.in: Ditto.
1512 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1514 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1515 not always available, go the long way and use the explicit named union
1516 members, which are also declared in winnt.h.
1518 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1520 * mingwex/isblank.c: Fix typo in declaration.
1522 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1524 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1525 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1526 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1527 is included before <ctype.h>.
1529 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1531 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1533 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1535 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1537 Correct hexadecimal formatting of double and long double values.
1539 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1540 (__pformat) [A format]: Cast double values to long double, and use...
1541 (__pformat_xldouble): ...this instead, with corrected adjustment of
1542 exponent and alignment of mantissa, when formatting subnormals.
1544 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1546 * include/dirent.h (dd_handle): Define as intptr_t.
1548 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1550 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1553 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1555 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1556 semantically identical MAX_PATH; correct value is 260.
1558 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1560 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1561 system include search path; (issue reported by Mark Brand).
1563 * include/float.h: Add multiple inclusion guard around...
1564 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1565 only when this define does not indicate that it has already been seen;
1566 update comments to document rationale; move it within the scope of...
1567 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1568 GCC's float.h, after an appropriate complementary modification, need
1569 not perform a further include path search when this implementation
1570 specific extension has already been processed.
1572 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1574 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1575 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1576 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1577 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1578 _findnexti64): Correct definition.
1580 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1582 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1584 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1586 * include/_mingw.h: Increment version to 3.18.
1588 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1590 * include/stdio.h: (_vscprintf, _vscwprintf)
1591 * include/tchar.h: (_vsctprintf)
1593 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1595 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1596 (initial implementation)
1598 * new type: __time32_t
1600 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1601 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1602 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1604 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1605 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1606 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1607 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1608 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1609 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1610 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1611 _wstat32i64, _wstat64i32,_wutime32
1613 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1614 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1615 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1616 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1617 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1619 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1621 Implement TLS Callback.
1623 * tlsmcrt.c: New file.
1624 * tlsmthread.c: Ditto.
1627 * Makefile.in: Include new files.
1628 * crt1.c: Implement TLS Callback.
1630 * mthr_stub.c: Remove.
1632 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1634 * include/_mingw.h: Increment version to 3.17.
1636 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1638 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1639 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1641 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1643 * include/io.h (_open_osfhandle): Correct definition.
1645 Thanks to Alexander Shaduri for the information.
1647 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1649 Final sync of pseudo-reloc.c with mingw64 and cygwin
1650 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1651 regarding error messages.
1653 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1655 Honor DESTDIR for winsup/mingw and winsup/w32api.
1656 Detect and report error if installation paths are win32
1657 format, but DESTDIR is non-empty.
1659 * Makefile.in (DESTDIR): Honor per convention.
1660 (need-DESTDIR-compatibility): New macro; define it and a
1662 (fail-DESTDIR-compatibility): New dependency goal.
1663 (install-dirs): Require need-DESTDIR-compatibility.
1664 * mingwex/Makefile.in (DESTDIR): Honor per convention.
1665 (need-DESTDIR-compatibility): New macro; define it and a
1667 (fail-DESTDIR-compatibility): New dependency goal.
1668 (install): Require need-DESTDIR-compatibility.
1669 * profile/Makefile.in: Ditto.
1671 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1673 Sync pseudo-reloc.c with mingw64
1674 * psuedo-reloc.c: Remove unnecessary includes.
1675 Forward declare _pei386_runtime_relocator.
1676 Decorate _image_base__ symbol with macro for
1677 mingw64 compatibility. Whitespace changes.
1678 (__print_reloc_error): Renamed to...
1679 (__report_error): This. "Returns" void, and
1680 always aborts. Now used on all platforms.
1681 (__write_memory): Remove special case error handling
1682 for different platforms - always call __report_error.
1683 (do_pseudo_reloc): Remove special case error handling
1684 for different platforms - always call __report_error.
1685 (_pei386_runtime_relocator): Decorate _image_base__
1686 symbol with mingw64 compatibility macro.
1688 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1690 Sync pseudo-reloc.c with cygwin/lib/
1691 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1692 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1693 for fatal error handling that is consistent with cygwin process
1694 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1695 is unique to each address space, across fork().
1696 [CYGWIN] (__print_reloc_error): New function for reporting
1697 errors in a manner supported by cygwin at this early stage of
1698 the process life-cycle.
1699 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1700 performed only once for each address space, but are repeated
1701 after fork() in the new address space.
1702 [MINGW] (__write_memory): Ensure that b is always initialized
1703 by call to VirtualQuery, even if -DNDEBUG.
1705 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1707 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1708 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1710 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1711 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1712 specified format qualifiers, except in special case...
1713 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1714 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1715 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1718 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1720 Avoid multiple link time definitions of _printf() for C++;
1721 (problem reported by Alexander Shaduri, via MinGW-users ML).
1723 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
1724 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
1726 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1728 * include/_mingw.h: Increment version to 3.16.
1730 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
1732 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
1733 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
1734 __fp_unordered_compare): Add prototypes.
1735 * include/stdio.h (vsnwprintf): Add prototype.
1736 * include/wchar.h (vsnwprintf): Add prototype.
1737 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
1738 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
1740 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1742 Correct disposition of wchar_t output in printf().
1744 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
1745 (argval): ...this, in inner scope, with singular type `wchar_t'; use
1746 it to pass one wchar to __pformat_wputchars(), for output.
1748 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1750 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
1752 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1754 Convert to monolithic configuration procedure.
1756 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
1757 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
1758 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
1759 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
1760 (CRT0S): Relocate from `profile'; define it as appropriate.
1761 (LIBM_A): Define and AC_SUBST it unconditionally.
1762 (AC_CONFIG_SUBDIRS): Remove; none to configure.
1763 (AC_OUTPUT_FILES): Add `Makefile' for each of...
1764 (mingwex, profile): ...these subdirectories.
1766 * configure: Regenerated.
1768 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
1769 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
1770 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
1771 (SUBDIRS): Define explicitly, to run recursive `make' in...
1772 (mingwex, profile): ...these; simplify build commands...
1773 (rootme, rootsrc): ...without these shell variables.
1774 (all, subdirs): Delete redundant build commands.
1775 (FIXME): Flag various issues for follow up.
1777 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
1778 (top_srcdir): ...this new macro; let AC_SUBST define it.
1779 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1780 (Makefile): Make it depend on...
1781 (top_builddir/config.status): ...this, itself depending on...
1782 (top_srcdir/configure): ...this.
1783 (FIXME): Flag various issues for follow up.
1785 * mingwex/aclocal.m4: File no longer required; delete it.
1786 * mingwex/configure mingwex/configure.in: Likewise.
1788 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
1789 (top_srcdir): ...this new macro; let AC_SUBST define it.
1790 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1791 (Makefile): Make it depend on...
1792 (top_builddir/config.status): ...this, itself depending on...
1793 (top_srcdir/configure): ...this.
1794 (FIXME): Flag various issues for follow up.
1796 * profile/aclocal.m4: File no longer required; delete it.
1797 * profile/configure profile/configure.in: Likewise.
1799 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1801 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
1802 to complaints that it causes issues.
1804 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
1806 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
1808 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1810 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
1811 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
1812 to all inline functions.
1814 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1816 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
1817 * CRT_fp10.c: Ditto.
1819 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1821 * cpu_features.c: replace gcc-specific construct with portable alternative
1822 and match the code a few lines above.
1823 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
1825 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1827 * include/_mingw.h: Changes required for PCC compiler.
1829 2009-07-18 Jeff Lu <jll544@yahoo.com>
1831 * mingwex/usleep.c: round up to next ms
1833 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1835 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
1836 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
1837 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
1838 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
1840 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1842 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
1844 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
1846 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
1847 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
1848 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
1849 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
1850 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
1851 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
1852 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
1853 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
1854 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
1855 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
1856 sources as of Apr. 20, 2009. Update further to match the sources in
1857 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
1858 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
1859 double/ulong union from U to dbl_union for better grepping and white-
1862 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1864 * include/stdlib.h (_wtof): Define.
1866 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
1868 * include/stdint.h (int_fast8_t): Specify as signed char.
1869 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
1870 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1872 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1874 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1876 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1878 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1879 (Requested by Robert Riebisch)
1881 * mingwex/getopt.c (getopt_parse): Track external increments of...
1882 (optind): ...this global variable.
1884 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1886 * include/_mingw.h: Increment version to 3.15.2.
1888 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1890 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1891 Also add tentative support for BSD specific `optreset' feature.
1893 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1894 (__mingw_optreset): ...this new global variable.
1896 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1897 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1900 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1902 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1903 Correct mishandling of invalid characters in printf() format specs.
1905 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1906 (backtrack): ...this new automatic variable, at start of each format
1907 conversion specification substring; use it to backtrack, and print the
1908 substring literally, if any invalid character is encountered.
1910 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1912 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1913 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1914 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1915 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1916 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1917 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1918 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1919 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1920 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1921 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1922 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1923 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1924 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1925 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1927 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1929 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1931 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1933 Correct some binary distribution packaging defects.
1935 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1936 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1937 intermediate goals; they make packages of files, as specified by...
1938 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1939 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1941 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1943 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1944 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1946 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1947 of radix point conditional on precision != 0 or `#' flag specified.
1949 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1951 Fix MinGW-Bug [2160227]
1952 Eliminate conflicting declarations and implementations of scalb().
1954 * moldname.def.in (scalb): Comment out of EXPORTS list.
1955 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1956 with GCC's built-in declaration.
1958 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1960 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1962 * mingwex/Makefile.in: Ditto.
1963 * profile/Makefile.in: Ditto.
1964 * configure.in: Record mingw front-end for building under Cygwin.
1965 * mingwex/configure.in: Ditto.
1966 * profile/configure.in: Ditto.
1967 * configure: Regenerate.
1968 * mingwex/configure: Ditto.
1969 * profile/configure: Ditto.
1971 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1973 Use de-facto standard Makefile goals to invoke test suite.
1975 * Makefile.in: Some minor formatting adjustments.
1976 (test_headers): Unconventionally named goal renamed to...
1977 (check-headers): ...this; make it a prerequisite of...
1978 (check): ...this new conventionally named goal.
1980 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1982 Make strtod() inline definition C89 compliant.
1983 (Issue reported by Ilya Shestopalov and Ian Puleston)
1984 (Correction identified by Danny Smith)
1986 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1987 reformat inline function definition.
1989 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1991 * include/_mingw.h: Increment version to 3.15.1 and introduce
1992 __MINGW32_PATCHLEVEL variable.
1994 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1996 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1997 (Reported by Christian Franke)
1999 * mingwex/getopt.c (optind): Make global variable value conform to
2000 behaviour specified by POSIX; do not use it for internal state in...
2001 (getopt_parse): ...this static function; use...
2002 (optbase): ...this new static local variable instead.
2003 (getopt_resolved): Update `optind' as required.
2005 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2007 Improve package identification in configure script.
2009 * configure.ac (AC_INIT): Redefine parameters...
2010 (PACKAGE_NAME): Set to `MinGW Runtime'.
2011 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
2012 (PACKAGE_TARNAME): Set to `mingwrt'.
2013 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
2014 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
2015 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
2017 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
2018 (PACKAGE_TARNAME): ...this.
2020 * configure: Regenerated.
2022 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2024 Fix MinGW-Bug [2125708].
2025 (Reported by Alexandr Zamaraev).
2027 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
2028 not wanted here; remove it; replace it by...
2029 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
2030 (_invalid_parameter_handler): ...this function typedef.
2032 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
2034 * Makefile.in: Don't include host_os as part of snapshot filename.
2036 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2038 Fix MinGW-Bug [2119504].
2039 (Reported by Peiyuan Song).
2041 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
2042 (*retindex): ...this already correctly assigned return variable...
2043 (opt[index].val): ...with this; this should have been assigned to...
2044 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
2046 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2048 Fix MinGW-Bug [2117379].
2049 (Reported by Peiyuan Song).
2051 * include/stdio.h (__argv): Replace all references in function
2052 prototype argument lists and inline function local variables, with ...
2053 (__local_argv): ...this, to avoid potential conflict with ...
2054 * include/stdlib (__argv): ...this #defined macro.
2056 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2058 * include/_mingw.h: Increment version to 3.15.
2060 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2062 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
2063 naming standard for Cygwin.
2065 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2067 Reimplement getopt.c to add getopt_long_only() function.
2069 (N.B. this reimplementation removes support for BSD/Mac-OS-X
2070 `optreset' nonsense; user code should set `optind = 0' instead,
2071 to reinitialise option scanning).
2073 * mingwex/getopt.c: Delete all content; reimplement it.
2074 * include/getopt.h: Likewise.
2076 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
2077 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
2079 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2081 Implement conditional replacement for printf() family functions.
2083 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
2084 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
2085 flag for use in user specified __MINGW_FEATURES__ attribute.
2086 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
2087 currently unused: reserved as components of...
2088 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
2089 a __MINGW_FEATURES__ enhancement to setlocale().
2091 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
2092 (__mingw_fprintf, __mingw_vfprintf): Likewise.
2093 (__mingw_sprintf, __mingw_vsprintf): Likewise.
2094 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
2095 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
2096 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
2097 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
2098 usage; link to DLL import stub, importing from MSVCRT.
2099 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2100 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2101 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
2102 locally defined static stub implementation.
2103 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2104 __mingw_fprintf and __mingw_sprintf respectively.
2105 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
2106 static inline implementation for C++ and GNU C, or locally defined
2107 static stub otherwise.
2108 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2109 __mingw_vfprintf and __mingw_vsprintf respectively.
2111 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2113 Avoid access violations, passing NULL to printf( "...%s..." );
2114 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
2116 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
2117 for argument value, if caller passes a NULL pointer.
2118 (__pformat_wcputs): Likewise, substitute L"(null)".
2120 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2122 Add missing dependencies for building libmingwex.a.
2124 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
2125 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
2126 (pformat.h): ...this.
2128 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2130 Add replacements for remaining members of printf() family.
2132 * mingwex/stdio/printf.c: New file.
2133 * mingwex/stdio/fprintf.c: New file.
2134 * mingwex/stdio/sprintf.c: New file.
2135 * mingwex/stdio/vprintf.c: New file.
2136 * mingwex/stdio/vfprintf.c: New file.
2137 * mingwex/stdio/vsprintf.c: New file.
2139 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2140 (STDIO_OBJS): Add their corresponding object files.
2142 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2144 Replace __mingw_snprintf() with new generic family implementation;
2145 likewise, replace __mingw_vsnprintf().
2147 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
2148 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
2149 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2150 (GDTOA_DISTFILES): Remove mingw_snprintf.c
2151 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
2152 (GDTOA_OBJS): Remove mingw_snprintf.o
2153 (PFORMAT_CFLAGS): New macro; define it, as required by...
2154 (pformat.o): ...this new explicit build target.
2155 (snprintf.o, vsnprintf.o): Declare prerequisites.
2157 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
2159 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2161 Lay foundations for new printf() function family implementation.
2163 * ofmt_stub.s: New file; implement forward compatibility stub for...
2164 (_get_output_format): ...this MSVCR80.DLL and later function.
2166 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
2167 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
2168 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
2169 (lib%.a): Include ofmt_stub.o when import library does not already
2170 advertise availability of the _get_output_format() function;
2171 Add alias stubs for MINGW_REPL_FUNCS, such that...
2172 (__msvcrt_printf): ...is an alias for Microsoft's printf().
2173 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
2174 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
2175 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
2176 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
2177 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
2178 (clean): Add msvcr*.def.
2180 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
2181 * configure: Regenerated.
2183 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2185 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
2186 (_imp____mb_cur_max_dll): Likewise.
2188 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
2190 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
2191 * include/wchar.h (swprintf, vswprintf): Likewise.
2193 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2195 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
2196 (_get_output_format, _set_output_format): Add references.
2198 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
2199 (_get_output_format, _set_output_format): Declare prototypes.
2200 (_TWO_DIGIT_EXPONENT): Define.
2201 Some other minor formatting adjustments.
2203 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2205 [mingw-Bugs-1801641]
2206 * include/wchar.h (_wfdopen): Const-ify second arg.
2207 * include/stdio.h (_wfdopen): Likewise.
2208 Thanks to <tdragon at users dot sourceforge net>
2210 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2212 Avoid precision errors in round(), lround() and llround() functions.
2214 * mingwex/math/round_generic.c: New file; it replaces...
2215 * mingwex/math/round.c: ...this; delete it.
2216 * mingwex/math/roundf.c: ...and this; ditto.
2217 * mingwex/math/roundl.c: ...and this; ditto.
2219 * mingwex/math/lround_generic.c: New file; it replaces...
2220 * mingwex/math/lround.c: ...this; delete it.
2221 * mingwex/math/lroundf.c: ...and this; ditto.
2222 * mingwex/math/lroundl.c: ...and this; ditto.
2223 * mingwex/math/llround.c: ...and this; ditto.
2224 * mingwex/math/llroundf.c: ...and this; ditto.
2225 * mingwex/math/llroundl.c: ...and this; ditto.
2227 * mingwex/math/round_internal.h: New file; it provides generic common
2228 code, which is shared by `round_generic.c' and `lround_generic.c'; the
2229 implementation is based on techniques suggested by Danny Smith and
2232 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
2233 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
2234 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
2235 `round_generic.c' and `lround_generic.c'.
2236 (MATH_OBJS): Factor out files listed in...
2237 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
2238 macros; define them; specify dependencies and build rules; add to...
2239 (LIB_OBJS): ...this list.
2241 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
2243 [ mingw-Bugs-1961893 ]
2244 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
2245 mode to 2 for E format.
2247 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
2249 * include/stdlib.h: Fix strtod under C++.
2251 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
2253 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
2254 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
2256 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
2258 * include/sys/types.h (useconds_t): typedef.
2259 * include/unistd.h (usleep): Add prototype.
2260 * mingwex/usleep.c: New file.
2261 * mingwex/makefile.in: Add usleep source and object.
2263 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2265 Make strtod() conform to C99.
2267 * include/stdlib.h (strtod): Declare this mingwex function, and...
2268 (_strtod): rename this MSVCRT counterpart.
2270 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2272 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2274 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2276 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2278 * include/process.h: Include stdint.h for intptr_t definition.
2279 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2280 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2281 _spawnvpe): Return intptr_t.
2282 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2283 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2285 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2287 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2288 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2289 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2290 _wspawnvp, _wspawnvpe): Return intptr_t.
2292 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2294 * include/wchar.h (fwide): Return success code rather than failure in inline
2296 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2297 code rather than failure.
2299 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2301 * include/math.h (float_t, double_t): Define.
2303 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2305 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2306 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2307 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2309 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2311 * include/complex.h: Don't condition contents on C99 or not
2314 2008-02-01 Brian Dessent <brian@dessent.net>
2316 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2317 the different runtime versions.
2319 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2321 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2322 (mbsinit): Likewise.
2324 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2326 * include/_mingw.h: Increment version to 3.14.
2328 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2330 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
2331 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
2332 * mingwex/math/log10f.S: Correct issue with comments.
2333 * mingwex/math/log10l.S: Ditto.
2334 * mingwex/math/log1p.S: Ditto.
2335 * mingwex/math/log1pf.S: Ditto.
2336 * mingwex/math/log1pl.S: Ditto.
2337 * mingwex/math/log2.S: Ditto.
2338 * mingwex/math/log2f.S: Ditto.
2339 * mingwex/math/log2l.S: Ditto.
2340 * mingwex/math/logf.S: Ditto.
2341 * mingwex/math/logl.S: Ditto.
2343 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
2345 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
2347 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
2349 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
2350 from '_fsize_t' to '__int64' to be consistent with the other ...64
2351 structures and the value set there is 8 bytes not 4. Add guard for both
2352 as the are only used by functions available from 6.1 on.
2354 * include/malloc.h (_HEAP_MAXREQ): Define.
2355 (_aligned_offset_recalloc): Define.
2356 (_aligned_recalloc()): Define.
2358 * include/math.h: fixed a typo in a comment.
2359 (atanhf): Fixed declaration.
2361 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
2362 to '__int64' to be consistent with the other ...64 structures and the value
2363 set there is 8 bytes not 4. Added guard as this function is only used by
2364 functions available from 6.1 on.
2366 * include/sys/stat.h: some members of 'stat' were declared with types with
2367 a prefixed underscore, while the ones without the underscore should have
2368 been used. Added guard to '__stat64' as it is only used by functions
2369 available from 6.1 on. Added the wide character versions of the
2370 exec()/spawn() family for completion
2371 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
2374 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
2375 from 'long' to 'time_t'
2376 (__timeb64): moved declaration of structure directly before the declaration
2377 of the function '_ftime64()', so it is guarded as well
2379 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
2380 before the declaration of the functions using it, so it is guarded as well
2382 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
2384 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
2385 case. Add missing break in 's'/LEN_S case.
2387 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2389 Make snprintf() and vsnprintf() conform to C99.
2391 * include/stdio.h: Add note about incompatibility between...
2392 (snprintf, vsnprintf): These two mingwex functions, and...
2393 (_snprintf, _vsnprintf): these MSVCRT counterparts.
2395 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
2396 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
2398 * mingwex/stdio/snprintf.c: Delete.
2399 * mingwex/stdio/vsnprintf.c: Delete.
2401 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
2402 (vsnprintf): Alias to __mingw_vsnprintf.
2404 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2406 * include/_mingw.h: Increment version to 3.13.
2407 * Makefile.in: Reset CYGRELEASE to 1
2409 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2411 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
2412 resulting from incomplete removal of enclosing `for ...; do ...; done'
2413 loop from compound command; (reported by Greg Chicares).
2415 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2417 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2420 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2422 [mingw-Bugs-1734142]
2423 * include/wchar.h (_wsystem) Declare.
2425 (_wgetenv): Declare.
2426 (_wsearchenv): Declare.
2427 (_wmakepath): Declare.
2428 (_wsplitpath): Declare.
2429 (_wfullpath): Declare.
2430 * include/stdlib.h (_wsystem) Declare.
2431 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
2432 _wfullpath): Move into _WSTDLIB_DEFINED guard.
2433 * include/tchar.h (_tsystem): New UNICODE mapping define.
2435 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
2437 * mingwex/gdtoa/mingw_snprintf.c: New file.
2438 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
2439 (GDTOA_OBJS): Add mingw_snprintf.o.
2441 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
2443 * msvcrt.def.in: Update comment.
2444 Exclude _ctype stub if using msvcr71.dll or newer.
2445 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
2446 * include/wctype.h: Likewise.
2448 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2450 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
2451 *include/dirent.h: Likewise.
2453 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2455 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
2456 * include/conio.h: Likewise.
2457 * include/ctype.h: Likewise.
2458 * include/direct.h: Likewise.
2459 * include/dos.h: Likewise.
2460 * include/errno.h: Likewise.
2461 * include/fenv.h: Likewise.
2462 * include/float.h: Likewise.
2463 * include/inttypes.h: Likewise.
2464 * include/io.h: Likewise.
2465 * include/libgen.h: Likewise.
2466 * include/locale.h: Likewise.
2467 * include/malloc.h: Likewise.
2468 * include/mbctype.h: Likewise.
2469 * include/mbstring.h: Likewise.
2470 * include/process.h: Likewise.
2471 * include/search.h: Likewise.
2472 * include/setjmp.h: Likewise.
2473 * include/signal.h: Likewise.
2474 * include/stdio.h: Likewise.
2475 * include/stdlib.h: Likewise.
2476 * include/string.h: Likewise.
2477 * include/time.h: Likewise.
2478 * include/wchar.h: Likewise.
2479 * include/sys/stat.h: Likewise.
2480 * include/sys/time.h: Likewise.
2481 * include/sys/timeb.h: Likewise.
2482 * include/sys/utime.h: Likewise.
2484 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2486 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2488 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2490 Add POSIX binary tree search API.
2492 * mingwex/tfind.c: New file.
2493 * mingwex/tdelete.c: New file.
2494 * mingwex/tsearch.c: New file.
2495 * mingwex/twalk.c: New file.
2496 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2497 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2498 * include/search.h (tfind): Declare.
2505 (node_t): Define, on condition of _SEARCH_PRIVATE.
2507 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2509 * include/_mingw.h (__MINGW_NOTHROW): Define.
2511 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2513 * include/stdio.h (vsnprintf): Remove inline definition.
2516 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2518 * CRTfmode.c: Nit-pick comment fix.
2520 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2522 * CRTfmode.c: Fix nested comment.
2524 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2526 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2528 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2530 * include/io.h (lseek64) : Add prototype.
2532 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2534 * include/string.h (strcasecmp): Add prototype.
2535 (strncasecmp): Add prototype.
2537 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2539 * Makefile.in (CRT0S): Revert last change.
2540 * CRTfmode.c. Correct comment.
2542 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2544 * Makefile.in (CRT0S): Add back CRTfmode.o.
2546 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2548 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2549 * include/io.h: Likewise.
2551 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2553 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2555 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2557 * include/stdint.h (intptr_t): Fix typo.
2558 Thanks to Charles Wilson for report.
2560 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2562 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2563 Condition on _WIN64.
2564 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2565 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2566 (PTRDIFF_MIN): Define as INTPTR_MIN.
2567 (PTRDIFF_MAX): Define as INTPTR_MAX.
2568 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2569 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2571 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2573 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2574 Cygwin man page location.
2576 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2578 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2579 support Cygwin man page location.
2581 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2583 * Include/_mingw.h: Increment version to 3.12.
2585 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2587 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2589 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2591 * Makefile.in: Tweak srcdist to fix build issue.
2593 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2595 Add --enable-mingw-manpage-transform configure option.
2597 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2598 * configure.in, Makefile.in: Use it.
2599 * configure: Regenerated.
2601 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2603 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2605 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2607 Add manpages for dirname and basename functions.
2609 * man: New directory.
2610 * man/dirname.man: New file; it sources both manpages.
2611 * Makefile.in: Add provisional rules to distribute them.
2613 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2615 * mingwex/basename.c: Make it work with path names containing
2616 multibyte character strings.
2617 * mingwex/dirname.c: Likewise.
2619 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2621 * include/io.h (__mingw_access): New static inline wrapper to restore
2622 pre-Vista 'access (fname, X_OK)' behaviour.
2623 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2625 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2627 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2629 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2631 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2633 * include/stdio.h (_unlink, unlink): Add prototypes.
2635 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2637 * include/excpt.h: Replace "_try1" in comments with "__try1".
2639 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2641 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2642 (ALL_CXXFLAGS): Likewise.
2643 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2644 (ALL_CXXFLAGS): Likewise.
2645 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2646 (ALL_CXXFLAGS): Likewise.
2648 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2650 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2652 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2654 Expose some more msvcr80.dll functions.
2655 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2656 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2657 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2658 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2660 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2662 Expose some msvcr80.dll functions.
2663 * include/stdlib.h (_set_abort_behavior): Add prototype.
2664 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2665 _set_abort_behavior mask argument.
2666 (_invalid_parameter_handler): Add typedef.
2667 (_set_invalid_parameter_handler): Add prototype.
2668 * include/stdio.h (_get_printf_count_output): Add prototype.
2669 (_set_printf_count_output): Add prototype.
2670 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2671 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2673 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2675 * include/_mingw.h (CRT_INLINE): Correct typo.
2677 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2679 * include/io.h (X_OK): Define to F_OK.
2681 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2683 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2684 unconditionally. Change comment.
2685 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2687 * include/io.h (rename): Declare.
2690 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2692 * include/libgen.h: New file; required by...
2693 * mingwex/basename.c, mingwex/dirname.c: New files.
2694 * mingwex/Makefile.in (DISTFILES): Add them...
2695 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2696 (Dependencies): Typo; s/Dependancies/Dependencies/
2698 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2700 * Makefile.in (VERSION): Let configure define it.
2702 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2703 * configure.in: Use it.
2704 Correct quoting of autoconf macro arguments throughout.
2705 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2706 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2707 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2708 (AC_CONFIG_FILES): Add, to generate Makefile.
2710 * configure: Regenerated.
2712 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2714 * Makefile.in: Add aclocal.m4 to source release.
2715 * mingwex/Makefile.in: Ditto.
2716 * profile/Makefile.in: Ditto.
2718 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2720 * Include/_mingw.h: Increment version to 3.11.
2721 * Makefile.in: Ditto.
2723 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
2725 [ mingw-Bugs-1590623 ]
2726 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
2729 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
2731 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
2732 correctly parenthesized.
2734 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2736 * mingwex/mb_wc_common.h (get_codepage): Get it
2739 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2741 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
2743 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
2745 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
2748 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
2750 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
2753 2006-09-11 Christopher Faylor <cgf@timesys.com>
2755 * Makefile.in: Semi-revert 2006-08-30 change.
2757 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2759 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
2760 (__MINGW_IMPORT): Ansify.
2761 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
2762 __MINGW_ATTRIB_DEPRECATED.
2764 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2766 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
2767 Redundant macros; deleted.
2769 * configure.in (LIB_AC_PROG_CC): Replaced by...
2770 (AC_PROG_CC): ...this.
2772 * configure: Regenerated.
2774 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
2776 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
2777 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
2778 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
2780 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
2782 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
2783 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
2784 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
2785 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
2787 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
2788 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
2789 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
2790 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
2791 * mingwex/wcstold.c: Avoid using strtold internals.
2792 * mingwex/wcstof.c: Rewrite.
2793 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
2794 (GDTOA_OBJS): Add to library.
2795 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
2796 (STDLIB_OBJS): Remove.
2797 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
2798 (Q8_OBJS): Add wcstof.o wcstold.o.
2799 * include/stdlib.h (strtof): Remove inline definition.
2801 * include/wchar.h (wcstof): Remove inline definition.
2803 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
2805 * Makefile.in: Add with_cross_host to allow more granular checks.
2806 Set installation directories accordingly. Override CC setting only
2807 if building a Cygwin target.
2808 * aclocal.m4: Regenerate.
2809 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
2810 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
2811 Test AC_ALLOCA only if building on a native system.
2812 * configure: Regenerate.
2814 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2816 * include/ctype.h: Fix typo.
2818 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2820 * include/ctype.h: Expose iswblank if __cplusplus.
2821 * include/wctype.h: Expose iswblank if __cplusplus.
2823 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2825 * include/ctype.h: Remove stray ')';
2827 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2829 * include/ctype.h (_BLANK): Expand comment.
2830 (isblank): Add prototype and inline definition.
2831 (iswblank): Add prototype and inline definition.
2832 * include/wctype.h (iswblank): Add prototype and inline definition.
2833 * mingwex/isblank.c: New file.
2834 * mingwex/iswblank.c: New file.
2835 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2837 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
2839 * include/math.h (__INFF,__INFL): Remove '#'.
2841 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2843 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2845 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
2847 Support SSE float environment in fenv.h functions.
2848 * cpu_features.c: New file.
2849 * cpu_features.h: New file.
2850 * crt1.c: Include "cpu_features.h".
2851 (__mingw_CRTStartup): Call cpu_features_init().
2852 * Makefile.in (MING_OBJS): Add cpu_features.c.
2853 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
2854 * include/fenv,h ( fenv_t;): Append __mxcsr field.
2855 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
2856 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
2857 (__MXCSR_ROUND_FLAG_SHIFT): New define.
2858 * mingwex/feclearexcept.c: Include "cpu_features.h".
2859 Handle SSE environment.
2860 * mingwex/fegetenv.c: Likewise.
2861 * mingwex/feholdexcept.c: Likewise.
2862 * mingwex/fesetenv.c: Likewise.
2863 * mingwex/fesetexceptflag.c: Likewise.
2864 * mingwex/fesetround.c: Likewise.
2865 * mingwex/fetestexcept.c: Likewise.
2866 * mingwex/feupdateenv.c: Likewise.
2867 * mingwex/fegetround.c: Add comment.
2869 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2871 * Include/_mingw.h: Increment version to 3.10.
2872 * Makefile.in: Ditto.
2874 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2876 * mingwex/math/tgamma.c (SQTPI): Add braces.
2878 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2880 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2881 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2883 * mingwex/math/sf_erf.c (erff): Initialize z.
2885 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2887 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2889 * Include/_mingw.h: Increment version to 3.10.
2890 * Makefile.in: Ditto.
2892 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2894 * include/sys/time.h (struct timezone): Define.
2895 * include/time.h: Correct comment about timezone.
2897 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2899 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2900 * configure: Regenerate.
2902 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2904 * configure: add srcdir as a possible location for install-sh.
2906 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2908 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2909 (_topendir): Use it.
2911 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2913 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2915 (gettimeofday): Add prototype.
2916 * mingwex/gettimeofday.c: New file.
2917 * mingwex/makefile.in: Add gettimeofday source and object.
2919 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2921 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2922 else global library variable.
2923 (HUGEVALF): Likewise.
2924 (HUGEVALL): Likewise.
2925 (INFINITY): Likewise.
2928 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2930 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2932 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2934 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2936 2006-05-24 Christopher Faylor <cgf@timesys.com>
2938 * configure.in: Update to newer autoconf.
2939 (thanks to Steve Ellcey)
2940 * mingwex/configure.in: Ditto.
2941 * profile/configure.in: Ditto.
2942 * configure: Regenerate.
2943 * mingwex/configure: Ditto.
2944 * profile/configure: Ditto.
2945 * aclocal.m4: New file.
2946 * mingwex/aclocal.m4: Ditto.
2947 * profile/aclocal.m4: Ditto.
2949 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2951 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2952 Use supplied codepage as arg to WideCharToMultiByte.
2954 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2956 * Makefile.in (libmsvcr80.a): Add import lib.
2957 (libmsvcr80d.a): Ditto.
2959 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2961 * Makefile.in: Bump cygwin build number.
2963 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2965 * Include/_mingw.h: Increment version to 3.9.
2966 * Makefile.in: Ditto.
2968 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2970 * include/limits.h (SSIZE_MAX): Define.
2971 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2973 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2975 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2976 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2978 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2980 * include/stddef.h: Remove.
2981 * include/stdarg.h: Remove.
2983 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2985 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2986 of result is positive when real part of arg == 0;
2987 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2988 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2990 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2992 * include/time.h (_time64): Correct prototype.
2994 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2996 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2997 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2998 to non-stop. Use "fnclex" to clear exception flags.
3000 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3002 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
3003 Avoid raising FP exceptions.
3005 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
3007 * include/stdlib.h (strtof): Add prototype. Uglify
3008 parameter names in inline definition.
3010 (_Exit): Uglify parameter names in inline definition.
3011 (llabs): Add prototype.
3012 (_set_error_mode): Add prototype and input defines.
3014 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3016 * mingwex/fe*.c: Revert previous changes.
3017 * include/fenv.h: Revert previous changes.
3019 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3021 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
3022 Do not return a value.
3023 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
3024 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
3025 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
3026 * mingwex/fegetenv.c (fegetenv): Likewise.
3027 * mingwex/fesetenv.c (fesetenv): Likewise.
3028 * mingwex/feupdateenv.c (feupdateenv): Likewise.
3029 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
3030 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
3033 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3035 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
3036 getting filelength for SEEK_END.
3038 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3040 * Include/_mingw.h: Increment version to 3.8.
3041 * Makefile.in: Ditto.
3043 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3045 * include/wctype.h (towupper, towlower): Change arg and return value
3047 * include/ctype.h (towupper, towlower): Likewise.
3049 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3051 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
3052 a diagnostic, guarded by #ifdef DEBUG.
3053 (__mingwthr_remove_key_dtor): Likewise.
3055 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
3057 * moldname.def.in (sleep, beep, seterrormode): Remove.
3059 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3061 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
3062 (_MCOUNT_DECL): Use it.
3063 (MCOUNT): Save and restore eax, ecx, edx registers.
3064 * profile/mcount.c (_mcount): ANSI-fy.
3066 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3068 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
3069 guard __MINGW_ATTRIB macro definitions.
3070 * include/math.h (logb[fl]): Don't define inlines for
3071 GCC-4.0+ && __FAST_MATH__.
3072 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
3073 line-continuation backslashes.
3075 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
3077 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
3078 in GNUC version guard.
3080 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
3082 * crt1.c (_gnu_exception_handler): Handle illegal instruction
3083 OS exception as a signal if user has defined a SIGILL handler.
3085 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
3087 * mingwex/math/nexttoward.c: New file.
3088 * mingwex/math/nexttowardf.c: New file.
3089 * mingwex/math/nextafterl.c: Add nexttowardl alias.
3090 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
3092 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
3093 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
3096 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
3098 * mingwex/math/nextafterf.c (nextafterf): Correct
3100 * mingwex/math/nextafterl.c: New file.
3101 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
3102 (MATH_OBJS): Add nextafterl.o.
3103 * include/math.h (nextafterl): Uncomment prototype.
3105 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3107 * mingwex/math/erfl.c: New file.
3108 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
3109 (MATH_OBJS): Add erfl.o.
3110 * include/math.h (erfl, erfcl): Uncomment prototypes.
3112 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
3114 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
3115 #if (WCHAR_MAX <= WCHAR_MIN) is false.
3116 * include/stdint.h (WCHAR_MAX): Likewise.
3117 (WINT_MAX): Likewise.
3119 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
3121 * mingwex/math/signbit.c (__signbit): Make return value
3122 consistent with GCC's __builtin_signbit.
3123 * mingwex/math/signbitf.c (__signbitf): Likewise.
3124 * mingwex/math/signbitf.c (__signbitl): Likewise.
3125 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
3128 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
3130 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
3132 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
3133 Remove unused MBTOWC_FLAGS define.
3135 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
3137 * mingwex/mbrtowc.c: New file.
3138 * mingwex/wcrtomb.c: New file.
3139 * mingwex/btowc.c: New file.
3140 * mingwex/wctob.c: New file.
3141 * mingwex/mb_wc_common.h: New file.
3142 * mingwex/Makefile.in (DISTFILES): Add new files.
3143 (Q8_OBJS): Add new objects.
3144 * include/wchar.h: Adjust comment about mbrtowc() and related
3145 funcions. Add __restrict__ to pointer params in prototypes.
3146 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
3147 arg names from protototypes.
3149 2005-04-23 Wu Yongwei <adah@sh163.net>
3151 * mingwex/dirent.c: Formatting changes.
3152 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
3155 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
3157 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
3159 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
3161 * include/stdio.h (__mingw_fwrite): Change return value to
3163 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
3165 2005-03-15 Hans Leidekker <hans@it.vu.nl>
3167 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
3169 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3171 * include/wctype.h (wctrans): Remove _CRTIMP.
3172 (towctrans): Likewise.
3175 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3177 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
3179 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3181 * mingwex/wctype.c: New file.
3182 * mingwex/wctrans.c: New file.
3183 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
3184 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
3186 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3188 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
3190 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3192 * include/assert.h: Remove header guard. #undef assert macro.
3193 (_assert): Use __MINGW_ATTRIB_NORETURN define.
3195 2005-02-11 Gregory W. Chicares <chicares@cox.net>
3197 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
3198 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
3200 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
3201 * mingwex/math/expm1.c: New file.
3202 * mingwex/math/expm1f.c: New file.
3203 * mingwex/math/expm1l.c: New file.
3205 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3207 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
3208 * include/wchar.h (struct stat): Likewise.
3209 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
3211 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
3213 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3215 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
3216 string is not valid.
3218 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
3220 * include/malloc.h: Add missing return code defines for
3223 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
3225 * include/sys/stat.h (struct __stat64): Change st_size type to
3227 * include/wchar.h (struct __stat64): Change st_size type to __int64.
3229 2005-01-13 Earnie Boyd <earnie@users.sf.net>
3231 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3233 * include/errno.h (ELOOP): Ditto.
3234 * include/_mingw.h: Increment version to 3.7.
3235 * Makefile.in: Ditto.
3237 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3239 * include/tchar.h (_tfreopen): Add UNICODE mappings.
3241 2005-01-11 Earnie Boyd <earnie@users.sf.net>
3243 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3244 lstat): Conditionalize defines for __STRICT_ANSI__.
3246 2005-01-10 Earnie Boyd <earnie@users.sf.net>
3248 * include/errno.h (ELOOP): Add definition.
3250 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
3252 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
3253 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
3254 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
3255 ctanl.c ctanhl.c): New files.
3256 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3257 (COMPLEX_OBJS): Adjust.
3258 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
3259 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
3260 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
3263 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3265 * include/_mingw.h (__int16): Define as short.
3266 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3268 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3270 * include/stdio.h (P_tmpdir): Add define.
3272 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3274 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3276 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3278 * include/_mingw.h: Increment version to 3.6
3279 * Makefile.in: Ditto
3281 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3283 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3284 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3285 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3286 ctanf.c ctanhf.c): New files.
3287 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3288 (COMPLEX_OBJS): Adjust.
3289 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3290 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3291 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3294 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3296 * include/wchar.h (wcsdup): Correct prototype.
3297 * include/string.h (wcsdup): Correct prototype.
3299 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3301 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3303 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3305 * mingwex/math/fastmath.h: New file.
3306 * mingwex/math/asinh.c: New file.
3307 * mingwex/math/asinhf.c: New file.
3308 * mingwex/math/asinhl.c: New file.
3309 * mingwex/math/acosh.c: New file.
3310 * mingwex/math/acoshf.c: New file.
3311 * mingwex/math/acoshl.c: New file.
3312 * mingwex/math/atanh.c: New file.
3313 * mingwex/math/atanhf.c: New file.
3314 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3315 atanh, atanhf, atanhl): Add prototypes.
3316 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3317 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3318 Specify dependency on fastmath.h for new objects.
3320 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3322 * include/sys/stat.h (_S_IFLNK): Add definition.
3329 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3331 * include/sys/stat.h (_S_ISLNK): Add definition.
3334 2004-09-05 Earnie Boyd <earnie@users.sf.net>
3336 * include/_mingw.h: Increment minor version for 3.5 release.
3337 * Makefile.in: Ditto.
3338 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
3340 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3342 * include/malloc.h (__mingw_aligned_offset_malloc,
3343 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
3344 __mingw_aligned_realloc, __mingw_aligned_free): Add
3346 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
3347 tst-aligned-malloc.c.
3348 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
3350 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
3352 * mingwex/mingw-aligned-malloc.c: New file.
3353 * mingwex/tst-aligned-malloc.c: New file.
3355 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3357 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
3358 noreturn attribute. Align stack to 16 bytes before passing args
3360 (mainCRTStartup): Change return to void.
3361 (WinMainCRTStartup): Likewise.
3363 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3365 * profile/COPYING: New file.
3366 * profile/CYGWIN_LICENSE: New file.
3367 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
3369 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3371 * mingwex/fopen64.c: Move.
3372 * mingwex/fseeko64.c: Move.
3373 * mingwex/ftello64.c: Move.
3374 * mingwex/lseek64.c: Move.
3375 * mingwex/stdio/fopen64.c: To here.
3376 * mingwex/stdio/fseeko64.c: To here.
3377 * mingwex/stdio/ftello64.c: To here.
3378 * mingwex/stdio/lseek64.c: To here.
3380 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3382 * profile/gmon.c [__MINGW32__]: Include string.h for
3385 2004-08-08 Christopher Faylor <cgf@timesys.com>
3387 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
3389 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3391 * include/complex.h: Remove __attribute__ ((const)) from
3392 transcendantal and trig functions. Replace __attribute__ ((const))
3393 with __MINGW_ATTRIB_CONST on other declarations.
3395 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3397 * include/wchar.h: Reorganize, avoid including other headers.
3399 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3401 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
3402 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
3405 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3407 * include/dirent.h (struct _wdirent): Remove obsolete comment.
3409 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3411 * include/string.h: Revert 2004-07-26 additions of
3414 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3416 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3417 (__convert_inf_to_maxnum): New.static inline.
3418 (reducl): Use it to protect against Inf - Inf.
3419 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3421 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3423 * mingwex/math/expl.c (expl): Move body of code to new static
3424 function __expl, removing tests for +/-Inf. Extern function
3425 expl calls __expl after testing for max, min log thresholds.
3427 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3429 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
3430 * mingwex/stdio/vfscanf.c: Likewise.
3431 * mingwex/stdio/vswscanf.c: Likewise.
3432 * mingwex/stdio/vfwscanf.c: Likewise.
3434 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3436 * include/_mingw.h: Use only two underscores to uglify
3437 __MINGW_ATTRIB_* macros.
3438 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
3439 * include/setjmp.h: Likewise.
3441 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
3443 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
3445 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3447 * include/string.h: Group wide string functions together,
3448 and protect with _WSTRING_DEFINED.
3450 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3452 * include/_mingw.h (__MINGW_ATTR_*): Replace with
3454 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
3455 __MINGW_ATTRIB_NORETURN, throughout.
3456 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3458 (abs): Declare with __MINGW_ATTRIB_CONST.
3467 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3469 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3471 * include/_mingw.h: Undefine __attribute__.
3472 (__MINGW_ATTR_NORETURN): New define.
3473 (__MINGW_ATTR_CONST): New define.
3474 (__MINGW_ATTR_MALLOC): New define.
3475 (__MINGW_ATTR_PURE): New define.
3476 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3479 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3481 * include/time.h (__time64_t): Add missing ';'.
3483 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3485 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3486 (struct tm): Protect with _TM_DEFINED.
3488 2004-07-17 Christopher Faylor <cgf@timesys.com>
3490 * Makefile.in (CC): Strip inappropriate include file settings from any
3493 2004-07-15 "dgun" <dgun@umpire.com>
3495 * include/complex.h (conj): Correct typo in prototype.
3497 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3499 * include/math.h: Add pragma GCC system_header.
3501 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3503 * mingwex/complex/carg.c: New file.
3504 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3506 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3508 * Makefile.in (INCLUDES): Temporarily revert previous change.
3509 * mingwex/Makefile,in (INCLUDES): Ditto.
3510 * profile/Makefile,in (INCLUDES): Ditto.
3511 * mingwex/Makefile,in: Drop carg.o dependency.
3513 2004-07-14 Christopher Faylor <cgf@timesys.com>
3515 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3517 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3519 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3521 * mingwex/Makefile,in (INCLUDES): Ditto.
3522 * profile/Makefile,in (INCLUDES): Ditto.
3524 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3526 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3528 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3530 * mingwex/Makefile.in: Ditto.
3531 * profile/Makefile.in: Ditto.
3532 * include/limits.h: Change to new file header preamble.
3533 * include/_mingw.h: Increment minor version for 3.4 release.
3534 * Makefile.in: Ditto.
3536 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3538 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3540 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3542 * include/unistd.h (ftruncate): Add inline definition.
3543 * mingwex/ftruncate.c: New file.
3544 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3546 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3548 * include/time.h: Do not include sys/types.h.
3550 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3552 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3553 (MATH_OBJS): Remove pow,o.
3554 * include/math.h (pow): Declare with _CRTIMP.
3555 Add comment on how to avoid excess precision problems.
3557 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3559 * include/stdio.h (__mingw_fseeko64): Add prototype.
3560 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3561 (__mingw_fwrite): Handle huge files.
3563 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3564 Danny Smith <dannysmith@users.sourceforge.net>
3566 * include/stdio.h (fopen64): Add inline function.
3567 (fseeko64): Add prototype.
3568 (ftello64): Add inline function.
3569 * include/io.h (lseek64): Add inline function.
3570 * include/sys/types (off64_t): Add typedef.
3571 (fpos64_t): Add typedef.
3572 * mingwex/fopen64.c: New file.
3573 * mingwex/fseeko64.c: New file.
3574 * mingwex/ftello64.c: New file.
3575 * mingwex/lseek64.c: New file.
3576 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3577 fseeko.64.c, ftello64.c, lseek64.c.
3578 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3580 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3582 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3584 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3586 * DISCLAIMER: Add words about "free to use".
3587 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3588 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3589 (inst_docdir): New variable.
3591 (FLAGS_TO_PASS): Include inst_docdir.
3592 (install-dirs): Add inst_docdir.
3593 (install): Add loop for INSTDOCS.
3594 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3595 section to CONTRIBUTORS file. Remove RCS tags.
3597 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3599 * mingwex/math/lround.c: Rewrite.
3600 * mingwex/math/lroundf.c: Rewrite.
3601 * mingwex/math/lroundl.c: Rewrite.
3602 * mingwex/math/llround.c: Rewrite.
3603 * mingwex/math/llroundf.c: Rewrite.
3604 * mingwex/math/llroundl.c: Rewrite.
3606 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3608 * CONTRIBUTORS: New file.
3609 * DISCLAIMER: Ditto.
3610 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3611 section to CONTRIBUTORS file. Remove RCS tags.
3612 * CRTFmode.c: Ditto.
3616 * crtdll.dev: Ditto.
3626 * msvcrt.def.in: Ditto.
3627 * strcasecmp.c: Ditto.
3630 * include/assert.h: Ditto.
3631 * include/conio.h: Ditto.
3632 * include/ctype.h: Ditto.
3633 * include/direct.h: Ditto.
3634 * include/dirent.h: Ditto.
3635 * include/dos.h: Ditto.
3636 * include/errno.h: Ditto.
3637 * include/excpt.h: Ditto.
3638 * include/fcntl.h: Ditto.
3639 * include/float.h: Ditto.
3640 * include/io.h: Ditto.
3641 * include/locale.h: Ditto.
3642 * include/malloc.h: Ditto.
3643 * include/math.h: Ditto.
3644 * include/process.h: Ditto.
3645 * include/setjmp.h: Ditto.
3646 * include/share.h: Ditto.
3647 * include/signal.h: Ditto.
3648 * include/stdio.h: Ditto.
3649 * include/stdlib.h: Ditto.
3650 * include/string.h: Ditto.
3651 * include/tchar.h: Ditto.
3652 * include/time.h: Ditto.
3653 * include/wchar.h: Ditto.
3654 * include/sys/locking.h: Ditto.
3655 * include/sys/param.h: Ditto.
3656 * include/sys/stat.h: Ditto.
3657 * include/sys/timeb.h: Ditto.
3658 * include/sys/types.h: Ditto.
3659 * include/sys/utime.h: Ditto.
3660 * mingwex/dirent.c: Ditto.
3662 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3664 * include/_mingw.h: Revert to primary release 3 and increment minor
3666 * Makefile.in (VERSION): Ditto.
3668 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3670 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3671 _fmode if not __MSVCRT__.
3673 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3675 * include/io.h: (_findfirst): Correct prototype.
3677 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3679 * include/io.h: (_findnext, _findclose): Correct prototype.
3681 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3683 * include/math.h (FP_*): Add defines.
3685 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3687 * mingwex/math/round.c: Rewrite.
3688 * mingwex/math/roundf.c: Rewrite.
3689 * mingwex/math/roundl.c: Rewrite.
3691 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3693 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3694 * include/time.h (__time64_t): Add typedef.
3695 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3696 (_ctime64): Likewise.
3697 (_wctime64): Likewise.
3698 (_gmtime64): Likewise.
3699 (_localtime64): Likewise.
3700 (wcsftime): Move into _WTIME_DEFINED block.
3701 Regroup non-ANSI prototypes.
3702 * include/io.h: Include <stdint.h>.
3703 (__finddata64_t): Add struct definition.
3704 (__wfinddata64_t): Likewise.
3705 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3706 (_findnext64): Likewise.
3707 (_wfindfirst64): Likewise.
3708 (_wfindnext64): Likewise.
3709 * include/sys/timeb.h (__timeb64): Add struct definition.
3710 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3711 * include/sys/utime.h (__utimbuf64): Add struct definition.
3712 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3713 (_futime64): Likewise.
3714 (_wutime64): Likewise.
3715 * include/sys/stat.h (__stat64): Add struct definition.
3716 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3717 (_stat64): Likewise.
3718 (_wstat64): Likewise.
3719 * include/sys/types.h (__time64_t): Add typedef.
3720 * include/wchar.h (__wfinddata64_t): Add structure definition.
3721 (__stat64): Likewise.
3722 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3723 (_wfindfirst64): Likewise.
3724 (_wfindnext64): Likewise.
3725 (_wutime64): Likewise.
3726 (_wstat64): Likewise.
3727 * include/malloc.h (_aligned_free): Add prototype for
3728 __MSVCRT_VERSION__ >= 0x0700.
3729 (_aligned_malloc): Likewise.
3730 (_aligned_offset_malloc): Likewise.
3731 (_aligned_offset_realloc): Likewise.
3732 (_aligned_realloc): Likewise.
3733 * include/string.h (_wcserror): Add prototype for
3734 __MSVCRT_VERSION__ >= 0x0700.
3735 (__wcserror): Likewise.
3736 * include/math.h (_set_SSE2_enable): Add prototype for
3737 __MSVCRT_VERSION__ >= 0x0701.
3739 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3741 * include/stdio.h (_fsopen): Add prototype.
3742 * include/tchar.h (_tfsopen): Add defines.
3743 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
3745 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3747 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
3748 msvcr70.dll, and msvcr71.dll.
3749 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
3750 using basename of output def file.
3752 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3754 * include/malloc.h: Remove __STRICT_ANSI__ guard.
3756 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
3758 * include/process.h: Remove the #endif associated with removal of
3759 __STRICT_ANSI__ guard from non-ANSI header.
3761 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3763 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
3764 * include/direct.h: Ditto.
3765 * include/dirent.h: Ditto.
3766 * include/dos.h: Ditto.
3767 * include/excpt.h: Ditto.
3769 * include/io.h: Ditto.
3770 * inlude/mem.h: Ditto.
3771 * include/memory.h: Ditto.
3772 * include/process.h: Ditto.
3773 * inlude/search.h: Ditto.
3774 * include/share.h: Ditto.
3775 * include/unistd.h: Ditto.
3776 * include/sys/fcntl.h: Ditto.
3777 * include/file.h: Ditto.
3778 * include/sys/locking.h: Ditto.
3779 * include/sys/param.h: Ditto.
3780 * include/sys/stat,h
3781 * include/sys/time.h: Ditto.
3782 * include/sys/timeb.h: Ditto.
3783 * include/sys/types.h: Ditto.
3784 * include/sys/unistd.h: Ditto.
3785 * include/sys/utime.h: Ditto.
3787 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
3789 * include/_mingw.h (__UNUSED_PARAM): Define macro.
3790 * include/wchar.h (fwide): Use it.
3793 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3795 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
3796 NetBSD getopt_long.c.
3798 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3800 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
3801 codes and handling of special chars.
3803 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
3805 * include/stdio.h (feof): Add inlined definition.
3808 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3810 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
3811 directly, rather than via scabnl.
3813 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3815 * mingwex/math/powl.c (powl): Return infinity if
3816 extended precision multiplication of x by log2(y)
3819 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3821 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
3822 (__enan_NI16): Fix another one.
3823 (__enan_NBITS): Tidy.
3825 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3827 * include/stdint.h [__STDC_CONSTANT_MACROS]: Fix for 8 and 16 bit
3828 types. (Thanks to John Maddock for report.)
3830 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
3832 * include/tchar.h (_puttchar): Define.
3834 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
3836 * include/stdio.h:(_fileno): Define macro version after both
3837 fileno and _fileno functions declared.
3839 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
3840 * moldnames.def.in (rmtmp) Add stub.
3842 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
3844 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
3846 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
3848 * include/math.h: Guard ISO C99 additions with __cplusplus
3851 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3853 * include/_mingw.h: Define __attribute__((x)) to nothing
3856 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3858 * include/complex.h: New file.
3859 * mingwex/complex: New directory.
3860 * mingwex/complex/cabs.c: New file.
3861 * mingwex/complex/cacos.c: New file.
3862 * mingwex/complex/cacosh.c: New file.
3863 * mingwex/complex/casin.c: New file.
3864 * mingwex/complex/casinh.c: New file.
3865 * mingwex/complex/catan.c: New file.
3866 * mingwex/complex/catanh.c: New file.
3867 * mingwex/complex/ccos.c: New file.
3868 * mingwex/complex/ccosh.c: New file.
3869 * mingwex/complex/cexp.c: New file.
3870 * mingwex/complex/cimag.c: New file.
3871 * mingwex/complex/clog.c: New file.
3872 * mingwex/complex/cpow.c: New file.
3873 * mingwex/complex/cproj.c: New file.
3874 * mingwex/complex/creal.c: New file.
3875 * mingwex/complex/csin.c: New file.
3876 * mingwex/complex/csinh.c: New file.
3877 * mingwex/complex/csqrt.c: New file.
3878 * mingwex/complex/ctan.c: New file.
3879 * mingwex/complex/ctanh.c: New file.
3880 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3883 (COMPLEX_OBJS): New list of objects.
3884 (LIB_OBJS): Include it in the library.
3886 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3888 * include/math.h (cabs): Remove non-ISO prototype.
3890 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3892 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3893 Use GCC __builtin's if available.
3894 (INFINITY, INFINITYF, INFINITYL): Likewise.
3896 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3898 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3899 beyond approximation limit.
3900 * mingwex/math/sf_erf.c (erff): Likewise.
3902 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3904 * include/stdio.h (getc): Cast result to unsigned char before
3907 (getchar): Likewise.
3908 (putchar): Likewise.
3909 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3911 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3913 * include/_mingw.h: Increment version to 3.2.
3914 * Makefile.in: Ditto.
3916 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3918 * include/sys/types.h: Revert last change.
3920 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3922 * include/sys/types.h (ssize_t): Correct the definition.
3924 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3926 * include/stdio.h (_filbuf): Add prototype.
3927 (_flsbuf): Add prototype.
3928 (getc): Add inline version.
3930 (getchar): Likewise.
3931 (putchar): Likewise.
3933 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3935 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3938 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3940 * include/stdlib.h: Guard non-ISO functions with
3941 !__STRICT_ANSI__, throughout.
3943 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3945 * include/io.h (_fileno): Remove prototype.
3947 (FILENAME_MAX): Define, if needed.
3948 Don't include <stdio.h>.
3949 * include/stdio.h (FILENAME_MAX): Protect against
3951 (_fileno): Define macro implementation.
3954 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3956 * include/inttypes.h: Include _mingw.h.
3958 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3960 * include/_mingw.h (__CRT_INLINE): Define.
3961 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3963 * include/inttypes.h: Likewise.
3964 * include/math.h: Likewise.
3965 * include/stdio.h: Likewise.
3966 * include/stdlib.h: Likewise.
3967 * include/string.h: Likewise.
3968 * include/wchar.h: Likewise.
3969 * include/wctype.h: Likewise.
3971 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3973 * mingwex/dirent.c (_topendir): Allocate enough memory for
3974 DIR struct in UNICODE case too.
3976 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3978 * include/_mingw.h: Increment version to 3.2.
3979 * Makefile.in: Ditto.
3981 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3983 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3985 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3987 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3988 * mingwex/math/truncf.c (truncf): Likewise.
3989 * mingwex/math/truncl.c (truncl): Likewise.
3990 * mingwex/math/modff.c (modff): Likewise.
3991 * mingwex/math/modfl.c (modfl): Likewise.
3993 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3995 * include/search.h: New file.
3996 * include/stdlib.h: Add comment about qsort, bsearch in
3998 * test_headers.c: Include search.h.
3999 * moldname.def.in (lfind, lsearch): Add.
4001 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
4003 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
4004 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
4005 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
4007 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4009 * include/_mingw.h (small, hyper): Change to __small and __hyper to
4010 avoid user space name conflicts.
4012 2003-07-01 Earnie Boyd <earnie@users.sf.net>
4014 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
4015 Note: Also added to w32api/include/basetyps.h.
4016 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
4017 Rename to Small (case difference).
4019 2003-06-18 Earnie Boyd <earnie@users.sf.net>
4021 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
4022 * mingwex/dirent.c: Modifications througout to fill d_name array.
4023 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
4024 libmsvcr71, including debug versions.
4025 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
4027 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
4029 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
4030 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
4032 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
4034 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
4036 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
4038 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
4040 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
4041 but still protect inline definition with __STRICT_ANSI__.
4043 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
4045 * string_old.c: Remove, splitting into...
4046 * strcasecmp.c: New file.
4047 * strncasecmp.c: New file.
4048 * wscmpi.c : New file.
4049 * ctype_old.c: Remove, splitting into...
4050 * isascii.c: New file.
4051 * iscsym.c: New file.
4052 * iscsymf.c: New file.
4053 * toascii.c: New file.
4054 * Makefile.in (MOLD_OBJS): Adjust.
4055 (SRCDIST_FILES): Adjust.
4057 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
4059 * include/math.h (fabs) : Remove inline definition.
4063 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4065 * include/_mingw.h: Change version to 3.0
4066 * Makefile.in: Ditto.
4068 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4070 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
4071 * mingwex/configure.in (W32API_INCLUDE): Ditto.
4072 * profile/configure.in (W32API_INCLUDE): Ditto.
4074 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4076 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
4077 of multiply defined symbols if the symbols is defined locally. E.G.:
4078 A local definition of malloc causes this problem.
4079 * configure: Regenerate.
4080 * profile/Makefile.in (W32API_INCLUDE): New variable.
4081 (ALL_CFLAGS): Use W32API_INCLUDE value.
4082 (ALL_CXXFLAGS): Ditto.
4083 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
4084 Thanks to Jeff Bonggren <jbon@users.sf.net>.
4085 * profile/configure.in (W32API_INCLUDE): Set default value.
4086 * profile/configure: Regenerate.
4087 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
4088 (ALL_CFLAGS): Use W32API-INCLUDE value.
4089 (ALL_CXXFLAGS): Ditto.
4090 * mingwex/configure.in (W32API_INCLUDE): Set default value.
4091 * mingwex/configure: Regenerate.
4093 2003-05-05 Earnie Boyd <earnie@users.sf.net>
4095 * Makefile.in (W32API_INCLUDE): New variable.
4096 (ALL_CFLAGS): Use W32API_INCLUDE value.
4097 (ALL_CXXFLAGS): Ditto.
4098 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
4099 (W32API_INCLUDE): Set default value.
4100 * configure: Regenerate.
4102 2003-04-11 Earnie Boyd <earnie@users.sf.net>
4104 * configure.in (LIBM_A): Define for cygwin target.
4105 * configure (LIBM_A): Ditto.
4107 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
4109 * include/time.h (strftime): Remove duplicate declaration.
4111 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4113 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
4115 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4117 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
4118 * mingwex/strtoimax.c (strtoimax): Likewise.
4119 * mingwex/wcstoimax.c (wcstoimax): Likewise.
4120 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
4121 * mingwex/fesentenv.c: Include float.h.
4122 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
4124 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
4126 * mingwex/math/tgammal.c: Likewise.
4128 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4130 * include/utime.h: New file, forwarding to sys/utime.h.
4132 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4134 * include/sys/param.h (MAXPATHLEN): Define.
4136 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4138 * include/tchar.h: Ansi-fy a comment.
4140 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4142 * profile/profile.h (mcount): Use __builtin_return_address
4143 rather than inline __asm statements.
4144 * profile/Makefile.in: Remove special rule for mcount.o
4145 Specify dependencies for mcount.o profil.o gmon.o.
4147 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4149 * include/stdlib.h (qsort): Remove const from first parm.
4150 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
4152 2003-03-03 Christopher Faylor <cgf@redhat.com>
4154 * mingwex/getopt.c: Refresh from NetBSD sources.
4156 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
4158 * mingwex/getopt.c: New file, copied from cygwin srcs.
4159 * include/getopt.h: New file, copied from cygwin srcs.
4160 * include/unistd.h: Include getopt.h.
4161 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
4162 (POSIX_OBJS): Add getopt.o.
4164 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
4166 * include/stdio.h (vscanf): Add prototype.
4172 * include/wchar.h (vwscanf): Add prototype.
4175 * mingwex/snprintf.c: Move to mingwex/stdio.
4176 * mingwex/vsnprintf.c: Ditto.
4177 * mingwex/snwprintf.c: Ditto.
4178 * mingwex/vsnwprintf.c: Ditto.
4179 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
4180 (STDIO_DISTFILES): Add.
4181 (DISTFILES): Adjust.
4182 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
4186 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
4188 * mingwex/stdio: New directory
4189 * mingwex/stdio/vfscanf.c: New file.
4190 * mingwex/stdio/vfwscanf.c: New file.
4191 * mingwex/stdio/vscanf.c: New file.
4192 * mingwex/stdio/vsscanf.c: New file.
4193 * mingwex/stdio/vswscanf.c: New file.
4194 * mingwex/stdio/vwscanf.c: New file.
4196 2003-02-25 Earnie Boyd <earnie@users.sf.net>
4198 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
4199 (libmsvcrt40.a): Ditto.
4201 2003-02-21 Earnie Boyd <earnie@users.sf.net>
4203 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
4205 * Makefile.in (libmsvcrtd.a): Add target library.
4206 (libmoldnamed.a): Ditto.
4207 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
4209 ($(srcdir)): Remove explicit reference for depencies of object targets.
4210 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
4211 msvcrt20.def, msvcrt40.def: Remove.
4212 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
4214 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
4216 * Makefile.in: Make sure libmingwex.a from current build tree is used.
4218 2003-02-14 Christopher Faylor <cgf@redhat.com>
4220 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
4221 ensure -mno-cygwin where appropriate. Filter out -O2.
4223 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
4225 * profile/Makefile.in (mcount.o): Use -O1 optimization
4228 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4230 * include/math.h: Remove _CRTIMP from pow() prototype,
4231 unless __NO_ISOCEXT.
4233 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4235 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
4237 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4239 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
4240 __declspec(dllimport) supported.
4241 (__cdecl): Define if not already defined.
4242 (__stdcall): Likewise.
4243 * include/dirent.h: Qualify fuctions with __cdecl.
4244 * include/fenv.h: Likewise.
4245 * include/inttypes.h: Likewise.
4246 * include/assert.h: Qualify fuctions with __cdecl. Qualify
4247 CRT dll imports with _CRTIMP.
4248 * include/conio.h: Likewise.
4249 * include/ctype.h: Likewise.
4250 * include/direct.h: Likewise.
4251 * include/dos.h: Likewise.
4252 * include/errno.h: Likewise.
4253 * include/float.h: Likewise.
4254 * include/io.h: Likewise.
4255 * include/locale.h: Likewise.
4256 * include/malloc.h: Likewise.
4257 * include/math.h: Likewise.
4258 * include/mbctype.h: Likewise.
4259 * include/mbstring.h: Likewise.
4260 * include/process.h: Likewise.
4261 * include/setjmp.h: Likewise.
4262 * include/signal.h: Likewise.
4263 * include/stdio.h: Likewise.
4264 * include/stdlib.h: Likewise.
4265 * include/string.h: Likewise.
4266 * include/time.h: Likewise.
4267 * include/wchar.h: Likewise.
4268 * include/wctype.h: Likewise.
4269 * include/sys/stat.h: Likewise.
4270 * include/sys/timeb.h: Likewise.
4271 * include/sys/utime.h: Likewise.
4273 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4274 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4276 * include/stdio.h (__VALIST): Guard against prior definition.
4278 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4280 * include/_mingw.h: Change version to 3.0
4281 * Makefile.in: Ditto.
4283 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4285 * include/stdlib.h: Make words after #endif a comment.
4287 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4289 * include/locale.h: Include stddef.h for definition of NULL.
4291 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4293 * include/math.h (tgamma): Correct typo in comment.
4295 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4297 * mingwex/mingw-fseek.c (INLINE): Remove define.
4298 (__mingw_is_win9x): Remove static inline function.
4299 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4301 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4303 * mingwex/math/llround.c: Correct function name and
4304 change return value to long long.
4306 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4308 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4309 (iswascii): Likewise. Correct mask.
4310 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4313 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4315 * include/stdlib.h (_osver, _winver, _winmajor,
4316 _winminor): Declare as direct imports from dll if
4317 __DECLSPEC_SUPPORTED.
4319 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4321 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4322 * pseudo-reloc-list.c: New file.
4323 * crt1.c (_pei386_runtime_relocator): Declare.
4324 (__mingw_CRTStartup): Call it.
4325 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4326 (DllMainCRTStartup): Call it.
4327 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
4330 2003-01-01 Egor Duda <deo@logos-m.ru>
4332 * pseudo-reloc.c: New file.
4334 2002-12-20 Earnie Boyd <earnie@users.sf.net>
4336 * include/_mingw.h: Increment version to 2.4.
4339 2002-12-12 Earnie Boyd <earnie@users.sf.net>
4341 * include/malloc.h (_alloca): Add definition.
4344 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
4346 * mingwex/math/s_erf.c: New file.
4347 * mingwex/math/sf_erf.c: New file.
4348 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4349 (MATH_OBJS): Add new objects.
4350 * include/math.h (erf[f]): Add prototypes.
4351 (erfc[f]): Add prototypes.
4353 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
4355 * include/math.h: Add traditional/XOPEN math constants.
4357 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
4359 * mingwex/math/lgamma.c: New file.
4360 * mingwex/math/lgammaf.c: New file.
4361 * mingwex/math/lgammal.c: New file.
4362 * mingwex/math/tgamma.c: New file.
4363 * mingwex/math/tgammaf.c: New file.
4364 * mingwex/math/tgammal.c: New file.
4365 * mingwex/math/cephes_mconf (polevlf): Add float version.
4367 Define _CEPHES_USE_ERRNO.
4368 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4369 (MATH_OBJS): Add new objects.
4370 * include/math.h (lgamma[fl]): Add prototypes.
4371 (tgamma[fl]): Add prototypes.
4373 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
4375 * mingwex/strtold.c: New file.
4376 * mingwex/wcstold.c: New file.
4377 * mingwex/ldtoa.c: New file.
4378 * mingwex/math/cephes_emath.h: New file.
4379 * mingwex/math/cephes_emath.c: New file.
4380 * mingwex/Makefile.in (DISTFILES): Add new files.
4381 (MATH_DISTFILES): Ditto.
4382 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
4383 (MATH_OBJS): Add cephes_emath.o.
4384 (LIB_OBJS): Add $(STDLIB_OBJS).
4385 * include/stdlib.h (strtold, wcstold): Add prototypes.
4386 * include/wchar.h (wcstold): Add prototype.
4388 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
4390 * include/math.h (sqrt): Remove inline definition.
4391 (sqrtf): Replace inline definition with prototype.
4393 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
4394 argument less than zero.
4395 * mingwex/math/sqrtf.c (sqrtl): Likewise.
4397 2002-10-30 Guido Serassio <serassio@libero.it>
4399 * include/stdio.h (_getmaxstdio): Add prototype.
4400 (_setmaxstdio): Likewise.
4402 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
4404 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
4406 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4408 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
4410 Define WIN32_MEAN_AND_LEAN before including windows.h
4411 * include/stdlib.h (_fmode): Protect declaration as dllimported
4412 variable with __IN_MINGW_RUNTIME.
4414 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4416 * crt1.c: Include stdlib.h.
4418 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4420 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4421 (MINGW_OBJS): Add txtmode.o.
4422 (SRCDIST_FILES): Add txtmode.c binmode.c.
4423 crt1.c: Don't include fcntrl.h, stdlib.h.
4424 (_fmode): Declare, without dllimport attribute.
4425 (__p__fmode): Declare access function for dll's _fmode.
4426 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
4428 * txtmode.c: New file.
4429 * binmode.c: New file.
4430 * samples/fmode/test2.c: New file.
4431 * samples/fmode/jamfile: Add test2.exe target.
4433 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4435 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
4436 macros work with C89.
4437 (INTMAX_C, UINTMAX_C): Likewise.
4439 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4441 * include/string.h (strcasecmp): Make extern __inline__.
4442 (strncasecmp): Likewise.
4443 (wcscmpi): Likewise.
4445 2002-10-08 Heiko Gerdau <hg@technosis.de>
4447 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
4448 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
4451 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4453 * mingwex/math/powil.c: Rename powil to __powil.
4454 * mingwex/math/powl.c: Adjust declaration and call
4455 to __powil. Remove comment on powil.
4456 * mingwex/math/powi.c: New file.
4457 * mingwex/math/powif.c: New file.
4458 * mingwex/math/pow.c: New file.
4459 * mingwex/math/cephes_mconf.h. Add double and float
4460 versions of constants.
4461 (polevl): Add double precision function.
4463 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4465 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4467 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4469 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4470 (_imp____mbcur_max_dll): Likewise.
4472 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4474 * include/fcntl.h (_fmode): Remove declarations and
4475 compatibility defines.
4476 (_setmode, setmode): Remove prototypes.
4477 * include/stdlib (_fmode): Add declarations and
4478 compatibility defines. Change type to int.
4479 * include/io.h (_setmode, setmode): Add prototypes.
4480 * samples/fmode/all.c: Adjust includes.
4481 * samples/fmode/test.c: Likewise.
4482 * crt1.c (_CRT_fmode): Declare as int.
4483 * CRTfmode.c (_CRT_fmode): Likewise.
4485 * include/stdlib: Remove comment about MB_CUR_MAX.
4487 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4489 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4490 (_imp____mbcur_max_dll): Likewise.
4492 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4494 * mingwex/math/files.txt: Remove inadvertantly added file.
4496 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4498 * include/string.h (_strerror): Move into #ifndef
4499 __STRICT_ANSI__ block.
4501 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4503 * include/time.h (__need_NULL): Define before including
4504 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4506 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4508 * include/stdio.h: Correct comment about directory separator.
4510 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4512 * include/sys/time.h (timeval): Add struct definition and
4513 associated macros (copied from w32api/include/winsock.h).
4515 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4517 * include/_mingw.h: Increment version to 2.3.
4520 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4522 * mingwex/fegetenv.c: Change to \n line endings.
4523 * mingwex/vsnprintf.c: Ditto.
4524 * mingwex/vsnwprintf.c: Ditto.
4526 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4528 * mingwex/math/hypotl.c: Replace with version based on cephes
4531 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4533 * include/sys/param.h: Add ENDIAN defines.
4534 * test_headers.c: Include sys/param.h.
4536 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4538 * test_headers.c: Don't include varargs.h.
4539 * Makefile.in (test_headers): Don't use -std=xx
4542 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4544 * include/sys/param.h: New File.
4546 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4548 * include/math.h (asm): Change to __asm__ throughout.
4549 Expose ISO C99 functions if __GLIPCPP__.
4550 (hypotf): Use hypot, not _hypot in stub.
4552 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4554 * include/tchar.h: Ansi-fy another comment.
4556 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4558 * include/tchar.h: Ansi-fy comment.
4560 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4562 * test_headers.c : New file.
4563 * Makefile.in (test_headers): New target, using it,
4564 (SRCDIST_FILES): Distribute it.
4566 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4568 * include/_mingw.h: Increment version to 2.2.
4571 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4573 * include/unistd.h: Add include of process.h.
4575 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4577 * include/stdio.h (_fcloseall): Add prototype.
4579 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4581 * include/tchar.h (_tfdopen): Correct typo.
4583 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4585 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4586 nextafter): Add non-underscored stubs.
4587 * moldname-msvcrt.def: Regenerate.
4588 * moldname-crtdll.def: Regenerate.
4589 * mingwex/math: New directory.
4590 * mingwex/rint.c: Move to mingwex/math.
4591 * mingwex/rintf.c: Ditto.
4592 * mingwex/rintl.c: Ditto.
4593 * mingwex/round.c: Ditto.
4594 * mingwex/roundf.c: Ditto.
4595 * mingwex/roundl.c: Ditto.
4596 * mingwex/rint.c: Ditto.
4597 * mingwex/rintf.c: Ditto.
4598 * mingwex/rintl.c: Ditto.
4599 * mingwex/trunc.c: Ditto.
4600 * mingwex/truncf.c: Ditto.
4601 * mingwex/truncl.c: Ditto.
4602 * mingwex/signbit.c: Ditto.
4603 * mingwex/signbitf.c: Ditto.
4604 * mingwex/signbitl.c: Ditto.
4605 * mingwex/copysignl.S: Ditto.
4606 * mingwex/fdim.c: Ditto.
4607 * mingwex/fdimf.c: Ditto.
4608 * mingwex/fdiml.c: Ditto.
4609 * mingwex/fmin.c: Ditto.
4610 * mingwex/fminf.c: Ditto.
4611 * mingwex/fminl.c: Ditto.
4612 * mingwex/fmax.c: Ditto.
4613 * mingwex/fmaxf.c: Ditto.
4614 * mingwex/fmaxl.c: Ditto.
4615 * mingwex/fma.c: Ditto.
4616 * mingwex/fmaf.c: Ditto.
4617 * mingwex/fmal.c: Ditto.
4618 * mingwex/fpclassify.c: Ditto.
4619 * mingwex/fpclassifyl.c: Ditto.
4620 * mingwex/fpclassifyl.c: Ditto.
4621 * mingwex/isnan.c: Ditto.
4622 * mingwex/isnanf.c: Ditto.
4623 * mingwex/isnanl.c: Ditto.
4624 * mingwex/fucom.c: Ditto.
4625 * mingwex/fp_consts.c: Ditto. Split out float and long double
4627 * mingwex/math_stubs.c: Remove.
4628 * mingwex/log2.c: Remove. Replaced by math/log2.S
4629 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4630 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4631 * mingwex/math/acosf.c : New file.
4632 * mingwex/math/acosl.c: New file.
4633 * mingwex/math/asinf.c: New file.
4634 * mingwex/math/asinl.c: New file.
4635 * mingwex/math/atan2f.c: New file.
4636 * mingwex/math/atan2l.c: New file.
4637 * mingwex/math/atanf.c: New file.
4638 * mingwex/math/atanl.c: New file.
4639 * mingwex/math/cbrt.c: New file.
4640 * mingwex/math/cbrtf.c: New file.
4641 * mingwex/math/cbrtl.c: New file.
4642 * mingwex/math/ceilf.S: New file.
4643 * mingwex/math/ceill.S: New file.
4644 * mingwex/math/cephes_ld.h: New file.
4645 * mingwex/math/copysign.S: New file.
4646 * mingwex/math/copysignf.S: New file.
4647 * mingwex/math/cosf.S: New file.
4648 * mingwex/math/coshf.c: New file.
4649 * mingwex/math/coshl.c: New file.
4650 * mingwex/math/cosl.S: New file.
4651 * mingwex/math/exp2.S: New file.
4652 * mingwex/math/exp2f.S: New file.
4653 * mingwex/math/exp2l.S: New file.
4654 * mingwex/math/expf.c: New file.
4655 * mingwex/math/expl.c: New file.
4656 * mingwex/math/fabs.c: New file.
4657 * mingwex/math/fabsf.c: New file.
4658 * mingwex/math/fabsl.c: New file.
4659 * mingwex/math/floorf.S: New file.
4660 * mingwex/math/floorl.S: New file.
4661 * mingwex/math/fmodf.c: New file.
4662 * mingwex/math/fmodl.c: New file.
4663 * mingwex/math/fp_consts.h: Ditto.
4664 * mingwex/math/fp_constsf.c: Ditto.
4665 * mingwex/math/fp_constsl.c: Ditto.
4666 * mingwex/math/frexpf.c: New file.
4667 * mingwex/math/frexpl.S: New file.
4668 * mingwex/math/hypotf.c: New file.
4669 * mingwex/math/hypotl.c: New file.
4670 * mingwex/math/ilogb.S: New file.
4671 * mingwex/math/ilogbf.S: New file.
4672 * mingwex/math/ilogbl.S: New file.
4673 * mingwex/math/ldexpf.c: New file.
4674 * mingwex/math/ldexpl.c: New file.
4675 * mingwex/math/llrint.c: New file.
4676 * mingwex/math/llrintf.c: New file.
4677 * mingwex/math/llrintl.c: New file.
4678 * mingwex/math/llround.c: New file.
4679 * mingwex/math/llroundf.c: New file.
4680 * mingwex/math/llroundl.c: New file.
4681 * mingwex/math/log10f.S: New file.
4682 * mingwex/math/log10l.S: New file.
4683 * mingwex/math/log1p.S: New file.
4684 * mingwex/math/log1pf.S: New file.
4685 * mingwex/math/log1pl.S: New file.
4686 * mingwex/math/log2.S: New file.
4687 * mingwex/math/log2f.S: New file.
4688 * mingwex/math/log2l.S: New file.
4689 * mingwex/math/logb.c: New file.
4690 * mingwex/math/logbf.c: New file.
4691 * mingwex/math/logbl.c: New file.
4692 * mingwex/math/logf.S: New file.
4693 * mingwex/math/logl.S: New file.
4694 * mingwex/math/lrint.c: New file.
4695 * mingwex/math/lrintf.c: New file.
4696 * mingwex/math/lrintl.c: New file.
4697 * mingwex/math/lround.c: New file.
4698 * mingwex/math/lroundf.c: New file.
4699 * mingwex/math/lroundl.c: New file.
4700 * mingwex/math/modff.c: New file.
4701 * mingwex/math/modfl.c: New file.
4702 * mingwex/math/nearbyint.S: New file.
4703 * mingwex/math/nearbyintf.S: New file.
4704 * mingwex/math/nearbyintl.S: New file.
4705 * mingwex/math/nextafterf.c: New file.
4706 * mingwex/math/powf.c: New file.
4707 * mingwex/math/powl.c: New file.
4708 * mingwex/math/powil.c: New file.
4709 * mingwex/math/remainder.S: New file.
4710 * mingwex/math/remainderf.S: New file.
4711 * mingwex/math/remainderl.S: New file.
4712 * mingwex/math/remquo.S: New file.
4713 * mingwex/math/remquof.S: New file.
4714 * mingwex/math/remquol.S: New file.
4715 * mingwex/math/scalbn.S: New file.
4716 * mingwex/math/scalbnf.S: New file.
4717 * mingwex/math/scalbnl.S: New file.
4718 * mingwex/math/sinf.S: New file.
4719 * mingwex/math/sinhf.c: New file.
4720 * mingwex/math/sinhl.c: New file.
4721 * mingwex/math/sinl.S: New file.
4722 * mingwex/math/sqrt.c: New file.
4723 * mingwex/math/sqrtf.c: New file.
4724 * mingwex/math/sqrtl.c: New file.
4725 * mingwex/math/tanf.S: New file.
4726 * mingwex/math/tanhf.c: New file.
4727 * mingwex/math/tanhl.c: New file.
4728 * mingwex/math/tanl.S: New file.
4729 * mingwex/Makefile.in: Adjust VPATH for source files in
4732 Add MATH_DISTFILES and use it to build source distro.
4733 * include/math.h: Add protypes for new functions and
4734 reorganise to reflect ANSI,C99 status.
4736 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
4738 * include/tchar.h (_getts): Define as _getws for _UNICODE.
4739 (_putts): Define as _putws for _UNICODE.
4740 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
4742 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
4744 * include/float.h: #include_next<float.h> before header guard.
4746 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
4748 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
4750 * include/excpt.h (): Include windef.h not windows.h.
4751 * include/fcntl.h (_O_SHORT_LIVED): Add define.
4752 (_chmod): Add prototype.
4753 (_creat): Correct prototype.
4754 (SH_DENY*): Rename defines to _SH_DENY*.
4755 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
4756 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
4757 _IOAPPEND): Add defines.
4758 (_wfindfirst): Correct prototype.
4759 (_wfdopen): Add prototype.
4760 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
4762 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
4764 (_wcsdup): Correct prototype.
4765 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
4766 _mbsncat being in string.h.
4767 * include/wchar.h (_wfindfirst): Correct prototype.
4768 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
4770 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4772 * include/_mingw.h: Increment to version 2.1.
4773 * Makefile.in: Ditto.
4775 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4777 * Makefile.in (conf_prefix): New variable.
4778 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
4779 (bindist): Use dist_prefix.
4781 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
4783 * include/_mingw.h: Increment version to 2.0.
4784 * Makefile.in: Ditto.
4786 Merge in mingwex branch.
4788 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
4790 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
4791 * mingwex/fdim.c: New file.
4792 * mingwex/fdimf.c: New file.
4793 * mingwex/fdiml.c: New file.
4794 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
4796 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
4798 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
4800 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
4802 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
4804 * mingwex/isnanl.c: New file.
4806 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4808 * include/stdint.h: Include <stddef.h> to get wchar_t and wint_t.
4809 (WINT_MAX): Define to ((wint_t)-1).
4811 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4813 * include/wctype.h: Replace 'inline' with '__inline__'.
4814 * include/inttypes.h: Likewise.
4816 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4818 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
4819 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
4821 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4823 * mingwex/snprintf.c: Split out vsnprintf to....
4824 * mingwex/vsnprintf.c: New file.
4825 * mingwex/snwprintf.c: Split out vsnwprintf to...
4826 * mingwex/vsnwprintf.c: New file.
4827 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
4829 2002-05-15 Pascal Obry <obry@gnat.com>
4831 * include/dirent.h (DIR): Change dd_stat type to int.
4834 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
4836 * include/stdio.h (vsnprintf): Change inline to __inline__;
4837 (vsnwprintf): Likewise.
4838 * include/wchar.h (vsnwprintf): Likewise.
4841 (mbsinit): Likewise.
4843 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
4845 Change FP default precison from 53 to 64-bit mantissa.
4847 * Makefile.in (CRT0S): Add CRT_fp8.o.
4848 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
4849 * include/float.h: Replace standard float.h defines with
4850 #include_next<float.h> to use GCC's defines. Adjust comments
4853 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4855 * include/dos.h: Change prefix "__imp_" to "_imp__" for
4856 __GNUC__ without __DECLSPEC_SUPPORTED.
4857 * include/fnctl.h: Likewise.
4858 * include/math.h: Likewise.
4859 * include/stdio.h: Likewise.
4860 * include/stdlib.h: Likewise.
4861 * include/time.h: Likewise.
4862 * include/wctype.h: Likewise.
4863 * include/ctype.h: Likewise.
4865 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4867 Add atexit support for dlls.
4868 * crt1.c (atexit): Force thunk to _imp__atexit.
4869 (_onexit): Force thunk to _imp___onexit.
4870 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4871 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4872 (__dll_exit): New function to run atexit-registered functions
4873 and flush output buffers on DLL_PROCESS_DETACH or failed
4875 (atexit): Force use of private atexit table via _dllonexit,
4876 (_onexit): New function. Force use of private atexit table via
4878 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4879 _imp_<_symbol> is visible in import lib.
4880 * msvcrt20.def: Likewise.
4881 * msvcrt40.def: Likewise.
4882 * crtdll.def: Likewise.
4884 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4886 * include/fenv.h: Change header guard macro to _FENV_H_.
4887 (fenv_t, fexcept_t): Move into block protected by
4889 Cleanup some whitespace.
4890 * include/inttypes.h: Change header guard macro to
4893 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4895 * include/math.h (copysignl): Declare.
4896 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4897 (MATHOBJS):Add copysignl.o.
4899 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4901 * include/math.h (__signbitl, __isnanl): Declare.
4903 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4905 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4906 roundl, truncl, fmal, log2l): Declare.
4907 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4908 || !defined __STRICT_ANSI__.
4909 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4910 * mingwex/fmin.c (fmin): Likewise.
4911 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4912 * mingwex/fminf.c (fminf): Likewise.
4913 * mingwex/fmaxl.c: New file.
4914 * mingwex/fminl.c: New file.
4915 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4916 * mingwex/fpclassifyf.c: New file.
4917 * mingwex/fpclassifyl.c: New file.
4918 * mingwex/rint.c (rintf): Split out to...
4919 * mingwex/rintf.c: New file.
4920 * mingwex/rintl.c: New file.
4921 * mingwex/round.c (roundf): Split out to...
4922 * mingwex/roundf.c: New file.
4923 * mingwex/roundl.c: New file.
4924 * mingwex/trunc.c (truncf): Split out to...
4925 * mingwex/truncf.c: New file.
4926 * mingwex/truncl.c: New file.
4927 * mingwex/signbit.c (signbitf): Split out to...
4928 * mingwex/signbitf.c: New file.
4929 * mingwex/signbitl.c: New file.
4930 * mingwex/fmal.c: New file.
4931 * mingwex/copysignl.S: New file.
4932 * mingwex/log2l.c: New file.
4933 * mingwex/fp_consts.c: Add nanl definition.
4934 Comment out unused constants.
4935 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4936 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4937 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4939 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4940 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4941 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4943 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4945 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4947 Make wide char versions of opendir and friends.
4949 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4951 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4952 _wseekdir): Add prototypes for wide versions of corresponding
4954 * include/tchar.h; Add _UNICODE mappings for dirent.h
4955 structures and functions.
4956 * mingwex/dirent.c: Make _UNICODE neutral.
4957 * mingwex/wdirent.c: New file to define _UNICODE before
4959 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4960 (POSIX_OBJS): Add wdirent.o.
4961 (wdirent.o): Specify dependency on dirent.c as well as
4963 * samples/dirent/wtest.c: New file, wide version of test.c.
4965 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4967 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4968 ensure gcc include dir is searched despite -nostdinc.
4969 * profile/Makefile.in (INCLUDES): Likewise.
4970 * mingwex/Makefile.in (INCLUDES): Likewise.
4971 * include/stdarg.h: Replace with stub that just guards the
4972 real gcc system header with #ifndef RC_INVOKED
4973 * include/varargs.h: Likewise.
4974 * include/stddef.h: Likewise.
4975 * include/stdio.h: Include stdarg.h after defining
4977 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4978 Replace va_list with __VALIST throughout.
4980 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4982 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4983 * msvcrt.def (_fpreset): Mark as DATA so that only
4984 _imp___fpreset is exported.
4985 * msvcrt20.def (_fpreset): Likewise.
4986 * msvcrt40.def (_fpreset): Likewise.
4987 * crtdll.def (_fpreset): Likewise.
4988 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4990 (fpreset): Add alias.
4991 (__CRT_PC): Delete definition. _fpreset does it now.
4992 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4993 (fpreset): Add alias.
4994 (__CRT_PC): Delete definition.
4995 * moldname.def.in: Comment out fpreset.
4996 * moldname-msvcrt.def: Regenerate.
4997 * moldname-crtdll.def: Regenerate.
4998 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4999 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
5000 with the _fpreset determined by startup CRT_fp object.
5002 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
5004 * CRT_fp8.c: New file.
5005 * CRT_fp10.c: New file.
5006 * crt1.c (__CRT_PC) Declare.
5007 (__CRT_fesetenv): New static function, using _CRT_PC.
5008 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
5009 (_gnu_exception_handler): Likewise.
5010 * Makefile.in (CRT0S): Add CRT_fp10.o.
5011 (MINGW_OBJS): Add CRT_fp8.o.
5012 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
5013 Add CRT_fp8.o, CRT_fp10.o dependancies.
5014 * include/float.h (_fpreset): Expand comment.
5015 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
5016 (extended precison) environmemt.
5017 (FE_PC53_ENV): New define for MSVCRT default environmemt.
5018 (FE_DFL_ENV): Define as FE_PC53_ENV.
5019 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
5020 precision control for default environment.
5022 * include/math.h: Fix long comment line.
5023 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
5025 * profile/configure: Regenerate.
5027 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
5029 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
5031 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
5033 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
5034 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
5035 (__mingw_fseek): New function to work around Win9x f/lseek bug.
5036 (__mingw_fwrite): Likewise.
5037 (__mingw_is_win9x): New helper function.
5039 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
5040 (__mingw_fseek): New prototype and define to replace fseek.
5041 (__mingw_fwrite): New prototype and define to replace fwrite.
5042 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
5043 * moldname-crtdll.def: Remove CR from end of line.
5044 * moldname-msvcrt.def: Ditto.
5046 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
5048 * profile/configure.in (CRT0S): Configure name of gcrt?.o
5049 based on target, building gcrt0.o for cygwin -mno-cygwin.
5050 * profile/configure: Regenerate.
5051 * profile/Makefile.in (CRT0S): Use name from configure.
5052 (gcrt0.o): New rule.
5053 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
5055 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5057 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
5058 _fpecode): Remove prototypes copied from float.h.
5059 (nan, nanf): Move into block protected against RC_INVOKED
5061 * include/stdlib.h (_Exit): Change from static inline to
5063 * mingwex/_Exit.c : New file.
5064 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
5066 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5068 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
5069 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
5070 (configdirs): Likewise.
5071 (LIBGMON_A): Define for cygwin target as well.
5072 * configure: Regenerate.
5073 * profile/configure.in (THREAD_DLL): Remove define.
5074 (LIBM_A): Remove define.
5075 (LIBGMON_A): Define for cygwin target as well.
5076 * profile/configure: Regenerate.
5077 * profile/makefile.in (install): Install to inst_libdir and
5079 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
5080 (OPTFLAGS): New define.
5081 (ALL_CFLAGS): Add $(OPTFLAGS).
5082 (ALL_CXXFLAGS): Same.
5083 (.c.o:): Remove ALL_CXXFLAGS.
5085 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
5087 * include/stdint.h: Add missing newline at eof.
5088 * include/stdio.h (snprintf): Add prototype.
5089 (vsnprintf): Add prototype and inline definition.
5090 (snwprintf): Add prototype.
5091 (vsnwprintf): Add prototype and inline definition.
5092 * include/wchar.h (snwprintf): Add prototype.
5093 (vsnwprintf): Add prototype and inline definition.
5094 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
5096 * mingwex/snprintf.c: New file.
5097 * mingwex/snwprintf.c: New file.
5099 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
5101 * configure.in: Add mingwex as SUBDIRS and configdirs.
5102 * configure: Regenerate.
5103 * Makefile.in (MINGW_OBJS): Remove dirent.o.
5104 (SRC_DIST_FILES): Remove dirent.c.
5106 * include/stdlib.h (_Exit): Add static inline
5108 (struct lldiv_t): Define.
5109 (lldiv): Add prototype.
5110 (llabs): Add extern inline function.
5111 (strtoll,strtoull): Add prototypes.
5112 (wcstol, wcstoul, wcstod): Group together.
5113 (strtof, wcstof): Add extern inline definitions.
5114 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
5115 and extern inline definitions.
5116 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
5117 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
5119 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
5120 (wcstof): Add extern inline definition.
5121 * include/math.h (nan, nanf): Add prototypes.
5122 (NAN, INFINITE): Define constants.
5123 (fpclassify, isnan ,signbit): Add macros and supporting float
5124 and double functions.
5125 (isfinite, isinf, isnormal): Add macros.
5126 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
5128 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
5129 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
5130 (copysign, logb, nextafter, scalb): Add prototypes and
5131 inline stubs for underscored versions in msvcrt.dll.
5132 * include/inttypes.h: New file.
5133 * include/fenv.h: New file
5135 Add new mingwex subdir and files.
5136 * mingwex: New directory.
5137 * mingwex/Makefile.in: New file.
5138 * mingwex/configure.in: New file.
5139 * mingwex/configure: Generate.
5140 * mingwex/dirent.c: Moved here from parent dir.
5141 * mingwex/atoll.c: New file.
5142 * mingwex/feclearexcept.c: New file.
5143 * mingwex/fegetenv.c: New file.
5144 * mingwex/fegetexceptflag.c: New file.
5145 * mingwex/fegetround.c: New file.
5146 * mingwex/feholdexcept.c: New file.
5147 * mingwex/feraiseexcept.c: New file.
5148 * mingwex/fesetenv.c: New file.
5149 * mingwex/fesetexceptflag.c: New file.
5150 * mingwex/fesetround.o: New file.
5151 * mingwex/fetestexcept.c: New file.
5152 * mingwex/feupdateenv.c: New file.
5153 * mingwex/fma.S: New file.
5154 * mingwex/fmaf.S: New file.
5155 * mingwex/fmax.c: New file.
5156 * mingwex/fmaxf.c: New file.
5157 * mingwex/fmin.c: New file.
5158 * mingwex/fminf.c: New file.
5159 * mingwex/fp_consts.c: New file.
5160 * mingwex/fpclassify.c: New file.
5161 * mingwex/fucom.c: New file.
5162 * mingwex/fwide.c: New file.
5163 * mingwex/imaxabs.c: New file.
5164 * mingwex/imaxdiv.c: New file.
5165 * mingwex/isnan.c: New file.
5166 * mingwex/isnanf.c: New file.
5167 * mingwex/lltoa.c: New file.
5168 * mingwex/lltow.c: New file.
5169 * mingwex/log2.c: New file.
5170 * mingwex/log2f.c: New file.
5171 * mingwex/math_stubs.c: New file.
5172 * mingwex/mbsinit.c: New file.
5173 * mingwex/rint.c: New file.
5174 * mingwex/round.c: New file.
5175 * mingwex/signbit.c: New file.
5176 * mingwex/sitest.c: New file.
5177 * mingwex/strtof.c: New file.
5178 * mingwex/strtoimax.c: New file.
5179 * mingwex/strtoumax.c: New file.
5180 * mingwex/testwmem.c: New file.
5181 * mingwex/trunc.c: New file.
5182 * mingwex/ulltoa.c: New file.
5183 * mingwex/ulltow.c: New file.
5184 * mingwex/wcstof.c: New file.
5185 * mingwex/wcstoimax.c: New file.
5186 * mingwex/wcstoumax.c: New file.
5187 * mingwex/wmemchr.c: New file.
5188 * mingwex/wmemcmp.c: New file.
5189 * mingwex/wmemcpy.c: New file.
5190 * mingwex/wmemmove.c: New file.
5191 * mingwex/wmemset.c: New file.
5192 * mingwex/wtoll.c: New file.
5194 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5196 * include/mbstring.h: New file.
5197 * include/mbctype.h: New file.
5199 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5201 * include/tchar.h (__TEXT): Make same as define in
5202 w32api/include/winnt.h.
5204 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5206 * include/tchar.h (_tputenv): Add UNICODE mappings.
5207 (_tsearchenv): Likewise.
5208 (_tmakepath): Likewise.
5209 (_tsplitpath): Likewise.
5210 (_tfullpath): Likewise.
5212 2002-04-18 Pascal Obry <obry@gnat.com>
5214 * dirent.c (opendir): Convert given pathname to
5217 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5219 * include/_mingw.h: Increment version.
5220 * Makefile.in: Ditto.
5222 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5224 * moldname-crtdll.def: Remove CR from end of line.
5225 * moldname-msvcrt.def: Ditto.
5226 * Makefile.in: Use bzip2 compression for Cygwin target.
5228 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
5230 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
5231 TLOSS, PLOSS): Move oldname defines back, following
5232 the underscored names.
5234 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
5236 * include/stdio.h (_snwprintf): Correct spelling.
5237 (_vsnwprintf): Likewise.
5238 * include/wchar.h (_snwprintf): Correct spelling.
5239 (_vsnwprintf): Likewise.
5241 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
5243 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
5244 (wpopen): Add if !(__CRTDLL__).
5245 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
5247 (moldname-crtdll.def rule): Likewise.
5248 * moldname-msvcrt.def: Regenerate.
5249 * moldname-crtdll.def: Regenerate.
5250 * include/stdio.h (wpopen):Use prototype, not a define.
5251 (_swnprintf): Add prototype.
5252 (_vswnprintf): Likewise.
5254 * include/wchar.h (_swnprintf): Add prototype.
5255 (_vswnprintf): Likewise.
5258 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5260 * include/malloc.h (_heapinfo): Correct structure definition.
5261 (_USEDENTRY,_FREEENTRY): Add defines.
5262 Add comment on platform support for _heap* functions.
5263 (_get_sbh_threshold): Add prototype.
5264 (_set_sbh_threshold): Likewise.
5265 (_expand): Likewise.
5267 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5269 * profile/profil.c: Update copyright info.
5270 * profile/profil.h: Likewise.
5271 * profile/gcrt0.c: Likewise.
5273 2002-01-25 Pascal Obry <obry@gnat.com>
5275 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5277 * profile/gmon.c: Define bzero as memset if mingw32.
5278 (monstartup): Use it.
5280 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5282 * include/tchar.h (_TCHAR): Add missing ;.
5284 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5286 * include/tchar.h (_TCHAR): Add typedefs.
5288 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5290 * include/stdlib.h (_onexit_t): Add typedef.
5291 (_onexit): Add prototype.
5293 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5295 * msvcrt.def: Revert accidental change.
5296 * include/stdlib.h: Ditto.
5298 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5300 * Makefile.in: Increment VERSION.
5301 * include/_mingw.h: Ditto.
5303 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5305 * include/strings.h: New File.
5307 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5309 * include/math.h (_FPCLASS* ): Add defines from float.h.
5310 (IEEE recommended functions): Add declarations from float.h.
5311 * include/float.h (_FPCLASS* ): Protect against redefinition.
5313 2001-11-29 Wu Yongwei <adah@netstd.com>
5315 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5316 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5317 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5318 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5319 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5320 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5321 Correct spelling of "disclaimed" in comments.
5322 * include/excpt.h: Another spelling correction.
5324 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5326 * include/errno.h: Fix "errno is not a prototype" warning.
5328 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
5330 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
5331 differences between ANSI and non-ANSI versions.
5332 (_ctype[],_pctype): Declare vars.
5333 (__ISCTYPE): New helper macro using _pctype.
5334 (is* ctype functions): Use __ISCTYPE to define inline versions.
5335 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
5337 (isw* ctype functions): Inline definitions.
5338 * include/wctype.h (_ctype[],_pctype): Declare vars.
5339 (isw* ctype functions): Inline definitions.
5342 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5344 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
5345 __fpecode): Use __STDC__ prototypes.
5348 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
5350 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
5351 * mthr_init.c (DllMain) Run dtors if a process terminates.
5352 * mthr.c (__mingwthr_add_key_dtor) Removed.
5353 (___mingwthr_add_key_dtor) New.
5354 (___mingwthr_remove_key_dtor) New.
5355 (__mingwthr_run_key_dtors) Complete rewrite.
5356 (__mingwthr_remove_key_dtor) New.
5358 2001-11-05 Egor Duda <deo@logos-m.ru>
5360 * Makefile.in: Delete unused executable after creating base-files.
5362 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5364 * include/errno.h (_errno): Use __STDC__ prototype.
5365 Thanks to: Jim Barton.
5367 2001-11-04 "stefan" <stefan@lkcc.org>
5369 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
5371 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5373 * include/io.h (_commit): Add declaration.
5374 Thanks to: "stefan" <stefan@lkcc.org>
5376 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5378 * include/sys/stat.h: Make S_IS* macros safer.
5380 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
5382 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
5384 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5386 * include/stdlib.h (__p__environ, __p__wenviron): Use
5387 __STDC__ prototypes.
5389 2001-09-19 Earnie Boyd <earnie@SF.net>
5391 * Makefile.in: Remove the /usr from the install target.
5392 (VERSION): Increment.
5393 include/_mingw.h: Ditto.
5395 2001-09-17 Earnie Boyd <earnie@SF.net>
5397 * Makefile.in: Increment version.
5398 * include/_mingw.h: Ditto.
5400 2001-09-10 Earnie Boyd <earnie@SF.net>
5402 * dossh: Remove inadvertantly imported file.
5404 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5406 * dirent.c (opendir): Use GetFileAttributes rather than stat
5407 to determine if input arg is dir.
5409 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
5411 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5413 * include/varargs.h (va_list): Ditto.
5414 * include/stdio.h (va_list): Ditto.
5416 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5418 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5419 * include/stdio.h (_IORW): Change constant to 0x0080.
5420 (TMP_MAX): Add new define.
5422 (_wP_tmpdir): Ditto.
5423 (L_tmpnam): Change constant to 16.
5425 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
5427 * include/malloc.h: Fix non-ANSI comment after #endif.
5429 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5431 * profile/configure.in: Make msvcrt.dll version default.
5432 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
5433 * provile/configure: Regenerate.
5435 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
5437 * include/stdio.h (swscanf): Make first arugument const.
5438 * include/wchar.h (swscanf): Ditto.
5439 * include/tchar.h (_tfopen): New _UNICODE define.
5441 (_tsetlocale): Ditto.
5443 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5445 * profile/Makefile.in (mkinstalldirs): Correct relative path.
5447 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5449 * include/_mingw.h: Change version to 1.0.
5452 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
5454 * include/tchar.h: (__TEXT): Remove undef.
5458 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5460 * include/tchar.h: (__TEXT): Add private macro.
5461 (_TEXT): Modify definition to use __TEXT.
5463 This change allows the passing of a MACRO as an argument and have that
5464 MACRO resolved first.
5465 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5467 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5469 * Makefile.in: Increment version to 0.5
5470 * include/_mingw.h: Increment minor version
5472 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5474 * include/assert.h: (assert): Remove ; from end of definition
5475 Thanks to: AJ Reins <tbisp@qwest.net>
5477 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5479 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5480 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5482 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5484 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5486 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5488 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5489 are actually C functions. These functions are resolved via the
5490 -lmsvcp60 library and comments were placed in the header.
5492 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5494 * include/stdlib.h (__p__pgmptr): add prototype.
5495 (__p__wpgmptr): likewise.
5496 (_pgmptr_dll): move declaration from dos.h.
5497 (_wpgmptr_dll): likewise.
5498 (_pgmptr): conditional define (MSVCT/CRTDLL).
5499 (_wpgmptr): likewise.
5500 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5501 (_os*_dll variables): likewise.
5502 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5503 (_wpgmptr_dll): likewise.
5505 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5507 * include/stdint.h: New file.
5509 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5511 * include/wchar.h: Protect prototypes only declared in the C++ STL
5512 from being declared unless __cplusplus is defined.
5514 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5516 * include/stdlib.h: Apply Danny Smith patch 102730
5517 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5518 (_wgetenv) Correction to return type.
5520 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5522 * include/locale.h: Apply Danny Smith patch 101834
5523 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5524 (LC_MIN) Add definition.
5526 (_wsetlocale) Add prototype.
5528 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5530 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5531 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5532 Create a libcoldname.a for the oldname library for CRTDLL.
5533 Restrict libmoldname.a for the oldname library for MSVCRT.
5534 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5535 Restructure the $target_os case logic.
5536 Always name the MinGW thread dll helper mingwm.
5537 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5538 * configure: regenerate.
5540 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5542 * Makefile.in: Fix bindist target to distribute the correct files.
5543 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5544 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5546 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5548 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5549 Add variables and targets to control binary and source distributions.
5550 Add variables and targets to control snapshot distribution.
5551 * profile/gmon.h: Add missing #endif for #ifndef.
5552 * profile/ChangeLog: Merge entries here and remove.
5553 * profile/Makefile.in: Add variables and targets to control
5557 * config.guess: ditto.
5558 * config.sub: ditto.
5559 * mkinstalldirs: ditto.
5560 * install-sh: ditto.
5561 * configure: regenerate.
5562 * profile/configure: ditto.
5564 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5566 * Merge in changes from
5567 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5568 * include/direct.h: add guard around MSVCRT-only prototytpes
5569 * include/io.h: add __int64 struct definitions and function prototypes;
5570 add guard for MSVCRT-only prototypes
5571 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5572 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5573 put wchar functions together to make sync with wchar.h easier
5574 * include/stdlib.h: add wide char functions (__MSVCRT__)
5575 * include/string.h: add string collation functions ( __MSVCRT__)
5576 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5577 * include/tchar.h: add macros and macro function definitions
5578 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5579 enclose more functions in __MSVCRT__ guard;
5580 some oldname wide char function prototypes #if (0)'d
5581 * profile/gmon.h: add guard around BSD-ish typedefs
5583 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5585 * Makefile.in: Use a different variable name for subdirectory since the
5586 previous one was used by the top level make.
5588 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5590 * Makefile.in: Install mingw stuff in a subdirectory if building under
5593 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5595 * Makefile.in (subdirs): Eliminate for loop.
5597 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5599 * Makefile.in (subdirs): Previous change did not fix problem in
5602 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5604 * Makefile.in: Avoid installing dll if we're cross building and the
5605 cross-host system isn't a Windows system.
5606 * configure.in: Detect cross-hosting situation and set appropriate
5607 variables in Makefile.in.
5608 * configure: Regenerate.
5610 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5612 * configure.in: Change HEADER_SUBDIR to mingw32.
5613 * configure: Regenerate.
5615 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5617 * include/string.h: Use proper prototype for _strerror.
5619 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5621 * Makefile.in (subdirs): Workaround for broken shells.
5623 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5625 * Snapshot 2000-02-03.
5627 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5628 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5629 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5630 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5633 * Makefile.in (all): Build CRT0S first.
5634 (libmingwthrd.a): Remove thread support DLL from dependency.
5636 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5638 * Snapshot 2000-01-21.
5640 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5642 Merge in changes from Cygwin:
5643 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5644 (SUBDIRS): Likewise.
5645 * Makefile.in (HEADER_SUBDIRS): New variable.
5646 (install): Use to install Mingw headers to a subdirectory if building
5648 (DLL_CC_STUFF): Add DLL entry point.
5649 * configure: Regenerate.
5651 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5653 * include/stdio.h (fsetpos): Fix prototype.
5654 (fpos_t): Fix for MSVCRT.
5655 * include/float.h (fpreset): Add prototype.
5656 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5658 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5659 export using libmoldname.a.
5660 * crtdll.def: Add DATA tags.
5661 * msvcrt.def: Likewise.
5662 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5663 both MSVCRT and CRTDLL.
5664 * moldname-crtdll.def: Regenerate.
5665 * moldname-msvcrt.def: Regenerate.
5667 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5669 * Snapshot 1999-12-21.
5671 * include/wctype.h: New file.
5672 * include/ctype.h (MB_CUR_MAX): Define.
5674 * include/stdlib.h (MB_CUR_MAX): Define.
5675 * include/wchar.h: Define stat, _stat structures here as well.
5676 * include/float.h: Add invalid subconditions (_SW) and floating
5677 point error (_FPE) macros.
5678 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5679 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5680 * include/sys/types.h: Likewise.
5682 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5684 * profile/profil.c (profile_on): Set the profiler thread priority to
5685 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5686 * Snapshot 1999-11-18.
5688 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5690 Released 1999-11-07.
5692 * Makefile.in (CRT0S): Add crtst.o.
5693 (install): Install in subdirs as well.
5694 * dirent.h (struct _stat): Rename from struct stat.
5695 * include/tchar.h: Add some new macros. Thanks to
5696 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5697 * profile/Makefile.in (install): Fix target.
5699 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5701 * Makefile.in: Add support for profile directory.
5702 * configure.in: Likewise.
5703 * configure: Regenerate.
5705 * profile: Imported profiling sources from winsup-19991026 snapshot.
5706 * profile/Makefile.in: New file.
5707 * profile/configure.in: New file.
5708 * profile/configure: Generate.
5709 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5710 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5711 * profile/gmon.c (unistd.h): Include conditionally.
5712 (sys/param.h): Likewise.
5713 * profile/mcount.c (sys/param.h): Likewise.
5714 * profile/profil.c (profile_on): thread id is DWORD, not int.
5717 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5719 * include/stdlib.h: Add wide character version of argv/environ.
5721 * include/wchar.h: More wide character prototypes.
5722 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
5724 * dllcrt1.c (init.c): Don't include.
5725 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
5726 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
5728 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
5730 * moldname.def: Remove file.
5731 * moldname.def.in: And add this.
5732 * moldname-msvcrt.def: Generate from moldname.def.in.
5733 * moldname-crtdll.def: Likewise.
5735 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
5736 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
5737 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
5739 * Makefile.in: Update.
5740 * configure.in: Likewise. Also add *cygwin* target for building
5741 under Cygwin winsup.
5742 * configure: Regenerate.
5744 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
5746 * include/_mingw.h: Add version macros.
5747 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
5748 Also add wide character versions shared with wchar.h.
5749 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
5750 * include/io.h (sopen, _sopen): Fix prototype.
5751 Add wide character prototypes.
5752 * include/wchar.h: Likewise.
5753 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
5754 underscored versions. Potential incompatibility.
5755 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
5756 Add wide character prototypes.
5757 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
5760 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
5762 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
5763 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
5765 * configure: Rengerate.
5766 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
5767 dll name and crt's. CRTDLL and MSVCRT are meant to created
5768 separately, so remove all the *-msvcrt* targets.
5769 (libmingwthr.a): New target. Dummy thread support archive.
5770 (LIBS): Add libmingwthr.a.
5771 (CRT0S): Use CRT_ID. Add crtmt.o.
5772 (MINGW_OBJS): Add crtst.o.
5773 * main.c (WinMain): Fix prototype.
5774 * crtmt.c: New file.
5775 * crtst.c: New file.
5777 * include/process.h (_beginthreadex): Fix prototype.
5778 * include/_mingw.h (__int64): Define for __GNUC__.
5779 * include/tchar.h (_ttol): Add macro.
5780 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
5781 _i64tow, _ui64tow, _wtoi64): Add prototypes.
5783 Reported by Emanuele Aliberti <ea@iol.it>:
5784 * include/tchar.h (_ttoi): Add macro.
5786 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
5787 * include/stdio.h (_snprintf): Add prototype.
5788 (_vsnprintf): Likewise.
5790 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
5792 Reported by Tor Lillqvist <tml@iki.fi>:
5793 * include/stdlib.h (__p___argv): Fix return type.
5795 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5798 * include/errno.h (errno): It's linked in from startup, not imported.
5799 * include/stdlib.h (errno): Likewise.
5800 * include/io.h: Guard against conflicting macros and prototypes in
5802 * include/stdlib.h: Likewise.
5803 * include/string.h: Likewise.
5804 * include/time.h: Likewise.
5806 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5808 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
5809 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
5810 * Makefile.in (INCLUDES): Remove old windows32 include directory.
5812 * crt1.c (_gnu_exception_handler): Fix prototype.
5813 (__mingw_CRTStartup): New function based on mainCRTStartup.
5814 (mainCRTStartup): Set the app type for MSVCRT and call
5816 (WinMainCRTStartup): Likewise.
5817 * init.c (_startupinfo): Define.
5818 (_getmainargs): Add 5th parameter.
5819 (_mingw32_init_mainargs): Use.
5821 * ALL *.c files: Reformat according to GNU coding style.
5823 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
5825 * Makefile.in (INCLUDES): Add w32api include directory.
5827 * include/_mingw.h: New file.
5828 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
5829 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
5830 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
5831 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
5832 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
5833 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
5835 * include/stdlib.h (atexit): Fix prototype.
5837 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
5839 * include/stdio.h (_tempnam): Fix prototype.
5840 (tempnam): Likewise.
5841 * include/stdlib.h: Replace with GCC's version, and guard
5844 From Anders Norlander <anorland@hem2.passagen.se>:
5845 * include/stdlib.h (__argc): Declare.
5848 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
5850 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
5852 * Makefile.in (_libm_dummy.o): New target.
5855 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
5857 * Released 1999-03-16 along with egcs-1.1.2.
5859 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
5861 * Makefile.in (LIBS): Add libm.a.
5862 (libm.a): Dummy libm.a.
5864 * Makefile.in: Update from winsup 1999-02-08 snapshot.
5865 Preserve local changes.
5866 (mkinstalldirs): In ../, not ../../.
5867 (INCLUDES): Point to local windows32api headers and use -nostdinc.
5869 (LIBS): Add libmoldname-msvc.a.
5870 (libmoldname-msvc.a): Add target.
5871 (distclean): Add target.
5873 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5875 * include/dir.h: Reintroduce as an obsolescent header.
5876 * crt1.c (signal.h): Include.
5877 (_gnu_exception_handler): New function to properly handle win32
5878 asynchronous signals.
5879 (mainCRTStartup): Use.
5881 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5883 * include/direct.h: Include io.h instead of dir.h
5884 * include/dirent.h: Likewise.
5885 * include/dos.h: Likewise.
5886 * include/stdio.h: Replace reference to dir.h with io.h.
5888 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5890 * 1999-01-01 release bundled with egcs-1.1.1.
5892 * include/io.h: Incorporate dir.h.
5893 * include/dir.h: Remove.
5894 * include/signal.h: Move RC_INVOKED up a bit.
5896 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5898 * include/signal.h (sig_atomic_t): Define.
5900 * include/malloc.h: Import defs from deprecated alloc.h.
5901 * include/alloc.h: Remove.
5903 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5904 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5905 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5906 _off_t instead of long for st_size.
5908 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5910 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5911 * include/stdlib.h: Here.
5913 * include/netdb.h: Remove.
5914 * include/arpa/inet.h: Remove.
5915 * include/netinet/in.h: Remove.
5916 * include/sys/socket.h: Remove.
5918 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5922 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5923 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5925 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5927 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5928 (jmpbuf): typedef using above.
5929 (setjmp, longjmp): Prototype using jmpbuf.
5931 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5932 obsolescent imported names, ie., from __imp__ to _imp___.
5934 Also ignored empty include/sys/param.h and incorrect
5935 include/sys/times.h.
5937 * CRTinit.c: New file.
5938 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5940 * include/io.h (umask): Fix prototype.
5941 * include/stdlib.h (OS constants): Replace with Colin's.
5942 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5943 * include/sys/state.h: Merge.
5945 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5947 * include/assert.h (assert): Lose the trailing semicolon.
5949 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5951 * include/math.h (matherr): Declare.
5952 * include/stdio.h (fileno, _fileno): Declare.
5953 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5956 * include/stdio.h (fdopen, _fdopen): Add const.
5957 (getw, putw): Declare.
5958 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5960 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5962 * include/time.h (_timezone): Undefine.
5963 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5965 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5967 * include/stdlib.h (environ): Use DLL version.
5968 * init.c (environ): Undefine it before use.
5970 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5972 * Update to 980309 snapshot from Colin Peters.
5974 * include/utime.h: remove
5975 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5976 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5977 patches to define these.
5978 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5979 (_daylight, _timezone, _tzname, _tzset): Define.
5981 * include/netdb.h: Add from Colin's windows32api changes.
5982 * include/sys/socket.h: Likewise.
5983 * include/arpa/inet.h: Likewise.
5984 * include/netinet/in.h: Likewise.
5986 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5988 * Update to 980128 snapshot from Colin Peters.
5990 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5992 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5994 * configure: Regenerate.
5996 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5998 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5999 Files renamed and include hierarchy loses directories named
6002 * include/dos.h: from Jan-Jaap.
6004 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
6006 Changes to conform to FSF tree.
6008 * crt1.c: Renamed from mcrt0.c.
6009 * dllcrt1.c: Renamed from dllcrt0.c.
6010 * Makefile.in: Update above. Also renamed libmoldnames.a to
6013 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
6015 * crtdll.def: Export all functions but the ones with funny names.
6016 * moldnames.def: Add fdopen since fileno is already there.
6017 * include/nonansi/dos.h: New file from Jan-Jaap.
6018 * include/errno.h: Add extern decl + various additions from JJ.
6019 * include/stdio.h: Likewise.
6020 * include/stdlib.h: Likewise.
6021 * include/nonansi/io.h: Likewise.
6022 * include/nonansi/process.h: Likewise.
6023 * include/sys/types.h: Likewise.
6025 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6027 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6029 * include/stdlib.h (free): Fix prototype to return void, not void*.
6030 * include/nonansi/process.h: Add P_* and WAIT_* defs.
6032 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
6033 * mcrt0.c: Likewise.
6035 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
6036 (libmoldnames.a): Add explicit rule to create it.
6038 1997-08-15 Rob Savoye <rob@cygnus.com>
6040 New directory for the minimalist cygwin environment.
6042 * crtglob.c: New file. Turn on file globbing support.
6043 * crt_noglob.c: New file. Turn off file globbing support.
6044 * ctype_old.c: New file. Wrappers for functions that don't
6046 * dirent.c: New file. Directory routines readdir, opendir, closedir.
6047 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
6048 * dllmain.c: New file. A stub DllMain function.
6049 * hugeval.c: New file. A gross hack to define HUGE_VAL.
6050 * init.c: New file. Common code to initialize standard file
6051 handles and command line arguments.
6052 * main.c: New file. A main for programs that only call WinMain.
6053 * mcrt0.c: New file. Default crt0 for mingw32.
6054 * oldnames.c: New File. Wrappers for functions that don't
6056 * string_old.c: New File.
6057 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
6058 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
6059 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
6060 * include/sys/types.h: New header file for mingw.
6061 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
6062 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
6063 utime.h,values.h,varargs.h}: New header files for mingw.
6064 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
6065 timeb.h,unistd.h}: New header files for mingw.
6066 * Makefile.in,configure.in: Build and configure support.
6067 * configure: Generated from autoconf 2.12 with Cygnus patches.