OSDN Git Service

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