OSDN Git Service

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