Commit Graph

443 Commits

Author SHA1 Message Date
Danny Smith 6e8285f48b * profile/COPYING: New file.
* profile/CYGWIN_LICENSE: New file.
	* profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
2004-08-15 11:35:07 +00:00
Danny Smith 48a27980be * mingwex/fopen64.c: Move.
* mingwex/fseeko64.c: Move.
        * mingwex/ftello64.c: Move.
        * mingwex/lseek64.c: Move.
        * mingwex/stdio/fopen64.c: To here.
        * mingwex/stdio/fseeko64.c: To here.
        * mingwex/stdio/ftello64.c: To here.
        * mingwex/stdio/lseek64.c: To here.

	White space cleanup in ChangeLog
2004-08-15 11:28:09 +00:00
Danny Smith 40929746ba * profile/gmon.c [__MINGW32__]: Include string.h for
memset prototype.
2004-08-15 10:45:43 +00:00
Christopher Faylor 3f604cbca4 * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change. 2004-08-09 01:17:28 +00:00
Danny Smith ac8cbf3d2d * include/complex.h: Remove __attribute__ ((const)) from
transcendantal and trig functions.  Replace __attribute__ ((const))
	with __MINGW_ATTRIB_CONST on other declarations.
2004-08-07 07:58:01 +00:00
Danny Smith 889a573ad8 * include/wchar.h: Reorganize, avoid including other headers. 2004-08-07 07:51:14 +00:00
Danny Smith a794235489 * include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
(strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
        attribute.
2004-08-06 21:49:54 +00:00
Danny Smith 8b7083824a * include/dirent.h (struct _wdirent): Remove obsolete comment. 2004-07-30 08:27:29 +00:00
Danny Smith 57cb31d40c * include/string.h: Revert 2004-07-26 additions of
__ATTRIBUTE_PURE.
2004-07-30 08:19:58 +00:00
Danny Smith ab8cc34bb7 * mingwex/math/powl.c (powl): Revert change of 2004-02-01.
(__convert_inf_to_maxnum): New.static inline.
	(reducl): Use it to protect against Inf - Inf.
	(__fast_ldexpl): New function.  Use in lieu of ldexpl.
2004-07-28 11:25:27 +00:00
Danny Smith 5ea3a6e152 * mingwex/math/expl.c (expl): Move body of code to new static
function __expl, removing tests for +/-Inf. Extern function
	expl calls __expl after testing for max, min log thresholds.
2004-07-27 08:03:36 +00:00
Danny Smith 1856fdbe03 * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
* mingwex/stdio/vfscanf.c: Likewise.
	* mingwex/stdio/vswscanf.c: Likewise.
	* mingwex/stdio/vfwscanf.c: Likewise.
2004-07-27 00:06:07 +00:00
Danny Smith 756301b7de * include/_mingw.h: Use only two underscores to uglify
__MINGW_ATTRIB_* macros.
	* include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
	* includ/setjmp.h: Likewise.

	* include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
	string functions.
	(_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
2004-07-26 23:45:03 +00:00
Danny Smith dcbe26ba3c * include/_mingw.h: Use only two underscores to uglify
__MINGW_ATTRIB_* macros.
	* include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
	* includ/setjmp.h: Likewise.

	* include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
	string functions.
	(_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
2004-07-26 09:13:42 +00:00
Danny Smith 174e6ff064 * include/string.h: Group wide string functions together,
and protect with _WSTRING_DEFINED.
2004-07-26 04:12:11 +00:00
Danny Smith 751ba44030 * include/_mingw.h (_MINGW_ATTR_*): Replace with
__MINGW_ATTRIB_*.
	* include/stdlib.h (_ATTRIB_NORETURN): Replace with
	__MINGW_ATTRIB_NOREURN, throughout.
	(malloc): Declare with __MINGW_ATTRIB_MALLOC.
	(calloc): Likewise.
	(abs): Declare with __MINGW_ATTRIB_CONST.
	(labs): Likewise.
	(div): Likewise.
	(ldiv): Likewise.
	(lldiv): Likewise.
	(_rotl): Likewise.
	(_rotr): Likewise.
	(_lrotl): Likewise.
	(_lrotr): Likewise.
	* include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
2004-07-25 11:23:43 +00:00
Danny Smith cc054d9d26 * include/_mingw.h: Undefine __attribute__.
(__MINGW_ATTR_NORETURN): New define.
	(__MINGW_ATTR_CONST): New define.
	(__MINGW_ATTR_MALLOC): New define.
	(__MINGW_ATTR_PURE): New define.
	(_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
	expansions.
2004-07-21 10:59:54 +00:00
Danny Smith f451556720 * include/time.h (__time64_t): Add missing ';'. 2004-07-19 22:51:38 +00:00
Danny Smith cd341e5613 * include/math.h: Guard ISO C99 additions with __cplusplus
not __GLIBCPP__.
2004-07-17 05:15:26 +00:00
Christopher Faylor 241422d046 * Makefile.in (CC): Strip inappropriate include file settings from any
passed-in CC.
2004-07-17 04:31:14 +00:00
Danny Smith 75ccca2f65 2004-07-15 "dgun" <dgun@umpire.com>
* include/complex.h (conj): Correct typo in prototype.
2004-07-15 20:20:22 +00:00
Danny Smith fcedcf9488 Whitespace change to ChangeLog 2004-07-15 11:56:01 +00:00
Danny Smith 4bf283e0e2 * include/math.h: Add pragma GCC system_header. 2004-07-15 11:39:15 +00:00
Danny Smith e651690002 * mingwex/complex/cargs.c: New file.
* mingwex/Makefile.in: Really add carg.o to libmingwex.a.
2004-07-15 11:35:13 +00:00
Corinna Vinschen a062ed9840 * Makefile.in (INCLUDES): Temporarily revert previous change.
* mingwex/Makefile,in (INCLUDES): Ditto.
	* profile/Makefile,in (INCLUDES): Ditto.
	* mingwex/Makefile,in: Drop carg.o dependency.
2004-07-15 10:40:37 +00:00
Christopher Faylor a671e18c42 * mingwex/fwide.c: Include <stdio.h> to resolve FILE usage. 2004-07-15 02:43:19 +00:00
Danny Smith 8e47f4464b * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
system dir.
	* mingwex/Makefile,in (INCLUDES): Ditto.
	* profile/Makefile,in (INCLUDES): Ditto.

	* mingwex/Makefile,in: Add carg.o to libmingwex.a.
2004-07-14 23:44:50 +00:00
Earnie Boyd 650bcf9d74 * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
for C modules.
	* mingwex/Makefile.in: Ditto.
	* profile/Makefile.in: Ditto.
2004-07-13 13:01:28 +00:00
Earnie Boyd bb8c8bd47a * Makefile.in: Move use of --nostdinc++ as GCC3.4 refuses to use it
for C modules.
2004-07-13 11:23:08 +00:00
Earnie Boyd ef72590eb1 * include/limits.h: Change to new file header preamble. 2004-07-13 11:11:36 +00:00
Earnie Boyd aa726b09ae * include/_mingw.h: Increment minor version for 3.4 release.
* Makefile.in: Ditto.
2004-07-13 11:04:25 +00:00
Danny Smith e4cb4efab3 * mingwex/math/cephes_emath.h (__etens): Remove declaration. 2004-07-12 07:33:17 +00:00
Danny Smith 1b0314715b * include/unistd.h (ftruncate): Add inline definition.
* mingwex/ftruncate.c: New file.
	* mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
2004-07-11 10:01:41 +00:00
Danny Smith 8261a23149 * include/time.h: Do not include sys/types.h. 2004-07-10 04:06:09 +00:00
Danny Smith 64b9893f0d 2 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
(MATH_OBJS): Remove pow,o.
	* include/math.h (pow): Declare with _CRTIMP.
	Add comment on how to avoid excess precision problems.
2004-07-02 10:01:51 +00:00
Danny Smith 81223d017f 2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
Danny Smith  <dannysmith@users.sourceforge.net>

	* include/stdio.h (fopen64): Add inline function.
	(fseeko64): Add prototype.
	(ftello64): Add inline function.
	* include/io.h (lseek64): Add inline function.
	* include/sys/types (off64_t): Add typedef.
	(fpos64_t): Add typedef.
        * mingwex/fopen64.c: New file.
        * mingwex/fseeko64.c: New file.
        * mingwex/ftello64.c: New file.
        * mingwex/lseek64.c: New file.
	* mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
	fseeko.64.c, ftello64.c, lseek64.c.
	(STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.

2004-06-30  Danny Smith  <dannysmith@users.sourceforge.net>

	* include/stdio.h (__mingw_fseeko64): Add prototype.
	* mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
	(__mingw_fwrite): Handle huge files.
2004-06-30 04:51:18 +00:00
Luke Dunstan cdb055db02 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
* include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
2004-06-01 14:09:20 +00:00
Earnie Boyd b2e2d5d98c * strncasecmp.c: Reword copyright and disclaimer. Move Contributors
section to CONTRIBUTORS file.  Remove RCS tags.
2004-04-22 16:34:31 +00:00
Earnie Boyd 956235ae2b CORRECTION:
* Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS.
2004-04-22 16:27:00 +00:00
Earnie Boyd 00a85098c4 * DISCLAIMER: Add words about "free to use".
* README: Modify "Win32 runtime" to "Microsoft C Runtime".
	* Makefile.in (SRCDIST_FILES): Add DISCLAIMER and README.
	(inst_docdir): New variable.
	(INSTDOCS): Ditto.
	(FLAGS_TO_PASS): Include inst_docdir.
	(install-dirs): Add inst_docdir.
	(install): Add loop for INSTDOCS.
2004-04-22 16:16:25 +00:00
Danny Smith 1a4b7623f4 * mingwex/math/lround.c: Rewrite.
* mingwex/math/lroundf.c: Rewrite.
	* mingwex/math/lroundl.c: Rewrite.
	* mingwex/math/llround.c: Rewrite.
	* mingwex/math/llroundf.c: Rewrite.
	* mingwex/math/llroundl.c: Rewrite.
2004-04-22 04:38:24 +00:00
Earnie Boyd 4d6c899474 * CONTRIBUTORS: New file.
* DISCLAIMER: Ditto.
	* CRT_noglob.c: Reword copyright and disclaimer.  Move Contributors
	section CONTRIBUTORS file.  Remove RCS tags.
	* CRTFmode.c: Ditto.
	* CRTglob.c: Ditto.
	* CRTinit.c: Ditto.
	* crt1.c: Ditto.
	* crtdll.dev: Ditto.
	* dllcrt1.c: Ditto.
	* dllmain.c: Ditto.
	* gccmain.c: Ditto.
	* init.c: Ditto.
	* isascii.c: Ditto.
	* iscsym.c: Ditto.
	* iscsymf.c: Ditto.
	* jamfile: Ditto.
	* main.c: Ditto.
	* msvcrt.def.in: Ditto.
	* strcasecmp.c: Ditto.
	* toascii.c: Ditto.
	* wcscmpi.c: Ditto.
	* include/assert.h: Ditto.
	* include/conio.h: Ditto.
	* include/ctype.h: Ditto.
	* include/direct.h: Ditto.
	* include/dirent.h: Ditto.
	* include/dos.h: Ditto.
	* include/errno.h: Ditto.
	* include/excpt.h: Ditto.
	* include/fcntl.h: Ditto.
	* include/float.h: Ditto.
	* include/io.h: Ditto.
	* include/locale.h: Ditto.
	* include/malloc.h: Ditto.
	* include/math.h: Ditto.
	* include/process.h: Ditto.
	* include/setjmp.h: Ditto.
	* include/share.h: Ditto.
	* include/signal.h: Ditto.
	* include/stdio.h: Ditto.
	* include/stdlib.h: Ditto.
	* include/string.h: Ditto.
	* include/tchar.h: Ditto.
	* include/time.h: Ditto.
	* include/wchar.h: Ditto.
	* include/sys/locking.h: Ditto.
	* include/sys/param.h: Ditto.
	* include/sys/stat.h: Ditto.
	* include/sys/timeb.h: Ditto.
	* include/sys/types.h: Ditto.
	* include/sys/utime.h: Ditto.
	* mingwex/dirent.c: Ditto.
2004-04-20 22:49:32 +00:00
Earnie Boyd da3c66eb9a * include/_mingw.h: Revert to primary release 3 and increment minor
release to 3.
	* Makefile.in (VERSION): Ditto.
2004-04-19 17:01:27 +00:00
Earnie Boyd 81e7a69f5a * include/_mingw.h: Revert to primary release 3 and increment minor
release to 3.
2004-04-19 16:58:40 +00:00
Danny Smith 4fc406c935 * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to
_fmode if not __MSVCRT__.
2004-04-01 10:04:04 +00:00
Danny Smith 4289ebdbfb 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
* include/io.h: (_findfirst): Correct prototype.

2004-03-30  Hans Leidekker  <hans@it.vu.nl>

	* include/io.h: (_findnext, _findclose): Correct prototype.
2004-03-30 21:49:12 +00:00
Luke Dunstan da2cf24aba 2004-03-28 Hans Leidekker <hans@it.vu.nl>
* include/math.h (FP_*): Add defines.
2004-03-29 13:57:04 +00:00
Danny Smith 521a0aa9a8 * mingwex/math/round.c: Rewrite.
* mingwex/math/roundf.c: Rewrite.
	* mingwex/math/roundl.c: Rewrite.
2004-03-29 08:22:20 +00:00
Danny Smith ff9f5c8330 Add prototypes for new msvcrt.dll versions
* include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600.

	* include/time.h (__time64_t): Add typedef.
	(_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
	(_ctime64): Likewise.
	(_wctime64): Likewise.
	(_gmtime64): Likewise.
	(_localtime64): Likewise.
	(wcsftime): Move into _WTIME_DEFINED block.
	Regroup non-ANSI prototypes.

	* include/io.h: Include <stdint.h>.
	(__finddata64_t): Add struct definition.
	(__wfinddata64_t): Likewise.
	(_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
	(_findnext64): Likewise.
	(_wfindfirst64): Likewise.
	(_wfindnext64): Likewise.

	* include/sys/timeb.h (__timeb64): Add struct definition.
	(_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.

	* include/sys/utime.h (__utimbuf64): Add struct definition.
	(_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
	(_futime64): Likewise.
	(_wutime64): Likewise.

	* include/sys/stat.h (__stat64):  Add struct definition.
	(_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
	(_stat64): Likewise.
	(_wstat64): Likwise.

	* include/sys/types.h (__time64_t):  Add typedef.

	* include/wchar.h (__wfinddata64_t): Add structure definition.
	(__stat64): Likewise.
	(_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601.
	(_wfindfirst64): Likewise.
	(_wfindnext64): Likewise.
	(_wutime64): Likewise.
	(_wstat64): Likwise.

	* include/malloc.h (_aligned_free): Add prototype for
	__MSVCRT_VERSION__ >= 0x0700.
	(_aligned_malloc): Likewise.
	(_aligned_offset_malloc): Likewise.
	(_aligned_offset_realloc): Likewise.
	(_aligned_realloc): Likewise.

	* include/string.h (_wcserror): Add prototype for
	__MSVCRT_VERSION__ >= 0x0700.
	(__wcserror): Likewise.

	* include/math.h (_set_SSE2_enable): Add prototype for
	__MSVCRT_VERSION__ >= 0x0701.
2004-03-26 11:30:24 +00:00
Danny Smith 4c42aaf277 * include/stdio.h (_fsopen): Add prototype.
* include/tchar.h (_tfsopen): Add defines.
	Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
2004-03-25 20:30:19 +00:00
Danny Smith 1e4942ab58 * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10),
msvcr70.dll, and msvcr71.dll.
	* Makefile.in (msvcr*.def): Define preprocessor  __msvcr*__ constant
	using basename of output def file.
2004-03-19 09:26:13 +00:00
Danny Smith 7ae33d44c0 * include/malloc.h: Remove __STRICT_ANSI__ guard. 2004-03-13 01:03:31 +00:00
Christopher Faylor 07411d4c2e * include/process.h: Remove the #endif associated with removal of
__STRICT_ANSI__ guard from non-ANSI header.
2004-03-12 16:39:37 +00:00
Danny Smith f8a024a81b * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.
* include/direct.h:  Ditto.
	* include/dirent.h:  Ditto.
	* include/dos.h:  Ditto.
	* include/excpt.h:  Ditto.
	* inlude/fcntl,h
	* include/io.h:  Ditto.
	* inlude/mem.h:  Ditto.
	* include/memory.h:  Ditto.
	* include/process.h:  Ditto.
	* inlude/search.h:  Ditto.
	* include/share.h:  Ditto.
	* include/unistd.h:  Ditto.
	* include/sys/fcntl.h:  Ditto.
	* include/file.h:  Ditto.
	* include/sys/locking.h:  Ditto.
	* include/sys/param.h:  Ditto.
	* include/sys/stat,h
	* include/sys/time.h:  Ditto.
	* include/sys/timeb.h:  Ditto.
	* include/sys/types.h:  Ditto.
	* include/sys/unistd.h:  Ditto.
	* include/sys/utime.h:  Ditto.
2004-03-11 09:41:08 +00:00
Danny Smith 53a207edfa * include/_mingw.h (__UNUSED_PARAM): Define macro.
* include/wchar.h (fwide): Use it.
	(mbsinit): Ditto.
2004-02-21 07:21:36 +00:00
Danny Smith b5ce07f714 * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
NetBSD getopt_long.c.
2004-02-05 03:17:46 +00:00
Danny Smith d11508dd22 * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error
codes and handling of special chars.
2004-02-05 03:12:15 +00:00
Danny Smith a37903bc43 * include/stdio.h (feof): Add inlined definition.
(ferror): Ditto.
2004-02-02 09:18:40 +00:00
Danny Smith f6565cd1a6 * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")
directly, rather than via scabnl.
2004-02-01 02:52:21 +00:00
Danny Smith 416bc45060 * mingwex/math/powl.c (powl): Return infinity if
extended precision multiplication of x by log2(y)
	overflows.
2004-02-01 00:10:17 +00:00
Danny Smith d2c7ccfc5f * mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
(__enan_NI16): Fix another one.
	(__enan_NBITS): Tidy.
2004-01-31 08:44:01 +00:00
Danny Smith ff853e0108 * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
types. (Thanks to John Maddock for report.)
2004-01-17 07:41:54 +00:00
Danny Smith 461d06f79d 2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
* include/tchar.h (_puttchar): Define.
2004-01-14 07:53:43 +00:00
Danny Smith f082663050 * include/stdio.h:(_fileno): Define macro version after both
fileno and _fileno functions declared.

	* include/stdio.h (_rmtmp, rmtmp): Add prototypes.
	* moldnames.def.in (rmtmp) Add stub.
2003-12-13 21:22:34 +00:00
Danny Smith 714b947a1b 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>
* include/signal.h (SIG_SGE, SIG_ACK): Add defines.
2003-11-27 08:23:43 +00:00
Danny Smith b19cda7bab * include/math.h: Guard ISO C99 additions with __cplusplus
not __GLIBCPP__.
2003-10-27 23:51:37 +00:00
Danny Smith 79be64037c * include/_mingw.h: Define __attribute__((x)) to nothing
if not __GNUC__.
2003-10-21 09:50:47 +00:00
Danny Smith 3c7a7a5fca Add ISO C99 complex support for doubles.
* include/complex.h: New file.
	* mingwex/complex: New directory.
	* mingwex/complex/cabs.c: New file.
	* mingwex/complex/cacos.c: New file.
	* mingwex/complex/cacosh.c: New file.
	* mingwex/complex/casin.c: New file.
	* mingwex/complex/casinh.c: New file.
	* mingwex/complex/catan.c: New file.
	* mingwex/complex/catanh.c: New file.
	* mingwex/complex/ccos.c: New file.
	* mingwex/complex/ccosh.c: New file.
	* mingwex/complex/cexp.c: New file.
	* mingwex/complex/cimag.c: New file.
	* mingwex/complex/clog.c: New file.
	* mingwex/complex/cpow.c: New file.
	* mingwex/complex/cproj.c: New file.
	* mingwex/complex/creal.c: New file.
	* mingwex/complex/csin.c: New file.
	* mingwex/complex/csinh.c: New file.
	* mingwex/complex/csqrt.c: New file.
	* mingwex/complex/ctan.c: New file.
	* mingwex/complex/ctanh.c: New file.
	* mingwex/Makefile.in (COMPLEX_DISTFILES): New list of
	files.
	(dist): Use it.
	(COMPLEX_OBJS): New list of objects.
	(LIB_OBJS): Include it in the library.
2003-10-21 09:43:22 +00:00
Danny Smith 6de52354eb * include/math.h (cabs): Remove non-ISO prototype. 2003-10-21 09:14:45 +00:00
Danny Smith 359e09e7fd * mingwex/math/cephes_mconf.h (NAN, NANF, NANL):
Use GCC __builtin's if available.
	(INFINITY, INFINITYF, INFINITYL): Likewise.
2003-10-21 09:10:51 +00:00
Danny Smith 672126d4f1 * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
beyond approximation limit.
	* mingwex/math/sf_erf.c (erff): Likewise.
2003-10-21 09:05:24 +00:00
Danny Smith f25e45973d * include/stdio.h (_filbuf): Add prototype.
(_flsbuf): Add prototype.
	(getc): Add inline version.
	(putc): Likewise.
	(getchar): Likewise.
	(putchar): Likewise.
2003-10-17 21:43:31 +00:00
Earnie Boyd f3d0380417 * include/_mingw.h: Increment version to 3.2.
* Makefile.in: Ditto.
2003-10-10 18:25:10 +00:00
Earnie Boyd 79b931ee81 * include/sys/types.h: Revert last change. 2003-10-10 15:09:55 +00:00
Earnie Boyd 92fda2d938 * include/sys/types.h (ssize_t): Correct the definition. 2003-10-10 11:49:36 +00:00
Danny Smith e1ce6d5f2a * include/stdio.h (_filbuf): Add prototype.
(_flsbuf): Add prototype.
	(getc): Add inline version.
	(putc): Likewise.
	(getchar): Likewise.
	(putchar): Likewise.
2003-10-03 10:16:53 +00:00
Danny Smith c536f54ada * mingwex/dirent.c (_treaddir): Reset errno to 0 if end
of directory.
2003-10-02 21:29:51 +00:00
Danny Smith 3c3b1816d8 * include/stdlib.h: Guard non-ISO functions with
!__STRICT_ANSI__, throughout.
2003-09-29 09:16:23 +00:00
Danny Smith fd4b566a16 * include/io.h (_fileno): Remove prototype.
(fileno): Likewise.
	(FILENAME_MAX): Define, if needed.
	Don't include <stdio.h>.
	* include/stdio.h (FILENAME_MAX): Protect against
	prior definition.
	(_fileno): Define macro implementation.
	(fileno): Likewise.
2003-09-24 08:26:23 +00:00
Danny Smith f610c4f993 * include/inttypes.h: Include _mingw.h. 2003-09-24 01:06:09 +00:00
Danny Smith 8852e9c5f1 * include/_mingw.h (__CRT_INLINE): Define.
* include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
	throughout
	* include/inttypes.h: Likewise.
	* include/math.h: Likewise.
	* include/stdio.h: Likewise.
	* include/stdlib.h: Likewise.
	* include/string.h: Likewise.
	* include/wchar.h: Likewise.
	* include/wctype.h: Likewise.
2003-09-24 00:41:01 +00:00
Danny Smith d92d731fa5 2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
* mingwex/dirent.c (_topendir): Allocate enough memory for
	DIR struct in UNICODE case too.
2003-09-22 21:32:52 +00:00
Earnie Boyd 7fe8e90299 * include/_mingw.h: Increment version to 3.2.
* Makefile.in: Ditto.
2003-09-15 15:21:53 +00:00
Earnie Boyd cdff6e0e16 * config.guess, config.sub: Update with versions from ftp.gnu.org. 2003-07-03 15:15:56 +00:00
Danny Smith 235f653a53 * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
* mingwex/math/truncf.c (truncf): Likewise.
	* mingwex/math/truncl.c (truncl): Likewise.
	* mingwex/math/modff.c (modff): Likewise.
	* mingwex/math/modfl.c (modfl): Likewise.
2003-07-03 11:24:18 +00:00
Danny Smith 78b8a13965 * include/search.h: New file.
* include/stdlib.h: Add comment about qsort, bsearch in
	search.h.
	* test_headers.c: Include search.h.
	* moldname.def.in (lfind, lsearch): Add.
2003-07-03 07:50:53 +00:00
Danny Smith e298efab0a * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
_execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
	execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
2003-07-02 22:09:25 +00:00
Earnie Boyd acd2330e32 * include/_mingw.h (small, hyper): Change to __small and __hyper to
avoid user space name conflicts.
2003-07-01 23:34:36 +00:00
Earnie Boyd e21a622054 * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
Rename to Small (case difference).
2003-07-01 13:55:47 +00:00
Earnie Boyd fecdb8380e * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
Note: Also added to w32api/include/basetyps.h.
2003-07-01 12:57:53 +00:00
Earnie Boyd e7f4ab4d51 Oops, Forgot to submit the change log 2003-06-19 02:06:04 +00:00
Earnie Boyd 2302957c53 * include/dirent.h (dirent): Make d_name and array instead of a pointer.
* mingwex/dirent.c: Modifications througout to fill d_name array.
        * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
        libmsvcr71, including debug versions.
        (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
2003-06-18 13:54:47 +00:00
Danny Smith 0d7e4ab2ba * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
__pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
	Mark as DATA.
2003-06-17 23:08:26 +00:00
Danny Smith ea6ce1d0de 2003-05-30 Sascha Sommer <saschasommer@freenet.de>
* include/sys/types.h (_ssize_t, ssize_t):  Add typedefs.
2003-05-30 02:42:07 +00:00
Danny Smith 8ed969331b * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
but still protect inline definition with __STRICT_ANSI__
2003-05-15 22:28:57 +00:00
Danny Smith 90e1332c38 Remove isascii.o, add isascii.c to repository 2003-05-15 22:21:00 +00:00
Danny Smith 620c28a975 * string_old.c: Remove, splitting into...
* strcasecmp.c: New file.
	* strncasecmp.c: New file.
	* wscmpi.c : New file.
	* ctype_old.c: Remove, splitting into...
	* isascii.c: New file.
	* iscsym.c: New file.
	* iscsymf.c: New file.
	* toascii.c: New file.
	* Makefile.in (MOLD_OBJS): Adjust.
	(SRCDIST_FILES): Adjust.
2003-05-15 00:21:12 +00:00
Danny Smith 3927f0a891 * include/math.h (fabs) : Remove inline definition.
(fabsf): Likewise.
	(fabsl): Likewise.
2003-05-14 01:03:20 +00:00
Earnie Boyd 85051ee6c1 * include/_mingw.h: Change version to 3.0
* Makefile.in: Ditto.
2003-05-07 03:12:17 +00:00
Earnie Boyd 4c6bc0ed42 Uh hum, just not my day 2003-05-06 16:04:25 +00:00
Earnie Boyd 60e9842b39 * configure: Regenerate 2003-05-06 14:48:34 +00:00
Earnie Boyd 3a1f652308 * configure.in (W32API_INCLUDE): Need the -I switch in the value.
* mingwex/configure.in (W32API_INCLUDE): Ditto.
	* profile/configure.in (W32API_INCLUDE): Ditto.
2003-05-06 14:46:06 +00:00
Earnie Boyd 98a430bcbe Oops. Add ending quotes to CFLAGS value. 2003-05-06 13:35:20 +00:00
Earnie Boyd 42fbaad1e8 * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
of multiply defined symbols if the symbols is defined locally.  E.G.:
	A local definition of malloc causes this problem.
	* configure: Regenerate.
	* profile/Makefile.in (W32API_INCLUDE): New variable.
	(ALL_CFLAGS): Use W32API_INCLUDE value.
	(ALL_CXXFLAGS): Ditto.
	(gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
	Thanks to Jeff Bonggren <jbon@users.sf.net>.
	* profile/configure.in (W32API_INCLUDE): Set default value.
	* profile/configure: Regenerate.
	* mingwex/Makefile.in (W32API_INCLUDE): New variable.
	(ALL_CFLAGS): Use W32API-INCLUDE value.
	(ALL_CXXFLAGS): Ditto.
	* mingwex/configure.in (W32API_INCLUDE): Set default value.
	* mingwex/configure: Regenerate.
2003-05-06 13:26:44 +00:00
Earnie Boyd fe2f86961e * Makefile.in (W32API_INCLUDE): New variable.
(ALL_CFLAGS): Include W32API_INCLUDE value.
	(ALL_CXXFLAGS): Ditto.
	* configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
	(W32API_INCLUDE): Set default value.
	* configure: Regenerate.
2003-05-05 16:04:11 +00:00
Earnie Boyd 000cfc2eb2 * configure.in (LIBM_A): Define for cygwin target.
* configure (LIBM_A): Ditto.
2003-04-11 12:35:51 +00:00
Danny Smith 29d0fe3f74 * include/time.h (strftime): Remove duplicate declaration. 2003-04-07 01:31:37 +00:00
Danny Smith ce5435df0b * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP. 2003-03-31 21:11:13 +00:00
Danny Smith 48051a71ce Get rid of some warnings
* mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
	* mingwex/strtoimax.c (strtoimax): Likewise.
	* mingwex/wcstoimax.c (wcstoimax): Likewise.
	* mingwex/wtoll.c (wtoll): Remove unnecessary ';'
	* mingwex/fesentenv.c: Include float.h.
	* mingwex/math/powl.c: Eliminate type punning/strict aliasing 
	warning.
	* mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
	constants.
	* mingwex/math/tgammal.c: Likewise.
2003-03-17 01:03:43 +00:00
Danny Smith f99ee1608c * include/utime.h: New file, forwarding to sys/utime.h. 2003-03-16 22:23:58 +00:00
Danny Smith 5652f74ed2 * include/sys/param.h (MAXPATHLEN): Define. 2003-03-16 22:18:05 +00:00
Danny Smith e685ccffdf * include/tchar.h: Ansi-fy a comment. 2003-03-16 22:15:19 +00:00
Danny Smith dcbe33d83a * profile/profile.h (mcount): Use __builtin_return_address
rather than __asm statements.
	* profile/Makefile.in: Remove special rule for mcount.o
	Specify dependencies for mcount.o profil.o gmon.o.
2003-03-16 22:12:01 +00:00
Danny Smith 970f752c8c * include/stdlib.h (qsort): Remove const from first parm.
Thanks to: Tien-Ren Chen  <trchen@sourceforge.users.net>
2003-03-11 03:00:50 +00:00
Danny Smith 2b02bd3c3f 2003-03-03 Christopher Faylor <cgf@redhat.com>
* mingwex/getopt.c: Refresh from NetBSD sources.
2003-03-03 10:27:57 +00:00
Danny Smith f5eb407ed1 * mingwex/getopt.c: New file, copied from cygwin srcs.
* include/getopt.h: New file, copied from cygwin srcs.
	* include/unistd.h: Include getopt.h.
	* mingwex/Makefile.in ((DISTFILES): Add getopt.c.
	(POSIX_OBJS): Add getopt.o.
2003-03-03 01:19:42 +00:00
Danny Smith 4aa3feb899 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
* include/stdio.h (vscanf): Add prototype.
	(vfscanf): Ditto.
	(vsscanf): Ditto.
	(vwscanf): Ditto.
	(vfwscanf): Ditto.
	(vswscanf): Ditto.
	* include/wchar.h (vwscanf): Add prototype.
	(vfwscanf): Ditto.
	(vswscanf): Ditto.
	* mingwex/snprintf.c: Move to mingwex/stdio.
 	* mingwex/vsnprintf.c: Ditto.
	* mingwex/snwprintf.c: Ditto.
	* mingwex/vsnwprintf.c: Ditto.
	* mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
	(STDIO_DISTFILES): Add.
	(DISTFILES): Adjust.
	(STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
	(LIB_OBJS): Adjust.
	(dist): Adjust.

2003-03-02  Aaron W  LaFramboise   <AWLaFramboise@aol.com>

	* mingwex/stdio: New directory
	* mingwex/stdio/vfscanf.c: New file.
	* mingwex/stdio/vfwscanf.c:  New file.
	* mingwex/stdio/vscanf.c:  New file.
	* mingwex/stdio/vsscanf.c:  New file.
	* mingwex/stdio/vswscanf.c:  New file.
	* mingwex/stdio/vwscanf.c:  New file.
2003-03-02 07:00:48 +00:00
Earnie Boyd 5ffa5aaa5c * Makefile.in (libmsvcrt20.a): Remove target and dependencies.
(libmsvcrt40.a): Ditto.
2003-02-25 13:07:46 +00:00
Earnie Boyd ab664f2d53 Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
this patch.
	* Makefile.in (libmsvcrtd.a): Add target library.
	(libmoldnamed.a): Ditto.
	(msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
	template to create.
	($(srcdir)): Remove explicit reference for depencies of object targets.
	* moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
	msvcrt20.def, msvcrt40.def: Remove.
	* msvcrt.def.in: New file (Copy of previous msvcrt.def).
2003-02-21 21:12:29 +00:00
Corinna Vinschen 3f3d479490 * Makefile.in: Make sure libmingwex.a from current build tree is used. 2003-02-20 10:12:15 +00:00
Christopher Faylor 8df75c3736 * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to ensure
-mno-cygwin where appropriate.  Filter out -O2.
2003-02-14 19:25:12 +00:00
Danny Smith 6a25a6219c Fix typo in last ChangeLog entry. 2003-02-14 00:45:17 +00:00
Danny Smith 4d658cfcd2 * profile/Makefile.in (mcount,o): Use -O1 optimization
switch to compile.
2003-02-14 00:42:35 +00:00
Danny Smith de8eec5609 * include/math.h: Remove _CRTIMP from pow() prototype,
unless __NO_ISOCEXT.
2003-02-10 23:56:04 +00:00
Danny Smith eff24ab9c5 * mingwex/math/cephes_emath.h: Don't redefine INFINITY. 2003-02-10 22:38:36 +00:00
Danny Smith 14e54d7c97 * include/_mingw.h (_CRTIMP): Define for __GNUC__ if
__declspec(dllimport)  supported.
	(__cdecl): Define if not already defined.
	(__stdcall): Likewise.
	* include/dirent.h: Qualify fuctions with __cdecl.
	* include/fenv.h: Likewise.
	* include/inttypes.h: Likewise.
	* include/assert.h: Qualify fuctions with __cdecl. Qualify
	CRT dll imports with _CRTIMP.
	* include/conio.h: Likewise.
	* include/ctype.h: Likewise.
	* include/direct.h: Likewise.
	* include/dos.h: Likewise.
	* include/errno.h: Likewise.
	* include/float.h: Likewise.
	* include/io.h: Likewise.
	* include/locale.h: Likewise.
	* include/malloc.h: Likewise.
	* include/math.h: Likewise.
	* include/mbctype.h: Likewise.
	* include/mbstring.h: Likewise.
	* include/process.h: Likewise.
	* include/setjmp.h: Likewise.
	* include/signal.h: Likewise.
	* include/stdio.h: Likewise.
	* include/stdlib.h: Likewise.
	* include/string.h: Likewise.
	* include/time.h: Likewise.
	* include/wchar.h: Likewise.
	* include/wctype.h: Likewise.
	* include/sys/stat.h: Likewise.
	* include/sys/timeb.h: Likewise.
	* include/sys/utime.h: Likewise.

	* include/ctype.h: Guard ctype inlines with __NO_INLINE__.
	* include/wctype.h: Guard wctype inlines with __NO_INLINE__.

	* include/stdio.h (__VALIST): Guard against prior definition.
2003-02-10 21:13:34 +00:00
Earnie Boyd 994d26a476 * include/_mingw.h: Change version to 3.0
* Makefile.in: Ditto.
2003-02-08 14:58:31 +00:00
Earnie Boyd 9d55ae91b8 * include/stdlib.h: Make words after #endif a comment. 2003-02-08 14:30:29 +00:00
Danny Smith 500ed83f45 * include/locale.h: Include stddef.h for definition of NULL. 2003-02-07 02:13:55 +00:00
Danny Smith 232cca6b0c * include/math.h (tgamma): Correct typo in comment. 2003-01-26 07:04:04 +00:00
Danny Smith 989c97fe14 * mingwex/mingw-fseek.c (INLINE): Remove define.
(__mingw_is_win9x): Remove static inline function.
	(_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
2003-01-26 06:38:43 +00:00
Danny Smith a545b16de6 * mingwex/math/llround.c: Correct function name and
change return value to long long.
2003-01-11 10:52:20 +00:00
Danny Smith 68dea33819 * include/ctype.h (__isascii): Don't cast arg to unsigned.
(iswascii): Likewise.  Correct mask.
	* include/wctype.h (iswascii): Don't cast arg to unsigned.
	Correct mask
2003-01-07 21:05:13 +00:00
Danny Smith 7b061fd844 * include/stdlib.h (_osver, _winver, _winmajor,
_winminor): Declare as direct imports from dll if
	__DECLSPEC_SUPPORTED.
2003-01-03 05:02:18 +00:00
Danny Smith 353549d744 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
* pseudo-reloc.c (do_pseudo_reloc): Make static.
	* pseudo-reloc-list.c: New file.
	* crt1.c (_pei386_runtime_relocator): Declare.
	(__mingw_CRTStartup): Call it.
	* dllcrt1.c (_pei386_runtime_relocator): Declare.
	(DllMainCRTStartup): Call it.
	* Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
	libmingw32.a.

2003-01-01  Egor Duda  <deo@logos-m.ru>

	* pseudo-reloc.c: New file.
2003-01-01 10:00:39 +00:00
Earnie Boyd 992b4c1edc * include/_mingw.h: Increment version to 2.4.
Makefile.in: Ditto.
2002-12-20 15:40:10 +00:00
Earnie Boyd 51e1a2f296 * include/malloc.h (_alloca): Add definition.
(alloca): Ditto.
2002-12-12 21:00:57 +00:00
Danny Smith 009bcda6f9 * mingwex/math/s_erf.c: New file.
* mingwex/math/sf_erf.c: New file.
	* mingwex/Makefile.in (MATH_DISTFILES): Add new files.
	(MATH_OBJS): Add new objects.
	* include/math.h (erf[f]): Add prototypes.
	(erfc[f]): Add prototypes.
2002-12-08 01:46:42 +00:00
Danny Smith 4c49b9a2a5 * include/math.h: Add traditional/XOPEN math constants.
Add missing ChangeLog entry for 2002-11-27
2002-12-07 08:58:49 +00:00
Danny Smith dc8597f966 * mingwex/math/lgamma.c: New file.
* mingwex/math/lgammaf.c: New file.
	* mingwex/math/lgammal.c: New file.
	* mingwex/math/tgamma.c: New file.
	* mingwex/math/tgammaf.c: New file.
	* mingwex/math/tgammal.c: New file.
	* mingwex/math/cephes_mconf (polevlf): Add float version.
	(p1evlf): Likewise.
	Define _CEPHES_USE_ERRNO.
	* mingwex/Makefile.in (MATH_DISTFILES): Add new files.
	(MATH_OBJS): Add new objects.
	* include/math.h (lgamma[fl]): Add prototypes.
	(tgamma[fl]): Add prototypes.
2002-11-27 03:41:25 +00:00
Danny Smith 5362be5926 Add strtold and wcstold to libmingwex.a
* mingwex/strtold.c: New file.
	* mingwex/wcstold.c: New file.
	* mingwex/ldtoa.c: New file.
	* mingwex/math/cephes_emath.h: New file.
	* mingwex/math/cephes_emath.c: New file.
	* mingwex/Makefile.in (DISTFILES): Add new files.
	(MATH_DISTFILES): Ditto.
	(STDLIB_OBJS): New. Define as strtold.c wcstold.c.
	(MATH_OBJS): Add cephes_emath.o.
	(LIB_OBJS): Add $(STDLIB_OBJS).
	* include/stdlib.h (strtold, wcstold): Add prototypes.
	* include/wchar.h (wcstold): Add prototype.

Add missing ChangeLog entry for 2002-11-09.
2002-11-26 00:11:06 +00:00
Danny Smith 9da547ff26 * include/math.h (sqrt): Remove inline definition.
(sqrtf): Replace inline definition with prototype.
	(sqrtl): Likewise.
	* mingwex/math/sqrtf.c (sqrtf): Set domain error if
	argument less than zero.
	* mingwex/math/sqrtf.c (sqrtl): Likewise.

	Correct typo in 2002-10-30 ChangeLog entry.
2002-11-09 10:44:02 +00:00
Danny Smith 4c8eba2cf3 2002-10-30 Guido Serassio <serassio@libero.it>
* include/stdio.h (_getnaxstdio): Add prototype.
         (_setmaxstdio): Likewise.
2002-10-30 01:07:54 +00:00
Danny Smith aab9ff2a5e 2002-10-19 Kang Li <rubylith@users.sourceforge.net>
* include/fcntl.h (O_SEQUENTIAL): Correct typo.
2002-10-20 04:35:58 +00:00
Danny Smith 1c00ad29b8 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>
* crt1.c: Define new macro __IN_MINGW_RUNTIME before including
	stdlib.h. Comment on reason.
	Define WIN32_MEAN_AND_LEAN before including windows.h
	* include/stdlib.h (_fmode): Protect declaration as dllimported
	variable with __IN_MINGW_RUNTIME.

2002-10-19  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

	* crt1.c: Include stdlib.h.
2002-10-20 04:30:28 +00:00
Danny Smith bea966c0d9 * Makefile.in (CRT0S): Add txtmode.o binmode.o.
(MINGW_OBJS): Add txtmode.o.
	(SRCDIST_FILES): Add txtmode.c binmode.c.
	crt1.c: Don't include fcntrl.h, stdlib.h.
	(_fmode): Declare, without dllimport attribute.
	(__p__fmode): Declare access function for dll's _fmode.
	(_mingw32_init_fmode): Sync dll _fmode with staticly linked
	_fmode for app.
	* txtmode.c: New file.
	* binmode.c: New file.
	* samples/fmode/test2.c: New file.
	* samples/fmode/jamfile: Add test2.exe target.
2002-10-19 20:26:26 +00:00
Danny Smith 798a4740d7 * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let
macros work with C89.
	(INTMAX_C, UINTMAX_C): Likewise.
2002-10-11 02:21:56 +00:00
Danny Smith f98e630084 * include/string.h (strcasecmp): Make extern __inline__.
(strncasecmp): Likewise.
	(wcscmpi): Likewise.
2002-10-11 01:41:31 +00:00
Danny Smith 32fef334cd 2002-10-08 Heiko Gerdau <hg@technosis.de>
* include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd.
	_tmkdir, _trmdir, _tstat): Add ASCII and UNICODE
	mappings.
2002-10-08 20:28:14 +00:00
Danny Smith 66451d9590 * mingwex/math/powil.c: Rename powil to __powil.
* mingwex/math/powl.c: Adjust declaration and call
	to __powil. Remove comment on powil.
	* mingwex/math/powi.c: New file.
	* mingwex/math/powif.c: New file.
	* mingwex/math/pow.c: New file.
	* mingwex/math/cephes_mconf.h. Add double and float
	versions of constants.
	(polevl): Add double precision function.
	(p1evl): Likewise.
	* mingwex/Makefile.in (MATH_DISTFILES): Add pow.c,
	powi.c, powif.c.
	(MATH_OBJS): Add pow.o,	powi.o, powif.o.
2002-10-06 23:26:43 +00:00
Danny Smith 3073f3f29d * include/cytpe.h (_imp____mbcur_max): Add missing ';'.
(_imp____mbcur_max_dll): Likewise.
2002-10-03 00:51:25 +00:00
Danny Smith 7c3de623b6 * include/fcntl.h (_fmode): Remove declarations and
compatibility defines.
	(_setmode, setmode): Remove prototypes.
	* include/stdlib (_fmode): Add declarations and
	compatibility defines.  Change type to int.
	* include/io.h (_setmode, setmode): Add prototypes.
	* samples/fmode/all.c: Adjust includes.
	* samples/fmode/test.c: Likewise.
	* crt1.c (_CRT_fmode): Declare as int.
	* CRTfmode.c (_CRT_fmode): Likewise.

	* include/stdlib: Remove comment about MB_CUR_MAX.
2002-10-03 00:49:21 +00:00
Danny Smith 516658560f * include/stdlib.h (_imp____mbcur_max): add missing ';'.
(_imp____mbcur_max_dll): Likewise.
2002-10-02 03:43:33 +00:00
Danny Smith 76f28487ee * mingwex/math/files.txt: Remove inadvertantly added file. 2002-09-19 23:05:27 +00:00
Danny Smith 776044d554 * include/string.h (_strerror): Move into #ifndef
__STRICT_ANSI__ block.
2002-09-19 05:35:30 +00:00
Danny Smith 41cb3243c5 * include/time.h (__need_NULL): Define before including
stddef.h.  Thanks to: R�diger Dehmel  <de@lmnet.de>.
2002-09-17 21:36:02 +00:00
Danny Smith fbf3d133ce 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>
* include/stdio.h: Correct comment about directory separator.
2002-09-16 09:44:06 +00:00
Danny Smith 139b31f7ac * include/sys/time.h (timeval): Add struct definition and
associated macros (copied from w32api/include/winsock.h).
2002-09-12 10:34:54 +00:00
Earnie Boyd 6f28fb6195 * include/_mingw.h: Increment version to 2.3.
Makefile.in: Ditto.
2002-09-05 14:27:29 +00:00
Earnie Boyd 31736d1768 * mingwex/fegetenv.c: Change to \n line endings.
* mingwex/vsnprintf.c: Ditto.
	* mingwex/vsnwprintf.c: Ditto.
2002-09-05 11:51:26 +00:00
Danny Smith 169618f29f * mingwex/math/hypotl.c: Replace with version based on cephes
library.
2002-09-02 03:00:37 +00:00
Danny Smith 933ba4b187 * include/sys/param.h: Add ENDIAN defines.
* test_headers.c: Include sys/param.h.
2002-08-28 21:24:59 +00:00
Danny Smith 5bbbbfba55 * test_headers.c: Don't include varargs.h.
* Makefile.in (test_headers): Don't use -std=xx
	with -xc++. Test -std=gnu89, gnu99 also.
2002-08-28 03:57:16 +00:00
Earnie Boyd 69f710846f * include/sys/param.h: New File. 2002-08-21 12:49:56 +00:00
Earnie Boyd 811b5b0ae4 * include/_mingw.h: Increment version to 2.2.
Makefile.in: Ditto.
2002-08-21 12:18:28 +00:00
Danny Smith cfb5d4db12 * include/math.h (asm): Change to __asm__ throughout.
Expose ISO C99 functions if __GLIBCPP__.
	(hypotf): Use hypot, not _hypot in stub..
2002-08-20 23:26:11 +00:00
Danny Smith aabc7d585a * include/tchar.h: Ansi-fy another comment. 2002-08-20 23:08:14 +00:00
Danny Smith b9b4e3ca9d * include/tchar.h: Ansi-fy comment. 2002-08-20 23:01:42 +00:00
Danny Smith 02d46a6f8a * test_headers.c : New file.
* Makefile.in (test_headers): New target, using it,
	(SRCDIST_FILES): Distribute it.
2002-08-20 22:56:59 +00:00
Earnie Boyd 2c3ef6355b * include/unistd.h: Add include of process.h. 2002-08-14 21:08:43 +00:00
Danny Smith eb7368d4ac * include/stdio.h (_fcloseall): Add prototype. 2002-08-03 23:03:37 +00:00
Danny Smith efd34df5a5 * include/tchar.h (_tfdopen): Correct typo. 2002-07-29 03:05:56 +00:00
Danny Smith b8cdc234c6 Add incomplet long double math support to libmingwex.a 2002-07-29 03:00:10 +00:00
Danny Smith 97858a2641 * include/tchar.h (_getts): Define as _getws for _UNICODE.
(_putts): Define as _putws for _UNICODE.
	Thanks to: Tomasz Pona  <cochisek@poczta.onet.pl>  for report.
2002-06-18 20:48:57 +00:00
Danny Smith 8cb1442e10 * include/float.h: #include_next<float.h> before header guard. 2002-06-18 04:20:14 +00:00
Danny Smith 9fe2a2157b 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
	defining.
	* include/excpt.h (): Include windef.h not windows.h.
	* include/fcntl.h (_O_SHORT_LIVED): Add define.
	(_chmod): Add prototype.
        (_creat): Correct prototype.
	(SH_DENY*): Rename defines to _SH_DENY*.
	(SH_DENY*): Add Non-ANSI names for _SH_DENY*.
	include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
	_IOAPPEND): Add defines.
	(_wfindfirst): Correct prototype.
	(_wfdopen): Add prototype.
	* include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
	prototypes.
	* include/string.h (_mbschr, _mbstok, _mbsncat): Remove
	 prototypes.
	(_wcsdup): Correct prototype.
	* include/mbstring.h: Remove comments about _mbschr, _mbstok,
	 _mbsncat being in string.h.
	* include/wchar.h (_wfindfirst): Correct prototype.
	* include/tchar.h (_tfdopen): Add _UNICODE mappings.
2002-06-18 04:13:18 +00:00
Earnie Boyd 5ae611458b * include/_mingw.h: Increment to version 2.1.
* Makefile.in: Ditto.
2002-06-15 15:56:58 +00:00
Earnie Boyd 00f55bc3a9 * Makefile.in (conf_prefix): New variable.
(dist_prefix): Ditto. Conditionally set to $(conf_prefix).
	(bindist): Use dist_prefix.
2002-06-15 14:06:21 +00:00
Danny Smith dc8971488e * include/_mingw.h: Increment version to 2.0.
* Makefile.in: Ditto.
	Merge in mingwex branch.
2002-06-13 10:20:48 +00:00
Earnie Boyd 4ad1e6fedb Merging MinGW changes 2002-05-28 13:13:45 +00:00
Danny Smith cb699ad770 * include/mbstring.h: New file.
* include/mbctype.h: New file.

	Correct some email address dyslexia.
2002-04-20 13:50:04 +00:00
Danny Smith 97b6ae270d * include/tchar.h (_tputenv): Add UNICODE mappings.
(_tsearchenv): Likewise.
	(_tmakepath): Likewise.
	(_tsplitpath): Likewise.
	(_tfullpath): Likewise.
	(__TEXT): Make same as define in w32api/include/winnt.h.
2002-04-20 05:13:20 +00:00
Danny Smith 1cbcda2e6c * include/tchar.h (_tputenv): Add UNICODE mappings.
(_tsearchenv): Likewise.
	(_tmakepath): Likewise.
	(_tsplitpath): Likewise.
	(_tfullpath): Likewise.
	(__TEXT): Make same as define in w32api/include/winnt.h.
2002-04-20 05:05:50 +00:00
Danny Smith e9f1cbd011 * dirent.c (opendir): Convert given pathname to
absolute pathname.
2002-04-18 10:32:27 +00:00
Earnie Boyd 4e4871b389 * include/_mingw.h: Increment version.
* Makefile.in: Ditto.
2002-04-09 23:47:01 +00:00
Earnie Boyd 605280b192 * Makefile.in: Use bzip2 compression for Cygwin target. 2002-04-09 22:22:17 +00:00
Earnie Boyd 41c3dd2144 * moldname-crtdll.def: Remove CR from end of line.
* moldname-msvcrt.def: Ditto.
2002-04-09 21:03:59 +00:00
Danny Smith 244a8fae42 * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
TLOSS, PLOSS): Move oldname defines back, following
	the underscored names.
2002-04-04 08:54:50 +00:00
Danny Smith 06bdee1cf6 * include/stdio.h (_snwprintf): Correct spelling.
(_vsnwprintf): Likewise.
	* include/wchar.h (_snwprintf): Correct spelling.
	(_vsnwprintf): Likewise.
2002-03-30 01:38:27 +00:00
Danny Smith eba631d6a9 * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL).
(wpopen): Add if !(__CRTDLL).
	* Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
	preserve comments.
	(moldname-crtdll.def rule): Likewise.
	* moldname-msvcrt.def: Regenerate.
	* moldname-crtdll.def: Regenerate.
	* include/stdio.h (wpopen):Use prototype, not a define.
	(_swnprintf): Add prototype.
	(_vswnprintf): Likewise.
	Tidy up whitespace.
	* include/wchar.h (_swnprintf): Add prototype.
	(_vswnprintf): Likewise.
	Tidy up whitespace.
2002-03-26 22:23:25 +00:00
Danny Smith 88a820dbcc * include/malloc.h (_heapinfo): Correct structure definition.
(_USEDENTRY,_FREEENTRY): Add defines.
	Add comment on platform support for _heap* functions.
	(_get_sbh_threshold): Add prototype.
	(_set_sbh_threshold): Likewise.
	(_expand): Likewise.
2002-01-27 22:54:54 +00:00
Earnie Boyd be4ee22bbc Merge MinGW changes 2002-01-25 20:03:56 +00:00
Danny Smith b6d314495b Remove duplicate changelog entry. 2002-01-25 03:34:12 +00:00
Danny Smith a3e23446e2 * profile/profil.c: Update copyright info.
* profile/profil.h: Likewise.
	* profile/gcrt0.c: Likewise.
	* profile/profil.h (PROFADDR): Cast idx to unsigned long long to
	avoid overflow.
	* profile/gmon.c: Define bzero as memset if mingw32.
	(monstartup): Use it.
2002-01-25 03:29:55 +00:00
Danny Smith 628ef8b6bb * include/tchar.h (_TCHAR): Add missing ;. 2002-01-25 03:04:46 +00:00
Danny Smith 159743c264 * include/tchar.h (_TCHAR): Add typedefs. 2002-01-25 03:00:36 +00:00
Earnie Boyd 15a1d3f2fc * Makefile.in: Increment VERSION.
* include/_mingw.h: Ditto.
2001-12-07 21:38:03 +00:00
Earnie Boyd 98a05abd05 Merge MinGW CVS differences 2001-12-05 15:01:06 +00:00
Earnie Boyd ff1924262a * include/strings.h: New file. 2001-12-05 13:55:19 +00:00
Robert Collins 4cecec6cde 2001-11-08 Robert Collins <rbtcollins@hotmail.com>
* include/errno.h: Fix "errno is not a prototype" warning.
2001-11-07 14:10:25 +00:00
Egor Duda 48da07548b * Makefile.in: Delete unused executable after creating base-files. 2001-11-05 13:16:41 +00:00
Earnie Boyd 5cf6708ef4 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
* include/io.h (_commit): Add declaration.
	Thanks to: "stefan" <stefan@lkcc.org>

2001-10-30  Danny Smith  <dannysmith@users.sourceforge.net>

	* include/sys/stat.h: Make S_IS* macros safer.

2001-10-27  Danny Smith  <dannysmith@users.sourceforge.net>

	* include/stdlib.h (EXIT_FAILURE): Change value to 1.

2001-10-12  Danny Smith  <dannysmith@users.sourceforge.net>

	* include/stdlib.h (__p__environ, __p__wenviron): Use
	__STDC__ prototypes.
2001-11-01 19:51:50 +00:00
Earnie Boyd 18508302f9 2001-09-19 Earnie Boyd <earnie@SF.net>
* Makefile.in: Remove the /usr from the install target.
	(VERSION): Increment.
	include/_mingw.h: Ditto.
2001-09-19 15:37:19 +00:00
Earnie Boyd f244c34bae * Makefile.in: Increment version.
* include/_mingw.h: Ditto.
2001-09-17 12:38:45 +00:00
Earnie Boyd 34ed8fcee6 2001-09-10 Earnie Boyd <earnie@SF.net>
* dossh: Remove inadvertantly imported file.

2001-09-10  Danny Smith  <dannysmith@users.sourceforge.net>

	* dirent.c (opendir): Use GetFileAttributes rather than stat
	to determine if input arg is dir.
2001-09-10 15:41:46 +00:00
Christopher Faylor 94ce0c04c1 Revert inadvertently checked in files. 2001-09-06 00:45:51 +00:00
Christopher Faylor 08547e6403 * Makefile.in: Install libstdc++.a if it does not exist. 2001-09-05 23:26:38 +00:00
Earnie Boyd 375dab8418 * include/stdarg.h (va_list): Typedef as __builtin_va_list if
__GNUC__ >= 3.
	* include/varargs.h (va_list): Ditto.
	* include/stdio.h (va_list): Ditto.
2001-08-29 13:43:59 +00:00
Earnie Boyd 386abb05d9 * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
* include/stdio.h (_IORW): Change constant to 0x0080.
	(TMP_MAX): Add new define.
	(_P_tmpdir): Ditto.
	(_wP_tmpdir): Ditto.
	(L_tmpnam): Change constant to 16.
	* include/malloc.h: Fix non-ANSI comment after #endif.
	* profile/Makefile.in (mkinstalldirs): Correct relative path.
2001-08-05 12:52:43 +00:00
Christopher Faylor 36623e6535 Remove blank line. 2001-06-18 01:41:08 +00:00
Earnie Boyd a1dd161b72 * profile/configure.in: Make msvcrt.dll version default.
* profile/makefile.in: Build both gcrt1.o and gcrt2.o.
	* provile/configure: Regenerate.
2001-06-11 18:57:39 +00:00
Earnie Boyd 37fb7a2ccb * include/stdio.h (swscanf): Make first arugument const.
* include/wchar.h (swscanf): Ditto.
	* include/tchar.h (_tfopen): New _UNICODE define.
	(_tgetenv): Ditto.
	(_tsetlocale): Ditto.
2001-06-11 18:13:15 +00:00
Earnie Boyd 2c1296f856 * profile/Makefile.in (mkinstalldirs): Correct relative path. 2001-06-04 20:45:30 +00:00
Earnie Boyd 4c4db90d7e * include/_mingw.h: Change version to 1.0.
Makefile.in: Ditto.
2001-06-04 20:01:10 +00:00
Earnie Boyd d53c723240 * include/tchar.h: (__TEXT): Remove undef.
(_TEXT): Ditto.
	(_T): Ditto.
2001-02-21 19:33:42 +00:00
Earnie Boyd a562294385 Fri Feb 2 10:34:07 2001 Earnie Boyd <earnie@users.sourceforge.net>
* include/tchar.h: (__TEXT): Add private macro.
	(_TEXT): Modify definition to use __TEXT.
	(_T): Ditto.
	This change allows the passing of a MACRO as an argument and have that
	MACRO resolved first.
	Thanks to: Eric PAIRE <eric.paire@ri.silicomp.com>
2001-02-02 16:50:06 +00:00
Earnie Boyd 4ea1be6d1f * Makefile.in: Increment version to 0.5
* include/_mingw.h: Increment minor version
2001-01-31 22:17:17 +00:00
Earnie Boyd 535964b7a4 * include/assert.h: (assert): Remove ; from end of definition
Thanks to: AJ Reins <tbisp@qwest.net>
2001-01-30 18:03:23 +00:00
Earnie Boyd 58605e60f6 * include/time.h: (CLOCKS_PER_SEC): Type cast the constant.
Thanks to: Cosmin Truta  <cosmin@cs.toronto.edu>
2001-01-30 12:44:46 +00:00
Earnie Boyd 2f3ea37bc8 * time.h: (CLOCKS_PER_SEC) Change from FP to integer constant. 2001-01-29 19:05:18 +00:00
Earnie Boyd 39d871d66d * include/wchar.h: The 2001.01.18 Change was incorrect. The functions
are actually C functions.  These functions are resolved via the
	-lmsvcp60 library and comments were placed in the header.
2001-01-28 18:06:17 +00:00
Earnie Boyd 4586200df3 *include/stdlib.h (__p__pgmptr): add prototype.
(__p__wpgmptr): likewise.
	(_pgmptr_dll): move declaration from dos.h.
	(_wpgmptr_dll): likewise.
	(_pgmptr): conditional define (MSVCT/CRTDLL).
	(_wpgmptr): likewise.
	*include/dos.h (_base*_dll variables): declare only for CRTDLL.
	(_os*_dll variables): likewise.
	(_pgmptr_dll): remove declaration and associated defines to stdlib.h.
	(_wpgmptr_dll): likewise.
2001-01-28 16:40:19 +00:00
Earnie Boyd cd7053e78b * include/stdint.h: New file. 2001-01-26 18:52:31 +00:00
Earnie Boyd 74a3cd0a4f * include/wchar.h: Protect prototypes only declared in the C++ STL
from being declared unless __cplusplus is defined.
2001-01-18 15:40:50 +00:00
Earnie Boyd 2762a24302 * include/stdlib.h: Apply Danny Smith patch 102730
2000-12-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
	(_wgetenv) Correction to return type.
2001-01-16 16:43:00 +00:00
Earnie Boyd 49a5f0809b * include/locale.h: Apply Danny Smith patch 101834
2000-11-23  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
	(LC_MIN) Add definition.
 	(LC_MAX) ditto.
	(_wsetlocale) Add prototype.
2001-01-16 14:51:03 +00:00
Earnie Boyd b52aba3fc2 * Makefile.in: eliminate the need for RUNTIME and CRT_ID.
Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o.
	Create a libcoldname.a for the oldname library for CRTDLL.
	Restrict libmoldname.a for the oldname library for MSVCRT.
	* configure.in: eliminate setting RUNTIME and CRT_ID variables.
	Restructure the $target_os case logic.
	Always name the MinGW thread dll helper mingwm.
	Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw.
	* configure: regenerate.
2000-11-29 21:14:48 +00:00
Earnie Boyd c84242b6f3 * Makefile.in: Fix bindist target to distribute the correct files.
Remove the use of SNAPSHOT variable and test SNAPDATE instead.
	Set SNAPDATE within the snapshot target on recursive call to $(MAKE).
2000-11-22 23:43:23 +00:00
Earnie Boyd cc100085ed * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target.
Add variables and targets to control binary and source distributions.
	Add variables and targets to control snapshot distribution.
	* profile/gmon.h: Add missing #endif for #ifndef.
	* profile/ChangeLog: Merge entries here and remove.
	* profile/Makefile.in: Add variables and targets to control
	distribution.
	* README: Add.
	* TODO: ditto.
	* config.guess: ditto.
	* config.sub: ditto.
	* mkinstalldirs: ditto.
	* install-sh: ditto.
	* configure: regenerate.
	* profile/configure: ditto.
2000-11-22 01:51:53 +00:00
Earnie Boyd 6126c12345 * include/direct.h: add guard around MSVCRT-only prototytpes
* include/io.h: add __int64 struct definitions and function prototypes;
		 add guard for MSVCRT-only prototypes
	* include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
	* include/stdio.h: add wchar function prototypes (__MSVCRT__);
		 put wchar functions together to make sync with wchar.h easier
	* include/stdlib.h: add wide char functions (__MSVCRT__)
	* include/string.h: add string collation functions ( __MSVCRT__)
	* include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
	* include/tchar.h: add macros and macro function definitions
	* include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
		enclose more functions in __MSVCRT__ guard;
		some oldname wide char function prototypes #if (0)'d
	* profile/gmon.h: add guard around BSD-ish typedefs
2000-11-21 02:50:03 +00:00
Christopher Faylor d5b692284b * Makefile.in: Use a different variable name for subdirectory since the
previous one was used by the top level make.
2000-11-21 00:00:05 +00:00
Christopher Faylor 7665ae4aca * Makefile.in: Install mingw stuff in a subdirectory if building under cygwin. 2000-11-20 01:52:26 +00:00
Christopher Faylor ce4a7304b8 Add comment. 2000-06-18 01:53:10 +00:00
Christopher Faylor 606264878e Revert. 2000-06-18 01:50:07 +00:00
Christopher Faylor a50bf2842f * Makefile.in (subdirs): Eliminate for loop. 2000-06-18 01:49:23 +00:00
Christopher Faylor 4a7a5a717c * Makefile.in (subdirs): Previous change did not fix problem in broken shells. 2000-06-17 22:28:52 +00:00
Christopher Faylor 0fa0f12294 Add additional info. 2000-06-17 17:50:04 +00:00
Christopher Faylor 63d4033c06 * Makefile.in: Avoid installing dll if we're cross building and the cross-host
system isn't a Windows system.
2000-06-17 17:48:36 +00:00
Christopher Faylor 8c63f3b872 * configure.in: Change HEADER_SUBDIR to mingw32.
* configure: Regenerate.
2000-04-19 17:11:59 +00:00
Christopher Faylor 23ee7c4463 * include/string.h: Use proper prototype for _strerror. 2000-04-10 23:00:27 +00:00
Mumit Khan ab81a36772 2000-03-30 Mumit Khan <khan@xraylith.wisc.edu>
* Makefile.in (subdirs): Workaround for broken shells.
2000-03-31 04:43:46 +00:00
Christopher Faylor 1fd5e000ac import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
Christopher Faylor 369d8a8fd5 import winsup-2000-02-17 snapshot 2000-02-17 19:38:31 +00:00