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 Resolve some strnlen() implementation issues.
25 * mingwex/strnlen.s (__mingw_strnlen) [!NUL]: Correct termination
26 logic; should have used jnz, not jz, to skip endpoint adjustment on
27 scanning past a terminal NUL character code.
29 * include/string.h [_POSIX_C_SOURCE >= 200809L] (strnlen): Do not
30 #define it, as this breaks GCC compilation; use __CRT_ALIAS instead,
31 with __JMPSTUB__ referencing via "oldname" libraries.
33 * Makefile.in (jmpstub_awk_script, libimpl_awk_script): Adapt to
34 facilitate assignment of __JMPSTUB__ and __LIBIMPL__ references to
35 libraries other than libmingwex.a
36 (strnlen.jmpstub.$OBJEXT): Assign it to all "moldname" libraries prior
37 to libmoldname80.a, in addition to libcoldname.a, as specified by the
38 __JMPSTUB__ assignment within <string.h>
40 2016-05-03 Keith Marshall <keithmarshall@users.sourceforge.net>
42 Enforce consistent specification of package version.
44 * include/_mingw.h: Rename as...
45 * include/_mingw.h.in: ...this build-time template file.
46 (__MINGW32_VERSION): Redefine it, in terms of...
47 (%PACKAGE_VERSION_LONG%): ...this substitution template.
48 (__MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION)
49 (__MINGW32_PATCHLEVEL): Likewise, redefine them in terms of...
50 (%PACKAGE_VERSION_MAJOR%, %PACKAGE_VERSION_MINOR%)
51 (%PACKAGE_VERSION_PATCH%): ...these.
53 * configure.ac (AC_CONFIG_SRCDIR): Adjust for renamed file.
54 (MINGW_AC_CONFIG_EXTRA_SRCDIR): Likewise, for similarly renamed
55 w32api/include/w32api.h.in file.
57 * Makefile.in (all-mingwrt-stage-1-only): Add dependency on...
58 (_mingw.h, w32api.h): ...these; add rule to generate them, using...
59 (PACKAGE_VERSION_SCRIPT, PACKAGE_VERSION_FORMAT): ...these new macros;
60 they apply appropriate substitutions to the renamed template files.
61 (install-mingwrt-headers): Explicitly add _mingwrt.h
63 2016-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
65 Make strnlen() available for all MSVCRT.DLL versions.
67 * msvcrt-xref/msvcrt.def.in (strnlen): Mark it as...
68 (__MINGW_DLSYM): ...this, excluding its exposure in libmsvcrt.dll, and
69 thus requiring a dlsym() lookup for versions which provide it.
71 * include/string.h [__MSVCRT_VERSION__>=__MSVCR80_DLL] (strnlen):
72 Declare prototype, for use from these non-free DLLs, otherwise...
73 [_POSIX_C_SOURCE >= 200809L] (strnlen): Define it as an alias for...
74 (__mingw_strnlen): ...this new libmingwex.a function.
76 * mingwex/strnlen.s: New file; it implements...
77 (__mingw_strnlen, __mingw_strnlen_s): ...these new functions.
79 * Makefile.in (libmingwex.a): Add requirement for...
80 (strnlen.$OBJEXT): ...this; add vpath specification for its source.
82 2016-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
84 Use correct paths for partially included header files.
86 * include/io.h include/process.h: Use 'iquote' #include "stdint.h", to
87 ensure that we get stdint.h from the same include directory.
88 * include/stdio.h: Likewise for #include "stdarg.h", and "sys/types.h"
89 * include/wchar.h: Likewise for all of #include "stdio.h", "stdlib.h",
90 "direct.h", "sys/stat.h", "io.h", "time.h", "locale.h", and "process.h"
91 * include/dir.h include/dos.h: Likewise for #include "io.h"
92 * include/direct.h: Likewise for #include "dos.h"
94 2016-04-13 Keith Marshall <keithmarshall@users.sourceforge.net>
96 Generalize procedure for installing manpages.
98 * man/dirname.man: Rename it as...
99 * man/dirname.3.man: ...this, with inherent MANSECT specification.
100 (TH): Use %PAGEREF% substitution for NAME, MANSECT, and DATE.
101 (MS-Windows): Do not append \[tm]; it doesn't render well in Windows
102 console. Further, correct typos; some syntactic adjustments.
104 * Makefile.in (%:%.man): New rule; define it.
105 (%.mancopy, %.mancopy-recursive): New rules; define and use with...
106 (reference_manpage): ...this new macro, defining it to map...
107 (dirname.3.man): ...this as the reference source file for both of...
108 (basename.3, dirname.3): ...these installed manpages.
109 (format_manpage): Add MANSECT and DATE to expansion of...
110 (%PAGEREF%): ...this sed substitution pattern.
112 2016-04-12 Keith Marshall <keithmarshall@users.sourceforge.net>
114 Update several incorrectly attributed header files.
116 * include/direct.h include/io.h include/locale.h include/math.h
117 * include/process.h include/stdio.h include/stdlib.h include/string.h
118 * include/sys/stat.h include/sys/types.h include/time.h: Identify the
119 original author as Colin Peters; Rob Savoye merely imported them into
120 the original CVS repository, when he created it.
122 * include/wchar.h: Likewise, imported by Rob Savoye, but the original
123 source file is unattributed.
125 2016-04-11 Keith Marshall <keithmarshall@users.sourceforge.net>
127 Eliminate all references to non-standard __NO_ISOCEXT macro.
129 * include/math.h: Tidy layout.
130 [!defined __NO_ISOCEXT]: Do not use this ugly double negative; in any
131 case, we do not want to encourage users to define such implementation
132 private macros; instead, prefer to make use of...
133 [defined _ISOC99_SOURCE]: ...this glibc compatible feature test.
134 [__STDC_VERSION__ >= 199901L]: Do not require this; it is implied, by
135 definition, in _ISOC99_SOURCE.
136 * include/stdio.h [!defined __NO_ISOCEXT]: Likewise; replace with...
137 [defined _ISOC99_SOURCE]: ...this, throughout.
139 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
141 Make resetting of __need_typedef requests more robust.
143 * include/sys/types.h [__need_off_t, __need___off64_t]
144 [__need_ssize_t, __need_time_t]: Move corresponding #undef out of, and
145 after the respective conditional blocks, which provide each associated
146 typedef, so ensuring that any repeat request is properly reset.
148 * include/time.h [__need_time_t]: Always delegate to <sys/types.h> for
149 typedef, and reset of request, even in cases where...
150 [_TIME_H]: ...this is already defined.
152 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
154 Add a missing comment terminator.
156 * include/io.h [!(defined _IO_H && defined _WCHAR_H)]: Properly
157 terminate the comment annotating the closing #endif statement.
159 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
161 Declare <dir.h> as formally deprecated.
163 * include/dir.h: Assert copyright.
164 (pragma GCC system_header): Declare it.
165 (_DIR_H): Define as multiple inclusion macro.
166 [!_DIR_H]: Emit "obsolete header" warning message.
168 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
170 Factor out <wchar.h> vs. <io.h> duplicate declarations.
172 * include/io.h: Assert copyright; tidy layout.
173 (_IO_H_): Rename this multiple inclusion guard macro...
174 (_IO_H): ...to this preferred form; do not define it when...
175 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
176 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
177 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
178 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
179 (_wfindnext64i32, _wfindfirst32, _wfindnext32, _findclose): ...only
180 these function prototypes, common to <wchar.h>, together with...
181 (_fsize_t, struct _wfinddata_t, struct _wfinddatai64_t)
182 (struct __wfinddata64_t, struct _wfinddata64i32_t)
183 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these
184 requisite data type definitions.
185 (pragma GCC system_header): Declare it.
186 (__need_intptr_t): Define, and include <stdint.h> to get...
187 (intptr_t): ...this typedef; neither define it locally, nor define...
188 (_INTPTR_T_DEFINED): ...this; delete all references.
189 (_FSIZE_T_DEFINED): Do not define it; delete all references; rather...
190 [!(defined _IO_H && defined _WCHAR)] (_fsize_t): Define it.
191 (FILENAME_MAX): Define it unconditionally.
192 (__struct_finddata_t): New temporary macro; define and use it to...
193 (struct _finddata_t, struct _wfinddata_t, struct _finddatai64_t)
194 (struct _wfinddatai64_t, struct __finddata64_t, struct __wfinddata64_t)
195 (struct _finddata64i32_t, struct _wfinddata64i32_t)
196 (struct _finddata32i64_t, struct _wfinddata32i64_t)
197 (struct __finddata32_t, struct __wfinddata32_t): ...define these.
199 * include/wchar.h (_WFINDDATA_T_DEFINED): Do not define it; delete all
200 references; filter out associated data type definitions, namely...
201 (struct _wfinddata_t, struct _wfinddatai64_t): ...these, and also...
202 (struct __wfinddata64_t, struct _wfinddata64i32_t): ...these, and...
203 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these.
204 (_WIO_DEFINED): Likewise, do not define it; delete all references;
205 filter out associated function prototype declarations for all of...
206 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
207 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
208 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
209 (_wfindnext64i32, _wfindfirst32, _wfindnext32): ...these; reproduce
210 them by selective inclusion of <io.h>.
212 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
214 Factor out <wchar.h> vs. <process.h> duplicate declarations.
216 * include/process.h: Assert copyright; tidy layout.
217 (_PROCESS_H_): Rename this multiple inclusion guard macro...
218 (_PROCESS_H): ...to this preferred form; do not define it when...
219 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
220 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
221 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
222 (_wspawnve, _wspawnvp, _wspawnvpe): ...only these functions.
223 [!__WCHAR_H_SOURCED__] (_PROCESS_H): Define it; declare all functions
224 normally specified herein, including those listed above, as required.
225 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
226 (__need_intptr_t): Define it prior to including <stdint.h>.
227 (pragma GCC system_header): Declare it.
229 * include/wchar.h (_WPROCESS_DEFINED): Delete it; filter out...
230 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
231 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
232 (_wspawnve, _wspawnvp, _wspawnvpe): ...these function prototypes;
233 reproduce them, by selective inclusion of <process.h>.
235 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
237 Enable selective retrieval of intptr typedefs from <stdint.h>.
239 * include/stdint.h: Assert copyright; tidy layout.
240 [__need_intptr_t || __need_uintptr_t] (_STDINT_H): Do not define it;
241 conceal all normally defined data types, except either or both of...
242 [__need_intptr_t] (intptr_t): ...this, and/or...
243 [__need_uintptr_t] (uintptr_t): ...this.
244 (pragma GCC system_header): Declare it.
246 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
248 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
250 * include/sys/stat.h: Assert copyright; tidy layout.
251 (pragma GCC system_header): Declare it.
252 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
253 (_SYS_STAT_H): ...this preferred naming convention; however, when...
254 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
255 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
256 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
257 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
258 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
259 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
260 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
261 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
262 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
263 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
264 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
265 (__struct_stat_defined): New macro; define, and use it to define...
266 (struct stat, struct _stat, struct _stati64, struct __stat64)
267 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
268 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
269 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
270 definition of types size_t and wchar_t; declare all header content,
271 including that declared when __WCHAR_H_SOURCED__ is defined, unless
272 already declared as a result of selective inclusion by <wchar.h>
273 (__need_size_t, __need_wchar_t): Do not define them; consequently,
274 there is no need to include <stddef.h>; do not do so.
276 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
277 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
278 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
279 (struct _stat64i32): Likewise; reproduce them by selective inclusion
282 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
284 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
286 * include/direct.h: Conditionally partition it, such that...
287 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
288 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
289 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
290 (_WDIRECT_DEFINED): Never define it; delete all references.
292 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
293 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
294 selectively #include <direct.h> to reproduce them.
296 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
298 Factor out <direct.h> vs. <dos.h> duplicate declarations.
300 * include/dos.h: Assert copyright; tidy layout.
301 (pragma GCC system_header): Declare it.
302 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
303 (_DOS_H): ...this preferred convention; do not define it when...
304 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
305 (struct _diskfree_t): ...this aggregate data type, together with...
306 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
307 (_getdiskfree): ...this associated function.
308 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
309 emit a warning that this header is obsolete, and should not be used.
310 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
311 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
312 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
313 neither is it necessary to #include <stddef.h>; do not do so. Also,
314 do not #include <_mingw.h> explicitly, but always #include <io.h>,
315 which will implicitly #include <_mingw.h> anyway.
317 * include/direct.h: Assert copyright; tidy layout.
318 (pragma GCC system_header): Declare it.
319 (_DIRECT_H_): Rename this multiple inclusion guard macro...
320 (_DIRECT_H): ...to adopt this preferred naming convention.
321 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
322 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
323 (_getdiskfree): Likewise, do not declare prototype; instead...
324 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
325 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
326 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
327 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
328 although needed, we may inherit it indirectly from <sys/types.h>,
329 included by <io.h> via <dos.h>.
331 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
333 Evade CPP mismatched apostrophe warnings in windres comments.
335 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
337 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
339 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
341 * include/locale.h: Assert copyright; tidy layout.
342 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
343 (_LOCALE_H): ...this; do not define it when...
344 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
345 (_wsetlocale): ...just this one visible function prototype.
346 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
347 (_WLOCALE_DEFINED): Do not define it; delete all references.
348 (pragma GCC system_header): Declare it.
350 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
351 visibility by selective inclusion of <locale.h> instead.
352 (_WLOCALE_DEFINED): Delete all references.
354 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
356 Resolve some "implicit function declaration" warnings.
358 * setargv.c (isspace): Include <ctype.h> for declaration.
359 * cpu_features.h (__cpu_features_init): Declare function prototype.
360 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
362 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
364 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
366 * include/stdlib.h [__WCHAR_H_SOURCED__]
367 (_STDLIB_H): Do not define it; restrict visible declarations to...
368 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
369 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
370 of regular <stdlib.h> content; full content is declared only when...
371 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
372 (_WSTDLIB_DEFINED): Do not define it; delete all references.
373 (pragma GCC system_header): Declare it; tidy layout.
375 * include/wchar.h: Delete duplicated declarations for...
376 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
377 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
378 include <stdlib.h> selectively, to maintain their visibility.
379 (_WSTDLIB_DEFINED): Delete all references.
381 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
383 Relocate misplaced umask() function prototypes.
385 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
386 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
387 here, but leave them for backward, or Microsoft, compatibility.
389 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
391 Correct another _BEGIN_C_DECLS imbalance error.
393 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
394 unbalanced instance deleted; one correctly balanced instance remains.
396 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
398 Support installation of headers with empty parts directory.
400 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
401 (install-mingwrt-headers): ...invoke it; if false, do not perform...
402 (INSTALL_SUB_HEADERS): ...this.
404 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
406 Reinstate typedef for non-standard off64_t.
408 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
409 (__off64_t): ...typedef derived from this; although non-standard, it
410 is gratuitously required when building GCC's libgfortran.a
412 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
414 Correct conditional compilation block nesting errors.
416 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
417 them balanced within, and around, conditional compilation blocks.
419 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
421 Feature test _MINGW32_EXTENDED_SOURCE renamed.
423 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
424 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
425 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
426 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
427 users should enable any conventional feature test which implies it.
429 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
430 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
432 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
434 Correct atexit() and _onexit() export declaration regression.
436 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
437 as DATA; declare them accordingly.
439 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
441 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
443 * include/string.h: Tidy layout.
444 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
445 (_stricmp, _strnicmp): Include their prototypes, selectively from...
446 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
447 * include/parts/strings.h: ...from here; file is obsolete; delete it.
449 * include/string.h (_wcscmpi): Define alias.
450 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
451 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
452 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
453 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
454 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
455 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
456 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
457 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
459 * include/strings.h (_STRINGS_H): Do not define it, when...
460 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
461 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
463 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
465 Refactor to make <parts/time.h> redundant.
467 * include/sys/types.h (time_t, __time32_t, __time32_t)
468 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
469 * include/parts/time.h: ...from here; preserve selective exposure.
471 * include/time.h (time_t, __time32_t, __time32_t): Get them...
472 * include/sys/types.h: ...from here, by selective inclusion.
474 * include/time.h (struct timespec, struct __mingw_extended_timespec)
475 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
476 * include/parts/time.h: ...from here; preserve selective exposure.
478 * include/parts/time.h: Delete file; it is no longer required.
480 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
482 Declare the nanosleep() function where POSIX expects it.
484 * include/time.h (__mingw_sleep): Declare function prototype.
485 (nanosleep): Declare prototype, and provide in-line implementation;
486 this is a reproduction of the original implementation, relocated...
487 * include/unistd.h (nanosleep): ...from here; remove it; hence...
488 (struct timespec): ...this need not be declared here, and there is
489 no need to include <parts/time.h>; remove reference.
491 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
493 Refactor <time.h> vs. <wchar.h> to avoid duplication.
495 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
496 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
497 (struct tm): Delete definition; delegate it, together with each of...
498 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
499 (wcsftime): ...these function prototypes; delete them, but note in
500 comments, that they remain declared, via delegation to...
501 * include/time.h: ...this; include it selectively, subject to...
502 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
503 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
504 [_TIME_H]: Process all definitions and declarations; otherwise...
505 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
506 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
507 (_WTIME_DEFINED): Obsolete macro; delete all references.
509 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
511 Implement support for POSIX "%n$*m$" printf() format control.
513 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
514 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
515 (__pformat_inline__): New macro; define, and use it where appropriate.
516 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
517 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
518 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
519 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
520 (__pformat_argmap_t): ...this new union data type; define it.
521 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
522 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
523 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
524 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
525 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
526 (__pformat_length_modifier, __pformat_check_length_modifier): New
527 locally defined static and/or inline functions; implement, and...
528 (__pformat): ...use them.
530 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
532 Add prototypes for Microsoft's _printf_p() family of functions.
534 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
535 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
536 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
537 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
538 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
539 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
540 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
541 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
542 available for selective inclusion by both <stdio.h> and <wchar.h>...
543 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
545 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
547 Adapt msvcrt-xref to become msvcrt.def.in provider.
549 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
550 filter value assignment; scale it upwards, by a factor of 0x10000.
551 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
552 (%.def) [msvcr*]: Do not preserve comments; define...
553 (__DLLNAME__): ...this preprocessor symbol.
555 * msvcrt.def.in: Content is obsolete; delete file and replace with...
556 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
557 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
558 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
559 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
560 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
562 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
564 Import msvcrt-xref documentation resources.
566 * msvcrt-xref: New directory.
567 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
568 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
569 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
570 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
572 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
574 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
576 * include/wchar.h: Some minor layout adjustments.
577 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
578 within the scope of reading <wchar.h>; undefine it at end of file.
579 (struct tm): Do not define; it is sufficient to keep it opaque.
580 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
581 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
582 directly; delegate to indirect definition by including <stdio.h>.
583 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
584 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
585 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
586 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
587 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
588 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
589 indirectly, by selective inclusion from <stdio.h>; hence include it.
591 * include/stdio.h: Assert copyright; tidy layout.
592 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
593 (_STDIO_H): ...this, but defined conditionally, subject to...
594 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
595 entities which are required by <wchar.h>; do not define...
596 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
597 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
598 are normally specified within <stdio.h>, INCLUDING those specifically
599 itemised above, as selectively required by <wchar.h>.
601 * pseudo-reloc.c: Some minor layout adjustments.
602 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
603 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
604 include <stddef.h> to guarantee it.
606 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
608 Enable selective definition of POSIX system types.
610 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
611 any specific __need_TYPE selector having been set prior to inclusion;
612 DO define it when no such selector is present, and undefine all such
613 selectors as may have been set, after evaluation of their effects.
614 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
615 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
616 accommodates reorganization of the file, to achieve a tidier layout.
617 (__have_typedef_off_t): New repeat definition guard; define it for
618 compilers which may choke on any repeated typedef for either of...
619 (off_t, _off_t): ...these; make them selectively defineable for...
620 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
621 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
622 in either case, redefine them in terms of...
623 (__off32_t): ...this new internal type, for consistency with...
624 (__off64_t): ...this previously defined non-standard type; also make
625 it selectively defineable, either by...
626 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
627 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
628 (__have_typedef___off64_t): New repeat definition guard; define it.
629 (ssize_t, _ssize_t): Also make them selectively defineable, on...
630 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
631 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
632 (__have_typedef_ssize_t): New repeat definition guard; define it.
634 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
636 Avoid user namespace pollution by non-standard type 'off64_t'.
638 * include/sys/types.h (off64_t): Rename it as...
639 (__off64_t): ...this implementation-private alternative name, so
640 eliminating the potential for user namespace pollution.
642 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
643 return type, and type of offset argument, in both prototype and inline
644 implementation; note that this addresses the issue of pollution in the
645 user namespace, while avoiding the issue of MinGW-Bug [#2024].
647 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
648 instead of 'off64_t', as offset argument type in function prototypes.
649 (ftello64): Likewise, for return type of inline function.
651 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
652 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
653 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
655 * mingwex/stdio/fseeko64.c: Assert copyright.
656 (fseeko64): Use '__off64_t' per modified function prototype.
658 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
660 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
662 * mingwex/ofmtctl.c: New file; it implements...
663 (_mingw_output_format_control): ...this new function; it provides
664 additional MinGW specific printf() format processing options.
666 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
668 * include/stdio.h (_mingw_output_format_control): Declare it.
669 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
670 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
671 manifest constant expressions; define them.
673 * mingwex/stdio/pformat.c: Revise licensing terms.
674 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
675 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
676 modifier; this matches the behaviour specified by ISO-C99, else...
677 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
678 previous MSVC compatible behaviour, treating it as an `L' modifier.
679 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
681 * mingwex/ofmt.c (ARGLIST): Subsume references to...
682 (ARGTYPE): ...this now obsolete macro; delete it throughout.
683 (update_output_format_flag): New inline function; it restricts flag
684 operations to affect only Microsoft's exponent digit bits.
685 [FUNCTION == _set_output_format]: Use it.
686 [FUNCTION == _get_output_format]: Likewise.
688 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
690 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
692 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
693 defined, when implied by any STDC or POSIX version selection, viz. ...
694 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
696 * include/stdlib.h: Assert copyright; tidy layout.
697 (_STDLIB_H_): Multiple inclusion guard macro renamed...
698 (_STDLIB_H): ...to this, preferring no trailing underscore.
699 [!defined __NO_ISOCEXT]: Delete double negative references; use...
700 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
701 (lldiv_t): ...defining this C99 specific aggregate data type, and...
702 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
703 (wcstold, _Exit): ...declaring these C99 function prototypes.
704 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
705 future removal; not in MSVCRT.DLL, these conform to no known standard.
706 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
707 (__strtod): ...this libmingwex.a provided function; it handles string
708 representations of hexadecimal-floats, infinities and NaNs, whereas...
709 (strtod): ...this MSVCRT.DLL implementation does not.
710 (__MSVCRT_VERSION__): Prefer symbolic comparison...
711 [>= __MSVCR80_DLL]: ...for this requirement.
713 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
715 Rationalize definition of struct timespec.
717 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
718 tv_sec field, in place of anonymous union, thus avoiding missing brace
719 warnings when initializing; leave a copy of the previous definition...
720 (struct __mingw32_expanded_timespec): ...named thus.
722 * include/unistd.h (nanosleep): Adjust inline implementation, to match
723 altered specification of tv_sec field in struct timespec.
725 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
726 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
728 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
729 convenience function; defined as inline, with __LIBIMPL__ equivalent,
730 it facilitates interpretation of an instance of struct timespec as if
731 it were defined as struct __mingw32_expanded_timespec.
733 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
735 Make strings.h mostly POSIX.1-2008 compliant.
737 * include/strings.h: Rewritten. Do not include...
738 (string.h): ...this; mandated by POSIX.1, it now defines...
739 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
740 prototypes, possible in-line implementations, and JMPSTUB references
741 to corresponding external implementations, which will now become
742 automatically created within libmingwex.a
744 * include/parts/strings.h: New file; it declares prototypes for...
745 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
746 string.h, but we also require them in strings.h
748 * include/parts/wchar.h: New file; it declares prototypes for all wide
749 character functions which MSVC specifies in both wchar.h and string.h
751 * include/string.h: Miscellaneous layout adjustments.
752 (strcasecmp, strncasecmp): Delete; they belong in strings.h
753 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
754 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
755 include them from parts/wchar.h instead.
757 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
758 prototypes; include them from parts/wchar.h instead, so making this
759 guard macro redundant; delete it.
761 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
762 (wcscmpi.$OBJEXT): Implementations are now automatically generated
763 from header file, for inclusion in libmingwex.a; remove free-standing
764 implementations from the entire family of liboldname libraries, and...
765 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
766 files; they are no longer required.
768 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
770 Incorporate build system updates from w32api package.
772 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
773 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
774 (install-strip, uninstall): New make command goals; implement them.
775 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
776 (devdist, dlldist): ...these have no need to strip explicitly.
777 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
778 (install-mingwrt-headers): ...here.
780 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
782 Adapt platform feature checks to NTDDI_VERSION conventions.
784 * include/_mingw.h: Assert copyright; include w32api.h
785 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
786 to w32api/include/w32api.h, whence they remain in effect.
787 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
789 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
791 Correct mismatched #if/#endif from preceding commit.
793 * include/_mingw.h (#pragma GCC system_header)
794 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
795 correcting for inadvertent removal of matching #endif introduced by
796 preceding 2015-06-19 commit.
798 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
800 Define symbolic names for alternative Microsoft runtime DLLs.
802 * include/msvcrtver.h: New file; it assigns a value for...
803 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
804 (__MSVCR60_DLL): ...this new manifest constant, with each of...
805 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
806 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
807 ...these also defined, as user assignable alternatives.
809 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
810 to establish its default value.
812 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
814 Track dependencies on modified system header files.
816 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
818 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
820 Correct an anomaly in stage 1 only build procedure.
822 * Makefile.in (all-gcc): New goal; it is an alias for...
823 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
824 (all-mingwrt-stage-1-only): ...this; upate all references.
825 (active-goals): Adjusted accordingly; it now reguires...
826 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
827 (install): Adjusted, as directed by...
828 (DEFAULT_MAKECMDGOALS): ...this.
830 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
832 Prefer our hypot() implementation in complex maths operations.
834 * mingwex/complex/cabs_generic.c: New file; it replaces...
835 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
836 * mingwex/complex/cabsl.c: ...these.
838 * mingwex/complex/catan_generic.c: New file; it replaces...
839 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
840 * mingwex/complex/catanl.c: ...these.
842 * mingwex/complex/clog_generic.c: New file; it replaces...
843 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
844 * mingwex/complex/clogl.c: ...these.
846 * mingwex/complex/cpow_generic.c: New file; it replaces...
847 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
848 * mingwex/complex/cpowl.c: ...these.
850 * mingwex/complex/csqrt_generic.c: Do not use...
851 (_hypot): ...this Microsoft form of function reference; use...
852 (hypot): ...this ANSI standard form instead.
854 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
856 Correct C++ compilation anomaly with hypotf() in cmath header.
858 * include/math.h: Add copyright notice; generally tidy layout.
859 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
860 (hypotf): Delete inline implementation; it did not properly handle
861 range errors, and was uncompilable with optimization when any g++
862 option implying __STRICT_ANSI__ conformity was specified.
863 (_MATH_H_): Rename this multiple inclusion guard...
864 (_MATH_H): ...to this.
866 * mingwex/math/hypot_generic.c: New file; it implements...
867 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
868 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
870 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
872 Prepare and tag all files for release of mingwrt-3.21.1.
874 * configure.ac (AC_INIT): Adjust package version argument.
875 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
876 (__MINGW32_VERSION): ...increment this to match.
878 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
880 Refactor to avoid possible time_t conflicts across headers.
882 * include/parts/time.h (struct timespec): Make it more descriptive of,
883 and better able to accommodate, potential ambiguity relating to...
884 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
885 whence they may be identically imported into each of...
886 * include/sys/types.h include/time.h include/wchar.h: these; delete
887 duplicate typedefs, and import accordingly.
889 * include/sys/types.h: Add licence; general comment additions.
890 (_TYPES_H_): Rename multiple inclusion guard macro...
891 (_SYS_TYPES_H): ...to this.
893 * include/time.h: Add licence; general comment/layout adjustments.
894 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
895 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
896 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
897 (_TIME_H_): Rename multiple inclusion guard macro...
898 (_TIME_H): ...to this.
900 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
901 (struct timespec): ...of this.
903 * include/wchar.h: Add licence; general comment/layout adjustments.
904 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
905 [GCC] (system_header): Add pragma, identifying header as such.
906 (_WCHAR_H_): Rename multiple inclusion guard macro...
907 (_WCHAR_H): ...to this.
909 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
911 Remove obsolete varargs.h header file.
913 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
914 a GCC header which is no longer supported, and was always intended for
915 ultimate removal; now is the long overdue time to do so.
917 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
919 Correct improper unistd.h function attribute declarations.
921 * include/unistd.h (_cdecl): Correct usage throughout; should be...
924 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
926 Fix GLOB_DOOFFS initialization bug.
928 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
929 (gl_data->gl_offs): ...this is properly initialized to zero.
931 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
933 Tag all files for release of mingwrt-3.21.
935 * include/_mingw.h: Adjust version accordingly.
937 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
939 Improve usage notes in stdlib.h, for mkstemp() function.
941 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
942 an original comment, explaining the need to use _O_TEMPORARY, from...
943 * mingwex/mkstemp.c: ...here; delete trailing white space.
945 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
947 Eliminate some potential definition inconsistencies.
949 * include/stdio.h: Cosmetic formatting change, relating to...
950 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
951 unconditionally; this allows the compiler to check for consistency
952 with their primary definitions in stdio.h
954 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
956 Suppress expected warning diagnostics in LIBIMPL builds.
958 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
959 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
960 GCC flag to supress warnings relating to deprecated declarations.
962 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
964 Provide more POSIX conforming sleep() functions.
966 * include/sys/types.h (useconds_t): Make it explicitly long; int may
967 be okay, but doesn't guarantee enough bits; mark as deprecated, since
968 POSIX has declared it "obsolete", and no longer specifies it.
970 * mingwex/usleep.c: Delete file; it provided an implementation of...
971 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
972 its error handling was hopelessly broken; replace it with...
973 * mingwex/nsleep.c: ...this new file; it implements...
974 (__mingw_sleep): ...this generic helper function; it supports sleep
975 capability with interval specification to nanosecond precision.
977 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
978 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
979 (sleep, nanosleep): ...these current POSIX functions, and also...
980 (usleep): ...this obsolete one; mark it as deprecated.
982 * include/parts: New directory; it is intended to host partial header
983 implementations, for content which must be shared among arbitrary sets
984 of multiple standard header files.
986 * include/parts/time.h: New file; nominally declaring time.h content.
987 (struct timespec): Declare it; it is currently used within unistd.h,
988 to facilitate the __CRT_INLINE implementation of nanosleep().
990 * Makefile.in (libmingwex.a): Remove reference to...
991 (usleep.$OBJEXT): ...this; replace it with a reference to...
992 (nsleep.$OBJEXT): ...this alternative.
993 (mingwrt-includedirs): Add prerequisite to create...
994 ($includedir/parts): ...this new directory; it is populated by...
995 (install-mingwrt-headers): ...this rule; add requisite command.
997 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
999 Delete an unnecessary Unicode wrapper file.
1001 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
1002 UTF-16LE API from dirent.c, without any need for this wrapper.
1004 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1006 Some further inline function rationalization.
1008 * include/io.h (_CRTALIAS): Replace all references...
1009 (__CRT_ALIAS): ...using this syntactically preferred form.
1010 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
1011 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1013 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
1014 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1016 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
1017 * mingwex/ftruncate.c: Likewise.
1019 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1020 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
1022 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1024 Some POSIX feature test adjustments.
1026 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
1027 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
1028 (mkdtemp): This didn't become available until SUSv4, so requires...
1029 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
1031 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1033 Another CRT_INLINE function implementation rationalization.
1035 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
1036 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
1037 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1039 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
1040 (libmingwex.a): Delete obsolete dependency on...
1041 (imaxabs.$OBJEXT): ...this.
1043 * mingwex/imaxabs.c: File is now redundant; delete it.
1045 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1047 More rationalization of CRT_INLINE function implementations.
1049 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
1050 (ftello64): Add __LIBIMPL__ specification for extern implementation.
1051 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
1053 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
1054 * mingwex/stdio/ftell064.c: Likewise.
1056 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
1057 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
1059 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1061 Don't implicitly define _POSIX_C_SOURCE too early.
1063 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
1064 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
1065 that it is not accidentally activated by implied _POSIX_C_SOURCE.
1067 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1069 Correct complex arcsin computation per issue [#2245].
1071 * mingwex/complex/casin_generic.c: New file; it replaces...
1072 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
1073 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
1075 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1077 Correct complex square root computation per issue [#2246].
1079 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
1080 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
1081 (hypot): ...this libmoldname.a indirection.
1083 * mingwex/complex/csqrt_generic.c: New file; it replaces...
1084 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
1085 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
1087 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1089 Adjust header guards to resolve issue [#2244].
1091 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
1092 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
1093 ...when any of these prevail, or as appropriate to correspond with...
1094 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
1096 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
1097 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
1098 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
1099 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
1101 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1103 Add implementation of mkstemp() and mkdtemp() functions.
1105 * mingwex/cryptnam.c: New file; it implements...
1106 (__mingw_crypto_tmpname): ...this helper function; it generates a
1107 cryptographically secure sequence of characters, used as the random
1108 component in temporary file and directory names.
1110 * mingwex/mkstemp.c: New file; it implements...
1111 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
1113 * mingwex/mkdtemp.c: New file; it implements...
1114 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
1116 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
1117 function implementation, with LIBIMPL extern semantics, in terms of...
1118 (__mingw_mkstemp): ...this; also declare prototype, and define...
1119 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
1120 (_MKSTEMP_SETMODE): New macro; define it, also providing...
1121 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
1122 (mkdtemp): Declare prototype; provide inline implementation, with
1123 JMPSTUB extern semantics, in terms of...
1124 (__mingw_mkdtemp): ...this; declare prototype.
1126 * Makefile.in (libmingwex.a): Add dependency rule, to include...
1127 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
1129 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1131 More JMPSTUB rationalization of inline functions.
1133 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
1134 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
1135 appropriate MSVCRT.DLL equivalent entry point.
1137 * mingwex/_Exit.c: File is now redundant; delete it.
1138 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
1139 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
1141 * Makefile.in (jmpstub_awk_script): Add support for...
1142 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
1143 (libmingwex.a): Remove dependencies on deleted files, namely...
1144 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
1145 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
1147 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1149 Correct omission of complex conjugate functions from libmingwex.a
1151 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
1152 (creal, crealf, creall): Likewise, for consistency of implementation.
1153 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
1155 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
1156 declarations; they should be interpreted analogously to __CRT_ALIAS.
1157 (libmingwex.a): Remove object file references for functions which are
1158 now declared as LIBIMPL, and sort the remainder in ASCII collating
1159 order; deleted function references comprise the set consisting of...
1160 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
1161 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
1162 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
1164 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
1165 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
1166 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
1167 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
1168 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
1170 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1172 Back-port improved asinh() implementation from 4.0-dev branch.
1174 * mingwex/math/asinh_generic.c: New file; it replaces...
1175 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
1176 ...all of these; delete them.
1178 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1180 Enable remake of lost LIBIMPL object files.
1182 * Makefile.in (libimpl_remake): New macro; define it, and...
1183 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
1185 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1187 Implement more robust _get_output_format fallback handling.
1189 * mingwex/ofmt.c: New file; it implements...
1190 (__mingw_output_format_flag): ...backing store, used by...
1191 (__mingw_get_output_format, __mingw_set_output_format): ...these
1192 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
1193 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
1194 version specific Microsoft APIs, which are also supported by some
1195 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
1196 (__mingw_get_output_format_fallback): Implement; it is aliased to...
1197 (__mingw_set_output_format_fallback): ...this; together they provide
1198 the emulation support for the preceding pair of functions, when they
1199 are not available within the run-time platform MSVCRT.DLL
1200 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1201 Implement them; they wrap, and if necessary emulate...
1202 (_get_printf_count_output, _set_printf_count_output): ...these.
1203 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
1204 (__mingw_set_printf_count_output_fallback): ...this; together they are
1205 required to support emulation of the preceding pair of functions, when
1206 they are not available within the run-time platform MSVCRT.DLL
1208 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
1209 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
1210 (__mingw_get_output_format, __mingw_set_output_format)
1211 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1212 Unconditionally declare their prototypes, for subsequent inline use.
1213 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
1214 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
1215 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
1216 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
1217 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
1218 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
1219 represent a compilable token.
1221 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
1222 _get_output_format; consult __mingw_output_format_flag directly.
1224 * ofmt_stub.s: No longer required; delete it.
1226 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
1227 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
1228 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
1229 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
1230 all are compiled from ofmt.c
1232 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1234 Do some more essential build tree clean up.
1236 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
1237 in the way of a successful rebuild from clean.
1239 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1241 Implement wrappers for emulation of POSIX dlfcn API.
1243 * include/dlfcn.h: New file; it declares the API.
1244 * mingwex/dlfcn.c: New file; implement it, with access via...
1245 (__mingw_dlfcn): ...this publicly addressable vector table.
1247 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1248 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1249 (__LIBIMPL__): ...this automatic interface generator; implement it.
1250 (libstub_refnames): New macro; it is adapted from and replaces...
1251 (jmpstub_refs): ...this; when it is then invoked twice to build...
1252 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1253 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1254 (libimpl_awk_script): New inline script; it handles automated builds
1255 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1256 (libimpl_sed_script): New inline script; it prepares intermediate C
1257 source code for LIBIMPL interfaces, as required to satisfy these...
1258 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1259 (LIBIMPL_CFLAGS): New macro; define it.
1261 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1263 Move libgen functions to __mingw_ pseudo-namespace.
1265 * mingwex/dirname.c (dirname): Rename function, as implemented...
1266 (__mingwex_dirname): ...to this.
1268 * mingwex/basename.c (basename): Rename function, as implemented...
1269 (__mingwex_basename): ...to this.
1271 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1272 prototypes, matching and augmenting original declarations for...
1273 (dirname, basename): ...these; reimplement as inline aliases, with
1274 __JMPSTUB__ references to the renamed implementation entry points.
1276 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1278 Implement new command line argument globbing strategy.
1280 * include/_mingw.h: Backport feature defines from master...
1281 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1282 constants; define them. They select the preferred globbing algorithm.
1283 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1284 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1285 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1286 they enable optional additional features supported by this algorithm.
1287 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1289 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1291 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1292 * setargv.c: ...new file; it implements the initialization mechanism
1293 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1294 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1295 it invokes the algorithm via an API similar to that described by MSDN,
1296 while continuing to support our original _CRT_glob interpretation.
1297 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1298 algorithm, via the MSDN-alike API, by calling back to...
1300 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1301 relocated to here, as a publicly addressable function; formerly...
1302 (__mingw_CRTStartup): ...called directly from here, we now redirect
1303 the call through _setargv(), whence it may be called indirectly.
1305 * init.c: Redundant file; delete it. It originally provided...
1306 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1307 original static attribute removed, to allow global addressing.
1309 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1311 Backport glob implementation from master to legacy.
1313 * include/glob.h: New file; copy it from master branch.
1314 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1315 (glob, globfree): ...each of these, respectively.
1317 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1318 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1319 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1320 (accept_glob_nocheck_match): New static function; it adds support for
1321 avoidance of globbing on patterns with no globbing token, so avoiding
1322 the case transliteration effect reported as MinGW-Bug #2106.
1323 (glob_match): Use it.
1325 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1327 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1329 Implement conventionally named dirent function trampolines.
1331 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1332 which redirects a conventionally named function call to its __mingw_
1333 pseudo-namespace implementation.
1335 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1336 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1337 appropriate protocol for compiling *.sx files, (supported natively by
1338 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1340 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1341 yet provide it, so we define it ourselves; deploy it for *.sx files.
1342 (Makefile.stub): New sinclude file; create it dynamically, using...
1343 (jmpstub_awk_script): ...this new inline script, which is based on...
1344 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1345 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1346 (mostlyclean-local): Remove Makefile.stub; do likewise...
1347 (Makefile): ...when remaking this, to ensure that both will be
1350 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1352 Make dirent implementation namespace and time_t clean.
1354 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1355 macros; define them. They facilitate identification of symbols which
1356 must be compiled with `extern "C"' binding, when compiling C++ code.
1357 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1358 (_CRTALIAS): ...this, which is to be considered as deprecated.
1359 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1360 __CRT_ALIAS build hints, while remaining transparent to GCC.
1361 (UNICODE, _UNICODE) [user defined]: Define consistently.
1363 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1364 4.0-dev branch, with additional ABI changes to improve stability).
1365 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1366 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1367 Add `__mingw_' prefix to all publicly exposed symbol names.
1368 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1369 implemented functions; they replace Microsoft's ambiguously defined
1370 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1371 resulting from the ambiguous size of Microsoft's time_t.
1373 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1374 removing unnecessary time_t and file size fields; (our replacements
1375 for _findfirst, and _findnext do not require them to be present).
1376 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1377 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1378 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1379 Adjust prototypes, making them inline aliases for public symbols which
1380 are now qualified by the `__mingw_' prefix; add build hints to support
1381 compilation of addressable stubs, with the original symbol names.
1382 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1383 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1384 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1385 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1386 New macros; define them. (These show availability of optional fields
1387 within the dirent struct, which client code may wish to access).
1389 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1391 Correct improper naming of assembly language source files.
1393 * mingwex/math/*.S: Rename all files with this extension...
1394 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1395 not extended `assembler-with-cpp' as implied by the former extension);
1396 adjust all internal `.file <name>' references accordingly.
1398 * Makefile.in (vpath %.S): Adjust reference to locate files....
1399 (vpath %.s): ...now renamed thus.
1401 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1403 Streamline the build system infrastructure.
1405 * configure.ac: New file; it replaces...
1406 * configure.in: ...this; (name is obsolete); delete it.
1408 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1409 make invocations, when processing subdirectories, and add automatic
1410 dependency tracking for all generated files.
1412 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1414 * mingwex/Makefile.in: No longer required; delete it.
1415 * profile/Makefile.in: Likewise.
1417 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1418 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1420 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1421 longer relevant, and I have no desire to maintain it.
1423 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1425 * include/_mingw.h: Increment version to 3.20.
1427 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1429 * tlsmthread.c: Update to reflect changes in tlssup.c.
1430 * tlssup.c: code clean-up.
1432 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1434 * include/_mingw.h: Increment version to 3.19.
1436 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1438 * include/float.h: Modify guard to accomodate CLang.
1440 Thanks to Ruben Van Boxem for the report.
1442 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1444 * tlssup.c: Remove mingwm10.dll fallback.
1446 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1448 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1450 Thanks to bvassche for the report.
1452 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1454 Correct checking for short option matches in getopt_long_only().
1456 * mingwex/getopt.c (getopt_verify): New static inline function.
1457 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1458 possible short option match after failing to match, or ambiguously
1459 matching as a long option.
1461 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1463 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1465 Thanks to cgf for the report.
1467 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1469 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1470 compiles with __STRICT_ANSI__.
1472 Thanks to Felipe Contreras for the report.
1474 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1476 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1479 Thanks to Tobias Burnus for the report.
1481 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1483 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1484 by wrapping the functions in brackets.
1486 Thanks to Kai Tietz for the report.
1488 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1490 * Makefile.in: Add support for msvcr100.dll.
1491 * msvcrt.def.in: Ditto.
1493 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1495 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1496 not always available, go the long way and use the explicit named union
1497 members, which are also declared in winnt.h.
1499 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1501 * mingwex/isblank.c: Fix typo in declaration.
1503 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1505 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1506 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1507 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1508 is included before <ctype.h>.
1510 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1512 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1514 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1516 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1518 Correct hexadecimal formatting of double and long double values.
1520 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1521 (__pformat) [A format]: Cast double values to long double, and use...
1522 (__pformat_xldouble): ...this instead, with corrected adjustment of
1523 exponent and alignment of mantissa, when formatting subnormals.
1525 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1527 * include/dirent.h (dd_handle): Define as intptr_t.
1529 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1531 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1534 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1536 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1537 semantically identical MAX_PATH; correct value is 260.
1539 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1541 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1542 system include search path; (issue reported by Mark Brand).
1544 * include/float.h: Add multiple inclusion guard around...
1545 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1546 only when this define does not indicate that it has already been seen;
1547 update comments to document rationale; move it within the scope of...
1548 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1549 GCC's float.h, after an appropriate complementary modification, need
1550 not perform a further include path search when this implementation
1551 specific extension has already been processed.
1553 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1555 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1556 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1557 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1558 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1559 _findnexti64): Correct definition.
1561 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1563 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1565 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1567 * include/_mingw.h: Increment version to 3.18.
1569 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1571 * include/stdio.h: (_vscprintf, _vscwprintf)
1572 * include/tchar.h: (_vsctprintf)
1574 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1576 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1577 (initial implementation)
1579 * new type: __time32_t
1581 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1582 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1583 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1585 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1586 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1587 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1588 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1589 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1590 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1591 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1592 _wstat32i64, _wstat64i32,_wutime32
1594 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1595 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1596 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1597 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1598 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1600 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1602 Implement TLS Callback.
1604 * tlsmcrt.c: New file.
1605 * tlsmthread.c: Ditto.
1608 * Makefile.in: Include new files.
1609 * crt1.c: Implement TLS Callback.
1611 * mthr_stub.c: Remove.
1613 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1615 * include/_mingw.h: Increment version to 3.17.
1617 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1619 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1620 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1622 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1624 * include/io.h (_open_osfhandle): Correct definition.
1626 Thanks to Alexander Shaduri for the information.
1628 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1630 Final sync of pseudo-reloc.c with mingw64 and cygwin
1631 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1632 regarding error messages.
1634 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1636 Honor DESTDIR for winsup/mingw and winsup/w32api.
1637 Detect and report error if installation paths are win32
1638 format, but DESTDIR is non-empty.
1640 * Makefile.in (DESTDIR): Honor per convention.
1641 (need-DESTDIR-compatibility): New macro; define it and a
1643 (fail-DESTDIR-compatibility): New dependency goal.
1644 (install-dirs): Require need-DESTDIR-compatibility.
1645 * mingwex/Makefile.in (DESTDIR): Honor per convention.
1646 (need-DESTDIR-compatibility): New macro; define it and a
1648 (fail-DESTDIR-compatibility): New dependency goal.
1649 (install): Require need-DESTDIR-compatibility.
1650 * profile/Makefile.in: Ditto.
1652 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1654 Sync pseudo-reloc.c with mingw64
1655 * psuedo-reloc.c: Remove unnecessary includes.
1656 Forward declare _pei386_runtime_relocator.
1657 Decorate _image_base__ symbol with macro for
1658 mingw64 compatibility. Whitespace changes.
1659 (__print_reloc_error): Renamed to...
1660 (__report_error): This. "Returns" void, and
1661 always aborts. Now used on all platforms.
1662 (__write_memory): Remove special case error handling
1663 for different platforms - always call __report_error.
1664 (do_pseudo_reloc): Remove special case error handling
1665 for different platforms - always call __report_error.
1666 (_pei386_runtime_relocator): Decorate _image_base__
1667 symbol with mingw64 compatibility macro.
1669 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1671 Sync pseudo-reloc.c with cygwin/lib/
1672 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1673 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1674 for fatal error handling that is consistent with cygwin process
1675 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1676 is unique to each address space, across fork().
1677 [CYGWIN] (__print_reloc_error): New function for reporting
1678 errors in a manner supported by cygwin at this early stage of
1679 the process life-cycle.
1680 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1681 performed only once for each address space, but are repeated
1682 after fork() in the new address space.
1683 [MINGW] (__write_memory): Ensure that b is always initialized
1684 by call to VirtualQuery, even if -DNDEBUG.
1686 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1688 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1689 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1691 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1692 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1693 specified format qualifiers, except in special case...
1694 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1695 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1696 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1699 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1701 Avoid multiple link time definitions of _printf() for C++;
1702 (problem reported by Alexander Shaduri, via MinGW-users ML).
1704 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
1705 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
1707 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1709 * include/_mingw.h: Increment version to 3.16.
1711 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
1713 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
1714 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
1715 __fp_unordered_compare): Add prototypes.
1716 * include/stdio.h (vsnwprintf): Add prototype.
1717 * include/wchar.h (vsnwprintf): Add prototype.
1718 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
1719 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
1721 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1723 Correct disposition of wchar_t output in printf().
1725 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
1726 (argval): ...this, in inner scope, with singular type `wchar_t'; use
1727 it to pass one wchar to __pformat_wputchars(), for output.
1729 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1731 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
1733 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1735 Convert to monolithic configuration procedure.
1737 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
1738 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
1739 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
1740 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
1741 (CRT0S): Relocate from `profile'; define it as appropriate.
1742 (LIBM_A): Define and AC_SUBST it unconditionally.
1743 (AC_CONFIG_SUBDIRS): Remove; none to configure.
1744 (AC_OUTPUT_FILES): Add `Makefile' for each of...
1745 (mingwex, profile): ...these subdirectories.
1747 * configure: Regenerated.
1749 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
1750 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
1751 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
1752 (SUBDIRS): Define explicitly, to run recursive `make' in...
1753 (mingwex, profile): ...these; simplify build commands...
1754 (rootme, rootsrc): ...without these shell variables.
1755 (all, subdirs): Delete redundant build commands.
1756 (FIXME): Flag various issues for follow up.
1758 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
1759 (top_srcdir): ...this new macro; let AC_SUBST define it.
1760 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1761 (Makefile): Make it depend on...
1762 (top_builddir/config.status): ...this, itself depending on...
1763 (top_srcdir/configure): ...this.
1764 (FIXME): Flag various issues for follow up.
1766 * mingwex/aclocal.m4: File no longer required; delete it.
1767 * mingwex/configure mingwex/configure.in: Likewise.
1769 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
1770 (top_srcdir): ...this new macro; let AC_SUBST define it.
1771 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1772 (Makefile): Make it depend on...
1773 (top_builddir/config.status): ...this, itself depending on...
1774 (top_srcdir/configure): ...this.
1775 (FIXME): Flag various issues for follow up.
1777 * profile/aclocal.m4: File no longer required; delete it.
1778 * profile/configure profile/configure.in: Likewise.
1780 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1782 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
1783 to complaints that it causes issues.
1785 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
1787 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
1789 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1791 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
1792 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
1793 to all inline functions.
1795 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1797 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
1798 * CRT_fp10.c: Ditto.
1800 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1802 * cpu_features.c: replace gcc-specific construct with portable alternative
1803 and match the code a few lines above.
1804 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
1806 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1808 * include/_mingw.h: Changes required for PCC compiler.
1810 2009-07-18 Jeff Lu <jll544@yahoo.com>
1812 * mingwex/usleep.c: round up to next ms
1814 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1816 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
1817 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
1818 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
1819 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
1821 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1823 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
1825 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
1827 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
1828 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
1829 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
1830 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
1831 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
1832 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
1833 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
1834 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
1835 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
1836 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
1837 sources as of Apr. 20, 2009. Update further to match the sources in
1838 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
1839 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
1840 double/ulong union from U to dbl_union for better grepping and white-
1843 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1845 * include/stdlib.h (_wtof): Define.
1847 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
1849 * include/stdint.h (int_fast8_t): Specify as signed char.
1850 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
1851 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1853 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1855 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1857 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1859 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1860 (Requested by Robert Riebisch)
1862 * mingwex/getopt.c (getopt_parse): Track external increments of...
1863 (optind): ...this global variable.
1865 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1867 * include/_mingw.h: Increment version to 3.15.2.
1869 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1871 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1872 Also add tentative support for BSD specific `optreset' feature.
1874 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1875 (__mingw_optreset): ...this new global variable.
1877 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1878 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1881 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1883 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1884 Correct mishandling of invalid characters in printf() format specs.
1886 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1887 (backtrack): ...this new automatic variable, at start of each format
1888 conversion specification substring; use it to backtrack, and print the
1889 substring literally, if any invalid character is encountered.
1891 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1893 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1894 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1895 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1896 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1897 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1898 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1899 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1900 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1901 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1902 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1903 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1904 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1905 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1906 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1908 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1910 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1912 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1914 Correct some binary distribution packaging defects.
1916 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1917 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1918 intermediate goals; they make packages of files, as specified by...
1919 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1920 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1922 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1924 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1925 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1927 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1928 of radix point conditional on precision != 0 or `#' flag specified.
1930 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1932 Fix MinGW-Bug [2160227]
1933 Eliminate conflicting declarations and implementations of scalb().
1935 * moldname.def.in (scalb): Comment out of EXPORTS list.
1936 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1937 with GCC's built-in declaration.
1939 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1941 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1943 * mingwex/Makefile.in: Ditto.
1944 * profile/Makefile.in: Ditto.
1945 * configure.in: Record mingw front-end for building under Cygwin.
1946 * mingwex/configure.in: Ditto.
1947 * profile/configure.in: Ditto.
1948 * configure: Regenerate.
1949 * mingwex/configure: Ditto.
1950 * profile/configure: Ditto.
1952 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1954 Use de-facto standard Makefile goals to invoke test suite.
1956 * Makefile.in: Some minor formatting adjustments.
1957 (test_headers): Unconventionally named goal renamed to...
1958 (check-headers): ...this; make it a prerequisite of...
1959 (check): ...this new conventionally named goal.
1961 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1963 Make strtod() inline definition C89 compliant.
1964 (Issue reported by Ilya Shestopalov and Ian Puleston)
1965 (Correction identified by Danny Smith)
1967 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1968 reformat inline function definition.
1970 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1972 * include/_mingw.h: Increment version to 3.15.1 and introduce
1973 __MINGW32_PATCHLEVEL variable.
1975 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1977 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1978 (Reported by Christian Franke)
1980 * mingwex/getopt.c (optind): Make global variable value conform to
1981 behaviour specified by POSIX; do not use it for internal state in...
1982 (getopt_parse): ...this static function; use...
1983 (optbase): ...this new static local variable instead.
1984 (getopt_resolved): Update `optind' as required.
1986 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1988 Improve package identification in configure script.
1990 * configure.ac (AC_INIT): Redefine parameters...
1991 (PACKAGE_NAME): Set to `MinGW Runtime'.
1992 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
1993 (PACKAGE_TARNAME): Set to `mingwrt'.
1994 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
1995 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
1996 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
1998 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
1999 (PACKAGE_TARNAME): ...this.
2001 * configure: Regenerated.
2003 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2005 Fix MinGW-Bug [2125708].
2006 (Reported by Alexandr Zamaraev).
2008 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
2009 not wanted here; remove it; replace it by...
2010 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
2011 (_invalid_parameter_handler): ...this function typedef.
2013 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
2015 * Makefile.in: Don't include host_os as part of snapshot filename.
2017 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2019 Fix MinGW-Bug [2119504].
2020 (Reported by Peiyuan Song).
2022 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
2023 (*retindex): ...this already correctly assigned return variable...
2024 (opt[index].val): ...with this; this should have been assigned to...
2025 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
2027 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2029 Fix MinGW-Bug [2117379].
2030 (Reported by Peiyuan Song).
2032 * include/stdio.h (__argv): Replace all references in function
2033 prototype argument lists and inline function local variables, with ...
2034 (__local_argv): ...this, to avoid potential conflict with ...
2035 * include/stdlib (__argv): ...this #defined macro.
2037 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2039 * include/_mingw.h: Increment version to 3.15.
2041 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2043 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
2044 naming standard for Cygwin.
2046 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2048 Reimplement getopt.c to add getopt_long_only() function.
2050 (N.B. this reimplementation removes support for BSD/Mac-OS-X
2051 `optreset' nonsense; user code should set `optind = 0' instead,
2052 to reinitialise option scanning).
2054 * mingwex/getopt.c: Delete all content; reimplement it.
2055 * include/getopt.h: Likewise.
2057 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
2058 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
2060 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2062 Implement conditional replacement for printf() family functions.
2064 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
2065 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
2066 flag for use in user specified __MINGW_FEATURES__ attribute.
2067 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
2068 currently unused: reserved as components of...
2069 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
2070 a __MINGW_FEATURES__ enhancement to setlocale().
2072 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
2073 (__mingw_fprintf, __mingw_vfprintf): Likewise.
2074 (__mingw_sprintf, __mingw_vsprintf): Likewise.
2075 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
2076 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
2077 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
2078 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
2079 usage; link to DLL import stub, importing from MSVCRT.
2080 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2081 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
2082 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
2083 locally defined static stub implementation.
2084 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2085 __mingw_fprintf and __mingw_sprintf respectively.
2086 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
2087 static inline implementation for C++ and GNU C, or locally defined
2088 static stub otherwise.
2089 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
2090 __mingw_vfprintf and __mingw_vsprintf respectively.
2092 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2094 Avoid access violations, passing NULL to printf( "...%s..." );
2095 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
2097 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
2098 for argument value, if caller passes a NULL pointer.
2099 (__pformat_wcputs): Likewise, substitute L"(null)".
2101 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2103 Add missing dependencies for building libmingwex.a.
2105 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
2106 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
2107 (pformat.h): ...this.
2109 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2111 Add replacements for remaining members of printf() family.
2113 * mingwex/stdio/printf.c: New file.
2114 * mingwex/stdio/fprintf.c: New file.
2115 * mingwex/stdio/sprintf.c: New file.
2116 * mingwex/stdio/vprintf.c: New file.
2117 * mingwex/stdio/vfprintf.c: New file.
2118 * mingwex/stdio/vsprintf.c: New file.
2120 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2121 (STDIO_OBJS): Add their corresponding object files.
2123 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2125 Replace __mingw_snprintf() with new generic family implementation;
2126 likewise, replace __mingw_vsnprintf().
2128 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
2129 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
2130 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
2131 (GDTOA_DISTFILES): Remove mingw_snprintf.c
2132 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
2133 (GDTOA_OBJS): Remove mingw_snprintf.o
2134 (PFORMAT_CFLAGS): New macro; define it, as required by...
2135 (pformat.o): ...this new explicit build target.
2136 (snprintf.o, vsnprintf.o): Declare prerequisites.
2138 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
2140 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2142 Lay foundations for new printf() function family implementation.
2144 * ofmt_stub.s: New file; implement forward compatibility stub for...
2145 (_get_output_format): ...this MSVCR80.DLL and later function.
2147 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
2148 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
2149 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
2150 (lib%.a): Include ofmt_stub.o when import library does not already
2151 advertise availability of the _get_output_format() function;
2152 Add alias stubs for MINGW_REPL_FUNCS, such that...
2153 (__msvcrt_printf): ...is an alias for Microsoft's printf().
2154 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
2155 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
2156 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
2157 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
2158 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
2159 (clean): Add msvcr*.def.
2161 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
2162 * configure: Regenerated.
2164 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2166 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
2167 (_imp____mb_cur_max_dll): Likewise.
2169 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
2171 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
2172 * include/wchar.h (swprintf, vswprintf): Likewise.
2174 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2176 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
2177 (_get_output_format, _set_output_format): Add references.
2179 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
2180 (_get_output_format, _set_output_format): Declare prototypes.
2181 (_TWO_DIGIT_EXPONENT): Define.
2182 Some other minor formatting adjustments.
2184 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2186 [mingw-Bugs-1801641]
2187 * include/wchar.h (_wfdopen): Const-ify second arg.
2188 * include/stdio.h (_wfdopen): Likewise.
2189 Thanks to <tdragon at users dot sourceforge net>
2191 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2193 Avoid precision errors in round(), lround() and llround() functions.
2195 * mingwex/math/round_generic.c: New file; it replaces...
2196 * mingwex/math/round.c: ...this; delete it.
2197 * mingwex/math/roundf.c: ...and this; ditto.
2198 * mingwex/math/roundl.c: ...and this; ditto.
2200 * mingwex/math/lround_generic.c: New file; it replaces...
2201 * mingwex/math/lround.c: ...this; delete it.
2202 * mingwex/math/lroundf.c: ...and this; ditto.
2203 * mingwex/math/lroundl.c: ...and this; ditto.
2204 * mingwex/math/llround.c: ...and this; ditto.
2205 * mingwex/math/llroundf.c: ...and this; ditto.
2206 * mingwex/math/llroundl.c: ...and this; ditto.
2208 * mingwex/math/round_internal.h: New file; it provides generic common
2209 code, which is shared by `round_generic.c' and `lround_generic.c'; the
2210 implementation is based on techniques suggested by Danny Smith and
2213 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
2214 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
2215 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
2216 `round_generic.c' and `lround_generic.c'.
2217 (MATH_OBJS): Factor out files listed in...
2218 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
2219 macros; define them; specify dependencies and build rules; add to...
2220 (LIB_OBJS): ...this list.
2222 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
2224 [ mingw-Bugs-1961893 ]
2225 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
2226 mode to 2 for E format.
2228 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
2230 * include/stdlib.h: Fix strtod under C++.
2232 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
2234 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
2235 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
2237 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
2239 * include/sys/types.h (useconds_t): typedef.
2240 * include/unistd.h (usleep): Add prototype.
2241 * mingwex/usleep.c: New file.
2242 * mingwex/makefile.in: Add usleep source and object.
2244 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2246 Make strtod() conform to C99.
2248 * include/stdlib.h (strtod): Declare this mingwex function, and...
2249 (_strtod): rename this MSVCRT counterpart.
2251 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2253 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2255 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2257 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2259 * include/process.h: Include stdint.h for intptr_t definition.
2260 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2261 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2262 _spawnvpe): Return intptr_t.
2263 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2264 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2266 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2268 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2269 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2270 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2271 _wspawnvp, _wspawnvpe): Return intptr_t.
2273 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2275 * include/wchar.h (fwide): Return success code rather than failure in inline
2277 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2278 code rather than failure.
2280 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2282 * include/math.h (float_t, double_t): Define.
2284 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2286 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2287 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2288 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2290 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2292 * include/complex.h: Don't condition contents on C99 or not
2295 2008-02-01 Brian Dessent <brian@dessent.net>
2297 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2298 the different runtime versions.
2300 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2302 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2303 (mbsinit): Likewise.
2305 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2307 * include/_mingw.h: Increment version to 3.14.
2309 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2311 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
2312 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
2313 * mingwex/math/log10f.S: Correct issue with comments.
2314 * mingwex/math/log10l.S: Ditto.
2315 * mingwex/math/log1p.S: Ditto.
2316 * mingwex/math/log1pf.S: Ditto.
2317 * mingwex/math/log1pl.S: Ditto.
2318 * mingwex/math/log2.S: Ditto.
2319 * mingwex/math/log2f.S: Ditto.
2320 * mingwex/math/log2l.S: Ditto.
2321 * mingwex/math/logf.S: Ditto.
2322 * mingwex/math/logl.S: Ditto.
2324 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
2326 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
2328 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
2330 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
2331 from '_fsize_t' to '__int64' to be consistent with the other ...64
2332 structures and the value set there is 8 bytes not 4. Add guard for both
2333 as the are only used by functions available from 6.1 on.
2335 * include/malloc.h (_HEAP_MAXREQ): Define.
2336 (_aligned_offset_recalloc): Define.
2337 (_aligned_recalloc()): Define.
2339 * include/math.h: fixed a typo in a comment.
2340 (atanhf): Fixed declaration.
2342 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
2343 to '__int64' to be consistent with the other ...64 structures and the value
2344 set there is 8 bytes not 4. Added guard as this function is only used by
2345 functions available from 6.1 on.
2347 * include/sys/stat.h: some members of 'stat' were declared with types with
2348 a prefixed underscore, while the ones without the underscore should have
2349 been used. Added guard to '__stat64' as it is only used by functions
2350 available from 6.1 on. Added the wide character versions of the
2351 exec()/spawn() family for completion
2352 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
2355 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
2356 from 'long' to 'time_t'
2357 (__timeb64): moved declaration of structure directly before the declaration
2358 of the function '_ftime64()', so it is guarded as well
2360 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
2361 before the declaration of the functions using it, so it is guarded as well
2363 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
2365 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
2366 case. Add missing break in 's'/LEN_S case.
2368 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2370 Make snprintf() and vsnprintf() conform to C99.
2372 * include/stdio.h: Add note about incompatibility between...
2373 (snprintf, vsnprintf): These two mingwex functions, and...
2374 (_snprintf, _vsnprintf): these MSVCRT counterparts.
2376 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
2377 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
2379 * mingwex/stdio/snprintf.c: Delete.
2380 * mingwex/stdio/vsnprintf.c: Delete.
2382 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
2383 (vsnprintf): Alias to __mingw_vsnprintf.
2385 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2387 * include/_mingw.h: Increment version to 3.13.
2388 * Makefile.in: Reset CYGRELEASE to 1
2390 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2392 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
2393 resulting from incomplete removal of enclosing `for ...; do ...; done'
2394 loop from compound command; (reported by Greg Chicares).
2396 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2398 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2401 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2403 [mingw-Bugs-1734142]
2404 * include/wchar.h (_wsystem) Declare.
2406 (_wgetenv): Declare.
2407 (_wsearchenv): Declare.
2408 (_wmakepath): Declare.
2409 (_wsplitpath): Declare.
2410 (_wfullpath): Declare.
2411 * include/stdlib.h (_wsystem) Declare.
2412 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
2413 _wfullpath): Move into _WSTDLIB_DEFINED guard.
2414 * include/tchar.h (_tsystem): New UNICODE mapping define.
2416 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
2418 * mingwex/gdtoa/mingw_snprintf.c: New file.
2419 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
2420 (GDTOA_OBJS): Add mingw_snprintf.o.
2422 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
2424 * msvcrt.def.in: Update comment.
2425 Exclude _ctype stub if using msvcr71.dll or newer.
2426 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
2427 * include/wctype.h: Likewise.
2429 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2431 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
2432 *include/dirent.h: Likewise.
2434 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2436 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
2437 * include/conio.h: Likewise.
2438 * include/ctype.h: Likewise.
2439 * include/direct.h: Likewise.
2440 * include/dos.h: Likewise.
2441 * include/errno.h: Likewise.
2442 * include/fenv.h: Likewise.
2443 * include/float.h: Likewise.
2444 * include/inttypes.h: Likewise.
2445 * include/io.h: Likewise.
2446 * include/libgen.h: Likewise.
2447 * include/locale.h: Likewise.
2448 * include/malloc.h: Likewise.
2449 * include/mbctype.h: Likewise.
2450 * include/mbstring.h: Likewise.
2451 * include/process.h: Likewise.
2452 * include/search.h: Likewise.
2453 * include/setjmp.h: Likewise.
2454 * include/signal.h: Likewise.
2455 * include/stdio.h: Likewise.
2456 * include/stdlib.h: Likewise.
2457 * include/string.h: Likewise.
2458 * include/time.h: Likewise.
2459 * include/wchar.h: Likewise.
2460 * include/sys/stat.h: Likewise.
2461 * include/sys/time.h: Likewise.
2462 * include/sys/timeb.h: Likewise.
2463 * include/sys/utime.h: Likewise.
2465 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2467 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2469 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2471 Add POSIX binary tree search API.
2473 * mingwex/tfind.c: New file.
2474 * mingwex/tdelete.c: New file.
2475 * mingwex/tsearch.c: New file.
2476 * mingwex/twalk.c: New file.
2477 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2478 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2479 * include/search.h (tfind): Declare.
2486 (node_t): Define, on condition of _SEARCH_PRIVATE.
2488 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2490 * include/_mingw.h (__MINGW_NOTHROW): Define.
2492 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2494 * include/stdio.h (vsnprintf): Remove inline definition.
2497 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2499 * CRTfmode.c: Nit-pick comment fix.
2501 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2503 * CRTfmode.c: Fix nested comment.
2505 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2507 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2509 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2511 * include/io.h (lseek64) : Add prototype.
2513 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2515 * include/string.h (strcasecmp): Add prototype.
2516 (strncasecmp): Add prototype.
2518 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2520 * Makefile.in (CRT0S): Revert last change.
2521 * CRTfmode.c. Correct comment.
2523 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2525 * Makefile.in (CRT0S): Add back CRTfmode.o.
2527 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2529 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2530 * include/io.h: Likewise.
2532 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2534 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2536 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2538 * include/stdint.h (intptr_t): Fix typo.
2539 Thanks to Charles Wilson for report.
2541 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2543 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2544 Condition on _WIN64.
2545 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2546 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2547 (PTRDIFF_MIN): Define as INTPTR_MIN.
2548 (PTRDIFF_MAX): Define as INTPTR_MAX.
2549 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2550 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2552 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2554 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2555 Cygwin man page location.
2557 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2559 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2560 support Cygwin man page location.
2562 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2564 * Include/_mingw.h: Increment version to 3.12.
2566 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2568 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2570 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2572 * Makefile.in: Tweak srcdist to fix build issue.
2574 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2576 Add --enable-mingw-manpage-transform configure option.
2578 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2579 * configure.in, Makefile.in: Use it.
2580 * configure: Regenerated.
2582 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2584 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2586 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2588 Add manpages for dirname and basename functions.
2590 * man: New directory.
2591 * man/dirname.man: New file; it sources both manpages.
2592 * Makefile.in: Add provisional rules to distribute them.
2594 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2596 * mingwex/basename.c: Make it work with path names containing
2597 multibyte character strings.
2598 * mingwex/dirname.c: Likewise.
2600 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2602 * include/io.h (__mingw_access): New static inline wrapper to restore
2603 pre-Vista 'access (fname, X_OK)' behaviour.
2604 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2606 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2608 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2610 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2612 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2614 * include/stdio.h (_unlink, unlink): Add prototypes.
2616 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2618 * include/excpt.h: Replace "_try1" in comments with "__try1".
2620 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2622 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2623 (ALL_CXXFLAGS): Likewise.
2624 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2625 (ALL_CXXFLAGS): Likewise.
2626 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2627 (ALL_CXXFLAGS): Likewise.
2629 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2631 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2633 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2635 Expose some more msvcr80.dll functions.
2636 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2637 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2638 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2639 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2641 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2643 Expose some msvcr80.dll functions.
2644 * include/stdlib.h (_set_abort_behavior): Add prototype.
2645 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2646 _set_abort_behavior mask argument.
2647 (_invalid_parameter_handler): Add typedef.
2648 (_set_invalid_parameter_handler): Add prototype.
2649 * include/stdio.h (_get_printf_count_output): Add prototype.
2650 (_set_printf_count_output): Add prototype.
2651 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2652 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2654 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2656 * include/_mingw.h (CRT_INLINE): Correct typo.
2658 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2660 * include/io.h (X_OK): Define to F_OK.
2662 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2664 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2665 unconditionally. Change comment.
2666 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2668 * include/io.h (rename): Declare.
2671 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2673 * include/libgen.h: New file; required by...
2674 * mingwex/basename.c, mingwex/dirname.c: New files.
2675 * mingwex/Makefile.in (DISTFILES): Add them...
2676 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2677 (Dependencies): Typo; s/Dependancies/Dependencies/
2679 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2681 * Makefile.in (VERSION): Let configure define it.
2683 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2684 * configure.in: Use it.
2685 Correct quoting of autoconf macro arguments throughout.
2686 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2687 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2688 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2689 (AC_CONFIG_FILES): Add, to generate Makefile.
2691 * configure: Regenerated.
2693 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2695 * Makefile.in: Add aclocal.m4 to source release.
2696 * mingwex/Makefile.in: Ditto.
2697 * profile/Makefile.in: Ditto.
2699 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2701 * Include/_mingw.h: Increment version to 3.11.
2702 * Makefile.in: Ditto.
2704 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
2706 [ mingw-Bugs-1590623 ]
2707 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
2710 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
2712 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
2713 correctly parenthesized.
2715 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2717 * mingwex/mb_wc_common.h (get_codepage): Get it
2720 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2722 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
2724 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
2726 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
2729 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
2731 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
2734 2006-09-11 Christopher Faylor <cgf@timesys.com>
2736 * Makefile.in: Semi-revert 2006-08-30 change.
2738 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2740 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
2741 (__MINGW_IMPORT): Ansify.
2742 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
2743 __MINGW_ATTRIB_DEPRECATED.
2745 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2747 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
2748 Redundant macros; deleted.
2750 * configure.in (LIB_AC_PROG_CC): Replaced by...
2751 (AC_PROG_CC): ...this.
2753 * configure: Regenerated.
2755 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
2757 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
2758 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
2759 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
2761 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
2763 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
2764 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
2765 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
2766 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
2768 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
2769 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
2770 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
2771 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
2772 * mingwex/wcstold.c: Avoid using strtold internals.
2773 * mingwex/wcstof.c: Rewrite.
2774 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
2775 (GDTOA_OBJS): Add to library.
2776 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
2777 (STDLIB_OBJS): Remove.
2778 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
2779 (Q8_OBJS): Add wcstof.o wcstold.o.
2780 * include/stdlib.h (strtof): Remove inline definition.
2782 * include/wchar.h (wcstof): Remove inline definition.
2784 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
2786 * Makefile.in: Add with_cross_host to allow more granular checks.
2787 Set installation directories accordingly. Override CC setting only
2788 if building a Cygwin target.
2789 * aclocal.m4: Regenerate.
2790 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
2791 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
2792 Test AC_ALLOCA only if building on a native system.
2793 * configure: Regenerate.
2795 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2797 * include/ctype.h: Fix typo.
2799 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2801 * include/ctype.h: Expose iswblank if __cplusplus.
2802 * include/wctype.h: Expose iswblank if __cplusplus.
2804 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2806 * include/ctype.h: Remove stray ')';
2808 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2810 * include/ctype.h (_BLANK): Expand comment.
2811 (isblank): Add prototype and inline definition.
2812 (iswblank): Add prototype and inline definition.
2813 * include/wctype.h (iswblank): Add prototype and inline definition.
2814 * mingwex/isblank.c: New file.
2815 * mingwex/iswblank.c: New file.
2816 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2818 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
2820 * include/math.h (__INFF,__INFL): Remove '#'.
2822 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2824 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2826 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
2828 Support SSE float environment in fenv.h functions.
2829 * cpu_features.c: New file.
2830 * cpu_features.h: New file.
2831 * crt1.c: Include "cpu_features.h".
2832 (__mingw_CRTStartup): Call cpu_features_init().
2833 * Makefile.in (MING_OBJS): Add cpu_features.c.
2834 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
2835 * include/fenv,h ( fenv_t;): Append __mxcsr field.
2836 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
2837 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
2838 (__MXCSR_ROUND_FLAG_SHIFT): New define.
2839 * mingwex/feclearexcept.c: Include "cpu_features.h".
2840 Handle SSE environment.
2841 * mingwex/fegetenv.c: Likewise.
2842 * mingwex/feholdexcept.c: Likewise.
2843 * mingwex/fesetenv.c: Likewise.
2844 * mingwex/fesetexceptflag.c: Likewise.
2845 * mingwex/fesetround.c: Likewise.
2846 * mingwex/fetestexcept.c: Likewise.
2847 * mingwex/feupdateenv.c: Likewise.
2848 * mingwex/fegetround.c: Add comment.
2850 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2852 * Include/_mingw.h: Increment version to 3.10.
2853 * Makefile.in: Ditto.
2855 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2857 * mingwex/math/tgamma.c (SQTPI): Add braces.
2859 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2861 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2862 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2864 * mingwex/math/sf_erf.c (erff): Initialize z.
2866 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2868 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2870 * Include/_mingw.h: Increment version to 3.10.
2871 * Makefile.in: Ditto.
2873 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2875 * include/sys/time.h (struct timezone): Define.
2876 * include/time.h: Correct comment about timezone.
2878 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2880 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2881 * configure: Regenerate.
2883 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2885 * configure: add srcdir as a possible location for install-sh.
2887 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2889 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2890 (_topendir): Use it.
2892 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2894 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2896 (gettimeofday): Add prototype.
2897 * mingwex/gettimeofday.c: New file.
2898 * mingwex/makefile.in: Add gettimeofday source and object.
2900 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2902 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2903 else global library variable.
2904 (HUGEVALF): Likewise.
2905 (HUGEVALL): Likewise.
2906 (INFINITY): Likewise.
2909 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2911 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2913 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2915 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2917 2006-05-24 Christopher Faylor <cgf@timesys.com>
2919 * configure.in: Update to newer autoconf.
2920 (thanks to Steve Ellcey)
2921 * mingwex/configure.in: Ditto.
2922 * profile/configure.in: Ditto.
2923 * configure: Regenerate.
2924 * mingwex/configure: Ditto.
2925 * profile/configure: Ditto.
2926 * aclocal.m4: New file.
2927 * mingwex/aclocal.m4: Ditto.
2928 * profile/aclocal.m4: Ditto.
2930 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2932 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2933 Use supplied codepage as arg to WideCharToMultiByte.
2935 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2937 * Makefile.in (libmsvcr80.a): Add import lib.
2938 (libmsvcr80d.a): Ditto.
2940 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2942 * Makefile.in: Bump cygwin build number.
2944 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2946 * Include/_mingw.h: Increment version to 3.9.
2947 * Makefile.in: Ditto.
2949 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2951 * include/limits.h (SSIZE_MAX): Define.
2952 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2954 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2956 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2957 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2959 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2961 * include/stddef.h: Remove.
2962 * include/stdarg.h: Remove.
2964 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2966 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2967 of result is positive when real part of arg == 0;
2968 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2969 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2971 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2973 * include/time.h (_time64): Correct prototype.
2975 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2977 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2978 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2979 to non-stop. Use "fnclex" to clear exception flags.
2981 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
2983 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
2984 Avoid raising FP exceptions.
2986 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2988 * include/stdlib.h (strtof): Add prototype. Uglify
2989 parameter names in inline definition.
2991 (_Exit): Uglify parameter names in inline definition.
2992 (llabs): Add prototype.
2993 (_set_error_mode): Add prototype and input defines.
2995 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2997 * mingwex/fe*.c: Revert previous changes.
2998 * include/fenv.h: Revert previous changes.
3000 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3002 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
3003 Do not return a value.
3004 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
3005 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
3006 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
3007 * mingwex/fegetenv.c (fegetenv): Likewise.
3008 * mingwex/fesetenv.c (fesetenv): Likewise.
3009 * mingwex/feupdateenv.c (feupdateenv): Likewise.
3010 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
3011 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
3014 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
3016 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
3017 getting filelength for SEEK_END.
3019 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
3021 * Include/_mingw.h: Increment version to 3.8.
3022 * Makefile.in: Ditto.
3024 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3026 * include/wctype.h (towupper, towlower): Change arg and return value
3028 * include/ctype.h (towupper, towlower): Likewise.
3030 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
3032 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
3033 a diagnostic, guarded by #ifdef DEBUG.
3034 (__mingwthr_remove_key_dtor): Likewise.
3036 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
3038 * moldname.def.in (sleep, beep, seterrormode): Remove.
3040 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3042 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
3043 (_MCOUNT_DECL): Use it.
3044 (MCOUNT): Save and restore eax, ecx, edx registers.
3045 * profile/mcount.c (_mcount): ANSI-fy.
3047 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
3049 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
3050 guard __MINGW_ATTRIB macro definitions.
3051 * include/math.h (logb[fl]): Don't define inlines for
3052 GCC-4.0+ && __FAST_MATH__.
3053 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
3054 line-continuation backslashes.
3056 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
3058 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
3059 in GNUC version guard.
3061 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
3063 * crt1.c (_gnu_exception_handler): Handle illegal instruction
3064 OS exception as a signal if user has defined a SIGILL handler.
3066 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
3068 * mingwex/math/nexttoward.c: New file.
3069 * mingwex/math/nexttowardf.c: New file.
3070 * mingwex/math/nextafterl.c: Add nexttowardl alias.
3071 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
3073 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
3074 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
3077 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
3079 * mingwex/math/nextafterf.c (nextafterf): Correct
3081 * mingwex/math/nextafterl.c: New file.
3082 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
3083 (MATH_OBJS): Add nextafterl.o.
3084 * include/math.h (nextafterl): Uncomment prototype.
3086 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
3088 * mingwex/math/erfl.c: New file.
3089 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
3090 (MATH_OBJS): Add erfl.o.
3091 * include/math.h (erfl, erfcl): Uncomment prototypes.
3093 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
3095 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
3096 #if (WCHAR_MAX <= WCHAR_MIN) is false.
3097 * include/stdint.h (WCHAR_MAX): Likewise.
3098 (WINT_MAX): Likewise.
3100 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
3102 * mingwex/math/signbit.c (__signbit): Make return value
3103 consistent with GCC's __builtin_signbit.
3104 * mingwex/math/signbitf.c (__signbitf): Likewise.
3105 * mingwex/math/signbitf.c (__signbitl): Likewise.
3106 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
3109 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
3111 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
3113 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
3114 Remove unused MBTOWC_FLAGS define.
3116 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
3118 * mingwex/mbrtowc.c: New file.
3119 * mingwex/wcrtomb.c: New file.
3120 * mingwex/btowc.c: New file.
3121 * mingwex/wctob.c: New file.
3122 * mingwex/mb_wc_common.h: New file.
3123 * mingwex/Makefile.in (DISTFILES): Add new files.
3124 (Q8_OBJS): Add new objects.
3125 * include/wchar.h: Adjust comment about mbrtowc() and related
3126 funcions. Add __restrict__ to pointer params in prototypes.
3127 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
3128 arg names from protototypes.
3130 2005-04-23 Wu Yongwei <adah@sh163.net>
3132 * mingwex/dirent.c: Formatting changes.
3133 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
3136 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
3138 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
3140 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
3142 * include/stdio.h (__mingw_fwrite): Change return value to
3144 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
3146 2005-03-15 Hans Leidekker <hans@it.vu.nl>
3148 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
3150 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3152 * include/wctype.h (wctrans): Remove _CRTIMP.
3153 (towctrans): Likewise.
3156 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3158 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
3160 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3162 * mingwex/wctype.c: New file.
3163 * mingwex/wctrans.c: New file.
3164 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
3165 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
3167 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3169 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
3171 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3173 * include/assert.h: Remove header guard. #undef assert macro.
3174 (_assert): Use __MINGW_ATTRIB_NORETURN define.
3176 2005-02-11 Gregory W. Chicares <chicares@cox.net>
3178 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
3179 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
3181 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
3182 * mingwex/math/expm1.c: New file.
3183 * mingwex/math/expm1f.c: New file.
3184 * mingwex/math/expm1l.c: New file.
3186 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3188 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
3189 * include/wchar.h (struct stat): Likewise.
3190 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
3192 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
3194 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3196 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
3197 string is not valid.
3199 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
3201 * include/malloc.h: Add missing return code defines for
3204 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
3206 * include/sys/stat.h (struct __stat64): Change st_size type to
3208 * include/wchar.h (struct __stat64): Change st_size type to __int64.
3210 2005-01-13 Earnie Boyd <earnie@users.sf.net>
3212 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3214 * include/errno.h (ELOOP): Ditto.
3215 * include/_mingw.h: Increment version to 3.7.
3216 * Makefile.in: Ditto.
3218 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3220 * include/tchar.h (_tfreopen): Add UNICODE mappings.
3222 2005-01-11 Earnie Boyd <earnie@users.sf.net>
3224 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3225 lstat): Conditionalize defines for __STRICT_ANSI__.
3227 2005-01-10 Earnie Boyd <earnie@users.sf.net>
3229 * include/errno.h (ELOOP): Add definition.
3231 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
3233 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
3234 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
3235 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
3236 ctanl.c ctanhl.c): New files.
3237 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3238 (COMPLEX_OBJS): Adjust.
3239 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
3240 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
3241 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
3244 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3246 * include/_mingw.h (__int16): Define as short.
3247 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3249 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3251 * include/stdio.h (P_tmpdir): Add define.
3253 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3255 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3257 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3259 * include/_mingw.h: Increment version to 3.6
3260 * Makefile.in: Ditto
3262 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3264 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3265 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3266 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3267 ctanf.c ctanhf.c): New files.
3268 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3269 (COMPLEX_OBJS): Adjust.
3270 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3271 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3272 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3275 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3277 * include/wchar.h (wcsdup): Correct prototype.
3278 * include/string.h (wcsdup): Correct prototype.
3280 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3282 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3284 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3286 * mingwex/math/fastmath.h: New file.
3287 * mingwex/math/asinh.c: New file.
3288 * mingwex/math/asinhf.c: New file.
3289 * mingwex/math/asinhl.c: New file.
3290 * mingwex/math/acosh.c: New file.
3291 * mingwex/math/acoshf.c: New file.
3292 * mingwex/math/acoshl.c: New file.
3293 * mingwex/math/atanh.c: New file.
3294 * mingwex/math/atanhf.c: New file.
3295 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3296 atanh, atanhf, atanhl): Add prototypes.
3297 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3298 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3299 Specify dependency on fastmath.h for new objects.
3301 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3303 * include/sys/stat.h (_S_IFLNK): Add definition.
3310 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3312 * include/sys/stat.h (_S_ISLNK): Add definition.
3315 2004-09-05 Earnie Boyd <earnie@users.sf.net>
3317 * include/_mingw.h: Increment minor version for 3.5 release.
3318 * Makefile.in: Ditto.
3319 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
3321 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3323 * include/malloc.h (__mingw_aligned_offset_malloc,
3324 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
3325 __mingw_aligned_realloc, __mingw_aligned_free): Add
3327 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
3328 tst-aligned-malloc.c.
3329 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
3331 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
3333 * mingwex/mingw-aligned-malloc.c: New file.
3334 * mingwex/tst-aligned-malloc.c: New file.
3336 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3338 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
3339 noreturn attribute. Align stack to 16 bytes before passing args
3341 (mainCRTStartup): Change return to void.
3342 (WinMainCRTStartup): Likewise.
3344 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3346 * profile/COPYING: New file.
3347 * profile/CYGWIN_LICENSE: New file.
3348 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
3350 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3352 * mingwex/fopen64.c: Move.
3353 * mingwex/fseeko64.c: Move.
3354 * mingwex/ftello64.c: Move.
3355 * mingwex/lseek64.c: Move.
3356 * mingwex/stdio/fopen64.c: To here.
3357 * mingwex/stdio/fseeko64.c: To here.
3358 * mingwex/stdio/ftello64.c: To here.
3359 * mingwex/stdio/lseek64.c: To here.
3361 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3363 * profile/gmon.c [__MINGW32__]: Include string.h for
3366 2004-08-08 Christopher Faylor <cgf@timesys.com>
3368 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
3370 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3372 * include/complex.h: Remove __attribute__ ((const)) from
3373 transcendantal and trig functions. Replace __attribute__ ((const))
3374 with __MINGW_ATTRIB_CONST on other declarations.
3376 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3378 * include/wchar.h: Reorganize, avoid including other headers.
3380 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3382 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
3383 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
3386 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3388 * include/dirent.h (struct _wdirent): Remove obsolete comment.
3390 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3392 * include/string.h: Revert 2004-07-26 additions of
3395 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3397 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3398 (__convert_inf_to_maxnum): New.static inline.
3399 (reducl): Use it to protect against Inf - Inf.
3400 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3402 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3404 * mingwex/math/expl.c (expl): Move body of code to new static
3405 function __expl, removing tests for +/-Inf. Extern function
3406 expl calls __expl after testing for max, min log thresholds.
3408 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3410 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
3411 * mingwex/stdio/vfscanf.c: Likewise.
3412 * mingwex/stdio/vswscanf.c: Likewise.
3413 * mingwex/stdio/vfwscanf.c: Likewise.
3415 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3417 * include/_mingw.h: Use only two underscores to uglify
3418 __MINGW_ATTRIB_* macros.
3419 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
3420 * include/setjmp.h: Likewise.
3422 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
3424 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
3426 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3428 * include/string.h: Group wide string functions together,
3429 and protect with _WSTRING_DEFINED.
3431 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3433 * include/_mingw.h (__MINGW_ATTR_*): Replace with
3435 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
3436 __MINGW_ATTRIB_NORETURN, throughout.
3437 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3439 (abs): Declare with __MINGW_ATTRIB_CONST.
3448 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3450 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3452 * include/_mingw.h: Undefine __attribute__.
3453 (__MINGW_ATTR_NORETURN): New define.
3454 (__MINGW_ATTR_CONST): New define.
3455 (__MINGW_ATTR_MALLOC): New define.
3456 (__MINGW_ATTR_PURE): New define.
3457 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3460 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3462 * include/time.h (__time64_t): Add missing ';'.
3464 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3466 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3467 (struct tm): Protect with _TM_DEFINED.
3469 2004-07-17 Christopher Faylor <cgf@timesys.com>
3471 * Makefile.in (CC): Strip inappropriate include file settings from any
3474 2004-07-15 "dgun" <dgun@umpire.com>
3476 * include/complex.h (conj): Correct typo in prototype.
3478 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3480 * include/math.h: Add pragma GCC system_header.
3482 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3484 * mingwex/complex/carg.c: New file.
3485 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3487 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3489 * Makefile.in (INCLUDES): Temporarily revert previous change.
3490 * mingwex/Makefile,in (INCLUDES): Ditto.
3491 * profile/Makefile,in (INCLUDES): Ditto.
3492 * mingwex/Makefile,in: Drop carg.o dependency.
3494 2004-07-14 Christopher Faylor <cgf@timesys.com>
3496 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3498 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3500 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3502 * mingwex/Makefile,in (INCLUDES): Ditto.
3503 * profile/Makefile,in (INCLUDES): Ditto.
3505 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3507 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3509 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3511 * mingwex/Makefile.in: Ditto.
3512 * profile/Makefile.in: Ditto.
3513 * include/limits.h: Change to new file header preamble.
3514 * include/_mingw.h: Increment minor version for 3.4 release.
3515 * Makefile.in: Ditto.
3517 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3519 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3521 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3523 * include/unistd.h (ftruncate): Add inline definition.
3524 * mingwex/ftruncate.c: New file.
3525 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3527 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3529 * include/time.h: Do not include sys/types.h.
3531 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3533 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3534 (MATH_OBJS): Remove pow,o.
3535 * include/math.h (pow): Declare with _CRTIMP.
3536 Add comment on how to avoid excess precision problems.
3538 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3540 * include/stdio.h (__mingw_fseeko64): Add prototype.
3541 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3542 (__mingw_fwrite): Handle huge files.
3544 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3545 Danny Smith <dannysmith@users.sourceforge.net>
3547 * include/stdio.h (fopen64): Add inline function.
3548 (fseeko64): Add prototype.
3549 (ftello64): Add inline function.
3550 * include/io.h (lseek64): Add inline function.
3551 * include/sys/types (off64_t): Add typedef.
3552 (fpos64_t): Add typedef.
3553 * mingwex/fopen64.c: New file.
3554 * mingwex/fseeko64.c: New file.
3555 * mingwex/ftello64.c: New file.
3556 * mingwex/lseek64.c: New file.
3557 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3558 fseeko.64.c, ftello64.c, lseek64.c.
3559 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3561 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3563 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3565 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3567 * DISCLAIMER: Add words about "free to use".
3568 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3569 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3570 (inst_docdir): New variable.
3572 (FLAGS_TO_PASS): Include inst_docdir.
3573 (install-dirs): Add inst_docdir.
3574 (install): Add loop for INSTDOCS.
3575 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3576 section to CONTRIBUTORS file. Remove RCS tags.
3578 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3580 * mingwex/math/lround.c: Rewrite.
3581 * mingwex/math/lroundf.c: Rewrite.
3582 * mingwex/math/lroundl.c: Rewrite.
3583 * mingwex/math/llround.c: Rewrite.
3584 * mingwex/math/llroundf.c: Rewrite.
3585 * mingwex/math/llroundl.c: Rewrite.
3587 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3589 * CONTRIBUTORS: New file.
3590 * DISCLAIMER: Ditto.
3591 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3592 section to CONTRIBUTORS file. Remove RCS tags.
3593 * CRTFmode.c: Ditto.
3597 * crtdll.dev: Ditto.
3607 * msvcrt.def.in: Ditto.
3608 * strcasecmp.c: Ditto.
3611 * include/assert.h: Ditto.
3612 * include/conio.h: Ditto.
3613 * include/ctype.h: Ditto.
3614 * include/direct.h: Ditto.
3615 * include/dirent.h: Ditto.
3616 * include/dos.h: Ditto.
3617 * include/errno.h: Ditto.
3618 * include/excpt.h: Ditto.
3619 * include/fcntl.h: Ditto.
3620 * include/float.h: Ditto.
3621 * include/io.h: Ditto.
3622 * include/locale.h: Ditto.
3623 * include/malloc.h: Ditto.
3624 * include/math.h: Ditto.
3625 * include/process.h: Ditto.
3626 * include/setjmp.h: Ditto.
3627 * include/share.h: Ditto.
3628 * include/signal.h: Ditto.
3629 * include/stdio.h: Ditto.
3630 * include/stdlib.h: Ditto.
3631 * include/string.h: Ditto.
3632 * include/tchar.h: Ditto.
3633 * include/time.h: Ditto.
3634 * include/wchar.h: Ditto.
3635 * include/sys/locking.h: Ditto.
3636 * include/sys/param.h: Ditto.
3637 * include/sys/stat.h: Ditto.
3638 * include/sys/timeb.h: Ditto.
3639 * include/sys/types.h: Ditto.
3640 * include/sys/utime.h: Ditto.
3641 * mingwex/dirent.c: Ditto.
3643 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3645 * include/_mingw.h: Revert to primary release 3 and increment minor
3647 * Makefile.in (VERSION): Ditto.
3649 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3651 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3652 _fmode if not __MSVCRT__.
3654 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3656 * include/io.h: (_findfirst): Correct prototype.
3658 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3660 * include/io.h: (_findnext, _findclose): Correct prototype.
3662 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3664 * include/math.h (FP_*): Add defines.
3666 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3668 * mingwex/math/round.c: Rewrite.
3669 * mingwex/math/roundf.c: Rewrite.
3670 * mingwex/math/roundl.c: Rewrite.
3672 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3674 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3675 * include/time.h (__time64_t): Add typedef.
3676 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3677 (_ctime64): Likewise.
3678 (_wctime64): Likewise.
3679 (_gmtime64): Likewise.
3680 (_localtime64): Likewise.
3681 (wcsftime): Move into _WTIME_DEFINED block.
3682 Regroup non-ANSI prototypes.
3683 * include/io.h: Include <stdint.h>.
3684 (__finddata64_t): Add struct definition.
3685 (__wfinddata64_t): Likewise.
3686 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3687 (_findnext64): Likewise.
3688 (_wfindfirst64): Likewise.
3689 (_wfindnext64): Likewise.
3690 * include/sys/timeb.h (__timeb64): Add struct definition.
3691 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3692 * include/sys/utime.h (__utimbuf64): Add struct definition.
3693 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3694 (_futime64): Likewise.
3695 (_wutime64): Likewise.
3696 * include/sys/stat.h (__stat64): Add struct definition.
3697 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3698 (_stat64): Likewise.
3699 (_wstat64): Likewise.
3700 * include/sys/types.h (__time64_t): Add typedef.
3701 * include/wchar.h (__wfinddata64_t): Add structure definition.
3702 (__stat64): Likewise.
3703 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3704 (_wfindfirst64): Likewise.
3705 (_wfindnext64): Likewise.
3706 (_wutime64): Likewise.
3707 (_wstat64): Likewise.
3708 * include/malloc.h (_aligned_free): Add prototype for
3709 __MSVCRT_VERSION__ >= 0x0700.
3710 (_aligned_malloc): Likewise.
3711 (_aligned_offset_malloc): Likewise.
3712 (_aligned_offset_realloc): Likewise.
3713 (_aligned_realloc): Likewise.
3714 * include/string.h (_wcserror): Add prototype for
3715 __MSVCRT_VERSION__ >= 0x0700.
3716 (__wcserror): Likewise.
3717 * include/math.h (_set_SSE2_enable): Add prototype for
3718 __MSVCRT_VERSION__ >= 0x0701.
3720 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3722 * include/stdio.h (_fsopen): Add prototype.
3723 * include/tchar.h (_tfsopen): Add defines.
3724 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
3726 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3728 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
3729 msvcr70.dll, and msvcr71.dll.
3730 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
3731 using basename of output def file.
3733 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3735 * include/malloc.h: Remove __STRICT_ANSI__ guard.
3737 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
3739 * include/process.h: Remove the #endif associated with removal of
3740 __STRICT_ANSI__ guard from non-ANSI header.
3742 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3744 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
3745 * include/direct.h: Ditto.
3746 * include/dirent.h: Ditto.
3747 * include/dos.h: Ditto.
3748 * include/excpt.h: Ditto.
3750 * include/io.h: Ditto.
3751 * inlude/mem.h: Ditto.
3752 * include/memory.h: Ditto.
3753 * include/process.h: Ditto.
3754 * inlude/search.h: Ditto.
3755 * include/share.h: Ditto.
3756 * include/unistd.h: Ditto.
3757 * include/sys/fcntl.h: Ditto.
3758 * include/file.h: Ditto.
3759 * include/sys/locking.h: Ditto.
3760 * include/sys/param.h: Ditto.
3761 * include/sys/stat,h
3762 * include/sys/time.h: Ditto.
3763 * include/sys/timeb.h: Ditto.
3764 * include/sys/types.h: Ditto.
3765 * include/sys/unistd.h: Ditto.
3766 * include/sys/utime.h: Ditto.
3768 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
3770 * include/_mingw.h (__UNUSED_PARAM): Define macro.
3771 * include/wchar.h (fwide): Use it.
3774 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3776 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
3777 NetBSD getopt_long.c.
3779 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3781 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
3782 codes and handling of special chars.
3784 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
3786 * include/stdio.h (feof): Add inlined definition.
3789 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3791 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
3792 directly, rather than via scabnl.
3794 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3796 * mingwex/math/powl.c (powl): Return infinity if
3797 extended precision multiplication of x by log2(y)
3800 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3802 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
3803 (__enan_NI16): Fix another one.
3804 (__enan_NBITS): Tidy.
3806 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3808 * include/stdint.h [__STDC_CONSTANT_MACROS]: Fix for 8 and 16 bit
3809 types. (Thanks to John Maddock for report.)
3811 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
3813 * include/tchar.h (_puttchar): Define.
3815 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
3817 * include/stdio.h:(_fileno): Define macro version after both
3818 fileno and _fileno functions declared.
3820 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
3821 * moldnames.def.in (rmtmp) Add stub.
3823 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
3825 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
3827 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
3829 * include/math.h: Guard ISO C99 additions with __cplusplus
3832 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3834 * include/_mingw.h: Define __attribute__((x)) to nothing
3837 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3839 * include/complex.h: New file.
3840 * mingwex/complex: New directory.
3841 * mingwex/complex/cabs.c: New file.
3842 * mingwex/complex/cacos.c: New file.
3843 * mingwex/complex/cacosh.c: New file.
3844 * mingwex/complex/casin.c: New file.
3845 * mingwex/complex/casinh.c: New file.
3846 * mingwex/complex/catan.c: New file.
3847 * mingwex/complex/catanh.c: New file.
3848 * mingwex/complex/ccos.c: New file.
3849 * mingwex/complex/ccosh.c: New file.
3850 * mingwex/complex/cexp.c: New file.
3851 * mingwex/complex/cimag.c: New file.
3852 * mingwex/complex/clog.c: New file.
3853 * mingwex/complex/cpow.c: New file.
3854 * mingwex/complex/cproj.c: New file.
3855 * mingwex/complex/creal.c: New file.
3856 * mingwex/complex/csin.c: New file.
3857 * mingwex/complex/csinh.c: New file.
3858 * mingwex/complex/csqrt.c: New file.
3859 * mingwex/complex/ctan.c: New file.
3860 * mingwex/complex/ctanh.c: New file.
3861 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3864 (COMPLEX_OBJS): New list of objects.
3865 (LIB_OBJS): Include it in the library.
3867 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3869 * include/math.h (cabs): Remove non-ISO prototype.
3871 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3873 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3874 Use GCC __builtin's if available.
3875 (INFINITY, INFINITYF, INFINITYL): Likewise.
3877 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3879 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3880 beyond approximation limit.
3881 * mingwex/math/sf_erf.c (erff): Likewise.
3883 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3885 * include/stdio.h (getc): Cast result to unsigned char before
3888 (getchar): Likewise.
3889 (putchar): Likewise.
3890 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3892 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3894 * include/_mingw.h: Increment version to 3.2.
3895 * Makefile.in: Ditto.
3897 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3899 * include/sys/types.h: Revert last change.
3901 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3903 * include/sys/types.h (ssize_t): Correct the definition.
3905 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3907 * include/stdio.h (_filbuf): Add prototype.
3908 (_flsbuf): Add prototype.
3909 (getc): Add inline version.
3911 (getchar): Likewise.
3912 (putchar): Likewise.
3914 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3916 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3919 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3921 * include/stdlib.h: Guard non-ISO functions with
3922 !__STRICT_ANSI__, throughout.
3924 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3926 * include/io.h (_fileno): Remove prototype.
3928 (FILENAME_MAX): Define, if needed.
3929 Don't include <stdio.h>.
3930 * include/stdio.h (FILENAME_MAX): Protect against
3932 (_fileno): Define macro implementation.
3935 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3937 * include/inttypes.h: Include _mingw.h.
3939 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3941 * include/_mingw.h (__CRT_INLINE): Define.
3942 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3944 * include/inttypes.h: Likewise.
3945 * include/math.h: Likewise.
3946 * include/stdio.h: Likewise.
3947 * include/stdlib.h: Likewise.
3948 * include/string.h: Likewise.
3949 * include/wchar.h: Likewise.
3950 * include/wctype.h: Likewise.
3952 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3954 * mingwex/dirent.c (_topendir): Allocate enough memory for
3955 DIR struct in UNICODE case too.
3957 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3959 * include/_mingw.h: Increment version to 3.2.
3960 * Makefile.in: Ditto.
3962 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3964 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3966 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3968 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3969 * mingwex/math/truncf.c (truncf): Likewise.
3970 * mingwex/math/truncl.c (truncl): Likewise.
3971 * mingwex/math/modff.c (modff): Likewise.
3972 * mingwex/math/modfl.c (modfl): Likewise.
3974 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3976 * include/search.h: New file.
3977 * include/stdlib.h: Add comment about qsort, bsearch in
3979 * test_headers.c: Include search.h.
3980 * moldname.def.in (lfind, lsearch): Add.
3982 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3984 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
3985 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
3986 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
3988 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3990 * include/_mingw.h (small, hyper): Change to __small and __hyper to
3991 avoid user space name conflicts.
3993 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3995 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
3996 Note: Also added to w32api/include/basetyps.h.
3997 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
3998 Rename to Small (case difference).
4000 2003-06-18 Earnie Boyd <earnie@users.sf.net>
4002 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
4003 * mingwex/dirent.c: Modifications througout to fill d_name array.
4004 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
4005 libmsvcr71, including debug versions.
4006 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
4008 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
4010 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
4011 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
4013 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
4015 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
4017 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
4019 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
4021 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
4022 but still protect inline definition with __STRICT_ANSI__.
4024 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
4026 * string_old.c: Remove, splitting into...
4027 * strcasecmp.c: New file.
4028 * strncasecmp.c: New file.
4029 * wscmpi.c : New file.
4030 * ctype_old.c: Remove, splitting into...
4031 * isascii.c: New file.
4032 * iscsym.c: New file.
4033 * iscsymf.c: New file.
4034 * toascii.c: New file.
4035 * Makefile.in (MOLD_OBJS): Adjust.
4036 (SRCDIST_FILES): Adjust.
4038 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
4040 * include/math.h (fabs) : Remove inline definition.
4044 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4046 * include/_mingw.h: Change version to 3.0
4047 * Makefile.in: Ditto.
4049 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4051 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
4052 * mingwex/configure.in (W32API_INCLUDE): Ditto.
4053 * profile/configure.in (W32API_INCLUDE): Ditto.
4055 2003-05-06 Earnie Boyd <earnie@users.sf.net>
4057 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
4058 of multiply defined symbols if the symbols is defined locally. E.G.:
4059 A local definition of malloc causes this problem.
4060 * configure: Regenerate.
4061 * profile/Makefile.in (W32API_INCLUDE): New variable.
4062 (ALL_CFLAGS): Use W32API_INCLUDE value.
4063 (ALL_CXXFLAGS): Ditto.
4064 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
4065 Thanks to Jeff Bonggren <jbon@users.sf.net>.
4066 * profile/configure.in (W32API_INCLUDE): Set default value.
4067 * profile/configure: Regenerate.
4068 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
4069 (ALL_CFLAGS): Use W32API-INCLUDE value.
4070 (ALL_CXXFLAGS): Ditto.
4071 * mingwex/configure.in (W32API_INCLUDE): Set default value.
4072 * mingwex/configure: Regenerate.
4074 2003-05-05 Earnie Boyd <earnie@users.sf.net>
4076 * Makefile.in (W32API_INCLUDE): New variable.
4077 (ALL_CFLAGS): Use W32API_INCLUDE value.
4078 (ALL_CXXFLAGS): Ditto.
4079 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
4080 (W32API_INCLUDE): Set default value.
4081 * configure: Regenerate.
4083 2003-04-11 Earnie Boyd <earnie@users.sf.net>
4085 * configure.in (LIBM_A): Define for cygwin target.
4086 * configure (LIBM_A): Ditto.
4088 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
4090 * include/time.h (strftime): Remove duplicate declaration.
4092 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
4094 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
4096 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4098 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
4099 * mingwex/strtoimax.c (strtoimax): Likewise.
4100 * mingwex/wcstoimax.c (wcstoimax): Likewise.
4101 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
4102 * mingwex/fesentenv.c: Include float.h.
4103 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
4105 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
4107 * mingwex/math/tgammal.c: Likewise.
4109 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4111 * include/utime.h: New file, forwarding to sys/utime.h.
4113 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4115 * include/sys/param.h (MAXPATHLEN): Define.
4117 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4119 * include/tchar.h: Ansi-fy a comment.
4121 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
4123 * profile/profile.h (mcount): Use __builtin_return_address
4124 rather than inline __asm statements.
4125 * profile/Makefile.in: Remove special rule for mcount.o
4126 Specify dependencies for mcount.o profil.o gmon.o.
4128 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
4130 * include/stdlib.h (qsort): Remove const from first parm.
4131 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
4133 2003-03-03 Christopher Faylor <cgf@redhat.com>
4135 * mingwex/getopt.c: Refresh from NetBSD sources.
4137 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
4139 * mingwex/getopt.c: New file, copied from cygwin srcs.
4140 * include/getopt.h: New file, copied from cygwin srcs.
4141 * include/unistd.h: Include getopt.h.
4142 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
4143 (POSIX_OBJS): Add getopt.o.
4145 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
4147 * include/stdio.h (vscanf): Add prototype.
4153 * include/wchar.h (vwscanf): Add prototype.
4156 * mingwex/snprintf.c: Move to mingwex/stdio.
4157 * mingwex/vsnprintf.c: Ditto.
4158 * mingwex/snwprintf.c: Ditto.
4159 * mingwex/vsnwprintf.c: Ditto.
4160 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
4161 (STDIO_DISTFILES): Add.
4162 (DISTFILES): Adjust.
4163 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
4167 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
4169 * mingwex/stdio: New directory
4170 * mingwex/stdio/vfscanf.c: New file.
4171 * mingwex/stdio/vfwscanf.c: New file.
4172 * mingwex/stdio/vscanf.c: New file.
4173 * mingwex/stdio/vsscanf.c: New file.
4174 * mingwex/stdio/vswscanf.c: New file.
4175 * mingwex/stdio/vwscanf.c: New file.
4177 2003-02-25 Earnie Boyd <earnie@users.sf.net>
4179 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
4180 (libmsvcrt40.a): Ditto.
4182 2003-02-21 Earnie Boyd <earnie@users.sf.net>
4184 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
4186 * Makefile.in (libmsvcrtd.a): Add target library.
4187 (libmoldnamed.a): Ditto.
4188 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
4190 ($(srcdir)): Remove explicit reference for depencies of object targets.
4191 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
4192 msvcrt20.def, msvcrt40.def: Remove.
4193 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
4195 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
4197 * Makefile.in: Make sure libmingwex.a from current build tree is used.
4199 2003-02-14 Christopher Faylor <cgf@redhat.com>
4201 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
4202 ensure -mno-cygwin where appropriate. Filter out -O2.
4204 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
4206 * profile/Makefile.in (mcount.o): Use -O1 optimization
4209 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4211 * include/math.h: Remove _CRTIMP from pow() prototype,
4212 unless __NO_ISOCEXT.
4214 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4216 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
4218 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4220 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
4221 __declspec(dllimport) supported.
4222 (__cdecl): Define if not already defined.
4223 (__stdcall): Likewise.
4224 * include/dirent.h: Qualify fuctions with __cdecl.
4225 * include/fenv.h: Likewise.
4226 * include/inttypes.h: Likewise.
4227 * include/assert.h: Qualify fuctions with __cdecl. Qualify
4228 CRT dll imports with _CRTIMP.
4229 * include/conio.h: Likewise.
4230 * include/ctype.h: Likewise.
4231 * include/direct.h: Likewise.
4232 * include/dos.h: Likewise.
4233 * include/errno.h: Likewise.
4234 * include/float.h: Likewise.
4235 * include/io.h: Likewise.
4236 * include/locale.h: Likewise.
4237 * include/malloc.h: Likewise.
4238 * include/math.h: Likewise.
4239 * include/mbctype.h: Likewise.
4240 * include/mbstring.h: Likewise.
4241 * include/process.h: Likewise.
4242 * include/setjmp.h: Likewise.
4243 * include/signal.h: Likewise.
4244 * include/stdio.h: Likewise.
4245 * include/stdlib.h: Likewise.
4246 * include/string.h: Likewise.
4247 * include/time.h: Likewise.
4248 * include/wchar.h: Likewise.
4249 * include/wctype.h: Likewise.
4250 * include/sys/stat.h: Likewise.
4251 * include/sys/timeb.h: Likewise.
4252 * include/sys/utime.h: Likewise.
4254 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4255 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4257 * include/stdio.h (__VALIST): Guard against prior definition.
4259 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4261 * include/_mingw.h: Change version to 3.0
4262 * Makefile.in: Ditto.
4264 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4266 * include/stdlib.h: Make words after #endif a comment.
4268 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4270 * include/locale.h: Include stddef.h for definition of NULL.
4272 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4274 * include/math.h (tgamma): Correct typo in comment.
4276 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4278 * mingwex/mingw-fseek.c (INLINE): Remove define.
4279 (__mingw_is_win9x): Remove static inline function.
4280 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4282 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4284 * mingwex/math/llround.c: Correct function name and
4285 change return value to long long.
4287 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4289 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4290 (iswascii): Likewise. Correct mask.
4291 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4294 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4296 * include/stdlib.h (_osver, _winver, _winmajor,
4297 _winminor): Declare as direct imports from dll if
4298 __DECLSPEC_SUPPORTED.
4300 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4302 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4303 * pseudo-reloc-list.c: New file.
4304 * crt1.c (_pei386_runtime_relocator): Declare.
4305 (__mingw_CRTStartup): Call it.
4306 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4307 (DllMainCRTStartup): Call it.
4308 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
4311 2003-01-01 Egor Duda <deo@logos-m.ru>
4313 * pseudo-reloc.c: New file.
4315 2002-12-20 Earnie Boyd <earnie@users.sf.net>
4317 * include/_mingw.h: Increment version to 2.4.
4320 2002-12-12 Earnie Boyd <earnie@users.sf.net>
4322 * include/malloc.h (_alloca): Add definition.
4325 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
4327 * mingwex/math/s_erf.c: New file.
4328 * mingwex/math/sf_erf.c: New file.
4329 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4330 (MATH_OBJS): Add new objects.
4331 * include/math.h (erf[f]): Add prototypes.
4332 (erfc[f]): Add prototypes.
4334 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
4336 * include/math.h: Add traditional/XOPEN math constants.
4338 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
4340 * mingwex/math/lgamma.c: New file.
4341 * mingwex/math/lgammaf.c: New file.
4342 * mingwex/math/lgammal.c: New file.
4343 * mingwex/math/tgamma.c: New file.
4344 * mingwex/math/tgammaf.c: New file.
4345 * mingwex/math/tgammal.c: New file.
4346 * mingwex/math/cephes_mconf (polevlf): Add float version.
4348 Define _CEPHES_USE_ERRNO.
4349 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4350 (MATH_OBJS): Add new objects.
4351 * include/math.h (lgamma[fl]): Add prototypes.
4352 (tgamma[fl]): Add prototypes.
4354 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
4356 * mingwex/strtold.c: New file.
4357 * mingwex/wcstold.c: New file.
4358 * mingwex/ldtoa.c: New file.
4359 * mingwex/math/cephes_emath.h: New file.
4360 * mingwex/math/cephes_emath.c: New file.
4361 * mingwex/Makefile.in (DISTFILES): Add new files.
4362 (MATH_DISTFILES): Ditto.
4363 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
4364 (MATH_OBJS): Add cephes_emath.o.
4365 (LIB_OBJS): Add $(STDLIB_OBJS).
4366 * include/stdlib.h (strtold, wcstold): Add prototypes.
4367 * include/wchar.h (wcstold): Add prototype.
4369 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
4371 * include/math.h (sqrt): Remove inline definition.
4372 (sqrtf): Replace inline definition with prototype.
4374 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
4375 argument less than zero.
4376 * mingwex/math/sqrtf.c (sqrtl): Likewise.
4378 2002-10-30 Guido Serassio <serassio@libero.it>
4380 * include/stdio.h (_getmaxstdio): Add prototype.
4381 (_setmaxstdio): Likewise.
4383 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
4385 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
4387 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4389 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
4391 Define WIN32_MEAN_AND_LEAN before including windows.h
4392 * include/stdlib.h (_fmode): Protect declaration as dllimported
4393 variable with __IN_MINGW_RUNTIME.
4395 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4397 * crt1.c: Include stdlib.h.
4399 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4401 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4402 (MINGW_OBJS): Add txtmode.o.
4403 (SRCDIST_FILES): Add txtmode.c binmode.c.
4404 crt1.c: Don't include fcntrl.h, stdlib.h.
4405 (_fmode): Declare, without dllimport attribute.
4406 (__p__fmode): Declare access function for dll's _fmode.
4407 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
4409 * txtmode.c: New file.
4410 * binmode.c: New file.
4411 * samples/fmode/test2.c: New file.
4412 * samples/fmode/jamfile: Add test2.exe target.
4414 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4416 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
4417 macros work with C89.
4418 (INTMAX_C, UINTMAX_C): Likewise.
4420 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4422 * include/string.h (strcasecmp): Make extern __inline__.
4423 (strncasecmp): Likewise.
4424 (wcscmpi): Likewise.
4426 2002-10-08 Heiko Gerdau <hg@technosis.de>
4428 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
4429 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
4432 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4434 * mingwex/math/powil.c: Rename powil to __powil.
4435 * mingwex/math/powl.c: Adjust declaration and call
4436 to __powil. Remove comment on powil.
4437 * mingwex/math/powi.c: New file.
4438 * mingwex/math/powif.c: New file.
4439 * mingwex/math/pow.c: New file.
4440 * mingwex/math/cephes_mconf.h. Add double and float
4441 versions of constants.
4442 (polevl): Add double precision function.
4444 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4446 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4448 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4450 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4451 (_imp____mbcur_max_dll): Likewise.
4453 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4455 * include/fcntl.h (_fmode): Remove declarations and
4456 compatibility defines.
4457 (_setmode, setmode): Remove prototypes.
4458 * include/stdlib (_fmode): Add declarations and
4459 compatibility defines. Change type to int.
4460 * include/io.h (_setmode, setmode): Add prototypes.
4461 * samples/fmode/all.c: Adjust includes.
4462 * samples/fmode/test.c: Likewise.
4463 * crt1.c (_CRT_fmode): Declare as int.
4464 * CRTfmode.c (_CRT_fmode): Likewise.
4466 * include/stdlib: Remove comment about MB_CUR_MAX.
4468 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4470 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4471 (_imp____mbcur_max_dll): Likewise.
4473 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4475 * mingwex/math/files.txt: Remove inadvertantly added file.
4477 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4479 * include/string.h (_strerror): Move into #ifndef
4480 __STRICT_ANSI__ block.
4482 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4484 * include/time.h (__need_NULL): Define before including
4485 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4487 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4489 * include/stdio.h: Correct comment about directory separator.
4491 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4493 * include/sys/time.h (timeval): Add struct definition and
4494 associated macros (copied from w32api/include/winsock.h).
4496 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4498 * include/_mingw.h: Increment version to 2.3.
4501 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4503 * mingwex/fegetenv.c: Change to \n line endings.
4504 * mingwex/vsnprintf.c: Ditto.
4505 * mingwex/vsnwprintf.c: Ditto.
4507 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4509 * mingwex/math/hypotl.c: Replace with version based on cephes
4512 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4514 * include/sys/param.h: Add ENDIAN defines.
4515 * test_headers.c: Include sys/param.h.
4517 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4519 * test_headers.c: Don't include varargs.h.
4520 * Makefile.in (test_headers): Don't use -std=xx
4523 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4525 * include/sys/param.h: New File.
4527 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4529 * include/math.h (asm): Change to __asm__ throughout.
4530 Expose ISO C99 functions if __GLIPCPP__.
4531 (hypotf): Use hypot, not _hypot in stub.
4533 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4535 * include/tchar.h: Ansi-fy another comment.
4537 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4539 * include/tchar.h: Ansi-fy comment.
4541 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4543 * test_headers.c : New file.
4544 * Makefile.in (test_headers): New target, using it,
4545 (SRCDIST_FILES): Distribute it.
4547 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4549 * include/_mingw.h: Increment version to 2.2.
4552 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4554 * include/unistd.h: Add include of process.h.
4556 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4558 * include/stdio.h (_fcloseall): Add prototype.
4560 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4562 * include/tchar.h (_tfdopen): Correct typo.
4564 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4566 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4567 nextafter): Add non-underscored stubs.
4568 * moldname-msvcrt.def: Regenerate.
4569 * moldname-crtdll.def: Regenerate.
4570 * mingwex/math: New directory.
4571 * mingwex/rint.c: Move to mingwex/math.
4572 * mingwex/rintf.c: Ditto.
4573 * mingwex/rintl.c: Ditto.
4574 * mingwex/round.c: Ditto.
4575 * mingwex/roundf.c: Ditto.
4576 * mingwex/roundl.c: Ditto.
4577 * mingwex/rint.c: Ditto.
4578 * mingwex/rintf.c: Ditto.
4579 * mingwex/rintl.c: Ditto.
4580 * mingwex/trunc.c: Ditto.
4581 * mingwex/truncf.c: Ditto.
4582 * mingwex/truncl.c: Ditto.
4583 * mingwex/signbit.c: Ditto.
4584 * mingwex/signbitf.c: Ditto.
4585 * mingwex/signbitl.c: Ditto.
4586 * mingwex/copysignl.S: Ditto.
4587 * mingwex/fdim.c: Ditto.
4588 * mingwex/fdimf.c: Ditto.
4589 * mingwex/fdiml.c: Ditto.
4590 * mingwex/fmin.c: Ditto.
4591 * mingwex/fminf.c: Ditto.
4592 * mingwex/fminl.c: Ditto.
4593 * mingwex/fmax.c: Ditto.
4594 * mingwex/fmaxf.c: Ditto.
4595 * mingwex/fmaxl.c: Ditto.
4596 * mingwex/fma.c: Ditto.
4597 * mingwex/fmaf.c: Ditto.
4598 * mingwex/fmal.c: Ditto.
4599 * mingwex/fpclassify.c: Ditto.
4600 * mingwex/fpclassifyl.c: Ditto.
4601 * mingwex/fpclassifyl.c: Ditto.
4602 * mingwex/isnan.c: Ditto.
4603 * mingwex/isnanf.c: Ditto.
4604 * mingwex/isnanl.c: Ditto.
4605 * mingwex/fucom.c: Ditto.
4606 * mingwex/fp_consts.c: Ditto. Split out float and long double
4608 * mingwex/math_stubs.c: Remove.
4609 * mingwex/log2.c: Remove. Replaced by math/log2.S
4610 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4611 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4612 * mingwex/math/acosf.c : New file.
4613 * mingwex/math/acosl.c: New file.
4614 * mingwex/math/asinf.c: New file.
4615 * mingwex/math/asinl.c: New file.
4616 * mingwex/math/atan2f.c: New file.
4617 * mingwex/math/atan2l.c: New file.
4618 * mingwex/math/atanf.c: New file.
4619 * mingwex/math/atanl.c: New file.
4620 * mingwex/math/cbrt.c: New file.
4621 * mingwex/math/cbrtf.c: New file.
4622 * mingwex/math/cbrtl.c: New file.
4623 * mingwex/math/ceilf.S: New file.
4624 * mingwex/math/ceill.S: New file.
4625 * mingwex/math/cephes_ld.h: New file.
4626 * mingwex/math/copysign.S: New file.
4627 * mingwex/math/copysignf.S: New file.
4628 * mingwex/math/cosf.S: New file.
4629 * mingwex/math/coshf.c: New file.
4630 * mingwex/math/coshl.c: New file.
4631 * mingwex/math/cosl.S: New file.
4632 * mingwex/math/exp2.S: New file.
4633 * mingwex/math/exp2f.S: New file.
4634 * mingwex/math/exp2l.S: New file.
4635 * mingwex/math/expf.c: New file.
4636 * mingwex/math/expl.c: New file.
4637 * mingwex/math/fabs.c: New file.
4638 * mingwex/math/fabsf.c: New file.
4639 * mingwex/math/fabsl.c: New file.
4640 * mingwex/math/floorf.S: New file.
4641 * mingwex/math/floorl.S: New file.
4642 * mingwex/math/fmodf.c: New file.
4643 * mingwex/math/fmodl.c: New file.
4644 * mingwex/math/fp_consts.h: Ditto.
4645 * mingwex/math/fp_constsf.c: Ditto.
4646 * mingwex/math/fp_constsl.c: Ditto.
4647 * mingwex/math/frexpf.c: New file.
4648 * mingwex/math/frexpl.S: New file.
4649 * mingwex/math/hypotf.c: New file.
4650 * mingwex/math/hypotl.c: New file.
4651 * mingwex/math/ilogb.S: New file.
4652 * mingwex/math/ilogbf.S: New file.
4653 * mingwex/math/ilogbl.S: New file.
4654 * mingwex/math/ldexpf.c: New file.
4655 * mingwex/math/ldexpl.c: New file.
4656 * mingwex/math/llrint.c: New file.
4657 * mingwex/math/llrintf.c: New file.
4658 * mingwex/math/llrintl.c: New file.
4659 * mingwex/math/llround.c: New file.
4660 * mingwex/math/llroundf.c: New file.
4661 * mingwex/math/llroundl.c: New file.
4662 * mingwex/math/log10f.S: New file.
4663 * mingwex/math/log10l.S: New file.
4664 * mingwex/math/log1p.S: New file.
4665 * mingwex/math/log1pf.S: New file.
4666 * mingwex/math/log1pl.S: New file.
4667 * mingwex/math/log2.S: New file.
4668 * mingwex/math/log2f.S: New file.
4669 * mingwex/math/log2l.S: New file.
4670 * mingwex/math/logb.c: New file.
4671 * mingwex/math/logbf.c: New file.
4672 * mingwex/math/logbl.c: New file.
4673 * mingwex/math/logf.S: New file.
4674 * mingwex/math/logl.S: New file.
4675 * mingwex/math/lrint.c: New file.
4676 * mingwex/math/lrintf.c: New file.
4677 * mingwex/math/lrintl.c: New file.
4678 * mingwex/math/lround.c: New file.
4679 * mingwex/math/lroundf.c: New file.
4680 * mingwex/math/lroundl.c: New file.
4681 * mingwex/math/modff.c: New file.
4682 * mingwex/math/modfl.c: New file.
4683 * mingwex/math/nearbyint.S: New file.
4684 * mingwex/math/nearbyintf.S: New file.
4685 * mingwex/math/nearbyintl.S: New file.
4686 * mingwex/math/nextafterf.c: New file.
4687 * mingwex/math/powf.c: New file.
4688 * mingwex/math/powl.c: New file.
4689 * mingwex/math/powil.c: New file.
4690 * mingwex/math/remainder.S: New file.
4691 * mingwex/math/remainderf.S: New file.
4692 * mingwex/math/remainderl.S: New file.
4693 * mingwex/math/remquo.S: New file.
4694 * mingwex/math/remquof.S: New file.
4695 * mingwex/math/remquol.S: New file.
4696 * mingwex/math/scalbn.S: New file.
4697 * mingwex/math/scalbnf.S: New file.
4698 * mingwex/math/scalbnl.S: New file.
4699 * mingwex/math/sinf.S: New file.
4700 * mingwex/math/sinhf.c: New file.
4701 * mingwex/math/sinhl.c: New file.
4702 * mingwex/math/sinl.S: New file.
4703 * mingwex/math/sqrt.c: New file.
4704 * mingwex/math/sqrtf.c: New file.
4705 * mingwex/math/sqrtl.c: New file.
4706 * mingwex/math/tanf.S: New file.
4707 * mingwex/math/tanhf.c: New file.
4708 * mingwex/math/tanhl.c: New file.
4709 * mingwex/math/tanl.S: New file.
4710 * mingwex/Makefile.in: Adjust VPATH for source files in
4713 Add MATH_DISTFILES and use it to build source distro.
4714 * include/math.h: Add protypes for new functions and
4715 reorganise to reflect ANSI,C99 status.
4717 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
4719 * include/tchar.h (_getts): Define as _getws for _UNICODE.
4720 (_putts): Define as _putws for _UNICODE.
4721 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
4723 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
4725 * include/float.h: #include_next<float.h> before header guard.
4727 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
4729 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
4731 * include/excpt.h (): Include windef.h not windows.h.
4732 * include/fcntl.h (_O_SHORT_LIVED): Add define.
4733 (_chmod): Add prototype.
4734 (_creat): Correct prototype.
4735 (SH_DENY*): Rename defines to _SH_DENY*.
4736 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
4737 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
4738 _IOAPPEND): Add defines.
4739 (_wfindfirst): Correct prototype.
4740 (_wfdopen): Add prototype.
4741 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
4743 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
4745 (_wcsdup): Correct prototype.
4746 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
4747 _mbsncat being in string.h.
4748 * include/wchar.h (_wfindfirst): Correct prototype.
4749 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
4751 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4753 * include/_mingw.h: Increment to version 2.1.
4754 * Makefile.in: Ditto.
4756 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4758 * Makefile.in (conf_prefix): New variable.
4759 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
4760 (bindist): Use dist_prefix.
4762 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
4764 * include/_mingw.h: Increment version to 2.0.
4765 * Makefile.in: Ditto.
4767 Merge in mingwex branch.
4769 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
4771 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
4772 * mingwex/fdim.c: New file.
4773 * mingwex/fdimf.c: New file.
4774 * mingwex/fdiml.c: New file.
4775 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
4777 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
4779 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
4781 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
4783 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
4785 * mingwex/isnanl.c: New file.
4787 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4789 * include/stdint.h: Include <stddef.h> to get wchar_t and wint_t.
4790 (WINT_MAX): Define to ((wint_t)-1).
4792 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4794 * include/wctype.h: Replace 'inline' with '__inline__'.
4795 * include/inttypes.h: Likewise.
4797 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4799 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
4800 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
4802 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4804 * mingwex/snprintf.c: Split out vsnprintf to....
4805 * mingwex/vsnprintf.c: New file.
4806 * mingwex/snwprintf.c: Split out vsnwprintf to...
4807 * mingwex/vsnwprintf.c: New file.
4808 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
4810 2002-05-15 Pascal Obry <obry@gnat.com>
4812 * include/dirent.h (DIR): Change dd_stat type to int.
4815 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
4817 * include/stdio.h (vsnprintf): Change inline to __inline__;
4818 (vsnwprintf): Likewise.
4819 * include/wchar.h (vsnwprintf): Likewise.
4822 (mbsinit): Likewise.
4824 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
4826 Change FP default precison from 53 to 64-bit mantissa.
4828 * Makefile.in (CRT0S): Add CRT_fp8.o.
4829 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
4830 * include/float.h: Replace standard float.h defines with
4831 #include_next<float.h> to use GCC's defines. Adjust comments
4834 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4836 * include/dos.h: Change prefix "__imp_" to "_imp__" for
4837 __GNUC__ without __DECLSPEC_SUPPORTED.
4838 * include/fnctl.h: Likewise.
4839 * include/math.h: Likewise.
4840 * include/stdio.h: Likewise.
4841 * include/stdlib.h: Likewise.
4842 * include/time.h: Likewise.
4843 * include/wctype.h: Likewise.
4844 * include/ctype.h: Likewise.
4846 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4848 Add atexit support for dlls.
4849 * crt1.c (atexit): Force thunk to _imp__atexit.
4850 (_onexit): Force thunk to _imp___onexit.
4851 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4852 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4853 (__dll_exit): New function to run atexit-registered functions
4854 and flush output buffers on DLL_PROCESS_DETACH or failed
4856 (atexit): Force use of private atexit table via _dllonexit,
4857 (_onexit): New function. Force use of private atexit table via
4859 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4860 _imp_<_symbol> is visible in import lib.
4861 * msvcrt20.def: Likewise.
4862 * msvcrt40.def: Likewise.
4863 * crtdll.def: Likewise.
4865 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4867 * include/fenv.h: Change header guard macro to _FENV_H_.
4868 (fenv_t, fexcept_t): Move into block protected by
4870 Cleanup some whitespace.
4871 * include/inttypes.h: Change header guard macro to
4874 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4876 * include/math.h (copysignl): Declare.
4877 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4878 (MATHOBJS):Add copysignl.o.
4880 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4882 * include/math.h (__signbitl, __isnanl): Declare.
4884 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4886 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4887 roundl, truncl, fmal, log2l): Declare.
4888 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4889 || !defined __STRICT_ANSI__.
4890 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4891 * mingwex/fmin.c (fmin): Likewise.
4892 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4893 * mingwex/fminf.c (fminf): Likewise.
4894 * mingwex/fmaxl.c: New file.
4895 * mingwex/fminl.c: New file.
4896 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4897 * mingwex/fpclassifyf.c: New file.
4898 * mingwex/fpclassifyl.c: New file.
4899 * mingwex/rint.c (rintf): Split out to...
4900 * mingwex/rintf.c: New file.
4901 * mingwex/rintl.c: New file.
4902 * mingwex/round.c (roundf): Split out to...
4903 * mingwex/roundf.c: New file.
4904 * mingwex/roundl.c: New file.
4905 * mingwex/trunc.c (truncf): Split out to...
4906 * mingwex/truncf.c: New file.
4907 * mingwex/truncl.c: New file.
4908 * mingwex/signbit.c (signbitf): Split out to...
4909 * mingwex/signbitf.c: New file.
4910 * mingwex/signbitl.c: New file.
4911 * mingwex/fmal.c: New file.
4912 * mingwex/copysignl.S: New file.
4913 * mingwex/log2l.c: New file.
4914 * mingwex/fp_consts.c: Add nanl definition.
4915 Comment out unused constants.
4916 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4917 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4918 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4920 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4921 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4922 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4924 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4926 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4928 Make wide char versions of opendir and friends.
4930 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4932 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4933 _wseekdir): Add prototypes for wide versions of corresponding
4935 * include/tchar.h; Add _UNICODE mappings for dirent.h
4936 structures and functions.
4937 * mingwex/dirent.c: Make _UNICODE neutral.
4938 * mingwex/wdirent.c: New file to define _UNICODE before
4940 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4941 (POSIX_OBJS): Add wdirent.o.
4942 (wdirent.o): Specify dependency on dirent.c as well as
4944 * samples/dirent/wtest.c: New file, wide version of test.c.
4946 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4948 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4949 ensure gcc include dir is searched despite -nostdinc.
4950 * profile/Makefile.in (INCLUDES): Likewise.
4951 * mingwex/Makefile.in (INCLUDES): Likewise.
4952 * include/stdarg.h: Replace with stub that just guards the
4953 real gcc system header with #ifndef RC_INVOKED
4954 * include/varargs.h: Likewise.
4955 * include/stddef.h: Likewise.
4956 * include/stdio.h: Include stdarg.h after defining
4958 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4959 Replace va_list with __VALIST throughout.
4961 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4963 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4964 * msvcrt.def (_fpreset): Mark as DATA so that only
4965 _imp___fpreset is exported.
4966 * msvcrt20.def (_fpreset): Likewise.
4967 * msvcrt40.def (_fpreset): Likewise.
4968 * crtdll.def (_fpreset): Likewise.
4969 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4971 (fpreset): Add alias.
4972 (__CRT_PC): Delete definition. _fpreset does it now.
4973 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4974 (fpreset): Add alias.
4975 (__CRT_PC): Delete definition.
4976 * moldname.def.in: Comment out fpreset.
4977 * moldname-msvcrt.def: Regenerate.
4978 * moldname-crtdll.def: Regenerate.
4979 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4980 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
4981 with the _fpreset determined by startup CRT_fp object.
4983 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
4985 * CRT_fp8.c: New file.
4986 * CRT_fp10.c: New file.
4987 * crt1.c (__CRT_PC) Declare.
4988 (__CRT_fesetenv): New static function, using _CRT_PC.
4989 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
4990 (_gnu_exception_handler): Likewise.
4991 * Makefile.in (CRT0S): Add CRT_fp10.o.
4992 (MINGW_OBJS): Add CRT_fp8.o.
4993 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
4994 Add CRT_fp8.o, CRT_fp10.o dependancies.
4995 * include/float.h (_fpreset): Expand comment.
4996 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
4997 (extended precison) environmemt.
4998 (FE_PC53_ENV): New define for MSVCRT default environmemt.
4999 (FE_DFL_ENV): Define as FE_PC53_ENV.
5000 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
5001 precision control for default environment.
5003 * include/math.h: Fix long comment line.
5004 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
5006 * profile/configure: Regenerate.
5008 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
5010 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
5012 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
5014 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
5015 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
5016 (__mingw_fseek): New function to work around Win9x f/lseek bug.
5017 (__mingw_fwrite): Likewise.
5018 (__mingw_is_win9x): New helper function.
5020 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
5021 (__mingw_fseek): New prototype and define to replace fseek.
5022 (__mingw_fwrite): New prototype and define to replace fwrite.
5023 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
5024 * moldname-crtdll.def: Remove CR from end of line.
5025 * moldname-msvcrt.def: Ditto.
5027 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
5029 * profile/configure.in (CRT0S): Configure name of gcrt?.o
5030 based on target, building gcrt0.o for cygwin -mno-cygwin.
5031 * profile/configure: Regenerate.
5032 * profile/Makefile.in (CRT0S): Use name from configure.
5033 (gcrt0.o): New rule.
5034 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
5036 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5038 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
5039 _fpecode): Remove prototypes copied from float.h.
5040 (nan, nanf): Move into block protected against RC_INVOKED
5042 * include/stdlib.h (_Exit): Change from static inline to
5044 * mingwex/_Exit.c : New file.
5045 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
5047 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
5049 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
5050 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
5051 (configdirs): Likewise.
5052 (LIBGMON_A): Define for cygwin target as well.
5053 * configure: Regenerate.
5054 * profile/configure.in (THREAD_DLL): Remove define.
5055 (LIBM_A): Remove define.
5056 (LIBGMON_A): Define for cygwin target as well.
5057 * profile/configure: Regenerate.
5058 * profile/makefile.in (install): Install to inst_libdir and
5060 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
5061 (OPTFLAGS): New define.
5062 (ALL_CFLAGS): Add $(OPTFLAGS).
5063 (ALL_CXXFLAGS): Same.
5064 (.c.o:): Remove ALL_CXXFLAGS.
5066 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
5068 * include/stdint.h: Add missing newline at eof.
5069 * include/stdio.h (snprintf): Add prototype.
5070 (vsnprintf): Add prototype and inline definition.
5071 (snwprintf): Add prototype.
5072 (vsnwprintf): Add prototype and inline definition.
5073 * include/wchar.h (snwprintf): Add prototype.
5074 (vsnwprintf): Add prototype and inline definition.
5075 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
5077 * mingwex/snprintf.c: New file.
5078 * mingwex/snwprintf.c: New file.
5080 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
5082 * configure.in: Add mingwex as SUBDIRS and configdirs.
5083 * configure: Regenerate.
5084 * Makefile.in (MINGW_OBJS): Remove dirent.o.
5085 (SRC_DIST_FILES): Remove dirent.c.
5087 * include/stdlib.h (_Exit): Add static inline
5089 (struct lldiv_t): Define.
5090 (lldiv): Add prototype.
5091 (llabs): Add extern inline function.
5092 (strtoll,strtoull): Add prototypes.
5093 (wcstol, wcstoul, wcstod): Group together.
5094 (strtof, wcstof): Add extern inline definitions.
5095 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
5096 and extern inline definitions.
5097 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
5098 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
5100 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
5101 (wcstof): Add extern inline definition.
5102 * include/math.h (nan, nanf): Add prototypes.
5103 (NAN, INFINITE): Define constants.
5104 (fpclassify, isnan ,signbit): Add macros and supporting float
5105 and double functions.
5106 (isfinite, isinf, isnormal): Add macros.
5107 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
5109 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
5110 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
5111 (copysign, logb, nextafter, scalb): Add prototypes and
5112 inline stubs for underscored versions in msvcrt.dll.
5113 * include/inttypes.h: New file.
5114 * include/fenv.h: New file
5116 Add new mingwex subdir and files.
5117 * mingwex: New directory.
5118 * mingwex/Makefile.in: New file.
5119 * mingwex/configure.in: New file.
5120 * mingwex/configure: Generate.
5121 * mingwex/dirent.c: Moved here from parent dir.
5122 * mingwex/atoll.c: New file.
5123 * mingwex/feclearexcept.c: New file.
5124 * mingwex/fegetenv.c: New file.
5125 * mingwex/fegetexceptflag.c: New file.
5126 * mingwex/fegetround.c: New file.
5127 * mingwex/feholdexcept.c: New file.
5128 * mingwex/feraiseexcept.c: New file.
5129 * mingwex/fesetenv.c: New file.
5130 * mingwex/fesetexceptflag.c: New file.
5131 * mingwex/fesetround.o: New file.
5132 * mingwex/fetestexcept.c: New file.
5133 * mingwex/feupdateenv.c: New file.
5134 * mingwex/fma.S: New file.
5135 * mingwex/fmaf.S: New file.
5136 * mingwex/fmax.c: New file.
5137 * mingwex/fmaxf.c: New file.
5138 * mingwex/fmin.c: New file.
5139 * mingwex/fminf.c: New file.
5140 * mingwex/fp_consts.c: New file.
5141 * mingwex/fpclassify.c: New file.
5142 * mingwex/fucom.c: New file.
5143 * mingwex/fwide.c: New file.
5144 * mingwex/imaxabs.c: New file.
5145 * mingwex/imaxdiv.c: New file.
5146 * mingwex/isnan.c: New file.
5147 * mingwex/isnanf.c: New file.
5148 * mingwex/lltoa.c: New file.
5149 * mingwex/lltow.c: New file.
5150 * mingwex/log2.c: New file.
5151 * mingwex/log2f.c: New file.
5152 * mingwex/math_stubs.c: New file.
5153 * mingwex/mbsinit.c: New file.
5154 * mingwex/rint.c: New file.
5155 * mingwex/round.c: New file.
5156 * mingwex/signbit.c: New file.
5157 * mingwex/sitest.c: New file.
5158 * mingwex/strtof.c: New file.
5159 * mingwex/strtoimax.c: New file.
5160 * mingwex/strtoumax.c: New file.
5161 * mingwex/testwmem.c: New file.
5162 * mingwex/trunc.c: New file.
5163 * mingwex/ulltoa.c: New file.
5164 * mingwex/ulltow.c: New file.
5165 * mingwex/wcstof.c: New file.
5166 * mingwex/wcstoimax.c: New file.
5167 * mingwex/wcstoumax.c: New file.
5168 * mingwex/wmemchr.c: New file.
5169 * mingwex/wmemcmp.c: New file.
5170 * mingwex/wmemcpy.c: New file.
5171 * mingwex/wmemmove.c: New file.
5172 * mingwex/wmemset.c: New file.
5173 * mingwex/wtoll.c: New file.
5175 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5177 * include/mbstring.h: New file.
5178 * include/mbctype.h: New file.
5180 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5182 * include/tchar.h (__TEXT): Make same as define in
5183 w32api/include/winnt.h.
5185 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5187 * include/tchar.h (_tputenv): Add UNICODE mappings.
5188 (_tsearchenv): Likewise.
5189 (_tmakepath): Likewise.
5190 (_tsplitpath): Likewise.
5191 (_tfullpath): Likewise.
5193 2002-04-18 Pascal Obry <obry@gnat.com>
5195 * dirent.c (opendir): Convert given pathname to
5198 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5200 * include/_mingw.h: Increment version.
5201 * Makefile.in: Ditto.
5203 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5205 * moldname-crtdll.def: Remove CR from end of line.
5206 * moldname-msvcrt.def: Ditto.
5207 * Makefile.in: Use bzip2 compression for Cygwin target.
5209 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
5211 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
5212 TLOSS, PLOSS): Move oldname defines back, following
5213 the underscored names.
5215 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
5217 * include/stdio.h (_snwprintf): Correct spelling.
5218 (_vsnwprintf): Likewise.
5219 * include/wchar.h (_snwprintf): Correct spelling.
5220 (_vsnwprintf): Likewise.
5222 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
5224 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
5225 (wpopen): Add if !(__CRTDLL__).
5226 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
5228 (moldname-crtdll.def rule): Likewise.
5229 * moldname-msvcrt.def: Regenerate.
5230 * moldname-crtdll.def: Regenerate.
5231 * include/stdio.h (wpopen):Use prototype, not a define.
5232 (_swnprintf): Add prototype.
5233 (_vswnprintf): Likewise.
5235 * include/wchar.h (_swnprintf): Add prototype.
5236 (_vswnprintf): Likewise.
5239 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5241 * include/malloc.h (_heapinfo): Correct structure definition.
5242 (_USEDENTRY,_FREEENTRY): Add defines.
5243 Add comment on platform support for _heap* functions.
5244 (_get_sbh_threshold): Add prototype.
5245 (_set_sbh_threshold): Likewise.
5246 (_expand): Likewise.
5248 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5250 * profile/profil.c: Update copyright info.
5251 * profile/profil.h: Likewise.
5252 * profile/gcrt0.c: Likewise.
5254 2002-01-25 Pascal Obry <obry@gnat.com>
5256 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5258 * profile/gmon.c: Define bzero as memset if mingw32.
5259 (monstartup): Use it.
5261 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5263 * include/tchar.h (_TCHAR): Add missing ;.
5265 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5267 * include/tchar.h (_TCHAR): Add typedefs.
5269 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5271 * include/stdlib.h (_onexit_t): Add typedef.
5272 (_onexit): Add prototype.
5274 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5276 * msvcrt.def: Revert accidental change.
5277 * include/stdlib.h: Ditto.
5279 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5281 * Makefile.in: Increment VERSION.
5282 * include/_mingw.h: Ditto.
5284 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5286 * include/strings.h: New File.
5288 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5290 * include/math.h (_FPCLASS* ): Add defines from float.h.
5291 (IEEE recommended functions): Add declarations from float.h.
5292 * include/float.h (_FPCLASS* ): Protect against redefinition.
5294 2001-11-29 Wu Yongwei <adah@netstd.com>
5296 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5297 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5298 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5299 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5300 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5301 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5302 Correct spelling of "disclaimed" in comments.
5303 * include/excpt.h: Another spelling correction.
5305 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5307 * include/errno.h: Fix "errno is not a prototype" warning.
5309 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
5311 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
5312 differences between ANSI and non-ANSI versions.
5313 (_ctype[],_pctype): Declare vars.
5314 (__ISCTYPE): New helper macro using _pctype.
5315 (is* ctype functions): Use __ISCTYPE to define inline versions.
5316 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
5318 (isw* ctype functions): Inline definitions.
5319 * include/wctype.h (_ctype[],_pctype): Declare vars.
5320 (isw* ctype functions): Inline definitions.
5323 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5325 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
5326 __fpecode): Use __STDC__ prototypes.
5329 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
5331 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
5332 * mthr_init.c (DllMain) Run dtors if a process terminates.
5333 * mthr.c (__mingwthr_add_key_dtor) Removed.
5334 (___mingwthr_add_key_dtor) New.
5335 (___mingwthr_remove_key_dtor) New.
5336 (__mingwthr_run_key_dtors) Complete rewrite.
5337 (__mingwthr_remove_key_dtor) New.
5339 2001-11-05 Egor Duda <deo@logos-m.ru>
5341 * Makefile.in: Delete unused executable after creating base-files.
5343 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5345 * include/errno.h (_errno): Use __STDC__ prototype.
5346 Thanks to: Jim Barton.
5348 2001-11-04 "stefan" <stefan@lkcc.org>
5350 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
5352 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5354 * include/io.h (_commit): Add declaration.
5355 Thanks to: "stefan" <stefan@lkcc.org>
5357 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5359 * include/sys/stat.h: Make S_IS* macros safer.
5361 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
5363 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
5365 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5367 * include/stdlib.h (__p__environ, __p__wenviron): Use
5368 __STDC__ prototypes.
5370 2001-09-19 Earnie Boyd <earnie@SF.net>
5372 * Makefile.in: Remove the /usr from the install target.
5373 (VERSION): Increment.
5374 include/_mingw.h: Ditto.
5376 2001-09-17 Earnie Boyd <earnie@SF.net>
5378 * Makefile.in: Increment version.
5379 * include/_mingw.h: Ditto.
5381 2001-09-10 Earnie Boyd <earnie@SF.net>
5383 * dossh: Remove inadvertantly imported file.
5385 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5387 * dirent.c (opendir): Use GetFileAttributes rather than stat
5388 to determine if input arg is dir.
5390 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
5392 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5394 * include/varargs.h (va_list): Ditto.
5395 * include/stdio.h (va_list): Ditto.
5397 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5399 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5400 * include/stdio.h (_IORW): Change constant to 0x0080.
5401 (TMP_MAX): Add new define.
5403 (_wP_tmpdir): Ditto.
5404 (L_tmpnam): Change constant to 16.
5406 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
5408 * include/malloc.h: Fix non-ANSI comment after #endif.
5410 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5412 * profile/configure.in: Make msvcrt.dll version default.
5413 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
5414 * provile/configure: Regenerate.
5416 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
5418 * include/stdio.h (swscanf): Make first arugument const.
5419 * include/wchar.h (swscanf): Ditto.
5420 * include/tchar.h (_tfopen): New _UNICODE define.
5422 (_tsetlocale): Ditto.
5424 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5426 * profile/Makefile.in (mkinstalldirs): Correct relative path.
5428 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5430 * include/_mingw.h: Change version to 1.0.
5433 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
5435 * include/tchar.h: (__TEXT): Remove undef.
5439 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5441 * include/tchar.h: (__TEXT): Add private macro.
5442 (_TEXT): Modify definition to use __TEXT.
5444 This change allows the passing of a MACRO as an argument and have that
5445 MACRO resolved first.
5446 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5448 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5450 * Makefile.in: Increment version to 0.5
5451 * include/_mingw.h: Increment minor version
5453 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5455 * include/assert.h: (assert): Remove ; from end of definition
5456 Thanks to: AJ Reins <tbisp@qwest.net>
5458 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5460 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5461 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5463 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5465 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5467 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5469 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5470 are actually C functions. These functions are resolved via the
5471 -lmsvcp60 library and comments were placed in the header.
5473 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5475 * include/stdlib.h (__p__pgmptr): add prototype.
5476 (__p__wpgmptr): likewise.
5477 (_pgmptr_dll): move declaration from dos.h.
5478 (_wpgmptr_dll): likewise.
5479 (_pgmptr): conditional define (MSVCT/CRTDLL).
5480 (_wpgmptr): likewise.
5481 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5482 (_os*_dll variables): likewise.
5483 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5484 (_wpgmptr_dll): likewise.
5486 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5488 * include/stdint.h: New file.
5490 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5492 * include/wchar.h: Protect prototypes only declared in the C++ STL
5493 from being declared unless __cplusplus is defined.
5495 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5497 * include/stdlib.h: Apply Danny Smith patch 102730
5498 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5499 (_wgetenv) Correction to return type.
5501 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5503 * include/locale.h: Apply Danny Smith patch 101834
5504 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5505 (LC_MIN) Add definition.
5507 (_wsetlocale) Add prototype.
5509 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5511 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5512 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5513 Create a libcoldname.a for the oldname library for CRTDLL.
5514 Restrict libmoldname.a for the oldname library for MSVCRT.
5515 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5516 Restructure the $target_os case logic.
5517 Always name the MinGW thread dll helper mingwm.
5518 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5519 * configure: regenerate.
5521 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5523 * Makefile.in: Fix bindist target to distribute the correct files.
5524 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5525 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5527 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5529 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5530 Add variables and targets to control binary and source distributions.
5531 Add variables and targets to control snapshot distribution.
5532 * profile/gmon.h: Add missing #endif for #ifndef.
5533 * profile/ChangeLog: Merge entries here and remove.
5534 * profile/Makefile.in: Add variables and targets to control
5538 * config.guess: ditto.
5539 * config.sub: ditto.
5540 * mkinstalldirs: ditto.
5541 * install-sh: ditto.
5542 * configure: regenerate.
5543 * profile/configure: ditto.
5545 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5547 * Merge in changes from
5548 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5549 * include/direct.h: add guard around MSVCRT-only prototytpes
5550 * include/io.h: add __int64 struct definitions and function prototypes;
5551 add guard for MSVCRT-only prototypes
5552 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5553 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5554 put wchar functions together to make sync with wchar.h easier
5555 * include/stdlib.h: add wide char functions (__MSVCRT__)
5556 * include/string.h: add string collation functions ( __MSVCRT__)
5557 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5558 * include/tchar.h: add macros and macro function definitions
5559 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5560 enclose more functions in __MSVCRT__ guard;
5561 some oldname wide char function prototypes #if (0)'d
5562 * profile/gmon.h: add guard around BSD-ish typedefs
5564 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5566 * Makefile.in: Use a different variable name for subdirectory since the
5567 previous one was used by the top level make.
5569 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5571 * Makefile.in: Install mingw stuff in a subdirectory if building under
5574 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5576 * Makefile.in (subdirs): Eliminate for loop.
5578 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5580 * Makefile.in (subdirs): Previous change did not fix problem in
5583 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5585 * Makefile.in: Avoid installing dll if we're cross building and the
5586 cross-host system isn't a Windows system.
5587 * configure.in: Detect cross-hosting situation and set appropriate
5588 variables in Makefile.in.
5589 * configure: Regenerate.
5591 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5593 * configure.in: Change HEADER_SUBDIR to mingw32.
5594 * configure: Regenerate.
5596 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5598 * include/string.h: Use proper prototype for _strerror.
5600 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5602 * Makefile.in (subdirs): Workaround for broken shells.
5604 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5606 * Snapshot 2000-02-03.
5608 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5609 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5610 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5611 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5614 * Makefile.in (all): Build CRT0S first.
5615 (libmingwthrd.a): Remove thread support DLL from dependency.
5617 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5619 * Snapshot 2000-01-21.
5621 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5623 Merge in changes from Cygwin:
5624 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5625 (SUBDIRS): Likewise.
5626 * Makefile.in (HEADER_SUBDIRS): New variable.
5627 (install): Use to install Mingw headers to a subdirectory if building
5629 (DLL_CC_STUFF): Add DLL entry point.
5630 * configure: Regenerate.
5632 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5634 * include/stdio.h (fsetpos): Fix prototype.
5635 (fpos_t): Fix for MSVCRT.
5636 * include/float.h (fpreset): Add prototype.
5637 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5639 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5640 export using libmoldname.a.
5641 * crtdll.def: Add DATA tags.
5642 * msvcrt.def: Likewise.
5643 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5644 both MSVCRT and CRTDLL.
5645 * moldname-crtdll.def: Regenerate.
5646 * moldname-msvcrt.def: Regenerate.
5648 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5650 * Snapshot 1999-12-21.
5652 * include/wctype.h: New file.
5653 * include/ctype.h (MB_CUR_MAX): Define.
5655 * include/stdlib.h (MB_CUR_MAX): Define.
5656 * include/wchar.h: Define stat, _stat structures here as well.
5657 * include/float.h: Add invalid subconditions (_SW) and floating
5658 point error (_FPE) macros.
5659 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5660 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5661 * include/sys/types.h: Likewise.
5663 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5665 * profile/profil.c (profile_on): Set the profiler thread priority to
5666 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5667 * Snapshot 1999-11-18.
5669 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5671 Released 1999-11-07.
5673 * Makefile.in (CRT0S): Add crtst.o.
5674 (install): Install in subdirs as well.
5675 * dirent.h (struct _stat): Rename from struct stat.
5676 * include/tchar.h: Add some new macros. Thanks to
5677 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5678 * profile/Makefile.in (install): Fix target.
5680 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5682 * Makefile.in: Add support for profile directory.
5683 * configure.in: Likewise.
5684 * configure: Regenerate.
5686 * profile: Imported profiling sources from winsup-19991026 snapshot.
5687 * profile/Makefile.in: New file.
5688 * profile/configure.in: New file.
5689 * profile/configure: Generate.
5690 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5691 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5692 * profile/gmon.c (unistd.h): Include conditionally.
5693 (sys/param.h): Likewise.
5694 * profile/mcount.c (sys/param.h): Likewise.
5695 * profile/profil.c (profile_on): thread id is DWORD, not int.
5698 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5700 * include/stdlib.h: Add wide character version of argv/environ.
5702 * include/wchar.h: More wide character prototypes.
5703 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
5705 * dllcrt1.c (init.c): Don't include.
5706 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
5707 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
5709 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
5711 * moldname.def: Remove file.
5712 * moldname.def.in: And add this.
5713 * moldname-msvcrt.def: Generate from moldname.def.in.
5714 * moldname-crtdll.def: Likewise.
5716 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
5717 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
5718 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
5720 * Makefile.in: Update.
5721 * configure.in: Likewise. Also add *cygwin* target for building
5722 under Cygwin winsup.
5723 * configure: Regenerate.
5725 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
5727 * include/_mingw.h: Add version macros.
5728 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
5729 Also add wide character versions shared with wchar.h.
5730 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
5731 * include/io.h (sopen, _sopen): Fix prototype.
5732 Add wide character prototypes.
5733 * include/wchar.h: Likewise.
5734 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
5735 underscored versions. Potential incompatibility.
5736 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
5737 Add wide character prototypes.
5738 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
5741 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
5743 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
5744 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
5746 * configure: Rengerate.
5747 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
5748 dll name and crt's. CRTDLL and MSVCRT are meant to created
5749 separately, so remove all the *-msvcrt* targets.
5750 (libmingwthr.a): New target. Dummy thread support archive.
5751 (LIBS): Add libmingwthr.a.
5752 (CRT0S): Use CRT_ID. Add crtmt.o.
5753 (MINGW_OBJS): Add crtst.o.
5754 * main.c (WinMain): Fix prototype.
5755 * crtmt.c: New file.
5756 * crtst.c: New file.
5758 * include/process.h (_beginthreadex): Fix prototype.
5759 * include/_mingw.h (__int64): Define for __GNUC__.
5760 * include/tchar.h (_ttol): Add macro.
5761 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
5762 _i64tow, _ui64tow, _wtoi64): Add prototypes.
5764 Reported by Emanuele Aliberti <ea@iol.it>:
5765 * include/tchar.h (_ttoi): Add macro.
5767 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
5768 * include/stdio.h (_snprintf): Add prototype.
5769 (_vsnprintf): Likewise.
5771 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
5773 Reported by Tor Lillqvist <tml@iki.fi>:
5774 * include/stdlib.h (__p___argv): Fix return type.
5776 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5779 * include/errno.h (errno): It's linked in from startup, not imported.
5780 * include/stdlib.h (errno): Likewise.
5781 * include/io.h: Guard against conflicting macros and prototypes in
5783 * include/stdlib.h: Likewise.
5784 * include/string.h: Likewise.
5785 * include/time.h: Likewise.
5787 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5789 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
5790 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
5791 * Makefile.in (INCLUDES): Remove old windows32 include directory.
5793 * crt1.c (_gnu_exception_handler): Fix prototype.
5794 (__mingw_CRTStartup): New function based on mainCRTStartup.
5795 (mainCRTStartup): Set the app type for MSVCRT and call
5797 (WinMainCRTStartup): Likewise.
5798 * init.c (_startupinfo): Define.
5799 (_getmainargs): Add 5th parameter.
5800 (_mingw32_init_mainargs): Use.
5802 * ALL *.c files: Reformat according to GNU coding style.
5804 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
5806 * Makefile.in (INCLUDES): Add w32api include directory.
5808 * include/_mingw.h: New file.
5809 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
5810 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
5811 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
5812 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
5813 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
5814 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
5816 * include/stdlib.h (atexit): Fix prototype.
5818 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
5820 * include/stdio.h (_tempnam): Fix prototype.
5821 (tempnam): Likewise.
5822 * include/stdlib.h: Replace with GCC's version, and guard
5825 From Anders Norlander <anorland@hem2.passagen.se>:
5826 * include/stdlib.h (__argc): Declare.
5829 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
5831 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
5833 * Makefile.in (_libm_dummy.o): New target.
5836 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
5838 * Released 1999-03-16 along with egcs-1.1.2.
5840 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
5842 * Makefile.in (LIBS): Add libm.a.
5843 (libm.a): Dummy libm.a.
5845 * Makefile.in: Update from winsup 1999-02-08 snapshot.
5846 Preserve local changes.
5847 (mkinstalldirs): In ../, not ../../.
5848 (INCLUDES): Point to local windows32api headers and use -nostdinc.
5850 (LIBS): Add libmoldname-msvc.a.
5851 (libmoldname-msvc.a): Add target.
5852 (distclean): Add target.
5854 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5856 * include/dir.h: Reintroduce as an obsolescent header.
5857 * crt1.c (signal.h): Include.
5858 (_gnu_exception_handler): New function to properly handle win32
5859 asynchronous signals.
5860 (mainCRTStartup): Use.
5862 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5864 * include/direct.h: Include io.h instead of dir.h
5865 * include/dirent.h: Likewise.
5866 * include/dos.h: Likewise.
5867 * include/stdio.h: Replace reference to dir.h with io.h.
5869 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5871 * 1999-01-01 release bundled with egcs-1.1.1.
5873 * include/io.h: Incorporate dir.h.
5874 * include/dir.h: Remove.
5875 * include/signal.h: Move RC_INVOKED up a bit.
5877 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5879 * include/signal.h (sig_atomic_t): Define.
5881 * include/malloc.h: Import defs from deprecated alloc.h.
5882 * include/alloc.h: Remove.
5884 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5885 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5886 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5887 _off_t instead of long for st_size.
5889 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5891 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5892 * include/stdlib.h: Here.
5894 * include/netdb.h: Remove.
5895 * include/arpa/inet.h: Remove.
5896 * include/netinet/in.h: Remove.
5897 * include/sys/socket.h: Remove.
5899 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5903 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5904 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5906 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5908 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5909 (jmpbuf): typedef using above.
5910 (setjmp, longjmp): Prototype using jmpbuf.
5912 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5913 obsolescent imported names, ie., from __imp__ to _imp___.
5915 Also ignored empty include/sys/param.h and incorrect
5916 include/sys/times.h.
5918 * CRTinit.c: New file.
5919 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5921 * include/io.h (umask): Fix prototype.
5922 * include/stdlib.h (OS constants): Replace with Colin's.
5923 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5924 * include/sys/state.h: Merge.
5926 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5928 * include/assert.h (assert): Lose the trailing semicolon.
5930 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5932 * include/math.h (matherr): Declare.
5933 * include/stdio.h (fileno, _fileno): Declare.
5934 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5937 * include/stdio.h (fdopen, _fdopen): Add const.
5938 (getw, putw): Declare.
5939 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5941 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5943 * include/time.h (_timezone): Undefine.
5944 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5946 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5948 * include/stdlib.h (environ): Use DLL version.
5949 * init.c (environ): Undefine it before use.
5951 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5953 * Update to 980309 snapshot from Colin Peters.
5955 * include/utime.h: remove
5956 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5957 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5958 patches to define these.
5959 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5960 (_daylight, _timezone, _tzname, _tzset): Define.
5962 * include/netdb.h: Add from Colin's windows32api changes.
5963 * include/sys/socket.h: Likewise.
5964 * include/arpa/inet.h: Likewise.
5965 * include/netinet/in.h: Likewise.
5967 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5969 * Update to 980128 snapshot from Colin Peters.
5971 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5973 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5975 * configure: Regenerate.
5977 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5979 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5980 Files renamed and include hierarchy loses directories named
5983 * include/dos.h: from Jan-Jaap.
5985 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
5987 Changes to conform to FSF tree.
5989 * crt1.c: Renamed from mcrt0.c.
5990 * dllcrt1.c: Renamed from dllcrt0.c.
5991 * Makefile.in: Update above. Also renamed libmoldnames.a to
5994 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
5996 * crtdll.def: Export all functions but the ones with funny names.
5997 * moldnames.def: Add fdopen since fileno is already there.
5998 * include/nonansi/dos.h: New file from Jan-Jaap.
5999 * include/errno.h: Add extern decl + various additions from JJ.
6000 * include/stdio.h: Likewise.
6001 * include/stdlib.h: Likewise.
6002 * include/nonansi/io.h: Likewise.
6003 * include/nonansi/process.h: Likewise.
6004 * include/sys/types.h: Likewise.
6006 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
6008 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
6010 * include/stdlib.h (free): Fix prototype to return void, not void*.
6011 * include/nonansi/process.h: Add P_* and WAIT_* defs.
6013 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
6014 * mcrt0.c: Likewise.
6016 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
6017 (libmoldnames.a): Add explicit rule to create it.
6019 1997-08-15 Rob Savoye <rob@cygnus.com>
6021 New directory for the minimalist cygwin environment.
6023 * crtglob.c: New file. Turn on file globbing support.
6024 * crt_noglob.c: New file. Turn off file globbing support.
6025 * ctype_old.c: New file. Wrappers for functions that don't
6027 * dirent.c: New file. Directory routines readdir, opendir, closedir.
6028 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
6029 * dllmain.c: New file. A stub DllMain function.
6030 * hugeval.c: New file. A gross hack to define HUGE_VAL.
6031 * init.c: New file. Common code to initialize standard file
6032 handles and command line arguments.
6033 * main.c: New file. A main for programs that only call WinMain.
6034 * mcrt0.c: New file. Default crt0 for mingw32.
6035 * oldnames.c: New File. Wrappers for functions that don't
6037 * string_old.c: New File.
6038 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
6039 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
6040 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
6041 * include/sys/types.h: New header file for mingw.
6042 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
6043 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
6044 utime.h,values.h,varargs.h}: New header files for mingw.
6045 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
6046 timeb.h,unistd.h}: New header files for mingw.
6047 * Makefile.in,configure.in: Build and configure support.
6048 * configure: Generated from autoconf 2.12 with Cygnus patches.