OSDN Git Service

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