1 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Factor out <wchar.h> vs. <process.h> duplicate declarations.
5 * include/process.h: Assert copyright; tidy layout.
6 (_PROCESS_H_): Rename this multiple inclusion guard macro...
7 (_PROCESS_H): ...to this preferred form; do not define it when...
8 [__WCHAR_H_SOURCED__]: ...this is defined, in which case declare...
9 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
10 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
11 (_wspawnve, _wspawnvp, _wspawnvpe): ...only these functions.
12 [!__WCHAR_H_SOURCED__] (_PROCESS_H): Define it; declare all functions
13 normally specified herein, including those listed above, as required.
14 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
15 (__need_intptr_t): Define it prior to including <stdint.h>.
16 (pragma GCC system_header): Declare it.
18 * include/wchar.h (_WPROCESS_DEFINED): Delete it; filter out...
19 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp)
20 (_wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv)
21 (_wspawnve, _wspawnvp, _wspawnvpe): ...these function prototypes;
22 reproduce them, by selective inclusion of <process.h>.
24 2016-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
26 Enable selective retrieval of intptr typedefs from <stdint.h>.
28 * include/stdint.h: Assert copyright; tidy layout.
29 [__need_intptr_t || __need_uintptr_t] (_STDINT_H): Do not define it;
30 conceal all normally defined data types, except either or both of...
31 [__need_intptr_t] (intptr_t): ...this, and/or...
32 [__need_uintptr_t] (uintptr_t): ...this.
33 (pragma GCC system_header): Declare it.
35 2016-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
37 Factor out <wchar.h> vs. <sys/stat.h> duplicate declarations.
39 * include/sys/stat.h: Assert copyright; tidy layout.
40 (pragma GCC system_header): Declare it.
41 (_STAT_H_): Rename multiple inclusion guard macro; adopt...
42 (_SYS_STAT_H): ...this preferred naming convention; however, when...
43 [__WCHAR_H_SOURCED__] (_SYS_STAT_H): ...do not define it; declare...
44 (_wstat, _wstati64, _wstat64, _wstat32): ...these functions, and...
45 (_wstat32i64, _wstat64i32): ...these, as appropriate to user specified
46 __MSVCRT_VERSION__ and _WIN32_WINNT macro definitions, namely...
47 [__MSVCRT_VERSION__ >= 0x601]: ...this, updated to become...
48 [__MSVCRT_VERSION__ >= __MSVCR61_DLL]: ...this; augment it with...
49 [|| _WIN32_WINNT >= _WIN32_WINNT_WIN2K]: ...this complement; also...
50 [__MSVCRT_VERSION__ < 0x800]: this, updated to become...
51 [__MSVCRT_VERSION__ < __MSVCR80_DLL]: ...this; likewise...
52 [__MSVCRT_VERSION__ >= 0x800]: ...this, which becomes...
53 [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...this.
54 (__struct_stat_defined): New macro; define, and use it to define...
55 (struct stat, struct _stat, struct _stati64, struct __stat64)
56 (struct __stat32, struct _stat32i64, struct _stat64i32): ...these.
57 [!__WCHAR_H_SOURCED__] (_SYS_STAT_H): Define it; also include
58 <sys/types.h>, delegating to it the inclusion of <_mingw.h>, and
59 definition of types size_t and wchar_t; declare all header content,
60 including that declared when __WCHAR_H_SOURCED__ is defined, unless
61 already declared as a result of selective inclusion by <wchar.h>
62 (__need_size_t, __need_wchar_t): Do not define them; consequently,
63 there is no need to include <stddef.h>; do not do so.
65 * include/wchar.h (_wstat, _wstati64, _wstat64): Factor out.
66 (_wstat32, _wstat32i64, _wstat64i32, struct stat, struct _stat)
67 (struct _stati64, struct __stat64, struct __stat32, struct _stat32i64)
68 (struct _stat64i32): Likewise; reproduce them by selective inclusion
71 2016-03-28 Keith Marshall <keithmarshall@users.sourceforge.net>
73 Factor out <wchar.h> vs. <direct.h> duplicate declarations.
75 * include/direct.h: Conditionally partition it, such that...
76 [__WCHAR_H_SOURCED__] (_DIRECT_H): Do not define it; declare only...
77 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): ...these, otherwise...
78 [!__WCHAR_H_SOURCED__] (_DIRECT_H): Define it; expose all content.
79 (_WDIRECT_DEFINED): Never define it; delete all references.
81 * include/wchar.h (_WDIRECT_DEFINED): Delete all references.
82 (_wchdir, wchar_t, wchar_t, _wmkdir, _wrmdir): Delete prototypes;
83 selectively #include <direct.h> to reproduce them.
85 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
87 Factor out <direct.h> vs. <dos.h> duplicate declarations.
89 * include/dos.h: Assert copyright; tidy layout.
90 (pragma GCC system_header): Declare it.
91 (_DOS_H_): Rename multiple inclusion guard macro, to adopt...
92 (_DOS_H): ...this preferred convention; do not define it when...
93 [__DIRECT_H_SOURCED__]: ...this applies; restrict declarations to...
94 (struct _diskfree_t): ...this aggregate data type, together with...
95 [_NO_OLDNAMES] (diskfree_t): ...this alternative name for it, and...
96 (_getdiskfree): ...this associated function.
97 [!__DIRECT_H_SOURCED__] (_DOS_H): Define it; expose all content, but
98 emit a warning that this header is obsolete, and should not be used.
99 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
100 (_DISKFREE_T_DEFINED): Do not define it; delete all references.
101 (__need_wchar_t): Do not define it; it isn't needed here, and hence,
102 neither is it necessary to #include <stddef.h>; do not do so. Also,
103 do not #include <_mingw.h> explicitly, but always #include <io.h>,
104 which will implicitly #include <_mingw.h> anyway.
106 * include/direct.h: Assert copyright; tidy layout.
107 (pragma GCC system_header): Declare it.
108 (_DIRECT_H_): Rename this multiple inclusion guard macro...
109 (_DIRECT_H): ...to adopt this preferred naming convention.
110 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
111 (_DISKFREE_T_DEFINED, diskfree_t, struct _diskfree_t): Do not define.
112 (_getdiskfree): Likewise, do not declare prototype; instead...
113 (__DIRECT_H_SOURCED__): ...define this, and #include <dos.h>; also
114 delegate indirect inclusion of <_mingw.h> and <io.h> to this, rather
115 than include them directly; undefine __DIRECT_H_SOURCED__ when done.
116 (__need_wchar_t): Do not define it, and do not #include <stddef.h>;
117 although needed, we may inherit it indirectly from <sys/types.h>,
118 included by <io.h> via <dos.h>.
120 2016-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
122 Evade CPP mismatched apostrophe warnings in windres comments.
124 * msvcrt-xref/msvcrt.def.in (; pexports): 1,Gs/doesn't/does not/g
126 2016-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
128 Factor out <locale.h> vs. <wchar.h> duplicate declarations.
130 * include/locale.h: Assert copyright; tidy layout.
131 (_LOCALE_H_): Rename multiple inclusion guard macro, to...
132 (_LOCALE_H): ...this; do not define it when...
133 [__WCHAR_H_SOURCED__]: ...this applies; restrict declarations to...
134 (_wsetlocale): ...just this one visible function prototype.
135 [!__WCHAR_H_SOURCED__] (_LOCALE_H): Define it; expose all content.
136 (_WLOCALE_DEFINED): Do not define it; delete all references.
137 (pragma GCC system_header): Declare it.
139 * include/wchar.h (_wsetlocale): Delete prototype; maintain its
140 visibility by selective inclusion of <locale.h> instead.
141 (_WLOCALE_DEFINED): Delete all references.
143 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
145 Resolve some "implicit function declaration" warnings.
147 * setargv.c (isspace): Include <ctype.h> for declaration.
148 * cpu_features.h (__cpu_features_init): Declare function prototype.
149 * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
151 2016-03-18 Keith Marshall <keithmarshall@users.sourceforge.net>
153 Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
155 * include/stdlib.h [__WCHAR_H_SOURCED__]
156 (_STDLIB_H): Do not define it; restrict visible declarations to...
157 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
158 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...this subset
159 of regular <stdlib.h> content; full content is declared only when...
160 [!__WCHAR_H_SOURCED__] (_STDLIB_H): ...this applies; define it.
161 (_WSTDLIB_DEFINED): Do not define it; delete all references.
162 (pragma GCC system_header): Declare it; tidy layout.
164 * include/wchar.h: Delete duplicated declarations for...
165 (wcstol, wcstoul, wcstod, _wgetenv, _wputenv, _wsearchenv, _wsystem)
166 (_wmakepath, _wsplitpath, _wfullpath, wcstof, wcstold): ...these;
167 include <stdlib.h> selectively, to maintain their visibility.
168 (_WSTDLIB_DEFINED): Delete all references.
170 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
172 Relocate misplaced umask() function prototypes.
174 * include/sys/stat.h (umask, _umask): Declare prototypes; duplicate...
175 * include/io.h (umask, _umask): ...these; POSIX doesn't expect them
176 here, but leave them for backward, or Microsoft, compatibility.
178 2016-03-17 Keith Marshall <keithmarshall@users.sourceforge.net>
180 Correct another _BEGIN_C_DECLS imbalance error.
182 * include/wchar.h (_BEGIN_C_DECLS): One misplaced, superfluous, and
183 unbalanced instance deleted; one correctly balanced instance remains.
185 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
187 Support installation of headers with empty parts directory.
189 * Makefile.in (SUB_HEADERS_PRESENT): New macro; define it, and...
190 (install-mingwrt-headers): ...invoke it; if false, do not perform...
191 (INSTALL_SUB_HEADERS): ...this.
193 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
195 Reinstate typedef for non-standard off64_t.
197 * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
198 (__off64_t): ...typedef derived from this; although non-standard, it
199 is gratuitously required when building GCC's libgfortran.a
201 2016-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
203 Correct conditional compilation block nesting errors.
205 * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
206 them balanced within, and around, conditional compilation blocks.
208 2016-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
210 Feature test _MINGW32_EXTENDED_SOURCE renamed.
212 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): Rename to...
213 (_MINGW32_SOURCE_EXTENDED): ...this, to improve naming consistency...
214 (_XOPEN_SOURCE_EXTENDED): ...with this POSIX-XSI feature test.
215 (__USE_MINGW_ANSI_STDIO): Note that it is intended for internal use;
216 users should enable any conventional feature test which implies it.
218 * include/time.h (_MINGW32_EXTENDED_SOURCE): Update references...
219 (_MINGW32_SOURCE_EXTENDED): ...i.e. to refer to this.
221 2016-02-28 Keith Marshall <keithmarshall@users.sourceforge.net>
223 Correct atexit() and _onexit() export declaration regression.
225 * msvcrt-xref/msvcrt.def.in (atexit, _onexit): These must be exported
226 as DATA; declare them accordingly.
228 2016-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
230 Refactor to make <parts/time.h> and <parts/wchar.h> redundant.
232 * include/string.h: Tidy layout.
233 (__STRING_H_SOURCED__): New macro; define it at start; delete at end.
234 (_stricmp, _strnicmp): Include their prototypes, selectively from...
235 * include/strings.h [__STRING_H_SOURCED__]: ...here, reproduce them...
236 * include/parts/strings.h: ...from here; file is obsolete; delete it.
238 * include/string.h (_wcscmpi): Define alias.
239 (wcscat, wcschr, wcscmp, wcscoll, wcscpy, wcscspn, wcslen, wcsncat)
240 (wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wcstok, wcsxfrm)
241 (_wcsdup, _wcsicmp, _wcsicoll, _wcslwr, _wcsnicmp, _wcsnset, _wcsrev)
242 (_wcsset, _wcsupr, _wcsncoll, _wcsnicoll, _wcserror, __wcserror)
243 (wcscmpi, wcscmpi, wcsdup, wcsicmp, wcsicoll, wcslwr, wcsnicmp)
244 (wcsnset, wcsrev, wcsset, wcsupr): Selectively include prototypes...
245 * include/wchar.h [__STRING_H_SOURCED__]: ...from here; reproduce...
246 * include/parts/wchar.h: ...from here; file is obsolete; delete it.
248 * include/strings.h (_STRINGS_H): Do not define it, when...
249 [__STRING_H_SOURCED__]: ...selectively included by <string.h>.
250 * include/wchar.h (_WCHAR_H) [__STRING_H_SOURCED__]: Likewise.
252 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
254 Refactor to make <parts/time.h> redundant.
256 * include/sys/types.h (time_t, __time32_t, __time32_t)
257 [__need_time_t && !__have_typedef_time_t]: Reproduce definitions...
258 * include/parts/time.h: ...from here; preserve selective exposure.
260 * include/time.h (time_t, __time32_t, __time32_t): Get them...
261 * include/sys/types.h: ...from here, by selective inclusion.
263 * include/time.h (struct timespec, struct __mingw_extended_timespec)
264 [__need_struct_timespec && !__struct_timespec_defined]: Reproduce...
265 * include/parts/time.h: ...from here; preserve selective exposure.
267 * include/parts/time.h: Delete file; it is no longer required.
269 2016-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
271 Declare the nanosleep() function where POSIX expects it.
273 * include/time.h (__mingw_sleep): Declare function prototype.
274 (nanosleep): Declare prototype, and provide in-line implementation;
275 this is a reproduction of the original implementation, relocated...
276 * include/unistd.h (nanosleep): ...from here; remove it; hence...
277 (struct timespec): ...this need not be declared here, and there is
278 no need to include <parts/time.h>; remove reference.
280 2016-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
282 Refactor <time.h> vs. <wchar.h> to avoid duplication.
284 * include/wchar.h (__WCHAR_H_SOURCED__): New macro; define it...
285 [_WCHAR_H]: ...at start of processing in this scope; delete at end.
286 (struct tm): Delete definition; delegate it, together with each of...
287 (_wctime, _wasctime, _wstrdate, _wstrtime, _wctime64, _wctime32)
288 (wcsftime): ...these function prototypes; delete them, but note in
289 comments, that they remain declared, via delegation to...
290 * include/time.h: ...this; include it selectively, subject to...
291 [defined __WCHAR_H_SOURCED__](__need_wchar_decls): ...this; define it.
292 [defined __WCHAR_H_SOURCED__](_TIME_H): Suppress its definition.
293 [_TIME_H]: Process all definitions and declarations; otherwise...
294 [__need_wchar_decls]: ...process only <wchar.h> shared content, but...
295 [_TIME_H && _WCHAR_H]: ...not on second, or later, time of processing.
296 (_WTIME_DEFINED): Obsolete macro; delete all references.
298 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
300 Implement support for POSIX "%n$*m$" printf() format control.
302 * mingwex/stdio/pformat.c (NL_ARGMAX): New macro; nominally, it should
303 be defined in <limits.h>, but MinGW may not do so; provide a fallback.
304 (__pformat_inline__): New macro; define, and use it where appropriate.
305 (PFORMAT_CONVERSION_TYPE, PFORMAT_LENGTH_MODIFIER)
306 (PFORMAT_TYPE_DOUBLE, PFORMAT_TYPE_INTEGER, PFORMAT_TYPE_POINTER)
307 (PFORMAT_LENGTH_DEFAULT): New enumerated values; define them.
308 (PFORMAT_ARGMAP_ENTRIES): New enumerated value tally; use it in...
309 (__pformat_argmap_t): ...this new union data type; define it.
310 (__pformat_indexed_argc, __pformat_sizeof_argument, __pformat_argmap)
311 (__pformat_imul10plus, __pformat_arg_index, __pformat_read_arg_index)
312 (__pformat_read_arg_index_after, __pformat_look_ahead_beyond_flags)
313 (__pformat_look_ahead, __pformat_ignore_flags, __pformat_is_ldouble)
314 (__pformat_is_conversion_type, __pformat_is_alt_ldouble_modifier)
315 (__pformat_length_modifier, __pformat_check_length_modifier): New
316 locally defined static and/or inline functions; implement, and...
317 (__pformat): ...use them.
319 2016-02-11 Keith Marshall <keithmarshall@users.sourceforge.net>
321 Add prototypes for Microsoft's _printf_p() family of functions.
323 * include/stdio.h [>=__MSVCR80_DLL || >=_WIN32_WINNT_VISTA]
324 (_printf_p, _printf_p_l, _vprintf_p, _vprintf_p_l, _fprintf_p)
325 (_fprintf_p_l, _vfprintf_p, _vfprintf_p_l, _sprintf_p, _sprintf_p_l)
326 (_vsprintf_p, _vsprintf_p_l): Add function prototypes; they require
327 either a non-free MSVC runtime, or MSVCRT.DLL from Vista onward.
328 (_wprintf_p, _wprintf_p_l, _vwprintf_p, _vwprintf_p_l, _fwprintf_p)
329 (_fwprintf_p_l, _vfwprintf_p, _vfwprintf_p_l, _swprintf_p)
330 (_swprintf_p_l, _vswprintf_p, _vswprintf_p_l): Likewise; make them
331 available for selective inclusion by both <stdio.h> and <wchar.h>...
332 [_STDIO_H || __WCHAR_H_SOURCED__]: ...when either of these defined.
334 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
336 Adapt msvcrt-xref to become msvcrt.def.in provider.
338 * Makefile.in (msvcrt_version_script) [__MSVCRT_VERSION__]: Adjust
339 filter value assignment; scale it upwards, by a factor of 0x10000.
340 (%.def.in) [vpath]: Make it refer to msvcrt-xref directory.
341 (%.def) [msvcr*]: Do not preserve comments; define...
342 (__DLLNAME__): ...this preprocessor symbol.
344 * msvcrt.def.in: Content is obsolete; delete file and replace with...
345 * msvcrt-xref/msvcrt.def.in: ...this updated alternative.
346 (__MINGW_DLSYM): New preprocessor macro; define it conditionally...
347 [__MSVCRT_VERSION__ != 0]: ...to emit in-scope symbols it declares...
348 [__MSVCRT_VERSION__ == 0]: ...to hide symbols it declares, followed by
349 redefinition of __MSVCRT_VERSION__ itself, to a value of 0x10000.
351 2016-02-09 Keith Marshall <keithmarshall@users.sourceforge.net>
353 Import msvcrt-xref documentation resources.
355 * msvcrt-xref: New directory.
356 * msvcrt-xref/ChangeLog msvcrt-xref/COPYING: New files.
357 * msvcrt-xref/msvcrt-xref.ms msvcrt-xref/fdl-1.3.ms: New files.
358 * msvcrt-xref/configure.ac msvcrt-xref/Makefile.in: New files.
359 * msvcrt-xref/README.in msvcrt-xref/msvcrt.def.in: New files.
361 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
363 Refactor <stdio.h> vs. <wchar.h> to avoid duplication.
365 * include/wchar.h: Some minor layout adjustments.
366 (__WCHAR_H_SOURCED__): New macro; define it temporarily, only while
367 within the scope of reading <wchar.h>; undefine it at end of file.
368 (struct tm): Do not define; it is sufficient to keep it opaque.
369 (FILE, FILENAME_MAX, NULL, __VALIST, off_t, __off64_t, size_t)
370 (ssize_t, va_list, wchar_t, wint_t): Do not require or define them
371 directly; delegate to indirect definition by including <stdio.h>.
372 (fgetwc, fputwc, fgetws, fputws, fwprintf, fwscanf, getwc, getwchar)
373 (_getws, putwc, putwchar, _putws, snwprintf, _snwprintf, swprintf)
374 (swscanf, ungetwc, vfwprintf, vfwscanf, _vscwprintf, vsnwprintf)
375 (_vsnwprintf, vswprintf, vwprintf, vswscanf, vwscanf, _wfdopen)
376 (_wfopen, _wfreopen, _wfsopen, _wperror, _wpopen, wprintf, _wrename)
377 (_wremove, wscanf, _wtmpnam, _wtempnam): Omit prototypes; acquire them
378 indirectly, by selective inclusion from <stdio.h>; hence include it.
380 * include/stdio.h: Assert copyright; tidy layout.
381 (_STDIO_H_): Multiple inclusion guard macro, renamed as...
382 (_STDIO_H): ...this, but defined conditionally, subject to...
383 [__WCHAR_H_SOURCED__]: ...selectively define and declare only those
384 entities which are required by <wchar.h>; do not define...
385 [__WCHAR_H_SOURCED__] (_STDIO_H): ...this; define it only if...
386 [!__WCHAR_H_SOURCED__]: ...this; define and declare ALL entities which
387 are normally specified within <stdio.h>, INCLUDING those specifically
388 itemised above, as selectively required by <wchar.h>.
390 * pseudo-reloc.c: Some minor layout adjustments.
391 (WIN32_LEAN_AND_MEAN): Define it; we don't need the windows baggage.
392 [typedef ptrdiff_t]: Do not assume this is gratuitously defined;
393 include <stddef.h> to guarantee it.
395 2016-01-29 Keith Marshall <keithmarshall@users.sourceforge.net>
397 Enable selective definition of POSIX system types.
399 * include/sys/types.h (_SYS_TYPES_H): Do NOT define, if including with
400 any specific __need_TYPE selector having been set prior to inclusion;
401 DO define it when no such selector is present, and undefine all such
402 selectors as may have been set, after evaluation of their effects.
403 (_DEV_T_, _FPOS64_T_, _INO_T_, _MODE_T_, _OFF_T_, _OFF64_T_, _PID_T_)
404 (_SIGSET_T_, _SSIZE_T_): Unnecessary guard macros; delete them; this
405 accommodates reorganization of the file, to achieve a tidier layout.
406 (__have_typedef_off_t): New repeat definition guard; define it for
407 compilers which may choke on any repeated typedef for either of...
408 (off_t, _off_t): ...these; make them selectively defineable for...
409 [_SYS_TYPES_H && !__have_typedef_off_t]: ...non-selective inclusion...
410 [__need_off_t && !__have_typedef_off_t]: ...this specific selection;
411 in either case, redefine them in terms of...
412 (__off32_t): ...this new internal type, for consistency with...
413 (__off64_t): ...this previously defined non-standard type; also make
414 it selectively defineable, either by...
415 [_SYS_TYPES_H && !__have_typedef___off64_t]: ...non-selective, or...
416 [__need_off_t && !__have_typedef___off64_t]: ...selective inclusion.
417 (__have_typedef___off64_t): New repeat definition guard; define it.
418 (ssize_t, _ssize_t): Also make them selectively defineable, on...
419 [_SYS_TYPES_H && !__have_typedef_ssize_t]: ...non-selective, or...
420 [__need_off_t && !__have_typedef_ssize_t]: ...selective inclusion.
421 (__have_typedef_ssize_t): New repeat definition guard; define it.
423 2015-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
425 Avoid user namespace pollution by non-standard type 'off64_t'.
427 * include/sys/types.h (off64_t): Rename it as...
428 (__off64_t): ...this implementation-private alternative name, so
429 eliminating the potential for user namespace pollution.
431 * include/io.h (lseek64): Use '__off64_t', instead of 'off64_t', as
432 return type, and type of offset argument, in both prototype and inline
433 implementation; note that this addresses the issue of pollution in the
434 user namespace, while avoiding the issue of MinGW-Bug [#2024].
436 * include/stdio.h (fseeko64, __mingw_fseeko64): Use '__off64_t'
437 instead of 'off64_t', as offset argument type in function prototypes.
438 (ftello64): Likewise, for return type of inline function.
440 * mingwex/mingw-fseek.c: Assert copyright; tidy layout.
441 (WIN32_LEAN_AND_MEAN): Define, to minimize impact of <windows.h>.
442 (__mingw_fseeko64): Use '__off64_t' per modified function prototype.
444 * mingwex/stdio/fseeko64.c: Assert copyright.
445 (fseeko64): Use '__off64_t' per modified function prototype.
447 2015-12-27 Keith Marshall <keithmarshall@users.sourceforge.net>
449 Improve ISO-C conformity in MinGW printf(); cf. MinGW-Bug [#1761]
451 * mingwex/ofmtctl.c: New file; it implements...
452 (_mingw_output_format_control): ...this new function; it provides
453 additional MinGW specific printf() format processing options.
455 * Makefile.in (libmingwex.a) [prerequisites]: Add ofmtctl.$OBJEXT
457 * include/stdio.h (_mingw_output_format_control): Declare it.
458 (_EXPONENT_DIGIT_MASK, _MSVC_PRINTF_QUIRKS, _QUERY_MSVC_PRINTF_QUIRKS)
459 (_ENABLE_MSVC_PRINTF_QUIRKS, _DISABLE_MSVC_PRINTF_QUIRKS): New
460 manifest constant expressions; define them.
462 * mingwex/stdio/pformat.c: Revise licensing terms.
463 (__pformat) [%le, %lE, %lf, %lF, %lg, %lG, %lx, %lX]: When...
464 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS == 0]: ...ignore `l'
465 modifier; this matches the behaviour specified by ISO-C99, else...
466 [_mingw_output_format_flag & _MSVC_PRINTF_QUIRKS != 0]: ...revert to
467 previous MSVC compatible behaviour, treating it as an `L' modifier.
468 [!_WIN32] (_MSVC_PRINTF_QUIRKS): Force the zero match case.
470 * mingwex/ofmt.c (ARGLIST): Subsume references to...
471 (ARGTYPE): ...this now obsolete macro; delete it throughout.
472 (update_output_format_flag): New inline function; it restricts flag
473 operations to affect only Microsoft's exponent digit bits.
474 [FUNCTION == _set_output_format]: Use it.
475 [FUNCTION == _get_output_format]: Likewise.
477 2015-10-23 Keith Marshall <keithmarshall@users.sourceforge.net>
479 Make atof() and strtod() conform to ISO-C; fix MinGW-Bug [#2273]
481 * include/_mingw.h (_ISOC99_SOURCE): Ensure this feature test macro is
482 defined, when implied by any STDC or POSIX version selection, viz. ...
483 [__STDC_VERSION__ >= 199901L || _POSIX_C_SOURCE >= 200112L]: ...this.
485 * include/stdlib.h: Assert copyright; tidy layout.
486 (_STDLIB_H_): Multiple inclusion guard macro renamed...
487 (_STDLIB_H): ...to this, preferring no trailing underscore.
488 [!defined __NO_ISOCEXT]: Delete double negative references; use...
489 [defined _ISOC99_SOURCE]: ...this feature test instead, when...
490 (lldiv_t): ...defining this C99 specific aggregate data type, and...
491 (lldiv, llabs, atoll, strtoll, strtoull, strtof, strtold, wcstof)
492 (wcstold, _Exit): ...declaring these C99 function prototypes.
493 (wtoll, lltoa, ulltoa, lltow, ulltow): Mark as deprecated, pending
494 future removal; not in MSVCRT.DLL, these conform to no known standard.
495 [__USE_MINGW_ANSI_STDIO] (atof, strtod): Implement inline, using...
496 (__strtod): ...this libmingwex.a provided function; it handles string
497 representations of hexadecimal-floats, infinities and NaNs, whereas...
498 (strtod): ...this MSVCRT.DLL implementation does not.
499 (__MSVCRT_VERSION__): Prefer symbolic comparison...
500 [>= __MSVCR80_DLL]: ...for this requirement.
502 2015-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
504 Rationalize definition of struct timespec.
506 * include/parts/time.h (struct timespec): Redefine; use __time64_t for
507 tv_sec field, in place of anonymous union, thus avoiding missing brace
508 warnings when initializing; leave a copy of the previous definition...
509 (struct __mingw32_expanded_timespec): ...named thus.
511 * include/unistd.h (nanosleep): Adjust inline implementation, to match
512 altered specification of tv_sec field in struct timespec.
514 * include/_mingw.h (_MINGW32_EXTENDED_SOURCE): New feature test macro.
515 [! defined __STRICT_ANSI__]: Define it, making it a default feature.
517 * include/time.h [_MINGW32_EXTENDED_SOURCE] (mingw_timespec): New
518 convenience function; defined as inline, with __LIBIMPL__ equivalent,
519 it facilitates interpretation of an instance of struct timespec as if
520 it were defined as struct __mingw32_expanded_timespec.
522 2015-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
524 Make strings.h mostly POSIX.1-2008 compliant.
526 * include/strings.h: Rewritten. Do not include...
527 (string.h): ...this; mandated by POSIX.1, it now defines...
528 (strcasecmp, strncasecmp): ...these POSIX.1 functions, complete with
529 prototypes, possible in-line implementations, and JMPSTUB references
530 to corresponding external implementations, which will now become
531 automatically created within libmingwex.a
533 * include/parts/strings.h: New file; it declares prototypes for...
534 (_stricmp, _strnicmp): ...these MSVC functions; nominally declared in
535 string.h, but we also require them in strings.h
537 * include/parts/wchar.h: New file; it declares prototypes for all wide
538 character functions which MSVC specifies in both wchar.h and string.h
540 * include/string.h: Miscellaneous layout adjustments.
541 (strcasecmp, strncasecmp): Delete; they belong in strings.h
542 (_stricmp, _strnicmp): Factor out; include them from parts/strings.h
543 [!_WSTRING_DEFINED]: Factor out all associated function prototypes;
544 include them from parts/wchar.h instead.
546 * include/wchar.h [!_WSTRING_DEFINED]: Delete all associated function
547 prototypes; include them from parts/wchar.h instead, so making this
548 guard macro redundant; delete it.
550 * Makefile.in (strcasecmp.$OBJEXT, strncasecmp.$OBJEXT)
551 (wcscmpi.$OBJEXT): Implementations are now automatically generated
552 from header file, for inclusion in libmingwex.a; remove free-standing
553 implementations from the entire family of liboldname libraries, and...
554 * strcasecmp.c strncasecmp.c wcscmpi.c: ...delete corresponding source
555 files; they are no longer required.
557 2015-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
559 Incorporate build system updates from w32api package.
561 * Makefile.in (NTDDI_VERSION): Set default to NTDDI_WINNT4.
562 (mkinstalldirs, INSTALL_DATA): Reimplement to support $(call ...)
563 (install-strip, uninstall): New make command goals; implement them.
564 (mingwrt-dist-staged): Use 'install-strip' in this rule; hence...
565 (devdist, dlldist): ...these have no need to strip explicitly.
566 (INSTALL_SUB_HEADERS): New macro; implement it, and use it...
567 (install-mingwrt-headers): ...here.
569 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
571 Adapt platform feature checks to NTDDI_VERSION conventions.
573 * include/_mingw.h: Assert copyright; include w32api.h
574 (UNICODE, _UNICODE): Factor out consistency checks; relocate them
575 to w32api/include/w32api.h, whence they remain in effect.
576 (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): Likewise.
578 2015-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
580 Correct mismatched #if/#endif from preceding commit.
582 * include/_mingw.h (#pragma GCC system_header)
583 [__GNUC__ >= 3 && ! defined __PCC__]: Merge these conditions, thus
584 correcting for inadvertent removal of matching #endif introduced by
585 preceding 2015-06-19 commit.
587 2015-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
589 Define symbolic names for alternative Microsoft runtime DLLs.
591 * include/msvcrtver.h: New file; it assigns a value for...
592 (__MSVCRT_VERSION__): ...this, making its default equivalent to...
593 (__MSVCR60_DLL): ...this new manifest constant, with each of...
594 (__MSVCR61_DLL, __MSVCR70_DLL, __MSVCR71_DLL, __MSVCR80_DLL)
595 (__MSVCR90_DLL, __MSVCR100_DLL, __MSVCR110_DLL, __MSVCR120_DLL):
596 ...these also defined, as user assignable alternatives.
598 * include/_mingw.h (__MSVCRT_VERSION__): Use include/msvcrtver.h
599 to establish its default value.
601 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
603 Track dependencies on modified system header files.
605 * Makefile.in (DEPFLAGS): Use -MD, rather than -MMD.
607 2015-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
609 Correct an anomaly in stage 1 only build procedure.
611 * Makefile.in (all-gcc): New goal; it is an alias for...
612 (all-mingwrt-stage-1): ...this, renamed to match configure, as...
613 (all-mingwrt-stage-1-only): ...this; upate all references.
614 (active-goals): Adjusted accordingly; it now reguires...
615 (all-deprecated-mingwrt-stage-1-only): ...this new goal.
616 (install): Adjusted, as directed by...
617 (DEFAULT_MAKECMDGOALS): ...this.
619 2015-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
621 Prefer our hypot() implementation in complex maths operations.
623 * mingwex/complex/cabs_generic.c: New file; it replaces...
624 * mingwex/complex/cabs.c mingwex/complex/cabsf.c: ...all of...
625 * mingwex/complex/cabsl.c: ...these.
627 * mingwex/complex/catan_generic.c: New file; it replaces...
628 * mingwex/complex/catan.c mingwex/complex/catanf.c: ...all of...
629 * mingwex/complex/catanl.c: ...these.
631 * mingwex/complex/clog_generic.c: New file; it replaces...
632 * mingwex/complex/clog.c mingwex/complex/clogf.c: ...all of...
633 * mingwex/complex/clogl.c: ...these.
635 * mingwex/complex/cpow_generic.c: New file; it replaces...
636 * mingwex/complex/cpow.c mingwex/complex/cpowf.c: ...all of...
637 * mingwex/complex/cpowl.c: ...these.
639 * mingwex/complex/csqrt_generic.c: Do not use...
640 (_hypot): ...this Microsoft form of function reference; use...
641 (hypot): ...this ANSI standard form instead.
643 2015-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
645 Correct C++ compilation anomaly with hypotf() in cmath header.
647 * include/math.h: Add copyright notice; generally tidy layout.
648 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
649 (hypotf): Delete inline implementation; it did not properly handle
650 range errors, and was uncompilable with optimization when any g++
651 option implying __STRICT_ANSI__ conformity was specified.
652 (_MATH_H_): Rename this multiple inclusion guard...
653 (_MATH_H): ...to this.
655 * mingwex/math/hypot_generic.c: New file; it implements...
656 (hypot, hypotf, hypotl): ...these; use the latter pair in place of...
657 * mingwex/math/hypotf.c mingwex/math/hypotl.c: ...these; delete them.
659 2015-06-08 Keith Marshall <keithmarshall@users.sourceforge.net>
661 Prepare and tag all files for release of mingwrt-3.21.1.
663 * configure.ac (AC_INIT): Adjust package version argument.
664 * include/_mingw.h (__MINGW32_PATCHLEVEL): Increment to 1, and...
665 (__MINGW32_VERSION): ...increment this to match.
667 2015-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
669 Refactor to avoid possible time_t conflicts across headers.
671 * include/parts/time.h (struct timespec): Make it more descriptive of,
672 and better able to accommodate, potential ambiguity relating to...
673 (time_t, __time32_t, __time64_t): ...these typedefs; define them here,
674 whence they may be identically imported into each of...
675 * include/sys/types.h include/time.h include/wchar.h: these; delete
676 duplicate typedefs, and import accordingly.
678 * include/sys/types.h: Add licence; general comment additions.
679 (_TYPES_H_): Rename multiple inclusion guard macro...
680 (_SYS_TYPES_H): ...to this.
682 * include/time.h: Add licence; general comment/layout adjustments.
683 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
684 (_TIME_T_DEFINED, _TIME32_T_DEFINED, _TIME64_T_DEFINED)
685 (_CLOCK_T_DEFINED): Superfluous guard macros; delete them.
686 (_TIME_H_): Rename multiple inclusion guard macro...
687 (_TIME_H): ...to this.
689 * include/unistd.h (nanosleep): Adjust to accommodate redefinition...
690 (struct timespec): ...of this.
692 * include/wchar.h: Add licence; general comment/layout adjustments.
693 (_BEGIN_C_DECLS, _END_C_DECLS): Use to wrap extern "C" declarations.
694 [GCC] (system_header): Add pragma, identifying header as such.
695 (_WCHAR_H_): Rename multiple inclusion guard macro...
696 (_WCHAR_H): ...to this.
698 2015-05-09 Keith Marshall <keithmarshall@users.sourceforge.net>
700 Remove obsolete varargs.h header file.
702 * include/varargs.h: Delete it; it was a mostly redundant wrapper for
703 a GCC header which is no longer supported, and was always intended for
704 ultimate removal; now is the long overdue time to do so.
706 2015-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
708 Correct improper unistd.h function attribute declarations.
710 * include/unistd.h (_cdecl): Correct usage throughout; should be...
713 2015-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
715 Fix GLOB_DOOFFS initialization bug.
717 * mingwex/glob.c (__mingw_glob) [!GLOB_DOOFFS]: Ensure...
718 (gl_data->gl_offs): ...this is properly initialized to zero.
720 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
722 Tag all files for release of mingwrt-3.21.
724 * include/_mingw.h: Adjust version accordingly.
726 2014-12-28 Keith Marshall <keithmarshall@users.sourceforge.net>
728 Improve usage notes in stdlib.h, for mkstemp() function.
730 * include/stdlib.h (MKSTEMP_SETMODE): Explain usage; this is a copy of
731 an original comment, explaining the need to use _O_TEMPORARY, from...
732 * mingwex/mkstemp.c: ...here; delete trailing white space.
734 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
736 Eliminate some potential definition inconsistencies.
738 * include/stdio.h: Cosmetic formatting change, relating to...
739 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define them
740 unconditionally; this allows the compiler to check for consistency
741 with their primary definitions in stdio.h
743 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
745 Suppress expected warning diagnostics in LIBIMPL builds.
747 * Makefile.in (LIBIMPL_CFLAGS): Redefine it; it now incorporates...
748 (LIBIMPL_EXTRA_CFLAGS): ...this new macro; it includes the requisite
749 GCC flag to supress warnings relating to deprecated declarations.
751 2014-12-23 Keith Marshall <keithmarshall@users.sourceforge.net>
753 Provide more POSIX conforming sleep() functions.
755 * include/sys/types.h (useconds_t): Make it explicitly long; int may
756 be okay, but doesn't guarantee enough bits; mark as deprecated, since
757 POSIX has declared it "obsolete", and no longer specifies it.
759 * mingwex/usleep.c: Delete file; it provided an implementation of...
760 (usleep): ...this now obsolete function, claiming POSIX.1 issue 6, but
761 its error handling was hopelessly broken; replace it with...
762 * mingwex/nsleep.c: ...this new file; it implements...
763 (__mingw_sleep): ...this generic helper function; it supports sleep
764 capability with interval specification to nanosecond precision.
766 * include/unistd.h (__mingw_sleep): Declare prototype; use it as the
767 basis for providing __LIBIMPL__ __CRT_INLINE implementations of...
768 (sleep, nanosleep): ...these current POSIX functions, and also...
769 (usleep): ...this obsolete one; mark it as deprecated.
771 * include/parts: New directory; it is intended to host partial header
772 implementations, for content which must be shared among arbitrary sets
773 of multiple standard header files.
775 * include/parts/time.h: New file; nominally declaring time.h content.
776 (struct timespec): Declare it; it is currently used within unistd.h,
777 to facilitate the __CRT_INLINE implementation of nanosleep().
779 * Makefile.in (libmingwex.a): Remove reference to...
780 (usleep.$OBJEXT): ...this; replace it with a reference to...
781 (nsleep.$OBJEXT): ...this alternative.
782 (mingwrt-includedirs): Add prerequisite to create...
783 ($includedir/parts): ...this new directory; it is populated by...
784 (install-mingwrt-headers): ...this rule; add requisite command.
786 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
788 Delete an unnecessary Unicode wrapper file.
790 * mingwex/wdirent.c: Delete it; Makefile.in knows how to compile the
791 UTF-16LE API from dirent.c, without any need for this wrapper.
793 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
795 Some further inline function rationalization.
797 * include/io.h (_CRTALIAS): Replace all references...
798 (__CRT_ALIAS): ...using this syntactically preferred form.
799 (lseek64): Specify __JMPSTUB__ semantics for extern implementation.
800 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
802 * include/unistd.h (ftruncate): Specify __JMPSTUB__ semantics.
803 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
805 * mingwex/stdio/lseek64.c: File is now redundant; delete it.
806 * mingwex/ftruncate.c: Likewise.
808 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
809 (lseek64.$OBJEXT, ftruncate.$OBJEXT): ...these.
811 2014-12-13 Keith Marshall <keithmarshall@users.sourceforge.net>
813 Some POSIX feature test adjustments.
815 * include/stdlib.h (mkstemp): Available since SUSv3, so requires...
816 [_POSIX_C_SOURCE >= 200112L]: ...this minimum level of POSIX support.
817 (mkdtemp): This didn't become available until SUSv4, so requires...
818 [_POSIX_C_SOURCE >= 200809L]: ...this increased feature level.
820 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
822 Another CRT_INLINE function implementation rationalization.
824 * include/inttypes.h (imaxabs): Specify as __LIBIMPL__; declare...
825 (llabs): ...this, to be implemented as its __LIBIMPL__ alias.
826 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
828 * Makefile.in (libimpl_sed_script): Handle ALIAS attribute.
829 (libmingwex.a): Delete obsolete dependency on...
830 (imaxabs.$OBJEXT): ...this.
832 * mingwex/imaxabs.c: File is now redundant; delete it.
834 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
836 More rationalization of CRT_INLINE function implementations.
838 * include/stdio.h (fopen64): Add __JMPSTUP__ specification.
839 (ftello64): Add __LIBIMPL__ specification for extern implementation.
840 [__cplusplus] (_BEGIN_C_DECLS, _END_C_DECLS): Use these.
842 * mingwex/stdio/fopen64.c: File is now redundant; delete it.
843 * mingwex/stdio/ftell064.c: Likewise.
845 * Makefile.in (libmingwex.a): Delete obsolete dependencies on...
846 (fopen64.$OBJEXT, ftello64.$OBJEXT): ...these.
848 2014-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
850 Don't implicitly define _POSIX_C_SOURCE too early.
852 * include/_mingw.h (_POSIX_C_SOURCE): Delay implict definition.
853 (__USE_MINGW_ANSI_STDIO): This must be initialized first, to ensure
854 that it is not accidentally activated by implied _POSIX_C_SOURCE.
856 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
858 Correct complex arcsin computation per issue [#2245].
860 * mingwex/complex/casin_generic.c: New file; it replaces...
861 * mingwex/complex/casin.c: ...this; it is now obsolete; delete it.
862 * mingwex/complex/casinf.c mingwex/complex/casinl: Likewise.
864 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
866 Correct complex square root computation per issue [#2246].
868 * include/math.h (hypotf): Redirect __CRT_INLINE call to...
869 (_hypot): ...this MSVCRT.DLL exported function, so avoiding...
870 (hypot): ...this libmoldname.a indirection.
872 * mingwex/complex/csqrt_generic.c: New file; it replaces...
873 * mingwex/complex/csqrt.c: ...this; it is now obsolete; delete it.
874 * mingwex/complex/csqrtf.c mingwex/complex/csqrtl: Likewise.
876 2014-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
878 Adjust header guards to resolve issue [#2244].
880 * include/_mingw.h (_POSIX_C_SOURCE): Define it implicitly...
881 [_GNU_SOURCE || _BSD_SOURCE || _POSIX_SOURCE || !__STRICT_ANSI__]:
882 ...when any of these prevail, or as appropriate to correspond with...
883 [_XOPEN_SOURCE]: ...this; set conformance level accordingly.
885 * include/math.h [_POSIX_C_SOURCE || defined _USE_MATH_DEFINES]
886 (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI)
887 (M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2): Define them, irrespective...
888 [__STRICT_ANSI__]: ...of this; replace guard accordingly.
890 2014-12-01 Keith Marshall <keithmarshall@users.sourceforge.net>
892 Add implementation of mkstemp() and mkdtemp() functions.
894 * mingwex/cryptnam.c: New file; it implements...
895 (__mingw_crypto_tmpname): ...this helper function; it generates a
896 cryptographically secure sequence of characters, used as the random
897 component in temporary file and directory names.
899 * mingwex/mkstemp.c: New file; it implements...
900 (__mingw_mkstemp): ...this provider of mkstemp() functionality.
902 * mingwex/mkdtemp.c: New file; it implements...
903 (__mingw_mkdtemp): ...this provider of mkdtemp() functionality.
905 * include/stdlib.h (mkstemp): Declare protototye; provide an inline
906 function implementation, with LIBIMPL extern semantics, in terms of...
907 (__mingw_mkstemp): ...this; also declare prototype, and define...
908 (_MKSTEMP_INVOKE, _MKSTEMP_DEFAULT): ...these supporting constants.
909 (_MKSTEMP_SETMODE): New macro; define it, also providing...
910 (MKSTEMP_SETMODE) [!_NO_OLDNAMES]: ...this alias.
911 (mkdtemp): Declare prototype; provide inline implementation, with
912 JMPSTUB extern semantics, in terms of...
913 (__mingw_mkdtemp): ...this; declare prototype.
915 * Makefile.in (libmingwex.a): Add dependency rule, to include...
916 (mkstemp.$OBJEXT, mkdtemp.$OBJEXT, cryptname.$OBJEXT): ...these.
918 2014-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
920 More JMPSTUB rationalization of inline functions.
922 * include/stdlib.h (_Exit, atoll, lltoa, ulltoa, wtoll, lltow)
923 (ulltow): Add __JMPSTUB__ declarations; each is REMAPPED to its
924 appropriate MSVCRT.DLL equivalent entry point.
926 * mingwex/_Exit.c: File is now redundant; delete it.
927 * mingwex/atoll.c mingwex/lltoa.c mingwex/ulltoa: Likewise.
928 * mingwex/wtoll.c mingwex/lltow.c mingwex/ulltow: Likewise.
930 * Makefile.in (jmpstub_awk_script): Add support for...
931 [__JMPSTUB__((REMAPPED))]: ...this stub function attribute.
932 (libmingwex.a): Remove dependencies on deleted files, namely...
933 (_Exit.$OBJEXT, atoll.$OBJEXT, lltoa.$OBJEXT, ulltoa.$OBJEXT)
934 (wtoll.$OBJEXT, lltow.$OBJEXT, ulltow.$OBJEXT): ...these.
936 2014-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
938 Correct omission of complex conjugate functions from libmingwex.a
940 * include/complex.h (conj, conjf, conjl): Add LIBIMPL declarations.
941 (creal, crealf, creall): Likewise, for consistency of implementation.
942 (cimag, cimagf, cimagl, carg, cargf, cargl): Likewise.
944 * Makefile.in (libimpl_sed_script): Add processing for __CRT_INLINE
945 declarations; they should be interpreted analogously to __CRT_ALIAS.
946 (libmingwex.a): Remove object file references for functions which are
947 now declared as LIBIMPL, and sort the remainder in ASCII collating
948 order; deleted function references comprise the set consisting of...
949 (carg.$OBJEXT, cargf.$OBJEXT, cargl.$OBJEXT): ...these...
950 (creal.$OBJEXT, crealf.$OBJEXT, creall.$OBJEXT): ...these, and...
951 (cimag.$OBJEXT, cimagf.$OBJEXT, cimagl.$OBJEXT): ...these.
953 * mingwex/complex/carg.c: Replaced by LIBIMPL; delete it.
954 * mingwex/complex/cargf.c mingwex/complex/cargl.c: Likewise.
955 * mingwex/complex/creal.c mingwex/complex/cimag.c: Likewise.
956 * mingwex/complex/crealf.c mingwex/complex/cimagf.c: Likewise.
957 * mingwex/complex/creall.c mingwex/complex/cimagl.c: Likewise.
959 2014-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
961 Back-port improved asinh() implementation from 4.0-dev branch.
963 * mingwex/math/asinh_generic.c: New file; it replaces...
964 * mingwex/math/asinh.c mingwex/math/asinhf.c mingwex/math/asinhl.c:
965 ...all of these; delete them.
967 2014-11-18 Keith Marshall <keithmarshall@users.sourceforge.net>
969 Enable remake of lost LIBIMPL object files.
971 * Makefile.in (libimpl_remake): New macro; define it, and...
972 (%.libimpl.$OBJEXT) [%.libimpl exists]: ...use it in build rule.
974 2014-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
976 Implement more robust _get_output_format fallback handling.
978 * mingwex/ofmt.c: New file; it implements...
979 (__mingw_output_format_flag): ...backing store, used by...
980 (__mingw_get_output_format, __mingw_set_output_format): ...these
981 MSVCRT.DLL version agnostic wrappers/emulators for each of these...
982 (_get_output_format, _set_output_format): ...MSVCR80.DLL and later
983 version specific Microsoft APIs, which are also supported by some
984 later versions of MSVCRT.DLL, (excluding WinXP and earlier).
985 (__mingw_get_output_format_fallback): Implement; it is aliased to...
986 (__mingw_set_output_format_fallback): ...this; together they provide
987 the emulation support for the preceding pair of functions, when they
988 are not available within the run-time platform MSVCRT.DLL
989 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
990 Implement them; they wrap, and if necessary emulate...
991 (_get_printf_count_output, _set_printf_count_output): ...these.
992 (__mingw_get_printf_count_output_fallback): Implement; aliased to...
993 (__mingw_set_printf_count_output_fallback): ...this; together they are
994 required to support emulation of the preceding pair of functions, when
995 they are not available within the run-time platform MSVCRT.DLL
997 * include/stdio.h (_TWO_DIGIT_EXPONENT): Define it unconditionally.
998 (_THREE_DIGIT_EXPONENT): New manifest constant; define it orthogonally.
999 (__mingw_get_output_format, __mingw_set_output_format)
1000 (__mingw_get_printf_count_output, __mingw_set_printf_count_output):
1001 Unconditionally declare their prototypes, for subsequent inline use.
1002 [_MSVCRT_VERSION__ < 0x800] (_get_output_format): Emulate it inline.
1003 [_MSVCRT_VERSION__ < 0x800] (_set_output_format): Likewise.
1004 [_MSVCRT_VERSION__ < 0x800] (_get_printf_count_output): Likewise.
1005 [_MSVCRT_VERSION__ < 0x800] (_set_printf_count_output): Likewise.
1006 (__USE_MINGW_PRINTF): New manifest constant; define it. It is a
1007 counterpart to __USE_MINGW_ANSI_STDIO, which is guaranteed to always
1008 represent a compilable token.
1010 * mingwex/stdio/pformat.c (__pformat_exponent_digits): Do not require
1011 _get_output_format; consult __mingw_output_format_flag directly.
1013 * ofmt_stub.s: No longer required; delete it.
1015 * Makefile.in (ofmt_stub.$OBJEXT): Delete reference.
1016 (PFORMAT_CFLAGS) [__MSVCRT_VERSION__ = 0x800]: Remove requirement.
1017 (varofmt.$OBJEXT, crtofmt.$OBJEXT, getofmt.$OBJEXT, setofmt.$OBJEXT)
1018 (crtnfmt.$OBJEXT, getnfmt.$OBJEXT, setnfmt.$OBJEXT): Add build rule;
1019 all are compiled from ofmt.c
1021 2014-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1023 Do some more essential build tree clean up.
1025 * Makefile.in (mostly-clean-local): Add *.libimpl; matching files get
1026 in the way of a successful rebuild from clean.
1028 2014-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1030 Implement wrappers for emulation of POSIX dlfcn API.
1032 * include/dlfcn.h: New file; it declares the API.
1033 * mingwex/dlfcn.c: New file; implement it, with access via...
1034 (__mingw_dlfcn): ...this publicly addressable vector table.
1036 * Makefile.in (dlfcn.$OBJEXT): Add build requisite.
1037 (dlopen, dlsym, dlclose, dlerror): Build call stubs, using...
1038 (__LIBIMPL__): ...this automatic interface generator; implement it.
1039 (libstub_refnames): New macro; it is adapted from and replaces...
1040 (jmpstub_refs): ...this; when it is then invoked twice to build...
1041 (Makefile.stub): ...this, it handles both JMPSTUB and LIBIMPL.
1042 (jmpstub_awk_script): Adapt it to work with 'libstub_refnames'.
1043 (libimpl_awk_script): New inline script; it handles automated builds
1044 of LIBIMPL interfaces, as 'jmpstub_awk_script' does for JMPSTUB.
1045 (libimpl_sed_script): New inline script; it prepares intermediate C
1046 source code for LIBIMPL interfaces, as required to satisfy these...
1047 (%.libimpl, %.libimpl.$OBJEXT): ...new implicit build objectives.
1048 (LIBIMPL_CFLAGS): New macro; define it.
1050 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1052 Move libgen functions to __mingw_ pseudo-namespace.
1054 * mingwex/dirname.c (dirname): Rename function, as implemented...
1055 (__mingwex_dirname): ...to this.
1057 * mingwex/basename.c (basename): Rename function, as implemented...
1058 (__mingwex_basename): ...to this.
1060 * include/libgen.h (__mingw_dirname, __mingw_basename): Declare
1061 prototypes, matching and augmenting original declarations for...
1062 (dirname, basename): ...these; reimplement as inline aliases, with
1063 __JMPSTUB__ references to the renamed implementation entry points.
1065 2014-11-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1067 Implement new command line argument globbing strategy.
1069 * include/_mingw.h: Backport feature defines from master...
1070 (__CRT_GLOB_USE_MINGW__, __CRT_GLOB_USE_MSVCRT__): New manifest
1071 constants; define them. They select the preferred globbing algorithm.
1072 [_CRT_glob & __CRT_GLOB_USE_MINGW__] (__CRT_GLOB_USE_SINGLE_QUOTE__)
1073 (__CRT_GLOB_BRACKET_GROUPS__, __CRT_GLOB_CASE_SENSITIVE__): New option
1074 bit-map constants; define them. When added to __CRT_GLOB_USE_MINGW__,
1075 they enable optional additional features supported by this algorithm.
1076 (__CRT_GLOB_ESCAPE_CHAR__): New manifest constant; define it.
1078 * CRTglob.c (_CRT_glob): Change default to __CRT_GLOB_USE_MINGW__.
1080 * Makefile.in (libmingw32.a): Add setargv.$OBJEXT, furnished by...
1081 * setargv.c: ...new file; it implements the initialization mechanism
1082 for the __CRT_GLOB_USE_MINGW__ globbing algorithm, when invoked by...
1083 (_setargv) [_CRT_glob & __CRT_GLOB_USE_MINGW__]: ...this new function;
1084 it invokes the algorithm via an API similar to that described by MSDN,
1085 while continuing to support our original _CRT_glob interpretation.
1086 (_setargv) [! _CRT_glob & __CRT_GLOB_USE_MINGW__]: Invoke Microsoft
1087 algorithm, via the MSDN-alike API, by calling back to...
1089 * crt1.c (_mingw32_init_mainargs): ...this original function, now
1090 relocated to here, as a publicly addressable function; formerly...
1091 (__mingw_CRTStartup): ...called directly from here, we now redirect
1092 the call through _setargv(), whence it may be called indirectly.
1094 * init.c: Redundant file; delete it. It originally provided...
1095 (_mingw32_init_mainargs): ...this, now relocated as noted above, with
1096 original static attribute removed, to allow global addressing.
1098 2014-11-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1100 Backport glob implementation from master to legacy.
1102 * include/glob.h: New file; copy it from master branch.
1103 (__mingw_glob, __mingw_globfree): Add __JMPSTUB__ aliases for...
1104 (glob, globfree): ...each of these, respectively.
1106 * mingwex/glob.c: New file; copy it from master:src/libcrt/misc.
1107 (CRT_GLOB_HARD_ESCAPE) [ifndef __CRT_GLOB_ESCAPE_CHAR__]: Provide a
1108 fallback definition; default value is ASCII DEL, a.k.a. RUBOUT, code.
1109 (accept_glob_nocheck_match): New static function; it adds support for
1110 avoidance of globbing on patterns with no globbing token, so avoiding
1111 the case transliteration effect reported as MinGW-Bug #2106.
1112 (glob_match): Use it.
1114 * Makefile.in: Build glob.$OBJEXT; add it to libmingwex.a
1116 2014-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1118 Implement conventionally named dirent function trampolines.
1120 * mingwex/jmpstub.sx: New file; it implements a generic trampoline,
1121 which redirects a conventionally named function call to its __mingw_
1122 pseudo-namespace implementation.
1124 * aclocal.m4 (MINGW_AC_PROG_COMPILE_SX): New macro; define it.
1125 * configure.ac (MINGW_AC_PROG_COMPILE_SX): Use it; it identifies the
1126 appropriate protocol for compiling *.sx files, (supported natively by
1127 GCC >= v4.3, but older versions require `-x assembler-with-cpp').
1129 * Makefile.in (COMPILE.sx): New implicit rule; GNU make does not
1130 yet provide it, so we define it ourselves; deploy it for *.sx files.
1131 (Makefile.stub): New sinclude file; create it dynamically, using...
1132 (jmpstub_awk_script): ...this new inline script, which is based on...
1133 (jmpstub_refs, jmpstub_prerequisites): ...these new macros, and...
1134 (mingwex/jmpstub.sx): ...this new file; add vpath reference.
1135 (mostlyclean-local): Remove Makefile.stub; do likewise...
1136 (Makefile): ...when remaking this, to ensure that both will be
1139 2014-11-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1141 Make dirent implementation namespace and time_t clean.
1143 * include/_mingw.h (_EXTERN_C, _BEGIN_C_DECLS, _END_C_DECLS): New
1144 macros; define them. They facilitate identification of symbols which
1145 must be compiled with `extern "C"' binding, when compiling C++ code.
1146 (__CRT_ALIAS): New macro; define it. It is intended to replace...
1147 (_CRTALIAS): ...this, which is to be considered as deprecated.
1148 (__JMPSTUB__, __LIBIMPL__): New macros; define them. They provide
1149 __CRT_ALIAS build hints, while remaining transparent to GCC.
1150 (UNICODE, _UNICODE) [user defined]: Define consistently.
1152 * mingwex/dirent.c: Reimplement; (this is a back-port from the
1153 4.0-dev branch, with additional ABI changes to improve stability).
1154 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1155 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1156 Add `__mingw_' prefix to all publicly exposed symbol names.
1157 (dirent_findfirst, dirent_findnext, dirent_findclose): New locally
1158 implemented functions; they replace Microsoft's ambiguously defined
1159 _findfirst, _findnext, and _findclose, so avoiding ABI instability
1160 resulting from the ambiguous size of Microsoft's time_t.
1162 * include/dirent.h (struct dirent, struct _wdirent): Redefine them,
1163 removing unnecessary time_t and file size fields; (our replacements
1164 for _findfirst, and _findnext do not require them to be present).
1165 (DIR, _WDIR): Adjust typedefs; they are now opaque structs.
1166 (opendir, readdir, telldir, seekdir, rewinddir, closedir)
1167 (_wopendir, _wreaddir, _wtelldir, _wseekdir, _wrewinddir, _wclosedir):
1168 Adjust prototypes, making them inline aliases for public symbols which
1169 are now qualified by the `__mingw_' prefix; add build hints to support
1170 compilation of addressable stubs, with the original symbol names.
1171 (DT_REG, DT_DIR, DT_UNKNOWN): New manifest constants; define them.
1172 (DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_SOCK): Likewise; (these are for
1173 BSD compatibility, but are fundamentally unsupported on MS-Windows).
1174 (_DIRENT_HAVE_D_TYPE, _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_NAMLEN):
1175 New macros; define them. (These show availability of optional fields
1176 within the dirent struct, which client code may wish to access).
1178 2014-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1180 Correct improper naming of assembly language source files.
1182 * mingwex/math/*.S: Rename all files with this extension...
1183 * mingwex/math/*.s: ...to this; (all are simple assembly language, and
1184 not extended `assembler-with-cpp' as implied by the former extension);
1185 adjust all internal `.file <name>' references accordingly.
1187 * Makefile.in (vpath %.S): Adjust reference to locate files....
1188 (vpath %.s): ...now renamed thus.
1190 2014-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1192 Streamline the build system infrastructure.
1194 * configure.ac: New file; it replaces...
1195 * configure.in: ...this; (name is obsolete); delete it.
1197 * aclocal.m4 Makefile.in: Substantially rewritten; avoid recursive
1198 make invocations, when processing subdirectories, and add automatic
1199 dependency tracking for all generated files.
1201 * configure: Delete it; as a generated file, it doesn't belong in SCM.
1203 * mingwex/Makefile.in: No longer required; delete it.
1204 * profile/Makefile.in: Likewise.
1206 * mkinstalldirs: Not required; delete it; (make should use `mkdir -p',
1207 or fall back on `install-sh -d', per AC_PROG_MKDIR_P).
1209 * jamfile: Delete it; it hasn't been updated in ages, is likely no
1210 longer relevant, and I have no desire to maintain it.
1212 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1214 * include/_mingw.h: Increment version to 3.20.
1216 2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1218 * tlsmthread.c: Update to reflect changes in tlssup.c.
1219 * tlssup.c: code clean-up.
1221 2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1223 * include/_mingw.h: Increment version to 3.19.
1225 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1227 * include/float.h: Modify guard to accomodate CLang.
1229 Thanks to Ruben Van Boxem for the report.
1231 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1233 * tlssup.c: Remove mingwm10.dll fallback.
1235 2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1237 * include/sys/types.h (ssize_t): Defined as int as opposed to long.
1239 Thanks to bvassche for the report.
1241 2011-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1243 Correct checking for short option matches in getopt_long_only().
1245 * mingwex/getopt.c (getopt_verify): New static inline function.
1246 (getopt_parse) [getopt_mode_long_only]: Use it, to validate as a
1247 possible short option match after failing to match, or ambiguously
1248 matching as a long option.
1250 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1252 * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.
1254 Thanks to cgf for the report.
1256 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1258 * include/time.h (daylight, timezone, tzname): Rework guards to expose when
1259 compiles with __STRICT_ANSI__.
1261 Thanks to Felipe Contreras for the report.
1263 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1265 * include/stdlib.h (strtod): Remove possible static declaration to resolve
1268 Thanks to Tobias Burnus for the report.
1270 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1272 * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
1273 by wrapping the functions in brackets.
1275 Thanks to Kai Tietz for the report.
1277 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
1279 * Makefile.in: Add support for msvcr100.dll.
1280 * msvcrt.def.in: Ditto.
1282 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1284 * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
1285 not always available, go the long way and use the explicit named union
1286 members, which are also declared in winnt.h.
1288 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1290 * mingwex/isblank.c: Fix typo in declaration.
1292 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
1294 * include/_mingw.h: Define GCC system_header only if PCC is not defined.
1295 * include/stdlib.h: Fix a long-standing typo which prevented correct use of
1296 the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
1297 is included before <ctype.h>.
1299 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1301 * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.
1303 Thanks to Jim Bell for the report and Greg Chicares for the fix.
1305 2011-01-07 Jacky Lai <crazyjacky@users.sourceforge.net>
1307 Correct hexadecimal formatting of double and long double values.
1309 * mingwex/stdio/pformat.c (__pformat_xdouble): Delete function.
1310 (__pformat) [A format]: Cast double values to long double, and use...
1311 (__pformat_xldouble): ...this instead, with corrected adjustment of
1312 exponent and alignment of mantissa, when formatting subnormals.
1314 2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
1316 * include/dirent.h (dd_handle): Define as intptr_t.
1318 2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1320 * tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
1323 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1325 * include/limits.h (PATH_MAX): Make it agree with Microsoft's
1326 semantically identical MAX_PATH; correct value is 260.
1328 2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1330 Accept that mingwrt headers are not guaranteed to precede GCC's in the
1331 system include search path; (issue reported by Mark Brand).
1333 * include/float.h: Add multiple inclusion guard around...
1334 [! defined _FLOAT_H___]: ...include_next <float.h> for GCC's version,
1335 only when this define does not indicate that it has already been seen;
1336 update comments to document rationale; move it within the scope of...
1337 [! defined _MINGW_FLOAT_H_]: ...this multiple inclusion guard, so that
1338 GCC's float.h, after an appropriate complementary modification, need
1339 not perform a further include path search when this implementation
1340 specific extension has already been processed.
1342 2010-07-22 Ozkan Sezer <sezero@users.sourceforge.net>
1344 * include/io.h (_findfirst, _findnext, _findclose, _findfirst32,
1345 _findnext32, _findfirsti64, _findnexti64, _findfirst32i64, _findfirst64i32,
1346 _findnext32i64, _findnext64i32, _findnext64, _findfirst, _findnext,
1347 _findfirsti64, _findnexti64, _findfirst, _findnext, _findfirsti64,
1348 _findnexti64): Correct definition.
1350 2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
1352 * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.
1354 2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1356 * include/_mingw.h: Increment version to 3.18.
1358 2010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
1360 * include/stdio.h: (_vscprintf, _vscwprintf)
1361 * include/tchar.h: (_vsctprintf)
1363 2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
1365 Issue [2134161]: time64 functions and types for msvcrt >= 8.0
1366 (initial implementation)
1368 * new type: __time32_t
1370 * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t,
1371 __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32,
1372 __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t
1374 * new functions: _ctime32, _difftime32, _difftime64, _findfirst32
1375 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64,
1376 _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32,
1377 _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64,
1378 _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32,
1379 _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32,
1380 _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32,
1381 _wstat32i64, _wstat64i32,_wutime32
1383 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t,
1384 ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64,
1385 _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime,
1386 _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64,
1387 _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
1389 2010-01-25 Kai Tietz <kai.tietz@onevision.com>
1391 Implement TLS Callback.
1393 * tlsmcrt.c: New file.
1394 * tlsmthread.c: Ditto.
1397 * Makefile.in: Include new files.
1398 * crt1.c: Implement TLS Callback.
1400 * mthr_stub.c: Remove.
1402 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1404 * include/_mingw.h: Increment version to 3.17.
1406 2009-11-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1408 * mingwex/gdtoa/misc.c: Fix security vulnerability in gdtoa:
1409 cf. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0689
1411 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1413 * include/io.h (_open_osfhandle): Correct definition.
1415 Thanks to Alexander Shaduri for the information.
1417 2009-11-02 Charles Wilson <mingw@cwilson.fastmail.fm>
1419 Final sync of pseudo-reloc.c with mingw64 and cygwin
1420 * lib/pseudo-reloc.c (__report_error) [CYGWIN]: Correct size bug
1421 regarding error messages.
1423 2009-10-29 Charles Wilson <mingw@cwilson.fastmail.fm>
1425 Honor DESTDIR for winsup/mingw and winsup/w32api.
1426 Detect and report error if installation paths are win32
1427 format, but DESTDIR is non-empty.
1429 * Makefile.in (DESTDIR): Honor per convention.
1430 (need-DESTDIR-compatibility): New macro; define it and a
1432 (fail-DESTDIR-compatibility): New dependency goal.
1433 (install-dirs): Require need-DESTDIR-compatibility.
1434 * mingwex/Makefile.in (DESTDIR): Honor per convention.
1435 (need-DESTDIR-compatibility): New macro; define it and a
1437 (fail-DESTDIR-compatibility): New dependency goal.
1438 (install): Require need-DESTDIR-compatibility.
1439 * profile/Makefile.in: Ditto.
1441 2009-10-25 Charles Wilson <mingw@cwilson.fastmail.fm>
1443 Sync pseudo-reloc.c with mingw64
1444 * psuedo-reloc.c: Remove unnecessary includes.
1445 Forward declare _pei386_runtime_relocator.
1446 Decorate _image_base__ symbol with macro for
1447 mingw64 compatibility. Whitespace changes.
1448 (__print_reloc_error): Renamed to...
1449 (__report_error): This. "Returns" void, and
1450 always aborts. Now used on all platforms.
1451 (__write_memory): Remove special case error handling
1452 for different platforms - always call __report_error.
1453 (do_pseudo_reloc): Remove special case error handling
1454 for different platforms - always call __report_error.
1455 (_pei386_runtime_relocator): Decorate _image_base__
1456 symbol with mingw64 compatibility macro.
1458 2009-10-23 Charles Wilson <mingw@cwilson.fastmail.fm>
1460 Sync pseudo-reloc.c with cygwin/lib/
1461 * pseudo-reloc.c [CYGWIN]: Added comments throughout and various
1462 whitespace fixes. Exploit cygwin_internal(CW_EXIT_PROCESS,...)
1463 for fatal error handling that is consistent with cygwin process
1464 life-cycle. Ensure state variable (in _pei386_runtime_relocator)
1465 is unique to each address space, across fork().
1466 [CYGWIN] (__print_reloc_error): New function for reporting
1467 errors in a manner supported by cygwin at this early stage of
1468 the process life-cycle.
1469 [CYGWIN] (_pei386_runtime_relocator): Ensure relocations
1470 performed only once for each address space, but are repeated
1471 after fork() in the new address space.
1472 [MINGW] (__write_memory): Ensure that b is always initialized
1473 by call to VirtualQuery, even if -DNDEBUG.
1475 2009-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1477 Make MinGW printf() "%p" format compatible with MSVCRT scanf().
1478 (Based on MinGW-patch 2844514 by Peter Rosin <peda@lysator.liu.se>)
1480 * mingwex/stdio/pformat.c (__printf) [%p]: Do not arbitrarily apply...
1481 (PFORMAT_HASHED): ...this formatting attribute; honour only user
1482 specified format qualifiers, except in special case...
1483 [%p && stream.flags == flags && state == PFORMAT_INIT]: Apply...
1484 (PFORMAT_ZEROFILL): ...this default formatting attribute...
1485 (stream.precision): ...filled to at least 2 * sizeof( uintptr_t )
1488 2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1490 Avoid multiple link time definitions of _printf() for C++;
1491 (problem reported by Alexander Shaduri, via MinGW-users ML).
1493 * include/stdio.h [__USE_MINGW_ANSI_STDIO]:
1494 (__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
1496 2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1498 * include/_mingw.h: Increment version to 3.16.
1500 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>
1502 * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit,
1503 __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf,
1504 __fp_unordered_compare): Add prototypes.
1505 * include/stdio.h (vsnwprintf): Add prototype.
1506 * include/wchar.h (vsnwprintf): Add prototype.
1507 * include/stdlib.h (_Exit): Protect inline definition with !__STRICT_ANSI__.
1508 * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
1510 2009-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1512 Correct disposition of wchar_t output in printf().
1514 * mingwex/stdio/pformat.c (__pformat) [%C]: Create new instance of...
1515 (argval): ...this, in inner scope, with singular type `wchar_t'; use
1516 it to pass one wchar to __pformat_wputchars(), for output.
1518 2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1520 * mingwex/stdio/pformat.c: Implement better fix for type punned warning.
1522 2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1524 Convert to monolithic configuration procedure.
1526 * configure.in (AC_CHECK_TOOL): All instances; tabulate arguments.
1527 (AC_SUBST): Use its 2nd argument to initialise MinGW default settings.
1528 (PACKAGE_TARNAME) [target_os ~ cygwin]: Redefine it as appropriate.
1529 (W32API_INCLUDE): Redefine; make it relative to `top_srcdir'.
1530 (CRT0S): Relocate from `profile'; define it as appropriate.
1531 (LIBM_A): Define and AC_SUBST it unconditionally.
1532 (AC_CONFIG_SUBDIRS): Remove; none to configure.
1533 (AC_OUTPUT_FILES): Add `Makefile' for each of...
1534 (mingwex, profile): ...these subdirectories.
1536 * configure: Regenerated.
1538 * Makefile.in (PACKAGE, host_os): Let AC_SUBST define them.
1539 (top_srcdir, top_builddir): New macros; let AC_SUBST define them.
1540 (datarootdir): New macro; autoconf > 2.59 wants AC_SUBST to define it.
1541 (SUBDIRS): Define explicitly, to run recursive `make' in...
1542 (mingwex, profile): ...these; simplify build commands...
1543 (rootme, rootsrc): ...without these shell variables.
1544 (all, subdirs): Delete redundant build commands.
1545 (FIXME): Flag various issues for follow up.
1547 * mingwex/Makefile.in (INCLUDES): Redefined macro; refer it to...
1548 (top_srcdir): ...this new macro; let AC_SUBST define it.
1549 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1550 (Makefile): Make it depend on...
1551 (top_builddir/config.status): ...this, itself depending on...
1552 (top_srcdir/configure): ...this.
1553 (FIXME): Flag various issues for follow up.
1555 * mingwex/aclocal.m4: File no longer required; delete it.
1556 * mingwex/configure mingwex/configure.in: Likewise.
1558 * profile/Makefile.in (INCLUDES): Redefined macro; refer it to...
1559 (top_srcdir): ...this new macro; let AC_SUBST define it.
1560 (top_builddir, datarootdir): New macros; let AC_SUBST define them.
1561 (Makefile): Make it depend on...
1562 (top_builddir/config.status): ...this, itself depending on...
1563 (top_srcdir/configure): ...this.
1564 (FIXME): Flag various issues for follow up.
1566 * profile/aclocal.m4: File no longer required; delete it.
1567 * profile/configure profile/configure.in: Likewise.
1569 2009-07-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1571 * msvcrt.def.in: disable time symbol for libmsvcr90.a and libmsvcr90d.a due
1572 to complaints that it causes issues.
1574 2009-07-23 Jacky Lai <crazyjacky@users.sourceforge.net>
1576 * mingwex/math/fminf.c: switch to using __isnanf() as opposed to _isnan().
1578 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1580 * include/inttypes.h include/math.h include/stdio.h include/stdlib.h
1581 include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard
1582 to all inline functions.
1584 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1586 * CRT_fp8.c: Add PCC alternative to GCC-specific constructs.
1587 * CRT_fp10.c: Ditto.
1589 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1591 * cpu_features.c: replace gcc-specific construct with portable alternative
1592 and match the code a few lines above.
1593 * crt1.c: remove gcc-specific noreturn attribute with mingw alternative
1595 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1597 * include/_mingw.h: Changes required for PCC compiler.
1599 2009-07-18 Jeff Lu <jll544@yahoo.com>
1601 * mingwex/usleep.c: round up to next ms
1603 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1605 * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
1606 mingwex/math/lgammal.c mingwex/math/powl.c mingwex/math/sinhl.c
1607 mingwex/math/tanhl.c mingwex/math/tgamma.c mingwex/math/tgammal.c: Based on
1608 the fixes from the mingw-w64 code tree, fixed strict-aliasing issues.
1610 2009-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1612 * mingwex/stdio/pformat.c: Fix compiler warnings with GCC 4.4.0.
1614 2009-06-28 Ozkan Sezer <sezero@users.sourceforge.net>
1616 * mingwex/gdtoa/README.mingw mingwex/gdtoa/gdtoa_fltrnds.h: New files.
1617 * mingwex/gdtoa/README mingwex/gdtoa/dmisc.c mingwex/gdtoa/dtoa.c
1618 mingwex/gdtoa/g__fmt.c mingwex/gdtoa/g_dfmt.c mingwex/gdtoa/g_ffmt.c
1619 mingwex/gdtoa/g_xfmt.c mingwex/gdtoa/gd_arith.h mingwex/gdtoa/gd_qnan.h
1620 mingwex/gdtoa/gdtoa.c mingwex/gdtoa/gdtoa.h mingwex/gdtoa/gdtoaimp.h
1621 mingwex/gdtoa/gethex.c mingwex/gdtoa/gmisc.c mingwex/gdtoa/hd_init.c
1622 mingwex/gdtoa/hexnan.c mingwex/gdtoa/misc.c mingwex/gdtoa/qnan.c
1623 mingwex/gdtoa/smisc.c mingwex/gdtoa/strtodg.c mingwex/gdtoa/strtodnrp.c
1624 mingwex/gdtoa/strtof.c mingwex/gdtoa/strtopx.c mingwex/gdtoa/sum.c
1625 mingwex/gdtoa/ulp.c: Update the gdtoa library to match the netlib.org
1626 sources as of Apr. 20, 2009. Update further to match the sources in
1627 the mingw-w64 tree as of June 28, 2009, by removing IBM, CRAY and VAX
1628 code, removing KR_headers, ANSI, Void and Char ifdefs, renaming the
1629 double/ulong union from U to dbl_union for better grepping and white-
1632 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1634 * include/stdlib.h (_wtof): Define.
1636 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
1638 * include/stdint.h (int_fast8_t): Specify as signed char.
1639 (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
1640 (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
1642 2009-03-05 Kai Tietz <kai.tietz@onevision.com>
1644 * pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.
1646 2009-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1648 MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
1649 (Requested by Robert Riebisch)
1651 * mingwex/getopt.c (getopt_parse): Track external increments of...
1652 (optind): ...this global variable.
1654 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1656 * include/_mingw.h: Increment version to 3.15.2.
1658 2009-01-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1660 Fix MinGW-Bug [2445962]; (reported by Keishi Suenaga).
1661 Also add tentative support for BSD specific `optreset' feature.
1663 * include/getopt.h (optreset) [_BSD_SOURCE]: Define; map it to...
1664 (__mingw_optreset): ...this new global variable.
1666 * mingwex/getopt.c (__mingw_optreset): Instantiate it...
1667 (getopt_parse) [optind < 1]: ...make it true; use it to reset argument
1670 2008-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1672 Partial fix for MinGW-Bug [2457778]: (Reported by Sisyphus).
1673 Correct mishandling of invalid characters in printf() format specs.
1675 * mingwex/stdio/pformat.c (__pformat): Save `fmt' scan position in...
1676 (backtrack): ...this new automatic variable, at start of each format
1677 conversion specification substring; use it to backtrack, and print the
1678 substring literally, if any invalid character is encountered.
1680 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>
1682 * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func,
1683 ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func,
1684 ___unguarded_readlc_active_add_func, __crtCompareStringW,
1685 __crtGetStringTypeW, __crtLCMapStringW, __pctype_func,
1686 __pwctype_func, __iob_func, __uncaught_exception, __wcserror,
1687 __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize,
1688 __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject,
1689 __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free,
1690 _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc,
1691 _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch,
1692 _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf,
1693 _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64,
1694 _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64,
1695 _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
1697 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com>
1699 * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
1701 2008-10-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1703 Correct some binary distribution packaging defects.
1705 * Makefile.in (bindist): Remove `make' conditionals; segregate into...
1706 (bindist-common, bindist-mingwrt, bindist-mingw-runtime): ...these new
1707 intermediate goals; they make packages of files, as specified by...
1708 (BINDIST_FILES, DEVDIST_FILES, DLLDIST_FILES): ...these new macros.
1709 (dist_prefix) [target_alias !~ cygwin]: Leave it undefined.
1711 2008-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1713 Fix MinGW-Bug [2136252]: (Reported by Roumen Petrov).
1714 Remove extraneous radix point in printf( "%.0f", v ) for v < 0.5
1716 * mingwex/stdio/pformat.c (__pformat_emit_float): Always make output
1717 of radix point conditional on precision != 0 or `#' flag specified.
1719 2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1721 Fix MinGW-Bug [2160227]
1722 Eliminate conflicting declarations and implementations of scalb().
1724 * moldname.def.in (scalb): Comment out of EXPORTS list.
1725 * include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
1726 with GCC's built-in declaration.
1728 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
1730 * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
1732 * mingwex/Makefile.in: Ditto.
1733 * profile/Makefile.in: Ditto.
1734 * configure.in: Record mingw front-end for building under Cygwin.
1735 * mingwex/configure.in: Ditto.
1736 * profile/configure.in: Ditto.
1737 * configure: Regenerate.
1738 * mingwex/configure: Ditto.
1739 * profile/configure: Ditto.
1741 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1743 Use de-facto standard Makefile goals to invoke test suite.
1745 * Makefile.in: Some minor formatting adjustments.
1746 (test_headers): Unconventionally named goal renamed to...
1747 (check-headers): ...this; make it a prerequisite of...
1748 (check): ...this new conventionally named goal.
1750 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1752 Make strtod() inline definition C89 compliant.
1753 (Issue reported by Ilya Shestopalov and Ian Puleston)
1754 (Correction identified by Danny Smith)
1756 * include/stdlib.h (strtod): Declare as `__inline__', not `inline';
1757 reformat inline function definition.
1759 2008-10-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1761 * include/_mingw.h: Increment version to 3.15.1 and introduce
1762 __MINGW32_PATCHLEVEL variable.
1764 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1766 Fix MinGW-Bug [2144266]: getopt() sets `optind' incorrectly.
1767 (Reported by Christian Franke)
1769 * mingwex/getopt.c (optind): Make global variable value conform to
1770 behaviour specified by POSIX; do not use it for internal state in...
1771 (getopt_parse): ...this static function; use...
1772 (optbase): ...this new static local variable instead.
1773 (getopt_resolved): Update `optind' as required.
1775 2008-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1777 Improve package identification in configure script.
1779 * configure.ac (AC_INIT): Redefine parameters...
1780 (PACKAGE_NAME): Set to `MinGW Runtime'.
1781 (PACKAGE_BUGREPORT): Set to `http://mingw.org/reporting_bugs'
1782 (PACKAGE_TARNAME): Set to `mingwrt'.
1783 (PACKAGE_VERSION): Set generically to `v3.x'; reassigned by...
1784 (MINGW_AC_CONFIG_SRCDIR): ...this macro, which extracts...
1785 (__MINGW32_VERSION): ...this, from file `include/_mingw.h'.
1787 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): Do not redefine...
1788 (PACKAGE_TARNAME): ...this.
1790 * configure: Regenerated.
1792 2008-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1794 Fix MinGW-Bug [2125708].
1795 (Reported by Alexandr Zamaraev).
1797 * include/stdlib.h (intptr_t) [!_INTPTR_T_DEFINED]: Unused typedef;
1798 not wanted here; remove it; replace it by...
1799 (uintptr_t) [!_UINTPTR_T_DEFINED]: ...this typedef; needed by...
1800 (_invalid_parameter_handler): ...this function typedef.
1802 2008-09-23 Chris Sutcliffe <ir0nh34d@users.sf.net>
1804 * Makefile.in: Don't include host_os as part of snapshot filename.
1806 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1808 Fix MinGW-Bug [2119504].
1809 (Reported by Peiyuan Song).
1811 * mingwex/getopt.c (getopt_resolved): Do not overwrite...
1812 (*retindex): ...this already correctly assigned return variable...
1813 (opt[index].val): ...with this; this should have been assigned to...
1814 (*opt[index].flag) [opt[index].flag != NULL]: ...this instead.
1816 2008-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1818 Fix MinGW-Bug [2117379].
1819 (Reported by Peiyuan Song).
1821 * include/stdio.h (__argv): Replace all references in function
1822 prototype argument lists and inline function local variables, with ...
1823 (__local_argv): ...this, to avoid potential conflict with ...
1824 * include/stdlib (__argv): ...this #defined macro.
1826 2008-09-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1828 * include/_mingw.h: Increment version to 3.15.
1830 2008-09-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
1832 * Makefile.in: Adjust to new naming standard for MinGW while maintaining old
1833 naming standard for Cygwin.
1835 2008-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1837 Reimplement getopt.c to add getopt_long_only() function.
1839 (N.B. this reimplementation removes support for BSD/Mac-OS-X
1840 `optreset' nonsense; user code should set `optind = 0' instead,
1841 to reinitialise option scanning).
1843 * mingwex/getopt.c: Delete all content; reimplement it.
1844 * include/getopt.h: Likewise.
1846 * include/unistd.h (__UNISTD_H_SOURCED__): New macro; define it.
1847 (__UNISTD_GETOPT__): This macro is no longer required; remove it.
1849 2008-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1851 Implement conditional replacement for printf() family functions.
1853 * include/_mingw.h (__USE_MINGW_ANSI_STDIO): New macro; define it.
1854 (__MINGW_ANSI_STDIO__): New manifest constant; define as bitmapped
1855 flag for use in user specified __MINGW_FEATURES__ attribute.
1856 (__MINGW_LC_MESSAGES__, __MINGW_LC_ENVVARS__): New manifest constants;
1857 currently unused: reserved as components of...
1858 (__MINGW_LC_EXTENSIONS__): ...this new manifest constant; earmarked as
1859 a __MINGW_FEATURES__ enhancement to setlocale().
1861 * include/stdio.h (__mingw_printf, __mingw_vprintf): Prototype them.
1862 (__mingw_fprintf, __mingw_vfprintf): Likewise.
1863 (__mingw_sprintf, __mingw_vsprintf): Likewise.
1864 (__msvcrt_printf, __msvcrt_vprintf): Likewise.
1865 (__msvcrt_fprintf, __msvcrt_vfprintf): Likewise.
1866 (__msvcrt_sprintf, __msvcrt_vsprintf): Likewise.
1867 (printf, vprintf) [!__USE_MINGW_ANSI_STDIO]: Prototype for default
1868 usage; link to DLL import stub, importing from MSVCRT.
1869 (fprintf, vfprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1870 (sprintf, vsprintf) [!__USE_MINGW_ANSI_STDIO]: Likewise.
1871 (printf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_printf; use
1872 locally defined static stub implementation.
1873 (fprintf, sprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1874 __mingw_fprintf and __mingw_sprintf respectively.
1875 (vprintf) [__USE_MINGW_ANSI_STDIO]: Redirect to __mingw_vprintf; use
1876 static inline implementation for C++ and GNU C, or locally defined
1877 static stub otherwise.
1878 (vfprintf, vsprintf) [__USE_MINGW_ANSI_STDIO]: Likewise; redirect to
1879 __mingw_vfprintf and __mingw_vsprintf respectively.
1881 2008-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1883 Avoid access violations, passing NULL to printf( "...%s..." );
1884 (inconsistencency with MSVCRT and glibc, reported by Colin Harrison).
1886 * mingwex/stdio/pformat.c (__pformat_puts): Substitute "(null)"
1887 for argument value, if caller passes a NULL pointer.
1888 (__pformat_wcputs): Likewise, substitute L"(null)".
1890 2008-08-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1892 Add missing dependencies for building libmingwex.a.
1894 * mingwex/Makefile.in (printf.o, fprintf.o, sprintf.o): Make them...
1895 (vprintf.o, vfprintf.o, vsprintf.o): ...and also these, depend on...
1896 (pformat.h): ...this.
1898 2008-08-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1900 Add replacements for remaining members of printf() family.
1902 * mingwex/stdio/printf.c: New file.
1903 * mingwex/stdio/fprintf.c: New file.
1904 * mingwex/stdio/sprintf.c: New file.
1905 * mingwex/stdio/vprintf.c: New file.
1906 * mingwex/stdio/vfprintf.c: New file.
1907 * mingwex/stdio/vsprintf.c: New file.
1909 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1910 (STDIO_OBJS): Add their corresponding object files.
1912 2008-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1914 Replace __mingw_snprintf() with new generic family implementation;
1915 likewise, replace __mingw_vsnprintf().
1917 * mingwex/stdio/pformat.c mingwex/stdio/pformat.h: New files.
1918 * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: New files.
1919 * mingwex/Makefile.in (STDIO_DISTFILES): Add them.
1920 (GDTOA_DISTFILES): Remove mingw_snprintf.c
1921 (STDIO_OBJS): Add pformat.o, snprintf.o and vsnprintf.o
1922 (GDTOA_OBJS): Remove mingw_snprintf.o
1923 (PFORMAT_CFLAGS): New macro; define it, as required by...
1924 (pformat.o): ...this new explicit build target.
1925 (snprintf.o, vsnprintf.o): Declare prerequisites.
1927 * mingwex/gdtoa/mingw_snprintf.c: Redundant file; delete it.
1929 2008-07-28 Keith Marshall <keithmarshall@users.sourceforge.net>
1931 Lay foundations for new printf() function family implementation.
1933 * ofmt_stub.s: New file; implement forward compatibility stub for...
1934 (_get_output_format): ...this MSVCR80.DLL and later function.
1936 * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s.
1937 (NM, OBJCOPY): New macros; define them with AC_SUBSTed values.
1938 (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them.
1939 (lib%.a): Include ofmt_stub.o when import library does not already
1940 advertise availability of the _get_output_format() function;
1941 Add alias stubs for MINGW_REPL_FUNCS, such that...
1942 (__msvcrt_printf): ...is an alias for Microsoft's printf().
1943 (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf().
1944 (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf().
1945 (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf().
1946 (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf().
1947 (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf().
1948 (clean): Add msvcr*.def.
1950 * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them.
1951 * configure: Regenerated.
1953 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>
1955 * include/ctype.h (_imp____mb_cur_max): Correct spelling.
1956 (_imp____mb_cur_max_dll): Likewise.
1958 2008-07-04 Danny Smith <dannysmith@users,sourceforge.net>
1960 * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
1961 * include/wchar.h (swprintf, vswprintf): Likewise.
1963 2008-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1965 * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
1966 (_get_output_format, _set_output_format): Add references.
1968 * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
1969 (_get_output_format, _set_output_format): Declare prototypes.
1970 (_TWO_DIGIT_EXPONENT): Define.
1971 Some other minor formatting adjustments.
1973 2008-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1975 [mingw-Bugs-1801641]
1976 * include/wchar.h (_wfdopen): Const-ify second arg.
1977 * include/stdio.h (_wfdopen): Likewise.
1978 Thanks to <tdragon at users dot sourceforge net>
1980 2008-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1982 Avoid precision errors in round(), lround() and llround() functions.
1984 * mingwex/math/round_generic.c: New file; it replaces...
1985 * mingwex/math/round.c: ...this; delete it.
1986 * mingwex/math/roundf.c: ...and this; ditto.
1987 * mingwex/math/roundl.c: ...and this; ditto.
1989 * mingwex/math/lround_generic.c: New file; it replaces...
1990 * mingwex/math/lround.c: ...this; delete it.
1991 * mingwex/math/lroundf.c: ...and this; ditto.
1992 * mingwex/math/lroundl.c: ...and this; ditto.
1993 * mingwex/math/llround.c: ...and this; ditto.
1994 * mingwex/math/llroundf.c: ...and this; ditto.
1995 * mingwex/math/llroundl.c: ...and this; ditto.
1997 * mingwex/math/round_internal.h: New file; it provides generic common
1998 code, which is shared by `round_generic.c' and `lround_generic.c'; the
1999 implementation is based on techniques suggested by Danny Smith and
2002 * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c',
2003 `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c',
2004 `llroundf.c' and `llroundl.c'; replace by `round_internal.h',
2005 `round_generic.c' and `lround_generic.c'.
2006 (MATH_OBJS): Factor out files listed in...
2007 (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new
2008 macros; define them; specify dependencies and build rules; add to...
2009 (LIB_OBJS): ...this list.
2011 2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
2013 [ mingw-Bugs-1961893 ]
2014 * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
2015 mode to 2 for E format.
2017 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
2019 * include/stdlib.h: Fix strtod under C++.
2021 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>
2023 * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod.
2024 * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
2026 2008-05-04 Ramiro Polla <ramiro@lisha.ufsc.br>
2028 * include/sys/types.h (useconds_t): typedef.
2029 * include/unistd.h (usleep): Add prototype.
2030 * mingwex/usleep.c: New file.
2031 * mingwex/makefile.in: Add usleep source and object.
2033 2008-05-02 Ramiro Polla <ramiro@lisha.ufsc.br>
2035 Make strtod() conform to C99.
2037 * include/stdlib.h (strtod): Declare this mingwex function, and...
2038 (_strtod): rename this MSVCRT counterpart.
2040 * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
2042 2008-04-26 Chuck Wilson <cwilso11@users.sourceforge.net>
2044 * Makefile.in: correct issues with mingw10.dll having multiple relocs.
2046 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2048 * include/process.h: Include stdint.h for intptr_t definition.
2049 (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe,
2050 _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp,
2051 _spawnvpe): Return intptr_t.
2052 (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl,
2053 spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return
2055 * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__.
2057 [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition.
2058 (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp,
2059 _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve,
2060 _wspawnvp, _wspawnvpe): Return intptr_t.
2062 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2064 * include/wchar.h (fwide): Return success code rather than failure in inline
2066 * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
2067 code rather than failure.
2069 2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
2071 * include/math.h (float_t, double_t): Define.
2073 2008-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2075 * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define.
2076 * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h.
2077 (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point.
2079 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2081 * include/complex.h: Don't condition contents on C99 or not
2084 2008-02-01 Brian Dessent <brian@dessent.net>
2086 * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
2087 the different runtime versions.
2089 2008-01-19 Danny Smith <dannysmithusers.sourceforge.net
2091 * inclue/wchar.h (fwide): Add prototype and guard inline definition.
2092 (mbsinit): Likewise.
2094 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2096 * include/_mingw.h: Increment version to 3.14.
2098 2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2100 * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets.
2101 * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines.
2102 * mingwex/math/log10f.S: Correct issue with comments.
2103 * mingwex/math/log10l.S: Ditto.
2104 * mingwex/math/log1p.S: Ditto.
2105 * mingwex/math/log1pf.S: Ditto.
2106 * mingwex/math/log1pl.S: Ditto.
2107 * mingwex/math/log2.S: Ditto.
2108 * mingwex/math/log2f.S: Ditto.
2109 * mingwex/math/log2l.S: Ditto.
2110 * mingwex/math/logf.S: Ditto.
2111 * mingwex/math/logl.S: Ditto.
2113 2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
2115 * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
2117 2007-10-03 Bernd Becker <hugin@users.sourceforge.net>
2119 * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size'
2120 from '_fsize_t' to '__int64' to be consistent with the other ...64
2121 structures and the value set there is 8 bytes not 4. Add guard for both
2122 as the are only used by functions available from 6.1 on.
2124 * include/malloc.h (_HEAP_MAXREQ): Define.
2125 (_aligned_offset_recalloc): Define.
2126 (_aligned_recalloc()): Define.
2128 * include/math.h: fixed a typo in a comment.
2129 (atanhf): Fixed declaration.
2131 * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t'
2132 to '__int64' to be consistent with the other ...64 structures and the value
2133 set there is 8 bytes not 4. Added guard as this function is only used by
2134 functions available from 6.1 on.
2136 * include/sys/stat.h: some members of 'stat' were declared with types with
2137 a prefixed underscore, while the ones without the underscore should have
2138 been used. Added guard to '__stat64' as it is only used by functions
2139 available from 6.1 on. Added the wide character versions of the
2140 exec()/spawn() family for completion
2141 (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to
2144 * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member
2145 from 'long' to 'time_t'
2146 (__timeb64): moved declaration of structure directly before the declaration
2147 of the function '_ftime64()', so it is guarded as well
2149 * include/sys/utime.h (__utimbuf64): moved declaration of structure directly
2150 before the declaration of the functions using it, so it is guarded as well
2152 2007-09-24 David C. Daeschler <daveregs@rsaisp.com>
2154 * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
2155 case. Add missing break in 's'/LEN_S case.
2157 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2159 Make snprintf() and vsnprintf() conform to C99.
2161 * include/stdio.h: Add note about incompatibility between...
2162 (snprintf, vsnprintf): These two mingwex functions, and...
2163 (_snprintf, _vsnprintf): these MSVCRT counterparts.
2165 * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o
2166 (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c
2168 * mingwex/stdio/snprintf.c: Delete.
2169 * mingwex/stdio/vsnprintf.c: Delete.
2171 * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf
2172 (vsnprintf): Alias to __mingw_vsnprintf.
2174 2007-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2176 * include/_mingw.h: Increment version to 3.13.
2177 * Makefile.in: Reset CYGRELEASE to 1
2179 2007-07-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2181 * Makefile.in (SUBDIRS): Delete stray line continuation artifact,
2182 resulting from incomplete removal of enclosing `for ...; do ...; done'
2183 loop from compound command; (reported by Greg Chicares).
2185 2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
2187 * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
2190 2007-07-12 Danny Smith <dannysmith@users.sourceforge.net>
2192 [mingw-Bugs-1734142]
2193 * include/wchar.h (_wsystem) Declare.
2195 (_wgetenv): Declare.
2196 (_wsearchenv): Declare.
2197 (_wmakepath): Declare.
2198 (_wsplitpath): Declare.
2199 (_wfullpath): Declare.
2200 * include/stdlib.h (_wsystem) Declare.
2201 (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath,
2202 _wfullpath): Move into _WSTDLIB_DEFINED guard.
2203 * include/tchar.h (_tsystem): New UNICODE mapping define.
2205 2007-06-29 Danny Smith <dannysmith@users.sourceforge.net>
2207 * mingwex/gdtoa/mingw_snprintf.c: New file.
2208 * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
2209 (GDTOA_OBJS): Add mingw_snprintf.o.
2211 2007-06-28 Danny Smith <dannysmith@users.sourceforge.net>
2213 * msvcrt.def.in: Update comment.
2214 Exclude _ctype stub if using msvcr71.dll or newer.
2215 * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
2216 * include/wctype.h: Likewise.
2218 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2220 *include/wctype.h: Qualify all functions with __MINGW_NOTHROW.
2221 *include/dirent.h: Likewise.
2223 2007-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2225 * include/assert.h: Qualify all functions with __MINGW_NOTHROW.
2226 * include/conio.h: Likewise.
2227 * include/ctype.h: Likewise.
2228 * include/direct.h: Likewise.
2229 * include/dos.h: Likewise.
2230 * include/errno.h: Likewise.
2231 * include/fenv.h: Likewise.
2232 * include/float.h: Likewise.
2233 * include/inttypes.h: Likewise.
2234 * include/io.h: Likewise.
2235 * include/libgen.h: Likewise.
2236 * include/locale.h: Likewise.
2237 * include/malloc.h: Likewise.
2238 * include/mbctype.h: Likewise.
2239 * include/mbstring.h: Likewise.
2240 * include/process.h: Likewise.
2241 * include/search.h: Likewise.
2242 * include/setjmp.h: Likewise.
2243 * include/signal.h: Likewise.
2244 * include/stdio.h: Likewise.
2245 * include/stdlib.h: Likewise.
2246 * include/string.h: Likewise.
2247 * include/time.h: Likewise.
2248 * include/wchar.h: Likewise.
2249 * include/sys/stat.h: Likewise.
2250 * include/sys/time.h: Likewise.
2251 * include/sys/timeb.h: Likewise.
2252 * include/sys/utime.h: Likewise.
2254 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2256 * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
2258 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2260 Add POSIX binary tree search API.
2262 * mingwex/tfind.c: New file.
2263 * mingwex/tdelete.c: New file.
2264 * mingwex/tsearch.c: New file.
2265 * mingwex/twalk.c: New file.
2266 * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
2267 * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
2268 * include/search.h (tfind): Declare.
2275 (node_t): Define, on condition of _SEARCH_PRIVATE.
2277 2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
2279 * include/_mingw.h (__MINGW_NOTHROW): Define.
2281 2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2283 * include/stdio.h (vsnprintf): Remove inline definition.
2286 2007-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2288 * CRTfmode.c: Nit-pick comment fix.
2290 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2292 * CRTfmode.c: Fix nested comment.
2294 2007-06-16 Christopher Faylor <me+cygwin@cgf.cx>
2296 * include/string.h (strcasecmp): Fix typo in declaration prototype.
2298 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2300 * include/io.h (lseek64) : Add prototype.
2302 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
2304 * include/string.h (strcasecmp): Add prototype.
2305 (strncasecmp): Add prototype.
2307 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2309 * Makefile.in (CRT0S): Revert last change.
2310 * CRTfmode.c. Correct comment.
2312 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2314 * Makefile.in (CRT0S): Add back CRTfmode.o.
2316 2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2318 * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
2319 * include/io.h: Likewise.
2321 2007-06-11 Danny Smith <dannysmith@users.sourceforge.net>
2323 * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
2325 2007-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2327 * include/stdint.h (intptr_t): Fix typo.
2328 Thanks to Charles Wilson for report.
2330 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2332 * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
2333 Condition on _WIN64.
2334 (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64.
2335 (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64.
2336 (PTRDIFF_MIN): Define as INTPTR_MIN.
2337 (PTRDIFF_MAX): Define as INTPTR_MAX.
2338 (SIG_ATOMIC_MIN): Define as INTPTR_MIN.
2339 (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
2341 2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2343 * Makefile.in: Removed mansuffix variable. Changed mansection to support
2344 Cygwin man page location.
2346 2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2348 * Makefile.in: Added mansection and mansuffix variables. Changed mandir to
2349 support Cygwin man page location.
2351 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2353 * Include/_mingw.h: Increment version to 3.12.
2355 2007-03-22 Brian Ripley <ripleybd@users.sourceforge.net>
2357 * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__.
2359 2007-03-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2361 * Makefile.in: Tweak srcdist to fix build issue.
2363 2007-03-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2365 Add --enable-mingw-manpage-transform configure option.
2367 * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro.
2368 * configure.in, Makefile.in: Use it.
2369 * configure: Regenerated.
2371 2007-03-18 Danny Smith <dannysmith@users.sourceforge.net>
2373 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too.
2375 2007-03-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2377 Add manpages for dirname and basename functions.
2379 * man: New directory.
2380 * man/dirname.man: New file; it sources both manpages.
2381 * Makefile.in: Add provisional rules to distribute them.
2383 2007-03-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2385 * mingwex/basename.c: Make it work with path names containing
2386 multibyte character strings.
2387 * mingwex/dirname.c: Likewise.
2389 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2391 * include/io.h (__mingw_access): New static inline wrapper to restore
2392 pre-Vista 'access (fname, X_OK)' behaviour.
2393 (__USE_MINGW_ACCESS): Use to map access() to __mingw_access().
2395 2007-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2397 * mingwex/fesetround.c (fesetround): Use unsigned int as operand
2399 Thanks to Alexey Kuznetsov <ring0_mipt at users dot sf dot net>
2401 2007-02-27 Thorsten Dahlheimer <tdahlheim@gmx.net>
2403 * include/stdio.h (_unlink, unlink): Add prototypes.
2405 2007-02-18 Aurimas Cernius <aurisc4@gmail.com>
2407 * include/excpt.h: Replace "_try1" in comments with "__try1".
2409 2007-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2411 * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2412 (ALL_CXXFLAGS): Likewise.
2413 * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2414 (ALL_CXXFLAGS): Likewise.
2415 * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES.
2416 (ALL_CXXFLAGS): Likewise.
2418 2007-02-08 Danny Smith <dannysmith@users.sourceforge.net>
2420 * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment.
2422 2007-01-27 Danny Smith <dannysmith@users.sourceforge.net>
2424 Expose some more msvcr80.dll functions.
2425 * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64,
2426 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes
2427 * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64,
2428 _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs.
2430 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2432 Expose some msvcr80.dll functions.
2433 * include/stdlib.h (_set_abort_behavior): Add prototype.
2434 (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for
2435 _set_abort_behavior mask argument.
2436 (_invalid_parameter_handler): Add typedef.
2437 (_set_invalid_parameter_handler): Add prototype.
2438 * include/stdio.h (_get_printf_count_output): Add prototype.
2439 (_set_printf_count_output): Add prototype.
2440 * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output,
2441 _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
2443 2007-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2445 * include/_mingw.h (CRT_INLINE): Correct typo.
2447 2007-01-24 Danny Smith <dannysmith@users.sourceforge.net>
2449 * include/io.h (X_OK): Define to F_OK.
2451 2007-01-19 Danny Smith <dannysmith@users.sourceforge.net>
2453 * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2454 unconditionally. Change comment.
2455 * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
2457 * include/io.h (rename): Declare.
2460 2006-12-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2462 * include/libgen.h: New file; required by...
2463 * mingwex/basename.c, mingwex/dirname.c: New files.
2464 * mingwex/Makefile.in (DISTFILES): Add them...
2465 (POSIX_OBJS): ...with corresponding basename.o, dirname.o
2466 (Dependencies): Typo; s/Dependancies/Dependencies/
2468 2006-11-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2470 * Makefile.in (VERSION): Let configure define it.
2472 * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro.
2473 * configure.in: Use it.
2474 Correct quoting of autoconf macro arguments throughout.
2475 (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax.
2476 (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST.
2477 (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed.
2478 (AC_CONFIG_FILES): Add, to generate Makefile.
2480 * configure: Regenerated.
2482 2006-11-21 Danny Smith <dannysmith@users.sourceforge.net>
2484 * Makefile.in: Add aclocal.m4 to source release.
2485 * mingwex/Makefile.in: Ditto.
2486 * profile/Makefile.in: Ditto.
2488 2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2490 * Include/_mingw.h: Increment version to 3.11.
2491 * Makefile.in: Ditto.
2493 2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
2495 [ mingw-Bugs-1590623 ]
2496 * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
2499 2006-10-04 Corinna Vinschen <corinna@vinschen.de>
2501 * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now
2502 correctly parenthesized.
2504 2006-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2506 * mingwex/mb_wc_common.h (get_codepage): Get it
2509 2006-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2511 * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity.
2513 * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to
2515 * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with
2518 2006-09-16 Danny Smith <dannysmith@users.sourceforge.net>
2520 * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation
2523 2006-09-11 Christopher Faylor <cgf@timesys.com>
2525 * Makefile.in: Semi-revert 2006-08-30 change.
2527 2006-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2529 * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.
2530 (__MINGW_IMPORT): Ansify.
2531 * include/stdlib.h (_sleep, _beep, _seterrormode): Add
2532 __MINGW_ATTRIB_DEPRECATED.
2534 2006-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2536 * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX):
2537 Redundant macros; deleted.
2539 * configure.in (LIB_AC_PROG_CC): Replaced by...
2540 (AC_PROG_CC): ...this.
2542 * configure: Regenerated.
2544 2006-09-06 Danny Smith <dannysmith@users.sourceforge.net>
2546 * mingwex/gdtoa/misc.c (pow5mult): Restore original code.
2547 * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified.
2548 * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets.
2550 2006-09-01 Danny Smith <dannysmith@users.sourceforge.net>
2552 * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c,
2553 g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h,
2554 gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c,
2555 README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c,
2557 * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files.
2558 * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files.
2559 * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage().
2560 * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage().
2561 * mingwex/wcstold.c: Avoid using strtold internals.
2562 * mingwex/wcstof.c: Rewrite.
2563 * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution.
2564 (GDTOA_OBJS): Add to library.
2565 (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h.
2566 (STDLIB_OBJS): Remove.
2567 (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o.
2568 (Q8_OBJS): Add wcstof.o wcstold.o.
2569 * include/stdlib.h (strtof): Remove inline definition.
2571 * include/wchar.h (wcstof): Remove inline definition.
2573 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
2575 * Makefile.in: Add with_cross_host to allow more granular checks.
2576 Set installation directories accordingly. Override CC setting only
2577 if building a Cygwin target.
2578 * aclocal.m4: Regenerate.
2579 * configure.in: Move AC_CANONICAL_SYSTEM check up. Add
2580 GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files.
2581 Test AC_ALLOCA only if building on a native system.
2582 * configure: Regenerate.
2584 2006-08-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2586 * include/ctype.h: Fix typo.
2588 2006-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2590 * include/ctype.h: Expose iswblank if __cplusplus.
2591 * include/wctype.h: Expose iswblank if __cplusplus.
2593 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2595 * include/ctype.h: Remove stray ')';
2597 2006-08-03 Danny Smith <dannysmith@users.sourceforge.net>
2599 * include/ctype.h (_BLANK): Expand comment.
2600 (isblank): Add prototype and inline definition.
2601 (iswblank): Add prototype and inline definition.
2602 * include/wctype.h (iswblank): Add prototype and inline definition.
2603 * mingwex/isblank.c: New file.
2604 * mingwex/iswblank.c: New file.
2605 * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
2607 2006-07-06 Danny Smith <dannysmith@users.sourceforge.net>
2609 * include/math.h (__INFF,__INFL): Remove '#'.
2611 2006-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2613 * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
2615 2006-07-03 Danny Smith <dannysmith@users.sourceforge.net>
2617 Support SSE float environment in fenv.h functions.
2618 * cpu_features.c: New file.
2619 * cpu_features.h: New file.
2620 * crt1.c: Include "cpu_features.h".
2621 (__mingw_CRTStartup): Call cpu_features_init().
2622 * Makefile.in (MING_OBJS): Add cpu_features.c.
2623 (SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
2624 * include/fenv,h ( fenv_t;): Append __mxcsr field.
2625 (__MXCSR_EXCEPT_FLAG_SHIFT): New define.
2626 (__MXCSR_EXCEPT_MASK_SHIFT): New define.
2627 (__MXCSR_ROUND_FLAG_SHIFT): New define.
2628 * mingwex/feclearexcept.c: Include "cpu_features.h".
2629 Handle SSE environment.
2630 * mingwex/fegetenv.c: Likewise.
2631 * mingwex/feholdexcept.c: Likewise.
2632 * mingwex/fesetenv.c: Likewise.
2633 * mingwex/fesetexceptflag.c: Likewise.
2634 * mingwex/fesetround.c: Likewise.
2635 * mingwex/fetestexcept.c: Likewise.
2636 * mingwex/feupdateenv.c: Likewise.
2637 * mingwex/fegetround.c: Add comment.
2639 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2641 * Include/_mingw.h: Increment version to 3.10.
2642 * Makefile.in: Ditto.
2644 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2646 * mingwex/math/tgamma.c (SQTPI): Add braces.
2648 2006-06-26 Danny Smith <dannysmith@users.sourceforge.net>
2650 * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
2651 * mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
2653 * mingwex/math/sf_erf.c (erff): Initialize z.
2655 * mingwex/math/tgamma.c (SQTPI): Avoid type punning.
2657 2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2659 * Include/_mingw.h: Increment version to 3.10.
2660 * Makefile.in: Ditto.
2662 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2664 * include/sys/time.h (struct timezone): Define.
2665 * include/time.h: Correct comment about timezone.
2667 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2669 * configure.in (AC_CONFIG_AUX_DIR): Remove.
2670 * configure: Regenerate.
2672 2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
2674 * configure: add srcdir as a possible location for install-sh.
2676 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2678 * mingwex/dirent.c (_tGetFileAttributes): New helper function.
2679 (_topendir): Use it.
2681 2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
2683 * include/sys/time.h: Add header guard. Add extern "C" bracketing
2685 (gettimeofday): Add prototype.
2686 * mingwex/gettimeofday.c: New file.
2687 * mingwex/makefile.in: Add gettimeofday source and object.
2689 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2691 * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3,
2692 else global library variable.
2693 (HUGEVALF): Likewise.
2694 (HUGEVALL): Likewise.
2695 (INFINITY): Likewise.
2698 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2700 * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo.
2702 2006-06-13 Danny Smith <dannysmith@users.sourceforge.net>
2704 * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59.
2706 2006-05-24 Christopher Faylor <cgf@timesys.com>
2708 * configure.in: Update to newer autoconf.
2709 (thanks to Steve Ellcey)
2710 * mingwex/configure.in: Ditto.
2711 * profile/configure.in: Ditto.
2712 * configure: Regenerate.
2713 * mingwex/configure: Ditto.
2714 * profile/configure: Ditto.
2715 * aclocal.m4: New file.
2716 * mingwex/aclocal.m4: Ditto.
2717 * profile/aclocal.m4: Ditto.
2719 2006-05-17 Danny Smith <dannysmith@users.sourceforge.net>
2721 * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale.
2722 Use supplied codepage as arg to WideCharToMultiByte.
2724 2006-02-13 Earnie Boyd <earnie@users.sf.net>
2726 * Makefile.in (libmsvcr80.a): Add import lib.
2727 (libmsvcr80d.a): Ditto.
2729 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2731 * Makefile.in: Bump cygwin build number.
2733 2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2735 * Include/_mingw.h: Increment version to 3.9.
2736 * Makefile.in: Ditto.
2738 2005-10-14 Danny Smith <dannysmith@users.sourceforge.net>
2740 * include/limits.h (SSIZE_MAX): Define.
2741 (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names.
2743 2005-10-13 Wu Yongwei <adah@users.sourceforge.net>
2745 * include/tchar.h: Include <wchar.h> when _UNICODE is defined.
2746 (_TEOF): New macro definition for _UNICODE and non_UNICODE cases.
2748 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2750 * include/stddef.h: Remove.
2751 * include/stdarg.h: Remove.
2753 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2755 * mingwex/complex/csqrt.c (csqrt): The sign of real part
2756 of result is positive when real part of arg == 0;
2757 * mingwex/complex/csqrtf.c (csqrtf): Ditto.
2758 * mingwex/complex/csqrtl.c (csqrtl): Ditto.
2760 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2762 * include/time.h (_time64): Correct prototype.
2764 2005-10-08 Danny Smith <dannysmith@users.sourceforge.net>
2766 * mingwex/fegetenv.c (fegetenv): Restore exception masks.
2767 * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions
2768 to non-stop. Use "fnclex" to clear exception flags.
2770 2005-09-24 Danny Smith <dannysmith@users.sourceforge.net>
2772 * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)
2773 Avoid raising FP exceptions.
2775 2005-09-19 Danny Smith <dannysmith@users.sourceforge.net>
2777 * include/stdlib.h (strtof): Add prototype. Uglify
2778 parameter names in inline definition.
2780 (_Exit): Uglify parameter names in inline definition.
2781 (llabs): Add prototype.
2782 (_set_error_mode): Add prototype and input defines.
2784 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2786 * mingwex/fe*.c: Revert previous changes.
2787 * include/fenv.h: Revert previous changes.
2789 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2791 * mingwex/feclearexcept.c (feclearexcept): Change declaration.
2792 Do not return a value.
2793 * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise.
2794 * mingwex/feraiseexcept.c (feraiseexcept): Likewise.
2795 * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise.
2796 * mingwex/fegetenv.c (fegetenv): Likewise.
2797 * mingwex/fesetenv.c (fesetenv): Likewise.
2798 * mingwex/feupdateenv.c (feupdateenv): Likewise.
2799 * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept,
2800 fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct
2803 2005-08-25 Danny Smith <dannysmith@users.sourceforge.net>
2805 * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before
2806 getting filelength for SEEK_END.
2808 2005-08-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
2810 * Include/_mingw.h: Increment version to 3.8.
2811 * Makefile.in: Ditto.
2813 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2815 * include/wctype.h (towupper, towlower): Change arg and return value
2817 * include/ctype.h (towupper, towlower): Likewise.
2819 2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
2821 * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
2822 a diagnostic, guarded by #ifdef DEBUG.
2823 (__mingwthr_remove_key_dtor): Likewise.
2825 2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
2827 * moldname.def.in (sleep, beep, seterrormode): Remove.
2829 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2831 * profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
2832 (_MCOUNT_DECL): Use it.
2833 (MCOUNT): Save and restore eax, ecx, edx registers.
2834 * profile/mcount.c (_mcount): ANSI-fy.
2836 2005-06-16 Danny Smith <dannysmith@users.sourceforge.net>
2838 * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
2839 guard __MINGW_ATTRIB macro definitions.
2840 * include/math.h (logb[fl]): Don't define inlines for
2841 GCC-4.0+ && __FAST_MATH__.
2842 (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
2843 line-continuation backslashes.
2845 2005-06-06 Danny Smith <dannysmith@users.sourceforge.net>
2847 * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
2848 in GNUC version guard.
2850 2005-05-20 Danny Smith <dannysmith@users.sourceforge.net>
2852 * crt1.c (_gnu_exception_handler): Handle illegal instruction
2853 OS exception as a signal if user has defined a SIGILL handler.
2855 2005-05-10 Danny Smith <dannysmith@users.sourceforge.net>
2857 * mingwex/math/nexttoward.c: New file.
2858 * mingwex/math/nexttowardf.c: New file.
2859 * mingwex/math/nextafterl.c: Add nexttowardl alias.
2860 * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c,
2862 (MATH_OBJS): Add nexttoward.o, nexttowardf.o,
2863 * include/math.h (nexttoward, nextowardf, nexttowardl): Add
2866 2005-05-09 Danny Smith <dannysmith@users.sourceforge.net>
2868 * mingwex/math/nextafterf.c (nextafterf): Correct
2870 * mingwex/math/nextafterl.c: New file.
2871 * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c.
2872 (MATH_OBJS): Add nextafterl.o.
2873 * include/math.h (nextafterl): Uncomment prototype.
2875 2005-05-08 Danny Smith <dannysmith@users.sourceforge.net>
2877 * mingwex/math/erfl.c: New file.
2878 * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c.
2879 (MATH_OBJS): Add erfl.o.
2880 * include/math.h (erfl, erfcl): Uncomment prototypes.
2882 2005-05-04 Danny Smith <dannysmith@users.sourceforge.net>
2884 * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
2885 #if (WCHAR_MAX <= WCHAR_MIN) is false.
2886 * include/stdint.h (WCHAR_MAX): Likewise.
2887 (WINT_MAX): Likewise.
2889 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net>
2891 * mingwex/math/signbit.c (__signbit): Make return value
2892 consistent with GCC's __builtin_signbit.
2893 * mingwex/math/signbitf.c (__signbitf): Likewise.
2894 * mingwex/math/signbitf.c (__signbitl): Likewise.
2895 * include/math.h (__signbit, __signbitf, __signbitl): Likewise
2898 2005-05-02 Danny Smith <dannysmith@users.sourceforge.net>
2900 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
2902 * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
2903 Remove unused MBTOWC_FLAGS define.
2905 2005-04-23 Danny Smith <dannysmith@users.sourceforge.net>
2907 * mingwex/mbrtowc.c: New file.
2908 * mingwex/wcrtomb.c: New file.
2909 * mingwex/btowc.c: New file.
2910 * mingwex/wctob.c: New file.
2911 * mingwex/mb_wc_common.h: New file.
2912 * mingwex/Makefile.in (DISTFILES): Add new files.
2913 (Q8_OBJS): Add new objects.
2914 * include/wchar.h: Adjust comment about mbrtowc() and related
2915 funcions. Add __restrict__ to pointer params in prototypes.
2916 (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
2917 arg names from protototypes.
2919 2005-04-23 Wu Yongwei <adah@sh163.net>
2921 * mingwex/dirent.c: Formatting changes.
2922 * mingwex/dirent.c (_topendir): Make the end-of-path slash check
2925 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
2927 * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
2929 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
2931 * include/stdio.h (__mingw_fwrite): Change return value to
2933 * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
2935 2005-03-15 Hans Leidekker <hans@it.vu.nl>
2937 * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines.
2939 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2941 * include/wctype.h (wctrans): Remove _CRTIMP.
2942 (towctrans): Likewise.
2945 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2947 * include/wctype.h: Add comment on wctrans, towctrans, wctype.
2949 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2951 * mingwex/wctype.c: New file.
2952 * mingwex/wctrans.c: New file.
2953 * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
2954 * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
2956 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2958 * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
2960 2005-02-11 Danny Smith <dannysmith@users.sourceforge.net>
2962 * include/assert.h: Remove header guard. #undef assert macro.
2963 (_assert): Use __MINGW_ATTRIB_NORETURN define.
2965 2005-02-11 Gregory W. Chicares <chicares@cox.net>
2967 * include/math.h (expm1, expm1f, expm1l): Add prototypes.
2968 * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
2970 (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
2971 * mingwex/math/expm1.c: New file.
2972 * mingwex/math/expm1f.c: New file.
2973 * mingwex/math/expm1l.c: New file.
2975 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
2977 * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
2978 * include/wchar.h (struct stat): Likewise.
2979 Bug reported to Debian by Anand Kumria <wildfire@progsoc.org>
2981 * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
2983 2005-02-01 Danny Smith <dannysmith@users.sourceforge.net>
2985 * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
2986 string is not valid.
2988 2005-01-26 Oliver Stoeneberg <oliverst@online.de>
2990 * include/malloc.h: Add missing return code defines for
2993 2005-01-17 Danny Smith <dannysmith@users.sourceforge.net>
2995 * include/sys/stat.h (struct __stat64): Change st_size type to
2997 * include/wchar.h (struct __stat64): Change st_size type to __int64.
2999 2005-01-13 Earnie Boyd <earnie@users.sf.net>
3001 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3003 * include/errno.h (ELOOP): Ditto.
3004 * include/_mingw.h: Increment version to 3.7.
3005 * Makefile.in: Ditto.
3007 2005-01-11 Danny Smith <dannysmith@users.sourceforge.net>
3009 * include/tchar.h (_tfreopen): Add UNICODE mappings.
3011 2005-01-11 Earnie Boyd <earnie@users.sf.net>
3013 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,
3014 lstat): Conditionalize defines for __STRICT_ANSI__.
3016 2005-01-10 Earnie Boyd <earnie@users.sf.net>
3018 * include/errno.h (ELOOP): Add definition.
3020 2005-01-10 Danny Smith <dannysmith@users.sourceforge.net>
3022 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c
3023 casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c
3024 clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c
3025 ctanl.c ctanhl.c): New files.
3026 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3027 (COMPLEX_OBJS): Adjust.
3028 * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf.
3029 casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl,
3030 cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl):
3033 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3035 * include/_mingw.h (__int16): Define as short.
3036 Thanks to: Leo Yuriev <leoyuriev at users dot sf dot net>
3038 2005-01-06 Danny Smith <dannysmith@users.sourceforge.net>
3040 * include/stdio.h (P_tmpdir): Add define.
3042 2005-01-03 Earnie Boyd <earnie@users.sf.net>
3044 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.
3046 2005-01-02 Earnie Boyd <earnie@users.sf.net>
3048 * include/_mingw.h: Increment version to 3.6
3049 * Makefile.in: Ditto
3051 2004-12-26 Danny Smith <dannysmith@users.sourceforge.net>
3053 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c
3054 casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c
3055 clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c
3056 ctanf.c ctanhf.c): New files.
3057 * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust.
3058 (COMPLEX_OBJS): Adjust.
3059 * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf.
3060 casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf,
3061 cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf):
3064 2004-12-20 Danny Smith <dannysmith@users.sourceforge.net>
3066 * include/wchar.h (wcsdup): Correct prototype.
3067 * include/string.h (wcsdup): Correct prototype.
3069 2004-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3071 * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
3073 2004-10-07 Danny Smith <dannysmith@users.sourceforge.net>
3075 * mingwex/math/fastmath.h: New file.
3076 * mingwex/math/asinh.c: New file.
3077 * mingwex/math/asinhf.c: New file.
3078 * mingwex/math/asinhl.c: New file.
3079 * mingwex/math/acosh.c: New file.
3080 * mingwex/math/acoshf.c: New file.
3081 * mingwex/math/acoshl.c: New file.
3082 * mingwex/math/atanh.c: New file.
3083 * mingwex/math/atanhf.c: New file.
3084 * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl,
3085 atanh, atanhf, atanhl): Add prototypes.
3086 * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
3087 (MATH_DISTFILES): Add sources for above and fastmath.h to list.
3088 Specify dependency on fastmath.h for new objects.
3090 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3092 * include/sys/stat.h (_S_IFLNK): Add definition.
3099 2004-09-08 Earnie Boyd <earnie@users.sf.net>
3101 * include/sys/stat.h (_S_ISLNK): Add definition.
3104 2004-09-05 Earnie Boyd <earnie@users.sf.net>
3106 * include/_mingw.h: Increment minor version for 3.5 release.
3107 * Makefile.in: Ditto.
3108 * mingwex/Makefile.in: Correct typo in list of DISTFILES.
3110 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3112 * include/malloc.h (__mingw_aligned_offset_malloc,
3113 __mingw_aligned_offset_realloc, __mingw_aligned_malloc,
3114 __mingw_aligned_realloc, __mingw_aligned_free): Add
3116 * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
3117 tst-aligned-malloc.c.
3118 (REPLACE_OBJS): Add mingw-aligned-malloc.o.
3120 2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
3122 * mingwex/mingw-aligned-malloc.c: New file.
3123 * mingwex/tst-aligned-malloc.c: New file.
3125 2004-08-24 Danny Smith <dannysmith@users.sourceforge.net>
3127 * crt1.c: (__mingw_CRTStartup): Change return to void. Add
3128 noreturn attribute. Align stack to 16 bytes before passing args
3130 (mainCRTStartup): Change return to void.
3131 (WinMainCRTStartup): Likewise.
3133 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3135 * profile/COPYING: New file.
3136 * profile/CYGWIN_LICENSE: New file.
3137 * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
3139 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3141 * mingwex/fopen64.c: Move.
3142 * mingwex/fseeko64.c: Move.
3143 * mingwex/ftello64.c: Move.
3144 * mingwex/lseek64.c: Move.
3145 * mingwex/stdio/fopen64.c: To here.
3146 * mingwex/stdio/fseeko64.c: To here.
3147 * mingwex/stdio/ftello64.c: To here.
3148 * mingwex/stdio/lseek64.c: To here.
3150 2004-08-15 Danny Smith <dannysmith@users.sourceforge.net>
3152 * profile/gmon.c [__MINGW32__]: Include string.h for
3155 2004-08-08 Christopher Faylor <cgf@timesys.com>
3157 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
3159 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3161 * include/complex.h: Remove __attribute__ ((const)) from
3162 transcendantal and trig functions. Replace __attribute__ ((const))
3163 with __MINGW_ATTRIB_CONST on other declarations.
3165 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3167 * include/wchar.h: Reorganize, avoid including other headers.
3169 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
3171 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
3172 (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
3175 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3177 * include/dirent.h (struct _wdirent): Remove obsolete comment.
3179 2004-07-30 Danny Smith <dannysmith@users.sourceforge.net>
3181 * include/string.h: Revert 2004-07-26 additions of
3184 2004-07-28 Danny Smith <dannysmith@users.sourceforge.net>
3186 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
3187 (__convert_inf_to_maxnum): New.static inline.
3188 (reducl): Use it to protect against Inf - Inf.
3189 (__fast_ldexpl): New function. Use in lieu of ldexpl.
3191 2004-07-27 Danny Smith <dannysmith@users.sourceforge.net>
3193 * mingwex/math/expl.c (expl): Move body of code to new static
3194 function __expl, removing tests for +/-Inf. Extern function
3195 expl calls __expl after testing for max, min log thresholds.
3197 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3199 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
3200 * mingwex/stdio/vfscanf.c: Likewise.
3201 * mingwex/stdio/vswscanf.c: Likewise.
3202 * mingwex/stdio/vfwscanf.c: Likewise.
3204 2004-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3206 * include/_mingw.h: Use only two underscores to uglify
3207 __MINGW_ATTRIB_* macros.
3208 * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
3209 * include/setjmp.h: Likewise.
3211 * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
3213 (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
3215 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3217 * include/string.h: Group wide string functions together,
3218 and protect with _WSTRING_DEFINED.
3220 2004-07-25 Danny Smith <dannysmith@users.sourceforge.net>
3222 * include/_mingw.h (__MINGW_ATTR_*): Replace with
3224 * include/stdlib.h (_ATTRIB_NORETURN): Replace with
3225 __MINGW_ATTRIB_NORETURN, throughout.
3226 (malloc): Declare with __MINGW_ATTRIB_MALLOC.
3228 (abs): Declare with __MINGW_ATTRIB_CONST.
3237 * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
3239 2004-07-21 Danny Smith <dannysmith@users.sourceforge.net>
3241 * include/_mingw.h: Undefine __attribute__.
3242 (__MINGW_ATTR_NORETURN): New define.
3243 (__MINGW_ATTR_CONST): New define.
3244 (__MINGW_ATTR_MALLOC): New define.
3245 (__MINGW_ATTR_PURE): New define.
3246 (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
3249 2004-07-19 Danny Smith <dannysmith@users.sourceforge.net>
3251 * include/time.h (__time64_t): Add missing ';'.
3253 2004-07-17 Danny Smith <dannysmith@users.sourceforge.net>
3255 * include/time.h (wcsftime): Move out of !__STRICT_ANSI__ block.
3256 (struct tm): Protect with _TM_DEFINED.
3258 2004-07-17 Christopher Faylor <cgf@timesys.com>
3260 * Makefile.in (CC): Strip inappropriate include file settings from any
3263 2004-07-15 "dgun" <dgun@umpire.com>
3265 * include/complex.h (conj): Correct typo in prototype.
3267 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3269 * include/math.h: Add pragma GCC system_header.
3271 2004-07-15 Danny Smith <dannysmith@users.sourceforge.net>
3273 * mingwex/complex/carg.c: New file.
3274 * mingwex/Makefile.in: Really add carg.o to libmingwex.a.
3276 2004-07-15 Corinna Vinschen <corinna@vinschen.de>
3278 * Makefile.in (INCLUDES): Temporarily revert previous change.
3279 * mingwex/Makefile,in (INCLUDES): Ditto.
3280 * profile/Makefile,in (INCLUDES): Ditto.
3281 * mingwex/Makefile,in: Drop carg.o dependency.
3283 2004-07-14 Christopher Faylor <cgf@timesys.com>
3285 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
3287 2004-07-14 Danny Smith <dannysmith@users.sourceforge.net>
3289 * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
3291 * mingwex/Makefile,in (INCLUDES): Ditto.
3292 * profile/Makefile,in (INCLUDES): Ditto.
3294 * mingwex/Makefile,in: Add carg.o to libmingwex.a.
3296 2004-07-13 Earnie Boyd <earnie@users.sourcefourge.net>
3298 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
3300 * mingwex/Makefile.in: Ditto.
3301 * profile/Makefile.in: Ditto.
3302 * include/limits.h: Change to new file header preamble.
3303 * include/_mingw.h: Increment minor version for 3.4 release.
3304 * Makefile.in: Ditto.
3306 2004-07-12 Danny Smith <dannysmith@users.sourceforge.net>
3308 * mingwex/math/cephes_emath.h (__etens): Remove declaration.
3310 2004-07-11 Danny Smith <dannysmith@users.sourceforge.net>
3312 * include/unistd.h (ftruncate): Add inline definition.
3313 * mingwex/ftruncate.c: New file.
3314 * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
3316 2004-07-10 Danny Smith <dannysmith@users.sourceforge.net>
3318 * include/time.h: Do not include sys/types.h.
3320 2004-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3322 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
3323 (MATH_OBJS): Remove pow,o.
3324 * include/math.h (pow): Declare with _CRTIMP.
3325 Add comment on how to avoid excess precision problems.
3327 2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
3329 * include/stdio.h (__mingw_fseeko64): Add prototype.
3330 * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
3331 (__mingw_fwrite): Handle huge files.
3333 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
3334 Danny Smith <dannysmith@users.sourceforge.net>
3336 * include/stdio.h (fopen64): Add inline function.
3337 (fseeko64): Add prototype.
3338 (ftello64): Add inline function.
3339 * include/io.h (lseek64): Add inline function.
3340 * include/sys/types (off64_t): Add typedef.
3341 (fpos64_t): Add typedef.
3342 * mingwex/fopen64.c: New file.
3343 * mingwex/fseeko64.c: New file.
3344 * mingwex/ftello64.c: New file.
3345 * mingwex/lseek64.c: New file.
3346 * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
3347 fseeko.64.c, ftello64.c, lseek64.c.
3348 (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
3350 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
3352 * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
3354 2004-04-22 Earnie Boyd <earnie@users.sf.net>
3356 * DISCLAIMER: Add words about "free to use".
3357 * README: Modify "Win32 runtime" to "Microsoft C Runtime".
3358 * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
3359 (inst_docdir): New variable.
3361 (FLAGS_TO_PASS): Include inst_docdir.
3362 (install-dirs): Add inst_docdir.
3363 (install): Add loop for INSTDOCS.
3364 * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
3365 section to CONTRIBUTORS file. Remove RCS tags.
3367 2004-04-22 Danny Smith <dannysmith@users.sourceforge.net>
3369 * mingwex/math/lround.c: Rewrite.
3370 * mingwex/math/lroundf.c: Rewrite.
3371 * mingwex/math/lroundl.c: Rewrite.
3372 * mingwex/math/llround.c: Rewrite.
3373 * mingwex/math/llroundf.c: Rewrite.
3374 * mingwex/math/llroundl.c: Rewrite.
3376 2004-04-20 Earnie Boyd <earnie@users.sf.net>
3378 * CONTRIBUTORS: New file.
3379 * DISCLAIMER: Ditto.
3380 * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors
3381 section to CONTRIBUTORS file. Remove RCS tags.
3382 * CRTFmode.c: Ditto.
3386 * crtdll.dev: Ditto.
3396 * msvcrt.def.in: Ditto.
3397 * strcasecmp.c: Ditto.
3400 * include/assert.h: Ditto.
3401 * include/conio.h: Ditto.
3402 * include/ctype.h: Ditto.
3403 * include/direct.h: Ditto.
3404 * include/dirent.h: Ditto.
3405 * include/dos.h: Ditto.
3406 * include/errno.h: Ditto.
3407 * include/excpt.h: Ditto.
3408 * include/fcntl.h: Ditto.
3409 * include/float.h: Ditto.
3410 * include/io.h: Ditto.
3411 * include/locale.h: Ditto.
3412 * include/malloc.h: Ditto.
3413 * include/math.h: Ditto.
3414 * include/process.h: Ditto.
3415 * include/setjmp.h: Ditto.
3416 * include/share.h: Ditto.
3417 * include/signal.h: Ditto.
3418 * include/stdio.h: Ditto.
3419 * include/stdlib.h: Ditto.
3420 * include/string.h: Ditto.
3421 * include/tchar.h: Ditto.
3422 * include/time.h: Ditto.
3423 * include/wchar.h: Ditto.
3424 * include/sys/locking.h: Ditto.
3425 * include/sys/param.h: Ditto.
3426 * include/sys/stat.h: Ditto.
3427 * include/sys/timeb.h: Ditto.
3428 * include/sys/types.h: Ditto.
3429 * include/sys/utime.h: Ditto.
3430 * mingwex/dirent.c: Ditto.
3432 2004-04-19 Earnie Boyd <earnie@users.sf.net>
3434 * include/_mingw.h: Revert to primary release 3 and increment minor
3436 * Makefile.in (VERSION): Ditto.
3438 2004-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3440 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
3441 _fmode if not __MSVCRT__.
3443 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
3445 * include/io.h: (_findfirst): Correct prototype.
3447 2004-03-30 Hans Leidekker <hans@it.vu.nl>
3449 * include/io.h: (_findnext, _findclose): Correct prototype.
3451 2004-03-28 Hans Leidekker <hans@it.vu.nl>
3453 * include/math.h (FP_*): Add defines.
3455 2004-03-29 Danny Smith <dannysmith@users.sourceforge.net>
3457 * mingwex/math/round.c: Rewrite.
3458 * mingwex/math/roundf.c: Rewrite.
3459 * mingwex/math/roundl.c: Rewrite.
3461 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3463 * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.
3464 * include/time.h (__time64_t): Add typedef.
3465 (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3466 (_ctime64): Likewise.
3467 (_wctime64): Likewise.
3468 (_gmtime64): Likewise.
3469 (_localtime64): Likewise.
3470 (wcsftime): Move into _WTIME_DEFINED block.
3471 Regroup non-ANSI prototypes.
3472 * include/io.h: Include <stdint.h>.
3473 (__finddata64_t): Add struct definition.
3474 (__wfinddata64_t): Likewise.
3475 (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3476 (_findnext64): Likewise.
3477 (_wfindfirst64): Likewise.
3478 (_wfindnext64): Likewise.
3479 * include/sys/timeb.h (__timeb64): Add struct definition.
3480 (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3481 * include/sys/utime.h (__utimbuf64): Add struct definition.
3482 (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3483 (_futime64): Likewise.
3484 (_wutime64): Likewise.
3485 * include/sys/stat.h (__stat64): Add struct definition.
3486 (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3487 (_stat64): Likewise.
3488 (_wstat64): Likewise.
3489 * include/sys/types.h (__time64_t): Add typedef.
3490 * include/wchar.h (__wfinddata64_t): Add structure definition.
3491 (__stat64): Likewise.
3492 (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
3493 (_wfindfirst64): Likewise.
3494 (_wfindnext64): Likewise.
3495 (_wutime64): Likewise.
3496 (_wstat64): Likewise.
3497 * include/malloc.h (_aligned_free): Add prototype for
3498 __MSVCRT_VERSION__ >= 0x0700.
3499 (_aligned_malloc): Likewise.
3500 (_aligned_offset_malloc): Likewise.
3501 (_aligned_offset_realloc): Likewise.
3502 (_aligned_realloc): Likewise.
3503 * include/string.h (_wcserror): Add prototype for
3504 __MSVCRT_VERSION__ >= 0x0700.
3505 (__wcserror): Likewise.
3506 * include/math.h (_set_SSE2_enable): Add prototype for
3507 __MSVCRT_VERSION__ >= 0x0701.
3509 2004-03-25 Danny Smith <dannysmith@users.sourceforge.net>
3511 * include/stdio.h (_fsopen): Add prototype.
3512 * include/tchar.h (_tfsopen): Add defines.
3513 Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
3515 2004-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3517 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
3518 msvcr70.dll, and msvcr71.dll.
3519 * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant
3520 using basename of output def file.
3522 2004-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3524 * include/malloc.h: Remove __STRICT_ANSI__ guard.
3526 2004-03-11 Brian Keener <bkeener@thesoftwaresource.com>
3528 * include/process.h: Remove the #endif associated with removal of
3529 __STRICT_ANSI__ guard from non-ANSI header.
3531 2004-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3533 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
3534 * include/direct.h: Ditto.
3535 * include/dirent.h: Ditto.
3536 * include/dos.h: Ditto.
3537 * include/excpt.h: Ditto.
3539 * include/io.h: Ditto.
3540 * inlude/mem.h: Ditto.
3541 * include/memory.h: Ditto.
3542 * include/process.h: Ditto.
3543 * inlude/search.h: Ditto.
3544 * include/share.h: Ditto.
3545 * include/unistd.h: Ditto.
3546 * include/sys/fcntl.h: Ditto.
3547 * include/file.h: Ditto.
3548 * include/sys/locking.h: Ditto.
3549 * include/sys/param.h: Ditto.
3550 * include/sys/stat,h
3551 * include/sys/time.h: Ditto.
3552 * include/sys/timeb.h: Ditto.
3553 * include/sys/types.h: Ditto.
3554 * include/sys/unistd.h: Ditto.
3555 * include/sys/utime.h: Ditto.
3557 2004-02-21 Danny Smith <dannysmith@users.sourceforge.net>
3559 * include/_mingw.h (__UNUSED_PARAM): Define macro.
3560 * include/wchar.h (fwide): Use it.
3563 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3565 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
3566 NetBSD getopt_long.c.
3568 2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
3570 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
3571 codes and handling of special chars.
3573 2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
3575 * include/stdio.h (feof): Add inlined definition.
3578 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3580 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
3581 directly, rather than via scabnl.
3583 2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
3585 * mingwex/math/powl.c (powl): Return infinity if
3586 extended precision multiplication of x by log2(y)
3589 2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3591 * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
3592 (__enan_NI16): Fix another one.
3593 (__enan_NBITS): Tidy.
3595 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3597 * include/stdint.h [__STDC_CONSTANT_MACROS]: Fix for 8 and 16 bit
3598 types. (Thanks to John Maddock for report.)
3600 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
3602 * include/tchar.h (_puttchar): Define.
3604 2003-12-13 Danny Smith <dannysmith@users.sourceforge.net>
3606 * include/stdio.h:(_fileno): Define macro version after both
3607 fileno and _fileno functions declared.
3609 * include/stdio.h (_rmtmp, rmtmp): Add prototypes.
3610 * moldnames.def.in (rmtmp) Add stub.
3612 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
3614 * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
3616 2003-10-27 Danny Smith <dannysmith@users.sourceforge.net>
3618 * include/math.h: Guard ISO C99 additions with __cplusplus
3621 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3623 * include/_mingw.h: Define __attribute__((x)) to nothing
3626 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3628 * include/complex.h: New file.
3629 * mingwex/complex: New directory.
3630 * mingwex/complex/cabs.c: New file.
3631 * mingwex/complex/cacos.c: New file.
3632 * mingwex/complex/cacosh.c: New file.
3633 * mingwex/complex/casin.c: New file.
3634 * mingwex/complex/casinh.c: New file.
3635 * mingwex/complex/catan.c: New file.
3636 * mingwex/complex/catanh.c: New file.
3637 * mingwex/complex/ccos.c: New file.
3638 * mingwex/complex/ccosh.c: New file.
3639 * mingwex/complex/cexp.c: New file.
3640 * mingwex/complex/cimag.c: New file.
3641 * mingwex/complex/clog.c: New file.
3642 * mingwex/complex/cpow.c: New file.
3643 * mingwex/complex/cproj.c: New file.
3644 * mingwex/complex/creal.c: New file.
3645 * mingwex/complex/csin.c: New file.
3646 * mingwex/complex/csinh.c: New file.
3647 * mingwex/complex/csqrt.c: New file.
3648 * mingwex/complex/ctan.c: New file.
3649 * mingwex/complex/ctanh.c: New file.
3650 * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
3653 (COMPLEX_OBJS): New list of objects.
3654 (LIB_OBJS): Include it in the library.
3656 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3658 * include/math.h (cabs): Remove non-ISO prototype.
3660 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3662 * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
3663 Use GCC __builtin's if available.
3664 (INFINITY, INFINITYF, INFINITYL): Likewise.
3666 2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
3668 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
3669 beyond approximation limit.
3670 * mingwex/math/sf_erf.c (erff): Likewise.
3672 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
3674 * include/stdio.h (getc): Cast result to unsigned char before
3677 (getchar): Likewise.
3678 (putchar): Likewise.
3679 Thanks to M.Fujii <boochang@m4.kcn.ne.jp>
3681 2003-10-10 Earnie Boyd <earnie@users.sf.net>
3683 * include/_mingw.h: Increment version to 3.2.
3684 * Makefile.in: Ditto.
3686 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3688 * include/sys/types.h: Revert last change.
3690 2003-10-10 Earnie Boyd <earnie@users.sourceforge.net>
3692 * include/sys/types.h (ssize_t): Correct the definition.
3694 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3696 * include/stdio.h (_filbuf): Add prototype.
3697 (_flsbuf): Add prototype.
3698 (getc): Add inline version.
3700 (getchar): Likewise.
3701 (putchar): Likewise.
3703 2003-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3705 * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
3708 2003-09-29 Danny Smith <dannysmith@users.sourceforge.net>
3710 * include/stdlib.h: Guard non-ISO functions with
3711 !__STRICT_ANSI__, throughout.
3713 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3715 * include/io.h (_fileno): Remove prototype.
3717 (FILENAME_MAX): Define, if needed.
3718 Don't include <stdio.h>.
3719 * include/stdio.h (FILENAME_MAX): Protect against
3721 (_fileno): Define macro implementation.
3724 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3726 * include/inttypes.h: Include _mingw.h.
3728 2003-09-24 Danny Smith <dannysmith@users.sourceforge.net>
3730 * include/_mingw.h (__CRT_INLINE): Define.
3731 * include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
3733 * include/inttypes.h: Likewise.
3734 * include/math.h: Likewise.
3735 * include/stdio.h: Likewise.
3736 * include/stdlib.h: Likewise.
3737 * include/string.h: Likewise.
3738 * include/wchar.h: Likewise.
3739 * include/wctype.h: Likewise.
3741 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
3743 * mingwex/dirent.c (_topendir): Allocate enough memory for
3744 DIR struct in UNICODE case too.
3746 2003-09-15 Earnie Boyd <earnie@users.sf.net>
3748 * include/_mingw.h: Increment version to 3.2.
3749 * Makefile.in: Ditto.
3751 2003-07-03 Earnie Boyd <earnie@users.sf.net>
3753 * config.guess, config.sub: Update with versions from ftp.gnu.org.
3755 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3757 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
3758 * mingwex/math/truncf.c (truncf): Likewise.
3759 * mingwex/math/truncl.c (truncl): Likewise.
3760 * mingwex/math/modff.c (modff): Likewise.
3761 * mingwex/math/modfl.c (modfl): Likewise.
3763 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3765 * include/search.h: New file.
3766 * include/stdlib.h: Add comment about qsort, bsearch in
3768 * test_headers.c: Include search.h.
3769 * moldname.def.in (lfind, lsearch): Add.
3771 2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
3773 * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
3774 _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
3775 execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
3777 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3779 * include/_mingw.h (small, hyper): Change to __small and __hyper to
3780 avoid user space name conflicts.
3782 2003-07-01 Earnie Boyd <earnie@users.sf.net>
3784 * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
3785 Note: Also added to w32api/include/basetyps.h.
3786 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
3787 Rename to Small (case difference).
3789 2003-06-18 Earnie Boyd <earnie@users.sf.net>
3791 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
3792 * mingwex/dirent.c: Modifications througout to fill d_name array.
3793 * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
3794 libmsvcr71, including debug versions.
3795 (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
3797 2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
3799 * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
3800 __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
3802 Thanks to: Aaron W LaFramboise <AWLaFramboise@aol.com>
3804 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
3806 * include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
3808 2003-05-15 Danny Smith <dannysmith@users.sourceforge.net>
3810 * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
3811 but still protect inline definition with __STRICT_ANSI__.
3813 2003-05-14 Danny Smith <dannysmith@users.sourceforge.net>
3815 * string_old.c: Remove, splitting into...
3816 * strcasecmp.c: New file.
3817 * strncasecmp.c: New file.
3818 * wscmpi.c : New file.
3819 * ctype_old.c: Remove, splitting into...
3820 * isascii.c: New file.
3821 * iscsym.c: New file.
3822 * iscsymf.c: New file.
3823 * toascii.c: New file.
3824 * Makefile.in (MOLD_OBJS): Adjust.
3825 (SRCDIST_FILES): Adjust.
3827 2003-05-13 Danny Smith <dannysmith@users.sourceforge.net>
3829 * include/math.h (fabs) : Remove inline definition.
3833 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3835 * include/_mingw.h: Change version to 3.0
3836 * Makefile.in: Ditto.
3838 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3840 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
3841 * mingwex/configure.in (W32API_INCLUDE): Ditto.
3842 * profile/configure.in (W32API_INCLUDE): Ditto.
3844 2003-05-06 Earnie Boyd <earnie@users.sf.net>
3846 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
3847 of multiply defined symbols if the symbols is defined locally. E.G.:
3848 A local definition of malloc causes this problem.
3849 * configure: Regenerate.
3850 * profile/Makefile.in (W32API_INCLUDE): New variable.
3851 (ALL_CFLAGS): Use W32API_INCLUDE value.
3852 (ALL_CXXFLAGS): Ditto.
3853 (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
3854 Thanks to Jeff Bonggren <jbon@users.sf.net>.
3855 * profile/configure.in (W32API_INCLUDE): Set default value.
3856 * profile/configure: Regenerate.
3857 * mingwex/Makefile.in (W32API_INCLUDE): New variable.
3858 (ALL_CFLAGS): Use W32API-INCLUDE value.
3859 (ALL_CXXFLAGS): Ditto.
3860 * mingwex/configure.in (W32API_INCLUDE): Set default value.
3861 * mingwex/configure: Regenerate.
3863 2003-05-05 Earnie Boyd <earnie@users.sf.net>
3865 * Makefile.in (W32API_INCLUDE): New variable.
3866 (ALL_CFLAGS): Use W32API_INCLUDE value.
3867 (ALL_CXXFLAGS): Ditto.
3868 * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
3869 (W32API_INCLUDE): Set default value.
3870 * configure: Regenerate.
3872 2003-04-11 Earnie Boyd <earnie@users.sf.net>
3874 * configure.in (LIBM_A): Define for cygwin target.
3875 * configure (LIBM_A): Ditto.
3877 2003-04-07 Danny Smith <dannysmith@users.sourceforge.net>
3879 * include/time.h (strftime): Remove duplicate declaration.
3881 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
3883 * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
3885 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3887 * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
3888 * mingwex/strtoimax.c (strtoimax): Likewise.
3889 * mingwex/wcstoimax.c (wcstoimax): Likewise.
3890 * mingwex/wtoll.c (wtoll): Remove unnecessary ';'
3891 * mingwex/fesentenv.c: Include float.h.
3892 * mingwex/math/powl.c: Eliminate type punning/strict aliasing
3894 * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
3896 * mingwex/math/tgammal.c: Likewise.
3898 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3900 * include/utime.h: New file, forwarding to sys/utime.h.
3902 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3904 * include/sys/param.h (MAXPATHLEN): Define.
3906 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3908 * include/tchar.h: Ansi-fy a comment.
3910 2003-03-16 Danny Smith <dannysmith@users.sourceforge.net>
3912 * profile/profile.h (mcount): Use __builtin_return_address
3913 rather than inline __asm statements.
3914 * profile/Makefile.in: Remove special rule for mcount.o
3915 Specify dependencies for mcount.o profil.o gmon.o.
3917 2003-03-10 Danny Smith <dannysmith@users.sourceforge.net>
3919 * include/stdlib.h (qsort): Remove const from first parm.
3920 Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
3922 2003-03-03 Christopher Faylor <cgf@redhat.com>
3924 * mingwex/getopt.c: Refresh from NetBSD sources.
3926 2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
3928 * mingwex/getopt.c: New file, copied from cygwin srcs.
3929 * include/getopt.h: New file, copied from cygwin srcs.
3930 * include/unistd.h: Include getopt.h.
3931 * mingwex/Makefile.in (DISTFILES): Add getopt.c.
3932 (POSIX_OBJS): Add getopt.o.
3934 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
3936 * include/stdio.h (vscanf): Add prototype.
3942 * include/wchar.h (vwscanf): Add prototype.
3945 * mingwex/snprintf.c: Move to mingwex/stdio.
3946 * mingwex/vsnprintf.c: Ditto.
3947 * mingwex/snwprintf.c: Ditto.
3948 * mingwex/vsnwprintf.c: Ditto.
3949 * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
3950 (STDIO_DISTFILES): Add.
3951 (DISTFILES): Adjust.
3952 (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
3956 2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
3958 * mingwex/stdio: New directory
3959 * mingwex/stdio/vfscanf.c: New file.
3960 * mingwex/stdio/vfwscanf.c: New file.
3961 * mingwex/stdio/vscanf.c: New file.
3962 * mingwex/stdio/vsscanf.c: New file.
3963 * mingwex/stdio/vswscanf.c: New file.
3964 * mingwex/stdio/vwscanf.c: New file.
3966 2003-02-25 Earnie Boyd <earnie@users.sf.net>
3968 * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
3969 (libmsvcrt40.a): Ditto.
3971 2003-02-21 Earnie Boyd <earnie@users.sf.net>
3973 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
3975 * Makefile.in (libmsvcrtd.a): Add target library.
3976 (libmoldnamed.a): Ditto.
3977 (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
3979 ($(srcdir)): Remove explicit reference for depencies of object targets.
3980 * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
3981 msvcrt20.def, msvcrt40.def: Remove.
3982 * msvcrt.def.in: New file (Copy of previous msvcrt.def).
3984 2003-02-20 Corinna Vinschen <corinna@vinschen.de>
3986 * Makefile.in: Make sure libmingwex.a from current build tree is used.
3988 2003-02-14 Christopher Faylor <cgf@redhat.com>
3990 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to
3991 ensure -mno-cygwin where appropriate. Filter out -O2.
3993 2003-02-13 Danny Smith <dannysmith@users.sourceforge.net>
3995 * profile/Makefile.in (mcount.o): Use -O1 optimization
3998 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4000 * include/math.h: Remove _CRTIMP from pow() prototype,
4001 unless __NO_ISOCEXT.
4003 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4005 * mingwex/math/cephes_emath.h: Don't redefine INFINITY.
4007 2003-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4009 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
4010 __declspec(dllimport) supported.
4011 (__cdecl): Define if not already defined.
4012 (__stdcall): Likewise.
4013 * include/dirent.h: Qualify fuctions with __cdecl.
4014 * include/fenv.h: Likewise.
4015 * include/inttypes.h: Likewise.
4016 * include/assert.h: Qualify fuctions with __cdecl. Qualify
4017 CRT dll imports with _CRTIMP.
4018 * include/conio.h: Likewise.
4019 * include/ctype.h: Likewise.
4020 * include/direct.h: Likewise.
4021 * include/dos.h: Likewise.
4022 * include/errno.h: Likewise.
4023 * include/float.h: Likewise.
4024 * include/io.h: Likewise.
4025 * include/locale.h: Likewise.
4026 * include/malloc.h: Likewise.
4027 * include/math.h: Likewise.
4028 * include/mbctype.h: Likewise.
4029 * include/mbstring.h: Likewise.
4030 * include/process.h: Likewise.
4031 * include/setjmp.h: Likewise.
4032 * include/signal.h: Likewise.
4033 * include/stdio.h: Likewise.
4034 * include/stdlib.h: Likewise.
4035 * include/string.h: Likewise.
4036 * include/time.h: Likewise.
4037 * include/wchar.h: Likewise.
4038 * include/wctype.h: Likewise.
4039 * include/sys/stat.h: Likewise.
4040 * include/sys/timeb.h: Likewise.
4041 * include/sys/utime.h: Likewise.
4043 * include/ctype.h: Guard ctype inlines with __NO_INLINE__.
4044 * include/wctype.h: Guard wctype inlines with __NO_INLINE__.
4046 * include/stdio.h (__VALIST): Guard against prior definition.
4048 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4050 * include/_mingw.h: Change version to 3.0
4051 * Makefile.in: Ditto.
4053 2003-02-08 Earnie Boyd <earnie@users.sf.net>
4055 * include/stdlib.h: Make words after #endif a comment.
4057 2003-02-07 Danny Smith <dannysmith@users.sourceforge.net>
4059 * include/locale.h: Include stddef.h for definition of NULL.
4061 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4063 * include/math.h (tgamma): Correct typo in comment.
4065 2003-01-26 Danny Smith <dannysmith@users.sourceforge.net>
4067 * mingwex/mingw-fseek.c (INLINE): Remove define.
4068 (__mingw_is_win9x): Remove static inline function.
4069 (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
4071 2003-01-11 Danny Smith <dannysmith@users.sourceforge.net>
4073 * mingwex/math/llround.c: Correct function name and
4074 change return value to long long.
4076 2003-01-07 Danny Smith <dannysmith@users.sourceforge.net>
4078 * include/ctype.h (__isascii): Don't cast arg to unsigned.
4079 (iswascii): Likewise. Correct mask.
4080 * include/wctype.h (iswascii): Don't cast arg to unsigned.
4083 2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
4085 * include/stdlib.h (_osver, _winver, _winmajor,
4086 _winminor): Declare as direct imports from dll if
4087 __DECLSPEC_SUPPORTED.
4089 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
4091 * pseudo-reloc.c (do_pseudo_reloc): Make static.
4092 * pseudo-reloc-list.c: New file.
4093 * crt1.c (_pei386_runtime_relocator): Declare.
4094 (__mingw_CRTStartup): Call it.
4095 * dllcrt1.c (_pei386_runtime_relocator): Declare.
4096 (DllMainCRTStartup): Call it.
4097 * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
4100 2003-01-01 Egor Duda <deo@logos-m.ru>
4102 * pseudo-reloc.c: New file.
4104 2002-12-20 Earnie Boyd <earnie@users.sf.net>
4106 * include/_mingw.h: Increment version to 2.4.
4109 2002-12-12 Earnie Boyd <earnie@users.sf.net>
4111 * include/malloc.h (_alloca): Add definition.
4114 2002-12-08 Danny Smith <dannysmith@users.sourceforge.net>
4116 * mingwex/math/s_erf.c: New file.
4117 * mingwex/math/sf_erf.c: New file.
4118 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4119 (MATH_OBJS): Add new objects.
4120 * include/math.h (erf[f]): Add prototypes.
4121 (erfc[f]): Add prototypes.
4123 2002-12-07 Danny Smith <dannysmith@users.sourceforge.net>
4125 * include/math.h: Add traditional/XOPEN math constants.
4127 2002-11-27 Danny Smith <dannysmith@users.sourceforge.net>
4129 * mingwex/math/lgamma.c: New file.
4130 * mingwex/math/lgammaf.c: New file.
4131 * mingwex/math/lgammal.c: New file.
4132 * mingwex/math/tgamma.c: New file.
4133 * mingwex/math/tgammaf.c: New file.
4134 * mingwex/math/tgammal.c: New file.
4135 * mingwex/math/cephes_mconf (polevlf): Add float version.
4137 Define _CEPHES_USE_ERRNO.
4138 * mingwex/Makefile.in (MATH_DISTFILES): Add new files.
4139 (MATH_OBJS): Add new objects.
4140 * include/math.h (lgamma[fl]): Add prototypes.
4141 (tgamma[fl]): Add prototypes.
4143 2002-11-26 Danny Smith <dannysmith@users.sourceforge.net>
4145 * mingwex/strtold.c: New file.
4146 * mingwex/wcstold.c: New file.
4147 * mingwex/ldtoa.c: New file.
4148 * mingwex/math/cephes_emath.h: New file.
4149 * mingwex/math/cephes_emath.c: New file.
4150 * mingwex/Makefile.in (DISTFILES): Add new files.
4151 (MATH_DISTFILES): Ditto.
4152 (STDLIB_OBJS): New. Define as strtold.c wcstold.c.
4153 (MATH_OBJS): Add cephes_emath.o.
4154 (LIB_OBJS): Add $(STDLIB_OBJS).
4155 * include/stdlib.h (strtold, wcstold): Add prototypes.
4156 * include/wchar.h (wcstold): Add prototype.
4158 2002-11-09 Danny Smith <dannysmith@users.sourceforge.net>
4160 * include/math.h (sqrt): Remove inline definition.
4161 (sqrtf): Replace inline definition with prototype.
4163 * mingwex/math/sqrtf.c (sqrtf): Set domain error if
4164 argument less than zero.
4165 * mingwex/math/sqrtf.c (sqrtl): Likewise.
4167 2002-10-30 Guido Serassio <serassio@libero.it>
4169 * include/stdio.h (_getmaxstdio): Add prototype.
4170 (_setmaxstdio): Likewise.
4172 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
4174 * include/fcntl.h (O_SEQUENTIAL): Correct typo.
4176 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4178 * crt1.c: Define new macro __IN_MINGW_RUNTIME before including
4180 Define WIN32_MEAN_AND_LEAN before including windows.h
4181 * include/stdlib.h (_fmode): Protect declaration as dllimported
4182 variable with __IN_MINGW_RUNTIME.
4184 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4186 * crt1.c: Include stdlib.h.
4188 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
4190 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
4191 (MINGW_OBJS): Add txtmode.o.
4192 (SRCDIST_FILES): Add txtmode.c binmode.c.
4193 crt1.c: Don't include fcntrl.h, stdlib.h.
4194 (_fmode): Declare, without dllimport attribute.
4195 (__p__fmode): Declare access function for dll's _fmode.
4196 (_mingw32_init_fmode): Sync dll _fmode with staticly linked
4198 * txtmode.c: New file.
4199 * binmode.c: New file.
4200 * samples/fmode/test2.c: New file.
4201 * samples/fmode/jamfile: Add test2.exe target.
4203 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4205 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
4206 macros work with C89.
4207 (INTMAX_C, UINTMAX_C): Likewise.
4209 2002-10-11 Danny Smith <dannysmith@users.sourceforge.net>
4211 * include/string.h (strcasecmp): Make extern __inline__.
4212 (strncasecmp): Likewise.
4213 (wcscmpi): Likewise.
4215 2002-10-08 Heiko Gerdau <hg@technosis.de>
4217 * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
4218 _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
4221 2002-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4223 * mingwex/math/powil.c: Rename powil to __powil.
4224 * mingwex/math/powl.c: Adjust declaration and call
4225 to __powil. Remove comment on powil.
4226 * mingwex/math/powi.c: New file.
4227 * mingwex/math/powif.c: New file.
4228 * mingwex/math/pow.c: New file.
4229 * mingwex/math/cephes_mconf.h. Add double and float
4230 versions of constants.
4231 (polevl): Add double precision function.
4233 * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
4235 (MATH_OBJS): Add pow.o, powi.o, powif.o.
4237 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4239 * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
4240 (_imp____mbcur_max_dll): Likewise.
4242 2002-10-03 Danny Smith <dannysmith@users.sourceforge.net>
4244 * include/fcntl.h (_fmode): Remove declarations and
4245 compatibility defines.
4246 (_setmode, setmode): Remove prototypes.
4247 * include/stdlib (_fmode): Add declarations and
4248 compatibility defines. Change type to int.
4249 * include/io.h (_setmode, setmode): Add prototypes.
4250 * samples/fmode/all.c: Adjust includes.
4251 * samples/fmode/test.c: Likewise.
4252 * crt1.c (_CRT_fmode): Declare as int.
4253 * CRTfmode.c (_CRT_fmode): Likewise.
4255 * include/stdlib: Remove comment about MB_CUR_MAX.
4257 2002-10-02 Danny Smith <dannysmith@users.sourceforge.net>
4259 * include/stdlib.h (_imp____mbcur_max): Add missing ';'.
4260 (_imp____mbcur_max_dll): Likewise.
4262 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4264 * mingwex/math/files.txt: Remove inadvertantly added file.
4266 2002-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4268 * include/string.h (_strerror): Move into #ifndef
4269 __STRICT_ANSI__ block.
4271 2002-09-17 Danny Smith <dannysmith@users.sourceforge.net>
4273 * include/time.h (__need_NULL): Define before including
4274 stddef.h. Thanks to: Rüdiger Dehmel <de@lmnet.de>.
4276 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
4278 * include/stdio.h: Correct comment about directory separator.
4280 2002-09-12 Danny Smith <dannysmith@users.sourceforge.net>
4282 * include/sys/time.h (timeval): Add struct definition and
4283 associated macros (copied from w32api/include/winsock.h).
4285 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4287 * include/_mingw.h: Increment version to 2.3.
4290 2002-09-05 Earnie Boyd <earnie@users.sf.net>
4292 * mingwex/fegetenv.c: Change to \n line endings.
4293 * mingwex/vsnprintf.c: Ditto.
4294 * mingwex/vsnwprintf.c: Ditto.
4296 2002-09-02 Danny Smith <dannysmith@users.sourceforge.net>
4298 * mingwex/math/hypotl.c: Replace with version based on cephes
4301 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4303 * include/sys/param.h: Add ENDIAN defines.
4304 * test_headers.c: Include sys/param.h.
4306 2002-08-28 Danny Smith <dannysmith@users.sourceforge.net>
4308 * test_headers.c: Don't include varargs.h.
4309 * Makefile.in (test_headers): Don't use -std=xx
4312 2002-08-21 Earnie Boyd <earnie@users.sf.net>
4314 * include/sys/param.h: New File.
4316 2002-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4318 * include/math.h (asm): Change to __asm__ throughout.
4319 Expose ISO C99 functions if __GLIPCPP__.
4320 (hypotf): Use hypot, not _hypot in stub.
4322 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4324 * include/tchar.h: Ansi-fy another comment.
4326 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4328 * include/tchar.h: Ansi-fy comment.
4330 2002-08-20 Danny Smith <dannysmith@users.sourceforge.net>
4332 * test_headers.c : New file.
4333 * Makefile.in (test_headers): New target, using it,
4334 (SRCDIST_FILES): Distribute it.
4336 2002-08-20 Earnie Boyd <earnie@users.sf.net>
4338 * include/_mingw.h: Increment version to 2.2.
4341 2002-08-14 Earnie Boyd <earnie@users.sf.net>
4343 * include/unistd.h: Add include of process.h.
4345 2002-08-03 Danny Smith <dannysmith@users.sourceforge.net>
4347 * include/stdio.h (_fcloseall): Add prototype.
4349 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4351 * include/tchar.h (_tfdopen): Correct typo.
4353 2002-07-29 Danny Smith <dannysmith@users.sourceforge.net>
4355 * moldname.def.in (chgsign,scalb,finite,fpclass,logb,
4356 nextafter): Add non-underscored stubs.
4357 * moldname-msvcrt.def: Regenerate.
4358 * moldname-crtdll.def: Regenerate.
4359 * mingwex/math: New directory.
4360 * mingwex/rint.c: Move to mingwex/math.
4361 * mingwex/rintf.c: Ditto.
4362 * mingwex/rintl.c: Ditto.
4363 * mingwex/round.c: Ditto.
4364 * mingwex/roundf.c: Ditto.
4365 * mingwex/roundl.c: Ditto.
4366 * mingwex/rint.c: Ditto.
4367 * mingwex/rintf.c: Ditto.
4368 * mingwex/rintl.c: Ditto.
4369 * mingwex/trunc.c: Ditto.
4370 * mingwex/truncf.c: Ditto.
4371 * mingwex/truncl.c: Ditto.
4372 * mingwex/signbit.c: Ditto.
4373 * mingwex/signbitf.c: Ditto.
4374 * mingwex/signbitl.c: Ditto.
4375 * mingwex/copysignl.S: Ditto.
4376 * mingwex/fdim.c: Ditto.
4377 * mingwex/fdimf.c: Ditto.
4378 * mingwex/fdiml.c: Ditto.
4379 * mingwex/fmin.c: Ditto.
4380 * mingwex/fminf.c: Ditto.
4381 * mingwex/fminl.c: Ditto.
4382 * mingwex/fmax.c: Ditto.
4383 * mingwex/fmaxf.c: Ditto.
4384 * mingwex/fmaxl.c: Ditto.
4385 * mingwex/fma.c: Ditto.
4386 * mingwex/fmaf.c: Ditto.
4387 * mingwex/fmal.c: Ditto.
4388 * mingwex/fpclassify.c: Ditto.
4389 * mingwex/fpclassifyl.c: Ditto.
4390 * mingwex/fpclassifyl.c: Ditto.
4391 * mingwex/isnan.c: Ditto.
4392 * mingwex/isnanf.c: Ditto.
4393 * mingwex/isnanl.c: Ditto.
4394 * mingwex/fucom.c: Ditto.
4395 * mingwex/fp_consts.c: Ditto. Split out float and long double
4397 * mingwex/math_stubs.c: Remove.
4398 * mingwex/log2.c: Remove. Replaced by math/log2.S
4399 * mingwex/log2f.c: Remove. Replaced by math/log2f.S
4400 * mingwex/log2l.c: Remove. Replaced by math/log2l.S
4401 * mingwex/math/acosf.c : New file.
4402 * mingwex/math/acosl.c: New file.
4403 * mingwex/math/asinf.c: New file.
4404 * mingwex/math/asinl.c: New file.
4405 * mingwex/math/atan2f.c: New file.
4406 * mingwex/math/atan2l.c: New file.
4407 * mingwex/math/atanf.c: New file.
4408 * mingwex/math/atanl.c: New file.
4409 * mingwex/math/cbrt.c: New file.
4410 * mingwex/math/cbrtf.c: New file.
4411 * mingwex/math/cbrtl.c: New file.
4412 * mingwex/math/ceilf.S: New file.
4413 * mingwex/math/ceill.S: New file.
4414 * mingwex/math/cephes_ld.h: New file.
4415 * mingwex/math/copysign.S: New file.
4416 * mingwex/math/copysignf.S: New file.
4417 * mingwex/math/cosf.S: New file.
4418 * mingwex/math/coshf.c: New file.
4419 * mingwex/math/coshl.c: New file.
4420 * mingwex/math/cosl.S: New file.
4421 * mingwex/math/exp2.S: New file.
4422 * mingwex/math/exp2f.S: New file.
4423 * mingwex/math/exp2l.S: New file.
4424 * mingwex/math/expf.c: New file.
4425 * mingwex/math/expl.c: New file.
4426 * mingwex/math/fabs.c: New file.
4427 * mingwex/math/fabsf.c: New file.
4428 * mingwex/math/fabsl.c: New file.
4429 * mingwex/math/floorf.S: New file.
4430 * mingwex/math/floorl.S: New file.
4431 * mingwex/math/fmodf.c: New file.
4432 * mingwex/math/fmodl.c: New file.
4433 * mingwex/math/fp_consts.h: Ditto.
4434 * mingwex/math/fp_constsf.c: Ditto.
4435 * mingwex/math/fp_constsl.c: Ditto.
4436 * mingwex/math/frexpf.c: New file.
4437 * mingwex/math/frexpl.S: New file.
4438 * mingwex/math/hypotf.c: New file.
4439 * mingwex/math/hypotl.c: New file.
4440 * mingwex/math/ilogb.S: New file.
4441 * mingwex/math/ilogbf.S: New file.
4442 * mingwex/math/ilogbl.S: New file.
4443 * mingwex/math/ldexpf.c: New file.
4444 * mingwex/math/ldexpl.c: New file.
4445 * mingwex/math/llrint.c: New file.
4446 * mingwex/math/llrintf.c: New file.
4447 * mingwex/math/llrintl.c: New file.
4448 * mingwex/math/llround.c: New file.
4449 * mingwex/math/llroundf.c: New file.
4450 * mingwex/math/llroundl.c: New file.
4451 * mingwex/math/log10f.S: New file.
4452 * mingwex/math/log10l.S: New file.
4453 * mingwex/math/log1p.S: New file.
4454 * mingwex/math/log1pf.S: New file.
4455 * mingwex/math/log1pl.S: New file.
4456 * mingwex/math/log2.S: New file.
4457 * mingwex/math/log2f.S: New file.
4458 * mingwex/math/log2l.S: New file.
4459 * mingwex/math/logb.c: New file.
4460 * mingwex/math/logbf.c: New file.
4461 * mingwex/math/logbl.c: New file.
4462 * mingwex/math/logf.S: New file.
4463 * mingwex/math/logl.S: New file.
4464 * mingwex/math/lrint.c: New file.
4465 * mingwex/math/lrintf.c: New file.
4466 * mingwex/math/lrintl.c: New file.
4467 * mingwex/math/lround.c: New file.
4468 * mingwex/math/lroundf.c: New file.
4469 * mingwex/math/lroundl.c: New file.
4470 * mingwex/math/modff.c: New file.
4471 * mingwex/math/modfl.c: New file.
4472 * mingwex/math/nearbyint.S: New file.
4473 * mingwex/math/nearbyintf.S: New file.
4474 * mingwex/math/nearbyintl.S: New file.
4475 * mingwex/math/nextafterf.c: New file.
4476 * mingwex/math/powf.c: New file.
4477 * mingwex/math/powl.c: New file.
4478 * mingwex/math/powil.c: New file.
4479 * mingwex/math/remainder.S: New file.
4480 * mingwex/math/remainderf.S: New file.
4481 * mingwex/math/remainderl.S: New file.
4482 * mingwex/math/remquo.S: New file.
4483 * mingwex/math/remquof.S: New file.
4484 * mingwex/math/remquol.S: New file.
4485 * mingwex/math/scalbn.S: New file.
4486 * mingwex/math/scalbnf.S: New file.
4487 * mingwex/math/scalbnl.S: New file.
4488 * mingwex/math/sinf.S: New file.
4489 * mingwex/math/sinhf.c: New file.
4490 * mingwex/math/sinhl.c: New file.
4491 * mingwex/math/sinl.S: New file.
4492 * mingwex/math/sqrt.c: New file.
4493 * mingwex/math/sqrtf.c: New file.
4494 * mingwex/math/sqrtl.c: New file.
4495 * mingwex/math/tanf.S: New file.
4496 * mingwex/math/tanhf.c: New file.
4497 * mingwex/math/tanhl.c: New file.
4498 * mingwex/math/tanl.S: New file.
4499 * mingwex/Makefile.in: Adjust VPATH for source files in
4502 Add MATH_DISTFILES and use it to build source distro.
4503 * include/math.h: Add protypes for new functions and
4504 reorganise to reflect ANSI,C99 status.
4506 2002-06-19 Danny Smith <dannysmith@users.sourceforge.net>
4508 * include/tchar.h (_getts): Define as _getws for _UNICODE.
4509 (_putts): Define as _putws for _UNICODE.
4510 Thanks to: Tomasz Pona <cochisek@poczta.onet.pl> for report.
4512 2002-06-18 Danny Smith <dannysmith@users.sourceforge.net>
4514 * include/float.h: #include_next<float.h> before header guard.
4516 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
4518 * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
4520 * include/excpt.h (): Include windef.h not windows.h.
4521 * include/fcntl.h (_O_SHORT_LIVED): Add define.
4522 (_chmod): Add prototype.
4523 (_creat): Correct prototype.
4524 (SH_DENY*): Rename defines to _SH_DENY*.
4525 (SH_DENY*): Add Non-ANSI names for _SH_DENY*.
4526 include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
4527 _IOAPPEND): Add defines.
4528 (_wfindfirst): Correct prototype.
4529 (_wfdopen): Add prototype.
4530 * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
4532 * include/string.h (_mbschr, _mbstok, _mbsncat): Remove
4534 (_wcsdup): Correct prototype.
4535 * include/mbstring.h: Remove comments about _mbschr, _mbstok,
4536 _mbsncat being in string.h.
4537 * include/wchar.h (_wfindfirst): Correct prototype.
4538 * include/tchar.h (_tfdopen): Add _UNICODE mappings.
4540 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4542 * include/_mingw.h: Increment to version 2.1.
4543 * Makefile.in: Ditto.
4545 2002-06-15 Earnie Boyd <earnie@users.sf.net>
4547 * Makefile.in (conf_prefix): New variable.
4548 (dist_prefix): Ditto. Conditionally set to $(conf_prefix).
4549 (bindist): Use dist_prefix.
4551 2002-06-13 Danny Smith <dannysmith@users.sourceforge.net>
4553 * include/_mingw.h: Increment version to 2.0.
4554 * Makefile.in: Ditto.
4556 Merge in mingwex branch.
4558 2002-06-11 Danny Smith <dannysmith@users.sourceforge.net>
4560 * include/math.h (fdim, fdimf, fdiml): Add prototypes.
4561 * mingwex/fdim.c: New file.
4562 * mingwex/fdimf.c: New file.
4563 * mingwex/fdiml.c: New file.
4564 * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c,
4566 (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o.
4568 2002-05-23 Danny Smith <dannysmith@users.sourceforge.net>
4570 * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c.
4572 2002-05-22 Danny Smith <dannysmith@users.sourceforge.net>
4574 * mingwex/isnanl.c: New file.
4576 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4578 * include/stdint.h: Include <stddef.h> to get wchar_t and wint_t.
4579 (WINT_MAX): Define to ((wint_t)-1).
4581 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4583 * include/wctype.h: Replace 'inline' with '__inline__'.
4584 * include/inttypes.h: Likewise.
4586 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4588 * include/_mingw.h (__MINGW_IMPORT): Put extern at start
4589 to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
4591 2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
4593 * mingwex/snprintf.c: Split out vsnprintf to....
4594 * mingwex/vsnprintf.c: New file.
4595 * mingwex/snwprintf.c: Split out vsnwprintf to...
4596 * mingwex/vsnwprintf.c: New file.
4597 * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS.
4599 2002-05-15 Pascal Obry <obry@gnat.com>
4601 * include/dirent.h (DIR): Change dd_stat type to int.
4604 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net>
4606 * include/stdio.h (vsnprintf): Change inline to __inline__;
4607 (vsnwprintf): Likewise.
4608 * include/wchar.h (vsnwprintf): Likewise.
4611 (mbsinit): Likewise.
4613 2002-04-29 Danny Smith <dannysmith@users.sourceforge.net>
4615 Change FP default precison from 53 to 64-bit mantissa.
4617 * Makefile.in (CRT0S): Add CRT_fp8.o.
4618 (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o.
4619 * include/float.h: Replace standard float.h defines with
4620 #include_next<float.h> to use GCC's defines. Adjust comments
4623 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4625 * include/dos.h: Change prefix "__imp_" to "_imp__" for
4626 __GNUC__ without __DECLSPEC_SUPPORTED.
4627 * include/fnctl.h: Likewise.
4628 * include/math.h: Likewise.
4629 * include/stdio.h: Likewise.
4630 * include/stdlib.h: Likewise.
4631 * include/time.h: Likewise.
4632 * include/wctype.h: Likewise.
4633 * include/ctype.h: Likewise.
4635 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4637 Add atexit support for dlls.
4638 * crt1.c (atexit): Force thunk to _imp__atexit.
4639 (_onexit): Force thunk to _imp___onexit.
4640 * dllcrt1.c (DllMainCRTStartup): Initialise private atexit
4641 table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH.
4642 (__dll_exit): New function to run atexit-registered functions
4643 and flush output buffers on DLL_PROCESS_DETACH or failed
4645 (atexit): Force use of private atexit table via _dllonexit,
4646 (_onexit): New function. Force use of private atexit table via
4648 * msvcrt.def (atexit, _onexit): Add DATA keyword so that only
4649 _imp_<_symbol> is visible in import lib.
4650 * msvcrt20.def: Likewise.
4651 * msvcrt40.def: Likewise.
4652 * crtdll.def: Likewise.
4654 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4656 * include/fenv.h: Change header guard macro to _FENV_H_.
4657 (fenv_t, fexcept_t): Move into block protected by
4659 Cleanup some whitespace.
4660 * include/inttypes.h: Change header guard macro to
4663 2002-04-26 Danny Smith <dannysmith@users.sourceforge.net>
4665 * include/math.h (copysignl): Declare.
4666 * mingwex/Makefile.in (DISTFILES): Add copysignl.S.
4667 (MATHOBJS):Add copysignl.o.
4669 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4671 * include/math.h (__signbitl, __isnanl): Declare.
4673 2002-04-24 Danny Smith <dannysmith@users.sourceforge.net>
4675 * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl,
4676 roundl, truncl, fmal, log2l): Declare.
4677 Protect C99 declarations with _STDC_VERSION__ >= 199901L)
4678 || !defined __STRICT_ANSI__.
4679 * mingwex/fmax.c (fmax): Call __isnan, not _isnan.
4680 * mingwex/fmin.c (fmin): Likewise.
4681 * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan.
4682 * mingwex/fminf.c (fminf): Likewise.
4683 * mingwex/fmaxl.c: New file.
4684 * mingwex/fminl.c: New file.
4685 * mingwex/fpclassify.c (__fpclassifyf): Split out to ...
4686 * mingwex/fpclassifyf.c: New file.
4687 * mingwex/fpclassifyl.c: New file.
4688 * mingwex/rint.c (rintf): Split out to...
4689 * mingwex/rintf.c: New file.
4690 * mingwex/rintl.c: New file.
4691 * mingwex/round.c (roundf): Split out to...
4692 * mingwex/roundf.c: New file.
4693 * mingwex/roundl.c: New file.
4694 * mingwex/trunc.c (truncf): Split out to...
4695 * mingwex/truncf.c: New file.
4696 * mingwex/truncl.c: New file.
4697 * mingwex/signbit.c (signbitf): Split out to...
4698 * mingwex/signbitf.c: New file.
4699 * mingwex/signbitl.c: New file.
4700 * mingwex/fmal.c: New file.
4701 * mingwex/copysignl.S: New file.
4702 * mingwex/log2l.c: New file.
4703 * mingwex/fp_consts.c: Add nanl definition.
4704 Comment out unused constants.
4705 * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c,
4706 fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c,
4707 roundl.c, truncf.c truncl.c, signbitf.c signbitl.c,
4709 (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o,
4710 fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o,
4711 truncf.o truncl.o, signbitf.o signbitl.o, fmal.o,
4713 * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo.
4715 2002-04-23 Danny Smith <dannysmith@users.sourceforge.net>
4717 Make wide char versions of opendir and friends.
4719 * include/dirent.h (_wdirent, _WDIR): Define wide versions of
4721 (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir,
4722 _wseekdir): Add prototypes for wide versions of corresponding
4724 * include/tchar.h; Add _UNICODE mappings for dirent.h
4725 structures and functions.
4726 * mingwex/dirent.c: Make _UNICODE neutral.
4727 * mingwex/wdirent.c: New file to define _UNICODE before
4729 * mingwex/Makefile.in (DISTFILES): Add wdirent.c.
4730 (POSIX_OBJS): Add wdirent.o.
4731 (wdirent.o): Specify dependency on dirent.c as well as
4733 * samples/dirent/wtest.c: New file, wide version of test.c.
4735 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4737 * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to
4738 ensure gcc include dir is searched despite -nostdinc.
4739 * profile/Makefile.in (INCLUDES): Likewise.
4740 * mingwex/Makefile.in (INCLUDES): Likewise.
4741 * include/stdarg.h: Replace with stub that just guards the
4742 real gcc system header with #ifndef RC_INVOKED
4743 * include/varargs.h: Likewise.
4744 * include/stddef.h: Likewise.
4745 * include/stdio.h: Include stdarg.h after defining
4747 (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*.
4748 Replace va_list with __VALIST throughout.
4750 2002-04-17 Danny Smith <dannysmith@users.sourceforge.net>
4752 * crt1.c: Revert changes of 2002-04-16. Use _fpreset again.
4753 * msvcrt.def (_fpreset): Mark as DATA so that only
4754 _imp___fpreset is exported.
4755 * msvcrt20.def (_fpreset): Likewise.
4756 * msvcrt40.def (_fpreset): Likewise.
4757 * crtdll.def (_fpreset): Likewise.
4758 * CRT_fp10.c (_fpreset): Overide library _fpreset with one
4760 (fpreset): Add alias.
4761 (__CRT_PC): Delete definition. _fpreset does it now.
4762 * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset.
4763 (fpreset): Add alias.
4764 (__CRT_PC): Delete definition.
4765 * moldname.def.in: Comment out fpreset.
4766 * moldname-msvcrt.def: Regenerate.
4767 * moldname-crtdll.def: Regenerate.
4768 * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0.
4769 * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment
4770 with the _fpreset determined by startup CRT_fp object.
4772 2002-04-16 Danny Smith <dannysmith@users.sourceforge.net>
4774 * CRT_fp8.c: New file.
4775 * CRT_fp10.c: New file.
4776 * crt1.c (__CRT_PC) Declare.
4777 (__CRT_fesetenv): New static function, using _CRT_PC.
4778 (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset.
4779 (_gnu_exception_handler): Likewise.
4780 * Makefile.in (CRT0S): Add CRT_fp10.o.
4781 (MINGW_OBJS): Add CRT_fp8.o.
4782 (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c.
4783 Add CRT_fp8.o, CRT_fp10.o dependancies.
4784 * include/float.h (_fpreset): Expand comment.
4785 * include/fenv.h (FE_PC64_ENV): New define for Intel x87
4786 (extended precison) environmemt.
4787 (FE_PC53_ENV): New define for MSVCRT default environmemt.
4788 (FE_DFL_ENV): Define as FE_PC53_ENV.
4789 * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine
4790 precision control for default environment.
4792 * include/math.h: Fix long comment line.
4793 * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o
4795 * profile/configure: Regenerate.
4797 2002-04-12 Danny Smith <dannysmith@users.sourceforge.net>
4799 * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c.
4801 2002-04-10 Danny Smith <dannysmith@users.sourceforge.net>
4803 * mingwex/mingw-fseek.c: New file, based on 1999-11-07 mingw-local
4804 patch to binutils, by Mumit Khan <khan@nanotech.wisc.edu>; provide...
4805 (__mingw_fseek): New function to work around Win9x f/lseek bug.
4806 (__mingw_fwrite): Likewise.
4807 (__mingw_is_win9x): New helper function.
4809 * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding...
4810 (__mingw_fseek): New prototype and define to replace fseek.
4811 (__mingw_fwrite): New prototype and define to replace fwrite.
4812 * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a.
4813 * moldname-crtdll.def: Remove CR from end of line.
4814 * moldname-msvcrt.def: Ditto.
4816 2002-04-09 Danny Smith <dannysmith@users.sourceforge.net>
4818 * profile/configure.in (CRT0S): Configure name of gcrt?.o
4819 based on target, building gcrt0.o for cygwin -mno-cygwin.
4820 * profile/configure: Regenerate.
4821 * profile/Makefile.in (CRT0S): Use name from configure.
4822 (gcrt0.o): New rule.
4823 (ALL_CRT0S): New define, used to cleanup all gcrt?.o's.
4825 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4827 * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset,
4828 _fpecode): Remove prototypes copied from float.h.
4829 (nan, nanf): Move into block protected against RC_INVOKED
4831 * include/stdlib.h (_Exit): Change from static inline to
4833 * mingwex/_Exit.c : New file.
4834 * mingwex/Makefile.in: Add _Exit.o to libmingwex.a.
4836 2002-04-04 Danny Smith <dannysmith@users.sourceforge.net>
4838 Add libgmon.a and libmingwex.a for cygwin -mno-cygwin.
4839 * configure.in (SUBDIRS): Add profile and mingwex to cygwin target.
4840 (configdirs): Likewise.
4841 (LIBGMON_A): Define for cygwin target as well.
4842 * configure: Regenerate.
4843 * profile/configure.in (THREAD_DLL): Remove define.
4844 (LIBM_A): Remove define.
4845 (LIBGMON_A): Define for cygwin target as well.
4846 * profile/configure: Regenerate.
4847 * profile/makefile.in (install): Install to inst_libdir and
4849 * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to...
4850 (OPTFLAGS): New define.
4851 (ALL_CFLAGS): Add $(OPTFLAGS).
4852 (ALL_CXXFLAGS): Same.
4853 (.c.o:): Remove ALL_CXXFLAGS.
4855 2002-03-29 Danny Smith <dannysmith@users.sourceforge.net>
4857 * include/stdint.h: Add missing newline at eof.
4858 * include/stdio.h (snprintf): Add prototype.
4859 (vsnprintf): Add prototype and inline definition.
4860 (snwprintf): Add prototype.
4861 (vsnwprintf): Add prototype and inline definition.
4862 * include/wchar.h (snwprintf): Add prototype.
4863 (vsnwprintf): Add prototype and inline definition.
4864 * mingwex/Makefile.in: Add snprintf.o, snwprintf.o
4866 * mingwex/snprintf.c: New file.
4867 * mingwex/snwprintf.c: New file.
4869 2002-03-22 Danny Smith <dannysmith@users.sourceforge.net>
4871 * configure.in: Add mingwex as SUBDIRS and configdirs.
4872 * configure: Regenerate.
4873 * Makefile.in (MINGW_OBJS): Remove dirent.o.
4874 (SRC_DIST_FILES): Remove dirent.c.
4876 * include/stdlib.h (_Exit): Add static inline
4878 (struct lldiv_t): Define.
4879 (lldiv): Add prototype.
4880 (llabs): Add extern inline function.
4881 (strtoll,strtoull): Add prototypes.
4882 (wcstol, wcstoul, wcstod): Group together.
4883 (strtof, wcstof): Add extern inline definitions.
4884 (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes
4885 and extern inline definitions.
4886 * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr
4887 wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add
4889 (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h.
4890 (wcstof): Add extern inline definition.
4891 * include/math.h (nan, nanf): Add prototypes.
4892 (NAN, INFINITE): Define constants.
4893 (fpclassify, isnan ,signbit): Add macros and supporting float
4894 and double functions.
4895 (isfinite, isinf, isnormal): Add macros.
4896 (isgreater, isless, isgreaterequal, islessequal,islessgreater):
4898 (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf,
4899 fmin, fminf, fma, fmaf, log2, log2f): Add prototypes.
4900 (copysign, logb, nextafter, scalb): Add prototypes and
4901 inline stubs for underscored versions in msvcrt.dll.
4902 * include/inttypes.h: New file.
4903 * include/fenv.h: New file
4905 Add new mingwex subdir and files.
4906 * mingwex: New directory.
4907 * mingwex/Makefile.in: New file.
4908 * mingwex/configure.in: New file.
4909 * mingwex/configure: Generate.
4910 * mingwex/dirent.c: Moved here from parent dir.
4911 * mingwex/atoll.c: New file.
4912 * mingwex/feclearexcept.c: New file.
4913 * mingwex/fegetenv.c: New file.
4914 * mingwex/fegetexceptflag.c: New file.
4915 * mingwex/fegetround.c: New file.
4916 * mingwex/feholdexcept.c: New file.
4917 * mingwex/feraiseexcept.c: New file.
4918 * mingwex/fesetenv.c: New file.
4919 * mingwex/fesetexceptflag.c: New file.
4920 * mingwex/fesetround.o: New file.
4921 * mingwex/fetestexcept.c: New file.
4922 * mingwex/feupdateenv.c: New file.
4923 * mingwex/fma.S: New file.
4924 * mingwex/fmaf.S: New file.
4925 * mingwex/fmax.c: New file.
4926 * mingwex/fmaxf.c: New file.
4927 * mingwex/fmin.c: New file.
4928 * mingwex/fminf.c: New file.
4929 * mingwex/fp_consts.c: New file.
4930 * mingwex/fpclassify.c: New file.
4931 * mingwex/fucom.c: New file.
4932 * mingwex/fwide.c: New file.
4933 * mingwex/imaxabs.c: New file.
4934 * mingwex/imaxdiv.c: New file.
4935 * mingwex/isnan.c: New file.
4936 * mingwex/isnanf.c: New file.
4937 * mingwex/lltoa.c: New file.
4938 * mingwex/lltow.c: New file.
4939 * mingwex/log2.c: New file.
4940 * mingwex/log2f.c: New file.
4941 * mingwex/math_stubs.c: New file.
4942 * mingwex/mbsinit.c: New file.
4943 * mingwex/rint.c: New file.
4944 * mingwex/round.c: New file.
4945 * mingwex/signbit.c: New file.
4946 * mingwex/sitest.c: New file.
4947 * mingwex/strtof.c: New file.
4948 * mingwex/strtoimax.c: New file.
4949 * mingwex/strtoumax.c: New file.
4950 * mingwex/testwmem.c: New file.
4951 * mingwex/trunc.c: New file.
4952 * mingwex/ulltoa.c: New file.
4953 * mingwex/ulltow.c: New file.
4954 * mingwex/wcstof.c: New file.
4955 * mingwex/wcstoimax.c: New file.
4956 * mingwex/wcstoumax.c: New file.
4957 * mingwex/wmemchr.c: New file.
4958 * mingwex/wmemcmp.c: New file.
4959 * mingwex/wmemcpy.c: New file.
4960 * mingwex/wmemmove.c: New file.
4961 * mingwex/wmemset.c: New file.
4962 * mingwex/wtoll.c: New file.
4964 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4966 * include/mbstring.h: New file.
4967 * include/mbctype.h: New file.
4969 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4971 * include/tchar.h (__TEXT): Make same as define in
4972 w32api/include/winnt.h.
4974 2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
4976 * include/tchar.h (_tputenv): Add UNICODE mappings.
4977 (_tsearchenv): Likewise.
4978 (_tmakepath): Likewise.
4979 (_tsplitpath): Likewise.
4980 (_tfullpath): Likewise.
4982 2002-04-18 Pascal Obry <obry@gnat.com>
4984 * dirent.c (opendir): Convert given pathname to
4987 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4989 * include/_mingw.h: Increment version.
4990 * Makefile.in: Ditto.
4992 2002-04-09 Earnie Boyd <earnie@users.sf.net>
4994 * moldname-crtdll.def: Remove CR from end of line.
4995 * moldname-msvcrt.def: Ditto.
4996 * Makefile.in: Use bzip2 compression for Cygwin target.
4998 2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>
5000 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
5001 TLOSS, PLOSS): Move oldname defines back, following
5002 the underscored names.
5004 2002-03-29 Danny Smith <dannysmith@sourceforge.users.net>
5006 * include/stdio.h (_snwprintf): Correct spelling.
5007 (_vsnwprintf): Likewise.
5008 * include/wchar.h (_snwprintf): Correct spelling.
5009 (_vsnwprintf): Likewise.
5011 2002-03-26 Danny Smith <dannysmith@users.sourceforge.net>
5013 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__).
5014 (wpopen): Add if !(__CRTDLL__).
5015 * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
5017 (moldname-crtdll.def rule): Likewise.
5018 * moldname-msvcrt.def: Regenerate.
5019 * moldname-crtdll.def: Regenerate.
5020 * include/stdio.h (wpopen):Use prototype, not a define.
5021 (_swnprintf): Add prototype.
5022 (_vswnprintf): Likewise.
5024 * include/wchar.h (_swnprintf): Add prototype.
5025 (_vswnprintf): Likewise.
5028 2002-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5030 * include/malloc.h (_heapinfo): Correct structure definition.
5031 (_USEDENTRY,_FREEENTRY): Add defines.
5032 Add comment on platform support for _heap* functions.
5033 (_get_sbh_threshold): Add prototype.
5034 (_set_sbh_threshold): Likewise.
5035 (_expand): Likewise.
5037 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5039 * profile/profil.c: Update copyright info.
5040 * profile/profil.h: Likewise.
5041 * profile/gcrt0.c: Likewise.
5043 2002-01-25 Pascal Obry <obry@gnat.com>
5045 * profile/profil.h (PROFADDR): Cast idx to unsigned long long to
5047 * profile/gmon.c: Define bzero as memset if mingw32.
5048 (monstartup): Use it.
5050 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5052 * include/tchar.h (_TCHAR): Add missing ;.
5054 2002-01-25 Danny Smith <dannysmith@users.sourceforge.net>
5056 * include/tchar.h (_TCHAR): Add typedefs.
5058 2002-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5060 * include/stdlib.h (_onexit_t): Add typedef.
5061 (_onexit): Add prototype.
5063 2002-01-12 Danny Smith <dannysmith@users.sourceforge.net>
5065 * msvcrt.def: Revert accidental change.
5066 * include/stdlib.h: Ditto.
5068 2001-12-07 Earnie Boyd <earnie@users.sf.net>
5070 * Makefile.in: Increment VERSION.
5071 * include/_mingw.h: Ditto.
5073 2001-12-05 Earnie Boyd <earnie@users.sf.net>
5075 * include/strings.h: New File.
5077 2001-12-02 Mumit Khan <khan@nanotech.wisc.edu>
5079 * include/math.h (_FPCLASS* ): Add defines from float.h.
5080 (IEEE recommended functions): Add declarations from float.h.
5081 * include/float.h (_FPCLASS* ): Protect against redefinition.
5083 2001-11-29 Wu Yongwei <adah@netstd.com>
5085 * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h
5086 dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h,
5087 limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h,
5088 share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h,
5089 stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h,
5090 wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h:
5091 Correct spelling of "disclaimed" in comments.
5092 * include/excpt.h: Another spelling correction.
5094 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
5096 * include/errno.h: Fix "errno is not a prototype" warning.
5098 2001-11-07 Danny Smith <dannysmith@users.sourceforge.net>
5100 * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment
5101 differences between ANSI and non-ANSI versions.
5102 (_ctype[],_pctype): Declare vars.
5103 (__ISCTYPE): New helper macro using _pctype.
5104 (is* ctype functions): Use __ISCTYPE to define inline versions.
5105 (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf):
5107 (isw* ctype functions): Inline definitions.
5108 * include/wctype.h (_ctype[],_pctype): Declare vars.
5109 (isw* ctype functions): Inline definitions.
5112 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5114 * include/float.h (_clearfp, _statusfp, _fpreset, fpreset,
5115 __fpecode): Use __STDC__ prototypes.
5118 2001-11-06 Thomas Pfaff <tpfaff@gmx.net>
5120 * mthr_stub.c (__mingwthr_remove_key_dtor) New.
5121 * mthr_init.c (DllMain) Run dtors if a process terminates.
5122 * mthr.c (__mingwthr_add_key_dtor) Removed.
5123 (___mingwthr_add_key_dtor) New.
5124 (___mingwthr_remove_key_dtor) New.
5125 (__mingwthr_run_key_dtors) Complete rewrite.
5126 (__mingwthr_remove_key_dtor) New.
5128 2001-11-05 Egor Duda <deo@logos-m.ru>
5130 * Makefile.in: Delete unused executable after creating base-files.
5132 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
5134 * include/errno.h (_errno): Use __STDC__ prototype.
5135 Thanks to: Jim Barton.
5137 2001-11-04 "stefan" <stefan@lkcc.org>
5139 * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names.
5141 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5143 * include/io.h (_commit): Add declaration.
5144 Thanks to: "stefan" <stefan@lkcc.org>
5146 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5148 * include/sys/stat.h: Make S_IS* macros safer.
5150 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
5152 * include/stdlib.h (EXIT_FAILURE): Change value to 1.
5154 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5156 * include/stdlib.h (__p__environ, __p__wenviron): Use
5157 __STDC__ prototypes.
5159 2001-09-19 Earnie Boyd <earnie@SF.net>
5161 * Makefile.in: Remove the /usr from the install target.
5162 (VERSION): Increment.
5163 include/_mingw.h: Ditto.
5165 2001-09-17 Earnie Boyd <earnie@SF.net>
5167 * Makefile.in: Increment version.
5168 * include/_mingw.h: Ditto.
5170 2001-09-10 Earnie Boyd <earnie@SF.net>
5172 * dossh: Remove inadvertantly imported file.
5174 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5176 * dirent.c (opendir): Use GetFileAttributes rather than stat
5177 to determine if input arg is dir.
5179 2001-08-29 Danny Smith <dannysmith@users.sourceforge.net>
5181 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
5183 * include/varargs.h (va_list): Ditto.
5184 * include/stdio.h (va_list): Ditto.
5186 2001-08-01 Danny Smith <dannysmith@users.sourceforge.net>
5188 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
5189 * include/stdio.h (_IORW): Change constant to 0x0080.
5190 (TMP_MAX): Add new define.
5192 (_wP_tmpdir): Ditto.
5193 (L_tmpnam): Change constant to 16.
5195 2001-06-28 Danny Smith <dannysmith@users.sourceforge.net>
5197 * include/malloc.h: Fix non-ANSI comment after #endif.
5199 2001-06-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5201 * profile/configure.in: Make msvcrt.dll version default.
5202 * profile/makefile.in: Build both gcrt1.o and gcrt2.o.
5203 * provile/configure: Regenerate.
5205 2001-06-11 Mattia Barbon <mbarbon@dsi.unive.it>
5207 * include/stdio.h (swscanf): Make first arugument const.
5208 * include/wchar.h (swscanf): Ditto.
5209 * include/tchar.h (_tfopen): New _UNICODE define.
5211 (_tsetlocale): Ditto.
5213 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5215 * profile/Makefile.in (mkinstalldirs): Correct relative path.
5217 2001-06-04 Earnie Boyd <earnie@users.sourceforge.net>
5219 * include/_mingw.h: Change version to 1.0.
5222 2000-02-21 Earnie Boyd <earnie@users.sourceforge.net>
5224 * include/tchar.h: (__TEXT): Remove undef.
5228 2001-02-02 Earnie Boyd <earnie@users.sourceforge.net>
5230 * include/tchar.h: (__TEXT): Add private macro.
5231 (_TEXT): Modify definition to use __TEXT.
5233 This change allows the passing of a MACRO as an argument and have that
5234 MACRO resolved first.
5235 Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
5237 2001-01-31 Earnie Boyd <earnie@users.sourceforge.net>
5239 * Makefile.in: Increment version to 0.5
5240 * include/_mingw.h: Increment minor version
5242 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5244 * include/assert.h: (assert): Remove ; from end of definition
5245 Thanks to: AJ Reins <tbisp@qwest.net>
5247 2001-01-30 Earnie Boyd <earnie@users.sourceforge.net>
5249 * include/time.h (CLOCKS_PER_SEC): Type cast the constant.
5250 Thanks to: Cosmin Truta <cosmin@cs.toronto.edu>
5252 2001-01-29 Earnie Boyd <earnie@users.sourceforge.net>
5254 * include/time.h (CLOCKS_PER_SEC): Change from FP to integer constant.
5256 2001-01-28 Earnie Boyd <earnie@users.sourceforge.net>
5258 * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
5259 are actually C functions. These functions are resolved via the
5260 -lmsvcp60 library and comments were placed in the header.
5262 2001-01-28 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5264 * include/stdlib.h (__p__pgmptr): add prototype.
5265 (__p__wpgmptr): likewise.
5266 (_pgmptr_dll): move declaration from dos.h.
5267 (_wpgmptr_dll): likewise.
5268 (_pgmptr): conditional define (MSVCT/CRTDLL).
5269 (_wpgmptr): likewise.
5270 * include/dos.h (_base*_dll variables): declare only for CRTDLL.
5271 (_os*_dll variables): likewise.
5272 (_pgmptr_dll): remove declaration and associated defines to stdlib.h.
5273 (_wpgmptr_dll): likewise.
5275 2001-01-22 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5277 * include/stdint.h: New file.
5279 2001-01-18 Earnie Boyd <earnie@users.sourceforge.net>
5281 * include/wchar.h: Protect prototypes only declared in the C++ STL
5282 from being declared unless __cplusplus is defined.
5284 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5286 * include/stdlib.h: Apply Danny Smith patch 102730
5287 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5288 (_wgetenv) Correction to return type.
5290 2001-01-16 Earnie Boyd <earnie@users.sourceforge.net>
5292 * include/locale.h: Apply Danny Smith patch 101834
5293 2000-11-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5294 (LC_MIN) Add definition.
5296 (_wsetlocale) Add prototype.
5298 2000-11-29 Earnie Boyd <earnie_boyd@yahoo.com>
5300 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
5301 Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
5302 Create a libcoldname.a for the oldname library for CRTDLL.
5303 Restrict libmoldname.a for the oldname library for MSVCRT.
5304 * configure.in: eliminate setting RUNTIME and CRT_ID variables.
5305 Restructure the $target_os case logic.
5306 Always name the MinGW thread dll helper mingwm.
5307 Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
5308 * configure: regenerate.
5310 2000-11-22 Earnie Boyd <earnie_boyd@yahoo.com>
5312 * Makefile.in: Fix bindist target to distribute the correct files.
5313 Remove the use of SNAPSHOT variable and test SNAPDATE instead.
5314 Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
5316 2000-11-21 Earnie Boyd <earnie_boyd@yahoo.com>
5318 * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
5319 Add variables and targets to control binary and source distributions.
5320 Add variables and targets to control snapshot distribution.
5321 * profile/gmon.h: Add missing #endif for #ifndef.
5322 * profile/ChangeLog: Merge entries here and remove.
5323 * profile/Makefile.in: Add variables and targets to control
5327 * config.guess: ditto.
5328 * config.sub: ditto.
5329 * mkinstalldirs: ditto.
5330 * install-sh: ditto.
5331 * configure: regenerate.
5332 * profile/configure: ditto.
5334 2000-11-20 Earnie Boyd <earnie_boyd@yahoo.com>
5336 * Merge in changes from
5337 2000-10-23 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5338 * include/direct.h: add guard around MSVCRT-only prototytpes
5339 * include/io.h: add __int64 struct definitions and function prototypes;
5340 add guard for MSVCRT-only prototypes
5341 * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
5342 * include/stdio.h: add wchar function prototypes (__MSVCRT__);
5343 put wchar functions together to make sync with wchar.h easier
5344 * include/stdlib.h: add wide char functions (__MSVCRT__)
5345 * include/string.h: add string collation functions ( __MSVCRT__)
5346 * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
5347 * include/tchar.h: add macros and macro function definitions
5348 * include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
5349 enclose more functions in __MSVCRT__ guard;
5350 some oldname wide char function prototypes #if (0)'d
5351 * profile/gmon.h: add guard around BSD-ish typedefs
5353 2000-11-20 Christopher Faylor <cgf@cygnus.com>
5355 * Makefile.in: Use a different variable name for subdirectory since the
5356 previous one was used by the top level make.
5358 2000-11-19 Christopher Faylor <cgf@cygnus.com>
5360 * Makefile.in: Install mingw stuff in a subdirectory if building under
5363 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5365 * Makefile.in (subdirs): Eliminate for loop.
5367 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5369 * Makefile.in (subdirs): Previous change did not fix problem in
5372 2000-06-17 Christopher Faylor <cgf@cygnus.com>
5374 * Makefile.in: Avoid installing dll if we're cross building and the
5375 cross-host system isn't a Windows system.
5376 * configure.in: Detect cross-hosting situation and set appropriate
5377 variables in Makefile.in.
5378 * configure: Regenerate.
5380 2000-04-19 Christopher Faylor <cgf@cygnus.com>
5382 * configure.in: Change HEADER_SUBDIR to mingw32.
5383 * configure: Regenerate.
5385 2000-04-10 Christopher Faylor <cgf@cygnus.com>
5387 * include/string.h: Use proper prototype for _strerror.
5389 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
5391 * Makefile.in (subdirs): Workaround for broken shells.
5393 2000-02-03 Mumit Khan <khan@xraylith.wisc.edu>
5395 * Snapshot 2000-02-03.
5397 * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h,
5398 float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h,
5399 stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h,
5400 sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace
5403 * Makefile.in (all): Build CRT0S first.
5404 (libmingwthrd.a): Remove thread support DLL from dependency.
5406 2000-01-21 Mumit Khan <khan@xraylith.wisc.edu>
5408 * Snapshot 2000-01-21.
5410 2000-01-20 Mumit Khan <khan@xraylith.wisc.edu>
5412 Merge in changes from Cygwin:
5413 * configure.in (HEADER_SUBDIRS): New variable. Substitute.
5414 (SUBDIRS): Likewise.
5415 * Makefile.in (HEADER_SUBDIRS): New variable.
5416 (install): Use to install Mingw headers to a subdirectory if building
5418 (DLL_CC_STUFF): Add DLL entry point.
5419 * configure: Regenerate.
5421 2000-01-19 Mumit Khan <khan@xraylith.wisc.edu>
5423 * include/stdio.h (fsetpos): Fix prototype.
5424 (fpos_t): Fix for MSVCRT.
5425 * include/float.h (fpreset): Add prototype.
5426 * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with
5428 * include/time.h: Don't define tzname as a macro for CRTDLL, and
5429 export using libmoldname.a.
5430 * crtdll.def: Add DATA tags.
5431 * msvcrt.def: Likewise.
5432 * moldname.def.in: Likewise. Add fpreset. Export tzname for
5433 both MSVCRT and CRTDLL.
5434 * moldname-crtdll.def: Regenerate.
5435 * moldname-msvcrt.def: Regenerate.
5437 1999-12-21 Mumit Khan <khan@xraylith.wisc.edu>
5439 * Snapshot 1999-12-21.
5441 * include/wctype.h: New file.
5442 * include/ctype.h (MB_CUR_MAX): Define.
5444 * include/stdlib.h (MB_CUR_MAX): Define.
5445 * include/wchar.h: Define stat, _stat structures here as well.
5446 * include/float.h: Add invalid subconditions (_SW) and floating
5447 point error (_FPE) macros.
5448 * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED.
5449 (_TIME_T): Rename macro to _TIME_T_DEFINED.
5450 * include/sys/types.h: Likewise.
5452 1999-11-18 Mumit Khan <khan@xraylith.wisc.edu>
5454 * profile/profil.c (profile_on): Set the profiler thread priority to
5455 be time critical. Thanks to Pascal Obry <pascal_obry@csi.com>.
5456 * Snapshot 1999-11-18.
5458 1999-11-07 Mumit Khan <khan@xraylith.wisc.edu>
5460 Released 1999-11-07.
5462 * Makefile.in (CRT0S): Add crtst.o.
5463 (install): Install in subdirs as well.
5464 * dirent.h (struct _stat): Rename from struct stat.
5465 * include/tchar.h: Add some new macros. Thanks to
5466 Eric Kohl <ekohl@abo.rhein-zeitung.de>.
5467 * profile/Makefile.in (install): Fix target.
5469 1999-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5471 * Makefile.in: Add support for profile directory.
5472 * configure.in: Likewise.
5473 * configure: Regenerate.
5475 * profile: Imported profiling sources from winsup-19991026 snapshot.
5476 * profile/Makefile.in: New file.
5477 * profile/configure.in: New file.
5478 * profile/configure: Generate.
5479 * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw.
5480 * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise.
5481 * profile/gmon.c (unistd.h): Include conditionally.
5482 (sys/param.h): Likewise.
5483 * profile/mcount.c (sys/param.h): Likewise.
5484 * profile/profil.c (profile_on): thread id is DWORD, not int.
5487 1999-11-03 Mumit Khan <khan@xraylith.wisc.edu>
5489 * include/stdlib.h: Add wide character version of argv/environ.
5491 * include/wchar.h: More wide character prototypes.
5492 * include/sys/stat.h: Likewise. Add struct stat as well as _stat.
5494 * dllcrt1.c (init.c): Don't include.
5495 (DllMainCRTStartup): Don't call _mingw32_init_mainargs().
5496 * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists.
5498 1999-10-30 Mumit Khan <khan@xraylith.wisc.edu>
5500 * moldname.def: Remove file.
5501 * moldname.def.in: And add this.
5502 * moldname-msvcrt.def: Generate from moldname.def.in.
5503 * moldname-crtdll.def: Likewise.
5505 * mthr.c: New file for -mthread (thread-safe C++ EH) support.
5506 * mthr_init.c: New file for -mthread (thread-safe C++ EH) support.
5507 * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support.
5509 * Makefile.in: Update.
5510 * configure.in: Likewise. Also add *cygwin* target for building
5511 under Cygwin winsup.
5512 * configure: Regenerate.
5514 1999-10-01 Mumit Khan <khan@xraylith.wisc.edu>
5516 * include/_mingw.h: Add version macros.
5517 * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add.
5518 Also add wide character versions shared with wchar.h.
5519 * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add.
5520 * include/io.h (sopen, _sopen): Fix prototype.
5521 Add wide character prototypes.
5522 * include/wchar.h: Likewise.
5523 * include/stdlib.h (beep, seterrormode, sleep): Remove non-
5524 underscored versions. Potential incompatibility.
5525 * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases.
5526 Add wide character prototypes.
5527 * include/sys/timeb.h (struct _timeb): Don't use macro, but real
5530 1999-08-18 Mumit Khan <khan@xraylith.wisc.edu>
5532 * configure.in (RUNTIME, CRT_ID): Add to differentiate between
5533 crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY
5535 * configure: Rengerate.
5536 * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct
5537 dll name and crt's. CRTDLL and MSVCRT are meant to created
5538 separately, so remove all the *-msvcrt* targets.
5539 (libmingwthr.a): New target. Dummy thread support archive.
5540 (LIBS): Add libmingwthr.a.
5541 (CRT0S): Use CRT_ID. Add crtmt.o.
5542 (MINGW_OBJS): Add crtst.o.
5543 * main.c (WinMain): Fix prototype.
5544 * crtmt.c: New file.
5545 * crtst.c: New file.
5547 * include/process.h (_beginthreadex): Fix prototype.
5548 * include/_mingw.h (__int64): Define for __GNUC__.
5549 * include/tchar.h (_ttol): Add macro.
5550 * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64,
5551 _i64tow, _ui64tow, _wtoi64): Add prototypes.
5553 Reported by Emanuele Aliberti <ea@iol.it>:
5554 * include/tchar.h (_ttoi): Add macro.
5556 Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>:
5557 * include/stdio.h (_snprintf): Add prototype.
5558 (_vsnprintf): Likewise.
5560 1999-08-07 Mumit Khan <khan@xraylith.wisc.edu>
5562 Reported by Tor Lillqvist <tml@iki.fi>:
5563 * include/stdlib.h (__p___argv): Fix return type.
5565 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5568 * include/errno.h (errno): It's linked in from startup, not imported.
5569 * include/stdlib.h (errno): Likewise.
5570 * include/io.h: Guard against conflicting macros and prototypes in
5572 * include/stdlib.h: Likewise.
5573 * include/string.h: Likewise.
5574 * include/time.h: Likewise.
5576 1999-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5578 * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans.
5579 * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT.
5580 * Makefile.in (INCLUDES): Remove old windows32 include directory.
5582 * crt1.c (_gnu_exception_handler): Fix prototype.
5583 (__mingw_CRTStartup): New function based on mainCRTStartup.
5584 (mainCRTStartup): Set the app type for MSVCRT and call
5586 (WinMainCRTStartup): Likewise.
5587 * init.c (_startupinfo): Define.
5588 (_getmainargs): Add 5th parameter.
5589 (_mingw32_init_mainargs): Use.
5591 * ALL *.c files: Reformat according to GNU coding style.
5593 1999-07-16 Mumit Khan <khan@xraylith.wisc.edu>
5595 * Makefile.in (INCLUDES): Add w32api include directory.
5597 * include/_mingw.h: New file.
5598 * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h,
5599 errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h,
5600 math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h,
5601 stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h,
5602 sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and
5603 use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT.
5605 * include/stdlib.h (atexit): Fix prototype.
5607 1999-06-14 Mumit Khan <khan@xraylith.wisc.edu>
5609 * include/stdio.h (_tempnam): Fix prototype.
5610 (tempnam): Likewise.
5611 * include/stdlib.h: Replace with GCC's version, and guard
5614 From Anders Norlander <anorland@hem2.passagen.se>:
5615 * include/stdlib.h (__argc): Declare.
5618 1999-04-05 Mumit Khan <khan@xraylith.wisc.edu>
5620 * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's
5622 * Makefile.in (_libm_dummy.o): New target.
5625 1999-03-16 Mumit Khan <khan@xraylith.wisc.edu>
5627 * Released 1999-03-16 along with egcs-1.1.2.
5629 1999-02-17 Mumit Khan <khan@xraylith.wisc.edu>
5631 * Makefile.in (LIBS): Add libm.a.
5632 (libm.a): Dummy libm.a.
5634 * Makefile.in: Update from winsup 1999-02-08 snapshot.
5635 Preserve local changes.
5636 (mkinstalldirs): In ../, not ../../.
5637 (INCLUDES): Point to local windows32api headers and use -nostdinc.
5639 (LIBS): Add libmoldname-msvc.a.
5640 (libmoldname-msvc.a): Add target.
5641 (distclean): Add target.
5643 1999-02-09 Mumit Khan <khan@xraylith.wisc.edu>
5645 * include/dir.h: Reintroduce as an obsolescent header.
5646 * crt1.c (signal.h): Include.
5647 (_gnu_exception_handler): New function to properly handle win32
5648 asynchronous signals.
5649 (mainCRTStartup): Use.
5651 1999-01-03 Mumit Khan <khan@xraylith.wisc.edu>
5653 * include/direct.h: Include io.h instead of dir.h
5654 * include/dirent.h: Likewise.
5655 * include/dos.h: Likewise.
5656 * include/stdio.h: Replace reference to dir.h with io.h.
5658 1998-12-31 Mumit Khan <khan@xraylith.wisc.edu>
5660 * 1999-01-01 release bundled with egcs-1.1.1.
5662 * include/io.h: Incorporate dir.h.
5663 * include/dir.h: Remove.
5664 * include/signal.h: Move RC_INVOKED up a bit.
5666 1998-12-29 Mumit Khan <khan@xraylith.wisc.edu>
5668 * include/signal.h (sig_atomic_t): Define.
5670 * include/malloc.h: Import defs from deprecated alloc.h.
5671 * include/alloc.h: Remove.
5673 From "Daniel J. Rodriksson" <djr@dit.upm.es>:
5674 * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT.
5675 * include/sys/stat.h (struct stat): st_uid is of type short. Use
5676 _off_t instead of long for st_size.
5678 1998-09-10 Mumit Khan <khan@xraylith.wisc.edu>
5680 * include/errno.h (sys_errlist, sys_nerr): Move from here ...
5681 * include/stdlib.h: Here.
5683 * include/netdb.h: Remove.
5684 * include/arpa/inet.h: Remove.
5685 * include/netinet/in.h: Remove.
5686 * include/sys/socket.h: Remove.
5688 1998-09-04 Mumit Khan <khan@xraylith.wisc.edu>
5692 * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h,
5693 sys/utime.h}: Protect stddef.h in RC_INVOKED macro.
5695 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5697 * setjmp.h (_JBTYPE, _JBLEN): Define correctly.
5698 (jmpbuf): typedef using above.
5699 (setjmp, longjmp): Prototype using jmpbuf.
5701 Merge with Colin Peters' 980701 snapshot. I've ignored changes to
5702 obsolescent imported names, ie., from __imp__ to _imp___.
5704 Also ignored empty include/sys/param.h and incorrect
5705 include/sys/times.h.
5707 * CRTinit.c: New file.
5708 * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef
5710 * include/io.h (umask): Fix prototype.
5711 * include/stdlib.h (OS constants): Replace with Colin's.
5712 * include/time.h (tzset, daylight, timezone): Replace with Colin's.
5713 * include/sys/state.h: Merge.
5715 1998-09-03 Mumit Khan <khan@xraylith.wisc.edu>
5717 * include/assert.h (assert): Lose the trailing semicolon.
5719 1998-07-30 Mumit Khan <khan@xraylith.wisc.edu>
5721 * include/math.h (matherr): Declare.
5722 * include/stdio.h (fileno, _fileno): Declare.
5723 * include/stdlib.h (environ, _environ): Fix to use runtime DLL.
5726 * include/stdio.h (fdopen, _fdopen): Add const.
5727 (getw, putw): Declare.
5728 * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix.
5730 1998-06-13 Mumit Khan <khan@xraylith.wisc.edu>
5732 * include/time.h (_timezone): Undefine.
5733 * include/sys/timeb.h (struct timeb): Rename _timezone to timezone.
5735 * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove
5737 * include/stdlib.h (environ): Use DLL version.
5738 * init.c (environ): Undefine it before use.
5740 1998-03-22 Mumit Khan <khan@xraylith.wisc.edu>
5742 * Update to 980309 snapshot from Colin Peters.
5744 * include/utime.h: remove
5745 * include/stdlib.h (__imp__osver_dll, __imp__winver_dll,
5746 __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's
5747 patches to define these.
5748 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5749 (_daylight, _timezone, _tzname, _tzset): Define.
5751 * include/netdb.h: Add from Colin's windows32api changes.
5752 * include/sys/socket.h: Likewise.
5753 * include/arpa/inet.h: Likewise.
5754 * include/netinet/in.h: Likewise.
5756 1998-02-04 Mumit Khan <khan@xraylith.wisc.edu>
5758 * Update to 980128 snapshot from Colin Peters.
5760 1997-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5762 * configure.in (AC_INIT): Use dllmain.c instead of defunct
5764 * configure: Regenerate.
5766 1997-12-05 Mumit Khan <khan@xraylith.wisc.edu>
5768 * Update to 971205 snapshot from Colin Peters. Lots of changes.
5769 Files renamed and include hierarchy loses directories named
5772 * include/dos.h: from Jan-Jaap.
5774 1997-12-04 Mumit Khan <khan@xraylith.wisc.edu>
5776 Changes to conform to FSF tree.
5778 * crt1.c: Renamed from mcrt0.c.
5779 * dllcrt1.c: Renamed from dllcrt0.c.
5780 * Makefile.in: Update above. Also renamed libmoldnames.a to
5783 1997-12-01 Mumit Khan <khan@xraylith.wisc.edu>
5785 * crtdll.def: Export all functions but the ones with funny names.
5786 * moldnames.def: Add fdopen since fileno is already there.
5787 * include/nonansi/dos.h: New file from Jan-Jaap.
5788 * include/errno.h: Add extern decl + various additions from JJ.
5789 * include/stdio.h: Likewise.
5790 * include/stdlib.h: Likewise.
5791 * include/nonansi/io.h: Likewise.
5792 * include/nonansi/process.h: Likewise.
5793 * include/sys/types.h: Likewise.
5795 1997-11-04 Mumit Khan <khan@xraylith.wisc.edu>
5797 * include/time.h (CLK_TCK): Renamed from CLK_TICK.
5799 * include/stdlib.h (free): Fix prototype to return void, not void*.
5800 * include/nonansi/process.h: Add P_* and WAIT_* defs.
5802 * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack.
5803 * mcrt0.c: Likewise.
5805 * Makefile.in (LIBS): Delete moldnames.dll from target libs.
5806 (libmoldnames.a): Add explicit rule to create it.
5808 1997-08-15 Rob Savoye <rob@cygnus.com>
5810 New directory for the minimalist cygwin environment.
5812 * crtglob.c: New file. Turn on file globbing support.
5813 * crt_noglob.c: New file. Turn off file globbing support.
5814 * ctype_old.c: New file. Wrappers for functions that don't
5816 * dirent.c: New file. Directory routines readdir, opendir, closedir.
5817 * dllcrt0.c: New file. Initialization code to use crtdll.dll.
5818 * dllmain.c: New file. A stub DllMain function.
5819 * hugeval.c: New file. A gross hack to define HUGE_VAL.
5820 * init.c: New file. Common code to initialize standard file
5821 handles and command line arguments.
5822 * main.c: New file. A main for programs that only call WinMain.
5823 * mcrt0.c: New file. Default crt0 for mingw32.
5824 * oldnames.c: New File. Wrappers for functions that don't
5826 * string_old.c: New File.
5827 * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h
5828 math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h
5829 string.h,tchar.h,time.h,wchar.h}: New header files for mingw.
5830 * include/sys/types.h: New header file for mingw.
5831 * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h
5832 fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h
5833 utime.h,values.h,varargs.h}: New header files for mingw.
5834 * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h
5835 timeb.h,unistd.h}: New header files for mingw.
5836 * Makefile.in,configure.in: Build and configure support.
5837 * configure: Generated from autoconf 2.12 with Cygnus patches.