OSDN Git Service

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