OSDN Git Service

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