OSDN Git Service

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