OSDN Git Service

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