OSDN Git Service

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