OSDN Git Service

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