OSDN Git Service

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