1 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Make resetting of __need_typedef requests more robust.
5 * include/sys/types.h [__need_off_t, __need___off64_t]
6 [__need_ssize_t, __need_time_t]: Move corresponding #undef out of, and
7 after the respective conditional blocks, which provide each associated
8 typedef, so ensuring that any repeat request is properly reset.
10 * include/time.h [__need_time_t]: Always delegate to <sys/types.h> for
11 typedef, and reset of request, even in cases where...
12 [_TIME_H]: ...this is already defined.
14 2016-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
16 Add a missing comment terminator.
18 * include/io.h [!(defined _IO_H && defined _WCHAR_H)]: Properly
19 terminate the comment annotating the closing #endif statement.
21 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
23 Declare <dir.h> as formally deprecated.
25 * include/dir.h: Assert copyright.
26 (pragma GCC system_header): Declare it.
27 (_DIR_H): Define as multiple inclusion macro.
28 [!_DIR_H]: Emit "obsolete header" warning message.
30 2016-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
32 Factor out <wchar.h> vs. <io.h> duplicate declarations.
34 * include/io.h: Assert copyright; tidy layout.
35 (_IO_H_): Rename this multiple inclusion guard macro...
36 (_IO_H): ...to this preferred form; do not define it when...
37 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
38 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
39 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
40 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
41 (_wfindnext64i32, _wfindfirst32, _wfindnext32, _findclose): ...only
42 these function prototypes, common to <wchar.h>, together with...
43 (_fsize_t, struct _wfinddata_t, struct _wfinddatai64_t)
44 (struct __wfinddata64_t, struct _wfinddata64i32_t)
45 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these
46 requisite data type definitions.
47 (pragma GCC system_header): Declare it.
48 (__need_intptr_t): Define, and include <stdint.h> to get...
49 (intptr_t): ...this typedef; neither define it locally, nor define...
50 (_INTPTR_T_DEFINED): ...this; delete all references.
51 (_FSIZE_T_DEFINED): Do not define it; delete all references; rather...
52 [!(defined _IO_H && defined _WCHAR)] (_fsize_t): Define it.
53 (FILENAME_MAX): Define it unconditionally.
54 (__struct_finddata_t): New temporary macro; define and use it to...
55 (struct _finddata_t, struct _wfinddata_t, struct _finddatai64_t)
56 (struct _wfinddatai64_t, struct __finddata64_t, struct __wfinddata64_t)
57 (struct _finddata64i32_t, struct _wfinddata64i32_t)
58 (struct _finddata32i64_t, struct _wfinddata32i64_t)
59 (struct __finddata32_t, struct __wfinddata32_t): ...define these.
61 * include/wchar.h (_WFINDDATA_T_DEFINED): Do not define it; delete all
62 references; filter out associated data type definitions, namely...
63 (struct _wfinddata_t, struct _wfinddatai64_t): ...these, and also...
64 (struct __wfinddata64_t, struct _wfinddata64i32_t): ...these, and...
65 (struct _wfinddata32i64_t, struct __wfinddata32_t): ...these.
66 (_WIO_DEFINED): Likewise, do not define it; delete all references;
67 filter out associated function prototype declarations for all of...
68 (_waccess, _wchmod, _wcreat, _wopen, _wsopen, _wunlink, _wmktemp)
69 (_wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, _wfindfirsti64)
70 (_wfindnexti64, _wfindfirst32i64, _wfindnext32i64, _wfindfirst64i32)
71 (_wfindnext64i32, _wfindfirst32, _wfindnext32): ...these; reproduce
72 them by selective inclusion of <io.h>.
74 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
76 Factor out <wchar.h> vs. <process.h> duplicate declarations.
78 * include/process.h: Assert copyright; tidy layout.
79 (_PROCESS_H_): Rename this multiple inclusion guard macro...
80 (_PROCESS_H): ...to this preferred form; do not define it when...
81 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
82 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
83 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
84 (_wspawnve, _wspawnvp, _wspawnvpe): ...only these functions.
85 [!__WCHAR_H_SOURCED__] (_PROCESS_H): Define it; declare all functions
86 normally specified herein, including those listed above, as required.
87 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
88 (__need_intptr_t): Define it prior to including <stdint.h>.
89 (pragma GCC system_header): Declare it.
91 * include/wchar.h (_WPROCESS_DEFINED): Delete it; filter out...
92 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
93 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
94 (_wspawnve, _wspawnvp, _wspawnvpe): ...these function prototypes;
95 reproduce them, by selective inclusion of <process.h>.
97 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
99 Enable selective retrieval of intptr typedefs from <stdint.h>.
101 * include/stdint.h: Assert copyright; tidy layout.
102 [__need_intptr_t || __need_uintptr_t] (_STDINT_H): Do not define it;
103 conceal all normally defined data types, except either or both of...
104 [__need_intptr_t] (intptr_t): ...this, and/or...
105 [__need_uintptr_t] (uintptr_t): ...this.
106 (pragma GCC system_header): Declare it.
108 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
110 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
112 * include/sys/stat.h: Assert copyright; tidy layout.
113 (pragma GCC system_header): Declare it.
114 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
115 (_SYS_STAT_H): ...this preferred naming convention; however, when...
116 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
117 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
118 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
119 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
120 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
121 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
122 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
123 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
124 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
125 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
126 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
127 (__struct_stat_defined): New macro; define, and use it to define...
128 (struct stat, struct _stat, struct _stati64, struct __stat64)
129 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
130 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
131 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
132 definition of types size_t and wchar_t; declare all header content,
133 including that declared when __WCHAR_H_SOURCED__ is defined, unless
134 already declared as a result of selective inclusion by <wchar.h>
135 (__need_size_t, __need_wchar_t): Do not define them; consequently,
136 there is no need to include <stddef.h>; do not do so.
138 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
139 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
140 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
141 (struct _stat64i32): Likewise; reproduce them by selective inclusion
144 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
146 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
148 * include/direct.h: Conditionally partition it, such that...
149 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
150 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
151 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
152 (_WDIRECT_DEFINED): Never define it; delete all references.
154 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
155 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
156 selectively #include <direct.h> to reproduce them.
158 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
160 Factor out <direct.h> vs. <dos.h> duplicate declarations.
162 * include/dos.h: Assert copyright; tidy layout.
163 (pragma GCC system_header): Declare it.
164 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
165 (_DOS_H): ...this preferred convention; do not define it when...
166 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
167 (struct _diskfree_t): ...this aggregate data type, together with...
168 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
169 (_getdiskfree): ...this associated function.
170 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
171 emit a warning that this header is obsolete, and should not be used.
172 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
173 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
174 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
175 neither is it necessary to #include <stddef.h>; do not do so. Also,
176 do not #include <_mingw.h> explicitly, but always #include <io.h>,
177 which will implicitly #include <_mingw.h> anyway.
179 * include/direct.h: Assert copyright; tidy layout.
180 (pragma GCC system_header): Declare it.
181 (_DIRECT_H_): Rename this multiple inclusion guard macro...
182 (_DIRECT_H): ...to adopt this preferred naming convention.
183 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
184 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
185 (_getdiskfree): Likewise, do not declare prototype; instead...
186 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
187 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
188 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
189 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
190 although needed, we may inherit it indirectly from <sys/types.h>,
191 included by <io.h> via <dos.h>.
193 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
195 Evade CPP mismatched apostrophe warnings in windres comments.
197 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
199 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
201 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
203 * include/locale.h: Assert copyright; tidy layout.
204 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
205 (_LOCALE_H): ...this; do not define it when...
206 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
207 (_wsetlocale): ...just this one visible function prototype.
208 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
209 (_WLOCALE_DEFINED): Do not define it; delete all references.
210 (pragma GCC system_header): Declare it.
212 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
213 visibility by selective inclusion of <locale.h> instead.
214 (_WLOCALE_DEFINED): Delete all references.
216 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
218 Resolve some "implicit function declaration" warnings.
220 * setargv.c (isspace): Include <ctype.h> for declaration.
221 * cpu_features.h (__cpu_features_init): Declare function prototype.
222 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
224 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
226 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
228 * include/stdlib.h [__WCHAR_H_SOURCED__]
229 (_STDLIB_H): Do not define it; restrict visible declarations to...
230 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
231 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
232 of regular <stdlib.h> content; full content is declared only when...
233 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
234 (_WSTDLIB_DEFINED): Do not define it; delete all references.
235 (pragma GCC system_header): Declare it; tidy layout.
237 * include/wchar.h: Delete duplicated declarations for...
238 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
239 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
240 include <stdlib.h> selectively, to maintain their visibility.
241 (_WSTDLIB_DEFINED): Delete all references.
243 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
245 Relocate misplaced umask() function prototypes.
247 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
248 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
249 here, but leave them for backward, or Microsoft, compatibility.
251 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
253 Correct another _BEGIN_C_DECLS imbalance error.
255 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
256 unbalanced instance deleted; one correctly balanced instance remains.
258 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
260 Support installation of headers with empty parts directory.
262 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
263 (install-mingwrt-headers): ...invoke it; if false, do not perform...
264 (INSTALL_SUB_HEADERS): ...this.
266 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
268 Reinstate typedef for non-standard off64_t.
270 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
271 (__off64_t): ...typedef derived from this; although non-standard, it
272 is gratuitously required when building GCC's libgfortran.a
274 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
276 Correct conditional compilation block nesting errors.
278 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
279 them balanced within, and around, conditional compilation blocks.
281 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
283 Feature test _MINGW32_EXTENDED_SOURCE renamed.
285 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
286 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
287 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
288 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
289 users should enable any conventional feature test which implies it.
291 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
292 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
294 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
296 Correct atexit() and _onexit() export declaration regression.
298 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
299 as DATA; declare them accordingly.
301 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
303 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
305 * include/string.h: Tidy layout.
306 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
307 (_stricmp, _strnicmp): Include their prototypes, selectively from...
308 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
309 * include/parts/strings.h: ...from here; file is obsolete; delete it.
311 * include/string.h (_wcscmpi): Define alias.
312 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
313 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
314 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
315 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
316 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
317 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
318 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
319 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
321 * include/strings.h (_STRINGS_H): Do not define it, when...
322 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
323 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
325 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
327 Refactor to make <parts/time.h> redundant.
329 * include/sys/types.h (time_t, __time32_t, __time32_t)
330 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
331 * include/parts/time.h: ...from here; preserve selective exposure.
333 * include/time.h (time_t, __time32_t, __time32_t): Get them...
334 * include/sys/types.h: ...from here, by selective inclusion.
336 * include/time.h (struct timespec, struct __mingw_extended_timespec)
337 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
338 * include/parts/time.h: ...from here; preserve selective exposure.
340 * include/parts/time.h: Delete file; it is no longer required.
342 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
344 Declare the nanosleep() function where POSIX expects it.
346 * include/time.h (__mingw_sleep): Declare function prototype.
347 (nanosleep): Declare prototype, and provide in-line implementation;
348 this is a reproduction of the original implementation, relocated...
349 * include/unistd.h (nanosleep): ...from here; remove it; hence...
350 (struct timespec): ...this need not be declared here, and there is
351 no need to include <parts/time.h>; remove reference.
353 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
355 Refactor <time.h> vs. <wchar.h> to avoid duplication.
357 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
358 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
359 (struct tm): Delete definition; delegate it, together with each of...
360 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
361 (wcsftime): ...these function prototypes; delete them, but note in
362 comments, that they remain declared, via delegation to...
363 * include/time.h: ...this; include it selectively, subject to...
364 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
365 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
366 [_TIME_H]: Process all definitions and declarations; otherwise...
367 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
368 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
369 (_WTIME_DEFINED): Obsolete macro; delete all references.
371 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
373 Implement support for POSIX "%n$*m$" printf() format control.
375 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
376 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
377 (__pformat_inline__): New macro; define, and use it where appropriate.
378 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
379 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
380 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
381 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
382 (__pformat_argmap_t): ...this new union data type; define it.
383 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
384 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
385 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
386 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
387 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
388 (__pformat_length_modifier, __pformat_check_length_modifier): New
389 locally defined static and/or inline functions; implement, and...
390 (__pformat): ...use them.
392 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
394 Add prototypes for Microsoft's _printf_p() family of functions.
396 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
397 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
398 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
399 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
400 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
401 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
402 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
403 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
404 available for selective inclusion by both <stdio.h> and <wchar.h>...
405 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
407 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
409 Adapt msvcrt-xref to become msvcrt.def.in provider.
411 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
412 filter value assignment; scale it upwards, by a factor of 0x10000.
413 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
414 (%.def) [msvcr*]: Do not preserve comments; define...
415 (__DLLNAME__): ...this preprocessor symbol.
417 * msvcrt.def.in: Content is obsolete; delete file and replace with...
418 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
419 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
420 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
421 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
422 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
424 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
426 Import msvcrt-xref documentation resources.
428 * msvcrt-xref: New directory.
429 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
430 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
431 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
432 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
434 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
436 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
438 * include/wchar.h: Some minor layout adjustments.
439 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
440 within the scope of reading <wchar.h>; undefine it at end of file.
441 (struct tm): Do not define; it is sufficient to keep it opaque.
442 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
443 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
444 directly; delegate to indirect definition by including <stdio.h>.
445 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
446 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
447 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
448 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
449 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
450 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
451 indirectly, by selective inclusion from <stdio.h>; hence include it.
453 * include/stdio.h: Assert copyright; tidy layout.
454 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
455 (_STDIO_H): ...this, but defined conditionally, subject to...
456 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
457 entities which are required by <wchar.h>; do not define...
458 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
459 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
460 are normally specified within <stdio.h>, INCLUDING those specifically
461 itemised above, as selectively required by <wchar.h>.
463 * pseudo-reloc.c: Some minor layout adjustments.
464 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
465 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
466 include <stddef.h> to guarantee it.
468 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
470 Enable selective definition of POSIX system types.
472 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
473 any specific __need_TYPE selector having been set prior to inclusion;
474 DO define it when no such selector is present, and undefine all such
475 selectors as may have been set, after evaluation of their effects.
476 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
477 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
478 accommodates reorganization of the file, to achieve a tidier layout.
479 (__have_typedef_off_t): New repeat definition guard; define it for
480 compilers which may choke on any repeated typedef for either of...
481 (off_t, _off_t): ...these; make them selectively defineable for...
482 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
483 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
484 in either case, redefine them in terms of...
485 (__off32_t): ...this new internal type, for consistency with...
486 (__off64_t): ...this previously defined non-standard type; also make
487 it selectively defineable, either by...
488 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
489 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
490 (__have_typedef___off64_t): New repeat definition guard; define it.
491 (ssize_t, _ssize_t): Also make them selectively defineable, on...
492 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
493 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
494 (__have_typedef_ssize_t): New repeat definition guard; define it.
496 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
498 Avoid user namespace pollution by non-standard type 'off64_t'.
500 * include/sys/types.h (off64_t): Rename it as...
501 (__off64_t): ...this implementation-private alternative name, so
502 eliminating the potential for user namespace pollution.
504 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
505 return type, and type of offset argument, in both prototype and inline
506 implementation; note that this addresses the issue of pollution in the
507 user namespace, while avoiding the issue of MinGW-Bug [#2024].
509 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
510 instead of 'off64_t', as offset argument type in function prototypes.
511 (ftello64): Likewise, for return type of inline function.
513 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
514 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
515 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
517 * mingwex/stdio/fseeko64.c: Assert copyright.
518 (fseeko64): Use '__off64_t' per modified function prototype.
520 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
522 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
524 * mingwex/ofmtctl.c: New file; it implements...
525 (_mingw_output_format_control): ...this new function; it provides
526 additional MinGW specific printf() format processing options.
528 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
530 * include/stdio.h (_mingw_output_format_control): Declare it.
531 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
532 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
533 manifest constant expressions; define them.
535 * mingwex/stdio/pformat.c: Revise licensing terms.
536 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
537 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
538 modifier; this matches the behaviour specified by ISO-C99, else...
539 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
540 previous MSVC compatible behaviour, treating it as an `L' modifier.
541 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
543 * mingwex/ofmt.c (ARGLIST): Subsume references to...
544 (ARGTYPE): ...this now obsolete macro; delete it throughout.
545 (update_output_format_flag): New inline function; it restricts flag
546 operations to affect only Microsoft's exponent digit bits.
547 [FUNCTION == _set_output_format]: Use it.
548 [FUNCTION == _get_output_format]: Likewise.
550 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
552 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
554 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
555 defined, when implied by any STDC or POSIX version selection, viz. ...
556 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
558 * include/stdlib.h: Assert copyright; tidy layout.
559 (_STDLIB_H_): Multiple inclusion guard macro renamed...
560 (_STDLIB_H): ...to this, preferring no trailing underscore.
561 [!defined __NO_ISOCEXT]: Delete double negative references; use...
562 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
563 (lldiv_t): ...defining this C99 specific aggregate data type, and...
564 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
565 (wcstold, _Exit): ...declaring these C99 function prototypes.
566 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
567 future removal; not in MSVCRT.DLL, these conform to no known standard.
568 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
569 (__strtod): ...this libmingwex.a provided function; it handles string
570 representations of hexadecimal-floats, infinities and NaNs, whereas...
571 (strtod): ...this MSVCRT.DLL implementation does not.
572 (__MSVCRT_VERSION__): Prefer symbolic comparison...
573 [>= __MSVCR80_DLL]: ...for this requirement.
575 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
577 Rationalize definition of struct timespec.
579 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
580 tv_sec field, in place of anonymous union, thus avoiding missing brace
581 warnings when initializing; leave a copy of the previous definition...
582 (struct __mingw32_expanded_timespec): ...named thus.
584 * include/unistd.h (nanosleep): Adjust inline implementation, to match
585 altered specification of tv_sec field in struct timespec.
587 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
588 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
590 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
591 convenience function; defined as inline, with __LIBIMPL__ equivalent,
592 it facilitates interpretation of an instance of struct timespec as if
593 it were defined as struct __mingw32_expanded_timespec.
595 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
597 Make strings.h mostly POSIX.1-2008 compliant.
599 * include/strings.h: Rewritten. Do not include...
600 (string.h): ...this; mandated by POSIX.1, it now defines...
601 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
602 prototypes, possible in-line implementations, and JMPSTUB references
603 to corresponding external implementations, which will now become
604 automatically created within libmingwex.a
606 * include/parts/strings.h: New file; it declares prototypes for...
607 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
608 string.h, but we also require them in strings.h
610 * include/parts/wchar.h: New file; it declares prototypes for all wide
611 character functions which MSVC specifies in both wchar.h and string.h
613 * include/string.h: Miscellaneous layout adjustments.
614 (strcasecmp, strncasecmp): Delete; they belong in strings.h
615 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
616 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
617 include them from parts/wchar.h instead.
619 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
620 prototypes; include them from parts/wchar.h instead, so making this
621 guard macro redundant; delete it.
623 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
624 (wcscmpi.$OBJEXT): Implementations are now automatically generated
625 from header file, for inclusion in libmingwex.a; remove free-standing
626 implementations from the entire family of liboldname libraries, and...
627 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
628 files; they are no longer required.
630 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
632 Incorporate build system updates from w32api package.
634 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
635 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
636 (install-strip, uninstall): New make command goals; implement them.
637 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
638 (devdist, dlldist): ...these have no need to strip explicitly.
639 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
640 (install-mingwrt-headers): ...here.
642 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
644 Adapt platform feature checks to NTDDI_VERSION conventions.
646 * include/_mingw.h: Assert copyright; include w32api.h
647 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
648 to w32api/include/w32api.h, whence they remain in effect.
649 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
651 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
653 Correct mismatched #if/#endif from preceding commit.
655 * include/_mingw.h (#pragma GCC system_header)
656 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
657 correcting for inadvertent removal of matching #endif introduced by
658 preceding 2015-06-19 commit.
660 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
662 Define symbolic names for alternative Microsoft runtime DLLs.
664 * include/msvcrtver.h: New file; it assigns a value for...
665 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
666 (__MSVCR60_DLL): ...this new manifest constant, with each of...
667 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
668 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
669 ...these also defined, as user assignable alternatives.
671 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
672 to establish its default value.
674 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
676 Track dependencies on modified system header files.
678 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
680 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
682 Correct an anomaly in stage 1 only build procedure.
684 * Makefile.in (all-gcc): New goal; it is an alias for...
685 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
686 (all-mingwrt-stage-1-only): ...this; upate all references.
687 (active-goals): Adjusted accordingly; it now reguires...
688 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
689 (install): Adjusted, as directed by...
690 (DEFAULT_MAKECMDGOALS): ...this.
692 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
694 Prefer our hypot() implementation in complex maths operations.
696 * mingwex/complex/cabs_generic.c: New file; it replaces...
697 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
698 * mingwex/complex/cabsl.c: ...these.
700 * mingwex/complex/catan_generic.c: New file; it replaces...
701 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
702 * mingwex/complex/catanl.c: ...these.
704 * mingwex/complex/clog_generic.c: New file; it replaces...
705 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
706 * mingwex/complex/clogl.c: ...these.
708 * mingwex/complex/cpow_generic.c: New file; it replaces...
709 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
710 * mingwex/complex/cpowl.c: ...these.
712 * mingwex/complex/csqrt_generic.c: Do not use...
713 (_hypot): ...this Microsoft form of function reference; use...
714 (hypot): ...this ANSI standard form instead.
716 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
718 Correct C++ compilation anomaly with hypotf() in cmath header.
720 * include/math.h: Add copyright notice; generally tidy layout.
721 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
722 (hypotf): Delete inline implementation; it did not properly handle
723 range errors, and was uncompilable with optimization when any g++
724 option implying __STRICT_ANSI__ conformity was specified.
725 (_MATH_H_): Rename this multiple inclusion guard...
726 (_MATH_H): ...to this.
728 * mingwex/math/hypot_generic.c: New file; it implements...
729 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
730 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
732 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
734 Prepare and tag all files for release of mingwrt-3.21.1.
736 * configure.ac (AC_INIT): Adjust package version argument.
737 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
738 (__MINGW32_VERSION): ...increment this to match.
740 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
742 Refactor to avoid possible time_t conflicts across headers.
744 * include/parts/time.h (struct timespec): Make it more descriptive of,
745 and better able to accommodate, potential ambiguity relating to...
746 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
747 whence they may be identically imported into each of...
748 * include/sys/types.h include/time.h include/wchar.h: these; delete
749 duplicate typedefs, and import accordingly.
751 * include/sys/types.h: Add licence; general comment additions.
752 (_TYPES_H_): Rename multiple inclusion guard macro...
753 (_SYS_TYPES_H): ...to this.
755 * include/time.h: Add licence; general comment/layout adjustments.
756 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
757 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
758 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
759 (_TIME_H_): Rename multiple inclusion guard macro...
760 (_TIME_H): ...to this.
762 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
763 (struct timespec): ...of this.
765 * include/wchar.h: Add licence; general comment/layout adjustments.
766 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
767 [GCC] (system_header): Add pragma, identifying header as such.
768 (_WCHAR_H_): Rename multiple inclusion guard macro...
769 (_WCHAR_H): ...to this.
771 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
773 Remove obsolete varargs.h header file.
775 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
776 a GCC header which is no longer supported, and was always intended for
777 ultimate removal; now is the long overdue time to do so.
779 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
781 Correct improper unistd.h function attribute declarations.
783 * include/unistd.h (_cdecl): Correct usage throughout; should be...
786 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
788 Fix GLOB_DOOFFS initialization bug.
790 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
791 (gl_data->gl_offs): ...this is properly initialized to zero.
793 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
795 Tag all files for release of mingwrt-3.21.
797 * include/_mingw.h: Adjust version accordingly.
799 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
801 Improve usage notes in stdlib.h, for mkstemp() function.
803 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
804 an original comment, explaining the need to use _O_TEMPORARY, from...
805 * mingwex/mkstemp.c: ...here; delete trailing white space.
807 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
809 Eliminate some potential definition inconsistencies.
811 * include/stdio.h: Cosmetic formatting change, relating to...
812 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
813 unconditionally; this allows the compiler to check for consistency
814 with their primary definitions in stdio.h
816 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
818 Suppress expected warning diagnostics in LIBIMPL builds.
820 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
821 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
822 GCC flag to supress warnings relating to deprecated declarations.
824 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
826 Provide more POSIX conforming sleep() functions.
828 * include/sys/types.h (useconds_t): Make it explicitly long; int may
829 be okay, but doesn't guarantee enough bits; mark as deprecated, since
830 POSIX has declared it "obsolete", and no longer specifies it.
832 * mingwex/usleep.c: Delete file; it provided an implementation of...
833 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
834 its error handling was hopelessly broken; replace it with...
835 * mingwex/nsleep.c: ...this new file; it implements...
836 (__mingw_sleep): ...this generic helper function; it supports sleep
837 capability with interval specification to nanosecond precision.
839 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
840 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
841 (sleep, nanosleep): ...these current POSIX functions, and also...
842 (usleep): ...this obsolete one; mark it as deprecated.
844 * include/parts: New directory; it is intended to host partial header
845 implementations, for content which must be shared among arbitrary sets
846 of multiple standard header files.
848 * include/parts/time.h: New file; nominally declaring time.h content.
849 (struct timespec): Declare it; it is currently used within unistd.h,
850 to facilitate the __CRT_INLINE implementation of nanosleep().
852 * Makefile.in (libmingwex.a): Remove reference to...
853 (usleep.$OBJEXT): ...this; replace it with a reference to...
854 (nsleep.$OBJEXT): ...this alternative.
855 (mingwrt-includedirs): Add prerequisite to create...
856 ($includedir/parts): ...this new directory; it is populated by...
857 (install-mingwrt-headers): ...this rule; add requisite command.
859 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
861 Delete an unnecessary Unicode wrapper file.
863 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
864 UTF-16LE API from dirent.c, without any need for this wrapper.
866 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
868 Some further inline function rationalization.
870 * include/io.h (_CRTALIAS): Replace all references...
871 (__CRT_ALIAS): ...using this syntactically preferred form.
872 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
873 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
875 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
876 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
878 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
879 * mingwex/ftruncate.c: Likewise.
881 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
882 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
884 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
886 Some POSIX feature test adjustments.
888 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
889 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
890 (mkdtemp): This didn't become available until SUSv4, so requires...
891 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
893 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
895 Another CRT_INLINE function implementation rationalization.
897 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
898 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
899 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
901 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
902 (libmingwex.a): Delete obsolete dependency on...
903 (imaxabs.$OBJEXT): ...this.
905 * mingwex/imaxabs.c: File is now redundant; delete it.
907 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
909 More rationalization of CRT_INLINE function implementations.
911 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
912 (ftello64): Add __LIBIMPL__ specification for extern implementation.
913 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
915 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
916 * mingwex/stdio/ftell064.c: Likewise.
918 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
919 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
921 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
923 Don't implicitly define _POSIX_C_SOURCE too early.
925 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
926 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
927 that it is not accidentally activated by implied _POSIX_C_SOURCE.
929 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
931 Correct complex arcsin computation per issue [#2245].
933 * mingwex/complex/casin_generic.c: New file; it replaces...
934 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
935 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
937 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
939 Correct complex square root computation per issue [#2246].
941 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
942 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
943 (hypot): ...this libmoldname.a indirection.
945 * mingwex/complex/csqrt_generic.c: New file; it replaces...
946 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
947 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
949 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
951 Adjust header guards to resolve issue [#2244].
953 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
954 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
955 ...when any of these prevail, or as appropriate to correspond with...
956 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
958 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
959 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
960 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
961 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
963 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
965 Add implementation of mkstemp() and mkdtemp() functions.
967 * mingwex/cryptnam.c: New file; it implements...
968 (__mingw_crypto_tmpname): ...this helper function; it generates a
969 cryptographically secure sequence of characters, used as the random
970 component in temporary file and directory names.
972 * mingwex/mkstemp.c: New file; it implements...
973 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
975 * mingwex/mkdtemp.c: New file; it implements...
976 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
978 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
979 function implementation, with LIBIMPL extern semantics, in terms of...
980 (__mingw_mkstemp): ...this; also declare prototype, and define...
981 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
982 (_MKSTEMP_SETMODE): New macro; define it, also providing...
983 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
984 (mkdtemp): Declare prototype; provide inline implementation, with
985 JMPSTUB extern semantics, in terms of...
986 (__mingw_mkdtemp): ...this; declare prototype.
988 * Makefile.in (libmingwex.a): Add dependency rule, to include...
989 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
991 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
993 More JMPSTUB rationalization of inline functions.
995 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
996 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
997 appropriate MSVCRT.DLL equivalent entry point.
999 * mingwex/_Exit.c: File is now redundant; delete it.
1000 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
1001 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
1003 * Makefile.in (jmpstub_awk_script): Add support for...
1004 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
1005 (libmingwex.a): Remove dependencies on deleted files, namely...
1006 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
1007 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
1009 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1011 Correct omission of complex conjugate functions from libmingwex.a
1013 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
1014 (creal, crealf, creall): Likewise, for consistency of implementation.
1015 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
1017 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
1018 declarations; they should be interpreted analogously to __CRT_ALIAS.
1019 (libmingwex.a): Remove object file references for functions which are
1020 now declared as LIBIMPL, and sort the remainder in ASCII collating
1021 order; deleted function references comprise the set consisting of...
1022 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
1023 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
1024 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
1026 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
1027 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
1028 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
1029 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
1030 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
1032 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1034 Back-port improved asinh() implementation from 4.0-dev branch.
1036 * mingwex/math/asinh_generic.c: New file; it replaces...
1037 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
1038 ...all of these; delete them.
1040 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1042 Enable remake of lost LIBIMPL object files.
1044 * Makefile.in (libimpl_remake): New macro; define it, and...
1045 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
1047 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1049 Implement more robust _get_output_format fallback handling.
1051 * mingwex/ofmt.c: New file; it implements...
1052 (__mingw_output_format_flag): ...backing store, used by...
1053 (__mingw_get_output_format, __mingw_set_output_format): ...these
1054 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
1055 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
1056 version specific Microsoft APIs, which are also supported by some
1057 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
1058 (__mingw_get_output_format_fallback): Implement; it is aliased to...
1059 (__mingw_set_output_format_fallback): ...this; together they provide
1060 the emulation support for the preceding pair of functions, when they
1061 are not available within the run-time platform MSVCRT.DLL
1062 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1063 Implement them; they wrap, and if necessary emulate...
1064 (_get_printf_count_output, _set_printf_count_output): ...these.
1065 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
1066 (__mingw_set_printf_count_output_fallback): ...this; together they are
1067 required to support emulation of the preceding pair of functions, when
1068 they are not available within the run-time platform MSVCRT.DLL
1070 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
1071 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
1072 (__mingw_get_output_format, __mingw_set_output_format)
1073 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1074 Unconditionally declare their prototypes, for subsequent inline use.
1075 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
1076 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
1077 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
1078 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
1079 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
1080 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
1081 represent a compilable token.
1083 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
1084 _get_output_format; consult __mingw_output_format_flag directly.
1086 * ofmt_stub.s: No longer required; delete it.
1088 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
1089 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
1090 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
1091 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
1092 all are compiled from ofmt.c
1094 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1096 Do some more essential build tree clean up.
1098 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
1099 in the way of a successful rebuild from clean.
1101 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1103 Implement wrappers for emulation of POSIX dlfcn API.
1105 * include/dlfcn.h: New file; it declares the API.
1106 * mingwex/dlfcn.c: New file; implement it, with access via...
1107 (__mingw_dlfcn): ...this publicly addressable vector table.
1109 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1110 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1111 (__LIBIMPL__): ...this automatic interface generator; implement it.
1112 (libstub_refnames): New macro; it is adapted from and replaces...
1113 (jmpstub_refs): ...this; when it is then invoked twice to build...
1114 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1115 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1116 (libimpl_awk_script): New inline script; it handles automated builds
1117 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1118 (libimpl_sed_script): New inline script; it prepares intermediate C
1119 source code for LIBIMPL interfaces, as required to satisfy these...
1120 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1121 (LIBIMPL_CFLAGS): New macro; define it.
1123 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1125 Move libgen functions to __mingw_ pseudo-namespace.
1127 * mingwex/dirname.c (dirname): Rename function, as implemented...
1128 (__mingwex_dirname): ...to this.
1130 * mingwex/basename.c (basename): Rename function, as implemented...
1131 (__mingwex_basename): ...to this.
1133 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1134 prototypes, matching and augmenting original declarations for...
1135 (dirname, basename): ...these; reimplement as inline aliases, with
1136 __JMPSTUB__ references to the renamed implementation entry points.
1138 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1140 Implement new command line argument globbing strategy.
1142 * include/_mingw.h: Backport feature defines from master...
1143 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1144 constants; define them. They select the preferred globbing algorithm.
1145 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1146 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1147 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1148 they enable optional additional features supported by this algorithm.
1149 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1151 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1153 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1154 * setargv.c: ...new file; it implements the initialization mechanism
1155 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1156 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1157 it invokes the algorithm via an API similar to that described by MSDN,
1158 while continuing to support our original _CRT_glob interpretation.
1159 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1160 algorithm, via the MSDN-alike API, by calling back to...
1162 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1163 relocated to here, as a publicly addressable function; formerly...
1164 (__mingw_CRTStartup): ...called directly from here, we now redirect
1165 the call through _setargv(), whence it may be called indirectly.
1167 * init.c: Redundant file; delete it. It originally provided...
1168 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1169 original static attribute removed, to allow global addressing.
1171 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1173 Backport glob implementation from master to legacy.
1175 * include/glob.h: New file; copy it from master branch.
1176 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1177 (glob, globfree): ...each of these, respectively.
1179 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1180 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1181 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1182 (accept_glob_nocheck_match): New static function; it adds support for
1183 avoidance of globbing on patterns with no globbing token, so avoiding
1184 the case transliteration effect reported as MinGW-Bug #2106.
1185 (glob_match): Use it.
1187 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1189 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1191 Implement conventionally named dirent function trampolines.
1193 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1194 which redirects a conventionally named function call to its __mingw_
1195 pseudo-namespace implementation.
1197 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1198 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1199 appropriate protocol for compiling *.sx files, (supported natively by
1200 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1202 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1203 yet provide it, so we define it ourselves; deploy it for *.sx files.
1204 (Makefile.stub): New sinclude file; create it dynamically, using...
1205 (jmpstub_awk_script): ...this new inline script, which is based on...
1206 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1207 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1208 (mostlyclean-local): Remove Makefile.stub; do likewise...
1209 (Makefile): ...when remaking this, to ensure that both will be
1212 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1214 Make dirent implementation namespace and time_t clean.
1216 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1217 macros; define them. They facilitate identification of symbols which
1218 must be compiled with `extern "C"' binding, when compiling C++ code.
1219 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1220 (_CRTALIAS): ...this, which is to be considered as deprecated.
1221 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1222 __CRT_ALIAS build hints, while remaining transparent to GCC.
1223 (UNICODE, _UNICODE) [user defined]: Define consistently.
1225 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1226 4.0-dev branch, with additional ABI changes to improve stability).
1227 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1228 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1229 Add `__mingw_' prefix to all publicly exposed symbol names.
1230 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1231 implemented functions; they replace Microsoft's ambiguously defined
1232 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1233 resulting from the ambiguous size of Microsoft's time_t.
1235 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1236 removing unnecessary time_t and file size fields; (our replacements
1237 for _findfirst, and _findnext do not require them to be present).
1238 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1239 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1240 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1241 Adjust prototypes, making them inline aliases for public symbols which
1242 are now qualified by the `__mingw_' prefix; add build hints to support
1243 compilation of addressable stubs, with the original symbol names.
1244 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1245 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1246 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1247 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1248 New macros; define them. (These show availability of optional fields
1249 within the dirent struct, which client code may wish to access).
1251 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1253 Correct improper naming of assembly language source files.
1255 * mingwex/math/*.S: Rename all files with this extension...
1256 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1257 not extended `assembler-with-cpp' as implied by the former extension);
1258 adjust all internal `.file <name>' references accordingly.
1260 * Makefile.in (vpath %.S): Adjust reference to locate files....
1261 (vpath %.s): ...now renamed thus.
1263 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1265 Streamline the build system infrastructure.
1267 * configure.ac: New file; it replaces...
1268 * configure.in: ...this; (name is obsolete); delete it.
1270 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1271 make invocations, when processing subdirectories, and add automatic
1272 dependency tracking for all generated files.
1274 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1276 * mingwex/Makefile.in: No longer required; delete it.
1277 * profile/Makefile.in: Likewise.
1279 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1280 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1282 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1283 longer relevant, and I have no desire to maintain it.
1285 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1287 * include/_mingw.h: Increment version to 3.20.
1289 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1291 * tlsmthread.c: Update to reflect changes in tlssup.c.
1292 * tlssup.c: code clean-up.
1294 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1296 * include/_mingw.h: Increment version to 3.19.
1298 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1300 * include/float.h: Modify guard to accomodate CLang.
1302 Thanks to Ruben Van Boxem for the report.
1304 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1306 * tlssup.c: Remove mingwm10.dll fallback.
1308 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1310 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1312 Thanks to bvassche for the report.
1314 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1316 Correct checking for short option matches in getopt_long_only().
1318 * mingwex/getopt.c (getopt_verify): New static inline function.
1319 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1320 possible short option match after failing to match, or ambiguously
1321 matching as a long option.
1323 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1325 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1327 Thanks to cgf for the report.
1329 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1331 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1332 compiles with __STRICT_ANSI__.
1334 Thanks to Felipe Contreras for the report.
1336 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1338 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1341 Thanks to Tobias Burnus for the report.
1343 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1345 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1346 by wrapping the functions in brackets.
1348 Thanks to Kai Tietz for the report.
1350 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1352 * Makefile.in: Add support for msvcr100.dll.
1353 * msvcrt.def.in: Ditto.
1355 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1357 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1358 not always available, go the long way and use the explicit named union
1359 members, which are also declared in winnt.h.
1361 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1363 * mingwex/isblank.c: Fix typo in declaration.
1365 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1367 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1368 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1369 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1370 is included before <ctype.h>.
1372 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1374 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1376 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1378 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1380 Correct hexadecimal formatting of double and long double values.
1382 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1383 (__pformat) [A format]: Cast double values to long double, and use...
1384 (__pformat_xldouble): ...this instead, with corrected adjustment of
1385 exponent and alignment of mantissa, when formatting subnormals.
1387 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1389 * include/dirent.h (dd_handle): Define as intptr_t.
1391 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1393 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1396 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1398 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1399 semantically identical MAX_PATH; correct value is 260.
1401 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1403 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1404 system include search path; (issue reported by Mark Brand).
1406 * include/float.h: Add multiple inclusion guard around...
1407 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1408 only when this define does not indicate that it has already been seen;
1409 update comments to document rationale; move it within the scope of...
1410 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1411 GCC's float.h, after an appropriate complementary modification, need
1412 not perform a further include path search when this implementation
1413 specific extension has already been processed.
1415 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1417 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1418 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1419 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1420 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1421 _findnexti64): Correct definition.
1423 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1425 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1427 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1429 * include/_mingw.h: Increment version to 3.18.
1431 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1433 * include/stdio.h: (_vscprintf, _vscwprintf)
1434 * include/tchar.h: (_vsctprintf)
1436 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1438 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1439 (initial implementation)
1441 * new type: __time32_t
1443 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1444 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1445 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1447 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1448 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1449 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1450 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1451 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1452 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1453 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1454 _wstat32i64, _wstat64i32,_wutime32
1456 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1457 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1458 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1459 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1460 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1462 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1464 Implement TLS Callback.
1466 * tlsmcrt.c: New file.
1467 * tlsmthread.c: Ditto.
1470 * Makefile.in: Include new files.
1471 * crt1.c: Implement TLS Callback.
1473 * mthr_stub.c: Remove.
1475 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1477 * include/_mingw.h: Increment version to 3.17.
1479 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1481 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1482 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1484 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1486 * include/io.h (_open_osfhandle): Correct definition.
1488 Thanks to Alexander Shaduri for the information.
1490 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1492 Final sync of pseudo-reloc.c with mingw64 and cygwin
1493 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1494 regarding error messages.
1496 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1498 Honor DESTDIR for winsup/mingw and winsup/w32api.
1499 Detect and report error if installation paths are win32
1500 format, but DESTDIR is non-empty.
1502 * Makefile.in (DESTDIR): Honor per convention.
1503 (need-DESTDIR-compatibility): New macro; define it and a
1505 (fail-DESTDIR-compatibility): New dependency goal.
1506 (install-dirs): Require need-DESTDIR-compatibility.
1507 * mingwex/Makefile.in (DESTDIR): Honor per convention.
1508 (need-DESTDIR-compatibility): New macro; define it and a
1510 (fail-DESTDIR-compatibility): New dependency goal.
1511 (install): Require need-DESTDIR-compatibility.
1512 * profile/Makefile.in: Ditto.
1514 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1516 Sync pseudo-reloc.c with mingw64
1517 * psuedo-reloc.c: Remove unnecessary includes.
1518 Forward declare _pei386_runtime_relocator.
1519 Decorate _image_base__ symbol with macro for
1520 mingw64 compatibility. Whitespace changes.
1521 (__print_reloc_error): Renamed to...
1522 (__report_error): This. "Returns" void, and
1523 always aborts. Now used on all platforms.
1524 (__write_memory): Remove special case error handling
1525 for different platforms - always call __report_error.
1526 (do_pseudo_reloc): Remove special case error handling
1527 for different platforms - always call __report_error.
1528 (_pei386_runtime_relocator): Decorate _image_base__
1529 symbol with mingw64 compatibility macro.
1531 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1533 Sync pseudo-reloc.c with cygwin/lib/
1534 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1535 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1536 for fatal error handling that is consistent with cygwin process
1537 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1538 is unique to each address space, across fork().
1539 [CYGWIN] (__print_reloc_error): New function for reporting
1540 errors in a manner supported by cygwin at this early stage of
1541 the process life-cycle.
1542 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1543 performed only once for each address space, but are repeated
1544 after fork() in the new address space.
1545 [MINGW] (__write_memory): Ensure that b is always initialized
1546 by call to VirtualQuery, even if -DNDEBUG.
1548 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1550 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1551 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1553 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1554 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1555 specified format qualifiers, except in special case...
1556 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1557 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1558 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1561 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1563 Avoid multiple link time definitions of _printf() for C++;
1564 (problem reported by Alexander Shaduri, via MinGW-users ML).
1566 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
1567 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
1569 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1571 * include/_mingw.h: Increment version to 3.16.
1573 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
1575 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
1576 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
1577 __fp_unordered_compare): Add prototypes.
1578 * include/stdio.h (vsnwprintf): Add prototype.
1579 * include/wchar.h (vsnwprintf): Add prototype.
1580 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
1581 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
1583 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1585 Correct disposition of wchar_t output in printf().
1587 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
1588 (argval): ...this, in inner scope, with singular type `wchar_t'; use
1589 it to pass one wchar to __pformat_wputchars(), for output.
1591 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1593 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
1595 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1597 Convert to monolithic configuration procedure.
1599 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
1600 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
1601 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
1602 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
1603 (CRT0S): Relocate from `profile'; define it as appropriate.
1604 (LIBM_A): Define and AC_SUBST it unconditionally.
1605 (AC_CONFIG_SUBDIRS): Remove; none to configure.
1606 (AC_OUTPUT_FILES): Add `Makefile' for each of...
1607 (mingwex, profile): ...these subdirectories.
1609 * configure: Regenerated.
1611 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
1612 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
1613 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
1614 (SUBDIRS): Define explicitly, to run recursive `make' in...
1615 (mingwex, profile): ...these; simplify build commands...
1616 (rootme, rootsrc): ...without these shell variables.
1617 (all, subdirs): Delete redundant build commands.
1618 (FIXME): Flag various issues for follow up.
1620 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
1621 (top_srcdir): ...this new macro; let AC_SUBST define it.
1622 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1623 (Makefile): Make it depend on...
1624 (top_builddir/config.status): ...this, itself depending on...
1625 (top_srcdir/configure): ...this.
1626 (FIXME): Flag various issues for follow up.
1628 * mingwex/aclocal.m4: File no longer required; delete it.
1629 * mingwex/configure mingwex/configure.in: Likewise.
1631 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
1632 (top_srcdir): ...this new macro; let AC_SUBST define it.
1633 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1634 (Makefile): Make it depend on...
1635 (top_builddir/config.status): ...this, itself depending on...
1636 (top_srcdir/configure): ...this.
1637 (FIXME): Flag various issues for follow up.
1639 * profile/aclocal.m4: File no longer required; delete it.
1640 * profile/configure profile/configure.in: Likewise.
1642 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1644 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
1645 to complaints that it causes issues.
1647 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
1649 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
1651 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1653 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
1654 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
1655 to all inline functions.
1657 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1659 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
1660 * CRT_fp10.c: Ditto.
1662 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1664 * cpu_features.c: replace gcc-specific construct with portable alternative
1665 and match the code a few lines above.
1666 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
1668 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1670 * include/_mingw.h: Changes required for PCC compiler.
1672 2009-07-18 Jeff Lu <jll544@yahoo.com>
1674 * mingwex/usleep.c: round up to next ms
1676 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1678 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
1679 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
1680 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
1681 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
1683 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1685 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
1687 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
1689 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
1690 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
1691 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
1692 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
1693 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
1694 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
1695 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
1696 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
1697 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
1698 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
1699 sources as of Apr. 20, 2009. Update further to match the sources in
1700 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
1701 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
1702 double/ulong union from U to dbl_union for better grepping and white-
1705 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1707 * include/stdlib.h (_wtof): Define.
1709 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
1711 * include/stdint.h (int_fast8_t): Specify as signed char.
1712 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
1713 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1715 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1717 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1719 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1721 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1722 (Requested by Robert Riebisch)
1724 * mingwex/getopt.c (getopt_parse): Track external increments of...
1725 (optind): ...this global variable.
1727 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1729 * include/_mingw.h: Increment version to 3.15.2.
1731 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1733 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1734 Also add tentative support for BSD specific `optreset' feature.
1736 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1737 (__mingw_optreset): ...this new global variable.
1739 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1740 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1743 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1745 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1746 Correct mishandling of invalid characters in printf() format specs.
1748 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1749 (backtrack): ...this new automatic variable, at start of each format
1750 conversion specification substring; use it to backtrack, and print the
1751 substring literally, if any invalid character is encountered.
1753 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1755 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1756 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1757 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1758 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1759 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1760 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1761 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1762 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1763 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1764 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1765 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1766 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1767 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1768 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1770 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1772 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1774 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1776 Correct some binary distribution packaging defects.
1778 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1779 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1780 intermediate goals; they make packages of files, as specified by...
1781 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1782 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1784 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1786 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1787 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1789 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1790 of radix point conditional on precision != 0 or `#' flag specified.
1792 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1794 Fix MinGW-Bug [2160227]
1795 Eliminate conflicting declarations and implementations of scalb().
1797 * moldname.def.in (scalb): Comment out of EXPORTS list.
1798 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1799 with GCC's built-in declaration.
1801 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1803 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1805 * mingwex/Makefile.in: Ditto.
1806 * profile/Makefile.in: Ditto.
1807 * configure.in: Record mingw front-end for building under Cygwin.
1808 * mingwex/configure.in: Ditto.
1809 * profile/configure.in: Ditto.
1810 * configure: Regenerate.
1811 * mingwex/configure: Ditto.
1812 * profile/configure: Ditto.
1814 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1816 Use de-facto standard Makefile goals to invoke test suite.
1818 * Makefile.in: Some minor formatting adjustments.
1819 (test_headers): Unconventionally named goal renamed to...
1820 (check-headers): ...this; make it a prerequisite of...
1821 (check): ...this new conventionally named goal.
1823 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1825 Make strtod() inline definition C89 compliant.
1826 (Issue reported by Ilya Shestopalov and Ian Puleston)
1827 (Correction identified by Danny Smith)
1829 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1830 reformat inline function definition.
1832 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1834 * include/_mingw.h: Increment version to 3.15.1 and introduce
1835 __MINGW32_PATCHLEVEL variable.
1837 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1839 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1840 (Reported by Christian Franke)
1842 * mingwex/getopt.c (optind): Make global variable value conform to
1843 behaviour specified by POSIX; do not use it for internal state in...
1844 (getopt_parse): ...this static function; use...
1845 (optbase): ...this new static local variable instead.
1846 (getopt_resolved): Update `optind' as required.
1848 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1850 Improve package identification in configure script.
1852 * configure.ac (AC_INIT): Redefine parameters...
1853 (PACKAGE_NAME): Set to `MinGW Runtime'.
1854 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
1855 (PACKAGE_TARNAME): Set to `mingwrt'.
1856 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
1857 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
1858 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
1860 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
1861 (PACKAGE_TARNAME): ...this.
1863 * configure: Regenerated.
1865 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1867 Fix MinGW-Bug [2125708].
1868 (Reported by Alexandr Zamaraev).
1870 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
1871 not wanted here; remove it; replace it by...
1872 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
1873 (_invalid_parameter_handler): ...this function typedef.
1875 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
1877 * Makefile.in: Don't include host_os as part of snapshot filename.
1879 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1881 Fix MinGW-Bug [2119504].
1882 (Reported by Peiyuan Song).
1884 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
1885 (*retindex): ...this already correctly assigned return variable...
1886 (opt[index].val): ...with this; this should have been assigned to...
1887 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
1889 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1891 Fix MinGW-Bug [2117379].
1892 (Reported by Peiyuan Song).
1894 * include/stdio.h (__argv): Replace all references in function
1895 prototype argument lists and inline function local variables, with ...
1896 (__local_argv): ...this, to avoid potential conflict with ...
1897 * include/stdlib (__argv): ...this #defined macro.
1899 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1901 * include/_mingw.h: Increment version to 3.15.
1903 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1905 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
1906 naming standard for Cygwin.
1908 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1910 Reimplement getopt.c to add getopt_long_only() function.
1912 (N.B. this reimplementation removes support for BSD/Mac-OS-X
1913 `optreset' nonsense; user code should set `optind = 0' instead,
1914 to reinitialise option scanning).
1916 * mingwex/getopt.c: Delete all content; reimplement it.
1917 * include/getopt.h: Likewise.
1919 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
1920 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
1922 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1924 Implement conditional replacement for printf() family functions.
1926 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
1927 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
1928 flag for use in user specified __MINGW_FEATURES__ attribute.
1929 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
1930 currently unused: reserved as components of...
1931 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
1932 a __MINGW_FEATURES__ enhancement to setlocale().
1934 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
1935 (__mingw_fprintf, __mingw_vfprintf): Likewise.
1936 (__mingw_sprintf, __mingw_vsprintf): Likewise.
1937 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
1938 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
1939 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
1940 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
1941 usage; link to DLL import stub, importing from MSVCRT.
1942 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1943 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1944 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
1945 locally defined static stub implementation.
1946 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1947 __mingw_fprintf and __mingw_sprintf respectively.
1948 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
1949 static inline implementation for C++ and GNU C, or locally defined
1950 static stub otherwise.
1951 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1952 __mingw_vfprintf and __mingw_vsprintf respectively.
1954 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1956 Avoid access violations, passing NULL to printf( "...%s..." );
1957 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
1959 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
1960 for argument value, if caller passes a NULL pointer.
1961 (__pformat_wcputs): Likewise, substitute L"(null)".
1963 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1965 Add missing dependencies for building libmingwex.a.
1967 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
1968 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
1969 (pformat.h): ...this.
1971 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1973 Add replacements for remaining members of printf() family.
1975 * mingwex/stdio/printf.c: New file.
1976 * mingwex/stdio/fprintf.c: New file.
1977 * mingwex/stdio/sprintf.c: New file.
1978 * mingwex/stdio/vprintf.c: New file.
1979 * mingwex/stdio/vfprintf.c: New file.
1980 * mingwex/stdio/vsprintf.c: New file.
1982 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1983 (STDIO_OBJS): Add their corresponding object files.
1985 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1987 Replace __mingw_snprintf() with new generic family implementation;
1988 likewise, replace __mingw_vsnprintf().
1990 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
1991 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
1992 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1993 (GDTOA_DISTFILES): Remove mingw_snprintf.c
1994 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
1995 (GDTOA_OBJS): Remove mingw_snprintf.o
1996 (PFORMAT_CFLAGS): New macro; define it, as required by...
1997 (pformat.o): ...this new explicit build target.
1998 (snprintf.o, vsnprintf.o): Declare prerequisites.
2000 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
2002 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
2004 Lay foundations for new printf() function family implementation.
2006 * ofmt_stub.s: New file; implement forward compatibility stub for...
2007 (_get_output_format): ...this MSVCR80.DLL and later function.
2009 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
2010 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
2011 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
2012 (lib%.a): Include ofmt_stub.o when import library does not already
2013 advertise availability of the _get_output_format() function;
2014 Add alias stubs for MINGW_REPL_FUNCS, such that...
2015 (__msvcrt_printf): ...is an alias for Microsoft's printf().
2016 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
2017 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
2018 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
2019 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
2020 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
2021 (clean): Add msvcr*.def.
2023 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
2024 * configure: Regenerated.
2026 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
2028 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
2029 (_imp____mb_cur_max_dll): Likewise.
2031 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
2033 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
2034 * include/wchar.h (swprintf, vswprintf): Likewise.
2036 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2038 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
2039 (_get_output_format, _set_output_format): Add references.
2041 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
2042 (_get_output_format, _set_output_format): Declare prototypes.
2043 (_TWO_DIGIT_EXPONENT): Define.
2044 Some other minor formatting adjustments.
2046 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2048 [mingw-Bugs-1801641]
2049 * include/wchar.h (_wfdopen): Const-ify second arg.
2050 * include/stdio.h (_wfdopen): Likewise.
2051 Thanks to <tdragon at users dot sourceforge net>
2053 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2055 Avoid precision errors in round(), lround() and llround() functions.
2057 * mingwex/math/round_generic.c: New file; it replaces...
2058 * mingwex/math/round.c: ...this; delete it.
2059 * mingwex/math/roundf.c: ...and this; ditto.
2060 * mingwex/math/roundl.c: ...and this; ditto.
2062 * mingwex/math/lround_generic.c: New file; it replaces...
2063 * mingwex/math/lround.c: ...this; delete it.
2064 * mingwex/math/lroundf.c: ...and this; ditto.
2065 * mingwex/math/lroundl.c: ...and this; ditto.
2066 * mingwex/math/llround.c: ...and this; ditto.
2067 * mingwex/math/llroundf.c: ...and this; ditto.
2068 * mingwex/math/llroundl.c: ...and this; ditto.
2070 * mingwex/math/round_internal.h: New file; it provides generic common
2071 code, which is shared by `round_generic.c' and `lround_generic.c'; the
2072 implementation is based on techniques suggested by Danny Smith and
2075 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
2076 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
2077 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
2078 `round_generic.c' and `lround_generic.c'.
2079 (MATH_OBJS): Factor out files listed in...
2080 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
2081 macros; define them; specify dependencies and build rules; add to...
2082 (LIB_OBJS): ...this list.
2084 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
2086 [ mingw-Bugs-1961893 ]
2087 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
2088 mode to 2 for E format.
2090 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
2092 * include/stdlib.h: Fix strtod under C++.
2094 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
2096 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
2097 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
2099 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
2101 * include/sys/types.h (useconds_t): typedef.
2102 * include/unistd.h (usleep): Add prototype.
2103 * mingwex/usleep.c: New file.
2104 * mingwex/makefile.in: Add usleep source and object.
2106 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2108 Make strtod() conform to C99.
2110 * include/stdlib.h (strtod): Declare this mingwex function, and...
2111 (_strtod): rename this MSVCRT counterpart.
2113 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2115 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2117 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2119 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2121 * include/process.h: Include stdint.h for intptr_t definition.
2122 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2123 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2124 _spawnvpe): Return intptr_t.
2125 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2126 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2128 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2130 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2131 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2132 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2133 _wspawnvp, _wspawnvpe): Return intptr_t.
2135 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2137 * include/wchar.h (fwide): Return success code rather than failure in inline
2139 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2140 code rather than failure.
2142 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2144 * include/math.h (float_t, double_t): Define.
2146 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2148 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2149 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2150 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2152 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2154 * include/complex.h: Don't condition contents on C99 or not
2157 2008-02-01 Brian Dessent <brian@dessent.net>
2159 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2160 the different runtime versions.
2162 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2164 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2165 (mbsinit): Likewise.
2167 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2169 * include/_mingw.h: Increment version to 3.14.
2171 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2173 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
2174 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
2175 * mingwex/math/log10f.S: Correct issue with comments.
2176 * mingwex/math/log10l.S: Ditto.
2177 * mingwex/math/log1p.S: Ditto.
2178 * mingwex/math/log1pf.S: Ditto.
2179 * mingwex/math/log1pl.S: Ditto.
2180 * mingwex/math/log2.S: Ditto.
2181 * mingwex/math/log2f.S: Ditto.
2182 * mingwex/math/log2l.S: Ditto.
2183 * mingwex/math/logf.S: Ditto.
2184 * mingwex/math/logl.S: Ditto.
2186 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
2188 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
2190 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
2192 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
2193 from '_fsize_t' to '__int64' to be consistent with the other ...64
2194 structures and the value set there is 8 bytes not 4. Add guard for both
2195 as the are only used by functions available from 6.1 on.
2197 * include/malloc.h (_HEAP_MAXREQ): Define.
2198 (_aligned_offset_recalloc): Define.
2199 (_aligned_recalloc()): Define.
2201 * include/math.h: fixed a typo in a comment.
2202 (atanhf): Fixed declaration.
2204 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
2205 to '__int64' to be consistent with the other ...64 structures and the value
2206 set there is 8 bytes not 4. Added guard as this function is only used by
2207 functions available from 6.1 on.
2209 * include/sys/stat.h: some members of 'stat' were declared with types with
2210 a prefixed underscore, while the ones without the underscore should have
2211 been used. Added guard to '__stat64' as it is only used by functions
2212 available from 6.1 on. Added the wide character versions of the
2213 exec()/spawn() family for completion
2214 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
2217 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
2218 from 'long' to 'time_t'
2219 (__timeb64): moved declaration of structure directly before the declaration
2220 of the function '_ftime64()', so it is guarded as well
2222 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
2223 before the declaration of the functions using it, so it is guarded as well
2225 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
2227 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
2228 case. Add missing break in 's'/LEN_S case.
2230 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2232 Make snprintf() and vsnprintf() conform to C99.
2234 * include/stdio.h: Add note about incompatibility between...
2235 (snprintf, vsnprintf): These two mingwex functions, and...
2236 (_snprintf, _vsnprintf): these MSVCRT counterparts.
2238 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
2239 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
2241 * mingwex/stdio/snprintf.c: Delete.
2242 * mingwex/stdio/vsnprintf.c: Delete.
2244 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
2245 (vsnprintf): Alias to __mingw_vsnprintf.
2247 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2249 * include/_mingw.h: Increment version to 3.13.
2250 * Makefile.in: Reset CYGRELEASE to 1
2252 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2254 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
2255 resulting from incomplete removal of enclosing `for ...; do ...; done'
2256 loop from compound command; (reported by Greg Chicares).
2258 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2260 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2263 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2265 [mingw-Bugs-1734142]
2266 * include/wchar.h (_wsystem) Declare.
2268 (_wgetenv): Declare.
2269 (_wsearchenv): Declare.
2270 (_wmakepath): Declare.
2271 (_wsplitpath): Declare.
2272 (_wfullpath): Declare.
2273 * include/stdlib.h (_wsystem) Declare.
2274 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
2275 _wfullpath): Move into _WSTDLIB_DEFINED guard.
2276 * include/tchar.h (_tsystem): New UNICODE mapping define.
2278 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
2280 * mingwex/gdtoa/mingw_snprintf.c: New file.
2281 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
2282 (GDTOA_OBJS): Add mingw_snprintf.o.
2284 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
2286 * msvcrt.def.in: Update comment.
2287 Exclude _ctype stub if using msvcr71.dll or newer.
2288 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
2289 * include/wctype.h: Likewise.
2291 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2293 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
2294 *include/dirent.h: Likewise.
2296 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2298 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
2299 * include/conio.h: Likewise.
2300 * include/ctype.h: Likewise.
2301 * include/direct.h: Likewise.
2302 * include/dos.h: Likewise.
2303 * include/errno.h: Likewise.
2304 * include/fenv.h: Likewise.
2305 * include/float.h: Likewise.
2306 * include/inttypes.h: Likewise.
2307 * include/io.h: Likewise.
2308 * include/libgen.h: Likewise.
2309 * include/locale.h: Likewise.
2310 * include/malloc.h: Likewise.
2311 * include/mbctype.h: Likewise.
2312 * include/mbstring.h: Likewise.
2313 * include/process.h: Likewise.
2314 * include/search.h: Likewise.
2315 * include/setjmp.h: Likewise.
2316 * include/signal.h: Likewise.
2317 * include/stdio.h: Likewise.
2318 * include/stdlib.h: Likewise.
2319 * include/string.h: Likewise.
2320 * include/time.h: Likewise.
2321 * include/wchar.h: Likewise.
2322 * include/sys/stat.h: Likewise.
2323 * include/sys/time.h: Likewise.
2324 * include/sys/timeb.h: Likewise.
2325 * include/sys/utime.h: Likewise.
2327 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2329 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2331 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2333 Add POSIX binary tree search API.
2335 * mingwex/tfind.c: New file.
2336 * mingwex/tdelete.c: New file.
2337 * mingwex/tsearch.c: New file.
2338 * mingwex/twalk.c: New file.
2339 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2340 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2341 * include/search.h (tfind): Declare.
2348 (node_t): Define, on condition of _SEARCH_PRIVATE.
2350 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2352 * include/_mingw.h (__MINGW_NOTHROW): Define.
2354 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2356 * include/stdio.h (vsnprintf): Remove inline definition.
2359 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2361 * CRTfmode.c: Nit-pick comment fix.
2363 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2365 * CRTfmode.c: Fix nested comment.
2367 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2369 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2371 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2373 * include/io.h (lseek64) : Add prototype.
2375 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2377 * include/string.h (strcasecmp): Add prototype.
2378 (strncasecmp): Add prototype.
2380 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2382 * Makefile.in (CRT0S): Revert last change.
2383 * CRTfmode.c. Correct comment.
2385 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2387 * Makefile.in (CRT0S): Add back CRTfmode.o.
2389 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2391 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2392 * include/io.h: Likewise.
2394 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2396 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2398 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2400 * include/stdint.h (intptr_t): Fix typo.
2401 Thanks to Charles Wilson for report.
2403 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2405 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2406 Condition on _WIN64.
2407 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2408 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2409 (PTRDIFF_MIN): Define as INTPTR_MIN.
2410 (PTRDIFF_MAX): Define as INTPTR_MAX.
2411 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2412 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2414 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2416 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2417 Cygwin man page location.
2419 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2421 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2422 support Cygwin man page location.
2424 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2426 * Include/_mingw.h: Increment version to 3.12.
2428 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2430 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2432 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2434 * Makefile.in: Tweak srcdist to fix build issue.
2436 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2438 Add --enable-mingw-manpage-transform configure option.
2440 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2441 * configure.in, Makefile.in: Use it.
2442 * configure: Regenerated.
2444 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2446 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2448 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2450 Add manpages for dirname and basename functions.
2452 * man: New directory.
2453 * man/dirname.man: New file; it sources both manpages.
2454 * Makefile.in: Add provisional rules to distribute them.
2456 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2458 * mingwex/basename.c: Make it work with path names containing
2459 multibyte character strings.
2460 * mingwex/dirname.c: Likewise.
2462 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2464 * include/io.h (__mingw_access): New static inline wrapper to restore
2465 pre-Vista 'access (fname, X_OK)' behaviour.
2466 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2468 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2470 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2472 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2474 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2476 * include/stdio.h (_unlink, unlink): Add prototypes.
2478 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2480 * include/excpt.h: Replace "_try1" in comments with "__try1".
2482 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2484 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2485 (ALL_CXXFLAGS): Likewise.
2486 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2487 (ALL_CXXFLAGS): Likewise.
2488 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2489 (ALL_CXXFLAGS): Likewise.
2491 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2493 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2495 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2497 Expose some more msvcr80.dll functions.
2498 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2499 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2500 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2501 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2503 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2505 Expose some msvcr80.dll functions.
2506 * include/stdlib.h (_set_abort_behavior): Add prototype.
2507 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2508 _set_abort_behavior mask argument.
2509 (_invalid_parameter_handler): Add typedef.
2510 (_set_invalid_parameter_handler): Add prototype.
2511 * include/stdio.h (_get_printf_count_output): Add prototype.
2512 (_set_printf_count_output): Add prototype.
2513 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2514 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2516 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2518 * include/_mingw.h (CRT_INLINE): Correct typo.
2520 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2522 * include/io.h (X_OK): Define to F_OK.
2524 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2526 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2527 unconditionally. Change comment.
2528 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2530 * include/io.h (rename): Declare.
2533 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2535 * include/libgen.h: New file; required by...
2536 * mingwex/basename.c, mingwex/dirname.c: New files.
2537 * mingwex/Makefile.in (DISTFILES): Add them...
2538 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2539 (Dependencies): Typo; s/Dependancies/Dependencies/
2541 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2543 * Makefile.in (VERSION): Let configure define it.
2545 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2546 * configure.in: Use it.
2547 Correct quoting of autoconf macro arguments throughout.
2548 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2549 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2550 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2551 (AC_CONFIG_FILES): Add, to generate Makefile.
2553 * configure: Regenerated.
2555 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2557 * Makefile.in: Add aclocal.m4 to source release.
2558 * mingwex/Makefile.in: Ditto.
2559 * profile/Makefile.in: Ditto.
2561 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2563 * Include/_mingw.h: Increment version to 3.11.
2564 * Makefile.in: Ditto.
2566 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
2568 [ mingw-Bugs-1590623 ]
2569 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
2572 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
2574 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
2575 correctly parenthesized.
2577 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2579 * mingwex/mb_wc_common.h (get_codepage): Get it
2582 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2584 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
2586 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
2588 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
2591 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
2593 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
2596 2006-09-11 Christopher Faylor <cgf@timesys.com>
2598 * Makefile.in: Semi-revert 2006-08-30 change.
2600 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2602 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
2603 (__MINGW_IMPORT): Ansify.
2604 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
2605 __MINGW_ATTRIB_DEPRECATED.
2607 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2609 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
2610 Redundant macros; deleted.
2612 * configure.in (LIB_AC_PROG_CC): Replaced by...
2613 (AC_PROG_CC): ...this.
2615 * configure: Regenerated.
2617 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
2619 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
2620 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
2621 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
2623 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
2625 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
2626 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
2627 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
2628 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
2630 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
2631 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
2632 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
2633 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
2634 * mingwex/wcstold.c: Avoid using strtold internals.
2635 * mingwex/wcstof.c: Rewrite.
2636 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
2637 (GDTOA_OBJS): Add to library.
2638 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
2639 (STDLIB_OBJS): Remove.
2640 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
2641 (Q8_OBJS): Add wcstof.o wcstold.o.
2642 * include/stdlib.h (strtof): Remove inline definition.
2644 * include/wchar.h (wcstof): Remove inline definition.
2646 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
2648 * Makefile.in: Add with_cross_host to allow more granular checks.
2649 Set installation directories accordingly. Override CC setting only
2650 if building a Cygwin target.
2651 * aclocal.m4: Regenerate.
2652 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
2653 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
2654 Test AC_ALLOCA only if building on a native system.
2655 * configure: Regenerate.
2657 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2659 * include/ctype.h: Fix typo.
2661 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2663 * include/ctype.h: Expose iswblank if __cplusplus.
2664 * include/wctype.h: Expose iswblank if __cplusplus.
2666 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2668 * include/ctype.h: Remove stray ')';
2670 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2672 * include/ctype.h (_BLANK): Expand comment.
2673 (isblank): Add prototype and inline definition.
2674 (iswblank): Add prototype and inline definition.
2675 * include/wctype.h (iswblank): Add prototype and inline definition.
2676 * mingwex/isblank.c: New file.
2677 * mingwex/iswblank.c: New file.
2678 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2680 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
2682 * include/math.h (__INFF,__INFL): Remove '#'.
2684 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2686 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2688 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
2690 Support SSE float environment in fenv.h functions.
2691 * cpu_features.c: New file.
2692 * cpu_features.h: New file.
2693 * crt1.c: Include "cpu_features.h".
2694 (__mingw_CRTStartup): Call cpu_features_init().
2695 * Makefile.in (MING_OBJS): Add cpu_features.c.
2696 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
2697 * include/fenv,h ( fenv_t;): Append __mxcsr field.
2698 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
2699 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
2700 (__MXCSR_ROUND_FLAG_SHIFT): New define.
2701 * mingwex/feclearexcept.c: Include "cpu_features.h".
2702 Handle SSE environment.
2703 * mingwex/fegetenv.c: Likewise.
2704 * mingwex/feholdexcept.c: Likewise.
2705 * mingwex/fesetenv.c: Likewise.
2706 * mingwex/fesetexceptflag.c: Likewise.
2707 * mingwex/fesetround.c: Likewise.
2708 * mingwex/fetestexcept.c: Likewise.
2709 * mingwex/feupdateenv.c: Likewise.
2710 * mingwex/fegetround.c: Add comment.
2712 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2714 * Include/_mingw.h: Increment version to 3.10.
2715 * Makefile.in: Ditto.
2717 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2719 * mingwex/math/tgamma.c (SQTPI): Add braces.
2721 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2723 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2724 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2726 * mingwex/math/sf_erf.c (erff): Initialize z.
2728 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2730 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2732 * Include/_mingw.h: Increment version to 3.10.
2733 * Makefile.in: Ditto.
2735 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2737 * include/sys/time.h (struct timezone): Define.
2738 * include/time.h: Correct comment about timezone.
2740 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2742 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2743 * configure: Regenerate.
2745 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2747 * configure: add srcdir as a possible location for install-sh.
2749 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2751 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2752 (_topendir): Use it.
2754 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2756 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2758 (gettimeofday): Add prototype.
2759 * mingwex/gettimeofday.c: New file.
2760 * mingwex/makefile.in: Add gettimeofday source and object.
2762 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2764 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2765 else global library variable.
2766 (HUGEVALF): Likewise.
2767 (HUGEVALL): Likewise.
2768 (INFINITY): Likewise.
2771 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2773 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2775 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2777 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2779 2006-05-24 Christopher Faylor <cgf@timesys.com>
2781 * configure.in: Update to newer autoconf.
2782 (thanks to Steve Ellcey)
2783 * mingwex/configure.in: Ditto.
2784 * profile/configure.in: Ditto.
2785 * configure: Regenerate.
2786 * mingwex/configure: Ditto.
2787 * profile/configure: Ditto.
2788 * aclocal.m4: New file.
2789 * mingwex/aclocal.m4: Ditto.
2790 * profile/aclocal.m4: Ditto.
2792 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2794 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2795 Use supplied codepage as arg to WideCharToMultiByte.
2797 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2799 * Makefile.in (libmsvcr80.a): Add import lib.
2800 (libmsvcr80d.a): Ditto.
2802 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2804 * Makefile.in: Bump cygwin build number.
2806 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2808 * Include/_mingw.h: Increment version to 3.9.
2809 * Makefile.in: Ditto.
2811 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2813 * include/limits.h (SSIZE_MAX): Define.
2814 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2816 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2818 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2819 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2821 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2823 * include/stddef.h: Remove.
2824 * include/stdarg.h: Remove.
2826 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2828 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2829 of result is positive when real part of arg == 0;
2830 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2831 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2833 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2835 * include/time.h (_time64): Correct prototype.
2837 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2839 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2840 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2841 to non-stop. Use "fnclex" to clear exception flags.
2843 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
2845 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
2846 Avoid raising FP exceptions.
2848 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2850 * include/stdlib.h (strtof): Add prototype. Uglify
2851 parameter names in inline definition.
2853 (_Exit): Uglify parameter names in inline definition.
2854 (llabs): Add prototype.
2855 (_set_error_mode): Add prototype and input defines.
2857 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2859 * mingwex/fe*.c: Revert previous changes.
2860 * include/fenv.h: Revert previous changes.
2862 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2864 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
2865 Do not return a value.
2866 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
2867 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
2868 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
2869 * mingwex/fegetenv.c (fegetenv): Likewise.
2870 * mingwex/fesetenv.c (fesetenv): Likewise.
2871 * mingwex/feupdateenv.c (feupdateenv): Likewise.
2872 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
2873 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
2876 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2878 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
2879 getting filelength for SEEK_END.
2881 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2883 * Include/_mingw.h: Increment version to 3.8.
2884 * Makefile.in: Ditto.
2886 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2888 * include/wctype.h (towupper, towlower): Change arg and return value
2890 * include/ctype.h (towupper, towlower): Likewise.
2892 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2894 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
2895 a diagnostic, guarded by #ifdef DEBUG.
2896 (__mingwthr_remove_key_dtor): Likewise.
2898 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2900 * moldname.def.in (sleep, beep, seterrormode): Remove.
2902 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2904 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
2905 (_MCOUNT_DECL): Use it.
2906 (MCOUNT): Save and restore eax, ecx, edx registers.
2907 * profile/mcount.c (_mcount): ANSI-fy.
2909 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2911 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
2912 guard __MINGW_ATTRIB macro definitions.
2913 * include/math.h (logb[fl]): Don't define inlines for
2914 GCC-4.0+ && __FAST_MATH__.
2915 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
2916 line-continuation backslashes.
2918 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
2920 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
2921 in GNUC version guard.
2923 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
2925 * crt1.c (_gnu_exception_handler): Handle illegal instruction
2926 OS exception as a signal if user has defined a SIGILL handler.
2928 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
2930 * mingwex/math/nexttoward.c: New file.
2931 * mingwex/math/nexttowardf.c: New file.
2932 * mingwex/math/nextafterl.c: Add nexttowardl alias.
2933 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
2935 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
2936 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
2939 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
2941 * mingwex/math/nextafterf.c (nextafterf): Correct
2943 * mingwex/math/nextafterl.c: New file.
2944 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
2945 (MATH_OBJS): Add nextafterl.o.
2946 * include/math.h (nextafterl): Uncomment prototype.
2948 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2950 * mingwex/math/erfl.c: New file.
2951 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
2952 (MATH_OBJS): Add erfl.o.
2953 * include/math.h (erfl, erfcl): Uncomment prototypes.
2955 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
2957 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
2958 #if (WCHAR_MAX <= WCHAR_MIN) is false.
2959 * include/stdint.h (WCHAR_MAX): Likewise.
2960 (WINT_MAX): Likewise.
2962 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
2964 * mingwex/math/signbit.c (__signbit): Make return value
2965 consistent with GCC's __builtin_signbit.
2966 * mingwex/math/signbitf.c (__signbitf): Likewise.
2967 * mingwex/math/signbitf.c (__signbitl): Likewise.
2968 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
2971 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
2973 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
2975 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
2976 Remove unused MBTOWC_FLAGS define.
2978 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
2980 * mingwex/mbrtowc.c: New file.
2981 * mingwex/wcrtomb.c: New file.
2982 * mingwex/btowc.c: New file.
2983 * mingwex/wctob.c: New file.
2984 * mingwex/mb_wc_common.h: New file.
2985 * mingwex/Makefile.in (DISTFILES): Add new files.
2986 (Q8_OBJS): Add new objects.
2987 * include/wchar.h: Adjust comment about mbrtowc() and related
2988 funcions. Add __restrict__ to pointer params in prototypes.
2989 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
2990 arg names from protototypes.
2992 2005-04-23 Wu Yongwei <adah@sh163.net>
2994 * mingwex/dirent.c: Formatting changes.
2995 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
2998 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
3000 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
3002 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
3004 * include/stdio.h (__mingw_fwrite): Change return value to
3006 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
3008 2005-03-15 Hans Leidekker <hans@it.vu.nl>
3010 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
3012 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3014 * include/wctype.h (wctrans): Remove _CRTIMP.
3015 (towctrans): Likewise.
3018 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3020 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
3022 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3024 * mingwex/wctype.c: New file.
3025 * mingwex/wctrans.c: New file.
3026 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
3027 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
3029 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3031 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
3033 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
3035 * include/assert.h: Remove header guard. #undef assert macro.
3036 (_assert): Use __MINGW_ATTRIB_NORETURN define.
3038 2005-02-11 Gregory W. Chicares <chicares@cox.net>
3040 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
3041 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
3043 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
3044 * mingwex/math/expm1.c: New file.
3045 * mingwex/math/expm1f.c: New file.
3046 * mingwex/math/expm1l.c: New file.
3048 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
3050 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
3051 * include/wchar.h (struct stat): Likewise.
3052 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
3054 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
3056 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3058 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
3059 string is not valid.
3061 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
3063 * include/malloc.h: Add missing return code defines for
3066 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
3068 * include/sys/stat.h (struct __stat64): Change st_size type to
3070 * include/wchar.h (struct __stat64): Change st_size type to __int64.
3072 2005-01-13 Earnie Boyd <earnie@users.sf.net>
3074 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3076 * include/errno.h (ELOOP): Ditto.
3077 * include/_mingw.h: Increment version to 3.7.
3078 * Makefile.in: Ditto.
3080 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3082 * include/tchar.h (_tfreopen): Add UNICODE mappings.
3084 2005-01-11 Earnie Boyd <earnie@users.sf.net>
3086 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3087 lstat): Conditionalize defines for __STRICT_ANSI__.
3089 2005-01-10 Earnie Boyd <earnie@users.sf.net>
3091 * include/errno.h (ELOOP): Add definition.
3093 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
3095 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
3096 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
3097 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
3098 ctanl.c ctanhl.c): New files.
3099 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3100 (COMPLEX_OBJS): Adjust.
3101 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
3102 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
3103 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
3106 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3108 * include/_mingw.h (__int16): Define as short.
3109 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3111 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3113 * include/stdio.h (P_tmpdir): Add define.
3115 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3117 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3119 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3121 * include/_mingw.h: Increment version to 3.6
3122 * Makefile.in: Ditto
3124 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3126 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3127 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3128 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3129 ctanf.c ctanhf.c): New files.
3130 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3131 (COMPLEX_OBJS): Adjust.
3132 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3133 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3134 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3137 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3139 * include/wchar.h (wcsdup): Correct prototype.
3140 * include/string.h (wcsdup): Correct prototype.
3142 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3144 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3146 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3148 * mingwex/math/fastmath.h: New file.
3149 * mingwex/math/asinh.c: New file.
3150 * mingwex/math/asinhf.c: New file.
3151 * mingwex/math/asinhl.c: New file.
3152 * mingwex/math/acosh.c: New file.
3153 * mingwex/math/acoshf.c: New file.
3154 * mingwex/math/acoshl.c: New file.
3155 * mingwex/math/atanh.c: New file.
3156 * mingwex/math/atanhf.c: New file.
3157 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3158 atanh, atanhf, atanhl): Add prototypes.
3159 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3160 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3161 Specify dependency on fastmath.h for new objects.
3163 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3165 * include/sys/stat.h (_S_IFLNK): Add definition.
3172 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3174 * include/sys/stat.h (_S_ISLNK): Add definition.
3177 2004-09-05 Earnie Boyd <earnie@users.sf.net>
3179 * include/_mingw.h: Increment minor version for 3.5 release.
3180 * Makefile.in: Ditto.
3181 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
3183 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3185 * include/malloc.h (__mingw_aligned_offset_malloc,
3186 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
3187 __mingw_aligned_realloc, __mingw_aligned_free): Add
3189 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
3190 tst-aligned-malloc.c.
3191 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
3193 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
3195 * mingwex/mingw-aligned-malloc.c: New file.
3196 * mingwex/tst-aligned-malloc.c: New file.
3198 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3200 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
3201 noreturn attribute. Align stack to 16 bytes before passing args
3203 (mainCRTStartup): Change return to void.
3204 (WinMainCRTStartup): Likewise.
3206 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3208 * profile/COPYING: New file.
3209 * profile/CYGWIN_LICENSE: New file.
3210 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
3212 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3214 * mingwex/fopen64.c: Move.
3215 * mingwex/fseeko64.c: Move.
3216 * mingwex/ftello64.c: Move.
3217 * mingwex/lseek64.c: Move.
3218 * mingwex/stdio/fopen64.c: To here.
3219 * mingwex/stdio/fseeko64.c: To here.
3220 * mingwex/stdio/ftello64.c: To here.
3221 * mingwex/stdio/lseek64.c: To here.
3223 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3225 * profile/gmon.c [__MINGW32__]: Include string.h for
3228 2004-08-08 Christopher Faylor <cgf@timesys.com>
3230 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
3232 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3234 * include/complex.h: Remove __attribute__ ((const)) from
3235 transcendantal and trig functions. Replace __attribute__ ((const))
3236 with __MINGW_ATTRIB_CONST on other declarations.
3238 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3240 * include/wchar.h: Reorganize, avoid including other headers.
3242 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3244 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
3245 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
3248 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3250 * include/dirent.h (struct _wdirent): Remove obsolete comment.
3252 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3254 * include/string.h: Revert 2004-07-26 additions of
3257 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3259 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3260 (__convert_inf_to_maxnum): New.static inline.
3261 (reducl): Use it to protect against Inf - Inf.
3262 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3264 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3266 * mingwex/math/expl.c (expl): Move body of code to new static
3267 function __expl, removing tests for +/-Inf. Extern function
3268 expl calls __expl after testing for max, min log thresholds.
3270 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3272 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
3273 * mingwex/stdio/vfscanf.c: Likewise.
3274 * mingwex/stdio/vswscanf.c: Likewise.
3275 * mingwex/stdio/vfwscanf.c: Likewise.
3277 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3279 * include/_mingw.h: Use only two underscores to uglify
3280 __MINGW_ATTRIB_* macros.
3281 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
3282 * include/setjmp.h: Likewise.
3284 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
3286 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
3288 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3290 * include/string.h: Group wide string functions together,
3291 and protect with _WSTRING_DEFINED.
3293 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3295 * include/_mingw.h (__MINGW_ATTR_*): Replace with
3297 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
3298 __MINGW_ATTRIB_NORETURN, throughout.
3299 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3301 (abs): Declare with __MINGW_ATTRIB_CONST.
3310 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3312 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3314 * include/_mingw.h: Undefine __attribute__.
3315 (__MINGW_ATTR_NORETURN): New define.
3316 (__MINGW_ATTR_CONST): New define.
3317 (__MINGW_ATTR_MALLOC): New define.
3318 (__MINGW_ATTR_PURE): New define.
3319 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3322 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3324 * include/time.h (__time64_t): Add missing ';'.
3326 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3328 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3329 (struct tm): Protect with _TM_DEFINED.
3331 2004-07-17 Christopher Faylor <cgf@timesys.com>
3333 * Makefile.in (CC): Strip inappropriate include file settings from any
3336 2004-07-15 "dgun" <dgun@umpire.com>
3338 * include/complex.h (conj): Correct typo in prototype.
3340 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3342 * include/math.h: Add pragma GCC system_header.
3344 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3346 * mingwex/complex/carg.c: New file.
3347 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3349 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3351 * Makefile.in (INCLUDES): Temporarily revert previous change.
3352 * mingwex/Makefile,in (INCLUDES): Ditto.
3353 * profile/Makefile,in (INCLUDES): Ditto.
3354 * mingwex/Makefile,in: Drop carg.o dependency.
3356 2004-07-14 Christopher Faylor <cgf@timesys.com>
3358 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3360 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3362 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3364 * mingwex/Makefile,in (INCLUDES): Ditto.
3365 * profile/Makefile,in (INCLUDES): Ditto.
3367 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3369 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3371 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3373 * mingwex/Makefile.in: Ditto.
3374 * profile/Makefile.in: Ditto.
3375 * include/limits.h: Change to new file header preamble.
3376 * include/_mingw.h: Increment minor version for 3.4 release.
3377 * Makefile.in: Ditto.
3379 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3381 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3383 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3385 * include/unistd.h (ftruncate): Add inline definition.
3386 * mingwex/ftruncate.c: New file.
3387 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3389 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3391 * include/time.h: Do not include sys/types.h.
3393 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3395 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3396 (MATH_OBJS): Remove pow,o.
3397 * include/math.h (pow): Declare with _CRTIMP.
3398 Add comment on how to avoid excess precision problems.
3400 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3402 * include/stdio.h (__mingw_fseeko64): Add prototype.
3403 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3404 (__mingw_fwrite): Handle huge files.
3406 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3407 Danny Smith <dannysmith@users.sourceforge.net>
3409 * include/stdio.h (fopen64): Add inline function.
3410 (fseeko64): Add prototype.
3411 (ftello64): Add inline function.
3412 * include/io.h (lseek64): Add inline function.
3413 * include/sys/types (off64_t): Add typedef.
3414 (fpos64_t): Add typedef.
3415 * mingwex/fopen64.c: New file.
3416 * mingwex/fseeko64.c: New file.
3417 * mingwex/ftello64.c: New file.
3418 * mingwex/lseek64.c: New file.
3419 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3420 fseeko.64.c, ftello64.c, lseek64.c.
3421 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3423 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3425 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3427 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3429 * DISCLAIMER: Add words about "free to use".
3430 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3431 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3432 (inst_docdir): New variable.
3434 (FLAGS_TO_PASS): Include inst_docdir.
3435 (install-dirs): Add inst_docdir.
3436 (install): Add loop for INSTDOCS.
3437 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3438 section to CONTRIBUTORS file. Remove RCS tags.
3440 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3442 * mingwex/math/lround.c: Rewrite.
3443 * mingwex/math/lroundf.c: Rewrite.
3444 * mingwex/math/lroundl.c: Rewrite.
3445 * mingwex/math/llround.c: Rewrite.
3446 * mingwex/math/llroundf.c: Rewrite.
3447 * mingwex/math/llroundl.c: Rewrite.
3449 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3451 * CONTRIBUTORS: New file.
3452 * DISCLAIMER: Ditto.
3453 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3454 section to CONTRIBUTORS file. Remove RCS tags.
3455 * CRTFmode.c: Ditto.
3459 * crtdll.dev: Ditto.
3469 * msvcrt.def.in: Ditto.
3470 * strcasecmp.c: Ditto.
3473 * include/assert.h: Ditto.
3474 * include/conio.h: Ditto.
3475 * include/ctype.h: Ditto.
3476 * include/direct.h: Ditto.
3477 * include/dirent.h: Ditto.
3478 * include/dos.h: Ditto.
3479 * include/errno.h: Ditto.
3480 * include/excpt.h: Ditto.
3481 * include/fcntl.h: Ditto.
3482 * include/float.h: Ditto.
3483 * include/io.h: Ditto.
3484 * include/locale.h: Ditto.
3485 * include/malloc.h: Ditto.
3486 * include/math.h: Ditto.
3487 * include/process.h: Ditto.
3488 * include/setjmp.h: Ditto.
3489 * include/share.h: Ditto.
3490 * include/signal.h: Ditto.
3491 * include/stdio.h: Ditto.
3492 * include/stdlib.h: Ditto.
3493 * include/string.h: Ditto.
3494 * include/tchar.h: Ditto.
3495 * include/time.h: Ditto.
3496 * include/wchar.h: Ditto.
3497 * include/sys/locking.h: Ditto.
3498 * include/sys/param.h: Ditto.
3499 * include/sys/stat.h: Ditto.
3500 * include/sys/timeb.h: Ditto.
3501 * include/sys/types.h: Ditto.
3502 * include/sys/utime.h: Ditto.
3503 * mingwex/dirent.c: Ditto.
3505 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3507 * include/_mingw.h: Revert to primary release 3 and increment minor
3509 * Makefile.in (VERSION): Ditto.
3511 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3513 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3514 _fmode if not __MSVCRT__.
3516 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3518 * include/io.h: (_findfirst): Correct prototype.
3520 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3522 * include/io.h: (_findnext, _findclose): Correct prototype.
3524 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3526 * include/math.h (FP_*): Add defines.
3528 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3530 * mingwex/math/round.c: Rewrite.
3531 * mingwex/math/roundf.c: Rewrite.
3532 * mingwex/math/roundl.c: Rewrite.
3534 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3536 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3537 * include/time.h (__time64_t): Add typedef.
3538 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3539 (_ctime64): Likewise.
3540 (_wctime64): Likewise.
3541 (_gmtime64): Likewise.
3542 (_localtime64): Likewise.
3543 (wcsftime): Move into _WTIME_DEFINED block.
3544 Regroup non-ANSI prototypes.
3545 * include/io.h: Include <stdint.h>.
3546 (__finddata64_t): Add struct definition.
3547 (__wfinddata64_t): Likewise.
3548 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3549 (_findnext64): Likewise.
3550 (_wfindfirst64): Likewise.
3551 (_wfindnext64): Likewise.
3552 * include/sys/timeb.h (__timeb64): Add struct definition.
3553 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3554 * include/sys/utime.h (__utimbuf64): Add struct definition.
3555 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3556 (_futime64): Likewise.
3557 (_wutime64): Likewise.
3558 * include/sys/stat.h (__stat64): Add struct definition.
3559 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3560 (_stat64): Likewise.
3561 (_wstat64): Likewise.
3562 * include/sys/types.h (__time64_t): Add typedef.
3563 * include/wchar.h (__wfinddata64_t): Add structure definition.
3564 (__stat64): Likewise.
3565 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3566 (_wfindfirst64): Likewise.
3567 (_wfindnext64): Likewise.
3568 (_wutime64): Likewise.
3569 (_wstat64): Likewise.
3570 * include/malloc.h (_aligned_free): Add prototype for
3571 __MSVCRT_VERSION__ >= 0x0700.
3572 (_aligned_malloc): Likewise.
3573 (_aligned_offset_malloc): Likewise.
3574 (_aligned_offset_realloc): Likewise.
3575 (_aligned_realloc): Likewise.
3576 * include/string.h (_wcserror): Add prototype for
3577 __MSVCRT_VERSION__ >= 0x0700.
3578 (__wcserror): Likewise.
3579 * include/math.h (_set_SSE2_enable): Add prototype for
3580 __MSVCRT_VERSION__ >= 0x0701.
3582 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3584 * include/stdio.h (_fsopen): Add prototype.
3585 * include/tchar.h (_tfsopen): Add defines.
3586 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
3588 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3590 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
3591 msvcr70.dll, and msvcr71.dll.
3592 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
3593 using basename of output def file.
3595 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3597 * include/malloc.h: Remove __STRICT_ANSI__ guard.
3599 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
3601 * include/process.h: Remove the #endif associated with removal of
3602 __STRICT_ANSI__ guard from non-ANSI header.
3604 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3606 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
3607 * include/direct.h: Ditto.
3608 * include/dirent.h: Ditto.
3609 * include/dos.h: Ditto.
3610 * include/excpt.h: Ditto.
3612 * include/io.h: Ditto.
3613 * inlude/mem.h: Ditto.
3614 * include/memory.h: Ditto.
3615 * include/process.h: Ditto.
3616 * inlude/search.h: Ditto.
3617 * include/share.h: Ditto.
3618 * include/unistd.h: Ditto.
3619 * include/sys/fcntl.h: Ditto.
3620 * include/file.h: Ditto.
3621 * include/sys/locking.h: Ditto.
3622 * include/sys/param.h: Ditto.
3623 * include/sys/stat,h
3624 * include/sys/time.h: Ditto.
3625 * include/sys/timeb.h: Ditto.
3626 * include/sys/types.h: Ditto.
3627 * include/sys/unistd.h: Ditto.
3628 * include/sys/utime.h: Ditto.
3630 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
3632 * include/_mingw.h (__UNUSED_PARAM): Define macro.
3633 * include/wchar.h (fwide): Use it.
3636 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3638 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
3639 NetBSD getopt_long.c.
3641 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3643 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
3644 codes and handling of special chars.
3646 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
3648 * include/stdio.h (feof): Add inlined definition.
3651 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3653 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
3654 directly, rather than via scabnl.
3656 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3658 * mingwex/math/powl.c (powl): Return infinity if
3659 extended precision multiplication of x by log2(y)
3662 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3664 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
3665 (__enan_NI16): Fix another one.
3666 (__enan_NBITS): Tidy.
3668 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3670 * include/stdint.h [__STDC_CONSTANT_MACROS]: Fix for 8 and 16 bit
3671 types. (Thanks to John Maddock for report.)
3673 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
3675 * include/tchar.h (_puttchar): Define.
3677 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
3679 * include/stdio.h:(_fileno): Define macro version after both
3680 fileno and _fileno functions declared.
3682 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
3683 * moldnames.def.in (rmtmp) Add stub.
3685 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
3687 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
3689 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
3691 * include/math.h: Guard ISO C99 additions with __cplusplus
3694 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3696 * include/_mingw.h: Define __attribute__((x)) to nothing
3699 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3701 * include/complex.h: New file.
3702 * mingwex/complex: New directory.
3703 * mingwex/complex/cabs.c: New file.
3704 * mingwex/complex/cacos.c: New file.
3705 * mingwex/complex/cacosh.c: New file.
3706 * mingwex/complex/casin.c: New file.
3707 * mingwex/complex/casinh.c: New file.
3708 * mingwex/complex/catan.c: New file.
3709 * mingwex/complex/catanh.c: New file.
3710 * mingwex/complex/ccos.c: New file.
3711 * mingwex/complex/ccosh.c: New file.
3712 * mingwex/complex/cexp.c: New file.
3713 * mingwex/complex/cimag.c: New file.
3714 * mingwex/complex/clog.c: New file.
3715 * mingwex/complex/cpow.c: New file.
3716 * mingwex/complex/cproj.c: New file.
3717 * mingwex/complex/creal.c: New file.
3718 * mingwex/complex/csin.c: New file.
3719 * mingwex/complex/csinh.c: New file.
3720 * mingwex/complex/csqrt.c: New file.
3721 * mingwex/complex/ctan.c: New file.
3722 * mingwex/complex/ctanh.c: New file.
3723 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3726 (COMPLEX_OBJS): New list of objects.
3727 (LIB_OBJS): Include it in the library.
3729 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3731 * include/math.h (cabs): Remove non-ISO prototype.
3733 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3735 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3736 Use GCC __builtin's if available.
3737 (INFINITY, INFINITYF, INFINITYL): Likewise.
3739 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3741 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3742 beyond approximation limit.
3743 * mingwex/math/sf_erf.c (erff): Likewise.
3745 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3747 * include/stdio.h (getc): Cast result to unsigned char before
3750 (getchar): Likewise.
3751 (putchar): Likewise.
3752 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3754 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3756 * include/_mingw.h: Increment version to 3.2.
3757 * Makefile.in: Ditto.
3759 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3761 * include/sys/types.h: Revert last change.
3763 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3765 * include/sys/types.h (ssize_t): Correct the definition.
3767 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3769 * include/stdio.h (_filbuf): Add prototype.
3770 (_flsbuf): Add prototype.
3771 (getc): Add inline version.
3773 (getchar): Likewise.
3774 (putchar): Likewise.
3776 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3778 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3781 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3783 * include/stdlib.h: Guard non-ISO functions with
3784 !__STRICT_ANSI__, throughout.
3786 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3788 * include/io.h (_fileno): Remove prototype.
3790 (FILENAME_MAX): Define, if needed.
3791 Don't include <stdio.h>.
3792 * include/stdio.h (FILENAME_MAX): Protect against
3794 (_fileno): Define macro implementation.
3797 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3799 * include/inttypes.h: Include _mingw.h.
3801 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3803 * include/_mingw.h (__CRT_INLINE): Define.
3804 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3806 * include/inttypes.h: Likewise.
3807 * include/math.h: Likewise.
3808 * include/stdio.h: Likewise.
3809 * include/stdlib.h: Likewise.
3810 * include/string.h: Likewise.
3811 * include/wchar.h: Likewise.
3812 * include/wctype.h: Likewise.
3814 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3816 * mingwex/dirent.c (_topendir): Allocate enough memory for
3817 DIR struct in UNICODE case too.
3819 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3821 * include/_mingw.h: Increment version to 3.2.
3822 * Makefile.in: Ditto.
3824 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3826 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3828 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3830 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3831 * mingwex/math/truncf.c (truncf): Likewise.
3832 * mingwex/math/truncl.c (truncl): Likewise.
3833 * mingwex/math/modff.c (modff): Likewise.
3834 * mingwex/math/modfl.c (modfl): Likewise.
3836 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3838 * include/search.h: New file.
3839 * include/stdlib.h: Add comment about qsort, bsearch in
3841 * test_headers.c: Include search.h.
3842 * moldname.def.in (lfind, lsearch): Add.
3844 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3846 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
3847 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
3848 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
3850 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3852 * include/_mingw.h (small, hyper): Change to __small and __hyper to
3853 avoid user space name conflicts.
3855 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3857 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
3858 Note: Also added to w32api/include/basetyps.h.
3859 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
3860 Rename to Small (case difference).
3862 2003-06-18 Earnie Boyd <earnie@users.sf.net>
3864 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
3865 * mingwex/dirent.c: Modifications througout to fill d_name array.
3866 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
3867 libmsvcr71, including debug versions.
3868 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
3870 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
3872 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
3873 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
3875 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
3877 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
3879 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
3881 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
3883 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
3884 but still protect inline definition with __STRICT_ANSI__.
3886 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
3888 * string_old.c: Remove, splitting into...
3889 * strcasecmp.c: New file.
3890 * strncasecmp.c: New file.
3891 * wscmpi.c : New file.
3892 * ctype_old.c: Remove, splitting into...
3893 * isascii.c: New file.
3894 * iscsym.c: New file.
3895 * iscsymf.c: New file.
3896 * toascii.c: New file.
3897 * Makefile.in (MOLD_OBJS): Adjust.
3898 (SRCDIST_FILES): Adjust.
3900 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
3902 * include/math.h (fabs) : Remove inline definition.
3906 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3908 * include/_mingw.h: Change version to 3.0
3909 * Makefile.in: Ditto.
3911 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3913 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
3914 * mingwex/configure.in (W32API_INCLUDE): Ditto.
3915 * profile/configure.in (W32API_INCLUDE): Ditto.
3917 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3919 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
3920 of multiply defined symbols if the symbols is defined locally. E.G.:
3921 A local definition of malloc causes this problem.
3922 * configure: Regenerate.
3923 * profile/Makefile.in (W32API_INCLUDE): New variable.
3924 (ALL_CFLAGS): Use W32API_INCLUDE value.
3925 (ALL_CXXFLAGS): Ditto.
3926 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
3927 Thanks to Jeff Bonggren <jbon@users.sf.net>.
3928 * profile/configure.in (W32API_INCLUDE): Set default value.
3929 * profile/configure: Regenerate.
3930 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
3931 (ALL_CFLAGS): Use W32API-INCLUDE value.
3932 (ALL_CXXFLAGS): Ditto.
3933 * mingwex/configure.in (W32API_INCLUDE): Set default value.
3934 * mingwex/configure: Regenerate.
3936 2003-05-05 Earnie Boyd <earnie@users.sf.net>
3938 * Makefile.in (W32API_INCLUDE): New variable.
3939 (ALL_CFLAGS): Use W32API_INCLUDE value.
3940 (ALL_CXXFLAGS): Ditto.
3941 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
3942 (W32API_INCLUDE): Set default value.
3943 * configure: Regenerate.
3945 2003-04-11 Earnie Boyd <earnie@users.sf.net>
3947 * configure.in (LIBM_A): Define for cygwin target.
3948 * configure (LIBM_A): Ditto.
3950 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
3952 * include/time.h (strftime): Remove duplicate declaration.
3954 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3956 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
3958 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3960 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
3961 * mingwex/strtoimax.c (strtoimax): Likewise.
3962 * mingwex/wcstoimax.c (wcstoimax): Likewise.
3963 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
3964 * mingwex/fesentenv.c: Include float.h.
3965 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
3967 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
3969 * mingwex/math/tgammal.c: Likewise.
3971 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3973 * include/utime.h: New file, forwarding to sys/utime.h.
3975 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3977 * include/sys/param.h (MAXPATHLEN): Define.
3979 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3981 * include/tchar.h: Ansi-fy a comment.
3983 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3985 * profile/profile.h (mcount): Use __builtin_return_address
3986 rather than inline __asm statements.
3987 * profile/Makefile.in: Remove special rule for mcount.o
3988 Specify dependencies for mcount.o profil.o gmon.o.
3990 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3992 * include/stdlib.h (qsort): Remove const from first parm.
3993 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
3995 2003-03-03 Christopher Faylor <cgf@redhat.com>
3997 * mingwex/getopt.c: Refresh from NetBSD sources.
3999 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
4001 * mingwex/getopt.c: New file, copied from cygwin srcs.
4002 * include/getopt.h: New file, copied from cygwin srcs.
4003 * include/unistd.h: Include getopt.h.
4004 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
4005 (POSIX_OBJS): Add getopt.o.
4007 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
4009 * include/stdio.h (vscanf): Add prototype.
4015 * include/wchar.h (vwscanf): Add prototype.
4018 * mingwex/snprintf.c: Move to mingwex/stdio.
4019 * mingwex/vsnprintf.c: Ditto.
4020 * mingwex/snwprintf.c: Ditto.
4021 * mingwex/vsnwprintf.c: Ditto.
4022 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
4023 (STDIO_DISTFILES): Add.
4024 (DISTFILES): Adjust.
4025 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
4029 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
4031 * mingwex/stdio: New directory
4032 * mingwex/stdio/vfscanf.c: New file.
4033 * mingwex/stdio/vfwscanf.c: New file.
4034 * mingwex/stdio/vscanf.c: New file.
4035 * mingwex/stdio/vsscanf.c: New file.
4036 * mingwex/stdio/vswscanf.c: New file.
4037 * mingwex/stdio/vwscanf.c: New file.
4039 2003-02-25 Earnie Boyd <earnie@users.sf.net>
4041 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
4042 (libmsvcrt40.a): Ditto.
4044 2003-02-21 Earnie Boyd <earnie@users.sf.net>
4046 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
4048 * Makefile.in (libmsvcrtd.a): Add target library.
4049 (libmoldnamed.a): Ditto.
4050 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
4052 ($(srcdir)): Remove explicit reference for depencies of object targets.
4053 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
4054 msvcrt20.def, msvcrt40.def: Remove.
4055 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
4057 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
4059 * Makefile.in: Make sure libmingwex.a from current build tree is used.
4061 2003-02-14 Christopher Faylor <cgf@redhat.com>
4063 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
4064 ensure -mno-cygwin where appropriate. Filter out -O2.
4066 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
4068 * profile/Makefile.in (mcount.o): Use -O1 optimization
4071 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4073 * include/math.h: Remove _CRTIMP from pow() prototype,
4074 unless __NO_ISOCEXT.
4076 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4078 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
4080 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4082 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
4083 __declspec(dllimport) supported.
4084 (__cdecl): Define if not already defined.
4085 (__stdcall): Likewise.
4086 * include/dirent.h: Qualify fuctions with __cdecl.
4087 * include/fenv.h: Likewise.
4088 * include/inttypes.h: Likewise.
4089 * include/assert.h: Qualify fuctions with __cdecl. Qualify
4090 CRT dll imports with _CRTIMP.
4091 * include/conio.h: Likewise.
4092 * include/ctype.h: Likewise.
4093 * include/direct.h: Likewise.
4094 * include/dos.h: Likewise.
4095 * include/errno.h: Likewise.
4096 * include/float.h: Likewise.
4097 * include/io.h: Likewise.
4098 * include/locale.h: Likewise.
4099 * include/malloc.h: Likewise.
4100 * include/math.h: Likewise.
4101 * include/mbctype.h: Likewise.
4102 * include/mbstring.h: Likewise.
4103 * include/process.h: Likewise.
4104 * include/setjmp.h: Likewise.
4105 * include/signal.h: Likewise.
4106 * include/stdio.h: Likewise.
4107 * include/stdlib.h: Likewise.
4108 * include/string.h: Likewise.
4109 * include/time.h: Likewise.
4110 * include/wchar.h: Likewise.
4111 * include/wctype.h: Likewise.
4112 * include/sys/stat.h: Likewise.
4113 * include/sys/timeb.h: Likewise.
4114 * include/sys/utime.h: Likewise.
4116 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4117 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4119 * include/stdio.h (__VALIST): Guard against prior definition.
4121 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4123 * include/_mingw.h: Change version to 3.0
4124 * Makefile.in: Ditto.
4126 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4128 * include/stdlib.h: Make words after #endif a comment.
4130 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4132 * include/locale.h: Include stddef.h for definition of NULL.
4134 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4136 * include/math.h (tgamma): Correct typo in comment.
4138 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4140 * mingwex/mingw-fseek.c (INLINE): Remove define.
4141 (__mingw_is_win9x): Remove static inline function.
4142 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4144 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4146 * mingwex/math/llround.c: Correct function name and
4147 change return value to long long.
4149 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4151 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4152 (iswascii): Likewise. Correct mask.
4153 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4156 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4158 * include/stdlib.h (_osver, _winver, _winmajor,
4159 _winminor): Declare as direct imports from dll if
4160 __DECLSPEC_SUPPORTED.
4162 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4164 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4165 * pseudo-reloc-list.c: New file.
4166 * crt1.c (_pei386_runtime_relocator): Declare.
4167 (__mingw_CRTStartup): Call it.
4168 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4169 (DllMainCRTStartup): Call it.
4170 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
4173 2003-01-01 Egor Duda <deo@logos-m.ru>
4175 * pseudo-reloc.c: New file.
4177 2002-12-20 Earnie Boyd <earnie@users.sf.net>
4179 * include/_mingw.h: Increment version to 2.4.
4182 2002-12-12 Earnie Boyd <earnie@users.sf.net>
4184 * include/malloc.h (_alloca): Add definition.
4187 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
4189 * mingwex/math/s_erf.c: New file.
4190 * mingwex/math/sf_erf.c: New file.
4191 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4192 (MATH_OBJS): Add new objects.
4193 * include/math.h (erf[f]): Add prototypes.
4194 (erfc[f]): Add prototypes.
4196 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
4198 * include/math.h: Add traditional/XOPEN math constants.
4200 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
4202 * mingwex/math/lgamma.c: New file.
4203 * mingwex/math/lgammaf.c: New file.
4204 * mingwex/math/lgammal.c: New file.
4205 * mingwex/math/tgamma.c: New file.
4206 * mingwex/math/tgammaf.c: New file.
4207 * mingwex/math/tgammal.c: New file.
4208 * mingwex/math/cephes_mconf (polevlf): Add float version.
4210 Define _CEPHES_USE_ERRNO.
4211 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4212 (MATH_OBJS): Add new objects.
4213 * include/math.h (lgamma[fl]): Add prototypes.
4214 (tgamma[fl]): Add prototypes.
4216 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
4218 * mingwex/strtold.c: New file.
4219 * mingwex/wcstold.c: New file.
4220 * mingwex/ldtoa.c: New file.
4221 * mingwex/math/cephes_emath.h: New file.
4222 * mingwex/math/cephes_emath.c: New file.
4223 * mingwex/Makefile.in (DISTFILES): Add new files.
4224 (MATH_DISTFILES): Ditto.
4225 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
4226 (MATH_OBJS): Add cephes_emath.o.
4227 (LIB_OBJS): Add $(STDLIB_OBJS).
4228 * include/stdlib.h (strtold, wcstold): Add prototypes.
4229 * include/wchar.h (wcstold): Add prototype.
4231 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
4233 * include/math.h (sqrt): Remove inline definition.
4234 (sqrtf): Replace inline definition with prototype.
4236 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
4237 argument less than zero.
4238 * mingwex/math/sqrtf.c (sqrtl): Likewise.
4240 2002-10-30 Guido Serassio <serassio@libero.it>
4242 * include/stdio.h (_getmaxstdio): Add prototype.
4243 (_setmaxstdio): Likewise.
4245 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
4247 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
4249 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4251 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
4253 Define WIN32_MEAN_AND_LEAN before including windows.h
4254 * include/stdlib.h (_fmode): Protect declaration as dllimported
4255 variable with __IN_MINGW_RUNTIME.
4257 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4259 * crt1.c: Include stdlib.h.
4261 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4263 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4264 (MINGW_OBJS): Add txtmode.o.
4265 (SRCDIST_FILES): Add txtmode.c binmode.c.
4266 crt1.c: Don't include fcntrl.h, stdlib.h.
4267 (_fmode): Declare, without dllimport attribute.
4268 (__p__fmode): Declare access function for dll's _fmode.
4269 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
4271 * txtmode.c: New file.
4272 * binmode.c: New file.
4273 * samples/fmode/test2.c: New file.
4274 * samples/fmode/jamfile: Add test2.exe target.
4276 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4278 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
4279 macros work with C89.
4280 (INTMAX_C, UINTMAX_C): Likewise.
4282 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4284 * include/string.h (strcasecmp): Make extern __inline__.
4285 (strncasecmp): Likewise.
4286 (wcscmpi): Likewise.
4288 2002-10-08 Heiko Gerdau <hg@technosis.de>
4290 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
4291 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
4294 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4296 * mingwex/math/powil.c: Rename powil to __powil.
4297 * mingwex/math/powl.c: Adjust declaration and call
4298 to __powil. Remove comment on powil.
4299 * mingwex/math/powi.c: New file.
4300 * mingwex/math/powif.c: New file.
4301 * mingwex/math/pow.c: New file.
4302 * mingwex/math/cephes_mconf.h. Add double and float
4303 versions of constants.
4304 (polevl): Add double precision function.
4306 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4308 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4310 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4312 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4313 (_imp____mbcur_max_dll): Likewise.
4315 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4317 * include/fcntl.h (_fmode): Remove declarations and
4318 compatibility defines.
4319 (_setmode, setmode): Remove prototypes.
4320 * include/stdlib (_fmode): Add declarations and
4321 compatibility defines. Change type to int.
4322 * include/io.h (_setmode, setmode): Add prototypes.
4323 * samples/fmode/all.c: Adjust includes.
4324 * samples/fmode/test.c: Likewise.
4325 * crt1.c (_CRT_fmode): Declare as int.
4326 * CRTfmode.c (_CRT_fmode): Likewise.
4328 * include/stdlib: Remove comment about MB_CUR_MAX.
4330 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4332 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4333 (_imp____mbcur_max_dll): Likewise.
4335 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4337 * mingwex/math/files.txt: Remove inadvertantly added file.
4339 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4341 * include/string.h (_strerror): Move into #ifndef
4342 __STRICT_ANSI__ block.
4344 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4346 * include/time.h (__need_NULL): Define before including
4347 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4349 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4351 * include/stdio.h: Correct comment about directory separator.
4353 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4355 * include/sys/time.h (timeval): Add struct definition and
4356 associated macros (copied from w32api/include/winsock.h).
4358 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4360 * include/_mingw.h: Increment version to 2.3.
4363 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4365 * mingwex/fegetenv.c: Change to \n line endings.
4366 * mingwex/vsnprintf.c: Ditto.
4367 * mingwex/vsnwprintf.c: Ditto.
4369 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4371 * mingwex/math/hypotl.c: Replace with version based on cephes
4374 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4376 * include/sys/param.h: Add ENDIAN defines.
4377 * test_headers.c: Include sys/param.h.
4379 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4381 * test_headers.c: Don't include varargs.h.
4382 * Makefile.in (test_headers): Don't use -std=xx
4385 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4387 * include/sys/param.h: New File.
4389 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4391 * include/math.h (asm): Change to __asm__ throughout.
4392 Expose ISO C99 functions if __GLIPCPP__.
4393 (hypotf): Use hypot, not _hypot in stub.
4395 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4397 * include/tchar.h: Ansi-fy another comment.
4399 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4401 * include/tchar.h: Ansi-fy comment.
4403 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4405 * test_headers.c : New file.
4406 * Makefile.in (test_headers): New target, using it,
4407 (SRCDIST_FILES): Distribute it.
4409 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4411 * include/_mingw.h: Increment version to 2.2.
4414 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4416 * include/unistd.h: Add include of process.h.
4418 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4420 * include/stdio.h (_fcloseall): Add prototype.
4422 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4424 * include/tchar.h (_tfdopen): Correct typo.
4426 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4428 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4429 nextafter): Add non-underscored stubs.
4430 * moldname-msvcrt.def: Regenerate.
4431 * moldname-crtdll.def: Regenerate.
4432 * mingwex/math: New directory.
4433 * mingwex/rint.c: Move to mingwex/math.
4434 * mingwex/rintf.c: Ditto.
4435 * mingwex/rintl.c: Ditto.
4436 * mingwex/round.c: Ditto.
4437 * mingwex/roundf.c: Ditto.
4438 * mingwex/roundl.c: Ditto.
4439 * mingwex/rint.c: Ditto.
4440 * mingwex/rintf.c: Ditto.
4441 * mingwex/rintl.c: Ditto.
4442 * mingwex/trunc.c: Ditto.
4443 * mingwex/truncf.c: Ditto.
4444 * mingwex/truncl.c: Ditto.
4445 * mingwex/signbit.c: Ditto.
4446 * mingwex/signbitf.c: Ditto.
4447 * mingwex/signbitl.c: Ditto.
4448 * mingwex/copysignl.S: Ditto.
4449 * mingwex/fdim.c: Ditto.
4450 * mingwex/fdimf.c: Ditto.
4451 * mingwex/fdiml.c: Ditto.
4452 * mingwex/fmin.c: Ditto.
4453 * mingwex/fminf.c: Ditto.
4454 * mingwex/fminl.c: Ditto.
4455 * mingwex/fmax.c: Ditto.
4456 * mingwex/fmaxf.c: Ditto.
4457 * mingwex/fmaxl.c: Ditto.
4458 * mingwex/fma.c: Ditto.
4459 * mingwex/fmaf.c: Ditto.
4460 * mingwex/fmal.c: Ditto.
4461 * mingwex/fpclassify.c: Ditto.
4462 * mingwex/fpclassifyl.c: Ditto.
4463 * mingwex/fpclassifyl.c: Ditto.
4464 * mingwex/isnan.c: Ditto.
4465 * mingwex/isnanf.c: Ditto.
4466 * mingwex/isnanl.c: Ditto.
4467 * mingwex/fucom.c: Ditto.
4468 * mingwex/fp_consts.c: Ditto. Split out float and long double
4470 * mingwex/math_stubs.c: Remove.
4471 * mingwex/log2.c: Remove. Replaced by math/log2.S
4472 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4473 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4474 * mingwex/math/acosf.c : New file.
4475 * mingwex/math/acosl.c: New file.
4476 * mingwex/math/asinf.c: New file.
4477 * mingwex/math/asinl.c: New file.
4478 * mingwex/math/atan2f.c: New file.
4479 * mingwex/math/atan2l.c: New file.
4480 * mingwex/math/atanf.c: New file.
4481 * mingwex/math/atanl.c: New file.
4482 * mingwex/math/cbrt.c: New file.
4483 * mingwex/math/cbrtf.c: New file.
4484 * mingwex/math/cbrtl.c: New file.
4485 * mingwex/math/ceilf.S: New file.
4486 * mingwex/math/ceill.S: New file.
4487 * mingwex/math/cephes_ld.h: New file.
4488 * mingwex/math/copysign.S: New file.
4489 * mingwex/math/copysignf.S: New file.
4490 * mingwex/math/cosf.S: New file.
4491 * mingwex/math/coshf.c: New file.
4492 * mingwex/math/coshl.c: New file.
4493 * mingwex/math/cosl.S: New file.
4494 * mingwex/math/exp2.S: New file.
4495 * mingwex/math/exp2f.S: New file.
4496 * mingwex/math/exp2l.S: New file.
4497 * mingwex/math/expf.c: New file.
4498 * mingwex/math/expl.c: New file.
4499 * mingwex/math/fabs.c: New file.
4500 * mingwex/math/fabsf.c: New file.
4501 * mingwex/math/fabsl.c: New file.
4502 * mingwex/math/floorf.S: New file.
4503 * mingwex/math/floorl.S: New file.
4504 * mingwex/math/fmodf.c: New file.
4505 * mingwex/math/fmodl.c: New file.
4506 * mingwex/math/fp_consts.h: Ditto.
4507 * mingwex/math/fp_constsf.c: Ditto.
4508 * mingwex/math/fp_constsl.c: Ditto.
4509 * mingwex/math/frexpf.c: New file.
4510 * mingwex/math/frexpl.S: New file.
4511 * mingwex/math/hypotf.c: New file.
4512 * mingwex/math/hypotl.c: New file.
4513 * mingwex/math/ilogb.S: New file.
4514 * mingwex/math/ilogbf.S: New file.
4515 * mingwex/math/ilogbl.S: New file.
4516 * mingwex/math/ldexpf.c: New file.
4517 * mingwex/math/ldexpl.c: New file.
4518 * mingwex/math/llrint.c: New file.
4519 * mingwex/math/llrintf.c: New file.
4520 * mingwex/math/llrintl.c: New file.
4521 * mingwex/math/llround.c: New file.
4522 * mingwex/math/llroundf.c: New file.
4523 * mingwex/math/llroundl.c: New file.
4524 * mingwex/math/log10f.S: New file.
4525 * mingwex/math/log10l.S: New file.
4526 * mingwex/math/log1p.S: New file.
4527 * mingwex/math/log1pf.S: New file.
4528 * mingwex/math/log1pl.S: New file.
4529 * mingwex/math/log2.S: New file.
4530 * mingwex/math/log2f.S: New file.
4531 * mingwex/math/log2l.S: New file.
4532 * mingwex/math/logb.c: New file.
4533 * mingwex/math/logbf.c: New file.
4534 * mingwex/math/logbl.c: New file.
4535 * mingwex/math/logf.S: New file.
4536 * mingwex/math/logl.S: New file.
4537 * mingwex/math/lrint.c: New file.
4538 * mingwex/math/lrintf.c: New file.
4539 * mingwex/math/lrintl.c: New file.
4540 * mingwex/math/lround.c: New file.
4541 * mingwex/math/lroundf.c: New file.
4542 * mingwex/math/lroundl.c: New file.
4543 * mingwex/math/modff.c: New file.
4544 * mingwex/math/modfl.c: New file.
4545 * mingwex/math/nearbyint.S: New file.
4546 * mingwex/math/nearbyintf.S: New file.
4547 * mingwex/math/nearbyintl.S: New file.
4548 * mingwex/math/nextafterf.c: New file.
4549 * mingwex/math/powf.c: New file.
4550 * mingwex/math/powl.c: New file.
4551 * mingwex/math/powil.c: New file.
4552 * mingwex/math/remainder.S: New file.
4553 * mingwex/math/remainderf.S: New file.
4554 * mingwex/math/remainderl.S: New file.
4555 * mingwex/math/remquo.S: New file.
4556 * mingwex/math/remquof.S: New file.
4557 * mingwex/math/remquol.S: New file.
4558 * mingwex/math/scalbn.S: New file.
4559 * mingwex/math/scalbnf.S: New file.
4560 * mingwex/math/scalbnl.S: New file.
4561 * mingwex/math/sinf.S: New file.
4562 * mingwex/math/sinhf.c: New file.
4563 * mingwex/math/sinhl.c: New file.
4564 * mingwex/math/sinl.S: New file.
4565 * mingwex/math/sqrt.c: New file.
4566 * mingwex/math/sqrtf.c: New file.
4567 * mingwex/math/sqrtl.c: New file.
4568 * mingwex/math/tanf.S: New file.
4569 * mingwex/math/tanhf.c: New file.
4570 * mingwex/math/tanhl.c: New file.
4571 * mingwex/math/tanl.S: New file.
4572 * mingwex/Makefile.in: Adjust VPATH for source files in
4575 Add MATH_DISTFILES and use it to build source distro.
4576 * include/math.h: Add protypes for new functions and
4577 reorganise to reflect ANSI,C99 status.
4579 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
4581 * include/tchar.h (_getts): Define as _getws for _UNICODE.
4582 (_putts): Define as _putws for _UNICODE.
4583 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
4585 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
4587 * include/float.h: #include_next<float.h> before header guard.
4589 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
4591 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
4593 * include/excpt.h (): Include windef.h not windows.h.
4594 * include/fcntl.h (_O_SHORT_LIVED): Add define.
4595 (_chmod): Add prototype.
4596 (_creat): Correct prototype.
4597 (SH_DENY*): Rename defines to _SH_DENY*.
4598 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
4599 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
4600 _IOAPPEND): Add defines.
4601 (_wfindfirst): Correct prototype.
4602 (_wfdopen): Add prototype.
4603 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
4605 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
4607 (_wcsdup): Correct prototype.
4608 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
4609 _mbsncat being in string.h.
4610 * include/wchar.h (_wfindfirst): Correct prototype.
4611 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
4613 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4615 * include/_mingw.h: Increment to version 2.1.
4616 * Makefile.in: Ditto.
4618 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4620 * Makefile.in (conf_prefix): New variable.
4621 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
4622 (bindist): Use dist_prefix.
4624 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
4626 * include/_mingw.h: Increment version to 2.0.
4627 * Makefile.in: Ditto.
4629 Merge in mingwex branch.
4631 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
4633 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
4634 * mingwex/fdim.c: New file.
4635 * mingwex/fdimf.c: New file.
4636 * mingwex/fdiml.c: New file.
4637 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
4639 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
4641 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
4643 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
4645 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
4647 * mingwex/isnanl.c: New file.
4649 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4651 * include/stdint.h: Include <stddef.h> to get wchar_t and wint_t.
4652 (WINT_MAX): Define to ((wint_t)-1).
4654 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4656 * include/wctype.h: Replace 'inline' with '__inline__'.
4657 * include/inttypes.h: Likewise.
4659 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4661 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
4662 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
4664 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4666 * mingwex/snprintf.c: Split out vsnprintf to....
4667 * mingwex/vsnprintf.c: New file.
4668 * mingwex/snwprintf.c: Split out vsnwprintf to...
4669 * mingwex/vsnwprintf.c: New file.
4670 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
4672 2002-05-15 Pascal Obry <obry@gnat.com>
4674 * include/dirent.h (DIR): Change dd_stat type to int.
4677 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
4679 * include/stdio.h (vsnprintf): Change inline to __inline__;
4680 (vsnwprintf): Likewise.
4681 * include/wchar.h (vsnwprintf): Likewise.
4684 (mbsinit): Likewise.
4686 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
4688 Change FP default precison from 53 to 64-bit mantissa.
4690 * Makefile.in (CRT0S): Add CRT_fp8.o.
4691 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
4692 * include/float.h: Replace standard float.h defines with
4693 #include_next<float.h> to use GCC's defines. Adjust comments
4696 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4698 * include/dos.h: Change prefix "__imp_" to "_imp__" for
4699 __GNUC__ without __DECLSPEC_SUPPORTED.
4700 * include/fnctl.h: Likewise.
4701 * include/math.h: Likewise.
4702 * include/stdio.h: Likewise.
4703 * include/stdlib.h: Likewise.
4704 * include/time.h: Likewise.
4705 * include/wctype.h: Likewise.
4706 * include/ctype.h: Likewise.
4708 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4710 Add atexit support for dlls.
4711 * crt1.c (atexit): Force thunk to _imp__atexit.
4712 (_onexit): Force thunk to _imp___onexit.
4713 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4714 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4715 (__dll_exit): New function to run atexit-registered functions
4716 and flush output buffers on DLL_PROCESS_DETACH or failed
4718 (atexit): Force use of private atexit table via _dllonexit,
4719 (_onexit): New function. Force use of private atexit table via
4721 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4722 _imp_<_symbol> is visible in import lib.
4723 * msvcrt20.def: Likewise.
4724 * msvcrt40.def: Likewise.
4725 * crtdll.def: Likewise.
4727 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4729 * include/fenv.h: Change header guard macro to _FENV_H_.
4730 (fenv_t, fexcept_t): Move into block protected by
4732 Cleanup some whitespace.
4733 * include/inttypes.h: Change header guard macro to
4736 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4738 * include/math.h (copysignl): Declare.
4739 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4740 (MATHOBJS):Add copysignl.o.
4742 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4744 * include/math.h (__signbitl, __isnanl): Declare.
4746 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4748 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4749 roundl, truncl, fmal, log2l): Declare.
4750 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4751 || !defined __STRICT_ANSI__.
4752 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4753 * mingwex/fmin.c (fmin): Likewise.
4754 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4755 * mingwex/fminf.c (fminf): Likewise.
4756 * mingwex/fmaxl.c: New file.
4757 * mingwex/fminl.c: New file.
4758 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4759 * mingwex/fpclassifyf.c: New file.
4760 * mingwex/fpclassifyl.c: New file.
4761 * mingwex/rint.c (rintf): Split out to...
4762 * mingwex/rintf.c: New file.
4763 * mingwex/rintl.c: New file.
4764 * mingwex/round.c (roundf): Split out to...
4765 * mingwex/roundf.c: New file.
4766 * mingwex/roundl.c: New file.
4767 * mingwex/trunc.c (truncf): Split out to...
4768 * mingwex/truncf.c: New file.
4769 * mingwex/truncl.c: New file.
4770 * mingwex/signbit.c (signbitf): Split out to...
4771 * mingwex/signbitf.c: New file.
4772 * mingwex/signbitl.c: New file.
4773 * mingwex/fmal.c: New file.
4774 * mingwex/copysignl.S: New file.
4775 * mingwex/log2l.c: New file.
4776 * mingwex/fp_consts.c: Add nanl definition.
4777 Comment out unused constants.
4778 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4779 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4780 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4782 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4783 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4784 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4786 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4788 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4790 Make wide char versions of opendir and friends.
4792 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4794 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4795 _wseekdir): Add prototypes for wide versions of corresponding
4797 * include/tchar.h; Add _UNICODE mappings for dirent.h
4798 structures and functions.
4799 * mingwex/dirent.c: Make _UNICODE neutral.
4800 * mingwex/wdirent.c: New file to define _UNICODE before
4802 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4803 (POSIX_OBJS): Add wdirent.o.
4804 (wdirent.o): Specify dependency on dirent.c as well as
4806 * samples/dirent/wtest.c: New file, wide version of test.c.
4808 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4810 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4811 ensure gcc include dir is searched despite -nostdinc.
4812 * profile/Makefile.in (INCLUDES): Likewise.
4813 * mingwex/Makefile.in (INCLUDES): Likewise.
4814 * include/stdarg.h: Replace with stub that just guards the
4815 real gcc system header with #ifndef RC_INVOKED
4816 * include/varargs.h: Likewise.
4817 * include/stddef.h: Likewise.
4818 * include/stdio.h: Include stdarg.h after defining
4820 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4821 Replace va_list with __VALIST throughout.
4823 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4825 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4826 * msvcrt.def (_fpreset): Mark as DATA so that only
4827 _imp___fpreset is exported.
4828 * msvcrt20.def (_fpreset): Likewise.
4829 * msvcrt40.def (_fpreset): Likewise.
4830 * crtdll.def (_fpreset): Likewise.
4831 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4833 (fpreset): Add alias.
4834 (__CRT_PC): Delete definition. _fpreset does it now.
4835 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4836 (fpreset): Add alias.
4837 (__CRT_PC): Delete definition.
4838 * moldname.def.in: Comment out fpreset.
4839 * moldname-msvcrt.def: Regenerate.
4840 * moldname-crtdll.def: Regenerate.
4841 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4842 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
4843 with the _fpreset determined by startup CRT_fp object.
4845 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
4847 * CRT_fp8.c: New file.
4848 * CRT_fp10.c: New file.
4849 * crt1.c (__CRT_PC) Declare.
4850 (__CRT_fesetenv): New static function, using _CRT_PC.
4851 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
4852 (_gnu_exception_handler): Likewise.
4853 * Makefile.in (CRT0S): Add CRT_fp10.o.
4854 (MINGW_OBJS): Add CRT_fp8.o.
4855 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
4856 Add CRT_fp8.o, CRT_fp10.o dependancies.
4857 * include/float.h (_fpreset): Expand comment.
4858 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
4859 (extended precison) environmemt.
4860 (FE_PC53_ENV): New define for MSVCRT default environmemt.
4861 (FE_DFL_ENV): Define as FE_PC53_ENV.
4862 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
4863 precision control for default environment.
4865 * include/math.h: Fix long comment line.
4866 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
4868 * profile/configure: Regenerate.
4870 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
4872 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
4874 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
4876 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
4877 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
4878 (__mingw_fseek): New function to work around Win9x f/lseek bug.
4879 (__mingw_fwrite): Likewise.
4880 (__mingw_is_win9x): New helper function.
4882 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
4883 (__mingw_fseek): New prototype and define to replace fseek.
4884 (__mingw_fwrite): New prototype and define to replace fwrite.
4885 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
4886 * moldname-crtdll.def: Remove CR from end of line.
4887 * moldname-msvcrt.def: Ditto.
4889 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
4891 * profile/configure.in (CRT0S): Configure name of gcrt?.o
4892 based on target, building gcrt0.o for cygwin -mno-cygwin.
4893 * profile/configure: Regenerate.
4894 * profile/Makefile.in (CRT0S): Use name from configure.
4895 (gcrt0.o): New rule.
4896 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
4898 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4900 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
4901 _fpecode): Remove prototypes copied from float.h.
4902 (nan, nanf): Move into block protected against RC_INVOKED
4904 * include/stdlib.h (_Exit): Change from static inline to
4906 * mingwex/_Exit.c : New file.
4907 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
4909 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4911 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
4912 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
4913 (configdirs): Likewise.
4914 (LIBGMON_A): Define for cygwin target as well.
4915 * configure: Regenerate.
4916 * profile/configure.in (THREAD_DLL): Remove define.
4917 (LIBM_A): Remove define.
4918 (LIBGMON_A): Define for cygwin target as well.
4919 * profile/configure: Regenerate.
4920 * profile/makefile.in (install): Install to inst_libdir and
4922 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
4923 (OPTFLAGS): New define.
4924 (ALL_CFLAGS): Add $(OPTFLAGS).
4925 (ALL_CXXFLAGS): Same.
4926 (.c.o:): Remove ALL_CXXFLAGS.
4928 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4930 * include/stdint.h: Add missing newline at eof.
4931 * include/stdio.h (snprintf): Add prototype.
4932 (vsnprintf): Add prototype and inline definition.
4933 (snwprintf): Add prototype.
4934 (vsnwprintf): Add prototype and inline definition.
4935 * include/wchar.h (snwprintf): Add prototype.
4936 (vsnwprintf): Add prototype and inline definition.
4937 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
4939 * mingwex/snprintf.c: New file.
4940 * mingwex/snwprintf.c: New file.
4942 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
4944 * configure.in: Add mingwex as SUBDIRS and configdirs.
4945 * configure: Regenerate.
4946 * Makefile.in (MINGW_OBJS): Remove dirent.o.
4947 (SRC_DIST_FILES): Remove dirent.c.
4949 * include/stdlib.h (_Exit): Add static inline
4951 (struct lldiv_t): Define.
4952 (lldiv): Add prototype.
4953 (llabs): Add extern inline function.
4954 (strtoll,strtoull): Add prototypes.
4955 (wcstol, wcstoul, wcstod): Group together.
4956 (strtof, wcstof): Add extern inline definitions.
4957 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
4958 and extern inline definitions.
4959 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
4960 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
4962 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
4963 (wcstof): Add extern inline definition.
4964 * include/math.h (nan, nanf): Add prototypes.
4965 (NAN, INFINITE): Define constants.
4966 (fpclassify, isnan ,signbit): Add macros and supporting float
4967 and double functions.
4968 (isfinite, isinf, isnormal): Add macros.
4969 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
4971 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
4972 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
4973 (copysign, logb, nextafter, scalb): Add prototypes and
4974 inline stubs for underscored versions in msvcrt.dll.
4975 * include/inttypes.h: New file.
4976 * include/fenv.h: New file
4978 Add new mingwex subdir and files.
4979 * mingwex: New directory.
4980 * mingwex/Makefile.in: New file.
4981 * mingwex/configure.in: New file.
4982 * mingwex/configure: Generate.
4983 * mingwex/dirent.c: Moved here from parent dir.
4984 * mingwex/atoll.c: New file.
4985 * mingwex/feclearexcept.c: New file.
4986 * mingwex/fegetenv.c: New file.
4987 * mingwex/fegetexceptflag.c: New file.
4988 * mingwex/fegetround.c: New file.
4989 * mingwex/feholdexcept.c: New file.
4990 * mingwex/feraiseexcept.c: New file.
4991 * mingwex/fesetenv.c: New file.
4992 * mingwex/fesetexceptflag.c: New file.
4993 * mingwex/fesetround.o: New file.
4994 * mingwex/fetestexcept.c: New file.
4995 * mingwex/feupdateenv.c: New file.
4996 * mingwex/fma.S: New file.
4997 * mingwex/fmaf.S: New file.
4998 * mingwex/fmax.c: New file.
4999 * mingwex/fmaxf.c: New file.
5000 * mingwex/fmin.c: New file.
5001 * mingwex/fminf.c: New file.
5002 * mingwex/fp_consts.c: New file.
5003 * mingwex/fpclassify.c: New file.
5004 * mingwex/fucom.c: New file.
5005 * mingwex/fwide.c: New file.
5006 * mingwex/imaxabs.c: New file.
5007 * mingwex/imaxdiv.c: New file.
5008 * mingwex/isnan.c: New file.
5009 * mingwex/isnanf.c: New file.
5010 * mingwex/lltoa.c: New file.
5011 * mingwex/lltow.c: New file.
5012 * mingwex/log2.c: New file.
5013 * mingwex/log2f.c: New file.
5014 * mingwex/math_stubs.c: New file.
5015 * mingwex/mbsinit.c: New file.
5016 * mingwex/rint.c: New file.
5017 * mingwex/round.c: New file.
5018 * mingwex/signbit.c: New file.
5019 * mingwex/sitest.c: New file.
5020 * mingwex/strtof.c: New file.
5021 * mingwex/strtoimax.c: New file.
5022 * mingwex/strtoumax.c: New file.
5023 * mingwex/testwmem.c: New file.
5024 * mingwex/trunc.c: New file.
5025 * mingwex/ulltoa.c: New file.
5026 * mingwex/ulltow.c: New file.
5027 * mingwex/wcstof.c: New file.
5028 * mingwex/wcstoimax.c: New file.
5029 * mingwex/wcstoumax.c: New file.
5030 * mingwex/wmemchr.c: New file.
5031 * mingwex/wmemcmp.c: New file.
5032 * mingwex/wmemcpy.c: New file.
5033 * mingwex/wmemmove.c: New file.
5034 * mingwex/wmemset.c: New file.
5035 * mingwex/wtoll.c: New file.
5037 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5039 * include/mbstring.h: New file.
5040 * include/mbctype.h: New file.
5042 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5044 * include/tchar.h (__TEXT): Make same as define in
5045 w32api/include/winnt.h.
5047 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
5049 * include/tchar.h (_tputenv): Add UNICODE mappings.
5050 (_tsearchenv): Likewise.
5051 (_tmakepath): Likewise.
5052 (_tsplitpath): Likewise.
5053 (_tfullpath): Likewise.
5055 2002-04-18 Pascal Obry <obry@gnat.com>
5057 * dirent.c (opendir): Convert given pathname to
5060 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5062 * include/_mingw.h: Increment version.
5063 * Makefile.in: Ditto.
5065 2002-04-09 Earnie Boyd <earnie@users.sf.net>
5067 * moldname-crtdll.def: Remove CR from end of line.
5068 * moldname-msvcrt.def: Ditto.
5069 * Makefile.in: Use bzip2 compression for Cygwin target.
5071 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
5073 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
5074 TLOSS, PLOSS): Move oldname defines back, following
5075 the underscored names.
5077 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
5079 * include/stdio.h (_snwprintf): Correct spelling.
5080 (_vsnwprintf): Likewise.
5081 * include/wchar.h (_snwprintf): Correct spelling.
5082 (_vsnwprintf): Likewise.
5084 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
5086 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
5087 (wpopen): Add if !(__CRTDLL__).
5088 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
5090 (moldname-crtdll.def rule): Likewise.
5091 * moldname-msvcrt.def: Regenerate.
5092 * moldname-crtdll.def: Regenerate.
5093 * include/stdio.h (wpopen):Use prototype, not a define.
5094 (_swnprintf): Add prototype.
5095 (_vswnprintf): Likewise.
5097 * include/wchar.h (_swnprintf): Add prototype.
5098 (_vswnprintf): Likewise.
5101 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5103 * include/malloc.h (_heapinfo): Correct structure definition.
5104 (_USEDENTRY,_FREEENTRY): Add defines.
5105 Add comment on platform support for _heap* functions.
5106 (_get_sbh_threshold): Add prototype.
5107 (_set_sbh_threshold): Likewise.
5108 (_expand): Likewise.
5110 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5112 * profile/profil.c: Update copyright info.
5113 * profile/profil.h: Likewise.
5114 * profile/gcrt0.c: Likewise.
5116 2002-01-25 Pascal Obry <obry@gnat.com>
5118 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5120 * profile/gmon.c: Define bzero as memset if mingw32.
5121 (monstartup): Use it.
5123 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5125 * include/tchar.h (_TCHAR): Add missing ;.
5127 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5129 * include/tchar.h (_TCHAR): Add typedefs.
5131 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5133 * include/stdlib.h (_onexit_t): Add typedef.
5134 (_onexit): Add prototype.
5136 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5138 * msvcrt.def: Revert accidental change.
5139 * include/stdlib.h: Ditto.
5141 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5143 * Makefile.in: Increment VERSION.
5144 * include/_mingw.h: Ditto.
5146 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5148 * include/strings.h: New File.
5150 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5152 * include/math.h (_FPCLASS* ): Add defines from float.h.
5153 (IEEE recommended functions): Add declarations from float.h.
5154 * include/float.h (_FPCLASS* ): Protect against redefinition.
5156 2001-11-29 Wu Yongwei <adah@netstd.com>
5158 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5159 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5160 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5161 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5162 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5163 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5164 Correct spelling of "disclaimed" in comments.
5165 * include/excpt.h: Another spelling correction.
5167 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5169 * include/errno.h: Fix "errno is not a prototype" warning.
5171 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
5173 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
5174 differences between ANSI and non-ANSI versions.
5175 (_ctype[],_pctype): Declare vars.
5176 (__ISCTYPE): New helper macro using _pctype.
5177 (is* ctype functions): Use __ISCTYPE to define inline versions.
5178 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
5180 (isw* ctype functions): Inline definitions.
5181 * include/wctype.h (_ctype[],_pctype): Declare vars.
5182 (isw* ctype functions): Inline definitions.
5185 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5187 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
5188 __fpecode): Use __STDC__ prototypes.
5191 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
5193 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
5194 * mthr_init.c (DllMain) Run dtors if a process terminates.
5195 * mthr.c (__mingwthr_add_key_dtor) Removed.
5196 (___mingwthr_add_key_dtor) New.
5197 (___mingwthr_remove_key_dtor) New.
5198 (__mingwthr_run_key_dtors) Complete rewrite.
5199 (__mingwthr_remove_key_dtor) New.
5201 2001-11-05 Egor Duda <deo@logos-m.ru>
5203 * Makefile.in: Delete unused executable after creating base-files.
5205 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5207 * include/errno.h (_errno): Use __STDC__ prototype.
5208 Thanks to: Jim Barton.
5210 2001-11-04 "stefan" <stefan@lkcc.org>
5212 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
5214 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5216 * include/io.h (_commit): Add declaration.
5217 Thanks to: "stefan" <stefan@lkcc.org>
5219 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5221 * include/sys/stat.h: Make S_IS* macros safer.
5223 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
5225 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
5227 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5229 * include/stdlib.h (__p__environ, __p__wenviron): Use
5230 __STDC__ prototypes.
5232 2001-09-19 Earnie Boyd <earnie@SF.net>
5234 * Makefile.in: Remove the /usr from the install target.
5235 (VERSION): Increment.
5236 include/_mingw.h: Ditto.
5238 2001-09-17 Earnie Boyd <earnie@SF.net>
5240 * Makefile.in: Increment version.
5241 * include/_mingw.h: Ditto.
5243 2001-09-10 Earnie Boyd <earnie@SF.net>
5245 * dossh: Remove inadvertantly imported file.
5247 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5249 * dirent.c (opendir): Use GetFileAttributes rather than stat
5250 to determine if input arg is dir.
5252 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
5254 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5256 * include/varargs.h (va_list): Ditto.
5257 * include/stdio.h (va_list): Ditto.
5259 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5261 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5262 * include/stdio.h (_IORW): Change constant to 0x0080.
5263 (TMP_MAX): Add new define.
5265 (_wP_tmpdir): Ditto.
5266 (L_tmpnam): Change constant to 16.
5268 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
5270 * include/malloc.h: Fix non-ANSI comment after #endif.
5272 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5274 * profile/configure.in: Make msvcrt.dll version default.
5275 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
5276 * provile/configure: Regenerate.
5278 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
5280 * include/stdio.h (swscanf): Make first arugument const.
5281 * include/wchar.h (swscanf): Ditto.
5282 * include/tchar.h (_tfopen): New _UNICODE define.
5284 (_tsetlocale): Ditto.
5286 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5288 * profile/Makefile.in (mkinstalldirs): Correct relative path.
5290 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5292 * include/_mingw.h: Change version to 1.0.
5295 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
5297 * include/tchar.h: (__TEXT): Remove undef.
5301 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5303 * include/tchar.h: (__TEXT): Add private macro.
5304 (_TEXT): Modify definition to use __TEXT.
5306 This change allows the passing of a MACRO as an argument and have that
5307 MACRO resolved first.
5308 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5310 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5312 * Makefile.in: Increment version to 0.5
5313 * include/_mingw.h: Increment minor version
5315 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5317 * include/assert.h: (assert): Remove ; from end of definition
5318 Thanks to: AJ Reins <tbisp@qwest.net>
5320 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5322 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5323 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5325 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5327 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5329 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5331 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5332 are actually C functions. These functions are resolved via the
5333 -lmsvcp60 library and comments were placed in the header.
5335 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5337 * include/stdlib.h (__p__pgmptr): add prototype.
5338 (__p__wpgmptr): likewise.
5339 (_pgmptr_dll): move declaration from dos.h.
5340 (_wpgmptr_dll): likewise.
5341 (_pgmptr): conditional define (MSVCT/CRTDLL).
5342 (_wpgmptr): likewise.
5343 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5344 (_os*_dll variables): likewise.
5345 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5346 (_wpgmptr_dll): likewise.
5348 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5350 * include/stdint.h: New file.
5352 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5354 * include/wchar.h: Protect prototypes only declared in the C++ STL
5355 from being declared unless __cplusplus is defined.
5357 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5359 * include/stdlib.h: Apply Danny Smith patch 102730
5360 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5361 (_wgetenv) Correction to return type.
5363 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5365 * include/locale.h: Apply Danny Smith patch 101834
5366 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5367 (LC_MIN) Add definition.
5369 (_wsetlocale) Add prototype.
5371 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5373 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5374 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5375 Create a libcoldname.a for the oldname library for CRTDLL.
5376 Restrict libmoldname.a for the oldname library for MSVCRT.
5377 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5378 Restructure the $target_os case logic.
5379 Always name the MinGW thread dll helper mingwm.
5380 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5381 * configure: regenerate.
5383 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5385 * Makefile.in: Fix bindist target to distribute the correct files.
5386 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5387 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5389 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5391 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5392 Add variables and targets to control binary and source distributions.
5393 Add variables and targets to control snapshot distribution.
5394 * profile/gmon.h: Add missing #endif for #ifndef.
5395 * profile/ChangeLog: Merge entries here and remove.
5396 * profile/Makefile.in: Add variables and targets to control
5400 * config.guess: ditto.
5401 * config.sub: ditto.
5402 * mkinstalldirs: ditto.
5403 * install-sh: ditto.
5404 * configure: regenerate.
5405 * profile/configure: ditto.
5407 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5409 * Merge in changes from
5410 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5411 * include/direct.h: add guard around MSVCRT-only prototytpes
5412 * include/io.h: add __int64 struct definitions and function prototypes;
5413 add guard for MSVCRT-only prototypes
5414 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5415 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5416 put wchar functions together to make sync with wchar.h easier
5417 * include/stdlib.h: add wide char functions (__MSVCRT__)
5418 * include/string.h: add string collation functions ( __MSVCRT__)
5419 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5420 * include/tchar.h: add macros and macro function definitions
5421 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5422 enclose more functions in __MSVCRT__ guard;
5423 some oldname wide char function prototypes #if (0)'d
5424 * profile/gmon.h: add guard around BSD-ish typedefs
5426 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5428 * Makefile.in: Use a different variable name for subdirectory since the
5429 previous one was used by the top level make.
5431 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5433 * Makefile.in: Install mingw stuff in a subdirectory if building under
5436 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5438 * Makefile.in (subdirs): Eliminate for loop.
5440 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5442 * Makefile.in (subdirs): Previous change did not fix problem in
5445 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5447 * Makefile.in: Avoid installing dll if we're cross building and the
5448 cross-host system isn't a Windows system.
5449 * configure.in: Detect cross-hosting situation and set appropriate
5450 variables in Makefile.in.
5451 * configure: Regenerate.
5453 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5455 * configure.in: Change HEADER_SUBDIR to mingw32.
5456 * configure: Regenerate.
5458 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5460 * include/string.h: Use proper prototype for _strerror.
5462 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5464 * Makefile.in (subdirs): Workaround for broken shells.
5466 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5468 * Snapshot 2000-02-03.
5470 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5471 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5472 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5473 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5476 * Makefile.in (all): Build CRT0S first.
5477 (libmingwthrd.a): Remove thread support DLL from dependency.
5479 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5481 * Snapshot 2000-01-21.
5483 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5485 Merge in changes from Cygwin:
5486 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5487 (SUBDIRS): Likewise.
5488 * Makefile.in (HEADER_SUBDIRS): New variable.
5489 (install): Use to install Mingw headers to a subdirectory if building
5491 (DLL_CC_STUFF): Add DLL entry point.
5492 * configure: Regenerate.
5494 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5496 * include/stdio.h (fsetpos): Fix prototype.
5497 (fpos_t): Fix for MSVCRT.
5498 * include/float.h (fpreset): Add prototype.
5499 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5501 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5502 export using libmoldname.a.
5503 * crtdll.def: Add DATA tags.
5504 * msvcrt.def: Likewise.
5505 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5506 both MSVCRT and CRTDLL.
5507 * moldname-crtdll.def: Regenerate.
5508 * moldname-msvcrt.def: Regenerate.
5510 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5512 * Snapshot 1999-12-21.
5514 * include/wctype.h: New file.
5515 * include/ctype.h (MB_CUR_MAX): Define.
5517 * include/stdlib.h (MB_CUR_MAX): Define.
5518 * include/wchar.h: Define stat, _stat structures here as well.
5519 * include/float.h: Add invalid subconditions (_SW) and floating
5520 point error (_FPE) macros.
5521 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5522 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5523 * include/sys/types.h: Likewise.
5525 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5527 * profile/profil.c (profile_on): Set the profiler thread priority to
5528 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5529 * Snapshot 1999-11-18.
5531 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5533 Released 1999-11-07.
5535 * Makefile.in (CRT0S): Add crtst.o.
5536 (install): Install in subdirs as well.
5537 * dirent.h (struct _stat): Rename from struct stat.
5538 * include/tchar.h: Add some new macros. Thanks to
5539 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5540 * profile/Makefile.in (install): Fix target.
5542 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5544 * Makefile.in: Add support for profile directory.
5545 * configure.in: Likewise.
5546 * configure: Regenerate.
5548 * profile: Imported profiling sources from winsup-19991026 snapshot.
5549 * profile/Makefile.in: New file.
5550 * profile/configure.in: New file.
5551 * profile/configure: Generate.
5552 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5553 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5554 * profile/gmon.c (unistd.h): Include conditionally.
5555 (sys/param.h): Likewise.
5556 * profile/mcount.c (sys/param.h): Likewise.
5557 * profile/profil.c (profile_on): thread id is DWORD, not int.
5560 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5562 * include/stdlib.h: Add wide character version of argv/environ.
5564 * include/wchar.h: More wide character prototypes.
5565 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
5567 * dllcrt1.c (init.c): Don't include.
5568 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
5569 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
5571 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
5573 * moldname.def: Remove file.
5574 * moldname.def.in: And add this.
5575 * moldname-msvcrt.def: Generate from moldname.def.in.
5576 * moldname-crtdll.def: Likewise.
5578 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
5579 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
5580 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
5582 * Makefile.in: Update.
5583 * configure.in: Likewise. Also add *cygwin* target for building
5584 under Cygwin winsup.
5585 * configure: Regenerate.
5587 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
5589 * include/_mingw.h: Add version macros.
5590 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
5591 Also add wide character versions shared with wchar.h.
5592 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
5593 * include/io.h (sopen, _sopen): Fix prototype.
5594 Add wide character prototypes.
5595 * include/wchar.h: Likewise.
5596 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
5597 underscored versions. Potential incompatibility.
5598 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
5599 Add wide character prototypes.
5600 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
5603 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
5605 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
5606 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
5608 * configure: Rengerate.
5609 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
5610 dll name and crt's. CRTDLL and MSVCRT are meant to created
5611 separately, so remove all the *-msvcrt* targets.
5612 (libmingwthr.a): New target. Dummy thread support archive.
5613 (LIBS): Add libmingwthr.a.
5614 (CRT0S): Use CRT_ID. Add crtmt.o.
5615 (MINGW_OBJS): Add crtst.o.
5616 * main.c (WinMain): Fix prototype.
5617 * crtmt.c: New file.
5618 * crtst.c: New file.
5620 * include/process.h (_beginthreadex): Fix prototype.
5621 * include/_mingw.h (__int64): Define for __GNUC__.
5622 * include/tchar.h (_ttol): Add macro.
5623 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
5624 _i64tow, _ui64tow, _wtoi64): Add prototypes.
5626 Reported by Emanuele Aliberti <ea@iol.it>:
5627 * include/tchar.h (_ttoi): Add macro.
5629 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
5630 * include/stdio.h (_snprintf): Add prototype.
5631 (_vsnprintf): Likewise.
5633 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
5635 Reported by Tor Lillqvist <tml@iki.fi>:
5636 * include/stdlib.h (__p___argv): Fix return type.
5638 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5641 * include/errno.h (errno): It's linked in from startup, not imported.
5642 * include/stdlib.h (errno): Likewise.
5643 * include/io.h: Guard against conflicting macros and prototypes in
5645 * include/stdlib.h: Likewise.
5646 * include/string.h: Likewise.
5647 * include/time.h: Likewise.
5649 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5651 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
5652 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
5653 * Makefile.in (INCLUDES): Remove old windows32 include directory.
5655 * crt1.c (_gnu_exception_handler): Fix prototype.
5656 (__mingw_CRTStartup): New function based on mainCRTStartup.
5657 (mainCRTStartup): Set the app type for MSVCRT and call
5659 (WinMainCRTStartup): Likewise.
5660 * init.c (_startupinfo): Define.
5661 (_getmainargs): Add 5th parameter.
5662 (_mingw32_init_mainargs): Use.
5664 * ALL *.c files: Reformat according to GNU coding style.
5666 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
5668 * Makefile.in (INCLUDES): Add w32api include directory.
5670 * include/_mingw.h: New file.
5671 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
5672 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
5673 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
5674 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
5675 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
5676 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
5678 * include/stdlib.h (atexit): Fix prototype.
5680 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
5682 * include/stdio.h (_tempnam): Fix prototype.
5683 (tempnam): Likewise.
5684 * include/stdlib.h: Replace with GCC's version, and guard
5687 From Anders Norlander <anorland@hem2.passagen.se>:
5688 * include/stdlib.h (__argc): Declare.
5691 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
5693 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
5695 * Makefile.in (_libm_dummy.o): New target.
5698 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
5700 * Released 1999-03-16 along with egcs-1.1.2.
5702 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
5704 * Makefile.in (LIBS): Add libm.a.
5705 (libm.a): Dummy libm.a.
5707 * Makefile.in: Update from winsup 1999-02-08 snapshot.
5708 Preserve local changes.
5709 (mkinstalldirs): In ../, not ../../.
5710 (INCLUDES): Point to local windows32api headers and use -nostdinc.
5712 (LIBS): Add libmoldname-msvc.a.
5713 (libmoldname-msvc.a): Add target.
5714 (distclean): Add target.
5716 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5718 * include/dir.h: Reintroduce as an obsolescent header.
5719 * crt1.c (signal.h): Include.
5720 (_gnu_exception_handler): New function to properly handle win32
5721 asynchronous signals.
5722 (mainCRTStartup): Use.
5724 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5726 * include/direct.h: Include io.h instead of dir.h
5727 * include/dirent.h: Likewise.
5728 * include/dos.h: Likewise.
5729 * include/stdio.h: Replace reference to dir.h with io.h.
5731 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5733 * 1999-01-01 release bundled with egcs-1.1.1.
5735 * include/io.h: Incorporate dir.h.
5736 * include/dir.h: Remove.
5737 * include/signal.h: Move RC_INVOKED up a bit.
5739 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5741 * include/signal.h (sig_atomic_t): Define.
5743 * include/malloc.h: Import defs from deprecated alloc.h.
5744 * include/alloc.h: Remove.
5746 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5747 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5748 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5749 _off_t instead of long for st_size.
5751 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5753 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5754 * include/stdlib.h: Here.
5756 * include/netdb.h: Remove.
5757 * include/arpa/inet.h: Remove.
5758 * include/netinet/in.h: Remove.
5759 * include/sys/socket.h: Remove.
5761 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5765 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5766 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5768 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5770 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5771 (jmpbuf): typedef using above.
5772 (setjmp, longjmp): Prototype using jmpbuf.
5774 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5775 obsolescent imported names, ie., from __imp__ to _imp___.
5777 Also ignored empty include/sys/param.h and incorrect
5778 include/sys/times.h.
5780 * CRTinit.c: New file.
5781 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5783 * include/io.h (umask): Fix prototype.
5784 * include/stdlib.h (OS constants): Replace with Colin's.
5785 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5786 * include/sys/state.h: Merge.
5788 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5790 * include/assert.h (assert): Lose the trailing semicolon.
5792 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5794 * include/math.h (matherr): Declare.
5795 * include/stdio.h (fileno, _fileno): Declare.
5796 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5799 * include/stdio.h (fdopen, _fdopen): Add const.
5800 (getw, putw): Declare.
5801 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5803 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5805 * include/time.h (_timezone): Undefine.
5806 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5808 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5810 * include/stdlib.h (environ): Use DLL version.
5811 * init.c (environ): Undefine it before use.
5813 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5815 * Update to 980309 snapshot from Colin Peters.
5817 * include/utime.h: remove
5818 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5819 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5820 patches to define these.
5821 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5822 (_daylight, _timezone, _tzname, _tzset): Define.
5824 * include/netdb.h: Add from Colin's windows32api changes.
5825 * include/sys/socket.h: Likewise.
5826 * include/arpa/inet.h: Likewise.
5827 * include/netinet/in.h: Likewise.
5829 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5831 * Update to 980128 snapshot from Colin Peters.
5833 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5835 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5837 * configure: Regenerate.
5839 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5841 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5842 Files renamed and include hierarchy loses directories named
5845 * include/dos.h: from Jan-Jaap.
5847 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
5849 Changes to conform to FSF tree.
5851 * crt1.c: Renamed from mcrt0.c.
5852 * dllcrt1.c: Renamed from dllcrt0.c.
5853 * Makefile.in: Update above. Also renamed libmoldnames.a to
5856 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
5858 * crtdll.def: Export all functions but the ones with funny names.
5859 * moldnames.def: Add fdopen since fileno is already there.
5860 * include/nonansi/dos.h: New file from Jan-Jaap.
5861 * include/errno.h: Add extern decl + various additions from JJ.
5862 * include/stdio.h: Likewise.
5863 * include/stdlib.h: Likewise.
5864 * include/nonansi/io.h: Likewise.
5865 * include/nonansi/process.h: Likewise.
5866 * include/sys/types.h: Likewise.
5868 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5870 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5872 * include/stdlib.h (free): Fix prototype to return void, not void*.
5873 * include/nonansi/process.h: Add P_* and WAIT_* defs.
5875 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
5876 * mcrt0.c: Likewise.
5878 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
5879 (libmoldnames.a): Add explicit rule to create it.
5881 1997-08-15 Rob Savoye <rob@cygnus.com>
5883 New directory for the minimalist cygwin environment.
5885 * crtglob.c: New file. Turn on file globbing support.
5886 * crt_noglob.c: New file. Turn off file globbing support.
5887 * ctype_old.c: New file. Wrappers for functions that don't
5889 * dirent.c: New file. Directory routines readdir, opendir, closedir.
5890 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
5891 * dllmain.c: New file. A stub DllMain function.
5892 * hugeval.c: New file. A gross hack to define HUGE_VAL.
5893 * init.c: New file. Common code to initialize standard file
5894 handles and command line arguments.
5895 * main.c: New file. A main for programs that only call WinMain.
5896 * mcrt0.c: New file. Default crt0 for mingw32.
5897 * oldnames.c: New File. Wrappers for functions that don't
5899 * string_old.c: New File.
5900 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
5901 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
5902 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
5903 * include/sys/types.h: New header file for mingw.
5904 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
5905 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
5906 utime.h,values.h,varargs.h}: New header files for mingw.
5907 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
5908 timeb.h,unistd.h}: New header files for mingw.
5909 * Makefile.in,configure.in: Build and configure support.
5910 * configure: Generated from autoconf 2.12 with Cygnus patches.