OSDN Git Service

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