1 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
5 * include/sys/stat.h: Assert copyright; tidy layout.
6 (pragma GCC system_header): Declare it.
7 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
8 (_SYS_STAT_H): ...this preferred naming convention; however, when...
9 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
10 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
11 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
12 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
13 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
14 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
15 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
16 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
17 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
18 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
19 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
20 (__struct_stat_defined): New macro; define, and use it to define...
21 (struct stat, struct _stat, struct _stati64, struct __stat64)
22 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
23 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
24 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
25 definition of types size_t and wchar_t; declare all header content,
26 including that declared when __WCHAR_H_SOURCED__ is defined, unless
27 already declared as a result of selective inclusion by <wchar.h>
28 (__need_size_t, __need_wchar_t): Do not define them; consequently,
29 there is no need to include <stddef.h>; do not do so.
31 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
32 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
33 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
34 (struct _stat64i32): Likewise; reproduce them by selective inclusion
37 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
39 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
41 * include/direct.h: Conditionally partition it, such that...
42 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
43 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
44 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
45 (_WDIRECT_DEFINED): Never define it; delete all references.
47 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
48 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
49 selectively #include <direct.h> to reproduce them.
51 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
53 Factor out <direct.h> vs. <dos.h> duplicate declarations.
55 * include/dos.h: Assert copyright; tidy layout.
56 (pragma GCC system_header): Declare it.
57 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
58 (_DOS_H): ...this preferred convention; do not define it when...
59 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
60 (struct _diskfree_t): ...this aggregate data type, together with...
61 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
62 (_getdiskfree): ...this associated function.
63 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
64 emit a warning that this header is obsolete, and should not be used.
65 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
66 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
67 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
68 neither is it necessary to #include <stddef.h>; do not do so. Also,
69 do not #include <_mingw.h> explicitly, but always #include <io.h>,
70 which will implicitly #include <_mingw.h> anyway.
72 * include/direct.h: Assert copyright; tidy layout.
73 (pragma GCC system_header): Declare it.
74 (_DIRECT_H_): Rename this multiple inclusion guard macro...
75 (_DIRECT_H): ...to adopt this preferred naming convention.
76 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
77 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
78 (_getdiskfree): Likewise, do not declare prototype; instead...
79 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
80 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
81 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
82 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
83 although needed, we may inherit it indirectly from <sys/types.h>,
84 included by <io.h> via <dos.h>.
86 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
88 Evade CPP mismatched apostrophe warnings in windres comments.
90 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
92 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
94 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
96 * include/locale.h: Assert copyright; tidy layout.
97 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
98 (_LOCALE_H): ...this; do not define it when...
99 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
100 (_wsetlocale): ...just this one visible function prototype.
101 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
102 (_WLOCALE_DEFINED): Do not define it; delete all references.
103 (pragma GCC system_header): Declare it.
105 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
106 visibility by selective inclusion of <locale.h> instead.
107 (_WLOCALE_DEFINED): Delete all references.
109 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
111 Resolve some "implicit function declaration" warnings.
113 * setargv.c (isspace): Include <ctype.h> for declaration.
114 * cpu_features.h (__cpu_features_init): Declare function prototype.
115 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
117 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
119 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
121 * include/stdlib.h [__WCHAR_H_SOURCED__]
122 (_STDLIB_H): Do not define it; restrict visible declarations to...
123 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
124 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
125 of regular <stdlib.h> content; full content is declared only when...
126 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
127 (_WSTDLIB_DEFINED): Do not define it; delete all references.
128 (pragma GCC system_header): Declare it; tidy layout.
130 * include/wchar.h: Delete duplicated declarations for...
131 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
132 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
133 include <stdlib.h> selectively, to maintain their visibility.
134 (_WSTDLIB_DEFINED): Delete all references.
136 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
138 Relocate misplaced umask() function prototypes.
140 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
141 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
142 here, but leave them for backward, or Microsoft, compatibility.
144 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
146 Correct another _BEGIN_C_DECLS imbalance error.
148 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
149 unbalanced instance deleted; one correctly balanced instance remains.
151 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
153 Support installation of headers with empty parts directory.
155 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
156 (install-mingwrt-headers): ...invoke it; if false, do not perform...
157 (INSTALL_SUB_HEADERS): ...this.
159 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
161 Reinstate typedef for non-standard off64_t.
163 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
164 (__off64_t): ...typedef derived from this; although non-standard, it
165 is gratuitously required when building GCC's libgfortran.a
167 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
169 Correct conditional compilation block nesting errors.
171 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
172 them balanced within, and around, conditional compilation blocks.
174 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
176 Feature test _MINGW32_EXTENDED_SOURCE renamed.
178 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
179 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
180 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
181 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
182 users should enable any conventional feature test which implies it.
184 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
185 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
187 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
189 Correct atexit() and _onexit() export declaration regression.
191 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
192 as DATA; declare them accordingly.
194 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
196 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
198 * include/string.h: Tidy layout.
199 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
200 (_stricmp, _strnicmp): Include their prototypes, selectively from...
201 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
202 * include/parts/strings.h: ...from here; file is obsolete; delete it.
204 * include/string.h (_wcscmpi): Define alias.
205 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
206 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
207 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
208 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
209 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
210 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
211 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
212 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
214 * include/strings.h (_STRINGS_H): Do not define it, when...
215 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
216 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
218 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
220 Refactor to make <parts/time.h> redundant.
222 * include/sys/types.h (time_t, __time32_t, __time32_t)
223 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
224 * include/parts/time.h: ...from here; preserve selective exposure.
226 * include/time.h (time_t, __time32_t, __time32_t): Get them...
227 * include/sys/types.h: ...from here, by selective inclusion.
229 * include/time.h (struct timespec, struct __mingw_extended_timespec)
230 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
231 * include/parts/time.h: ...from here; preserve selective exposure.
233 * include/parts/time.h: Delete file; it is no longer required.
235 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
237 Declare the nanosleep() function where POSIX expects it.
239 * include/time.h (__mingw_sleep): Declare function prototype.
240 (nanosleep): Declare prototype, and provide in-line implementation;
241 this is a reproduction of the original implementation, relocated...
242 * include/unistd.h (nanosleep): ...from here; remove it; hence...
243 (struct timespec): ...this need not be declared here, and there is
244 no need to include <parts/time.h>; remove reference.
246 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
248 Refactor <time.h> vs. <wchar.h> to avoid duplication.
250 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
251 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
252 (struct tm): Delete definition; delegate it, together with each of...
253 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
254 (wcsftime): ...these function prototypes; delete them, but note in
255 comments, that they remain declared, via delegation to...
256 * include/time.h: ...this; include it selectively, subject to...
257 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
258 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
259 [_TIME_H]: Process all definitions and declarations; otherwise...
260 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
261 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
262 (_WTIME_DEFINED): Obsolete macro; delete all references.
264 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
266 Implement support for POSIX "%n$*m$" printf() format control.
268 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
269 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
270 (__pformat_inline__): New macro; define, and use it where appropriate.
271 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
272 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
273 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
274 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
275 (__pformat_argmap_t): ...this new union data type; define it.
276 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
277 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
278 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
279 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
280 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
281 (__pformat_length_modifier, __pformat_check_length_modifier): New
282 locally defined static and/or inline functions; implement, and...
283 (__pformat): ...use them.
285 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
287 Add prototypes for Microsoft's _printf_p() family of functions.
289 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
290 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
291 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
292 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
293 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
294 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
295 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
296 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
297 available for selective inclusion by both <stdio.h> and <wchar.h>...
298 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
300 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
302 Adapt msvcrt-xref to become msvcrt.def.in provider.
304 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
305 filter value assignment; scale it upwards, by a factor of 0x10000.
306 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
307 (%.def) [msvcr*]: Do not preserve comments; define...
308 (__DLLNAME__): ...this preprocessor symbol.
310 * msvcrt.def.in: Content is obsolete; delete file and replace with...
311 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
312 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
313 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
314 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
315 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
317 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
319 Import msvcrt-xref documentation resources.
321 * msvcrt-xref: New directory.
322 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
323 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
324 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
325 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
327 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
329 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
331 * include/wchar.h: Some minor layout adjustments.
332 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
333 within the scope of reading <wchar.h>; undefine it at end of file.
334 (struct tm): Do not define; it is sufficient to keep it opaque.
335 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
336 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
337 directly; delegate to indirect definition by including <stdio.h>.
338 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
339 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
340 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
341 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
342 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
343 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
344 indirectly, by selective inclusion from <stdio.h>; hence include it.
346 * include/stdio.h: Assert copyright; tidy layout.
347 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
348 (_STDIO_H): ...this, but defined conditionally, subject to...
349 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
350 entities which are required by <wchar.h>; do not define...
351 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
352 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
353 are normally specified within <stdio.h>, INCLUDING those specifically
354 itemised above, as selectively required by <wchar.h>.
356 * pseudo-reloc.c: Some minor layout adjustments.
357 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
358 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
359 include <stddef.h> to guarantee it.
361 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
363 Enable selective definition of POSIX system types.
365 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
366 any specific __need_TYPE selector having been set prior to inclusion;
367 DO define it when no such selector is present, and undefine all such
368 selectors as may have been set, after evaluation of their effects.
369 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
370 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
371 accommodates reorganization of the file, to achieve a tidier layout.
372 (__have_typedef_off_t): New repeat definition guard; define it for
373 compilers which may choke on any repeated typedef for either of...
374 (off_t, _off_t): ...these; make them selectively defineable for...
375 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
376 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
377 in either case, redefine them in terms of...
378 (__off32_t): ...this new internal type, for consistency with...
379 (__off64_t): ...this previously defined non-standard type; also make
380 it selectively defineable, either by...
381 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
382 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
383 (__have_typedef___off64_t): New repeat definition guard; define it.
384 (ssize_t, _ssize_t): Also make them selectively defineable, on...
385 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
386 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
387 (__have_typedef_ssize_t): New repeat definition guard; define it.
389 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
391 Avoid user namespace pollution by non-standard type 'off64_t'.
393 * include/sys/types.h (off64_t): Rename it as...
394 (__off64_t): ...this implementation-private alternative name, so
395 eliminating the potential for user namespace pollution.
397 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
398 return type, and type of offset argument, in both prototype and inline
399 implementation; note that this addresses the issue of pollution in the
400 user namespace, while avoiding the issue of MinGW-Bug [#2024].
402 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
403 instead of 'off64_t', as offset argument type in function prototypes.
404 (ftello64): Likewise, for return type of inline function.
406 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
407 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
408 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
410 * mingwex/stdio/fseeko64.c: Assert copyright.
411 (fseeko64): Use '__off64_t' per modified function prototype.
413 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
415 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
417 * mingwex/ofmtctl.c: New file; it implements...
418 (_mingw_output_format_control): ...this new function; it provides
419 additional MinGW specific printf() format processing options.
421 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
423 * include/stdio.h (_mingw_output_format_control): Declare it.
424 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
425 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
426 manifest constant expressions; define them.
428 * mingwex/stdio/pformat.c: Revise licensing terms.
429 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
430 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
431 modifier; this matches the behaviour specified by ISO-C99, else...
432 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
433 previous MSVC compatible behaviour, treating it as an `L' modifier.
434 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
436 * mingwex/ofmt.c (ARGLIST): Subsume references to...
437 (ARGTYPE): ...this now obsolete macro; delete it throughout.
438 (update_output_format_flag): New inline function; it restricts flag
439 operations to affect only Microsoft's exponent digit bits.
440 [FUNCTION == _set_output_format]: Use it.
441 [FUNCTION == _get_output_format]: Likewise.
443 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
445 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
447 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
448 defined, when implied by any STDC or POSIX version selection, viz. ...
449 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
451 * include/stdlib.h: Assert copyright; tidy layout.
452 (_STDLIB_H_): Multiple inclusion guard macro renamed...
453 (_STDLIB_H): ...to this, preferring no trailing underscore.
454 [!defined __NO_ISOCEXT]: Delete double negative references; use...
455 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
456 (lldiv_t): ...defining this C99 specific aggregate data type, and...
457 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
458 (wcstold, _Exit): ...declaring these C99 function prototypes.
459 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
460 future removal; not in MSVCRT.DLL, these conform to no known standard.
461 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
462 (__strtod): ...this libmingwex.a provided function; it handles string
463 representations of hexadecimal-floats, infinities and NaNs, whereas...
464 (strtod): ...this MSVCRT.DLL implementation does not.
465 (__MSVCRT_VERSION__): Prefer symbolic comparison...
466 [>= __MSVCR80_DLL]: ...for this requirement.
468 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
470 Rationalize definition of struct timespec.
472 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
473 tv_sec field, in place of anonymous union, thus avoiding missing brace
474 warnings when initializing; leave a copy of the previous definition...
475 (struct __mingw32_expanded_timespec): ...named thus.
477 * include/unistd.h (nanosleep): Adjust inline implementation, to match
478 altered specification of tv_sec field in struct timespec.
480 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
481 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
483 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
484 convenience function; defined as inline, with __LIBIMPL__ equivalent,
485 it facilitates interpretation of an instance of struct timespec as if
486 it were defined as struct __mingw32_expanded_timespec.
488 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
490 Make strings.h mostly POSIX.1-2008 compliant.
492 * include/strings.h: Rewritten. Do not include...
493 (string.h): ...this; mandated by POSIX.1, it now defines...
494 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
495 prototypes, possible in-line implementations, and JMPSTUB references
496 to corresponding external implementations, which will now become
497 automatically created within libmingwex.a
499 * include/parts/strings.h: New file; it declares prototypes for...
500 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
501 string.h, but we also require them in strings.h
503 * include/parts/wchar.h: New file; it declares prototypes for all wide
504 character functions which MSVC specifies in both wchar.h and string.h
506 * include/string.h: Miscellaneous layout adjustments.
507 (strcasecmp, strncasecmp): Delete; they belong in strings.h
508 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
509 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
510 include them from parts/wchar.h instead.
512 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
513 prototypes; include them from parts/wchar.h instead, so making this
514 guard macro redundant; delete it.
516 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
517 (wcscmpi.$OBJEXT): Implementations are now automatically generated
518 from header file, for inclusion in libmingwex.a; remove free-standing
519 implementations from the entire family of liboldname libraries, and...
520 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
521 files; they are no longer required.
523 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
525 Incorporate build system updates from w32api package.
527 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
528 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
529 (install-strip, uninstall): New make command goals; implement them.
530 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
531 (devdist, dlldist): ...these have no need to strip explicitly.
532 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
533 (install-mingwrt-headers): ...here.
535 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
537 Adapt platform feature checks to NTDDI_VERSION conventions.
539 * include/_mingw.h: Assert copyright; include w32api.h
540 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
541 to w32api/include/w32api.h, whence they remain in effect.
542 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
544 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
546 Correct mismatched #if/#endif from preceding commit.
548 * include/_mingw.h (#pragma GCC system_header)
549 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
550 correcting for inadvertent removal of matching #endif introduced by
551 preceding 2015-06-19 commit.
553 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
555 Define symbolic names for alternative Microsoft runtime DLLs.
557 * include/msvcrtver.h: New file; it assigns a value for...
558 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
559 (__MSVCR60_DLL): ...this new manifest constant, with each of...
560 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
561 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
562 ...these also defined, as user assignable alternatives.
564 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
565 to establish its default value.
567 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
569 Track dependencies on modified system header files.
571 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
573 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
575 Correct an anomaly in stage 1 only build procedure.
577 * Makefile.in (all-gcc): New goal; it is an alias for...
578 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
579 (all-mingwrt-stage-1-only): ...this; upate all references.
580 (active-goals): Adjusted accordingly; it now reguires...
581 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
582 (install): Adjusted, as directed by...
583 (DEFAULT_MAKECMDGOALS): ...this.
585 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
587 Prefer our hypot() implementation in complex maths operations.
589 * mingwex/complex/cabs_generic.c: New file; it replaces...
590 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
591 * mingwex/complex/cabsl.c: ...these.
593 * mingwex/complex/catan_generic.c: New file; it replaces...
594 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
595 * mingwex/complex/catanl.c: ...these.
597 * mingwex/complex/clog_generic.c: New file; it replaces...
598 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
599 * mingwex/complex/clogl.c: ...these.
601 * mingwex/complex/cpow_generic.c: New file; it replaces...
602 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
603 * mingwex/complex/cpowl.c: ...these.
605 * mingwex/complex/csqrt_generic.c: Do not use...
606 (_hypot): ...this Microsoft form of function reference; use...
607 (hypot): ...this ANSI standard form instead.
609 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
611 Correct C++ compilation anomaly with hypotf() in cmath header.
613 * include/math.h: Add copyright notice; generally tidy layout.
614 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
615 (hypotf): Delete inline implementation; it did not properly handle
616 range errors, and was uncompilable with optimization when any g++
617 option implying __STRICT_ANSI__ conformity was specified.
618 (_MATH_H_): Rename this multiple inclusion guard...
619 (_MATH_H): ...to this.
621 * mingwex/math/hypot_generic.c: New file; it implements...
622 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
623 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
625 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
627 Prepare and tag all files for release of mingwrt-3.21.1.
629 * configure.ac (AC_INIT): Adjust package version argument.
630 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
631 (__MINGW32_VERSION): ...increment this to match.
633 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
635 Refactor to avoid possible time_t conflicts across headers.
637 * include/parts/time.h (struct timespec): Make it more descriptive of,
638 and better able to accommodate, potential ambiguity relating to...
639 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
640 whence they may be identically imported into each of...
641 * include/sys/types.h include/time.h include/wchar.h: these; delete
642 duplicate typedefs, and import accordingly.
644 * include/sys/types.h: Add licence; general comment additions.
645 (_TYPES_H_): Rename multiple inclusion guard macro...
646 (_SYS_TYPES_H): ...to this.
648 * include/time.h: Add licence; general comment/layout adjustments.
649 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
650 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
651 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
652 (_TIME_H_): Rename multiple inclusion guard macro...
653 (_TIME_H): ...to this.
655 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
656 (struct timespec): ...of this.
658 * include/wchar.h: Add licence; general comment/layout adjustments.
659 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
660 [GCC] (system_header): Add pragma, identifying header as such.
661 (_WCHAR_H_): Rename multiple inclusion guard macro...
662 (_WCHAR_H): ...to this.
664 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
666 Remove obsolete varargs.h header file.
668 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
669 a GCC header which is no longer supported, and was always intended for
670 ultimate removal; now is the long overdue time to do so.
672 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
674 Correct improper unistd.h function attribute declarations.
676 * include/unistd.h (_cdecl): Correct usage throughout; should be...
679 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
681 Fix GLOB_DOOFFS initialization bug.
683 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
684 (gl_data->gl_offs): ...this is properly initialized to zero.
686 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
688 Tag all files for release of mingwrt-3.21.
690 * include/_mingw.h: Adjust version accordingly.
692 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
694 Improve usage notes in stdlib.h, for mkstemp() function.
696 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
697 an original comment, explaining the need to use _O_TEMPORARY, from...
698 * mingwex/mkstemp.c: ...here; delete trailing white space.
700 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
702 Eliminate some potential definition inconsistencies.
704 * include/stdio.h: Cosmetic formatting change, relating to...
705 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
706 unconditionally; this allows the compiler to check for consistency
707 with their primary definitions in stdio.h
709 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
711 Suppress expected warning diagnostics in LIBIMPL builds.
713 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
714 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
715 GCC flag to supress warnings relating to deprecated declarations.
717 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
719 Provide more POSIX conforming sleep() functions.
721 * include/sys/types.h (useconds_t): Make it explicitly long; int may
722 be okay, but doesn't guarantee enough bits; mark as deprecated, since
723 POSIX has declared it "obsolete", and no longer specifies it.
725 * mingwex/usleep.c: Delete file; it provided an implementation of...
726 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
727 its error handling was hopelessly broken; replace it with...
728 * mingwex/nsleep.c: ...this new file; it implements...
729 (__mingw_sleep): ...this generic helper function; it supports sleep
730 capability with interval specification to nanosecond precision.
732 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
733 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
734 (sleep, nanosleep): ...these current POSIX functions, and also...
735 (usleep): ...this obsolete one; mark it as deprecated.
737 * include/parts: New directory; it is intended to host partial header
738 implementations, for content which must be shared among arbitrary sets
739 of multiple standard header files.
741 * include/parts/time.h: New file; nominally declaring time.h content.
742 (struct timespec): Declare it; it is currently used within unistd.h,
743 to facilitate the __CRT_INLINE implementation of nanosleep().
745 * Makefile.in (libmingwex.a): Remove reference to...
746 (usleep.$OBJEXT): ...this; replace it with a reference to...
747 (nsleep.$OBJEXT): ...this alternative.
748 (mingwrt-includedirs): Add prerequisite to create...
749 ($includedir/parts): ...this new directory; it is populated by...
750 (install-mingwrt-headers): ...this rule; add requisite command.
752 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
754 Delete an unnecessary Unicode wrapper file.
756 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
757 UTF-16LE API from dirent.c, without any need for this wrapper.
759 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
761 Some further inline function rationalization.
763 * include/io.h (_CRTALIAS): Replace all references...
764 (__CRT_ALIAS): ...using this syntactically preferred form.
765 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
766 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
768 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
769 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
771 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
772 * mingwex/ftruncate.c: Likewise.
774 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
775 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
777 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
779 Some POSIX feature test adjustments.
781 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
782 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
783 (mkdtemp): This didn't become available until SUSv4, so requires...
784 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
786 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
788 Another CRT_INLINE function implementation rationalization.
790 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
791 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
792 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
794 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
795 (libmingwex.a): Delete obsolete dependency on...
796 (imaxabs.$OBJEXT): ...this.
798 * mingwex/imaxabs.c: File is now redundant; delete it.
800 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
802 More rationalization of CRT_INLINE function implementations.
804 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
805 (ftello64): Add __LIBIMPL__ specification for extern implementation.
806 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
808 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
809 * mingwex/stdio/ftell064.c: Likewise.
811 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
812 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
814 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
816 Don't implicitly define _POSIX_C_SOURCE too early.
818 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
819 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
820 that it is not accidentally activated by implied _POSIX_C_SOURCE.
822 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
824 Correct complex arcsin computation per issue [#2245].
826 * mingwex/complex/casin_generic.c: New file; it replaces...
827 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
828 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
830 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
832 Correct complex square root computation per issue [#2246].
834 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
835 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
836 (hypot): ...this libmoldname.a indirection.
838 * mingwex/complex/csqrt_generic.c: New file; it replaces...
839 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
840 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
842 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
844 Adjust header guards to resolve issue [#2244].
846 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
847 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
848 ...when any of these prevail, or as appropriate to correspond with...
849 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
851 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
852 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
853 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
854 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
856 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
858 Add implementation of mkstemp() and mkdtemp() functions.
860 * mingwex/cryptnam.c: New file; it implements...
861 (__mingw_crypto_tmpname): ...this helper function; it generates a
862 cryptographically secure sequence of characters, used as the random
863 component in temporary file and directory names.
865 * mingwex/mkstemp.c: New file; it implements...
866 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
868 * mingwex/mkdtemp.c: New file; it implements...
869 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
871 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
872 function implementation, with LIBIMPL extern semantics, in terms of...
873 (__mingw_mkstemp): ...this; also declare prototype, and define...
874 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
875 (_MKSTEMP_SETMODE): New macro; define it, also providing...
876 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
877 (mkdtemp): Declare prototype; provide inline implementation, with
878 JMPSTUB extern semantics, in terms of...
879 (__mingw_mkdtemp): ...this; declare prototype.
881 * Makefile.in (libmingwex.a): Add dependency rule, to include...
882 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
884 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
886 More JMPSTUB rationalization of inline functions.
888 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
889 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
890 appropriate MSVCRT.DLL equivalent entry point.
892 * mingwex/_Exit.c: File is now redundant; delete it.
893 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
894 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
896 * Makefile.in (jmpstub_awk_script): Add support for...
897 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
898 (libmingwex.a): Remove dependencies on deleted files, namely...
899 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
900 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
902 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
904 Correct omission of complex conjugate functions from libmingwex.a
906 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
907 (creal, crealf, creall): Likewise, for consistency of implementation.
908 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
910 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
911 declarations; they should be interpreted analogously to __CRT_ALIAS.
912 (libmingwex.a): Remove object file references for functions which are
913 now declared as LIBIMPL, and sort the remainder in ASCII collating
914 order; deleted function references comprise the set consisting of...
915 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
916 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
917 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
919 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
920 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
921 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
922 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
923 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
925 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
927 Back-port improved asinh() implementation from 4.0-dev branch.
929 * mingwex/math/asinh_generic.c: New file; it replaces...
930 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
931 ...all of these; delete them.
933 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
935 Enable remake of lost LIBIMPL object files.
937 * Makefile.in (libimpl_remake): New macro; define it, and...
938 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
940 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
942 Implement more robust _get_output_format fallback handling.
944 * mingwex/ofmt.c: New file; it implements...
945 (__mingw_output_format_flag): ...backing store, used by...
946 (__mingw_get_output_format, __mingw_set_output_format): ...these
947 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
948 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
949 version specific Microsoft APIs, which are also supported by some
950 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
951 (__mingw_get_output_format_fallback): Implement; it is aliased to...
952 (__mingw_set_output_format_fallback): ...this; together they provide
953 the emulation support for the preceding pair of functions, when they
954 are not available within the run-time platform MSVCRT.DLL
955 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
956 Implement them; they wrap, and if necessary emulate...
957 (_get_printf_count_output, _set_printf_count_output): ...these.
958 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
959 (__mingw_set_printf_count_output_fallback): ...this; together they are
960 required to support emulation of the preceding pair of functions, when
961 they are not available within the run-time platform MSVCRT.DLL
963 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
964 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
965 (__mingw_get_output_format, __mingw_set_output_format)
966 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
967 Unconditionally declare their prototypes, for subsequent inline use.
968 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
969 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
970 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
971 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
972 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
973 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
974 represent a compilable token.
976 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
977 _get_output_format; consult __mingw_output_format_flag directly.
979 * ofmt_stub.s: No longer required; delete it.
981 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
982 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
983 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
984 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
985 all are compiled from ofmt.c
987 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
989 Do some more essential build tree clean up.
991 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
992 in the way of a successful rebuild from clean.
994 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
996 Implement wrappers for emulation of POSIX dlfcn API.
998 * include/dlfcn.h: New file; it declares the API.
999 * mingwex/dlfcn.c: New file; implement it, with access via...
1000 (__mingw_dlfcn): ...this publicly addressable vector table.
1002 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1003 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1004 (__LIBIMPL__): ...this automatic interface generator; implement it.
1005 (libstub_refnames): New macro; it is adapted from and replaces...
1006 (jmpstub_refs): ...this; when it is then invoked twice to build...
1007 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1008 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1009 (libimpl_awk_script): New inline script; it handles automated builds
1010 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1011 (libimpl_sed_script): New inline script; it prepares intermediate C
1012 source code for LIBIMPL interfaces, as required to satisfy these...
1013 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1014 (LIBIMPL_CFLAGS): New macro; define it.
1016 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1018 Move libgen functions to __mingw_ pseudo-namespace.
1020 * mingwex/dirname.c (dirname): Rename function, as implemented...
1021 (__mingwex_dirname): ...to this.
1023 * mingwex/basename.c (basename): Rename function, as implemented...
1024 (__mingwex_basename): ...to this.
1026 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1027 prototypes, matching and augmenting original declarations for...
1028 (dirname, basename): ...these; reimplement as inline aliases, with
1029 __JMPSTUB__ references to the renamed implementation entry points.
1031 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1033 Implement new command line argument globbing strategy.
1035 * include/_mingw.h: Backport feature defines from master...
1036 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1037 constants; define them. They select the preferred globbing algorithm.
1038 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1039 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1040 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1041 they enable optional additional features supported by this algorithm.
1042 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1044 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1046 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1047 * setargv.c: ...new file; it implements the initialization mechanism
1048 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1049 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1050 it invokes the algorithm via an API similar to that described by MSDN,
1051 while continuing to support our original _CRT_glob interpretation.
1052 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1053 algorithm, via the MSDN-alike API, by calling back to...
1055 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1056 relocated to here, as a publicly addressable function; formerly...
1057 (__mingw_CRTStartup): ...called directly from here, we now redirect
1058 the call through _setargv(), whence it may be called indirectly.
1060 * init.c: Redundant file; delete it. It originally provided...
1061 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1062 original static attribute removed, to allow global addressing.
1064 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1066 Backport glob implementation from master to legacy.
1068 * include/glob.h: New file; copy it from master branch.
1069 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1070 (glob, globfree): ...each of these, respectively.
1072 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1073 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1074 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1075 (accept_glob_nocheck_match): New static function; it adds support for
1076 avoidance of globbing on patterns with no globbing token, so avoiding
1077 the case transliteration effect reported as MinGW-Bug #2106.
1078 (glob_match): Use it.
1080 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1082 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1084 Implement conventionally named dirent function trampolines.
1086 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1087 which redirects a conventionally named function call to its __mingw_
1088 pseudo-namespace implementation.
1090 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1091 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1092 appropriate protocol for compiling *.sx files, (supported natively by
1093 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1095 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1096 yet provide it, so we define it ourselves; deploy it for *.sx files.
1097 (Makefile.stub): New sinclude file; create it dynamically, using...
1098 (jmpstub_awk_script): ...this new inline script, which is based on...
1099 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1100 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1101 (mostlyclean-local): Remove Makefile.stub; do likewise...
1102 (Makefile): ...when remaking this, to ensure that both will be
1105 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1107 Make dirent implementation namespace and time_t clean.
1109 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1110 macros; define them. They facilitate identification of symbols which
1111 must be compiled with `extern "C"' binding, when compiling C++ code.
1112 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1113 (_CRTALIAS): ...this, which is to be considered as deprecated.
1114 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1115 __CRT_ALIAS build hints, while remaining transparent to GCC.
1116 (UNICODE, _UNICODE) [user defined]: Define consistently.
1118 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1119 4.0-dev branch, with additional ABI changes to improve stability).
1120 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1121 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1122 Add `__mingw_' prefix to all publicly exposed symbol names.
1123 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1124 implemented functions; they replace Microsoft's ambiguously defined
1125 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1126 resulting from the ambiguous size of Microsoft's time_t.
1128 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1129 removing unnecessary time_t and file size fields; (our replacements
1130 for _findfirst, and _findnext do not require them to be present).
1131 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1132 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1133 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1134 Adjust prototypes, making them inline aliases for public symbols which
1135 are now qualified by the `__mingw_' prefix; add build hints to support
1136 compilation of addressable stubs, with the original symbol names.
1137 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1138 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1139 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1140 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1141 New macros; define them. (These show availability of optional fields
1142 within the dirent struct, which client code may wish to access).
1144 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1146 Correct improper naming of assembly language source files.
1148 * mingwex/math/*.S: Rename all files with this extension...
1149 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1150 not extended `assembler-with-cpp' as implied by the former extension);
1151 adjust all internal `.file <name>' references accordingly.
1153 * Makefile.in (vpath %.S): Adjust reference to locate files....
1154 (vpath %.s): ...now renamed thus.
1156 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1158 Streamline the build system infrastructure.
1160 * configure.ac: New file; it replaces...
1161 * configure.in: ...this; (name is obsolete); delete it.
1163 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1164 make invocations, when processing subdirectories, and add automatic
1165 dependency tracking for all generated files.
1167 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1169 * mingwex/Makefile.in: No longer required; delete it.
1170 * profile/Makefile.in: Likewise.
1172 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1173 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1175 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1176 longer relevant, and I have no desire to maintain it.
1178 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1180 * include/_mingw.h: Increment version to 3.20.
1182 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1184 * tlsmthread.c: Update to reflect changes in tlssup.c.
1185 * tlssup.c: code clean-up.
1187 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1189 * include/_mingw.h: Increment version to 3.19.
1191 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1193 * include/float.h: Modify guard to accomodate CLang.
1195 Thanks to Ruben Van Boxem for the report.
1197 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1199 * tlssup.c: Remove mingwm10.dll fallback.
1201 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1203 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1205 Thanks to bvassche for the report.
1207 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1209 Correct checking for short option matches in getopt_long_only().
1211 * mingwex/getopt.c (getopt_verify): New static inline function.
1212 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1213 possible short option match after failing to match, or ambiguously
1214 matching as a long option.
1216 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1218 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1220 Thanks to cgf for the report.
1222 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1224 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1225 compiles with __STRICT_ANSI__.
1227 Thanks to Felipe Contreras for the report.
1229 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1231 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1234 Thanks to Tobias Burnus for the report.
1236 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1238 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1239 by wrapping the functions in brackets.
1241 Thanks to Kai Tietz for the report.
1243 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1245 * Makefile.in: Add support for msvcr100.dll.
1246 * msvcrt.def.in: Ditto.
1248 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1250 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1251 not always available, go the long way and use the explicit named union
1252 members, which are also declared in winnt.h.
1254 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1256 * mingwex/isblank.c: Fix typo in declaration.
1258 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1260 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1261 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1262 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1263 is included before <ctype.h>.
1265 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1267 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1269 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1271 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1273 Correct hexadecimal formatting of double and long double values.
1275 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1276 (__pformat) [A format]: Cast double values to long double, and use...
1277 (__pformat_xldouble): ...this instead, with corrected adjustment of
1278 exponent and alignment of mantissa, when formatting subnormals.
1280 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1282 * include/dirent.h (dd_handle): Define as intptr_t.
1284 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1286 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1289 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1291 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1292 semantically identical MAX_PATH; correct value is 260.
1294 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1296 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1297 system include search path; (issue reported by Mark Brand).
1299 * include/float.h: Add multiple inclusion guard around...
1300 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1301 only when this define does not indicate that it has already been seen;
1302 update comments to document rationale; move it within the scope of...
1303 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1304 GCC's float.h, after an appropriate complementary modification, need
1305 not perform a further include path search when this implementation
1306 specific extension has already been processed.
1308 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1310 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1311 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1312 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1313 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1314 _findnexti64): Correct definition.
1316 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1318 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1320 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1322 * include/_mingw.h: Increment version to 3.18.
1324 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1326 * include/stdio.h: (_vscprintf, _vscwprintf)
1327 * include/tchar.h: (_vsctprintf)
1329 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1331 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1332 (initial implementation)
1334 * new type: __time32_t
1336 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1337 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1338 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1340 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1341 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1342 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1343 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1344 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1345 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1346 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1347 _wstat32i64, _wstat64i32,_wutime32
1349 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1350 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1351 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1352 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1353 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1355 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1357 Implement TLS Callback.
1359 * tlsmcrt.c: New file.
1360 * tlsmthread.c: Ditto.
1363 * Makefile.in: Include new files.
1364 * crt1.c: Implement TLS Callback.
1366 * mthr_stub.c: Remove.
1368 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1370 * include/_mingw.h: Increment version to 3.17.
1372 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1374 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1375 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1377 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1379 * include/io.h (_open_osfhandle): Correct definition.
1381 Thanks to Alexander Shaduri for the information.
1383 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1385 Final sync of pseudo-reloc.c with mingw64 and cygwin
1386 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1387 regarding error messages.
1389 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1391 Honor DESTDIR for winsup/mingw and winsup/w32api.
1392 Detect and report error if installation paths are win32
1393 format, but DESTDIR is non-empty.
1395 * Makefile.in (DESTDIR): Honor per convention.
1396 (need-DESTDIR-compatibility): New macro; define it and a
1398 (fail-DESTDIR-compatibility): New dependency goal.
1399 (install-dirs): Require need-DESTDIR-compatibility.
1400 * mingwex/Makefile.in (DESTDIR): Honor per convention.
1401 (need-DESTDIR-compatibility): New macro; define it and a
1403 (fail-DESTDIR-compatibility): New dependency goal.
1404 (install): Require need-DESTDIR-compatibility.
1405 * profile/Makefile.in: Ditto.
1407 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1409 Sync pseudo-reloc.c with mingw64
1410 * psuedo-reloc.c: Remove unnecessary includes.
1411 Forward declare _pei386_runtime_relocator.
1412 Decorate _image_base__ symbol with macro for
1413 mingw64 compatibility. Whitespace changes.
1414 (__print_reloc_error): Renamed to...
1415 (__report_error): This. "Returns" void, and
1416 always aborts. Now used on all platforms.
1417 (__write_memory): Remove special case error handling
1418 for different platforms - always call __report_error.
1419 (do_pseudo_reloc): Remove special case error handling
1420 for different platforms - always call __report_error.
1421 (_pei386_runtime_relocator): Decorate _image_base__
1422 symbol with mingw64 compatibility macro.
1424 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1426 Sync pseudo-reloc.c with cygwin/lib/
1427 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1428 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1429 for fatal error handling that is consistent with cygwin process
1430 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1431 is unique to each address space, across fork().
1432 [CYGWIN] (__print_reloc_error): New function for reporting
1433 errors in a manner supported by cygwin at this early stage of
1434 the process life-cycle.
1435 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1436 performed only once for each address space, but are repeated
1437 after fork() in the new address space.
1438 [MINGW] (__write_memory): Ensure that b is always initialized
1439 by call to VirtualQuery, even if -DNDEBUG.
1441 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1443 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1444 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1446 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1447 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1448 specified format qualifiers, except in special case...
1449 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1450 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1451 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1454 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1456 Avoid multiple link time definitions of _printf() for C++;
1457 (problem reported by Alexander Shaduri, via MinGW-users ML).
1459 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
1460 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
1462 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1464 * include/_mingw.h: Increment version to 3.16.
1466 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
1468 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
1469 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
1470 __fp_unordered_compare): Add prototypes.
1471 * include/stdio.h (vsnwprintf): Add prototype.
1472 * include/wchar.h (vsnwprintf): Add prototype.
1473 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
1474 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
1476 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1478 Correct disposition of wchar_t output in printf().
1480 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
1481 (argval): ...this, in inner scope, with singular type `wchar_t'; use
1482 it to pass one wchar to __pformat_wputchars(), for output.
1484 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1486 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
1488 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1490 Convert to monolithic configuration procedure.
1492 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
1493 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
1494 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
1495 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
1496 (CRT0S): Relocate from `profile'; define it as appropriate.
1497 (LIBM_A): Define and AC_SUBST it unconditionally.
1498 (AC_CONFIG_SUBDIRS): Remove; none to configure.
1499 (AC_OUTPUT_FILES): Add `Makefile' for each of...
1500 (mingwex, profile): ...these subdirectories.
1502 * configure: Regenerated.
1504 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
1505 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
1506 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
1507 (SUBDIRS): Define explicitly, to run recursive `make' in...
1508 (mingwex, profile): ...these; simplify build commands...
1509 (rootme, rootsrc): ...without these shell variables.
1510 (all, subdirs): Delete redundant build commands.
1511 (FIXME): Flag various issues for follow up.
1513 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
1514 (top_srcdir): ...this new macro; let AC_SUBST define it.
1515 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1516 (Makefile): Make it depend on...
1517 (top_builddir/config.status): ...this, itself depending on...
1518 (top_srcdir/configure): ...this.
1519 (FIXME): Flag various issues for follow up.
1521 * mingwex/aclocal.m4: File no longer required; delete it.
1522 * mingwex/configure mingwex/configure.in: Likewise.
1524 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
1525 (top_srcdir): ...this new macro; let AC_SUBST define it.
1526 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1527 (Makefile): Make it depend on...
1528 (top_builddir/config.status): ...this, itself depending on...
1529 (top_srcdir/configure): ...this.
1530 (FIXME): Flag various issues for follow up.
1532 * profile/aclocal.m4: File no longer required; delete it.
1533 * profile/configure profile/configure.in: Likewise.
1535 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1537 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
1538 to complaints that it causes issues.
1540 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
1542 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
1544 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1546 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
1547 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
1548 to all inline functions.
1550 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1552 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
1553 * CRT_fp10.c: Ditto.
1555 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1557 * cpu_features.c: replace gcc-specific construct with portable alternative
1558 and match the code a few lines above.
1559 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
1561 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1563 * include/_mingw.h: Changes required for PCC compiler.
1565 2009-07-18 Jeff Lu <jll544@yahoo.com>
1567 * mingwex/usleep.c: round up to next ms
1569 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1571 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
1572 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
1573 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
1574 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
1576 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1578 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
1580 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
1582 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
1583 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
1584 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
1585 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
1586 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
1587 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
1588 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
1589 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
1590 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
1591 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
1592 sources as of Apr. 20, 2009. Update further to match the sources in
1593 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
1594 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
1595 double/ulong union from U to dbl_union for better grepping and white-
1598 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1600 * include/stdlib.h (_wtof): Define.
1602 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
1604 * include/stdint.h (int_fast8_t): Specify as signed char.
1605 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
1606 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1608 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1610 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1612 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1614 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1615 (Requested by Robert Riebisch)
1617 * mingwex/getopt.c (getopt_parse): Track external increments of...
1618 (optind): ...this global variable.
1620 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1622 * include/_mingw.h: Increment version to 3.15.2.
1624 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1626 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1627 Also add tentative support for BSD specific `optreset' feature.
1629 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1630 (__mingw_optreset): ...this new global variable.
1632 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1633 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1636 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1638 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1639 Correct mishandling of invalid characters in printf() format specs.
1641 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1642 (backtrack): ...this new automatic variable, at start of each format
1643 conversion specification substring; use it to backtrack, and print the
1644 substring literally, if any invalid character is encountered.
1646 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1648 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1649 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1650 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1651 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1652 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1653 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1654 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1655 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1656 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1657 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1658 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1659 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1660 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1661 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1663 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1665 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1667 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1669 Correct some binary distribution packaging defects.
1671 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1672 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1673 intermediate goals; they make packages of files, as specified by...
1674 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1675 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1677 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1679 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1680 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1682 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1683 of radix point conditional on precision != 0 or `#' flag specified.
1685 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1687 Fix MinGW-Bug [2160227]
1688 Eliminate conflicting declarations and implementations of scalb().
1690 * moldname.def.in (scalb): Comment out of EXPORTS list.
1691 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1692 with GCC's built-in declaration.
1694 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1696 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1698 * mingwex/Makefile.in: Ditto.
1699 * profile/Makefile.in: Ditto.
1700 * configure.in: Record mingw front-end for building under Cygwin.
1701 * mingwex/configure.in: Ditto.
1702 * profile/configure.in: Ditto.
1703 * configure: Regenerate.
1704 * mingwex/configure: Ditto.
1705 * profile/configure: Ditto.
1707 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1709 Use de-facto standard Makefile goals to invoke test suite.
1711 * Makefile.in: Some minor formatting adjustments.
1712 (test_headers): Unconventionally named goal renamed to...
1713 (check-headers): ...this; make it a prerequisite of...
1714 (check): ...this new conventionally named goal.
1716 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1718 Make strtod() inline definition C89 compliant.
1719 (Issue reported by Ilya Shestopalov and Ian Puleston)
1720 (Correction identified by Danny Smith)
1722 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1723 reformat inline function definition.
1725 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1727 * include/_mingw.h: Increment version to 3.15.1 and introduce
1728 __MINGW32_PATCHLEVEL variable.
1730 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1732 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1733 (Reported by Christian Franke)
1735 * mingwex/getopt.c (optind): Make global variable value conform to
1736 behaviour specified by POSIX; do not use it for internal state in...
1737 (getopt_parse): ...this static function; use...
1738 (optbase): ...this new static local variable instead.
1739 (getopt_resolved): Update `optind' as required.
1741 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1743 Improve package identification in configure script.
1745 * configure.ac (AC_INIT): Redefine parameters...
1746 (PACKAGE_NAME): Set to `MinGW Runtime'.
1747 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
1748 (PACKAGE_TARNAME): Set to `mingwrt'.
1749 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
1750 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
1751 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
1753 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
1754 (PACKAGE_TARNAME): ...this.
1756 * configure: Regenerated.
1758 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1760 Fix MinGW-Bug [2125708].
1761 (Reported by Alexandr Zamaraev).
1763 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
1764 not wanted here; remove it; replace it by...
1765 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
1766 (_invalid_parameter_handler): ...this function typedef.
1768 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
1770 * Makefile.in: Don't include host_os as part of snapshot filename.
1772 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1774 Fix MinGW-Bug [2119504].
1775 (Reported by Peiyuan Song).
1777 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
1778 (*retindex): ...this already correctly assigned return variable...
1779 (opt[index].val): ...with this; this should have been assigned to...
1780 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
1782 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1784 Fix MinGW-Bug [2117379].
1785 (Reported by Peiyuan Song).
1787 * include/stdio.h (__argv): Replace all references in function
1788 prototype argument lists and inline function local variables, with ...
1789 (__local_argv): ...this, to avoid potential conflict with ...
1790 * include/stdlib (__argv): ...this #defined macro.
1792 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1794 * include/_mingw.h: Increment version to 3.15.
1796 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1798 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
1799 naming standard for Cygwin.
1801 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1803 Reimplement getopt.c to add getopt_long_only() function.
1805 (N.B. this reimplementation removes support for BSD/Mac-OS-X
1806 `optreset' nonsense; user code should set `optind = 0' instead,
1807 to reinitialise option scanning).
1809 * mingwex/getopt.c: Delete all content; reimplement it.
1810 * include/getopt.h: Likewise.
1812 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
1813 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
1815 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1817 Implement conditional replacement for printf() family functions.
1819 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
1820 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
1821 flag for use in user specified __MINGW_FEATURES__ attribute.
1822 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
1823 currently unused: reserved as components of...
1824 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
1825 a __MINGW_FEATURES__ enhancement to setlocale().
1827 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
1828 (__mingw_fprintf, __mingw_vfprintf): Likewise.
1829 (__mingw_sprintf, __mingw_vsprintf): Likewise.
1830 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
1831 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
1832 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
1833 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
1834 usage; link to DLL import stub, importing from MSVCRT.
1835 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1836 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1837 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
1838 locally defined static stub implementation.
1839 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1840 __mingw_fprintf and __mingw_sprintf respectively.
1841 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
1842 static inline implementation for C++ and GNU C, or locally defined
1843 static stub otherwise.
1844 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1845 __mingw_vfprintf and __mingw_vsprintf respectively.
1847 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1849 Avoid access violations, passing NULL to printf( "...%s..." );
1850 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
1852 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
1853 for argument value, if caller passes a NULL pointer.
1854 (__pformat_wcputs): Likewise, substitute L"(null)".
1856 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1858 Add missing dependencies for building libmingwex.a.
1860 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
1861 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
1862 (pformat.h): ...this.
1864 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1866 Add replacements for remaining members of printf() family.
1868 * mingwex/stdio/printf.c: New file.
1869 * mingwex/stdio/fprintf.c: New file.
1870 * mingwex/stdio/sprintf.c: New file.
1871 * mingwex/stdio/vprintf.c: New file.
1872 * mingwex/stdio/vfprintf.c: New file.
1873 * mingwex/stdio/vsprintf.c: New file.
1875 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1876 (STDIO_OBJS): Add their corresponding object files.
1878 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1880 Replace __mingw_snprintf() with new generic family implementation;
1881 likewise, replace __mingw_vsnprintf().
1883 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
1884 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
1885 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1886 (GDTOA_DISTFILES): Remove mingw_snprintf.c
1887 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
1888 (GDTOA_OBJS): Remove mingw_snprintf.o
1889 (PFORMAT_CFLAGS): New macro; define it, as required by...
1890 (pformat.o): ...this new explicit build target.
1891 (snprintf.o, vsnprintf.o): Declare prerequisites.
1893 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
1895 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1897 Lay foundations for new printf() function family implementation.
1899 * ofmt_stub.s: New file; implement forward compatibility stub for...
1900 (_get_output_format): ...this MSVCR80.DLL and later function.
1902 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
1903 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
1904 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
1905 (lib%.a): Include ofmt_stub.o when import library does not already
1906 advertise availability of the _get_output_format() function;
1907 Add alias stubs for MINGW_REPL_FUNCS, such that...
1908 (__msvcrt_printf): ...is an alias for Microsoft's printf().
1909 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
1910 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
1911 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
1912 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
1913 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
1914 (clean): Add msvcr*.def.
1916 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
1917 * configure: Regenerated.
1919 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1921 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
1922 (_imp____mb_cur_max_dll): Likewise.
1924 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
1926 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
1927 * include/wchar.h (swprintf, vswprintf): Likewise.
1929 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1931 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
1932 (_get_output_format, _set_output_format): Add references.
1934 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
1935 (_get_output_format, _set_output_format): Declare prototypes.
1936 (_TWO_DIGIT_EXPONENT): Define.
1937 Some other minor formatting adjustments.
1939 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1941 [mingw-Bugs-1801641]
1942 * include/wchar.h (_wfdopen): Const-ify second arg.
1943 * include/stdio.h (_wfdopen): Likewise.
1944 Thanks to <tdragon at users dot sourceforge net>
1946 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1948 Avoid precision errors in round(), lround() and llround() functions.
1950 * mingwex/math/round_generic.c: New file; it replaces...
1951 * mingwex/math/round.c: ...this; delete it.
1952 * mingwex/math/roundf.c: ...and this; ditto.
1953 * mingwex/math/roundl.c: ...and this; ditto.
1955 * mingwex/math/lround_generic.c: New file; it replaces...
1956 * mingwex/math/lround.c: ...this; delete it.
1957 * mingwex/math/lroundf.c: ...and this; ditto.
1958 * mingwex/math/lroundl.c: ...and this; ditto.
1959 * mingwex/math/llround.c: ...and this; ditto.
1960 * mingwex/math/llroundf.c: ...and this; ditto.
1961 * mingwex/math/llroundl.c: ...and this; ditto.
1963 * mingwex/math/round_internal.h: New file; it provides generic common
1964 code, which is shared by `round_generic.c' and `lround_generic.c'; the
1965 implementation is based on techniques suggested by Danny Smith and
1968 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
1969 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
1970 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
1971 `round_generic.c' and `lround_generic.c'.
1972 (MATH_OBJS): Factor out files listed in...
1973 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
1974 macros; define them; specify dependencies and build rules; add to...
1975 (LIB_OBJS): ...this list.
1977 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
1979 [ mingw-Bugs-1961893 ]
1980 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
1981 mode to 2 for E format.
1983 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
1985 * include/stdlib.h: Fix strtod under C++.
1987 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
1989 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
1990 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
1992 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
1994 * include/sys/types.h (useconds_t): typedef.
1995 * include/unistd.h (usleep): Add prototype.
1996 * mingwex/usleep.c: New file.
1997 * mingwex/makefile.in: Add usleep source and object.
1999 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2001 Make strtod() conform to C99.
2003 * include/stdlib.h (strtod): Declare this mingwex function, and...
2004 (_strtod): rename this MSVCRT counterpart.
2006 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2008 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2010 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2012 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2014 * include/process.h: Include stdint.h for intptr_t definition.
2015 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2016 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2017 _spawnvpe): Return intptr_t.
2018 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2019 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2021 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2023 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2024 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2025 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2026 _wspawnvp, _wspawnvpe): Return intptr_t.
2028 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2030 * include/wchar.h (fwide): Return success code rather than failure in inline
2032 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2033 code rather than failure.
2035 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2037 * include/math.h (float_t, double_t): Define.
2039 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2041 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2042 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2043 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2045 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2047 * include/complex.h: Don't condition contents on C99 or not
2050 2008-02-01 Brian Dessent <brian@dessent.net>
2052 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2053 the different runtime versions.
2055 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2057 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2058 (mbsinit): Likewise.
2060 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2062 * include/_mingw.h: Increment version to 3.14.
2064 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2066 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
2067 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
2068 * mingwex/math/log10f.S: Correct issue with comments.
2069 * mingwex/math/log10l.S: Ditto.
2070 * mingwex/math/log1p.S: Ditto.
2071 * mingwex/math/log1pf.S: Ditto.
2072 * mingwex/math/log1pl.S: Ditto.
2073 * mingwex/math/log2.S: Ditto.
2074 * mingwex/math/log2f.S: Ditto.
2075 * mingwex/math/log2l.S: Ditto.
2076 * mingwex/math/logf.S: Ditto.
2077 * mingwex/math/logl.S: Ditto.
2079 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
2081 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
2083 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
2085 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
2086 from '_fsize_t' to '__int64' to be consistent with the other ...64
2087 structures and the value set there is 8 bytes not 4. Add guard for both
2088 as the are only used by functions available from 6.1 on.
2090 * include/malloc.h (_HEAP_MAXREQ): Define.
2091 (_aligned_offset_recalloc): Define.
2092 (_aligned_recalloc()): Define.
2094 * include/math.h: fixed a typo in a comment.
2095 (atanhf): Fixed declaration.
2097 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
2098 to '__int64' to be consistent with the other ...64 structures and the value
2099 set there is 8 bytes not 4. Added guard as this function is only used by
2100 functions available from 6.1 on.
2102 * include/sys/stat.h: some members of 'stat' were declared with types with
2103 a prefixed underscore, while the ones without the underscore should have
2104 been used. Added guard to '__stat64' as it is only used by functions
2105 available from 6.1 on. Added the wide character versions of the
2106 exec()/spawn() family for completion
2107 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
2110 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
2111 from 'long' to 'time_t'
2112 (__timeb64): moved declaration of structure directly before the declaration
2113 of the function '_ftime64()', so it is guarded as well
2115 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
2116 before the declaration of the functions using it, so it is guarded as well
2118 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
2120 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
2121 case. Add missing break in 's'/LEN_S case.
2123 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2125 Make snprintf() and vsnprintf() conform to C99.
2127 * include/stdio.h: Add note about incompatibility between...
2128 (snprintf, vsnprintf): These two mingwex functions, and...
2129 (_snprintf, _vsnprintf): these MSVCRT counterparts.
2131 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
2132 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
2134 * mingwex/stdio/snprintf.c: Delete.
2135 * mingwex/stdio/vsnprintf.c: Delete.
2137 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
2138 (vsnprintf): Alias to __mingw_vsnprintf.
2140 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2142 * include/_mingw.h: Increment version to 3.13.
2143 * Makefile.in: Reset CYGRELEASE to 1
2145 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2147 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
2148 resulting from incomplete removal of enclosing `for ...; do ...; done'
2149 loop from compound command; (reported by Greg Chicares).
2151 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2153 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2156 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2158 [mingw-Bugs-1734142]
2159 * include/wchar.h (_wsystem) Declare.
2161 (_wgetenv): Declare.
2162 (_wsearchenv): Declare.
2163 (_wmakepath): Declare.
2164 (_wsplitpath): Declare.
2165 (_wfullpath): Declare.
2166 * include/stdlib.h (_wsystem) Declare.
2167 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
2168 _wfullpath): Move into _WSTDLIB_DEFINED guard.
2169 * include/tchar.h (_tsystem): New UNICODE mapping define.
2171 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
2173 * mingwex/gdtoa/mingw_snprintf.c: New file.
2174 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
2175 (GDTOA_OBJS): Add mingw_snprintf.o.
2177 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
2179 * msvcrt.def.in: Update comment.
2180 Exclude _ctype stub if using msvcr71.dll or newer.
2181 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
2182 * include/wctype.h: Likewise.
2184 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2186 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
2187 *include/dirent.h: Likewise.
2189 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2191 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
2192 * include/conio.h: Likewise.
2193 * include/ctype.h: Likewise.
2194 * include/direct.h: Likewise.
2195 * include/dos.h: Likewise.
2196 * include/errno.h: Likewise.
2197 * include/fenv.h: Likewise.
2198 * include/float.h: Likewise.
2199 * include/inttypes.h: Likewise.
2200 * include/io.h: Likewise.
2201 * include/libgen.h: Likewise.
2202 * include/locale.h: Likewise.
2203 * include/malloc.h: Likewise.
2204 * include/mbctype.h: Likewise.
2205 * include/mbstring.h: Likewise.
2206 * include/process.h: Likewise.
2207 * include/search.h: Likewise.
2208 * include/setjmp.h: Likewise.
2209 * include/signal.h: Likewise.
2210 * include/stdio.h: Likewise.
2211 * include/stdlib.h: Likewise.
2212 * include/string.h: Likewise.
2213 * include/time.h: Likewise.
2214 * include/wchar.h: Likewise.
2215 * include/sys/stat.h: Likewise.
2216 * include/sys/time.h: Likewise.
2217 * include/sys/timeb.h: Likewise.
2218 * include/sys/utime.h: Likewise.
2220 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2222 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2224 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2226 Add POSIX binary tree search API.
2228 * mingwex/tfind.c: New file.
2229 * mingwex/tdelete.c: New file.
2230 * mingwex/tsearch.c: New file.
2231 * mingwex/twalk.c: New file.
2232 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2233 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2234 * include/search.h (tfind): Declare.
2241 (node_t): Define, on condition of _SEARCH_PRIVATE.
2243 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2245 * include/_mingw.h (__MINGW_NOTHROW): Define.
2247 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2249 * include/stdio.h (vsnprintf): Remove inline definition.
2252 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2254 * CRTfmode.c: Nit-pick comment fix.
2256 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2258 * CRTfmode.c: Fix nested comment.
2260 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2262 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2264 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2266 * include/io.h (lseek64) : Add prototype.
2268 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2270 * include/string.h (strcasecmp): Add prototype.
2271 (strncasecmp): Add prototype.
2273 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2275 * Makefile.in (CRT0S): Revert last change.
2276 * CRTfmode.c. Correct comment.
2278 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2280 * Makefile.in (CRT0S): Add back CRTfmode.o.
2282 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2284 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2285 * include/io.h: Likewise.
2287 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2289 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2291 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2293 * include/stdint.h (intptr_t): Fix typo.
2294 Thanks to Charles Wilson for report.
2296 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2298 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2299 Condition on _WIN64.
2300 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2301 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2302 (PTRDIFF_MIN): Define as INTPTR_MIN.
2303 (PTRDIFF_MAX): Define as INTPTR_MAX.
2304 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2305 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2307 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2309 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2310 Cygwin man page location.
2312 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2314 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2315 support Cygwin man page location.
2317 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2319 * Include/_mingw.h: Increment version to 3.12.
2321 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2323 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2325 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2327 * Makefile.in: Tweak srcdist to fix build issue.
2329 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2331 Add --enable-mingw-manpage-transform configure option.
2333 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2334 * configure.in, Makefile.in: Use it.
2335 * configure: Regenerated.
2337 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2339 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2341 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2343 Add manpages for dirname and basename functions.
2345 * man: New directory.
2346 * man/dirname.man: New file; it sources both manpages.
2347 * Makefile.in: Add provisional rules to distribute them.
2349 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2351 * mingwex/basename.c: Make it work with path names containing
2352 multibyte character strings.
2353 * mingwex/dirname.c: Likewise.
2355 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2357 * include/io.h (__mingw_access): New static inline wrapper to restore
2358 pre-Vista 'access (fname, X_OK)' behaviour.
2359 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2361 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2363 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2365 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2367 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2369 * include/stdio.h (_unlink, unlink): Add prototypes.
2371 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2373 * include/excpt.h: Replace "_try1" in comments with "__try1".
2375 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2377 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2378 (ALL_CXXFLAGS): Likewise.
2379 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2380 (ALL_CXXFLAGS): Likewise.
2381 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2382 (ALL_CXXFLAGS): Likewise.
2384 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2386 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2388 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2390 Expose some more msvcr80.dll functions.
2391 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2392 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2393 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2394 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2396 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2398 Expose some msvcr80.dll functions.
2399 * include/stdlib.h (_set_abort_behavior): Add prototype.
2400 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2401 _set_abort_behavior mask argument.
2402 (_invalid_parameter_handler): Add typedef.
2403 (_set_invalid_parameter_handler): Add prototype.
2404 * include/stdio.h (_get_printf_count_output): Add prototype.
2405 (_set_printf_count_output): Add prototype.
2406 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2407 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2409 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2411 * include/_mingw.h (CRT_INLINE): Correct typo.
2413 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2415 * include/io.h (X_OK): Define to F_OK.
2417 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2419 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2420 unconditionally. Change comment.
2421 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2423 * include/io.h (rename): Declare.
2426 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2428 * include/libgen.h: New file; required by...
2429 * mingwex/basename.c, mingwex/dirname.c: New files.
2430 * mingwex/Makefile.in (DISTFILES): Add them...
2431 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2432 (Dependencies): Typo; s/Dependancies/Dependencies/
2434 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2436 * Makefile.in (VERSION): Let configure define it.
2438 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2439 * configure.in: Use it.
2440 Correct quoting of autoconf macro arguments throughout.
2441 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2442 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2443 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2444 (AC_CONFIG_FILES): Add, to generate Makefile.
2446 * configure: Regenerated.
2448 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2450 * Makefile.in: Add aclocal.m4 to source release.
2451 * mingwex/Makefile.in: Ditto.
2452 * profile/Makefile.in: Ditto.
2454 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2456 * Include/_mingw.h: Increment version to 3.11.
2457 * Makefile.in: Ditto.
2459 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
2461 [ mingw-Bugs-1590623 ]
2462 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
2465 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
2467 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
2468 correctly parenthesized.
2470 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2472 * mingwex/mb_wc_common.h (get_codepage): Get it
2475 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2477 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
2479 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
2481 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
2484 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
2486 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
2489 2006-09-11 Christopher Faylor <cgf@timesys.com>
2491 * Makefile.in: Semi-revert 2006-08-30 change.
2493 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2495 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
2496 (__MINGW_IMPORT): Ansify.
2497 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
2498 __MINGW_ATTRIB_DEPRECATED.
2500 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2502 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
2503 Redundant macros; deleted.
2505 * configure.in (LIB_AC_PROG_CC): Replaced by...
2506 (AC_PROG_CC): ...this.
2508 * configure: Regenerated.
2510 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
2512 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
2513 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
2514 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
2516 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
2518 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
2519 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
2520 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
2521 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
2523 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
2524 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
2525 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
2526 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
2527 * mingwex/wcstold.c: Avoid using strtold internals.
2528 * mingwex/wcstof.c: Rewrite.
2529 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
2530 (GDTOA_OBJS): Add to library.
2531 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
2532 (STDLIB_OBJS): Remove.
2533 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
2534 (Q8_OBJS): Add wcstof.o wcstold.o.
2535 * include/stdlib.h (strtof): Remove inline definition.
2537 * include/wchar.h (wcstof): Remove inline definition.
2539 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
2541 * Makefile.in: Add with_cross_host to allow more granular checks.
2542 Set installation directories accordingly. Override CC setting only
2543 if building a Cygwin target.
2544 * aclocal.m4: Regenerate.
2545 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
2546 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
2547 Test AC_ALLOCA only if building on a native system.
2548 * configure: Regenerate.
2550 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2552 * include/ctype.h: Fix typo.
2554 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2556 * include/ctype.h: Expose iswblank if __cplusplus.
2557 * include/wctype.h: Expose iswblank if __cplusplus.
2559 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2561 * include/ctype.h: Remove stray ')';
2563 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2565 * include/ctype.h (_BLANK): Expand comment.
2566 (isblank): Add prototype and inline definition.
2567 (iswblank): Add prototype and inline definition.
2568 * include/wctype.h (iswblank): Add prototype and inline definition.
2569 * mingwex/isblank.c: New file.
2570 * mingwex/iswblank.c: New file.
2571 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2573 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
2575 * include/math.h (__INFF,__INFL): Remove '#'.
2577 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2579 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2581 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
2583 Support SSE float environment in fenv.h functions.
2584 * cpu_features.c: New file.
2585 * cpu_features.h: New file.
2586 * crt1.c: Include "cpu_features.h".
2587 (__mingw_CRTStartup): Call cpu_features_init().
2588 * Makefile.in (MING_OBJS): Add cpu_features.c.
2589 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
2590 * include/fenv,h ( fenv_t;): Append __mxcsr field.
2591 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
2592 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
2593 (__MXCSR_ROUND_FLAG_SHIFT): New define.
2594 * mingwex/feclearexcept.c: Include "cpu_features.h".
2595 Handle SSE environment.
2596 * mingwex/fegetenv.c: Likewise.
2597 * mingwex/feholdexcept.c: Likewise.
2598 * mingwex/fesetenv.c: Likewise.
2599 * mingwex/fesetexceptflag.c: Likewise.
2600 * mingwex/fesetround.c: Likewise.
2601 * mingwex/fetestexcept.c: Likewise.
2602 * mingwex/feupdateenv.c: Likewise.
2603 * mingwex/fegetround.c: Add comment.
2605 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2607 * Include/_mingw.h: Increment version to 3.10.
2608 * Makefile.in: Ditto.
2610 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2612 * mingwex/math/tgamma.c (SQTPI): Add braces.
2614 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2616 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2617 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2619 * mingwex/math/sf_erf.c (erff): Initialize z.
2621 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2623 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2625 * Include/_mingw.h: Increment version to 3.10.
2626 * Makefile.in: Ditto.
2628 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2630 * include/sys/time.h (struct timezone): Define.
2631 * include/time.h: Correct comment about timezone.
2633 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2635 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2636 * configure: Regenerate.
2638 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2640 * configure: add srcdir as a possible location for install-sh.
2642 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2644 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2645 (_topendir): Use it.
2647 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2649 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2651 (gettimeofday): Add prototype.
2652 * mingwex/gettimeofday.c: New file.
2653 * mingwex/makefile.in: Add gettimeofday source and object.
2655 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2657 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2658 else global library variable.
2659 (HUGEVALF): Likewise.
2660 (HUGEVALL): Likewise.
2661 (INFINITY): Likewise.
2664 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2666 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2668 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2670 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2672 2006-05-24 Christopher Faylor <cgf@timesys.com>
2674 * configure.in: Update to newer autoconf.
2675 (thanks to Steve Ellcey)
2676 * mingwex/configure.in: Ditto.
2677 * profile/configure.in: Ditto.
2678 * configure: Regenerate.
2679 * mingwex/configure: Ditto.
2680 * profile/configure: Ditto.
2681 * aclocal.m4: New file.
2682 * mingwex/aclocal.m4: Ditto.
2683 * profile/aclocal.m4: Ditto.
2685 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2687 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2688 Use supplied codepage as arg to WideCharToMultiByte.
2690 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2692 * Makefile.in (libmsvcr80.a): Add import lib.
2693 (libmsvcr80d.a): Ditto.
2695 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2697 * Makefile.in: Bump cygwin build number.
2699 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2701 * Include/_mingw.h: Increment version to 3.9.
2702 * Makefile.in: Ditto.
2704 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2706 * include/limits.h (SSIZE_MAX): Define.
2707 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2709 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2711 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2712 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2714 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2716 * include/stddef.h: Remove.
2717 * include/stdarg.h: Remove.
2719 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2721 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2722 of result is positive when real part of arg == 0;
2723 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2724 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2726 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2728 * include/time.h (_time64): Correct prototype.
2730 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2732 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2733 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2734 to non-stop. Use "fnclex" to clear exception flags.
2736 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
2738 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
2739 Avoid raising FP exceptions.
2741 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2743 * include/stdlib.h (strtof): Add prototype. Uglify
2744 parameter names in inline definition.
2746 (_Exit): Uglify parameter names in inline definition.
2747 (llabs): Add prototype.
2748 (_set_error_mode): Add prototype and input defines.
2750 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2752 * mingwex/fe*.c: Revert previous changes.
2753 * include/fenv.h: Revert previous changes.
2755 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2757 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
2758 Do not return a value.
2759 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
2760 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
2761 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
2762 * mingwex/fegetenv.c (fegetenv): Likewise.
2763 * mingwex/fesetenv.c (fesetenv): Likewise.
2764 * mingwex/feupdateenv.c (feupdateenv): Likewise.
2765 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
2766 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
2769 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2771 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
2772 getting filelength for SEEK_END.
2774 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2776 * Include/_mingw.h: Increment version to 3.8.
2777 * Makefile.in: Ditto.
2779 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2781 * include/wctype.h (towupper, towlower): Change arg and return value
2783 * include/ctype.h (towupper, towlower): Likewise.
2785 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2787 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
2788 a diagnostic, guarded by #ifdef DEBUG.
2789 (__mingwthr_remove_key_dtor): Likewise.
2791 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2793 * moldname.def.in (sleep, beep, seterrormode): Remove.
2795 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2797 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
2798 (_MCOUNT_DECL): Use it.
2799 (MCOUNT): Save and restore eax, ecx, edx registers.
2800 * profile/mcount.c (_mcount): ANSI-fy.
2802 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2804 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
2805 guard __MINGW_ATTRIB macro definitions.
2806 * include/math.h (logb[fl]): Don't define inlines for
2807 GCC-4.0+ && __FAST_MATH__.
2808 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
2809 line-continuation backslashes.
2811 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
2813 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
2814 in GNUC version guard.
2816 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
2818 * crt1.c (_gnu_exception_handler): Handle illegal instruction
2819 OS exception as a signal if user has defined a SIGILL handler.
2821 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
2823 * mingwex/math/nexttoward.c: New file.
2824 * mingwex/math/nexttowardf.c: New file.
2825 * mingwex/math/nextafterl.c: Add nexttowardl alias.
2826 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
2828 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
2829 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
2832 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
2834 * mingwex/math/nextafterf.c (nextafterf): Correct
2836 * mingwex/math/nextafterl.c: New file.
2837 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
2838 (MATH_OBJS): Add nextafterl.o.
2839 * include/math.h (nextafterl): Uncomment prototype.
2841 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2843 * mingwex/math/erfl.c: New file.
2844 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
2845 (MATH_OBJS): Add erfl.o.
2846 * include/math.h (erfl, erfcl): Uncomment prototypes.
2848 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
2850 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
2851 #if (WCHAR_MAX <= WCHAR_MIN) is false.
2852 * include/stdint.h (WCHAR_MAX): Likewise.
2853 (WINT_MAX): Likewise.
2855 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
2857 * mingwex/math/signbit.c (__signbit): Make return value
2858 consistent with GCC's __builtin_signbit.
2859 * mingwex/math/signbitf.c (__signbitf): Likewise.
2860 * mingwex/math/signbitf.c (__signbitl): Likewise.
2861 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
2864 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
2866 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
2868 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
2869 Remove unused MBTOWC_FLAGS define.
2871 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
2873 * mingwex/mbrtowc.c: New file.
2874 * mingwex/wcrtomb.c: New file.
2875 * mingwex/btowc.c: New file.
2876 * mingwex/wctob.c: New file.
2877 * mingwex/mb_wc_common.h: New file.
2878 * mingwex/Makefile.in (DISTFILES): Add new files.
2879 (Q8_OBJS): Add new objects.
2880 * include/wchar.h: Adjust comment about mbrtowc() and related
2881 funcions. Add __restrict__ to pointer params in prototypes.
2882 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
2883 arg names from protototypes.
2885 2005-04-23 Wu Yongwei <adah@sh163.net>
2887 * mingwex/dirent.c: Formatting changes.
2888 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
2891 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
2893 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
2895 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
2897 * include/stdio.h (__mingw_fwrite): Change return value to
2899 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
2901 2005-03-15 Hans Leidekker <hans@it.vu.nl>
2903 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
2905 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2907 * include/wctype.h (wctrans): Remove _CRTIMP.
2908 (towctrans): Likewise.
2911 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2913 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
2915 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2917 * mingwex/wctype.c: New file.
2918 * mingwex/wctrans.c: New file.
2919 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
2920 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
2922 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2924 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
2926 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2928 * include/assert.h: Remove header guard. #undef assert macro.
2929 (_assert): Use __MINGW_ATTRIB_NORETURN define.
2931 2005-02-11 Gregory W. Chicares <chicares@cox.net>
2933 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
2934 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
2936 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
2937 * mingwex/math/expm1.c: New file.
2938 * mingwex/math/expm1f.c: New file.
2939 * mingwex/math/expm1l.c: New file.
2941 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
2943 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
2944 * include/wchar.h (struct stat): Likewise.
2945 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
2947 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
2949 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
2951 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
2952 string is not valid.
2954 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
2956 * include/malloc.h: Add missing return code defines for
2959 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
2961 * include/sys/stat.h (struct __stat64): Change st_size type to
2963 * include/wchar.h (struct __stat64): Change st_size type to __int64.
2965 2005-01-13 Earnie Boyd <earnie@users.sf.net>
2967 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2969 * include/errno.h (ELOOP): Ditto.
2970 * include/_mingw.h: Increment version to 3.7.
2971 * Makefile.in: Ditto.
2973 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
2975 * include/tchar.h (_tfreopen): Add UNICODE mappings.
2977 2005-01-11 Earnie Boyd <earnie@users.sf.net>
2979 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
2980 lstat): Conditionalize defines for __STRICT_ANSI__.
2982 2005-01-10 Earnie Boyd <earnie@users.sf.net>
2984 * include/errno.h (ELOOP): Add definition.
2986 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
2988 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
2989 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
2990 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
2991 ctanl.c ctanhl.c): New files.
2992 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
2993 (COMPLEX_OBJS): Adjust.
2994 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
2995 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
2996 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
2999 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3001 * include/_mingw.h (__int16): Define as short.
3002 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3004 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3006 * include/stdio.h (P_tmpdir): Add define.
3008 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3010 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3012 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3014 * include/_mingw.h: Increment version to 3.6
3015 * Makefile.in: Ditto
3017 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3019 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3020 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3021 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3022 ctanf.c ctanhf.c): New files.
3023 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3024 (COMPLEX_OBJS): Adjust.
3025 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3026 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3027 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3030 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3032 * include/wchar.h (wcsdup): Correct prototype.
3033 * include/string.h (wcsdup): Correct prototype.
3035 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3037 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3039 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3041 * mingwex/math/fastmath.h: New file.
3042 * mingwex/math/asinh.c: New file.
3043 * mingwex/math/asinhf.c: New file.
3044 * mingwex/math/asinhl.c: New file.
3045 * mingwex/math/acosh.c: New file.
3046 * mingwex/math/acoshf.c: New file.
3047 * mingwex/math/acoshl.c: New file.
3048 * mingwex/math/atanh.c: New file.
3049 * mingwex/math/atanhf.c: New file.
3050 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3051 atanh, atanhf, atanhl): Add prototypes.
3052 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3053 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3054 Specify dependency on fastmath.h for new objects.
3056 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3058 * include/sys/stat.h (_S_IFLNK): Add definition.
3065 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3067 * include/sys/stat.h (_S_ISLNK): Add definition.
3070 2004-09-05 Earnie Boyd <earnie@users.sf.net>
3072 * include/_mingw.h: Increment minor version for 3.5 release.
3073 * Makefile.in: Ditto.
3074 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
3076 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3078 * include/malloc.h (__mingw_aligned_offset_malloc,
3079 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
3080 __mingw_aligned_realloc, __mingw_aligned_free): Add
3082 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
3083 tst-aligned-malloc.c.
3084 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
3086 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
3088 * mingwex/mingw-aligned-malloc.c: New file.
3089 * mingwex/tst-aligned-malloc.c: New file.
3091 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3093 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
3094 noreturn attribute. Align stack to 16 bytes before passing args
3096 (mainCRTStartup): Change return to void.
3097 (WinMainCRTStartup): Likewise.
3099 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3101 * profile/COPYING: New file.
3102 * profile/CYGWIN_LICENSE: New file.
3103 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
3105 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3107 * mingwex/fopen64.c: Move.
3108 * mingwex/fseeko64.c: Move.
3109 * mingwex/ftello64.c: Move.
3110 * mingwex/lseek64.c: Move.
3111 * mingwex/stdio/fopen64.c: To here.
3112 * mingwex/stdio/fseeko64.c: To here.
3113 * mingwex/stdio/ftello64.c: To here.
3114 * mingwex/stdio/lseek64.c: To here.
3116 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3118 * profile/gmon.c [__MINGW32__]: Include string.h for
3121 2004-08-08 Christopher Faylor <cgf@timesys.com>
3123 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
3125 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3127 * include/complex.h: Remove __attribute__ ((const)) from
3128 transcendantal and trig functions. Replace __attribute__ ((const))
3129 with __MINGW_ATTRIB_CONST on other declarations.
3131 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3133 * include/wchar.h: Reorganize, avoid including other headers.
3135 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3137 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
3138 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
3141 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3143 * include/dirent.h (struct _wdirent): Remove obsolete comment.
3145 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3147 * include/string.h: Revert 2004-07-26 additions of
3150 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3152 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3153 (__convert_inf_to_maxnum): New.static inline.
3154 (reducl): Use it to protect against Inf - Inf.
3155 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3157 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3159 * mingwex/math/expl.c (expl): Move body of code to new static
3160 function __expl, removing tests for +/-Inf. Extern function
3161 expl calls __expl after testing for max, min log thresholds.
3163 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3165 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
3166 * mingwex/stdio/vfscanf.c: Likewise.
3167 * mingwex/stdio/vswscanf.c: Likewise.
3168 * mingwex/stdio/vfwscanf.c: Likewise.
3170 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3172 * include/_mingw.h: Use only two underscores to uglify
3173 __MINGW_ATTRIB_* macros.
3174 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
3175 * include/setjmp.h: Likewise.
3177 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
3179 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
3181 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3183 * include/string.h: Group wide string functions together,
3184 and protect with _WSTRING_DEFINED.
3186 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3188 * include/_mingw.h (__MINGW_ATTR_*): Replace with
3190 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
3191 __MINGW_ATTRIB_NORETURN, throughout.
3192 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3194 (abs): Declare with __MINGW_ATTRIB_CONST.
3203 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3205 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3207 * include/_mingw.h: Undefine __attribute__.
3208 (__MINGW_ATTR_NORETURN): New define.
3209 (__MINGW_ATTR_CONST): New define.
3210 (__MINGW_ATTR_MALLOC): New define.
3211 (__MINGW_ATTR_PURE): New define.
3212 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3215 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3217 * include/time.h (__time64_t): Add missing ';'.
3219 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3221 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3222 (struct tm): Protect with _TM_DEFINED.
3224 2004-07-17 Christopher Faylor <cgf@timesys.com>
3226 * Makefile.in (CC): Strip inappropriate include file settings from any
3229 2004-07-15 "dgun" <dgun@umpire.com>
3231 * include/complex.h (conj): Correct typo in prototype.
3233 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3235 * include/math.h: Add pragma GCC system_header.
3237 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3239 * mingwex/complex/carg.c: New file.
3240 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3242 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3244 * Makefile.in (INCLUDES): Temporarily revert previous change.
3245 * mingwex/Makefile,in (INCLUDES): Ditto.
3246 * profile/Makefile,in (INCLUDES): Ditto.
3247 * mingwex/Makefile,in: Drop carg.o dependency.
3249 2004-07-14 Christopher Faylor <cgf@timesys.com>
3251 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3253 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3255 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3257 * mingwex/Makefile,in (INCLUDES): Ditto.
3258 * profile/Makefile,in (INCLUDES): Ditto.
3260 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3262 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3264 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3266 * mingwex/Makefile.in: Ditto.
3267 * profile/Makefile.in: Ditto.
3268 * include/limits.h: Change to new file header preamble.
3269 * include/_mingw.h: Increment minor version for 3.4 release.
3270 * Makefile.in: Ditto.
3272 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3274 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3276 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3278 * include/unistd.h (ftruncate): Add inline definition.
3279 * mingwex/ftruncate.c: New file.
3280 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3282 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3284 * include/time.h: Do not include sys/types.h.
3286 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3288 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3289 (MATH_OBJS): Remove pow,o.
3290 * include/math.h (pow): Declare with _CRTIMP.
3291 Add comment on how to avoid excess precision problems.
3293 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3295 * include/stdio.h (__mingw_fseeko64): Add prototype.
3296 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3297 (__mingw_fwrite): Handle huge files.
3299 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3300 Danny Smith <dannysmith@users.sourceforge.net>
3302 * include/stdio.h (fopen64): Add inline function.
3303 (fseeko64): Add prototype.
3304 (ftello64): Add inline function.
3305 * include/io.h (lseek64): Add inline function.
3306 * include/sys/types (off64_t): Add typedef.
3307 (fpos64_t): Add typedef.
3308 * mingwex/fopen64.c: New file.
3309 * mingwex/fseeko64.c: New file.
3310 * mingwex/ftello64.c: New file.
3311 * mingwex/lseek64.c: New file.
3312 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3313 fseeko.64.c, ftello64.c, lseek64.c.
3314 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3316 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3318 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3320 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3322 * DISCLAIMER: Add words about "free to use".
3323 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3324 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3325 (inst_docdir): New variable.
3327 (FLAGS_TO_PASS): Include inst_docdir.
3328 (install-dirs): Add inst_docdir.
3329 (install): Add loop for INSTDOCS.
3330 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3331 section to CONTRIBUTORS file. Remove RCS tags.
3333 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3335 * mingwex/math/lround.c: Rewrite.
3336 * mingwex/math/lroundf.c: Rewrite.
3337 * mingwex/math/lroundl.c: Rewrite.
3338 * mingwex/math/llround.c: Rewrite.
3339 * mingwex/math/llroundf.c: Rewrite.
3340 * mingwex/math/llroundl.c: Rewrite.
3342 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3344 * CONTRIBUTORS: New file.
3345 * DISCLAIMER: Ditto.
3346 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3347 section to CONTRIBUTORS file. Remove RCS tags.
3348 * CRTFmode.c: Ditto.
3352 * crtdll.dev: Ditto.
3362 * msvcrt.def.in: Ditto.
3363 * strcasecmp.c: Ditto.
3366 * include/assert.h: Ditto.
3367 * include/conio.h: Ditto.
3368 * include/ctype.h: Ditto.
3369 * include/direct.h: Ditto.
3370 * include/dirent.h: Ditto.
3371 * include/dos.h: Ditto.
3372 * include/errno.h: Ditto.
3373 * include/excpt.h: Ditto.
3374 * include/fcntl.h: Ditto.
3375 * include/float.h: Ditto.
3376 * include/io.h: Ditto.
3377 * include/locale.h: Ditto.
3378 * include/malloc.h: Ditto.
3379 * include/math.h: Ditto.
3380 * include/process.h: Ditto.
3381 * include/setjmp.h: Ditto.
3382 * include/share.h: Ditto.
3383 * include/signal.h: Ditto.
3384 * include/stdio.h: Ditto.
3385 * include/stdlib.h: Ditto.
3386 * include/string.h: Ditto.
3387 * include/tchar.h: Ditto.
3388 * include/time.h: Ditto.
3389 * include/wchar.h: Ditto.
3390 * include/sys/locking.h: Ditto.
3391 * include/sys/param.h: Ditto.
3392 * include/sys/stat.h: Ditto.
3393 * include/sys/timeb.h: Ditto.
3394 * include/sys/types.h: Ditto.
3395 * include/sys/utime.h: Ditto.
3396 * mingwex/dirent.c: Ditto.
3398 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3400 * include/_mingw.h: Revert to primary release 3 and increment minor
3402 * Makefile.in (VERSION): Ditto.
3404 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3406 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3407 _fmode if not __MSVCRT__.
3409 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3411 * include/io.h: (_findfirst): Correct prototype.
3413 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3415 * include/io.h: (_findnext, _findclose): Correct prototype.
3417 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3419 * include/math.h (FP_*): Add defines.
3421 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3423 * mingwex/math/round.c: Rewrite.
3424 * mingwex/math/roundf.c: Rewrite.
3425 * mingwex/math/roundl.c: Rewrite.
3427 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3429 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3430 * include/time.h (__time64_t): Add typedef.
3431 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3432 (_ctime64): Likewise.
3433 (_wctime64): Likewise.
3434 (_gmtime64): Likewise.
3435 (_localtime64): Likewise.
3436 (wcsftime): Move into _WTIME_DEFINED block.
3437 Regroup non-ANSI prototypes.
3438 * include/io.h: Include <stdint.h>.
3439 (__finddata64_t): Add struct definition.
3440 (__wfinddata64_t): Likewise.
3441 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3442 (_findnext64): Likewise.
3443 (_wfindfirst64): Likewise.
3444 (_wfindnext64): Likewise.
3445 * include/sys/timeb.h (__timeb64): Add struct definition.
3446 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3447 * include/sys/utime.h (__utimbuf64): Add struct definition.
3448 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3449 (_futime64): Likewise.
3450 (_wutime64): Likewise.
3451 * include/sys/stat.h (__stat64): Add struct definition.
3452 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3453 (_stat64): Likewise.
3454 (_wstat64): Likewise.
3455 * include/sys/types.h (__time64_t): Add typedef.
3456 * include/wchar.h (__wfinddata64_t): Add structure definition.
3457 (__stat64): Likewise.
3458 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3459 (_wfindfirst64): Likewise.
3460 (_wfindnext64): Likewise.
3461 (_wutime64): Likewise.
3462 (_wstat64): Likewise.
3463 * include/malloc.h (_aligned_free): Add prototype for
3464 __MSVCRT_VERSION__ >= 0x0700.
3465 (_aligned_malloc): Likewise.
3466 (_aligned_offset_malloc): Likewise.
3467 (_aligned_offset_realloc): Likewise.
3468 (_aligned_realloc): Likewise.
3469 * include/string.h (_wcserror): Add prototype for
3470 __MSVCRT_VERSION__ >= 0x0700.
3471 (__wcserror): Likewise.
3472 * include/math.h (_set_SSE2_enable): Add prototype for
3473 __MSVCRT_VERSION__ >= 0x0701.
3475 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3477 * include/stdio.h (_fsopen): Add prototype.
3478 * include/tchar.h (_tfsopen): Add defines.
3479 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
3481 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3483 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
3484 msvcr70.dll, and msvcr71.dll.
3485 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
3486 using basename of output def file.
3488 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3490 * include/malloc.h: Remove __STRICT_ANSI__ guard.
3492 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
3494 * include/process.h: Remove the #endif associated with removal of
3495 __STRICT_ANSI__ guard from non-ANSI header.
3497 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3499 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
3500 * include/direct.h: Ditto.
3501 * include/dirent.h: Ditto.
3502 * include/dos.h: Ditto.
3503 * include/excpt.h: Ditto.
3505 * include/io.h: Ditto.
3506 * inlude/mem.h: Ditto.
3507 * include/memory.h: Ditto.
3508 * include/process.h: Ditto.
3509 * inlude/search.h: Ditto.
3510 * include/share.h: Ditto.
3511 * include/unistd.h: Ditto.
3512 * include/sys/fcntl.h: Ditto.
3513 * include/file.h: Ditto.
3514 * include/sys/locking.h: Ditto.
3515 * include/sys/param.h: Ditto.
3516 * include/sys/stat,h
3517 * include/sys/time.h: Ditto.
3518 * include/sys/timeb.h: Ditto.
3519 * include/sys/types.h: Ditto.
3520 * include/sys/unistd.h: Ditto.
3521 * include/sys/utime.h: Ditto.
3523 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
3525 * include/_mingw.h (__UNUSED_PARAM): Define macro.
3526 * include/wchar.h (fwide): Use it.
3529 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3531 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
3532 NetBSD getopt_long.c.
3534 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3536 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
3537 codes and handling of special chars.
3539 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
3541 * include/stdio.h (feof): Add inlined definition.
3544 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3546 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
3547 directly, rather than via scabnl.
3549 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3551 * mingwex/math/powl.c (powl): Return infinity if
3552 extended precision multiplication of x by log2(y)
3555 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3557 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
3558 (__enan_NI16): Fix another one.
3559 (__enan_NBITS): Tidy.
3561 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3563 * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
3564 types. (Thanks to John Maddock for report.)
3566 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
3568 * include/tchar.h (_puttchar): Define.
3570 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
3572 * include/stdio.h:(_fileno): Define macro version after both
3573 fileno and _fileno functions declared.
3575 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
3576 * moldnames.def.in (rmtmp) Add stub.
3578 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
3580 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
3582 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
3584 * include/math.h: Guard ISO C99 additions with __cplusplus
3587 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3589 * include/_mingw.h: Define __attribute__((x)) to nothing
3592 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3594 * include/complex.h: New file.
3595 * mingwex/complex: New directory.
3596 * mingwex/complex/cabs.c: New file.
3597 * mingwex/complex/cacos.c: New file.
3598 * mingwex/complex/cacosh.c: New file.
3599 * mingwex/complex/casin.c: New file.
3600 * mingwex/complex/casinh.c: New file.
3601 * mingwex/complex/catan.c: New file.
3602 * mingwex/complex/catanh.c: New file.
3603 * mingwex/complex/ccos.c: New file.
3604 * mingwex/complex/ccosh.c: New file.
3605 * mingwex/complex/cexp.c: New file.
3606 * mingwex/complex/cimag.c: New file.
3607 * mingwex/complex/clog.c: New file.
3608 * mingwex/complex/cpow.c: New file.
3609 * mingwex/complex/cproj.c: New file.
3610 * mingwex/complex/creal.c: New file.
3611 * mingwex/complex/csin.c: New file.
3612 * mingwex/complex/csinh.c: New file.
3613 * mingwex/complex/csqrt.c: New file.
3614 * mingwex/complex/ctan.c: New file.
3615 * mingwex/complex/ctanh.c: New file.
3616 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3619 (COMPLEX_OBJS): New list of objects.
3620 (LIB_OBJS): Include it in the library.
3622 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3624 * include/math.h (cabs): Remove non-ISO prototype.
3626 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3628 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3629 Use GCC __builtin's if available.
3630 (INFINITY, INFINITYF, INFINITYL): Likewise.
3632 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3634 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3635 beyond approximation limit.
3636 * mingwex/math/sf_erf.c (erff): Likewise.
3638 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3640 * include/stdio.h (getc): Cast result to unsigned char before
3643 (getchar): Likewise.
3644 (putchar): Likewise.
3645 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3647 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3649 * include/_mingw.h: Increment version to 3.2.
3650 * Makefile.in: Ditto.
3652 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3654 * include/sys/types.h: Revert last change.
3656 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3658 * include/sys/types.h (ssize_t): Correct the definition.
3660 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3662 * include/stdio.h (_filbuf): Add prototype.
3663 (_flsbuf): Add prototype.
3664 (getc): Add inline version.
3666 (getchar): Likewise.
3667 (putchar): Likewise.
3669 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3671 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3674 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3676 * include/stdlib.h: Guard non-ISO functions with
3677 !__STRICT_ANSI__, throughout.
3679 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3681 * include/io.h (_fileno): Remove prototype.
3683 (FILENAME_MAX): Define, if needed.
3684 Don't include <stdio.h>.
3685 * include/stdio.h (FILENAME_MAX): Protect against
3687 (_fileno): Define macro implementation.
3690 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3692 * include/inttypes.h: Include _mingw.h.
3694 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3696 * include/_mingw.h (__CRT_INLINE): Define.
3697 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3699 * include/inttypes.h: Likewise.
3700 * include/math.h: Likewise.
3701 * include/stdio.h: Likewise.
3702 * include/stdlib.h: Likewise.
3703 * include/string.h: Likewise.
3704 * include/wchar.h: Likewise.
3705 * include/wctype.h: Likewise.
3707 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3709 * mingwex/dirent.c (_topendir): Allocate enough memory for
3710 DIR struct in UNICODE case too.
3712 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3714 * include/_mingw.h: Increment version to 3.2.
3715 * Makefile.in: Ditto.
3717 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3719 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3721 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3723 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3724 * mingwex/math/truncf.c (truncf): Likewise.
3725 * mingwex/math/truncl.c (truncl): Likewise.
3726 * mingwex/math/modff.c (modff): Likewise.
3727 * mingwex/math/modfl.c (modfl): Likewise.
3729 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3731 * include/search.h: New file.
3732 * include/stdlib.h: Add comment about qsort, bsearch in
3734 * test_headers.c: Include search.h.
3735 * moldname.def.in (lfind, lsearch): Add.
3737 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3739 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
3740 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
3741 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
3743 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3745 * include/_mingw.h (small, hyper): Change to __small and __hyper to
3746 avoid user space name conflicts.
3748 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3750 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
3751 Note: Also added to w32api/include/basetyps.h.
3752 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
3753 Rename to Small (case difference).
3755 2003-06-18 Earnie Boyd <earnie@users.sf.net>
3757 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
3758 * mingwex/dirent.c: Modifications througout to fill d_name array.
3759 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
3760 libmsvcr71, including debug versions.
3761 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
3763 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
3765 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
3766 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
3768 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
3770 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
3772 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
3774 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
3776 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
3777 but still protect inline definition with __STRICT_ANSI__.
3779 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
3781 * string_old.c: Remove, splitting into...
3782 * strcasecmp.c: New file.
3783 * strncasecmp.c: New file.
3784 * wscmpi.c : New file.
3785 * ctype_old.c: Remove, splitting into...
3786 * isascii.c: New file.
3787 * iscsym.c: New file.
3788 * iscsymf.c: New file.
3789 * toascii.c: New file.
3790 * Makefile.in (MOLD_OBJS): Adjust.
3791 (SRCDIST_FILES): Adjust.
3793 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
3795 * include/math.h (fabs) : Remove inline definition.
3799 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3801 * include/_mingw.h: Change version to 3.0
3802 * Makefile.in: Ditto.
3804 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3806 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
3807 * mingwex/configure.in (W32API_INCLUDE): Ditto.
3808 * profile/configure.in (W32API_INCLUDE): Ditto.
3810 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3812 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
3813 of multiply defined symbols if the symbols is defined locally. E.G.:
3814 A local definition of malloc causes this problem.
3815 * configure: Regenerate.
3816 * profile/Makefile.in (W32API_INCLUDE): New variable.
3817 (ALL_CFLAGS): Use W32API_INCLUDE value.
3818 (ALL_CXXFLAGS): Ditto.
3819 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
3820 Thanks to Jeff Bonggren <jbon@users.sf.net>.
3821 * profile/configure.in (W32API_INCLUDE): Set default value.
3822 * profile/configure: Regenerate.
3823 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
3824 (ALL_CFLAGS): Use W32API-INCLUDE value.
3825 (ALL_CXXFLAGS): Ditto.
3826 * mingwex/configure.in (W32API_INCLUDE): Set default value.
3827 * mingwex/configure: Regenerate.
3829 2003-05-05 Earnie Boyd <earnie@users.sf.net>
3831 * Makefile.in (W32API_INCLUDE): New variable.
3832 (ALL_CFLAGS): Use W32API_INCLUDE value.
3833 (ALL_CXXFLAGS): Ditto.
3834 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
3835 (W32API_INCLUDE): Set default value.
3836 * configure: Regenerate.
3838 2003-04-11 Earnie Boyd <earnie@users.sf.net>
3840 * configure.in (LIBM_A): Define for cygwin target.
3841 * configure (LIBM_A): Ditto.
3843 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
3845 * include/time.h (strftime): Remove duplicate declaration.
3847 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3849 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
3851 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3853 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
3854 * mingwex/strtoimax.c (strtoimax): Likewise.
3855 * mingwex/wcstoimax.c (wcstoimax): Likewise.
3856 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
3857 * mingwex/fesentenv.c: Include float.h.
3858 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
3860 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
3862 * mingwex/math/tgammal.c: Likewise.
3864 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3866 * include/utime.h: New file, forwarding to sys/utime.h.
3868 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3870 * include/sys/param.h (MAXPATHLEN): Define.
3872 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3874 * include/tchar.h: Ansi-fy a comment.
3876 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3878 * profile/profile.h (mcount): Use __builtin_return_address
3879 rather than inline __asm statements.
3880 * profile/Makefile.in: Remove special rule for mcount.o
3881 Specify dependencies for mcount.o profil.o gmon.o.
3883 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3885 * include/stdlib.h (qsort): Remove const from first parm.
3886 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
3888 2003-03-03 Christopher Faylor <cgf@redhat.com>
3890 * mingwex/getopt.c: Refresh from NetBSD sources.
3892 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
3894 * mingwex/getopt.c: New file, copied from cygwin srcs.
3895 * include/getopt.h: New file, copied from cygwin srcs.
3896 * include/unistd.h: Include getopt.h.
3897 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
3898 (POSIX_OBJS): Add getopt.o.
3900 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
3902 * include/stdio.h (vscanf): Add prototype.
3908 * include/wchar.h (vwscanf): Add prototype.
3911 * mingwex/snprintf.c: Move to mingwex/stdio.
3912 * mingwex/vsnprintf.c: Ditto.
3913 * mingwex/snwprintf.c: Ditto.
3914 * mingwex/vsnwprintf.c: Ditto.
3915 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
3916 (STDIO_DISTFILES): Add.
3917 (DISTFILES): Adjust.
3918 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
3922 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
3924 * mingwex/stdio: New directory
3925 * mingwex/stdio/vfscanf.c: New file.
3926 * mingwex/stdio/vfwscanf.c: New file.
3927 * mingwex/stdio/vscanf.c: New file.
3928 * mingwex/stdio/vsscanf.c: New file.
3929 * mingwex/stdio/vswscanf.c: New file.
3930 * mingwex/stdio/vwscanf.c: New file.
3932 2003-02-25 Earnie Boyd <earnie@users.sf.net>
3934 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
3935 (libmsvcrt40.a): Ditto.
3937 2003-02-21 Earnie Boyd <earnie@users.sf.net>
3939 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
3941 * Makefile.in (libmsvcrtd.a): Add target library.
3942 (libmoldnamed.a): Ditto.
3943 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
3945 ($(srcdir)): Remove explicit reference for depencies of object targets.
3946 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
3947 msvcrt20.def, msvcrt40.def: Remove.
3948 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
3950 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
3952 * Makefile.in: Make sure libmingwex.a from current build tree is used.
3954 2003-02-14 Christopher Faylor <cgf@redhat.com>
3956 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
3957 ensure -mno-cygwin where appropriate. Filter out -O2.
3959 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
3961 * profile/Makefile.in (mcount.o): Use -O1 optimization
3964 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3966 * include/math.h: Remove _CRTIMP from pow() prototype,
3967 unless __NO_ISOCEXT.
3969 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3971 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
3973 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
3975 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
3976 __declspec(dllimport) supported.
3977 (__cdecl): Define if not already defined.
3978 (__stdcall): Likewise.
3979 * include/dirent.h: Qualify fuctions with __cdecl.
3980 * include/fenv.h: Likewise.
3981 * include/inttypes.h: Likewise.
3982 * include/assert.h: Qualify fuctions with __cdecl. Qualify
3983 CRT dll imports with _CRTIMP.
3984 * include/conio.h: Likewise.
3985 * include/ctype.h: Likewise.
3986 * include/direct.h: Likewise.
3987 * include/dos.h: Likewise.
3988 * include/errno.h: Likewise.
3989 * include/float.h: Likewise.
3990 * include/io.h: Likewise.
3991 * include/locale.h: Likewise.
3992 * include/malloc.h: Likewise.
3993 * include/math.h: Likewise.
3994 * include/mbctype.h: Likewise.
3995 * include/mbstring.h: Likewise.
3996 * include/process.h: Likewise.
3997 * include/setjmp.h: Likewise.
3998 * include/signal.h: Likewise.
3999 * include/stdio.h: Likewise.
4000 * include/stdlib.h: Likewise.
4001 * include/string.h: Likewise.
4002 * include/time.h: Likewise.
4003 * include/wchar.h: Likewise.
4004 * include/wctype.h: Likewise.
4005 * include/sys/stat.h: Likewise.
4006 * include/sys/timeb.h: Likewise.
4007 * include/sys/utime.h: Likewise.
4009 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4010 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4012 * include/stdio.h (__VALIST): Guard against prior definition.
4014 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4016 * include/_mingw.h: Change version to 3.0
4017 * Makefile.in: Ditto.
4019 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4021 * include/stdlib.h: Make words after #endif a comment.
4023 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4025 * include/locale.h: Include stddef.h for definition of NULL.
4027 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4029 * include/math.h (tgamma): Correct typo in comment.
4031 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4033 * mingwex/mingw-fseek.c (INLINE): Remove define.
4034 (__mingw_is_win9x): Remove static inline function.
4035 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4037 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4039 * mingwex/math/llround.c: Correct function name and
4040 change return value to long long.
4042 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4044 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4045 (iswascii): Likewise. Correct mask.
4046 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4049 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4051 * include/stdlib.h (_osver, _winver, _winmajor,
4052 _winminor): Declare as direct imports from dll if
4053 __DECLSPEC_SUPPORTED.
4055 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4057 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4058 * pseudo-reloc-list.c: New file.
4059 * crt1.c (_pei386_runtime_relocator): Declare.
4060 (__mingw_CRTStartup): Call it.
4061 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4062 (DllMainCRTStartup): Call it.
4063 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
4066 2003-01-01 Egor Duda <deo@logos-m.ru>
4068 * pseudo-reloc.c: New file.
4070 2002-12-20 Earnie Boyd <earnie@users.sf.net>
4072 * include/_mingw.h: Increment version to 2.4.
4075 2002-12-12 Earnie Boyd <earnie@users.sf.net>
4077 * include/malloc.h (_alloca): Add definition.
4080 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
4082 * mingwex/math/s_erf.c: New file.
4083 * mingwex/math/sf_erf.c: New file.
4084 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4085 (MATH_OBJS): Add new objects.
4086 * include/math.h (erf[f]): Add prototypes.
4087 (erfc[f]): Add prototypes.
4089 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
4091 * include/math.h: Add traditional/XOPEN math constants.
4093 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
4095 * mingwex/math/lgamma.c: New file.
4096 * mingwex/math/lgammaf.c: New file.
4097 * mingwex/math/lgammal.c: New file.
4098 * mingwex/math/tgamma.c: New file.
4099 * mingwex/math/tgammaf.c: New file.
4100 * mingwex/math/tgammal.c: New file.
4101 * mingwex/math/cephes_mconf (polevlf): Add float version.
4103 Define _CEPHES_USE_ERRNO.
4104 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4105 (MATH_OBJS): Add new objects.
4106 * include/math.h (lgamma[fl]): Add prototypes.
4107 (tgamma[fl]): Add prototypes.
4109 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
4111 * mingwex/strtold.c: New file.
4112 * mingwex/wcstold.c: New file.
4113 * mingwex/ldtoa.c: New file.
4114 * mingwex/math/cephes_emath.h: New file.
4115 * mingwex/math/cephes_emath.c: New file.
4116 * mingwex/Makefile.in (DISTFILES): Add new files.
4117 (MATH_DISTFILES): Ditto.
4118 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
4119 (MATH_OBJS): Add cephes_emath.o.
4120 (LIB_OBJS): Add $(STDLIB_OBJS).
4121 * include/stdlib.h (strtold, wcstold): Add prototypes.
4122 * include/wchar.h (wcstold): Add prototype.
4124 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
4126 * include/math.h (sqrt): Remove inline definition.
4127 (sqrtf): Replace inline definition with prototype.
4129 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
4130 argument less than zero.
4131 * mingwex/math/sqrtf.c (sqrtl): Likewise.
4133 2002-10-30 Guido Serassio <serassio@libero.it>
4135 * include/stdio.h (_getmaxstdio): Add prototype.
4136 (_setmaxstdio): Likewise.
4138 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
4140 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
4142 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4144 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
4146 Define WIN32_MEAN_AND_LEAN before including windows.h
4147 * include/stdlib.h (_fmode): Protect declaration as dllimported
4148 variable with __IN_MINGW_RUNTIME.
4150 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4152 * crt1.c: Include stdlib.h.
4154 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4156 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4157 (MINGW_OBJS): Add txtmode.o.
4158 (SRCDIST_FILES): Add txtmode.c binmode.c.
4159 crt1.c: Don't include fcntrl.h, stdlib.h.
4160 (_fmode): Declare, without dllimport attribute.
4161 (__p__fmode): Declare access function for dll's _fmode.
4162 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
4164 * txtmode.c: New file.
4165 * binmode.c: New file.
4166 * samples/fmode/test2.c: New file.
4167 * samples/fmode/jamfile: Add test2.exe target.
4169 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4171 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
4172 macros work with C89.
4173 (INTMAX_C, UINTMAX_C): Likewise.
4175 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4177 * include/string.h (strcasecmp): Make extern __inline__.
4178 (strncasecmp): Likewise.
4179 (wcscmpi): Likewise.
4181 2002-10-08 Heiko Gerdau <hg@technosis.de>
4183 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
4184 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
4187 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4189 * mingwex/math/powil.c: Rename powil to __powil.
4190 * mingwex/math/powl.c: Adjust declaration and call
4191 to __powil. Remove comment on powil.
4192 * mingwex/math/powi.c: New file.
4193 * mingwex/math/powif.c: New file.
4194 * mingwex/math/pow.c: New file.
4195 * mingwex/math/cephes_mconf.h. Add double and float
4196 versions of constants.
4197 (polevl): Add double precision function.
4199 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4201 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4203 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4205 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4206 (_imp____mbcur_max_dll): Likewise.
4208 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4210 * include/fcntl.h (_fmode): Remove declarations and
4211 compatibility defines.
4212 (_setmode, setmode): Remove prototypes.
4213 * include/stdlib (_fmode): Add declarations and
4214 compatibility defines. Change type to int.
4215 * include/io.h (_setmode, setmode): Add prototypes.
4216 * samples/fmode/all.c: Adjust includes.
4217 * samples/fmode/test.c: Likewise.
4218 * crt1.c (_CRT_fmode): Declare as int.
4219 * CRTfmode.c (_CRT_fmode): Likewise.
4221 * include/stdlib: Remove comment about MB_CUR_MAX.
4223 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4225 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4226 (_imp____mbcur_max_dll): Likewise.
4228 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4230 * mingwex/math/files.txt: Remove inadvertantly added file.
4232 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4234 * include/string.h (_strerror): Move into #ifndef
4235 __STRICT_ANSI__ block.
4237 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4239 * include/time.h (__need_NULL): Define before including
4240 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4242 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4244 * include/stdio.h: Correct comment about directory separator.
4246 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4248 * include/sys/time.h (timeval): Add struct definition and
4249 associated macros (copied from w32api/include/winsock.h).
4251 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4253 * include/_mingw.h: Increment version to 2.3.
4256 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4258 * mingwex/fegetenv.c: Change to \n line endings.
4259 * mingwex/vsnprintf.c: Ditto.
4260 * mingwex/vsnwprintf.c: Ditto.
4262 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4264 * mingwex/math/hypotl.c: Replace with version based on cephes
4267 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4269 * include/sys/param.h: Add ENDIAN defines.
4270 * test_headers.c: Include sys/param.h.
4272 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4274 * test_headers.c: Don't include varargs.h.
4275 * Makefile.in (test_headers): Don't use -std=xx
4278 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4280 * include/sys/param.h: New File.
4282 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4284 * include/math.h (asm): Change to __asm__ throughout.
4285 Expose ISO C99 functions if __GLIPCPP__.
4286 (hypotf): Use hypot, not _hypot in stub.
4288 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4290 * include/tchar.h: Ansi-fy another comment.
4292 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4294 * include/tchar.h: Ansi-fy comment.
4296 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4298 * test_headers.c : New file.
4299 * Makefile.in (test_headers): New target, using it,
4300 (SRCDIST_FILES): Distribute it.
4302 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4304 * include/_mingw.h: Increment version to 2.2.
4307 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4309 * include/unistd.h: Add include of process.h.
4311 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4313 * include/stdio.h (_fcloseall): Add prototype.
4315 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4317 * include/tchar.h (_tfdopen): Correct typo.
4319 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4321 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4322 nextafter): Add non-underscored stubs.
4323 * moldname-msvcrt.def: Regenerate.
4324 * moldname-crtdll.def: Regenerate.
4325 * mingwex/math: New directory.
4326 * mingwex/rint.c: Move to mingwex/math.
4327 * mingwex/rintf.c: Ditto.
4328 * mingwex/rintl.c: Ditto.
4329 * mingwex/round.c: Ditto.
4330 * mingwex/roundf.c: Ditto.
4331 * mingwex/roundl.c: Ditto.
4332 * mingwex/rint.c: Ditto.
4333 * mingwex/rintf.c: Ditto.
4334 * mingwex/rintl.c: Ditto.
4335 * mingwex/trunc.c: Ditto.
4336 * mingwex/truncf.c: Ditto.
4337 * mingwex/truncl.c: Ditto.
4338 * mingwex/signbit.c: Ditto.
4339 * mingwex/signbitf.c: Ditto.
4340 * mingwex/signbitl.c: Ditto.
4341 * mingwex/copysignl.S: Ditto.
4342 * mingwex/fdim.c: Ditto.
4343 * mingwex/fdimf.c: Ditto.
4344 * mingwex/fdiml.c: Ditto.
4345 * mingwex/fmin.c: Ditto.
4346 * mingwex/fminf.c: Ditto.
4347 * mingwex/fminl.c: Ditto.
4348 * mingwex/fmax.c: Ditto.
4349 * mingwex/fmaxf.c: Ditto.
4350 * mingwex/fmaxl.c: Ditto.
4351 * mingwex/fma.c: Ditto.
4352 * mingwex/fmaf.c: Ditto.
4353 * mingwex/fmal.c: Ditto.
4354 * mingwex/fpclassify.c: Ditto.
4355 * mingwex/fpclassifyl.c: Ditto.
4356 * mingwex/fpclassifyl.c: Ditto.
4357 * mingwex/isnan.c: Ditto.
4358 * mingwex/isnanf.c: Ditto.
4359 * mingwex/isnanl.c: Ditto.
4360 * mingwex/fucom.c: Ditto.
4361 * mingwex/fp_consts.c: Ditto. Split out float and long double
4363 * mingwex/math_stubs.c: Remove.
4364 * mingwex/log2.c: Remove. Replaced by math/log2.S
4365 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4366 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4367 * mingwex/math/acosf.c : New file.
4368 * mingwex/math/acosl.c: New file.
4369 * mingwex/math/asinf.c: New file.
4370 * mingwex/math/asinl.c: New file.
4371 * mingwex/math/atan2f.c: New file.
4372 * mingwex/math/atan2l.c: New file.
4373 * mingwex/math/atanf.c: New file.
4374 * mingwex/math/atanl.c: New file.
4375 * mingwex/math/cbrt.c: New file.
4376 * mingwex/math/cbrtf.c: New file.
4377 * mingwex/math/cbrtl.c: New file.
4378 * mingwex/math/ceilf.S: New file.
4379 * mingwex/math/ceill.S: New file.
4380 * mingwex/math/cephes_ld.h: New file.
4381 * mingwex/math/copysign.S: New file.
4382 * mingwex/math/copysignf.S: New file.
4383 * mingwex/math/cosf.S: New file.
4384 * mingwex/math/coshf.c: New file.
4385 * mingwex/math/coshl.c: New file.
4386 * mingwex/math/cosl.S: New file.
4387 * mingwex/math/exp2.S: New file.
4388 * mingwex/math/exp2f.S: New file.
4389 * mingwex/math/exp2l.S: New file.
4390 * mingwex/math/expf.c: New file.
4391 * mingwex/math/expl.c: New file.
4392 * mingwex/math/fabs.c: New file.
4393 * mingwex/math/fabsf.c: New file.
4394 * mingwex/math/fabsl.c: New file.
4395 * mingwex/math/floorf.S: New file.
4396 * mingwex/math/floorl.S: New file.
4397 * mingwex/math/fmodf.c: New file.
4398 * mingwex/math/fmodl.c: New file.
4399 * mingwex/math/fp_consts.h: Ditto.
4400 * mingwex/math/fp_constsf.c: Ditto.
4401 * mingwex/math/fp_constsl.c: Ditto.
4402 * mingwex/math/frexpf.c: New file.
4403 * mingwex/math/frexpl.S: New file.
4404 * mingwex/math/hypotf.c: New file.
4405 * mingwex/math/hypotl.c: New file.
4406 * mingwex/math/ilogb.S: New file.
4407 * mingwex/math/ilogbf.S: New file.
4408 * mingwex/math/ilogbl.S: New file.
4409 * mingwex/math/ldexpf.c: New file.
4410 * mingwex/math/ldexpl.c: New file.
4411 * mingwex/math/llrint.c: New file.
4412 * mingwex/math/llrintf.c: New file.
4413 * mingwex/math/llrintl.c: New file.
4414 * mingwex/math/llround.c: New file.
4415 * mingwex/math/llroundf.c: New file.
4416 * mingwex/math/llroundl.c: New file.
4417 * mingwex/math/log10f.S: New file.
4418 * mingwex/math/log10l.S: New file.
4419 * mingwex/math/log1p.S: New file.
4420 * mingwex/math/log1pf.S: New file.
4421 * mingwex/math/log1pl.S: New file.
4422 * mingwex/math/log2.S: New file.
4423 * mingwex/math/log2f.S: New file.
4424 * mingwex/math/log2l.S: New file.
4425 * mingwex/math/logb.c: New file.
4426 * mingwex/math/logbf.c: New file.
4427 * mingwex/math/logbl.c: New file.
4428 * mingwex/math/logf.S: New file.
4429 * mingwex/math/logl.S: New file.
4430 * mingwex/math/lrint.c: New file.
4431 * mingwex/math/lrintf.c: New file.
4432 * mingwex/math/lrintl.c: New file.
4433 * mingwex/math/lround.c: New file.
4434 * mingwex/math/lroundf.c: New file.
4435 * mingwex/math/lroundl.c: New file.
4436 * mingwex/math/modff.c: New file.
4437 * mingwex/math/modfl.c: New file.
4438 * mingwex/math/nearbyint.S: New file.
4439 * mingwex/math/nearbyintf.S: New file.
4440 * mingwex/math/nearbyintl.S: New file.
4441 * mingwex/math/nextafterf.c: New file.
4442 * mingwex/math/powf.c: New file.
4443 * mingwex/math/powl.c: New file.
4444 * mingwex/math/powil.c: New file.
4445 * mingwex/math/remainder.S: New file.
4446 * mingwex/math/remainderf.S: New file.
4447 * mingwex/math/remainderl.S: New file.
4448 * mingwex/math/remquo.S: New file.
4449 * mingwex/math/remquof.S: New file.
4450 * mingwex/math/remquol.S: New file.
4451 * mingwex/math/scalbn.S: New file.
4452 * mingwex/math/scalbnf.S: New file.
4453 * mingwex/math/scalbnl.S: New file.
4454 * mingwex/math/sinf.S: New file.
4455 * mingwex/math/sinhf.c: New file.
4456 * mingwex/math/sinhl.c: New file.
4457 * mingwex/math/sinl.S: New file.
4458 * mingwex/math/sqrt.c: New file.
4459 * mingwex/math/sqrtf.c: New file.
4460 * mingwex/math/sqrtl.c: New file.
4461 * mingwex/math/tanf.S: New file.
4462 * mingwex/math/tanhf.c: New file.
4463 * mingwex/math/tanhl.c: New file.
4464 * mingwex/math/tanl.S: New file.
4465 * mingwex/Makefile.in: Adjust VPATH for source files in
4468 Add MATH_DISTFILES and use it to build source distro.
4469 * include/math.h: Add protypes for new functions and
4470 reorganise to reflect ANSI,C99 status.
4472 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
4474 * include/tchar.h (_getts): Define as _getws for _UNICODE.
4475 (_putts): Define as _putws for _UNICODE.
4476 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
4478 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
4480 * include/float.h: #include_next<float.h> before header guard.
4482 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
4484 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
4486 * include/excpt.h (): Include windef.h not windows.h.
4487 * include/fcntl.h (_O_SHORT_LIVED): Add define.
4488 (_chmod): Add prototype.
4489 (_creat): Correct prototype.
4490 (SH_DENY*): Rename defines to _SH_DENY*.
4491 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
4492 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
4493 _IOAPPEND): Add defines.
4494 (_wfindfirst): Correct prototype.
4495 (_wfdopen): Add prototype.
4496 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
4498 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
4500 (_wcsdup): Correct prototype.
4501 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
4502 _mbsncat being in string.h.
4503 * include/wchar.h (_wfindfirst): Correct prototype.
4504 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
4506 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4508 * include/_mingw.h: Increment to version 2.1.
4509 * Makefile.in: Ditto.
4511 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4513 * Makefile.in (conf_prefix): New variable.
4514 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
4515 (bindist): Use dist_prefix.
4517 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
4519 * include/_mingw.h: Increment version to 2.0.
4520 * Makefile.in: Ditto.
4522 Merge in mingwex branch.
4524 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
4526 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
4527 * mingwex/fdim.c: New file.
4528 * mingwex/fdimf.c: New file.
4529 * mingwex/fdiml.c: New file.
4530 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
4532 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
4534 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
4536 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
4538 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
4540 * mingwex/isnanl.c: New file.
4542 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4544 * include/stdint.h: Include stddef.h to get
4546 (WINT_MAX): Define to ((wint_t)-1).
4548 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4550 * include/wctype.h: Replace 'inline' with '__inline__'.
4551 * include/inttypes.h: Likewise.
4553 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4555 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
4556 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
4558 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4560 * mingwex/snprintf.c: Split out vsnprintf to....
4561 * mingwex/vsnprintf.c: New file.
4562 * mingwex/snwprintf.c: Split out vsnwprintf to...
4563 * mingwex/vsnwprintf.c: New file.
4564 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
4566 2002-05-15 Pascal Obry <obry@gnat.com>
4568 * include/dirent.h (DIR): Change dd_stat type to int.
4571 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
4573 * include/stdio.h (vsnprintf): Change inline to __inline__;
4574 (vsnwprintf): Likewise.
4575 * include/wchar.h (vsnwprintf): Likewise.
4578 (mbsinit): Likewise.
4580 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
4582 Change FP default precison from 53 to 64-bit mantissa.
4584 * Makefile.in (CRT0S): Add CRT_fp8.o.
4585 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
4586 * include/float.h: Replace standard float.h defines with
4587 #include_next<float.h> to use GCC's defines. Adjust comments
4590 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4592 * include/dos.h: Change prefix "__imp_" to "_imp__" for
4593 __GNUC__ without __DECLSPEC_SUPPORTED.
4594 * include/fnctl.h: Likewise.
4595 * include/math.h: Likewise.
4596 * include/stdio.h: Likewise.
4597 * include/stdlib.h: Likewise.
4598 * include/time.h: Likewise.
4599 * include/wctype.h: Likewise.
4600 * include/ctype.h: Likewise.
4602 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4604 Add atexit support for dlls.
4605 * crt1.c (atexit): Force thunk to _imp__atexit.
4606 (_onexit): Force thunk to _imp___onexit.
4607 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4608 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4609 (__dll_exit): New function to run atexit-registered functions
4610 and flush output buffers on DLL_PROCESS_DETACH or failed
4612 (atexit): Force use of private atexit table via _dllonexit,
4613 (_onexit): New function. Force use of private atexit table via
4615 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4616 _imp_<_symbol> is visible in import lib.
4617 * msvcrt20.def: Likewise.
4618 * msvcrt40.def: Likewise.
4619 * crtdll.def: Likewise.
4621 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4623 * include/fenv.h: Change header guard macro to _FENV_H_.
4624 (fenv_t, fexcept_t): Move into block protected by
4626 Cleanup some whitespace.
4627 * include/inttypes.h: Change header guard macro to
4630 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4632 * include/math.h (copysignl): Declare.
4633 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4634 (MATHOBJS):Add copysignl.o.
4636 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4638 * include/math.h (__signbitl, __isnanl): Declare.
4640 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4642 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4643 roundl, truncl, fmal, log2l): Declare.
4644 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4645 || !defined __STRICT_ANSI__.
4646 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4647 * mingwex/fmin.c (fmin): Likewise.
4648 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4649 * mingwex/fminf.c (fminf): Likewise.
4650 * mingwex/fmaxl.c: New file.
4651 * mingwex/fminl.c: New file.
4652 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4653 * mingwex/fpclassifyf.c: New file.
4654 * mingwex/fpclassifyl.c: New file.
4655 * mingwex/rint.c (rintf): Split out to...
4656 * mingwex/rintf.c: New file.
4657 * mingwex/rintl.c: New file.
4658 * mingwex/round.c (roundf): Split out to...
4659 * mingwex/roundf.c: New file.
4660 * mingwex/roundl.c: New file.
4661 * mingwex/trunc.c (truncf): Split out to...
4662 * mingwex/truncf.c: New file.
4663 * mingwex/truncl.c: New file.
4664 * mingwex/signbit.c (signbitf): Split out to...
4665 * mingwex/signbitf.c: New file.
4666 * mingwex/signbitl.c: New file.
4667 * mingwex/fmal.c: New file.
4668 * mingwex/copysignl.S: New file.
4669 * mingwex/log2l.c: New file.
4670 * mingwex/fp_consts.c: Add nanl definition.
4671 Comment out unused constants.
4672 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4673 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4674 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4676 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4677 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4678 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4680 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4682 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4684 Make wide char versions of opendir and friends.
4686 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4688 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4689 _wseekdir): Add prototypes for wide versions of corresponding
4691 * include/tchar.h; Add _UNICODE mappings for dirent.h
4692 structures and functions.
4693 * mingwex/dirent.c: Make _UNICODE neutral.
4694 * mingwex/wdirent.c: New file to define _UNICODE before
4696 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4697 (POSIX_OBJS): Add wdirent.o.
4698 (wdirent.o): Specify dependency on dirent.c as well as
4700 * samples/dirent/wtest.c: New file, wide version of test.c.
4702 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4704 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4705 ensure gcc include dir is searched despite -nostdinc.
4706 * profile/Makefile.in (INCLUDES): Likewise.
4707 * mingwex/Makefile.in (INCLUDES): Likewise.
4708 * include/stdarg.h: Replace with stub that just guards the
4709 real gcc system header with #ifndef RC_INVOKED
4710 * include/varargs.h: Likewise.
4711 * include/stddef.h: Likewise.
4712 * include/stdio.h: Include stdarg.h after defining
4714 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4715 Replace va_list with __VALIST throughout.
4717 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4719 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4720 * msvcrt.def (_fpreset): Mark as DATA so that only
4721 _imp___fpreset is exported.
4722 * msvcrt20.def (_fpreset): Likewise.
4723 * msvcrt40.def (_fpreset): Likewise.
4724 * crtdll.def (_fpreset): Likewise.
4725 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4727 (fpreset): Add alias.
4728 (__CRT_PC): Delete definition. _fpreset does it now.
4729 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4730 (fpreset): Add alias.
4731 (__CRT_PC): Delete definition.
4732 * moldname.def.in: Comment out fpreset.
4733 * moldname-msvcrt.def: Regenerate.
4734 * moldname-crtdll.def: Regenerate.
4735 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4736 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
4737 with the _fpreset determined by startup CRT_fp object.
4739 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
4741 * CRT_fp8.c: New file.
4742 * CRT_fp10.c: New file.
4743 * crt1.c (__CRT_PC) Declare.
4744 (__CRT_fesetenv): New static function, using _CRT_PC.
4745 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
4746 (_gnu_exception_handler): Likewise.
4747 * Makefile.in (CRT0S): Add CRT_fp10.o.
4748 (MINGW_OBJS): Add CRT_fp8.o.
4749 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
4750 Add CRT_fp8.o, CRT_fp10.o dependancies.
4751 * include/float.h (_fpreset): Expand comment.
4752 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
4753 (extended precison) environmemt.
4754 (FE_PC53_ENV): New define for MSVCRT default environmemt.
4755 (FE_DFL_ENV): Define as FE_PC53_ENV.
4756 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
4757 precision control for default environment.
4759 * include/math.h: Fix long comment line.
4760 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
4762 * profile/configure: Regenerate.
4764 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
4766 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
4768 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
4770 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
4771 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
4772 (__mingw_fseek): New function to work around Win9x f/lseek bug.
4773 (__mingw_fwrite): Likewise.
4774 (__mingw_is_win9x): New helper function.
4776 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
4777 (__mingw_fseek): New prototype and define to replace fseek.
4778 (__mingw_fwrite): New prototype and define to replace fwrite.
4779 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
4780 * moldname-crtdll.def: Remove CR from end of line.
4781 * moldname-msvcrt.def: Ditto.
4783 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
4785 * profile/configure.in (CRT0S): Configure name of gcrt?.o
4786 based on target, building gcrt0.o for cygwin -mno-cygwin.
4787 * profile/configure: Regenerate.
4788 * profile/Makefile.in (CRT0S): Use name from configure.
4789 (gcrt0.o): New rule.
4790 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
4792 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4794 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
4795 _fpecode): Remove prototypes copied from float.h.
4796 (nan, nanf): Move into block protected against RC_INVOKED
4798 * include/stdlib.h (_Exit): Change from static inline to
4800 * mingwex/_Exit.c : New file.
4801 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
4803 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4805 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
4806 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
4807 (configdirs): Likewise.
4808 (LIBGMON_A): Define for cygwin target as well.
4809 * configure: Regenerate.
4810 * profile/configure.in (THREAD_DLL): Remove define.
4811 (LIBM_A): Remove define.
4812 (LIBGMON_A): Define for cygwin target as well.
4813 * profile/configure: Regenerate.
4814 * profile/makefile.in (install): Install to inst_libdir and
4816 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
4817 (OPTFLAGS): New define.
4818 (ALL_CFLAGS): Add $(OPTFLAGS).
4819 (ALL_CXXFLAGS): Same.
4820 (.c.o:): Remove ALL_CXXFLAGS.
4822 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4824 * include/stdint.h: Add missing newline at eof.
4825 * include/stdio.h (snprintf): Add prototype.
4826 (vsnprintf): Add prototype and inline definition.
4827 (snwprintf): Add prototype.
4828 (vsnwprintf): Add prototype and inline definition.
4829 * include/wchar.h (snwprintf): Add prototype.
4830 (vsnwprintf): Add prototype and inline definition.
4831 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
4833 * mingwex/snprintf.c: New file.
4834 * mingwex/snwprintf.c: New file.
4836 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
4838 * configure.in: Add mingwex as SUBDIRS and configdirs.
4839 * configure: Regenerate.
4840 * Makefile.in (MINGW_OBJS): Remove dirent.o.
4841 (SRC_DIST_FILES): Remove dirent.c.
4843 * include/stdlib.h (_Exit): Add static inline
4845 (struct lldiv_t): Define.
4846 (lldiv): Add prototype.
4847 (llabs): Add extern inline function.
4848 (strtoll,strtoull): Add prototypes.
4849 (wcstol, wcstoul, wcstod): Group together.
4850 (strtof, wcstof): Add extern inline definitions.
4851 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
4852 and extern inline definitions.
4853 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
4854 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
4856 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
4857 (wcstof): Add extern inline definition.
4858 * include/math.h (nan, nanf): Add prototypes.
4859 (NAN, INFINITE): Define constants.
4860 (fpclassify, isnan ,signbit): Add macros and supporting float
4861 and double functions.
4862 (isfinite, isinf, isnormal): Add macros.
4863 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
4865 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
4866 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
4867 (copysign, logb, nextafter, scalb): Add prototypes and
4868 inline stubs for underscored versions in msvcrt.dll.
4869 * include/inttypes.h: New file.
4870 * include/fenv.h: New file
4872 Add new mingwex subdir and files.
4873 * mingwex: New directory.
4874 * mingwex/Makefile.in: New file.
4875 * mingwex/configure.in: New file.
4876 * mingwex/configure: Generate.
4877 * mingwex/dirent.c: Moved here from parent dir.
4878 * mingwex/atoll.c: New file.
4879 * mingwex/feclearexcept.c: New file.
4880 * mingwex/fegetenv.c: New file.
4881 * mingwex/fegetexceptflag.c: New file.
4882 * mingwex/fegetround.c: New file.
4883 * mingwex/feholdexcept.c: New file.
4884 * mingwex/feraiseexcept.c: New file.
4885 * mingwex/fesetenv.c: New file.
4886 * mingwex/fesetexceptflag.c: New file.
4887 * mingwex/fesetround.o: New file.
4888 * mingwex/fetestexcept.c: New file.
4889 * mingwex/feupdateenv.c: New file.
4890 * mingwex/fma.S: New file.
4891 * mingwex/fmaf.S: New file.
4892 * mingwex/fmax.c: New file.
4893 * mingwex/fmaxf.c: New file.
4894 * mingwex/fmin.c: New file.
4895 * mingwex/fminf.c: New file.
4896 * mingwex/fp_consts.c: New file.
4897 * mingwex/fpclassify.c: New file.
4898 * mingwex/fucom.c: New file.
4899 * mingwex/fwide.c: New file.
4900 * mingwex/imaxabs.c: New file.
4901 * mingwex/imaxdiv.c: New file.
4902 * mingwex/isnan.c: New file.
4903 * mingwex/isnanf.c: New file.
4904 * mingwex/lltoa.c: New file.
4905 * mingwex/lltow.c: New file.
4906 * mingwex/log2.c: New file.
4907 * mingwex/log2f.c: New file.
4908 * mingwex/math_stubs.c: New file.
4909 * mingwex/mbsinit.c: New file.
4910 * mingwex/rint.c: New file.
4911 * mingwex/round.c: New file.
4912 * mingwex/signbit.c: New file.
4913 * mingwex/sitest.c: New file.
4914 * mingwex/strtof.c: New file.
4915 * mingwex/strtoimax.c: New file.
4916 * mingwex/strtoumax.c: New file.
4917 * mingwex/testwmem.c: New file.
4918 * mingwex/trunc.c: New file.
4919 * mingwex/ulltoa.c: New file.
4920 * mingwex/ulltow.c: New file.
4921 * mingwex/wcstof.c: New file.
4922 * mingwex/wcstoimax.c: New file.
4923 * mingwex/wcstoumax.c: New file.
4924 * mingwex/wmemchr.c: New file.
4925 * mingwex/wmemcmp.c: New file.
4926 * mingwex/wmemcpy.c: New file.
4927 * mingwex/wmemmove.c: New file.
4928 * mingwex/wmemset.c: New file.
4929 * mingwex/wtoll.c: New file.
4931 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4933 * include/mbstring.h: New file.
4934 * include/mbctype.h: New file.
4936 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4938 * include/tchar.h (__TEXT): Make same as define in
4939 w32api/include/winnt.h.
4941 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4943 * include/tchar.h (_tputenv): Add UNICODE mappings.
4944 (_tsearchenv): Likewise.
4945 (_tmakepath): Likewise.
4946 (_tsplitpath): Likewise.
4947 (_tfullpath): Likewise.
4949 2002-04-18 Pascal Obry <obry@gnat.com>
4951 * dirent.c (opendir): Convert given pathname to
4954 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4956 * include/_mingw.h: Increment version.
4957 * Makefile.in: Ditto.
4959 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4961 * moldname-crtdll.def: Remove CR from end of line.
4962 * moldname-msvcrt.def: Ditto.
4963 * Makefile.in: Use bzip2 compression for Cygwin target.
4965 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
4967 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
4968 TLOSS, PLOSS): Move oldname defines back, following
4969 the underscored names.
4971 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
4973 * include/stdio.h (_snwprintf): Correct spelling.
4974 (_vsnwprintf): Likewise.
4975 * include/wchar.h (_snwprintf): Correct spelling.
4976 (_vsnwprintf): Likewise.
4978 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
4980 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
4981 (wpopen): Add if !(__CRTDLL__).
4982 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
4984 (moldname-crtdll.def rule): Likewise.
4985 * moldname-msvcrt.def: Regenerate.
4986 * moldname-crtdll.def: Regenerate.
4987 * include/stdio.h (wpopen):Use prototype, not a define.
4988 (_swnprintf): Add prototype.
4989 (_vswnprintf): Likewise.
4991 * include/wchar.h (_swnprintf): Add prototype.
4992 (_vswnprintf): Likewise.
4995 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
4997 * include/malloc.h (_heapinfo): Correct structure definition.
4998 (_USEDENTRY,_FREEENTRY): Add defines.
4999 Add comment on platform support for _heap* functions.
5000 (_get_sbh_threshold): Add prototype.
5001 (_set_sbh_threshold): Likewise.
5002 (_expand): Likewise.
5004 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5006 * profile/profil.c: Update copyright info.
5007 * profile/profil.h: Likewise.
5008 * profile/gcrt0.c: Likewise.
5010 2002-01-25 Pascal Obry <obry@gnat.com>
5012 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5014 * profile/gmon.c: Define bzero as memset if mingw32.
5015 (monstartup): Use it.
5017 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5019 * include/tchar.h (_TCHAR): Add missing ;.
5021 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5023 * include/tchar.h (_TCHAR): Add typedefs.
5025 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5027 * include/stdlib.h (_onexit_t): Add typedef.
5028 (_onexit): Add prototype.
5030 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5032 * msvcrt.def: Revert accidental change.
5033 * include/stdlib.h: Ditto.
5035 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5037 * Makefile.in: Increment VERSION.
5038 * include/_mingw.h: Ditto.
5040 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5042 * include/strings.h: New File.
5044 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5046 * include/math.h (_FPCLASS* ): Add defines from float.h.
5047 (IEEE recommended functions): Add declarations from float.h.
5048 * include/float.h (_FPCLASS* ): Protect against redefinition.
5050 2001-11-29 Wu Yongwei <adah@netstd.com>
5052 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5053 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5054 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5055 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5056 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5057 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5058 Correct spelling of "disclaimed" in comments.
5059 * include/excpt.h: Another spelling correction.
5061 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5063 * include/errno.h: Fix "errno is not a prototype" warning.
5065 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
5067 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
5068 differences between ANSI and non-ANSI versions.
5069 (_ctype[],_pctype): Declare vars.
5070 (__ISCTYPE): New helper macro using _pctype.
5071 (is* ctype functions): Use __ISCTYPE to define inline versions.
5072 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
5074 (isw* ctype functions): Inline definitions.
5075 * include/wctype.h (_ctype[],_pctype): Declare vars.
5076 (isw* ctype functions): Inline definitions.
5079 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5081 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
5082 __fpecode): Use __STDC__ prototypes.
5085 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
5087 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
5088 * mthr_init.c (DllMain) Run dtors if a process terminates.
5089 * mthr.c (__mingwthr_add_key_dtor) Removed.
5090 (___mingwthr_add_key_dtor) New.
5091 (___mingwthr_remove_key_dtor) New.
5092 (__mingwthr_run_key_dtors) Complete rewrite.
5093 (__mingwthr_remove_key_dtor) New.
5095 2001-11-05 Egor Duda <deo@logos-m.ru>
5097 * Makefile.in: Delete unused executable after creating base-files.
5099 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5101 * include/errno.h (_errno): Use __STDC__ prototype.
5102 Thanks to: Jim Barton.
5104 2001-11-04 "stefan" <stefan@lkcc.org>
5106 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
5108 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5110 * include/io.h (_commit): Add declaration.
5111 Thanks to: "stefan" <stefan@lkcc.org>
5113 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5115 * include/sys/stat.h: Make S_IS* macros safer.
5117 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
5119 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
5121 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5123 * include/stdlib.h (__p__environ, __p__wenviron): Use
5124 __STDC__ prototypes.
5126 2001-09-19 Earnie Boyd <earnie@SF.net>
5128 * Makefile.in: Remove the /usr from the install target.
5129 (VERSION): Increment.
5130 include/_mingw.h: Ditto.
5132 2001-09-17 Earnie Boyd <earnie@SF.net>
5134 * Makefile.in: Increment version.
5135 * include/_mingw.h: Ditto.
5137 2001-09-10 Earnie Boyd <earnie@SF.net>
5139 * dossh: Remove inadvertantly imported file.
5141 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5143 * dirent.c (opendir): Use GetFileAttributes rather than stat
5144 to determine if input arg is dir.
5146 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
5148 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5150 * include/varargs.h (va_list): Ditto.
5151 * include/stdio.h (va_list): Ditto.
5153 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5155 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5156 * include/stdio.h (_IORW): Change constant to 0x0080.
5157 (TMP_MAX): Add new define.
5159 (_wP_tmpdir): Ditto.
5160 (L_tmpnam): Change constant to 16.
5162 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
5164 * include/malloc.h: Fix non-ANSI comment after #endif.
5166 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5168 * profile/configure.in: Make msvcrt.dll version default.
5169 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
5170 * provile/configure: Regenerate.
5172 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
5174 * include/stdio.h (swscanf): Make first arugument const.
5175 * include/wchar.h (swscanf): Ditto.
5176 * include/tchar.h (_tfopen): New _UNICODE define.
5178 (_tsetlocale): Ditto.
5180 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5182 * profile/Makefile.in (mkinstalldirs): Correct relative path.
5184 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5186 * include/_mingw.h: Change version to 1.0.
5189 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
5191 * include/tchar.h: (__TEXT): Remove undef.
5195 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5197 * include/tchar.h: (__TEXT): Add private macro.
5198 (_TEXT): Modify definition to use __TEXT.
5200 This change allows the passing of a MACRO as an argument and have that
5201 MACRO resolved first.
5202 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5204 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5206 * Makefile.in: Increment version to 0.5
5207 * include/_mingw.h: Increment minor version
5209 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5211 * include/assert.h: (assert): Remove ; from end of definition
5212 Thanks to: AJ Reins <tbisp@qwest.net>
5214 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5216 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5217 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5219 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5221 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5223 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5225 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5226 are actually C functions. These functions are resolved via the
5227 -lmsvcp60 library and comments were placed in the header.
5229 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5231 * include/stdlib.h (__p__pgmptr): add prototype.
5232 (__p__wpgmptr): likewise.
5233 (_pgmptr_dll): move declaration from dos.h.
5234 (_wpgmptr_dll): likewise.
5235 (_pgmptr): conditional define (MSVCT/CRTDLL).
5236 (_wpgmptr): likewise.
5237 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5238 (_os*_dll variables): likewise.
5239 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5240 (_wpgmptr_dll): likewise.
5242 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5244 * include/stdint.h: New file.
5246 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5248 * include/wchar.h: Protect prototypes only declared in the C++ STL
5249 from being declared unless __cplusplus is defined.
5251 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5253 * include/stdlib.h: Apply Danny Smith patch 102730
5254 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5255 (_wgetenv) Correction to return type.
5257 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5259 * include/locale.h: Apply Danny Smith patch 101834
5260 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5261 (LC_MIN) Add definition.
5263 (_wsetlocale) Add prototype.
5265 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5267 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5268 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5269 Create a libcoldname.a for the oldname library for CRTDLL.
5270 Restrict libmoldname.a for the oldname library for MSVCRT.
5271 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5272 Restructure the $target_os case logic.
5273 Always name the MinGW thread dll helper mingwm.
5274 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5275 * configure: regenerate.
5277 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5279 * Makefile.in: Fix bindist target to distribute the correct files.
5280 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5281 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5283 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5285 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5286 Add variables and targets to control binary and source distributions.
5287 Add variables and targets to control snapshot distribution.
5288 * profile/gmon.h: Add missing #endif for #ifndef.
5289 * profile/ChangeLog: Merge entries here and remove.
5290 * profile/Makefile.in: Add variables and targets to control
5294 * config.guess: ditto.
5295 * config.sub: ditto.
5296 * mkinstalldirs: ditto.
5297 * install-sh: ditto.
5298 * configure: regenerate.
5299 * profile/configure: ditto.
5301 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5303 * Merge in changes from
5304 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5305 * include/direct.h: add guard around MSVCRT-only prototytpes
5306 * include/io.h: add __int64 struct definitions and function prototypes;
5307 add guard for MSVCRT-only prototypes
5308 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5309 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5310 put wchar functions together to make sync with wchar.h easier
5311 * include/stdlib.h: add wide char functions (__MSVCRT__)
5312 * include/string.h: add string collation functions ( __MSVCRT__)
5313 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5314 * include/tchar.h: add macros and macro function definitions
5315 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5316 enclose more functions in __MSVCRT__ guard;
5317 some oldname wide char function prototypes #if (0)'d
5318 * profile/gmon.h: add guard around BSD-ish typedefs
5320 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5322 * Makefile.in: Use a different variable name for subdirectory since the
5323 previous one was used by the top level make.
5325 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5327 * Makefile.in: Install mingw stuff in a subdirectory if building under
5330 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5332 * Makefile.in (subdirs): Eliminate for loop.
5334 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5336 * Makefile.in (subdirs): Previous change did not fix problem in
5339 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5341 * Makefile.in: Avoid installing dll if we're cross building and the
5342 cross-host system isn't a Windows system.
5343 * configure.in: Detect cross-hosting situation and set appropriate
5344 variables in Makefile.in.
5345 * configure: Regenerate.
5347 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5349 * configure.in: Change HEADER_SUBDIR to mingw32.
5350 * configure: Regenerate.
5352 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5354 * include/string.h: Use proper prototype for _strerror.
5356 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5358 * Makefile.in (subdirs): Workaround for broken shells.
5360 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5362 * Snapshot 2000-02-03.
5364 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5365 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5366 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5367 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5370 * Makefile.in (all): Build CRT0S first.
5371 (libmingwthrd.a): Remove thread support DLL from dependency.
5373 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5375 * Snapshot 2000-01-21.
5377 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5379 Merge in changes from Cygwin:
5380 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5381 (SUBDIRS): Likewise.
5382 * Makefile.in (HEADER_SUBDIRS): New variable.
5383 (install): Use to install Mingw headers to a subdirectory if building
5385 (DLL_CC_STUFF): Add DLL entry point.
5386 * configure: Regenerate.
5388 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5390 * include/stdio.h (fsetpos): Fix prototype.
5391 (fpos_t): Fix for MSVCRT.
5392 * include/float.h (fpreset): Add prototype.
5393 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5395 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5396 export using libmoldname.a.
5397 * crtdll.def: Add DATA tags.
5398 * msvcrt.def: Likewise.
5399 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5400 both MSVCRT and CRTDLL.
5401 * moldname-crtdll.def: Regenerate.
5402 * moldname-msvcrt.def: Regenerate.
5404 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5406 * Snapshot 1999-12-21.
5408 * include/wctype.h: New file.
5409 * include/ctype.h (MB_CUR_MAX): Define.
5411 * include/stdlib.h (MB_CUR_MAX): Define.
5412 * include/wchar.h: Define stat, _stat structures here as well.
5413 * include/float.h: Add invalid subconditions (_SW) and floating
5414 point error (_FPE) macros.
5415 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5416 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5417 * include/sys/types.h: Likewise.
5419 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5421 * profile/profil.c (profile_on): Set the profiler thread priority to
5422 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5423 * Snapshot 1999-11-18.
5425 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5427 Released 1999-11-07.
5429 * Makefile.in (CRT0S): Add crtst.o.
5430 (install): Install in subdirs as well.
5431 * dirent.h (struct _stat): Rename from struct stat.
5432 * include/tchar.h: Add some new macros. Thanks to
5433 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5434 * profile/Makefile.in (install): Fix target.
5436 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5438 * Makefile.in: Add support for profile directory.
5439 * configure.in: Likewise.
5440 * configure: Regenerate.
5442 * profile: Imported profiling sources from winsup-19991026 snapshot.
5443 * profile/Makefile.in: New file.
5444 * profile/configure.in: New file.
5445 * profile/configure: Generate.
5446 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5447 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5448 * profile/gmon.c (unistd.h): Include conditionally.
5449 (sys/param.h): Likewise.
5450 * profile/mcount.c (sys/param.h): Likewise.
5451 * profile/profil.c (profile_on): thread id is DWORD, not int.
5454 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5456 * include/stdlib.h: Add wide character version of argv/environ.
5458 * include/wchar.h: More wide character prototypes.
5459 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
5461 * dllcrt1.c (init.c): Don't include.
5462 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
5463 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
5465 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
5467 * moldname.def: Remove file.
5468 * moldname.def.in: And add this.
5469 * moldname-msvcrt.def: Generate from moldname.def.in.
5470 * moldname-crtdll.def: Likewise.
5472 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
5473 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
5474 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
5476 * Makefile.in: Update.
5477 * configure.in: Likewise. Also add *cygwin* target for building
5478 under Cygwin winsup.
5479 * configure: Regenerate.
5481 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
5483 * include/_mingw.h: Add version macros.
5484 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
5485 Also add wide character versions shared with wchar.h.
5486 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
5487 * include/io.h (sopen, _sopen): Fix prototype.
5488 Add wide character prototypes.
5489 * include/wchar.h: Likewise.
5490 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
5491 underscored versions. Potential incompatibility.
5492 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
5493 Add wide character prototypes.
5494 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
5497 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
5499 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
5500 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
5502 * configure: Rengerate.
5503 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
5504 dll name and crt's. CRTDLL and MSVCRT are meant to created
5505 separately, so remove all the *-msvcrt* targets.
5506 (libmingwthr.a): New target. Dummy thread support archive.
5507 (LIBS): Add libmingwthr.a.
5508 (CRT0S): Use CRT_ID. Add crtmt.o.
5509 (MINGW_OBJS): Add crtst.o.
5510 * main.c (WinMain): Fix prototype.
5511 * crtmt.c: New file.
5512 * crtst.c: New file.
5514 * include/process.h (_beginthreadex): Fix prototype.
5515 * include/_mingw.h (__int64): Define for __GNUC__.
5516 * include/tchar.h (_ttol): Add macro.
5517 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
5518 _i64tow, _ui64tow, _wtoi64): Add prototypes.
5520 Reported by Emanuele Aliberti <ea@iol.it>:
5521 * include/tchar.h (_ttoi): Add macro.
5523 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
5524 * include/stdio.h (_snprintf): Add prototype.
5525 (_vsnprintf): Likewise.
5527 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
5529 Reported by Tor Lillqvist <tml@iki.fi>:
5530 * include/stdlib.h (__p___argv): Fix return type.
5532 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5535 * include/errno.h (errno): It's linked in from startup, not imported.
5536 * include/stdlib.h (errno): Likewise.
5537 * include/io.h: Guard against conflicting macros and prototypes in
5539 * include/stdlib.h: Likewise.
5540 * include/string.h: Likewise.
5541 * include/time.h: Likewise.
5543 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5545 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
5546 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
5547 * Makefile.in (INCLUDES): Remove old windows32 include directory.
5549 * crt1.c (_gnu_exception_handler): Fix prototype.
5550 (__mingw_CRTStartup): New function based on mainCRTStartup.
5551 (mainCRTStartup): Set the app type for MSVCRT and call
5553 (WinMainCRTStartup): Likewise.
5554 * init.c (_startupinfo): Define.
5555 (_getmainargs): Add 5th parameter.
5556 (_mingw32_init_mainargs): Use.
5558 * ALL *.c files: Reformat according to GNU coding style.
5560 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
5562 * Makefile.in (INCLUDES): Add w32api include directory.
5564 * include/_mingw.h: New file.
5565 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
5566 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
5567 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
5568 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
5569 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
5570 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
5572 * include/stdlib.h (atexit): Fix prototype.
5574 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
5576 * include/stdio.h (_tempnam): Fix prototype.
5577 (tempnam): Likewise.
5578 * include/stdlib.h: Replace with GCC's version, and guard
5581 From Anders Norlander <anorland@hem2.passagen.se>:
5582 * include/stdlib.h (__argc): Declare.
5585 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
5587 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
5589 * Makefile.in (_libm_dummy.o): New target.
5592 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
5594 * Released 1999-03-16 along with egcs-1.1.2.
5596 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
5598 * Makefile.in (LIBS): Add libm.a.
5599 (libm.a): Dummy libm.a.
5601 * Makefile.in: Update from winsup 1999-02-08 snapshot.
5602 Preserve local changes.
5603 (mkinstalldirs): In ../, not ../../.
5604 (INCLUDES): Point to local windows32api headers and use -nostdinc.
5606 (LIBS): Add libmoldname-msvc.a.
5607 (libmoldname-msvc.a): Add target.
5608 (distclean): Add target.
5610 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5612 * include/dir.h: Reintroduce as an obsolescent header.
5613 * crt1.c (signal.h): Include.
5614 (_gnu_exception_handler): New function to properly handle win32
5615 asynchronous signals.
5616 (mainCRTStartup): Use.
5618 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5620 * include/direct.h: Include io.h instead of dir.h
5621 * include/dirent.h: Likewise.
5622 * include/dos.h: Likewise.
5623 * include/stdio.h: Replace reference to dir.h with io.h.
5625 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5627 * 1999-01-01 release bundled with egcs-1.1.1.
5629 * include/io.h: Incorporate dir.h.
5630 * include/dir.h: Remove.
5631 * include/signal.h: Move RC_INVOKED up a bit.
5633 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5635 * include/signal.h (sig_atomic_t): Define.
5637 * include/malloc.h: Import defs from deprecated alloc.h.
5638 * include/alloc.h: Remove.
5640 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5641 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5642 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5643 _off_t instead of long for st_size.
5645 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5647 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5648 * include/stdlib.h: Here.
5650 * include/netdb.h: Remove.
5651 * include/arpa/inet.h: Remove.
5652 * include/netinet/in.h: Remove.
5653 * include/sys/socket.h: Remove.
5655 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5659 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5660 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5662 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5664 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5665 (jmpbuf): typedef using above.
5666 (setjmp, longjmp): Prototype using jmpbuf.
5668 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5669 obsolescent imported names, ie., from __imp__ to _imp___.
5671 Also ignored empty include/sys/param.h and incorrect
5672 include/sys/times.h.
5674 * CRTinit.c: New file.
5675 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5677 * include/io.h (umask): Fix prototype.
5678 * include/stdlib.h (OS constants): Replace with Colin's.
5679 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5680 * include/sys/state.h: Merge.
5682 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5684 * include/assert.h (assert): Lose the trailing semicolon.
5686 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5688 * include/math.h (matherr): Declare.
5689 * include/stdio.h (fileno, _fileno): Declare.
5690 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5693 * include/stdio.h (fdopen, _fdopen): Add const.
5694 (getw, putw): Declare.
5695 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5697 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5699 * include/time.h (_timezone): Undefine.
5700 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5702 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5704 * include/stdlib.h (environ): Use DLL version.
5705 * init.c (environ): Undefine it before use.
5707 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5709 * Update to 980309 snapshot from Colin Peters.
5711 * include/utime.h: remove
5712 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5713 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5714 patches to define these.
5715 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5716 (_daylight, _timezone, _tzname, _tzset): Define.
5718 * include/netdb.h: Add from Colin's windows32api changes.
5719 * include/sys/socket.h: Likewise.
5720 * include/arpa/inet.h: Likewise.
5721 * include/netinet/in.h: Likewise.
5723 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5725 * Update to 980128 snapshot from Colin Peters.
5727 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5729 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5731 * configure: Regenerate.
5733 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5735 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5736 Files renamed and include hierarchy loses directories named
5739 * include/dos.h: from Jan-Jaap.
5741 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
5743 Changes to conform to FSF tree.
5745 * crt1.c: Renamed from mcrt0.c.
5746 * dllcrt1.c: Renamed from dllcrt0.c.
5747 * Makefile.in: Update above. Also renamed libmoldnames.a to
5750 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
5752 * crtdll.def: Export all functions but the ones with funny names.
5753 * moldnames.def: Add fdopen since fileno is already there.
5754 * include/nonansi/dos.h: New file from Jan-Jaap.
5755 * include/errno.h: Add extern decl + various additions from JJ.
5756 * include/stdio.h: Likewise.
5757 * include/stdlib.h: Likewise.
5758 * include/nonansi/io.h: Likewise.
5759 * include/nonansi/process.h: Likewise.
5760 * include/sys/types.h: Likewise.
5762 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5764 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5766 * include/stdlib.h (free): Fix prototype to return void, not void*.
5767 * include/nonansi/process.h: Add P_* and WAIT_* defs.
5769 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
5770 * mcrt0.c: Likewise.
5772 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
5773 (libmoldnames.a): Add explicit rule to create it.
5775 1997-08-15 Rob Savoye <rob@cygnus.com>
5777 New directory for the minimalist cygwin environment.
5779 * crtglob.c: New file. Turn on file globbing support.
5780 * crt_noglob.c: New file. Turn off file globbing support.
5781 * ctype_old.c: New file. Wrappers for functions that don't
5783 * dirent.c: New file. Directory routines readdir, opendir, closedir.
5784 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
5785 * dllmain.c: New file. A stub DllMain function.
5786 * hugeval.c: New file. A gross hack to define HUGE_VAL.
5787 * init.c: New file. Common code to initialize standard file
5788 handles and command line arguments.
5789 * main.c: New file. A main for programs that only call WinMain.
5790 * mcrt0.c: New file. Default crt0 for mingw32.
5791 * oldnames.c: New File. Wrappers for functions that don't
5793 * string_old.c: New File.
5794 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
5795 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
5796 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
5797 * include/sys/types.h: New header file for mingw.
5798 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
5799 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
5800 utime.h,values.h,varargs.h}: New header files for mingw.
5801 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
5802 timeb.h,unistd.h}: New header files for mingw.
5803 * Makefile.in,configure.in: Build and configure support.
5804 * configure: Generated from autoconf 2.12 with Cygnus patches.