OSDN Git Service

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