This list is closed, nobody may subscribe to it.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(13) |
Feb
(2) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(38) |
Jul
(10) |
Aug
(70) |
Sep
(63) |
Oct
(61) |
Nov
(41) |
Dec
(28) |
2002 |
Jan
(43) |
Feb
(11) |
Mar
(9) |
Apr
(2) |
May
(97) |
Jun
(94) |
Jul
(13) |
Aug
(49) |
Sep
(41) |
Oct
(24) |
Nov
(55) |
Dec
(126) |
2003 |
Jan
(90) |
Feb
(75) |
Mar
(32) |
Apr
(24) |
May
(54) |
Jun
(54) |
Jul
(22) |
Aug
(4) |
Sep
(16) |
Oct
(8) |
Nov
(6) |
Dec
(13) |
2004 |
Jan
|
Feb
(17) |
Mar
(60) |
Apr
(21) |
May
(12) |
Jun
|
Jul
(13) |
Aug
|
Sep
(29) |
Oct
|
Nov
|
Dec
(2) |
2005 |
Jan
(22) |
Feb
(3) |
Mar
(2) |
Apr
(13) |
May
(82) |
Jun
(18) |
Jul
(30) |
Aug
(17) |
Sep
(3) |
Oct
(19) |
Nov
(4) |
Dec
(8) |
2006 |
Jan
(1) |
Feb
(6) |
Mar
(2) |
Apr
(40) |
May
|
Jun
(21) |
Jul
(1) |
Aug
(410) |
Sep
(3) |
Oct
|
Nov
(56) |
Dec
(7) |
2007 |
Jan
(19) |
Feb
|
Mar
(4) |
Apr
(8) |
May
(19) |
Jun
(6) |
Jul
(4) |
Aug
(6) |
Sep
|
Oct
(4) |
Nov
(3) |
Dec
(2) |
2008 |
Jan
(13) |
Feb
(18) |
Mar
(12) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
(6) |
Mar
(8) |
Apr
(2) |
May
(2) |
Jun
|
Jul
|
Aug
(2) |
Sep
(11) |
Oct
(13) |
Nov
(17) |
Dec
(6) |
2010 |
Jan
(24) |
Feb
(10) |
Mar
(27) |
Apr
(20) |
May
(108) |
Jun
(8) |
Jul
(23) |
Aug
(38) |
Sep
(49) |
Oct
(17) |
Nov
(12) |
Dec
(14) |
2011 |
Jan
(17) |
Feb
(7) |
Mar
(28) |
Apr
(8) |
May
(20) |
Jun
(11) |
Jul
(7) |
Aug
(12) |
Sep
(4) |
Oct
(20) |
Nov
(19) |
Dec
(2) |
2012 |
Jan
(2) |
Feb
(6) |
Mar
(5) |
Apr
(24) |
May
(5) |
Jun
(4) |
Jul
(6) |
Aug
(18) |
Sep
(38) |
Oct
(26) |
Nov
(12) |
Dec
(6) |
2013 |
Jan
(19) |
Feb
(18) |
Mar
(44) |
Apr
(35) |
May
(18) |
Jun
(21) |
Jul
(10) |
Aug
(19) |
Sep
(44) |
Oct
(25) |
Nov
(1) |
Dec
(2) |
2014 |
Jan
(8) |
Feb
|
Mar
|
Apr
(5) |
May
(1) |
Jun
(3) |
Jul
|
Aug
(3) |
Sep
|
Oct
(4) |
Nov
(4) |
Dec
(7) |
2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(2) |
Jun
(4) |
Jul
(6) |
Aug
(2) |
Sep
(8) |
Oct
(2) |
Nov
(1) |
Dec
(3) |
2016 |
Jan
(7) |
Feb
(9) |
Mar
(5) |
Apr
(5) |
May
(9) |
Jun
(4) |
Jul
(20) |
Aug
(4) |
Sep
(7) |
Oct
(6) |
Nov
(9) |
Dec
(2) |
2017 |
Jan
(7) |
Feb
(7) |
Mar
(5) |
Apr
|
May
(1) |
Jun
(4) |
Jul
(12) |
Aug
(4) |
Sep
(1) |
Oct
(4) |
Nov
(11) |
Dec
(14) |
2018 |
Jan
(3) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
(1) |
7
|
8
|
9
|
10
|
11
|
12
(2) |
13
|
14
|
15
|
16
|
17
|
18
|
19
(7) |
20
(4) |
21
|
22
(4) |
23
(1) |
24
|
25
|
26
|
27
|
28
|
29
|
30
(2) |
|
From: Earnie B. <ea...@us...> - 2004-04-30 22:42:43
|
Update of /cvsroot/mingw/msys/rt/src/winsup/cygwin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26607 Modified Files: ChangeLog.MSYS path.cc Log Message: * path.cc (msys_p2w): Add recognition of path after comma in switch. Index: ChangeLog.MSYS =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/ChangeLog.MSYS,v retrieving revision 1.67 retrieving revision 1.68 diff -C2 -d -r1.67 -r1.68 *** ChangeLog.MSYS 30 Apr 2004 12:42:49 -0000 1.67 --- ChangeLog.MSYS 30 Apr 2004 22:42:33 -0000 1.68 *************** *** 4,7 **** --- 4,8 ---- * window.cc: Add TRACE_IN throughout. (Winmain): Revert the changes from 04-22. Add a FIXME MessageBox. + * path.cc (msys_p2w): Add recognition of path after comma in switch. 2004-04-22 Earnie Boyd <ea...@us...> Index: path.cc =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/path.cc,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** path.cc 30 Mar 2004 12:31:56 -0000 1.44 --- path.cc 30 Apr 2004 22:42:33 -0000 1.45 *************** *** 2976,2979 **** --- 2976,3000 ---- } // + // Check for paths after commas, if string begins with a '-' character. + // + else if ((sspath = strchr(spath, ',')) && spath[0] == '-') + { + if (IsAbsWin32Path (sspath + 1)) { + debug_printf("returning: %s", path); + return (char *)path; + } + char *swin32_path = msys_p2w(sspath + 1); + if (swin32_path == (sspath + 1)) { + debug_printf("returning: %s", path); + return (char *)path; + } + *sspath = '\0'; + retpathcpy (spath); + retpathcat (","); + retpathcat (swin32_path); + free (swin32_path); + return ScrubRetpath (retpath); + } + // // Check for POSIX path lists. // But we have to allow processing of quoted strings and switches first |
From: Earnie B. <ea...@us...> - 2004-04-30 12:43:16
|
Update of /cvsroot/mingw/msys/rt/src/winsup/cygwin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32162 Modified Files: ChangeLog.MSYS Makefile.in window.cc Log Message: * Makefile.in (new-$(DLL_NAME)): Add -luser32 to link command. * window.cc: Add TRACE_IN throughout. (Winmain): Revert the changes from 04-22. Add a FIXME MessageBox. Index: ChangeLog.MSYS =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/ChangeLog.MSYS,v retrieving revision 1.66 retrieving revision 1.67 diff -C2 -d -r1.66 -r1.67 *** ChangeLog.MSYS 23 Apr 2004 02:11:57 -0000 1.66 --- ChangeLog.MSYS 30 Apr 2004 12:42:49 -0000 1.67 *************** *** 1,2 **** --- 1,8 ---- + 2004-04-30 Earnie Boyd <ea...@us...> + + * Makefile.in (new-$(DLL_NAME)): Add -luser32 to link command. + * window.cc: Add TRACE_IN throughout. + (Winmain): Revert the changes from 04-22. Add a FIXME MessageBox. + 2004-04-22 Earnie Boyd <ea...@us...> Index: Makefile.in =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/Makefile.in,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Makefile.in 19 Apr 2003 01:03:46 -0000 1.8 --- Makefile.in 30 Apr 2004 12:42:49 -0000 1.9 *************** *** 202,206 **** -e $(DLL_ENTRY) $(DEF_FILE) $(DLL_OFILES) version.o winver.o \ $(DLL_IMPORTS) $(MALLOC_OBJ) $(LIBM) $(LIBC) \ ! -lstdc++ -lgcc -lshell32 -luuid -lkernel32 -lnetapi32 dll_ofiles: $(DLL_OFILES) --- 202,206 ---- -e $(DLL_ENTRY) $(DEF_FILE) $(DLL_OFILES) version.o winver.o \ $(DLL_IMPORTS) $(MALLOC_OBJ) $(LIBM) $(LIBC) \ ! -lstdc++ -lgcc -lshell32 -luuid -lkernel32 -lnetapi32 -luser32 dll_ofiles: $(DLL_OFILES) Index: window.cc =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/window.cc,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** window.cc 23 Apr 2004 02:11:57 -0000 1.4 --- window.cc 30 Apr 2004 12:42:49 -0000 1.5 *************** *** 31,34 **** --- 31,35 ---- WndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { + TRACE_IN; #ifndef NOSTRACE strace.wm (uMsg, wParam, lParam); *************** *** 73,76 **** --- 74,78 ---- Winmain (VOID *) { + TRACE_IN; MSG msg; WNDCLASS wc; *************** *** 110,124 **** } - ShowWindow(ourhwnd, SW_SHOW); - UpdateWindow(ourhwnd); - /* Start the message loop. */ while (GetMessage (&msg, ourhwnd, 0, 0) == TRUE) { - TranslateMessage (&msg); DispatchMessage (&msg); } return msg.wParam; } --- 112,124 ---- } /* Start the message loop. */ while (GetMessage (&msg, ourhwnd, 0, 0) == TRUE) { DispatchMessage (&msg); } + /* FIXME: If this MessageBox never appears then this code is never executed */ + MessageBox(ourhwnd, "If this MessageBox is visible send email to\nmi...@li... with a submit of \"FIXME MB\"", "FIXME", 0); return msg.wParam; } *************** *** 127,130 **** --- 127,131 ---- gethwnd () { + TRACE_IN; if (ourhwnd != NULL) return ourhwnd; *************** *** 151,154 **** --- 152,156 ---- window_terminate () { + TRACE_IN; if (ourhwnd) SendMessage (ourhwnd, WM_DESTROY, 0, 0); *************** *** 159,162 **** --- 161,165 ---- setitimer (int which, const struct itimerval *value, struct itimerval *oldvalue) { + TRACE_IN; UINT elapse; *************** *** 204,207 **** --- 207,211 ---- getitimer (int which, struct itimerval *value) { + TRACE_IN; UINT elapse, val; *************** *** 235,238 **** --- 239,243 ---- alarm (unsigned int seconds) { + TRACE_IN; int ret; struct itimerval newt, oldt; |
From: Earnie B. <ea...@us...> - 2004-04-23 02:12:06
|
Update of /cvsroot/mingw/msys/rt/src/winsup/cygwin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26376 Modified Files: window.cc ChangeLog.MSYS Log Message: * window.cc (Winmain): Add typical Windows messaging API. Index: window.cc =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/window.cc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** window.cc 19 Apr 2003 01:03:48 -0000 1.3 --- window.cc 23 Apr 2004 02:11:57 -0000 1.4 *************** *** 110,117 **** --- 110,121 ---- } + ShowWindow(ourhwnd, SW_SHOW); + UpdateWindow(ourhwnd); + /* Start the message loop. */ while (GetMessage (&msg, ourhwnd, 0, 0) == TRUE) { + TranslateMessage (&msg); DispatchMessage (&msg); } Index: ChangeLog.MSYS =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/ChangeLog.MSYS,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -d -r1.65 -r1.66 *** ChangeLog.MSYS 6 Apr 2004 12:13:25 -0000 1.65 --- ChangeLog.MSYS 23 Apr 2004 02:11:57 -0000 1.66 *************** *** 1,2 **** --- 1,6 ---- + 2004-04-22 Earnie Boyd <ea...@us...> + + * window.cc (Winmain): Add typical Windows messaging API. + 2004-04-06 Earnie Boyd <ea...@us...> |
From: Earnie B. <ea...@us...> - 2004-04-22 16:37:06
|
Update of /cvsroot/mingw/runtime In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29627 Modified Files: ChangeLog Makefile.in strncasecmp.c Log Message: Merge winsup changes Index: Makefile.in =================================================================== RCS file: /cvsroot/mingw/runtime/Makefile.in,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** Makefile.in 22 Apr 2004 16:21:13 -0000 1.28 --- Makefile.in 22 Apr 2004 16:36:51 -0000 1.29 *************** *** 173,177 **** DLLS = $(THREAD_DLL_NAME) ! INSTDOCS = DISCLAIMER \ README --- 173,178 ---- DLLS = $(THREAD_DLL_NAME) ! INSTDOCS = CONTRIBUTORS \ ! DISCLAIMER \ README *************** *** 186,190 **** CRT_fp8.c CRT_fp10.c test_headers.c txtmode.c binmode.c pseudo-reloc.c \ pseudo-reloc-list.c \ ! DISCLAIMER README --- 187,191 ---- CRT_fp8.c CRT_fp10.c test_headers.c txtmode.c binmode.c pseudo-reloc.c \ pseudo-reloc-list.c \ ! DISCLAIMER CONTRIBUTORS Index: strncasecmp.c =================================================================== RCS file: /cvsroot/mingw/runtime/strncasecmp.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** strncasecmp.c 22 Apr 2004 16:21:13 -0000 1.3 --- strncasecmp.c 22 Apr 2004 16:36:51 -0000 1.4 *************** *** 1,4 **** --- 1,7 ---- /* * strncasecmp.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Oldnames from ANSI header string.h *************** *** 7,27 **** * equivalents are not simply underscore prefixed. * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 10,13 ---- Index: ChangeLog =================================================================== RCS file: /cvsroot/mingw/runtime/ChangeLog,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** ChangeLog 22 Apr 2004 16:21:07 -0000 1.60 --- ChangeLog 22 Apr 2004 16:36:51 -0000 1.61 *************** *** 3,7 **** * 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. --- 3,7 ---- * DISCLAIMER: Add words about "free to use". * README: Modify "Win32 runtime" to "Microsoft C Runtime". ! * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS. (inst_docdir): New variable. (INSTDOCS): Ditto. *************** *** 9,12 **** --- 9,14 ---- (install-dirs): Add inst_docdir. (install): Add loop for INSTDOCS. + * strncasecmp.c: Reword copyright and disclaimer. Move Contributors + section to CONTRIBUTORS file. Remove RCS tags. 2004-04-22 Danny Smith <dan...@us...> *************** *** 24,28 **** * DISCLAIMER: Ditto. * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors ! section CONTRIBUTORS file. Remove RCS tags. * CRTFmode.c: Ditto. * CRTglob.c: Ditto. --- 26,30 ---- * DISCLAIMER: Ditto. * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors ! section to CONTRIBUTORS file. Remove RCS tags. * CRTFmode.c: Ditto. * CRTglob.c: Ditto. |
From: Earnie B. <ea...@us...> - 2004-04-22 16:22:05
|
Update of /cvsroot/mingw/runtime In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26676 Added Files: CONTRIBUTORS DISCLAIMER Log Message: Merge winsup changes --- NEW FILE: CONTRIBUTORS --- /* * CONTRIBUTORS * This file has no copyright assigned and is placed in the Public Domain. * This file is a part of the mingw-runtime package. * No warranty is given; refer to the file DISCLAIMER within the package. * * HISTORICAL: * Colin Peters <co...@fu...> - Original author of the * mingw-runtime package. * Mumit Khan <kh...@xr...> - Original maintainer of the * mingw-runtime package. * Gunther Ebert <gun...@ix...> - Adaptations of his DLL * support. * Stan Cox <sc...@cy...> - Provided gccmain.c. * J.J. van der Heijden <J.J...@st...> - Provided * dos.h. * Mikey <je...@ne...> - Adaptated excpt.h from his code. * Pedro A. Aranda <pa...@ti...> - Provided lots of types for types.h. * * CURRENT: * Danny Smith <dan...@us...> * Earnie Boyd <ea...@us...> * Luke Dunstan <cod...@us...> * * Many others in the MinGW user community. They are listed in the ChangeLog. * Please review that file for the names of those contributors. * */ --- NEW FILE: DISCLAIMER --- /* * DISCLAIMER * This file has no copyright assigned and is placed in the Public Domain. * This file is a part of the mingw-runtime package. * * The mingw-runtime package and its code is distributed in the hope that it * will be useful but WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESSED OR * IMPLIED ARE HEREBY DISCLAIMED. This includes but is not limited to * warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * You are free to use this package and its code without limitation. */ |
From: Earnie B. <ea...@us...> - 2004-04-22 16:21:28
|
Update of /cvsroot/mingw/runtime/mingwex/math In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26541/mingwex/math Modified Files: llround.c llroundf.c llroundl.c lround.c lroundf.c lroundl.c Log Message: Merge winsup changes Index: llround.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/llround.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** llround.c 5 Feb 2003 23:04:53 -0000 1.2 --- llround.c 22 Apr 2004 16:21:13 -0000 1.3 *************** *** 1,24 **** - #include <fenv.h> #include <math.h> long long ! llround (double x) { ! long long retval; ! unsigned short saved_cw, _cw; ! __asm__ ( ! "fnstcw %0;" : "=m" (saved_cw) ! ); /* save control word */ ! _cw = ~(FE_TONEAREST | FE_DOWNWARD | FE_UPWARD | FE_TOWARDZERO) ! | (x > 0.0 ? FE_UPWARD : FE_DOWNWARD); /* round away from zero */ ! __asm__ ( ! "fldcw %0;" : : "m" (_cw) ! ); /* load the rounding control */ ! __asm__ __volatile__ ( ! "fistpll %0" : "=m" (retval) : "t" (x) : "st" ! ); ! __asm__ ( ! "fldcw %0;" : : "m" (saved_cw) ! ); /* restore control word */ ! return retval; } - --- 1,19 ---- #include <math.h> + #include <limits.h> + #include <errno.h> long long ! llround (double x) ! { ! /* Add +/- 0.5, then round towards zero. */ ! double tmp = trunc (x + (x >= 0.0 ? 0.5 : -0.5)); ! if (!isfinite (tmp) ! || tmp > (double)LONG_LONG_MAX ! || tmp < (double)LONG_LONG_MIN) ! { ! errno = ERANGE; ! /* Undefined behaviour, so we could return anything. */ ! /* return tmp > 0.0 ? LONG_LONG_MAX : LONG_LONG_MIN; */ ! } ! return (long long)tmp; } Index: lroundf.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/lroundf.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lroundf.c 12 Aug 2002 13:06:37 -0000 1.1 --- lroundf.c 22 Apr 2004 16:21:13 -0000 1.2 *************** *** 1,23 **** - #include <fenv.h> #include <math.h> long ! lroundf (float x) { ! long retval; ! unsigned short saved_cw, _cw; ! __asm__ ( ! "fnstcw %0;" : "=m" (saved_cw) ! ); /* save control word */ ! _cw = ~(FE_TONEAREST | FE_DOWNWARD | FE_UPWARD | FE_TOWARDZERO) ! | (x > 0.0 ? FE_UPWARD : FE_DOWNWARD); /* round away from zero */ ! __asm__ ( ! "fldcw %0;" : : "m" (_cw) ! ); /* load the rounding control */ ! __asm__ __volatile__ ( ! "fistpl %0" : "=m" (retval) : "t" (x) : "st" ! ); ! __asm__ ( ! "fldcw %0;" : : "m" (saved_cw) ! ); /* restore control word */ ! return retval; ! } --- 1,19 ---- #include <math.h> + #include <limits.h> + #include <errno.h> long ! lroundf (float x) ! { ! /* Add +/- 0.5, then round towards zero. */ ! float tmp = truncf (x + (x >= 0.0F ? 0.5F : -0.5F)); ! if (!isfinite (tmp) ! || tmp > (float)LONG_MAX ! || tmp < (float)LONG_MIN) ! { ! errno = ERANGE; ! /* Undefined behaviour, so we could return anything. */ ! /* return tmp > 0.0F ? LONG_MAX : LONG_MIN; */ ! } ! return (long)tmp; ! } Index: lround.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/lround.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lround.c 12 Aug 2002 13:06:37 -0000 1.1 --- lround.c 22 Apr 2004 16:21:13 -0000 1.2 *************** *** 1,24 **** - #include <fenv.h> #include <math.h> long ! lround (double x) { ! long retval; ! unsigned short saved_cw, _cw; ! __asm__ ( ! "fnstcw %0;" : "=m" (saved_cw) ! ); /* save control word */ ! _cw = ~(FE_TONEAREST | FE_DOWNWARD | FE_UPWARD | FE_TOWARDZERO) ! | (x > 0.0 ? FE_UPWARD : FE_DOWNWARD); /* round away from zero */ ! __asm__ ( ! "fldcw %0;" : : "m" (_cw) ! ); /* load the rounding control */ ! __asm__ __volatile__ ( ! "fistpl %0" : "=m" (retval) : "t" (x) : "st" ! ); ! __asm__ ( ! "fldcw %0;" : : "m" (saved_cw) ! ); /* restore control word */ ! return retval; } - --- 1,19 ---- #include <math.h> + #include <limits.h> + #include <errno.h> long ! lround (double x) ! { ! /* Add +/- 0.5 then then round towards zero. */ ! double tmp = trunc (x + (x >= 0.0 ? 0.5 : -0.5)); ! if (!isfinite (tmp) ! || tmp > (double)LONG_MAX ! || tmp < (double)LONG_MIN) ! { ! errno = ERANGE; ! /* Undefined behaviour, so we could return anything. */ ! /* return tmp > 0.0 ? LONG_MAX : LONG_MIN; */ ! } ! return (long)tmp; } Index: llroundl.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/llroundl.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** llroundl.c 12 Aug 2002 13:06:37 -0000 1.1 --- llroundl.c 22 Apr 2004 16:21:13 -0000 1.2 *************** *** 1,22 **** - #include <fenv.h> #include <math.h> long long ! llroundl (long double x) { ! long long retval; ! unsigned short saved_cw, _cw; ! __asm__ ( ! "fnstcw %0;" : "=m" (saved_cw) ! ); /* save control word */ ! _cw = ~(FE_TONEAREST | FE_DOWNWARD | FE_UPWARD | FE_TOWARDZERO) ! | (x > 0.0 ? FE_UPWARD : FE_DOWNWARD); /* round away from zero */ ! __asm__ ( ! "fldcw %0;" : : "m" (_cw) ! ); /* load the rounding control */ ! __asm__ __volatile__ ( ! "fistpll %0" : "=m" (retval) : "t" (x) : "st"); ! __asm__ ( ! "fldcw %0;" : : "m" (saved_cw) ! ); /* restore control word */ ! return retval; } --- 1,19 ---- #include <math.h> + #include <limits.h> + #include <errno.h> long long ! llroundl (long double x) ! { ! /* Add +/- 0.5, then round towards zero. */ ! long double tmp = truncl (x + (x >= 0.0L ? 0.5L : -0.5L)); ! if (!isfinite (tmp) ! || tmp > (long double)LONG_LONG_MAX ! || tmp < (long double)LONG_LONG_MIN) ! { ! errno = ERANGE; ! /* Undefined behaviour, so we could return anything. */ ! /* return tmp > 0.0L ? LONG_LONG_MAX : LONG_LONG_MIN; */ ! } ! return (long long)tmp; } Index: lroundl.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/lroundl.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lroundl.c 12 Aug 2002 13:06:37 -0000 1.1 --- lroundl.c 22 Apr 2004 16:21:13 -0000 1.2 *************** *** 1,22 **** - #include <fenv.h> #include <math.h> long ! lroundl (long double x) { ! long retval; ! unsigned short saved_cw, _cw; ! __asm__ ( ! "fnstcw %0;" : "=m" (saved_cw) ! ); /* save control word */ ! _cw = ~(FE_TONEAREST | FE_DOWNWARD | FE_UPWARD | FE_TOWARDZERO) ! | (x > 0.0 ? FE_UPWARD : FE_DOWNWARD); /* round away from zero */ ! __asm__ ( ! "fldcw %0;" : : "m" (_cw) ! ); /* load the rounding control */ ! __asm__ __volatile__ ( ! "fistpl %0" : "=m" (retval) : "t" (x) : "st"); ! __asm__ ( ! "fldcw %0;" : : "m" (saved_cw) ! ); /* restore control word */ ! return retval; } --- 1,19 ---- #include <math.h> + #include <limits.h> + #include <errno.h> long ! lroundl (long double x) ! { ! /* Add +/- 0.5, then round towards zero. */ ! long double tmp = truncl (x + (x >= 0.0L ? 0.5L : -0.5L)); ! if (!isfinite (tmp) ! || tmp > (long double)LONG_MAX ! || tmp < (long double)LONG_MIN) ! { ! errno = ERANGE; ! /* Undefined behaviour, so we could return anything. */ ! /* return tmp > 0.0L ? LONG_MAX : LONG_MIN; */ ! } ! return (long)tmp; } Index: llroundf.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/llroundf.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** llroundf.c 12 Aug 2002 13:06:37 -0000 1.1 --- llroundf.c 22 Apr 2004 16:21:13 -0000 1.2 *************** *** 1,23 **** - #include <fenv.h> #include <math.h> long long ! llroundf (float x) { ! long long retval; ! unsigned short saved_cw, _cw; ! __asm__ ( ! "fnstcw %0;" : "=m" (saved_cw) ! ); /* save control word */ ! _cw = ~(FE_TONEAREST | FE_DOWNWARD | FE_UPWARD | FE_TOWARDZERO) ! | (x > 0.0 ? FE_UPWARD : FE_DOWNWARD); /* round away from zero */ ! __asm__ ( ! "fldcw %0;" : : "m" (_cw) ! ); /* load the rounding control */ ! __asm__ __volatile__ ( ! "fistpll %0" : "=m" (retval) : "t" (x) : "st" ! ); ! __asm__ ( ! "fldcw %0;" : : "m" (saved_cw) ! ); /* restore control word */ ! return retval; ! } --- 1,19 ---- #include <math.h> + #include <limits.h> + #include <errno.h> long long ! llroundf (float x) ! { ! /* Add +/- 0.5, then round towards zero. */ ! float tmp = truncf (x + (x >= 0.0F ? 0.5F : -0.5F)); ! if (!isfinite (tmp) ! || tmp > (float)LONG_LONG_MAX ! || tmp < (float)LONG_LONG_MIN) ! { ! errno = ERANGE; ! /* Undefined behaviour, so we could return anything. */ ! /* return tmp > 0.0F ? LONG_LONG_MAX : LONG_LONG_MIN; */ ! } ! return (long long)tmp; ! } |
From: Earnie B. <ea...@us...> - 2004-04-22 16:21:27
|
Update of /cvsroot/mingw/runtime In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26541 Modified Files: ChangeLog Makefile.in README strncasecmp.c Log Message: Merge winsup changes Index: README =================================================================== RCS file: /cvsroot/mingw/runtime/README,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** README 4 Jun 2001 23:26:02 -0000 1.1.1.1 --- README 22 Apr 2004 16:21:13 -0000 1.2 *************** *** 1,3 **** ! Free Win32 runtime and import library definitions Maintained by MinGW Developers --- 1,3 ---- ! Free Microsoft C Runtime and import library definitions Maintained by MinGW Developers Index: Makefile.in =================================================================== RCS file: /cvsroot/mingw/runtime/Makefile.in,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** Makefile.in 20 Apr 2004 23:26:25 -0000 1.27 --- Makefile.in 22 Apr 2004 16:21:13 -0000 1.28 *************** *** 52,59 **** --- 52,61 ---- inst_includedir:=$(tooldir)/include/mingw inst_libdir:=$(tooldir)/lib/mingw + inst_docdir:=$(tooldir)/doc/mingw-runtime else inst_bindir:=$(bindir) inst_includedir:=$(includedir) inst_libdir:=$(libdir) + inst_docdir:=$(prefix)/doc/mingw-runtime endif *************** *** 143,146 **** --- 145,149 ---- inst_includedir="$(inst_includedir)" \ inst_libdir="$(inst_libdir)" \ + inst_docdir="$(inst_docdir)" \ prefix="$(prefix)" \ target_alias="$(target_alias)" \ *************** *** 170,173 **** --- 173,179 ---- DLLS = $(THREAD_DLL_NAME) + INSTDOCS = DISCLAIMER \ + README + SRCDIST_FILES = CRT_noglob.c CRTfmode.c CRTglob.c CRTinit.c ChangeLog \ Makefile.in README TODO config.guess config.sub configure configure.in \ *************** *** 179,183 **** strcasecmp.c strncasecmp.c wcscmpi.c \ CRT_fp8.c CRT_fp10.c test_headers.c txtmode.c binmode.c pseudo-reloc.c \ ! pseudo-reloc-list.c --- 185,190 ---- strcasecmp.c strncasecmp.c wcscmpi.c \ CRT_fp8.c CRT_fp10.c test_headers.c txtmode.c binmode.c pseudo-reloc.c \ ! pseudo-reloc-list.c \ ! DISCLAIMER README *************** *** 390,393 **** --- 397,401 ---- $(mkinstalldirs) $(inst_includedir) $(mkinstalldirs) $(inst_libdir) + $(mkinstalldirs) $(inst_docdir) install: all install-dirs $(install_dlls_host) *************** *** 398,401 **** --- 406,412 ---- $(INSTALL_DATA) $$i $(inst_libdir)/$$i ; \ done + for i in $(INSTDOCS); do \ + $(INSTALL_DATA) $(srcdir)/$$i $(inst_docdir)/$$i ; \ + done for sub in . sys ; do \ dstdir=$(inst_includedir)/$$sub ; \ Index: ChangeLog =================================================================== RCS file: /cvsroot/mingw/runtime/ChangeLog,v retrieving revision 1.59 retrieving revision 1.60 diff -C2 -d -r1.59 -r1.60 *** ChangeLog 20 Apr 2004 23:26:25 -0000 1.59 --- ChangeLog 22 Apr 2004 16:21:07 -0000 1.60 *************** *** 1,2 **** --- 1,22 ---- + 2004-04-22 Earnie Boyd <ea...@us...> + + * 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 Danny Smith <dan...@us...> + + * 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-20 Earnie Boyd <ea...@us...> |
From: Earnie B. <ea...@us...> - 2004-04-20 23:28:24
|
Update of /cvsroot/mingw/runtime/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21354/include Modified Files: assert.h conio.h ctype.h direct.h dirent.h dos.h errno.h excpt.h fcntl.h float.h io.h locale.h malloc.h math.h process.h setjmp.h share.h signal.h stdio.h stdlib.h string.h tchar.h time.h wchar.h Log Message: Merge winsup changes Index: ctype.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/ctype.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ctype.h 10 Oct 2003 15:02:04 -0000 1.9 --- ctype.h 20 Apr 2004 23:26:26 -0000 1.10 *************** *** 1,26 **** /* * ctype.h * * Functions for testing character types and converting characters. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * ctype.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Functions for testing character types and converting characters. * */ Index: malloc.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/malloc.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** malloc.h 19 Apr 2004 17:22:40 -0000 1.10 --- malloc.h 20 Apr 2004 23:26:26 -0000 1.11 *************** *** 1,4 **** --- 1,7 ---- /* * malloc.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Support for programs which want to use malloc.h to get memory management *************** *** 7,29 **** * instead. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 10,13 ---- Index: excpt.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/excpt.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** excpt.h 19 Apr 2004 17:22:40 -0000 1.5 --- excpt.h 20 Apr 2004 23:26:26 -0000 1.6 *************** *** 1,4 **** --- 1,7 ---- /* * excpt.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Support for operating system level structured exception handling. *************** *** 7,30 **** * completely Intel specific. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * Based on code by Mikey <je...@ne...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 10,13 ---- Index: time.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/time.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** time.h 19 Apr 2004 17:22:41 -0000 1.8 --- time.h 20 Apr 2004 23:26:29 -0000 1.9 *************** *** 1,26 **** /* * time.h * * Date and time functions and types. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * time.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Date and time functions and types. * */ Index: fcntl.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/fcntl.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** fcntl.h 19 Apr 2004 17:22:40 -0000 1.7 --- fcntl.h 20 Apr 2004 23:26:26 -0000 1.8 *************** *** 1,27 **** /* * fcntl.h * * Access constants for _open. Note that the permissions constants are * in sys/stat.h (ick). * - * This code is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ #ifndef _FCNTL_H_ --- 1,11 ---- /* * fcntl.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Access constants for _open. Note that the permissions constants are * in sys/stat.h (ick). * */ #ifndef _FCNTL_H_ Index: direct.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/direct.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** direct.h 19 Apr 2004 17:22:40 -0000 1.5 --- direct.h 20 Apr 2004 23:26:26 -0000 1.6 *************** *** 1,27 **** /* * direct.h * * Functions for manipulating paths and directories (included from io.h) * plus functions for setting the current drive. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ #ifndef _DIRECT_H_ --- 1,11 ---- /* * direct.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Functions for manipulating paths and directories (included from io.h) * plus functions for setting the current drive. * */ #ifndef _DIRECT_H_ Index: dos.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/dos.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** dos.h 19 Apr 2004 17:22:40 -0000 1.6 --- dos.h 20 Apr 2004 23:26:26 -0000 1.7 *************** *** 1,26 **** /* * dos.h * * DOS-specific functions and structures. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by J.J. van der Heijden <J.J...@st...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * dos.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * DOS-specific functions and structures. * */ Index: errno.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/errno.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** errno.h 21 Feb 2003 21:19:51 -0000 1.5 --- errno.h 20 Apr 2004 23:26:26 -0000 1.6 *************** *** 1,26 **** /* * errno.h * * Error numbers and access to error reporting. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * errno.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Error numbers and access to error reporting. * */ Index: math.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/math.h,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** math.h 19 Apr 2004 17:22:40 -0000 1.17 --- math.h 20 Apr 2004 23:26:26 -0000 1.18 *************** *** 1,26 **** /* * math.h * * Mathematical functions. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * math.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Mathematical functions. * */ Index: io.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/io.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** io.h 19 Apr 2004 17:22:40 -0000 1.9 --- io.h 20 Apr 2004 23:26:26 -0000 1.10 *************** *** 1,26 **** /* * io.h * * System level I/O functions and types. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ #ifndef _IO_H_ --- 1,10 ---- /* * io.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * System level I/O functions and types. * */ #ifndef _IO_H_ Index: signal.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/signal.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** signal.h 19 Apr 2004 17:22:40 -0000 1.5 --- signal.h 20 Apr 2004 23:26:28 -0000 1.6 *************** *** 1,26 **** /* * signal.h * * A way to set handlers for exceptional conditions (also known as signals). * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * signal.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * A way to set handlers for exceptional conditions (also known as signals). * */ Index: float.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/float.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** float.h 21 Feb 2003 21:19:51 -0000 1.10 --- float.h 20 Apr 2004 23:26:26 -0000 1.11 *************** *** 1,4 **** --- 1,7 ---- /* * float.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Constants related to floating point arithmetic. *************** *** 12,34 **** * here. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 15,18 ---- Index: assert.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/assert.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** assert.h 21 Feb 2003 21:19:51 -0000 1.4 --- assert.h 20 Apr 2004 23:26:26 -0000 1.5 *************** *** 1,26 **** /* * assert.h * * Define the assert macro for debug output. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * assert.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Define the assert macro for debug output. * */ Index: stdio.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/stdio.h,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** stdio.h 19 Apr 2004 17:22:40 -0000 1.16 --- stdio.h 20 Apr 2004 23:26:28 -0000 1.17 *************** *** 1,4 **** --- 1,7 ---- /* * stdio.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Definitions of types and prototypes of functions for standard input and *************** *** 8,30 **** * work with either slash (/) or backslash (\) as the directory separator. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 11,14 ---- Index: process.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/process.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** process.h 19 Apr 2004 17:22:40 -0000 1.6 --- process.h 20 Apr 2004 23:26:27 -0000 1.7 *************** *** 1,26 **** /* * process.h * * Function calls for spawning child processes. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * process.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Function calls for spawning child processes. * */ Index: locale.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/locale.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** locale.h 21 Feb 2003 21:19:51 -0000 1.5 --- locale.h 20 Apr 2004 23:26:26 -0000 1.6 *************** *** 1,27 **** /* * locale.h * * Functions and types for localization (ie. changing the appearance of * output based on the standards of a certain country). * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,11 ---- /* * locale.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Functions and types for localization (ie. changing the appearance of * output based on the standards of a certain country). * */ Index: tchar.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/tchar.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** tchar.h 19 Apr 2004 17:22:40 -0000 1.12 --- tchar.h 20 Apr 2004 23:26:29 -0000 1.13 *************** *** 1,4 **** --- 1,7 ---- /* * tchar.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Unicode mapping layer for the standard C library. By including this *************** *** 15,37 **** * names). * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 18,21 ---- Index: dirent.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/dirent.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** dirent.h 19 Apr 2004 17:22:40 -0000 1.7 --- dirent.h 20 Apr 2004 23:26:26 -0000 1.8 *************** *** 1,22 **** /* * DIRENT.H (formerly DIRLIB.H) ! * ! * by M. J. Weinstein Released to public domain 1-Jan-89 ! * ! * Because I have heard that this feature (opendir, readdir, closedir) ! * it so useful for programmers coming from UNIX or attempting to port ! * UNIX code, and because it is reasonably light weight, I have included ! * it in the Mingw32 package. I have also added an implementation of ! * rewinddir, seekdir and telldir. ! * - Colin Peters <co...@bi...> ! * ! * This code is distributed in the hope that is will be useful but ! * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY ! * DISCLAIMED. This includeds but is not limited to warranties of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ! * ! * $Revision$ ! * $Author$ ! * $Date$ * */ --- 1,7 ---- /* * DIRENT.H (formerly DIRLIB.H) ! * This file has no copyright assigned and is placed in the Public Domain. ! * This file is a part of the mingw-runtime package. ! * No warranty is given; refer to the file DISCLAIMER within the package. * */ Index: share.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/share.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** share.h 19 Apr 2004 17:22:40 -0000 1.5 --- share.h 20 Apr 2004 23:26:28 -0000 1.6 *************** *** 1,26 **** /* * share.h * * Constants for file sharing functions. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * share.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Constants for file sharing functions. * */ Index: wchar.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/wchar.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wchar.h 19 Apr 2004 17:22:41 -0000 1.12 --- wchar.h 20 Apr 2004 23:26:29 -0000 1.13 *************** *** 1,4 **** --- 1,7 ---- /* * wchar.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Defines of all functions for supporting wide characters. Actually it *************** *** 7,26 **** * in sync. * - * This file is part of the Mingw32 package. - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 10,13 ---- Index: stdlib.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/stdlib.h,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** stdlib.h 10 Oct 2003 15:02:04 -0000 1.19 --- stdlib.h 20 Apr 2004 23:26:29 -0000 1.20 *************** *** 1,26 **** /* * stdlib.h * * Definitions for common types, variables, and functions. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * stdlib.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Definitions for common types, variables, and functions. * */ Index: setjmp.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/setjmp.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** setjmp.h 21 Feb 2003 21:19:52 -0000 1.4 --- setjmp.h 20 Apr 2004 23:26:28 -0000 1.5 *************** *** 1,27 **** /* * setjmp.h * * Declarations supporting setjmp and longjump, a method for avoiding * the normal function call return sequence. (Bleah!) * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,11 ---- /* * setjmp.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Declarations supporting setjmp and longjump, a method for avoiding * the normal function call return sequence. (Bleah!) * */ Index: conio.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/conio.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** conio.h 19 Apr 2004 17:22:40 -0000 1.5 --- conio.h 20 Apr 2004 23:26:26 -0000 1.6 *************** *** 1,27 **** /* * conio.h * * Low level console I/O functions. Pretty please try to use the ANSI * standard ones if you are writing new code. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,11 ---- /* * conio.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Low level console I/O functions. Pretty please try to use the ANSI * standard ones if you are writing new code. * */ Index: string.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/string.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** string.h 19 Apr 2004 17:22:40 -0000 1.8 --- string.h 20 Apr 2004 23:26:29 -0000 1.9 *************** *** 1,26 **** /* * string.h * * Definitions for memory and string functions. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * string.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Definitions for memory and string functions. * */ |
From: Earnie B. <ea...@us...> - 2004-04-20 23:28:11
|
Update of /cvsroot/mingw/runtime In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21354 Modified Files: CRT_noglob.c CRTfmode.c CRTglob.c CRTinit.c ChangeLog Makefile.in crt1.c crtdll.def dllcrt1.c dllmain.c gccmain.c init.c isascii.c iscsym.c iscsymf.c jamfile main.c msvcrt.def.in strcasecmp.c strncasecmp.c toascii.c wcscmpi.c Log Message: Merge winsup changes Index: init.c =================================================================== RCS file: /cvsroot/mingw/runtime/init.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** init.c 5 Jun 2001 00:26:30 -0000 1.2 --- init.c 20 Apr 2004 23:26:25 -0000 1.3 *************** *** 1,28 **** /* * init.c * * Code to initialize standard file handles and command line arguments. * This file is #included in both crt1.c and dllcrt1.c. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * Maintained by Mumit Khan <kh...@xr...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,11 ---- /* * init.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Code to initialize standard file handles and command line arguments. * This file is #included in both crt1.c and dllcrt1.c. * */ Index: CRT_noglob.c =================================================================== RCS file: /cvsroot/mingw/runtime/CRT_noglob.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CRT_noglob.c 5 Jun 2001 00:26:30 -0000 1.2 --- CRT_noglob.c 20 Apr 2004 23:26:24 -0000 1.3 *************** *** 1,15 **** /* ! * noglob.c ! * ! * This file defines _CRT_glob to have a value of 0, which will ! * turn off command line globbing. It is compiled into a separate object ! * file which you can add to your link line to turn off globbing like ! * this: * ! * gcc -o foo.exe foo.o noglob.o * ! * $Revision$ ! * $Author$ ! * $Date$ * */ --- 1,13 ---- /* ! * CRT_noglob.c ! * This file has no copyright is assigned and is placed in the Public Domain. ! * This file is a part of the mingw-runtime package. ! * No warranty is given; refer to the file DISCLAIMER within the package. * ! * Include this object file to set _CRT_glob to a state that will turn off ! * command line globbing by default. NOTE: _CRT_glob has a default state of on. * ! * To use this object include the object file in your link command: ! * gcc -o foo.exe foo.o CRT_noglob.o * */ Index: jamfile =================================================================== RCS file: /cvsroot/mingw/runtime/jamfile,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** jamfile 5 Jun 2001 00:26:30 -0000 1.2 --- jamfile 20 Apr 2004 23:26:25 -0000 1.3 *************** *** 2,9 **** # Jamfile for building various libraries and object files for the # Minimalist GNU-Win32 package. ! # ! # $Revision$ ! # $Author$ ! # $Date$ # --- 2,8 ---- # Jamfile for building various libraries and object files for the # Minimalist GNU-Win32 package. ! #* This file has no copyright assigned and is placed in the Public Domain. ! #* This file is a part of the mingw-runtime package. ! #* No warranty is given; refer to the file DISCLAIMER within the package. # Index: Makefile.in =================================================================== RCS file: /cvsroot/mingw/runtime/Makefile.in,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** Makefile.in 19 Apr 2004 17:22:40 -0000 1.26 --- Makefile.in 20 Apr 2004 23:26:25 -0000 1.27 *************** *** 227,231 **** --base-file mingwthrd.base --output-exp mingwthrd.exp ! $(THREAD_DLL_NAME) mingwthrd.def: $(DLL_OFILES) Makefile $(DLLTOOL) --as $(AS) --output-def mingwthrd.def $(DLL_OFILES) $(CC) -Wl,--base-file=mingwthrd.base $(DLL_CC_STUFF) \ --- 227,231 ---- --base-file mingwthrd.base --output-exp mingwthrd.exp ! $(THREAD_DLL_NAME) mingwthrd.def: $(DLL_OFILES) Makefile $(SUBDIRS) $(DLLTOOL) --as $(AS) --output-def mingwthrd.def $(DLL_OFILES) $(CC) -Wl,--base-file=mingwthrd.base $(DLL_CC_STUFF) \ Index: dllmain.c =================================================================== RCS file: /cvsroot/mingw/runtime/dllmain.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** dllmain.c 5 Jun 2001 00:26:30 -0000 1.2 --- dllmain.c 20 Apr 2004 23:26:25 -0000 1.3 *************** *** 1,25 **** /* * dllmain.c * * A stub DllMain function which will be called by DLLs which do not * have a user supplied DllMain. * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,11 ---- /* * dllmain.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * A stub DllMain function which will be called by DLLs which do not * have a user supplied DllMain. * */ Index: gccmain.c =================================================================== RCS file: /cvsroot/mingw/runtime/gccmain.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** gccmain.c 5 Jun 2001 00:26:30 -0000 1.2 --- gccmain.c 20 Apr 2004 23:26:25 -0000 1.3 *************** *** 1,4 **** --- 1,7 ---- /* * gccmain.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * A separate version of __main, __do_global_ctors and __do_global_dtors for *************** *** 7,19 **** * __do_global_ctors. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Code supplied by Stan Cox <sc...@cy...> - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 10,13 ---- Index: strcasecmp.c =================================================================== RCS file: /cvsroot/mingw/runtime/strcasecmp.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** strcasecmp.c 15 Sep 2003 14:23:42 -0000 1.1 --- strcasecmp.c 20 Apr 2004 23:26:25 -0000 1.2 *************** *** 1,4 **** --- 1,7 ---- /* * strcasecmp.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Oldnames from ANSI header string.h *************** *** 7,27 **** * equivalents are not simply underscore prefixed. * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 10,13 ---- Index: crtdll.def =================================================================== RCS file: /cvsroot/mingw/runtime/crtdll.def,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** crtdll.def 14 Jun 2002 15:12:54 -0000 1.3 --- crtdll.def 20 Apr 2004 23:26:25 -0000 1.4 *************** *** 1,24 **** ; ! ; crtdll.def ; ; Exports from crtdll.dll from Windows 95 SYSTEM directory. Hopefully this ; should also work with the crtdll provided with Windows NT. ; ! ; Contributors: ! ; Created by Colin Peters <co...@bi...> ! ; ! ; THIS SOFTWARE IS NOT COPYRIGHTED ! ; ! ; This source code is offered for use in the public domain. You may ! ; use, modify or distribute it freely. ! ; ! ; This code is distributed in the hope that it will be useful but ! ; WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY ! ; DISCLAMED. This includes but is not limited to warrenties of ! ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ! ; ! ; $Revision$ ! ; $Author$ ! ; $Date$ ; ; These three functions appear to be name mangled in some way, so GCC is --- 1,15 ---- ; ! ;* crtdll.def ! ;* This file has no copyright assigned and is placed in the Public Domain. ! ;* This file is a part of the mingw-runtime package. ! ;* No warranty is given; refer to the file DISCLAIMER within the package. ; ; Exports from crtdll.dll from Windows 95 SYSTEM directory. Hopefully this ; should also work with the crtdll provided with Windows NT. ; ! ; NOTE: The crtdll is OBSOLETE and msvcrt should be used instead. The msvcrt ! ; is available for free download from Microsoft Corporation and will work on ! ; Windows 95. Support for the crtdll is deprecated and this file may be ! ; deleted in future versions. ; ; These three functions appear to be name mangled in some way, so GCC is Index: CRTglob.c =================================================================== RCS file: /cvsroot/mingw/runtime/CRTglob.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CRTglob.c 5 Jun 2001 00:26:30 -0000 1.2 --- CRTglob.c 20 Apr 2004 23:26:25 -0000 1.3 *************** *** 1,16 **** /* * CRTglob.c * ! * This object file defines _CRT_glob to have a value of -1, which will ! * turn on command line globbing by default. If you want to turn off ! * command line globbing include a line ! * ! * int _CRT_glob = 0; ! * ! * in one of your source modules. * ! * $Revision$ ! * $Author$ ! * $Date$ * */ --- 1,14 ---- /* * CRTglob.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * ! * Include this object file to set _CRT_glob to a state that will ! * turn on command line globbing by default. NOTE: _CRT_glob has a default ! * state of on. Specify CRT_noglob.o to turn off globbing by default. * ! * To use this object include the object file in your link command: ! * gcc -o foo.exe foo.o CRTglob.o * */ Index: toascii.c =================================================================== RCS file: /cvsroot/mingw/runtime/toascii.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** toascii.c 15 Sep 2003 14:23:42 -0000 1.1 --- toascii.c 20 Apr 2004 23:26:25 -0000 1.2 *************** *** 1,4 **** --- 1,7 ---- /* * toascii.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Oldnames from ANSI header ctype.h *************** *** 7,27 **** * equivalents are not simply underscore prefixed. * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 10,13 ---- Index: CRTinit.c =================================================================== RCS file: /cvsroot/mingw/runtime/CRTinit.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CRTinit.c 5 Jun 2001 00:26:30 -0000 1.2 --- CRTinit.c 20 Apr 2004 23:26:25 -0000 1.3 *************** *** 1,4 **** --- 1,7 ---- /* * CRTinit.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * A dummy version of _CRT_INIT for MS compatibility. Programs, or more often *************** *** 8,27 **** * MSVC runtime, so the dummy call simply does nothing. * ! * Contributors: ! * Created by Colin Peters <co...@bi...> ! * ! * THIS SOFTWARE IS NOT COPYRIGHTED ! * ! * This source code is offered for use in the public domain. You may ! * use, modify or distribute it freely. ! * ! * This code is distributed in the hope that it will be useful but ! * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY ! * DISCLAMED. This includes but is not limited to warrenties of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ! * ! * $Revision$ ! * $Author$ ! * $Date$ * */ --- 11,19 ---- * MSVC runtime, so the dummy call simply does nothing. * ! * This object file is included as a standard in the link process as provided ! * by the appropriate GCC frontend. ! * ! * To use this object include the object file in your link command: ! * gcc -o foo.exe foo.o CRTinit.o * */ Index: dllcrt1.c =================================================================== RCS file: /cvsroot/mingw/runtime/dllcrt1.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** dllcrt1.c 6 Jan 2003 22:14:20 -0000 1.4 --- dllcrt1.c 20 Apr 2004 23:26:25 -0000 1.5 *************** *** 1,28 **** /* * dllcrt1.c * * Initialization code for DLLs. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * DLL support adapted from Gunther Ebert <gun...@ix...> - * Maintained by Mumit Khan <kh...@xr...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ #include <stdlib.h> --- 1,10 ---- /* * dllcrt1.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Initialization code for DLLs. * */ #include <stdlib.h> Index: msvcrt.def.in =================================================================== RCS file: /cvsroot/mingw/runtime/msvcrt.def.in,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** msvcrt.def.in 19 Apr 2004 17:22:40 -0000 1.3 --- msvcrt.def.in 20 Apr 2004 23:26:25 -0000 1.4 *************** *** 2,5 **** --- 2,8 ---- ; __FILENAME__ ; created from msvcrt.def.in + ;* This file has no copyright assigned and is placed in the Public Domain. + ;* This file is a part of the mingw-runtime package. + ;* No warranty is given; refer to the file DISCLAIMER within the package. ; ; Exports from msvcrt.dll, msvcr70.dll and msvcr71.dll *************** *** 9,30 **** ; (and some are not functions at all). ; - ; Contributors: - ; Created by Colin Peters <co...@bi...> - ; MSVCRT 6,10, 7.00, 7.10 additions by Danny Smith <dan...@us...> - ; - ; THIS SOFTWARE IS NOT COPYRIGHTED - ; - ; This source code is offered for use in the public domain. You may - ; use, modify or distribute it freely. - ; - ; This code is distributed in the hope that it will be useful but - ; WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - ; DISCLAMED. This includes but is not limited to warrenties of - ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - ; - ; $Revision$ - ; $Author$ - ; $Date$ - ; EXPORTS _CIacos --- 12,15 ---- Index: ChangeLog =================================================================== RCS file: /cvsroot/mingw/runtime/ChangeLog,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** ChangeLog 19 Apr 2004 17:22:40 -0000 1.58 --- ChangeLog 20 Apr 2004 23:26:25 -0000 1.59 *************** *** 1,2 **** --- 1,58 ---- + 2004-04-20 Earnie Boyd <ea...@us...> + + * 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-19 Earnie Boyd <ea...@us...> Index: main.c =================================================================== RCS file: /cvsroot/mingw/runtime/main.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.c 5 Jun 2001 00:26:30 -0000 1.2 --- main.c 20 Apr 2004 23:26:25 -0000 1.3 *************** *** 1,4 **** --- 1,7 ---- /* * main.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Extra startup code for applications which do not have a main function *************** *** 6,29 **** * applications, but they don't *have* to be. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * Maintained by Mumit Khan <kh...@xr...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 9,12 ---- Index: iscsymf.c =================================================================== RCS file: /cvsroot/mingw/runtime/iscsymf.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** iscsymf.c 15 Sep 2003 14:23:42 -0000 1.1 --- iscsymf.c 20 Apr 2004 23:26:25 -0000 1.2 *************** *** 1,4 **** --- 1,7 ---- /* * iscsymf.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Oldnames from ANSI header ctype.h *************** *** 7,27 **** * equivalents are not simply underscore prefixed. * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 10,13 ---- Index: iscsym.c =================================================================== RCS file: /cvsroot/mingw/runtime/iscsym.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** iscsym.c 15 Sep 2003 14:23:42 -0000 1.1 --- iscsym.c 20 Apr 2004 23:26:25 -0000 1.2 *************** *** 1,4 **** --- 1,7 ---- /* * iscsym.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Oldnames from ANSI header ctype.h *************** *** 7,27 **** * equivalents are not simply underscore prefixed. * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 10,13 ---- Index: wcscmpi.c =================================================================== RCS file: /cvsroot/mingw/runtime/wcscmpi.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wcscmpi.c 15 Sep 2003 14:23:42 -0000 1.1 --- wcscmpi.c 20 Apr 2004 23:26:25 -0000 1.2 *************** *** 1,4 **** --- 1,7 ---- /* * wcscmpi.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Oldnames from ANSI header string.h *************** *** 7,27 **** * equivalents are not simply underscore prefixed. * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 10,13 ---- Index: CRTfmode.c =================================================================== RCS file: /cvsroot/mingw/runtime/CRTfmode.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CRTfmode.c 12 Nov 2002 15:29:34 -0000 1.3 --- CRTfmode.c 20 Apr 2004 23:26:25 -0000 1.4 *************** *** 1,18 **** /* * CRTfmode.c * ! * Sets _CRT_fmode to be zero, which will cause _mingw32_init_fmode to leave ! * all file modes in their default state (basically text mode). ! * ! * This file is part of the Mingw32 package. ! * ! * THIS FILE IS IN THE PUBLIC DOMAIN. ! * ! * Contributers: ! * Created by Colin Peters <co...@fu...> * ! * $Revision$ ! * $Author$ ! * $Date$ * */ --- 1,14 ---- /* * CRTfmode.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * ! * Include this object to set _CRT_fmode to a state that will cause ! * _mingw32_init_fmode to leave all file modes in their default state ! * (basically text mode). * ! * To use this object include the object file in your link command: ! * gcc -o foo.exe foo.o CRTfmode.o * */ Index: crt1.c =================================================================== RCS file: /cvsroot/mingw/runtime/crt1.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** crt1.c 19 Apr 2004 17:22:40 -0000 1.6 --- crt1.c 20 Apr 2004 23:26:25 -0000 1.7 *************** *** 1,28 **** /* * crt1.c * * Source code for the startup proceedures used by all programs. This code * is compiled to make crt1.o, which should be located in the library path. * - * This code is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * Maintained by Mumit Khan <kh...@xr...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,11 ---- /* * crt1.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Source code for the startup proceedures used by all programs. This code * is compiled to make crt1.o, which should be located in the library path. * */ Index: isascii.c =================================================================== RCS file: /cvsroot/mingw/runtime/isascii.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** isascii.c 15 Sep 2003 14:23:42 -0000 1.1 --- isascii.c 20 Apr 2004 23:26:25 -0000 1.2 *************** *** 1,4 **** --- 1,7 ---- /* * isascii.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Oldnames from ANSI header ctype.h *************** *** 7,27 **** * equivalents are not simply underscore prefixed. * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 10,13 ---- |
From: Earnie B. <ea...@us...> - 2004-04-20 23:27:23
|
Update of /cvsroot/mingw/runtime/include/sys In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21354/include/sys Modified Files: locking.h param.h stat.h timeb.h types.h utime.h Log Message: Merge winsup changes Index: param.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/param.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** param.h 19 Apr 2004 17:22:41 -0000 1.4 --- param.h 20 Apr 2004 23:26:30 -0000 1.5 *************** *** 1,23 **** /* * param.h ! * ! * This file is part of the Mingw32 package. ! * ! * Contributors: ! * Created by Earnie Boyd <ea...@us...> ! * ! * THIS SOFTWARE IS NOT COPYRIGHTED ! * ! * This source code is offered for use in the public domain. You may ! * use, modify or distribute it freely. ! * ! * This code is distributed in the hope that it will be useful but ! * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY ! * DISCLAIMED. This includes but is not limited to warranties of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ! * ! * $Revision$ ! * $Author$ ! * $Date$ * */ --- 1,7 ---- /* * param.h ! * This file has no copyright assigned and is placed in the Public Domain. ! * This file is a part of the mingw-runtime package. ! * No warranty is given; refer to the file DISCLAIMER within the package. * */ Index: timeb.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/timeb.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** timeb.h 19 Apr 2004 17:22:41 -0000 1.5 --- timeb.h 20 Apr 2004 23:26:31 -0000 1.6 *************** *** 1,26 **** /* * timeb.h * * Support for the UNIX System V ftime system call. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * timeb.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Support for the UNIX System V ftime system call. * */ Index: stat.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/stat.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** stat.h 19 Apr 2004 17:22:41 -0000 1.6 --- stat.h 20 Apr 2004 23:26:31 -0000 1.7 *************** *** 1,27 **** /* * stat.h * * Symbolic constants for opening and creating files, also stat, fstat and * chmod functions. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,11 ---- /* * stat.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Symbolic constants for opening and creating files, also stat, fstat and * chmod functions. * */ Index: locking.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/locking.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** locking.h 19 Apr 2004 17:22:41 -0000 1.5 --- locking.h 20 Apr 2004 23:26:29 -0000 1.6 *************** *** 1,26 **** /* * locking.h * * Constants for the mode parameter of the locking function. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * locking.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Constants for the mode parameter of the locking function. * */ Index: types.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/types.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** types.h 19 Apr 2004 17:22:41 -0000 1.7 --- types.h 20 Apr 2004 23:26:32 -0000 1.8 *************** *** 1,27 **** /* * types.h * * The definition of constants, data types and global variables. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * Lots of types supplied by Pedro A. Aranda <pa...@ti...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warrenties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 1,10 ---- /* * types.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * The definition of constants, data types and global variables. * */ Index: utime.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/utime.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** utime.h 19 Apr 2004 17:22:41 -0000 1.5 --- utime.h 20 Apr 2004 23:26:32 -0000 1.6 *************** *** 1,26 **** /* * utime.h * * Support for the utime function. * - * This file is part of the Mingw32 package. - * - * Contributors: - * Created by Colin Peters <co...@bi...> - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Revision$ - * $Author$ - * $Date$ - * */ #ifndef _UTIME_H_ --- 1,10 ---- /* * utime.h + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Support for the utime function. * */ #ifndef _UTIME_H_ |
From: Earnie B. <ea...@us...> - 2004-04-20 23:27:17
|
Update of /cvsroot/mingw/runtime/mingwex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21354/mingwex Modified Files: Makefile.in dirent.c Log Message: Merge winsup changes Index: Makefile.in =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/Makefile.in,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Makefile.in 19 Apr 2004 17:22:41 -0000 1.8 --- Makefile.in 20 Apr 2004 23:26:32 -0000 1.9 *************** *** 5,9 **** srcdir = @srcdir@ ! VPATH = $(srcdir):$(srcdir)/math:$(srcdir)/stdio objdir = . --- 5,9 ---- srcdir = @srcdir@ ! VPATH = $(srcdir):$(srcdir)/math:$(srcdir)/stdio:$(srcdir)/complex objdir = . Index: dirent.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/dirent.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** dirent.c 10 Oct 2003 15:02:04 -0000 1.4 --- dirent.c 20 Apr 2004 23:26:34 -0000 1.5 *************** *** 1,4 **** --- 1,7 ---- /* * dirent.c + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. * * Derived from DIRLIB.C by Matt J. Weinstein *************** *** 10,17 **** * Peters <co...@fu...> * - * $Revision$ - * $Author$ - * $Date$ - * */ --- 13,16 ---- |
From: Earnie B. <ea...@us...> - 2004-04-19 17:22:54
|
Update of /cvsroot/mingw/runtime/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27954/include Modified Files: _mingw.h conio.h direct.h dirent.h dos.h excpt.h fcntl.h io.h malloc.h math.h mem.h memory.h process.h search.h share.h signal.h stdint.h stdio.h string.h tchar.h time.h unistd.h wchar.h Added Files: complex.h Log Message: Merging changes from winsup Index: mem.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/mem.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** mem.h 4 Jun 2001 23:26:02 -0000 1.1.1.1 --- mem.h 19 Apr 2004 17:22:40 -0000 1.2 *************** *** 4,8 **** * mem.h maps to string.h */ - #ifndef __STRICT_ANSI__ #include <string.h> - #endif --- 4,6 ---- Index: malloc.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/malloc.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** malloc.h 21 Feb 2003 21:19:51 -0000 1.9 --- malloc.h 19 Apr 2004 17:22:40 -0000 1.10 *************** *** 28,33 **** */ - #ifndef __STRICT_ANSI__ - #ifndef _MALLOC_H_ #define _MALLOC_H_ --- 28,31 ---- *************** *** 82,85 **** --- 80,93 ---- _CRTIMP void* __cdecl _expand (void*, size_t); + /* These require msvcr70.dll or higher. */ + #if __MSVCRT_VERSION__ >= 0x0700 + _CRTIMP void * __cdecl _aligned_offset_malloc(size_t, size_t, size_t); + _CRTIMP void * __cdecl _aligned_offset_realloc(void*, size_t, size_t, size_t); + + _CRTIMP void* __cdecl _aligned_malloc (size_t, size_t); + _CRTIMP void* __cdecl _aligned_realloc (void*, size_t, size_t); + _CRTIMP void __cdecl _aligned_free (void*); + #endif /* __MSVCRT_VERSION__ >= 0x0700 */ + #ifdef __cplusplus } *************** *** 89,93 **** #endif /* Not _MALLOC_H_ */ - - #endif /* Not __STRICT_ANSI__ */ - --- 97,98 ---- Index: excpt.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/excpt.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** excpt.h 12 Aug 2002 13:06:35 -0000 1.4 --- excpt.h 19 Apr 2004 17:22:40 -0000 1.5 *************** *** 35,40 **** #include <_mingw.h> - #ifndef __STRICT_ANSI__ - #include <windef.h> --- 35,38 ---- *************** *** 119,123 **** #endif /* Not RC_INVOKED */ - #endif /* Not strict ANSI */ - #endif /* _EXCPT_H_ not defined */ --- 117,119 ---- Index: time.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/time.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** time.h 3 May 2003 13:48:46 -0000 1.7 --- time.h 19 Apr 2004 17:22:41 -0000 1.8 *************** *** 63,66 **** --- 63,73 ---- #endif + #ifndef __STRICT_ANSI__ + /* A 64-bit time_t to get to Y3K */ + #ifndef _TIME64_T_DEFINED + typedef __int64 __time64_t + #define _TIME64_T_DEFINED + #endif + #endif /* * A type for measuring processor time (in clock ticks). *************** *** 71,75 **** #endif - /* * A structure for storing all kinds of useful information about the --- 78,81 ---- *************** *** 114,123 **** _CRTIMP struct tm* __cdecl localtime (const time_t*); ! ! _CRTIMP size_t __cdecl strftime (char*, size_t, const char*, const struct tm*); ! ! _CRTIMP size_t __cdecl wcsftime (wchar_t*, size_t, const wchar_t*, const struct tm*); #ifndef __STRICT_ANSI__ extern _CRTIMP void __cdecl _tzset (void); --- 120,127 ---- _CRTIMP struct tm* __cdecl localtime (const time_t*); ! _CRTIMP size_t __cdecl strftime (char*, size_t, const char*, const struct tm*); #ifndef __STRICT_ANSI__ + extern _CRTIMP void __cdecl _tzset (void); *************** *** 129,133 **** _CRTIMP char* __cdecl _strtime(char*); ! #endif /* Not __STRICT_ANSI__ */ /* --- 133,144 ---- _CRTIMP char* __cdecl _strtime(char*); ! /* These require newer versions of msvcrt.dll (6.10 or higher). */ ! #if __MSVCRT_VERSION__ >= 0x0601 ! _CRTIMP __time64_t __cdecl _time64( __time64_t); ! _CRTIMP __time64_t __cdecl _mktime64 (struct tm*); ! _CRTIMP char* __cdecl _ctime64 (const __time64_t*); ! _CRTIMP struct tm* __cdecl _gmtime64 (const __time64_t*); ! _CRTIMP struct tm* __cdecl _localtime64 (const __time64_t*); ! #endif /* __MSVCRT_VERSION__ >= 0x0601 */ /* *************** *** 182,198 **** __MINGW_IMPORT char *tzname[2]; - #ifndef _WTIME_DEFINED - - /* wide function prototypes, also declared in wchar.h */ - - _CRTIMP wchar_t* __cdecl _wasctime(const struct tm*); - _CRTIMP wchar_t* __cdecl _wctime(const time_t*); - _CRTIMP wchar_t* __cdecl _wstrdate(wchar_t*); - _CRTIMP wchar_t* __cdecl _wstrtime(wchar_t*); - - #define _WTIME_DEFINED - #endif /* _WTIME_DEFINED */ - - #else /* not __MSVCRT__ */ --- 193,196 ---- *************** *** 209,212 **** --- 207,228 ---- #endif /* Not _NO_OLDNAMES */ + #endif /* Not __STRICT_ANSI__ */ + + #ifndef __STRICT_ANSI__ + #ifndef _WTIME_DEFINED + /* wide function prototypes, also declared in wchar.h */ + #ifdef __MSVCRT__ + _CRTIMP wchar_t* __cdecl _wasctime(const struct tm*); + _CRTIMP wchar_t* __cdecl _wctime(const time_t*); + _CRTIMP wchar_t* __cdecl _wstrdate(wchar_t*); + _CRTIMP wchar_t* __cdecl _wstrtime(wchar_t*); + #if __MSVCRT_VERSION__ >= 0x0601 + _CRTIMP wchar_t* __cdecl _wctime64 (const __time64_t*); + #endif + #endif /* __MSVCRT__ */ + _CRTIMP size_t __cdecl wcsftime (wchar_t*, size_t, const wchar_t*, const struct tm*); + #define _WTIME_DEFINED + #endif /* _WTIME_DEFINED */ + #endif /* __STRICT_ANSI__ */ #ifdef __cplusplus Index: fcntl.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/fcntl.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** fcntl.h 12 Nov 2002 15:29:38 -0000 1.6 --- fcntl.h 19 Apr 2004 17:22:40 -0000 1.7 *************** *** 25,31 **** * */ - - #ifndef __STRICT_ANSI__ - #ifndef _FCNTL_H_ #define _FCNTL_H_ --- 25,28 ---- *************** *** 87,91 **** #endif /* Not _FCNTL_H_ */ - - #endif /* Not __STRICT_ANSI__ */ - --- 84,85 ---- Index: direct.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/direct.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** direct.h 21 Feb 2003 21:19:51 -0000 1.4 --- direct.h 19 Apr 2004 17:22:40 -0000 1.5 *************** *** 25,31 **** * */ - - #ifndef __STRICT_ANSI__ - #ifndef _DIRECT_H_ #define _DIRECT_H_ --- 25,28 ---- *************** *** 91,95 **** #endif /* Not _DIRECT_H_ */ - - #endif /* Not __STRICT_ANSI__ */ - --- 88,89 ---- Index: dos.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/dos.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** dos.h 21 Feb 2003 21:19:51 -0000 1.5 --- dos.h 19 Apr 2004 17:22:40 -0000 1.6 *************** *** 25,30 **** */ - #ifndef __STRICT_ANSI__ - #ifndef _DOS_H_ #define _DOS_H_ --- 25,28 ---- *************** *** 106,110 **** #endif /* Not _DOS_H_ */ - - #endif /* Not __STRICT_ANSI__ */ - --- 104,105 ---- Index: math.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/math.h,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** math.h 10 Oct 2003 15:02:04 -0000 1.16 --- math.h 19 Apr 2004 17:22:40 -0000 1.17 *************** *** 176,180 **** #ifndef __STRICT_ANSI__ ! /* Complex number (for cabs). This really belongs in complex.h */ struct _complex { --- 176,182 ---- #ifndef __STRICT_ANSI__ ! /* Complex number (for _cabs). This is the MS version. The ISO ! C99 counterpart _Complex is an intrinsic type in GCC and ! 'complex' is defined as a macro. See complex.h */ struct _complex { *************** *** 221,225 **** #if !defined (_NO_OLDNAMES) - _CRTIMP double __cdecl cabs (struct _complex); _CRTIMP double __cdecl j0 (double); _CRTIMP double __cdecl j1 (double); --- 223,226 ---- *************** *** 234,239 **** --- 235,257 ---- _CRTIMP int __cdecl fpclass (double); + #define FP_SNAN _FPCLASS_SNAN + #define FP_QNAN _FPCLASS_QNAN + #define FP_NINF _FPCLASS_NINF + #define FP_PINF _FPCLASS_PINF + #define FP_NDENORM _FPCLASS_ND + #define FP_PDENORM _FPCLASS_PD + #define FP_NZERO _FPCLASS_NZ + #define FP_PZERO _FPCLASS_PZ + #define FP_NNORM _FPCLASS_NN + #define FP_PNORM _FPCLASS_PN + #endif /* Not _NO_OLDNAMES */ + /* This require msvcr70.dll or higher. */ + #if __MSVCRT_VERSION__ >= 0x0700 + _CRTIMP int __cdecl _set_SSE2_enable (int); + #endif /* __MSVCRT_VERSION__ >= 0x0700 */ + + #endif /* __STRICT_ANSI__ */ *************** *** 241,245 **** #ifndef __NO_ISOCEXT #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \ ! || !defined __STRICT_ANSI__ || defined __GLIBCPP__ #define NAN (0.0F/0.0F) --- 259,263 ---- #ifndef __NO_ISOCEXT #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \ ! || !defined __STRICT_ANSI__ || defined __cplusplus #define NAN (0.0F/0.0F) Index: memory.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/memory.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** memory.h 4 Jun 2001 23:26:02 -0000 1.1.1.1 --- memory.h 19 Apr 2004 17:22:40 -0000 1.2 *************** *** 4,9 **** * memory.h maps to the standard string.h header. */ - #ifndef __STRICT_ANSI__ - #include <string.h> - #endif --- 4,7 ---- * memory.h maps to the standard string.h header. */ + #include <string.h> Index: io.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/io.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** io.h 10 Oct 2003 15:02:04 -0000 1.8 --- io.h 19 Apr 2004 17:22:40 -0000 1.9 *************** *** 24,30 **** * */ - - #ifndef __STRICT_ANSI__ - #ifndef _IO_H_ #define _IO_H_ --- 24,27 ---- *************** *** 36,42 **** * NOTE: This also defines off_t, the file offset type, through * an inclusion of sys/types.h */ - #ifndef __STRICT_ANSI__ ! #include <sys/types.h> /* To get time_t. */ /* --- 33,39 ---- * NOTE: This also defines off_t, the file offset type, through * an inclusion of sys/types.h */ ! #include <sys/types.h> /* To get time_t. */ ! #include <stdint.h> /* For intptr_t. */ /* *************** *** 91,94 **** --- 88,99 ---- }; + struct __finddata64_t { + unsigned attrib; + __time64_t time_create; + __time64_t time_access; + __time64_t time_write; + _fsize_t size; + char name[FILENAME_MAX]; + }; #ifndef _WFINDDATA_T_DEFINED *************** *** 101,104 **** --- 106,110 ---- wchar_t name[FILENAME_MAX]; /* may include spaces. */ }; + struct _wfinddatai64_t { unsigned attrib; *************** *** 110,113 **** --- 116,128 ---- }; + struct __wfinddata64_t { + unsigned attrib; + __time64_t time_create; + __time64_t time_access; + __time64_t time_write; + _fsize_t size; + wchar_t name[FILENAME_MAX]; + }; + #define _WFINDDATA_T_DEFINED #endif *************** *** 123,129 **** * and 0 if a match was found. Call _findclose when you are finished. */ ! _CRTIMP int __cdecl _findfirst (const char*, struct _finddata_t*); ! _CRTIMP int __cdecl _findnext (int, struct _finddata_t*); ! _CRTIMP int __cdecl _findclose (int); _CRTIMP int __cdecl _chdir (const char*); --- 138,145 ---- * and 0 if a match was found. Call _findclose when you are finished. */ ! /* FIXME: Should these all use intptr_t, as per recent MSDN docs? */ ! _CRTIMP long __cdecl _findfirst (const char*, struct _finddata_t*); ! _CRTIMP int __cdecl _findnext (long, struct _finddata_t*); ! _CRTIMP int __cdecl _findclose (long); _CRTIMP int __cdecl _chdir (const char*); *************** *** 134,138 **** _CRTIMP int __cdecl _chmod (const char*, int); - #ifdef __MSVCRT__ _CRTIMP __int64 __cdecl _filelengthi64(int); --- 150,153 ---- *************** *** 141,147 **** _CRTIMP __int64 __cdecl _lseeki64(int, __int64, int); _CRTIMP __int64 __cdecl _telli64(int); #endif /* __MSVCRT__ */ - #ifndef _NO_OLDNAMES --- 156,166 ---- _CRTIMP __int64 __cdecl _lseeki64(int, __int64, int); _CRTIMP __int64 __cdecl _telli64(int); + /* These require newer versions of msvcrt.dll (6.1 or higher). */ + #if __MSVCRT_VERSION__ >= 0x0601 + _CRTIMP intptr_t __cdecl _findfirst64(const char*, struct __finddata64_t*); + _CRTIMP intptr_t __cdecl _findnext64(intptr_t, struct __finddata64_t*); + #endif /* __MSVCRT_VERSION__ >= 0x0601 */ #endif /* __MSVCRT__ */ #ifndef _NO_OLDNAMES *************** *** 163,173 **** #endif /* Not RC_INVOKED */ - #endif /* Not __STRICT_ANSI__ */ - /* TODO: Maximum number of open handles has not been tested, I just set * it the same as FOPEN_MAX. */ #define HANDLE_MAX FOPEN_MAX - /* Some defines for _access nAccessMode (MS doesn't define them, but * it doesn't seem to hurt to add them). */ --- 182,189 ---- *************** *** 245,248 **** --- 261,268 ---- _CRTIMP long __cdecl _wfindfirsti64(const wchar_t*, struct _wfinddatai64_t*); _CRTIMP int __cdecl _wfindnexti64(long, struct _wfinddatai64_t*); + #if __MSVCRT_VERSION__ >= 0x0601 + _CRTIMP intptr_t __cdecl _wfindfirst64(const wchar_t*, struct __wfinddata64_t*); + _CRTIMP intptr_t __cdecl _wfindnext64(intptr_t, struct __wfinddata64_t*); + #endif #endif /* defined (__MSVCRT__) */ #define _WIO_DEFINED *************** *** 300,304 **** #endif /* _IO_H_ not defined */ - - #endif /* Not strict ANSI */ - --- 320,321 ---- Index: stdint.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/stdint.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** stdint.h 12 Nov 2002 15:29:39 -0000 1.4 --- stdint.h 19 Apr 2004 17:22:40 -0000 1.5 *************** *** 164,186 **** TC1 changed this to require just an integer constant *expression* with *promoted* type." - - The trick used here is from Clive D W Feather. */ ! #define INT8_C(val) (INT_LEAST8_MAX-INT_LEAST8_MAX+(val)) ! #define INT16_C(val) (INT_LEAST16_MAX-INT_LEAST16_MAX+(val)) ! #define INT32_C(val) (INT_LEAST32_MAX-INT_LEAST32_MAX+(val)) ! /* The 'trick' doesn't work in C89 for long long because, without ! suffix, (val) will be evaluated as int, not intmax_t */ ! #define INT64_C(val) val##LL ! #define UINT8_C(val) (UINT_LEAST8_MAX-UINT_LEAST8_MAX+(val)) ! #define UINT16_C(val) (UINT_LEAST16_MAX-UINT_LEAST16_MAX+(val)) ! #define UINT32_C(val) (UINT_LEAST32_MAX-UINT_LEAST32_MAX+(val)) #define UINT64_C(val) val##ULL /* 7.18.4.2 Macros for greatest-width integer constants */ ! #define INTMAX_C(val) val##LL ! #define UINTMAX_C(val) val##ULL #endif /* !defined ( __cplusplus) || defined __STDC_CONSTANT_MACROS */ --- 164,182 ---- TC1 changed this to require just an integer constant *expression* with *promoted* type." */ ! #define INT8_C(val) ((int8_t) + (val)) ! #define UINT8_C(val) ((uint8_t) + (val##U)) ! #define INT16_C(val) ((int16_t) + (val)) ! #define UINT16_C(val) ((uint16_t) + (val##U)) ! #define INT32_C(val) val##L ! #define UINT32_C(val) val##UL ! #define INT64_C(val) val##LL #define UINT64_C(val) val##ULL /* 7.18.4.2 Macros for greatest-width integer constants */ ! #define INTMAX_C(val) INT64_C(val) ! #define UINTMAX_C(val) UINT64_C(val) #endif /* !defined ( __cplusplus) || defined __STDC_CONSTANT_MACROS */ Index: signal.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/signal.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** signal.h 21 Feb 2003 21:19:52 -0000 1.4 --- signal.h 19 Apr 2004 17:22:40 -0000 1.5 *************** *** 79,87 **** * These are special values of signal handler pointers which are * used to send a signal to the default handler (SIG_DFL), ignore ! * the signal (SIG_IGN), or indicate an error return (SIG_ERR). */ #define SIG_DFL ((__p_sig_fn_t) 0) #define SIG_IGN ((__p_sig_fn_t) 1) #define SIG_ERR ((__p_sig_fn_t) -1) #ifdef __cplusplus --- 79,90 ---- * These are special values of signal handler pointers which are * used to send a signal to the default handler (SIG_DFL), ignore ! * the signal (SIG_IGN), indicate an error return (SIG_ERR), ! * get an error (SIG_SGE), or acknowledge (SIG_ACK). */ #define SIG_DFL ((__p_sig_fn_t) 0) #define SIG_IGN ((__p_sig_fn_t) 1) #define SIG_ERR ((__p_sig_fn_t) -1) + #define SIG_SGE ((__p_sig_fn_t) 3) + #define SIG_ACK ((__p_sig_fn_t) 4) #ifdef __cplusplus Index: stdio.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/stdio.h,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** stdio.h 10 Oct 2003 15:02:04 -0000 1.15 --- stdio.h 19 Apr 2004 17:22:40 -0000 1.16 *************** *** 198,206 **** --- 198,211 ---- _CRTIMP FILE* __cdecl tmpfile (void); _CRTIMP char* __cdecl tmpnam (char*); + + #ifndef __STRICT_ANSI__ _CRTIMP char* __cdecl _tempnam (const char*, const char*); + _CRTIMP int __cdecl _rmtmp(void); #ifndef NO_OLDNAMES _CRTIMP char* __cdecl tempnam (const char*, const char*); + _CRTIMP int __cdecl rmtmp(void); #endif + #endif /* __STRICT_ANSI__ */ _CRTIMP int __cdecl setvbuf (FILE*, char*, int, size_t); *************** *** 266,270 **** { return (--__F->_cnt >= 0) ! ? (int) *__F->_ptr++ : _filbuf (__F); } --- 271,275 ---- { return (--__F->_cnt >= 0) ! ? (int) (unsigned char) *__F->_ptr++ : _filbuf (__F); } *************** *** 273,277 **** { return (--__F->_cnt >= 0) ! ? (int)(*__F->_ptr++ = (char)__c) : _flsbuf (__c, __F); } --- 278,282 ---- { return (--__F->_cnt >= 0) ! ? (int) (unsigned char) (*__F->_ptr++ = (char)__c) : _flsbuf (__c, __F); } *************** *** 280,284 **** { return (--stdin->_cnt >= 0) ! ? (int) *stdin->_ptr++ : _filbuf (stdin); } --- 285,289 ---- { return (--stdin->_cnt >= 0) ! ? (int) (unsigned char) *stdin->_ptr++ : _filbuf (stdin); } *************** *** 287,291 **** { return (--stdout->_cnt >= 0) ! ? (int)(*stdout->_ptr++ = (char)__c) : _flsbuf (__c, stdout);} --- 292,296 ---- { return (--stdout->_cnt >= 0) ! ? (int) (unsigned char) (*stdout->_ptr++ = (char)__c) : _flsbuf (__c, stdout);} *************** *** 348,354 **** */ - _CRTIMP void __cdecl clearerr (FILE*); _CRTIMP int __cdecl feof (FILE*); _CRTIMP int __cdecl ferror (FILE*); _CRTIMP void __cdecl perror (const char*); --- 353,370 ---- */ _CRTIMP int __cdecl feof (FILE*); _CRTIMP int __cdecl ferror (FILE*); + + #ifdef __cplusplus + inline int __cdecl feof (FILE* __F) + { return __F->_flag & _IOEOF; } + inline int __cdecl ferror (FILE* __F) + { return __F->_flag & _IOERR; } + #else + #define feof(__F) ((__F)->_flag & _IOEOF) + #define ferror(__F) ((__F)->_flag & _IOERR) + #endif + + _CRTIMP void __cdecl clearerr (FILE*); _CRTIMP void __cdecl perror (const char*); *************** *** 375,378 **** --- 391,395 ---- _CRTIMP int __cdecl _fileno (FILE*); _CRTIMP int __cdecl _fcloseall(void); + _CRTIMP FILE* __cdecl _fsopen(const char*, const char*, int); #ifdef __MSVCRT__ _CRTIMP int __cdecl _getmaxstdio(void); *************** *** 380,385 **** #endif - #define _fileno(__F) ((__F)->_file) - #ifndef _NO_OLDNAMES _CRTIMP int __cdecl fgetchar (void); --- 397,400 ---- *************** *** 387,394 **** _CRTIMP FILE* __cdecl fdopen (int, const char*); _CRTIMP int __cdecl fileno (FILE*); #define fileno(__F) ((__F)->_file) ! ! #endif /* Not _NO_OLDNAMES */ #endif /* Not __STRICT_ANSI__ */ --- 402,411 ---- _CRTIMP FILE* __cdecl fdopen (int, const char*); _CRTIMP int __cdecl fileno (FILE*); + #endif /* Not _NO_OLDNAMES */ + #define _fileno(__F) ((__F)->_file) + #ifndef _NO_OLDNAMES #define fileno(__F) ((__F)->_file) ! #endif #endif /* Not __STRICT_ANSI__ */ Index: search.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/search.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** search.h 15 Sep 2003 14:23:42 -0000 1.1 --- search.h 19 Apr 2004 17:22:40 -0000 1.2 *************** *** 44,48 **** int (*)(const void*, const void*)); - #ifndef __STRICT_ANSI__ _CRTIMP void* __cdecl _lfind (const void*, const void*, unsigned int*, unsigned int, int (*)(const void*, const void*)); --- 44,47 ---- *************** *** 56,60 **** int (*)(const void*, const void*)); #endif - #endif /* __STRICT_ANSI__ */ #ifdef __cplusplus --- 55,58 ---- Index: process.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/process.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** process.h 15 Sep 2003 14:18:35 -0000 1.5 --- process.h 19 Apr 2004 17:22:40 -0000 1.6 *************** *** 25,30 **** */ - #ifndef __STRICT_ANSI__ - #ifndef _PROCESS_H_ #define _PROCESS_H_ --- 25,28 ---- *************** *** 155,159 **** #endif /* _PROCESS_H_ not defined */ - - #endif /* Not __STRICT_ANSI__ */ - --- 153,154 ---- Index: _mingw.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/_mingw.h,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** _mingw.h 10 Oct 2003 15:02:04 -0000 1.18 --- _mingw.h 19 Apr 2004 17:22:40 -0000 1.19 *************** *** 53,56 **** --- 53,57 ---- # endif # define __DECLSPEC_SUPPORTED + # define __attribute__(x) /* nothing */ #else /* __GNUC__ */ # ifdef __declspec *************** *** 107,113 **** #endif ! #define __MINGW32_VERSION 3.2 #define __MINGW32_MAJOR_VERSION 3 ! #define __MINGW32_MINOR_VERSION 2 #endif /* __MINGW_H */ --- 108,129 ---- #endif ! #ifdef __cplusplus ! # define __UNUSED_PARAM(x) ! #else ! # ifdef __GNUC__ ! # define __UNUSED_PARAM(x) x __attribute__((unused)) ! # else ! # define __UNUSED_PARAM(x) x ! # endif ! #endif ! ! #ifndef __MSVCRT_VERSION__ ! /* High byte is the major version, low byte is the minor. */ ! # define __MSVCRT_VERSION__ 0x0600 ! #endif ! ! #define __MINGW32_VERSION 3.3 #define __MINGW32_MAJOR_VERSION 3 ! #define __MINGW32_MINOR_VERSION 3 #endif /* __MINGW_H */ Index: tchar.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/tchar.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** tchar.h 3 May 2003 13:48:46 -0000 1.11 --- tchar.h 19 Apr 2004 17:22:40 -0000 1.12 *************** *** 101,104 **** --- 101,105 ---- #define _getts _getws #define _puttc putwc + #define _puttchar putwchar #define _putts _putws #define _ungettc ungetwc *************** *** 190,193 **** --- 191,195 ---- #define _tfdopen _wfdopen #define _tfopen _wfopen + #define _tfsopen _wfsopen #define _tgetenv _wgetenv #define _tputenv _wputenv *************** *** 274,277 **** --- 276,280 ---- #define _tfdopen _fdopen #define _tfopen fopen + #define _tfsopen _fsopen #define _tgetenv getenv #define _tputenv _putenv *************** *** 283,286 **** --- 286,290 ---- #define _getts gets #define _puttc putc + #define _puttchar putchar #define _putts puts #define _ungettc ungetc Index: dirent.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/dirent.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** dirent.h 15 Sep 2003 14:18:35 -0000 1.6 --- dirent.h 19 Apr 2004 17:22:40 -0000 1.7 *************** *** 21,27 **** * */ - - #ifndef __STRICT_ANSI__ - #ifndef _DIRENT_H_ #define _DIRENT_H_ --- 21,24 ---- *************** *** 141,145 **** #endif /* Not _DIRENT_H_ */ - - #endif /* Not __STRICT_ANSI__ */ - --- 138,139 ---- Index: share.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/share.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** share.h 12 Aug 2002 13:06:35 -0000 1.4 --- share.h 19 Apr 2004 17:22:40 -0000 1.5 *************** *** 25,30 **** */ - #ifndef __STRICT_ANSI__ - #ifndef _SHARE_H_ #define _SHARE_H_ --- 25,28 ---- *************** *** 39,44 **** #define _SH_DENYNO 0x40 /* Deny nothing */ - #ifndef __STRICT_ANSI__ - #ifndef _NO_OLDNAMES --- 37,40 ---- *************** *** 51,58 **** #endif /* Not _NO_OLDNAMES */ - #endif /* Not __STRICT_ANSI__ */ - #endif /* Not _SHARE_H_ */ - - #endif /* Not __STRICT_ANSI__ */ - --- 47,49 ---- Index: wchar.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/wchar.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wchar.h 10 Oct 2003 15:02:04 -0000 1.11 --- wchar.h 19 Apr 2004 17:22:41 -0000 1.12 *************** *** 37,40 **** --- 37,41 ---- #include <time.h> #include <sys/types.h> + #include <stdint.h> #define __need_size_t *************** *** 63,80 **** #ifndef _WFINDDATA_T_DEFINED struct _wfinddata_t { ! unsigned attrib; ! time_t time_create; /* -1 for FAT file systems */ ! time_t time_access; /* -1 for FAT file systems */ ! time_t time_write; ! _fsize_t size; ! wchar_t name[FILENAME_MAX]; /* may include spaces. */ }; struct _wfinddatai64_t { ! unsigned attrib; ! time_t time_create; ! time_t time_access; ! time_t time_write; ! __int64 size; ! wchar_t name[FILENAME_MAX]; }; #define _WFINDDATA_T_DEFINED --- 64,89 ---- #ifndef _WFINDDATA_T_DEFINED struct _wfinddata_t { ! unsigned attrib; ! time_t time_create; /* -1 for FAT file systems */ ! time_t time_access; /* -1 for FAT file systems */ ! time_t time_write; ! _fsize_t size; ! wchar_t name[FILENAME_MAX]; /* may include spaces. */ }; struct _wfinddatai64_t { ! unsigned attrib; ! time_t time_create; ! time_t time_access; ! time_t time_write; ! __int64 size; ! wchar_t name[FILENAME_MAX]; ! }; ! struct __wfinddata64_t { ! unsigned attrib; ! __time64_t time_create; ! __time64_t time_access; ! __time64_t time_write; ! _fsize_t size; ! wchar_t name[FILENAME_MAX]; }; #define _WFINDDATA_T_DEFINED *************** *** 97,100 **** --- 106,113 ---- _CRTIMP long __cdecl _wfindfirsti64 (const wchar_t*, struct _wfinddatai64_t*); _CRTIMP int __cdecl _wfindnexti64 (long, struct _wfinddatai64_t*); + #if __MSVCRT_VERSION__ >= 0x0601 + _CRTIMP intptr_t __cdecl _wfindfirst64(const wchar_t*, struct __wfinddata64_t*); + _CRTIMP intptr_t __cdecl _wfindnext64(intptr_t, struct __wfinddata64_t*); + #endif #endif /* defined (__MSVCRT__) */ #define _WIO_DEFINED *************** *** 219,222 **** --- 232,250 ---- time_t st_ctime; }; + + struct __stat64 + { + _dev_t st_dev; + _ino_t st_ino; + _mode_t st_mode; + short st_nlink; + short st_uid; + short st_gid; + _dev_t st_rdev; + _off_t st_size; + __time64_t st_atime; + __time64_t st_mtime; + __time64_t st_ctime; + }; #endif /* __MSVCRT__ */ #define _STAT_DEFINED *************** *** 228,231 **** --- 256,262 ---- _CRTIMP int __cdecl _wstat (const wchar_t*, struct _stat*); _CRTIMP int __cdecl _wstati64 (const wchar_t*, struct _stati64*); + #if __MSVCRT_VERSION__ >= 0x0601 + _CRTIMP int __cdecl _wstat64 (const wchar_t*, struct __stat64*); + #endif /* __MSVCRT_VERSION__ >= 0x0601 */ #endif /* __MSVCRT__ */ #define _WSTAT_DEFINED *************** *** 239,242 **** --- 270,276 ---- _CRTIMP wchar_t* __cdecl _wstrdate (wchar_t*); _CRTIMP wchar_t* __cdecl _wstrtime (wchar_t*); + #if __MSVCRT_VERSION__ >= 0x601 + _CRTIMP wchar_t* __cdecl _wctime64 (const __time64_t*); + #endif #endif /* __MSVCRT__ */ _CRTIMP size_t __cdecl wcsftime (wchar_t*, size_t, const wchar_t*, const struct tm*); *************** *** 299,304 **** #ifndef __NO_ISOCEXT /* these need static lib libmingwex.a */ ! __CRT_INLINE int __cdecl fwide(FILE* stream, int mode) {return -1;} /* limited to byte orientation */ ! __CRT_INLINE int __cdecl mbsinit(const mbstate_t* ps) {return 1;} wchar_t* __cdecl wmemset(wchar_t* s, wchar_t c, size_t n); wchar_t* __cdecl wmemchr(const wchar_t* s, wchar_t c, size_t n); --- 333,340 ---- #ifndef __NO_ISOCEXT /* these need static lib libmingwex.a */ ! __CRT_INLINE int __cdecl fwide(FILE* __UNUSED_PARAM(stream), int __UNUSED_PARAM(mode)) ! {return -1;} /* limited to byte orientation */ ! __CRT_INLINE int __cdecl mbsinit(const mbstate_t* __UNUSED_PARAM(ps)) ! {return 1;} wchar_t* __cdecl wmemset(wchar_t* s, wchar_t c, size_t n); wchar_t* __cdecl wmemchr(const wchar_t* s, wchar_t c, size_t n); *************** *** 313,317 **** #endif /* __NO_ISOCEXT */ - #ifdef __cplusplus } /* end of extern "C" */ --- 349,352 ---- --- NEW FILE: complex.h --- /* * complex.h * * This file is part of the Mingw32 package. * * Contributors: * Created by Danny Smith <dan...@us...> * * THIS SOFTWARE IS NOT COPYRIGHTED * * This source code is offered for use in the public domain. You may * use, modify or distribute it freely. * * This code is distributed in the hope that it will be useful but * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY * DISCLAIMED. This includes but is not limited to warranties of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * */ #ifndef _COMPLEX_H_ #define _COMPLEX_H_ /* All the headers include this file. */ #include <_mingw.h> #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \ || !defined __STRICT_ANSI__ /* These macros are specified by C99 standard */ #ifndef __cplusplus #define complex _Complex #endif #define _Complex_I (0.0F + 1.0iF) /* GCC doesn't support _Imaginary type yet, so we don't define _Imaginary_I */ #define I _Complex_I #ifdef __cplusplus extern "C" { #endif #ifndef RC_INVOKED /* TODO: float and long double versions */ double __attribute__ ((const)) creal (double _Complex); double __attribute__ ((const)) cimag (double _Complex); double __attribute__ ((const)) carg (double _Complex); double __attribute__ ((const)) cabs (double _Complex); double _Complex __attribute__ ((const)) cconj (double _Complex); double _Complex __attribute__ ((const)) cacos (double _Complex); double _Complex __attribute__ ((const)) casin (double _Complex); double _Complex __attribute__ ((const)) catan (double _Complex); double _Complex __attribute__ ((const)) ccos (double _Complex); double _Complex __attribute__ ((const)) csin (double _Complex); double _Complex __attribute__ ((const)) ctan (double _Complex); double _Complex __attribute__ ((const)) cacosh (double _Complex); double _Complex __attribute__ ((const)) casinh (double _Complex); double _Complex __attribute__ ((const)) catanh (double _Complex); double _Complex __attribute__ ((const)) ccosh (double _Complex); double _Complex __attribute__ ((const)) csinh (double _Complex); double _Complex __attribute__ ((const)) ctanh (double _Complex); double _Complex __attribute__ ((const)) cexp (double _Complex); double _Complex __attribute__ ((const)) clog (double _Complex); double _Complex __attribute__ ((const)) cpow (double _Complex, double _Complex); double _Complex __attribute__ ((const)) csqrt (double _Complex); double _Complex __attribute__ ((const)) cproj (double _Complex); #ifdef __GNUC__ __CRT_INLINE double __attribute__ ((const)) creal (double _Complex _Z) { return __real__ _Z; } __CRT_INLINE double __attribute__ ((const)) cimag (double _Complex _Z) { return __imag__ _Z; } __CRT_INLINE double _Complex __attribute__ ((const)) conj (double _Complex _Z) { return __extension__ ~_Z; } __CRT_INLINE double __attribute__ ((const)) carg (double _Complex _Z) { double res; __asm__ ("fpatan;" : "=t" (res) : "0" (__real__ _Z), "u" (__imag__ _Z) : "st(1)"); return res; } #endif /* __GNUC__ */ #endif /* RC_INVOKED */ #ifdef __cplusplus } #endif #endif /* __STDC_VERSION__ >= 199901L */ #endif /* _COMPLEX_H */ Index: unistd.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/unistd.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** unistd.h 11 Mar 2003 15:34:27 -0000 1.3 --- unistd.h 19 Apr 2004 17:22:41 -0000 1.4 *************** *** 5,9 **** */ ! #ifndef __STRICT_ANSI__ #include <io.h> --- 5,10 ---- */ ! #ifndef _UNISTD_H ! #define _UNISTD_H #include <io.h> *************** *** 14,17 **** #undef __UNISTD_GETOPT__ ! #endif ! --- 15,17 ---- #undef __UNISTD_GETOPT__ ! #endif /* _UNISTD_H */ Index: conio.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/conio.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** conio.h 21 Feb 2003 21:19:51 -0000 1.4 --- conio.h 19 Apr 2004 17:22:40 -0000 1.5 *************** *** 26,31 **** */ - #ifndef __STRICT_ANSI__ - #ifndef _CONIO_H_ #define _CONIO_H_ --- 26,29 ---- *************** *** 70,73 **** #endif /* Not _CONIO_H_ */ - - #endif /* Not __STRICT_ANSI__ */ --- 68,69 ---- Index: string.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/string.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** string.h 10 Oct 2003 15:02:04 -0000 1.7 --- string.h 19 Apr 2004 17:22:40 -0000 1.8 *************** *** 141,145 **** #ifdef __MSVCRT__ _CRTIMP int __cdecl _wcsncoll(const wchar_t*, const wchar_t*, size_t); ! _CRTIMP int __cdecl _wcsnicoll(const wchar_t*, const wchar_t*, size_t); #endif --- 141,149 ---- #ifdef __MSVCRT__ _CRTIMP int __cdecl _wcsncoll(const wchar_t*, const wchar_t*, size_t); ! _CRTIMP int __cdecl _wcsnicoll(const wchar_t*, const wchar_t*, size_t); ! #if __MSVCRT_VERSION__ >= 0x0700 ! _CRTIMP wchar_t* __cdecl _wcserror(int); ! _CRTIMP wchar_t* __cdecl __wcserror(const wchar_t*); ! #endif #endif |
From: Earnie B. <ea...@us...> - 2004-04-19 17:22:53
|
Update of /cvsroot/mingw/runtime/mingwex/math In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27954/mingwex/math Modified Files: cephes_emath.h cephes_mconf.h ldexpl.c powl.c round.c roundf.c roundl.c s_erf.c sf_erf.c Log Message: Merging changes from winsup Index: s_erf.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/s_erf.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** s_erf.c 20 Dec 2002 13:35:27 -0000 1.1 --- s_erf.c 19 Apr 2004 17:22:42 -0000 1.2 *************** *** 111,114 **** --- 111,115 ---- #include <math.h> #include <stdint.h> + #include <errno.h> #define __ieee754_exp exp *************** *** 338,341 **** --- 339,344 ---- if(hx>0) return r/x; else return two-r/x; } else { + /* set range error */ + errno = ERANGE; if(hx>0) return tiny*tiny; else return two-tiny; } Index: cephes_mconf.h =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/cephes_mconf.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** cephes_mconf.h 20 Dec 2002 13:35:27 -0000 1.3 --- cephes_mconf.h 19 Apr 2004 17:22:42 -0000 1.4 *************** *** 34,44 **** #define NEGZERO (-0.0) ! extern double __INF; #undef INFINITY #define INFINITY (__INF) extern double __QNAN; - #undef NAN #define NAN (__QNAN) ! /*long double*/ --- 34,48 ---- #define NEGZERO (-0.0) ! #undef NAN #undef INFINITY + #if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2)) + #define INFINITY __builtin_huge_val() + #define NAN __builtin_nan("") + #else + extern double __INF; #define INFINITY (__INF) extern double __QNAN; #define NAN (__QNAN) ! #endif /*long double*/ *************** *** 58,65 **** --- 62,77 ---- #define NEGZEROL (-0.0L) + + #undef NANL + #undef INFINITYL + #if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2)) + #define INFINITYL __builtin_huge_vall() + #define NANL __builtin_nanl("") + #else extern long double __INFL; #define INFINITYL (__INFL) extern long double __QNANL; #define NANL (__QNANL) + #endif /* float */ *************** *** 80,87 **** --- 92,107 ---- #define NEGZEROF (-0.0F) + + #undef NANF + #undef INFINITYF + #if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2)) + #define INFINITYF __builtin_huge_valf() + #define NANF __builtin_nanf("") + #else extern float __INFF; #define INFINITYF (__INFF) extern float __QNANF; #define NANF (__QNANF) + #endif Index: round.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/round.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** round.c 12 Aug 2002 13:06:40 -0000 1.1 --- round.c 19 Apr 2004 17:22:42 -0000 1.2 *************** *** 1,29 **** ! #include <fenv.h> double ! round (double x) { ! double retval; ! unsigned short saved_cw, _cw; ! __asm__ ( ! "fnstcw %0;" ! : "=m" (saved_cw) ! ); /* save control word */ ! _cw = ~(FE_TONEAREST | FE_DOWNWARD | FE_UPWARD | FE_TOWARDZERO) ! | (x > 0.0 ? FE_UPWARD : FE_DOWNWARD); /* round away from zero */ ! __asm__ ( ! "fldcw %0;" ! : ! : "m" (_cw) ! ); /* load the rounding control */ ! __asm__ ( ! "frndint;" ! : "=t" (retval) ! : "0" (x) ! ); /* do the rounding */ ! __asm__ ( ! "fldcw %0;" ! : ! : "m" (saved_cw) ! ); /* restore control word */ ! return retval; } --- 1,8 ---- ! #include <math.h> double ! round (double x) ! { ! /* Add +/- 0.5 then then round towards zero. */ ! return trunc ( x + (x >= 0.0 ? 0.5 : -0.5)); } Index: roundf.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/roundf.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** roundf.c 12 Aug 2002 13:06:40 -0000 1.1 --- roundf.c 19 Apr 2004 17:22:42 -0000 1.2 *************** *** 1,29 **** ! #include <fenv.h> float ! roundf (float x) { ! double retval; ! unsigned short saved_cw, _cw; ! __asm__ ( ! "fnstcw %0;" ! : "=m" (saved_cw) ! ); /* save control word */ ! _cw = ~(FE_TONEAREST | FE_DOWNWARD | FE_UPWARD | FE_TOWARDZERO) ! | (x > 0.0 ? FE_UPWARD : FE_DOWNWARD); /* round away from zero */ ! __asm__ ( ! "fldcw %0;" ! : ! : "m" (_cw) ! ); /* load the rounding control */ ! __asm__ ( ! "frndint;" ! : "=t" (retval) ! : "0" (x) ! ); /* do the rounding */ ! __asm__ ( ! "fldcw %0;" ! : ! : "m" (saved_cw) ! ); /* restore control word */ ! return retval; } --- 1,8 ---- ! #include <math.h> float ! roundf (float x) ! { ! /* Add +/- 0.5 then then round towards zero. */ ! return truncf ( x + (x >= 0.0F ? 0.5F : -0.5F)); } Index: sf_erf.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/sf_erf.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sf_erf.c 20 Dec 2002 13:35:27 -0000 1.1 --- sf_erf.c 19 Apr 2004 17:22:42 -0000 1.2 *************** *** 17,24 **** #include "fdlibm.h" */ #include <stdint.h> #define __ieee754_expf expf ! #include <math.h> typedef union --- 17,27 ---- #include "fdlibm.h" */ + #include <math.h> #include <stdint.h> + #include <errno.h> + #define __ieee754_expf expf ! typedef union *************** *** 255,258 **** --- 258,263 ---- if(hx>0) return r/x; else return two-r/x; } else { + /* set range error */ + errno = ERANGE; if(hx>0) return tiny*tiny; else return two-tiny; } Index: cephes_emath.h =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/cephes_emath.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cephes_emath.h 21 Feb 2003 21:19:52 -0000 1.2 --- cephes_emath.h 19 Apr 2004 17:22:42 -0000 1.3 *************** *** 680,686 **** static __inline__ void __enan_64(unsigned short* nan) { ! static const unsigned short nan64[6] ! = {0, 0, 0, 0xc000, 0xffff, 0}; ! nan = (unsigned short*) nan64; return; } --- 680,690 ---- static __inline__ void __enan_64(unsigned short* nan) { ! ! int i; ! for( i=0; i<3; i++ ) ! *nan++ = 0; ! *nan++ = 0xc000; ! *nan++ = 0x7fff; ! *nan = 0; return; } *************** *** 688,696 **** static __inline__ void __enan_NBITS(unsigned short* nan) { ! int i; ! for( i=0; i<NE-2; i++ ) *nan++ = 0; *nan++ = 0xc000; ! *nan++ = 0x7fff; return; } --- 692,700 ---- static __inline__ void __enan_NBITS(unsigned short* nan) { ! int i; ! for( i=0; i<NE-2; i++ ) *nan++ = 0; *nan++ = 0xc000; ! *nan = 0x7fff; return; } *************** *** 700,706 **** int i; *nan++ = 0; ! *nan = 0x7fff; ! *nan = 0; ! *nan = 0xc000; for( i=4; i<NI; i++ ) *nan++ = 0; --- 704,710 ---- int i; *nan++ = 0; ! *nan++ = 0x7fff; ! *nan++ = 0; ! *nan++ = 0xc000; for( i=4; i<NI; i++ ) *nan++ = 0; *************** *** 708,712 **** } - #endif /* _CEPHES_EMATH_H */ --- 712,715 ---- Index: powl.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/powl.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** powl.c 3 May 2003 13:48:47 -0000 1.3 --- powl.c 19 Apr 2004 17:22:42 -0000 1.4 *************** *** 691,694 **** --- 691,702 ---- G = Fa + w * ya; + if (isinf (G)) + { + /* Bail out: G - reducl(G) will result in NAN + that will propagate through rest of calculations */ + _SET_ERRNO (ERANGE); + mtherr( fname, OVERFLOW ); + return( MAXNUML ); + } Ga = reducl(G); Gb = G - Ga; Index: ldexpl.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/ldexpl.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ldexpl.c 12 Aug 2002 13:06:37 -0000 1.1 --- ldexpl.c 19 Apr 2004 17:22:42 -0000 1.2 *************** *** 1,14 **** #include <math.h> #include <errno.h> ! ! long double ldexpl(long double x, int expn) { ! if (isfinite (x) && x != 0.0L) ! { ! x = scalbnl (x , expn); ! if (!isfinite (x) || x == 0.0) errno = ERANGE; ! } ! return x; } --- 1,19 ---- #include <math.h> #include <errno.h> ! long double ldexpl(long double x, int expn) { ! long double res; ! if (!isfinite (x) || x == 0.0L) ! return x; ! ! __asm__ ("fscale" ! : "=t" (res) ! : "0" (x), "u" ((long double) expn)); ! ! if (!isfinite (res) || res == 0.0L) ! errno = ERANGE; ! ! return res; } Index: roundl.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/math/roundl.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** roundl.c 12 Aug 2002 13:06:40 -0000 1.1 --- roundl.c 19 Apr 2004 17:22:42 -0000 1.2 *************** *** 1,30 **** ! #include <fenv.h> long double ! roundl (long double x) { ! long double retval; ! unsigned short saved_cw, _cw; ! __asm__ ( ! "fnstcw %0;" ! : "=m" (saved_cw) ! ); /* save control word */ ! _cw = ~(FE_TONEAREST | FE_DOWNWARD | FE_UPWARD | FE_TOWARDZERO) ! | (x > 0.0 ? FE_UPWARD : FE_DOWNWARD); /* round away from zero */ ! __asm__ ( ! "fldcw %0;" ! : ! : "m" (_cw) ! ); /* load the rounding control */ ! __asm__ ( ! "frndint;" ! : "=t" (retval) ! : "0" (x) ! ); /* do the rounding */ ! __asm__ ( ! "fldcw %0;" ! : ! : "m" (saved_cw) ! ); /* restore control word */ ! return retval; } - --- 1,8 ---- ! #include <math.h> long double ! roundl (long double x) ! { ! /* Add +/- 0.5 then then round towards zero. */ ! return truncl ( x + (x >= 0.0L ? 0.5L : -0.5L)); } |
From: Earnie B. <ea...@us...> - 2004-04-19 17:22:52
|
Update of /cvsroot/mingw/runtime/include/sys In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27954/include/sys Modified Files: fcntl.h file.h locking.h param.h stat.h time.h timeb.h types.h unistd.h utime.h Log Message: Merging changes from winsup Index: types.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/types.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** types.h 10 Oct 2003 15:11:05 -0000 1.6 --- types.h 19 Apr 2004 17:22:41 -0000 1.7 *************** *** 46,51 **** #endif ! ! #ifndef __STRICT_ANSI__ #ifndef _OFF_T_ --- 46,53 ---- #endif ! #ifndef _TIME64_T_DEFINED ! typedef __int64 __time64_t; ! #define _TIME64_T_DEFINED ! #endif #ifndef _OFF_T_ *************** *** 121,125 **** #endif /* Not _SSIZE_T_ */ - #endif /* Not __STRICT_ANSI__ */ #endif /* Not RC_INVOKED */ --- 123,126 ---- Index: time.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/time.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** time.h 12 Nov 2002 15:29:40 -0000 1.2 --- time.h 19 Apr 2004 17:22:41 -0000 1.3 *************** *** 2,6 **** #include <time.h> - #ifndef __STRICT_ANSI__ #ifndef _TIMEVAL_DEFINED /* also in winsock[2].h */ #define _TIMEVAL_DEFINED --- 2,5 ---- *************** *** 16,19 **** #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 #endif /* _TIMEVAL_DEFINED */ - - #endif /* __STRICT_ANSI__ */ --- 15,16 ---- Index: param.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/param.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** param.h 3 May 2003 13:48:47 -0000 1.3 --- param.h 19 Apr 2004 17:22:41 -0000 1.4 *************** *** 29,33 **** #include <limits.h> - #ifndef __STRICT_ANSI__ /* These are useful for cross-compiling */ #define BIG_ENDIAN 4321 --- 29,32 ---- *************** *** 38,41 **** #endif - - #endif --- 37,38 ---- Index: file.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/file.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** file.h 4 Jun 2001 23:26:02 -0000 1.1.1.1 --- file.h 19 Apr 2004 17:22:41 -0000 1.2 *************** *** 5,9 **** * TODO? */ - #ifndef __STRICT_ANSI__ #include <fcntl.h> - #endif --- 5,7 ---- Index: fcntl.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/fcntl.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fcntl.h 4 Jun 2001 23:26:02 -0000 1.1.1.1 --- fcntl.h 19 Apr 2004 17:22:41 -0000 1.2 *************** *** 4,8 **** * This fcntl.h maps to the root fcntl.h */ ! #ifndef __STRICT_ANSI__ #include <fcntl.h> - #endif --- 4,7 ---- * This fcntl.h maps to the root fcntl.h */ ! #include <fcntl.h> Index: stat.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/stat.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** stat.h 21 Feb 2003 21:19:52 -0000 1.5 --- stat.h 19 Apr 2004 17:22:41 -0000 1.6 *************** *** 26,31 **** */ - #ifndef __STRICT_ANSI__ - #ifndef _STAT_H_ #define _STAT_H_ --- 26,29 ---- *************** *** 133,136 **** --- 131,135 ---- time_t st_ctime; /* Creation time */ }; + #if defined (__MSVCRT__) struct _stati64 { *************** *** 147,150 **** --- 146,164 ---- time_t st_ctime; }; + + struct __stat64 + { + _dev_t st_dev; + _ino_t st_ino; + _mode_t st_mode; + short st_nlink; + short st_uid; + short st_gid; + _dev_t st_rdev; + _off_t st_size; + __time64_t st_atime; + __time64_t st_mtime; + __time64_t st_ctime; + }; #endif /* __MSVCRT__ */ #define _STAT_DEFINED *************** *** 159,172 **** _CRTIMP int __cdecl _stat (const char*, struct _stat*); - #if defined (__MSVCRT__) - _CRTIMP int __cdecl _fstati64(int, struct _stati64 *); - _CRTIMP int __cdecl _stati64(const char *, struct _stati64 *); - #if !defined ( _WSTAT_DEFINED) /* also declared in wchar.h */ - _CRTIMP int __cdecl _wstat(const wchar_t*, struct _stat*); - _CRTIMP int __cdecl _wstati64 (const wchar_t*, struct _stati64*); - #define _WSTAT_DEFINED - #endif /* _WSTAT_DEFIND */ - #endif /* __MSVCRT__ */ - #ifndef _NO_OLDNAMES --- 173,176 ---- *************** *** 178,181 **** --- 182,202 ---- #endif /* Not _NO_OLDNAMES */ + #if defined (__MSVCRT__) + _CRTIMP int __cdecl _fstati64(int, struct _stati64 *); + _CRTIMP int __cdecl _stati64(const char *, struct _stati64 *); + /* These require newer versions of msvcrt.dll (6.10 or higher). */ + #if __MSVCRT_VERSION__ >= 0x0601 + _CRTIMP int __cdecl _fstat64 (int, struct __stat64*); + _CRTIMP int __cdecl _stat64 (const char*, struct __stat64*); + #endif /* __MSVCRT_VERSION__ >= 0x0601 */ + #if !defined ( _WSTAT_DEFINED) /* also declared in wchar.h */ + _CRTIMP int __cdecl _wstat(const wchar_t*, struct _stat*); + _CRTIMP int __cdecl _wstati64 (const wchar_t*, struct _stati64*); + #if __MSVCRT_VERSION__ >= 0x0601 + _CRTIMP int __cdecl _wstat64 (const wchar_t*, struct __stat64*); + #endif /* __MSVCRT_VERSION__ >= 0x0601 */ + #define _WSTAT_DEFINED + #endif /* _WSTAT_DEFIND */ + #endif /* __MSVCRT__ */ #ifdef __cplusplus *************** *** 186,190 **** #endif /* Not _STAT_H_ */ - - #endif /* Not __STRICT_ANSI__ */ - --- 207,208 ---- Index: unistd.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/unistd.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** unistd.h 4 Jun 2001 23:26:03 -0000 1.1.1.1 --- unistd.h 19 Apr 2004 17:22:41 -0000 1.2 *************** *** 4,9 **** * unistd.h maps (roughly) to io.h */ - #ifndef __STRICT_ANSI__ #include <io.h> - #endif - --- 4,6 ---- Index: locking.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/locking.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** locking.h 29 Nov 2001 04:26:33 -0000 1.4 --- locking.h 19 Apr 2004 17:22:41 -0000 1.5 *************** *** 25,30 **** */ - #ifndef __STRICT_ANSI__ - #ifndef _LOCKING_H_ #define _LOCKING_H_ --- 25,28 ---- *************** *** 48,52 **** #endif /* Not _LOCKING_H_ */ - - #endif /* Not __STRICT_ANSI__ */ - --- 46,47 ---- Index: timeb.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/timeb.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** timeb.h 21 Feb 2003 21:19:52 -0000 1.4 --- timeb.h 19 Apr 2004 17:22:41 -0000 1.5 *************** *** 25,30 **** */ - #ifndef __STRICT_ANSI__ - #ifndef _TIMEB_H_ #define _TIMEB_H_ --- 25,28 ---- *************** *** 32,35 **** --- 30,34 ---- /* All the headers include this file. */ #include <_mingw.h> + #include <sys/types.h> #ifndef RC_INVOKED *************** *** 59,62 **** --- 58,68 ---- #endif + struct __timeb64 + { + __time64_t time; + short millitm; + short timezone; + short dstflag; + }; #ifdef __cplusplus *************** *** 71,74 **** --- 77,85 ---- #endif /* Not _NO_OLDNAMES */ + /* This requires newer versions of msvcrt.dll (6.10 or higher). */ + #if __MSVCRT_VERSION__ >= 0x0601 + _CRTIMP void __cdecl _ftime64 (struct __timeb64*); + #endif /* __MSVCRT_VERSION__ >= 0x0601 */ + #ifdef __cplusplus } *************** *** 78,82 **** #endif /* Not _TIMEB_H_ */ - - #endif /* Not __STRICT_ANSI__ */ - --- 89,90 ---- Index: utime.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/sys/utime.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** utime.h 21 Feb 2003 21:19:52 -0000 1.4 --- utime.h 19 Apr 2004 17:22:41 -0000 1.5 *************** *** 24,30 **** * */ - - #ifndef __STRICT_ANSI__ - #ifndef _UTIME_H_ #define _UTIME_H_ --- 24,27 ---- *************** *** 61,64 **** --- 58,67 ---- #endif /* Not _NO_OLDNAMES */ + struct __utimbuf64 + { + __time64_t actime; + __time64_t modtime; + }; + #ifdef __cplusplus *************** *** 67,70 **** --- 70,78 ---- _CRTIMP int __cdecl _utime (const char*, struct _utimbuf*); + + #ifndef _NO_OLDNAMES + _CRTIMP int __cdecl utime (const char*, struct utimbuf*); + #endif /* Not _NO_OLDNAMES */ + _CRTIMP int __cdecl _futime (int, struct _utimbuf*); *************** *** 74,80 **** _CRTIMP int __cdecl _wutime (const wchar_t*, struct _utimbuf*); #endif /* MSVCRT runtime */ ! #ifndef _NO_OLDNAMES ! _CRTIMP int __cdecl utime (const char*, struct utimbuf*); ! #endif /* Not _NO_OLDNAMES */ #ifdef __cplusplus --- 82,92 ---- _CRTIMP int __cdecl _wutime (const wchar_t*, struct _utimbuf*); #endif /* MSVCRT runtime */ ! ! /* These require newer versions of msvcrt.dll (6.10 or higher). */ ! #if __MSVCRT_VERSION__ >= 0x0601 ! _CRTIMP int __cdecl _utime64 (const char*, struct __utimbuf64*); ! _CRTIMP int __cdecl _wutime64 (const wchar_t*, struct __utimbuf64*); ! _CRTIMP int __cdecl _futime64 (int, struct __utimbuf64*); ! #endif /* __MSVCRT_VERSION__ >= 0x0601 */ #ifdef __cplusplus *************** *** 85,89 **** #endif /* Not _UTIME_H_ */ - - #endif /* Not __STRICT_ANSI__ */ - --- 97,98 ---- |
From: Earnie B. <ea...@us...> - 2004-04-19 17:22:51
|
Update of /cvsroot/mingw/runtime/mingwex/complex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27954/mingwex/complex Added Files: cabs.c cacos.c cacosh.c casin.c casinh.c catan.c catanh.c ccos.c ccosh.c cexp.c cimag.c clog.c cpow.c cproj.c creal.c csin.c csinh.c csqrt.c ctan.c ctanh.c Log Message: Merging changes from winsup --- NEW FILE: casin.c --- /* casin.c Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> /* casin (Z ) = -I * clog(I * Z + csqrt (1.0 - Z * Z))) */ double complex casin (double complex Z) { double complex Res; double x, y; x = __real__ Z; y = __imag__ Z; if (y == 0.0) { __real__ Res = asin (x); __imag__ Res = 0.0; } else /* -I * clog(I * Z + csqrt(1.0 - Z * Z))) */ { double complex ZZ; /* Z * Z = ((x - y) * (x + y)) + (2.0 * x * y) * I */ /* calculate 1 - Z * Z */ __real__ ZZ = 1.0 - (x - y) * (x + y); __imag__ ZZ = -2.0 * x * y; ZZ = csqrt (ZZ); /* add I * Z to ZZ */ __real__ ZZ -= y; __imag__ ZZ += x; ZZ = clog (ZZ); /* mult by -I */ __real__ Res = __imag__ ZZ; __imag__ Res = - __real__ ZZ; } return (Res); } --- NEW FILE: cacos.c --- /* cacos.c Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> #if 0 /* cacos (Z) = -I * clog(Z + I * csqrt(1 - Z * Z)) */ double complex cacos (double complex Z) { double complex Res; double x, y; x = __real__ Z; y = __imag__ Z; if (y == 0.0) { __real__ Res = acos (x); __imag__ Res = 0.0; } else { double complex ZZ; /* Z * Z = ((x - y) * (x + y)) + (2.0 * x * y) * I */ /* caculate 1 - Z * Z */ __real__ ZZ = 1.0 - (x - y) * (x + y); __imag__ ZZ = -2.0 * x * y; Res = csqrt(ZZ); /* calculate ZZ + I * sqrt (ZZ) */ __real__ ZZ = x - __imag__ Res; __imag__ ZZ = y + __real__ Res; ZZ = clog(ZZ); /* mult by -I */ __real__ Res = __imag__ ZZ; __imag__ Res = - __real__ ZZ; } return Res; } #else /* cacos ( Z ) = pi/2 - casin ( Z ) */ double complex cacos (double complex Z) { double complex Res = casin (Z); __real__ Res = M_PI_2 - __real__ Res; __imag__ Res = - __imag__ Res; return Res; } #endif #if 0 #include <stdio.h> int main() { double z; double complex bar = 0.7 + 1.2 * I; double complex foo = cacos (bar); printf ("%.16e\t%.16e\n", __real__ foo, __imag__ foo); foo = cacos (bar); printf ("%.16e\t%.16e\n", __real__ foo, __imag__ foo); return 1; } #endif --- NEW FILE: csinh.c --- /* csinh.c */ /* Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> /* csinh (x + I * y) = sinh (x) * cos (y) + I * (cosh (x) * sin (y)) */ double complex csinh (double complex Z) { double complex Res; __real__ Res = sinh (__real__ Z) * cos (__imag__ Z); __imag__ Res = cosh (__real__ Z) * sin (__imag__ Z); return Res; } --- NEW FILE: catanh.c --- /* catanh.c */ /* Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> /* catanh (z) = -I * catan (I * z) */ double complex catanh (double complex Z) { double complex Tmp; double complex Res; __real__ Tmp = - __imag__ Z; __imag__ Tmp = __real__ Z; Tmp = catan (Tmp); __real__ Res = __imag__ Tmp; __imag__ Res = - __real__ Tmp; return Res; } --- NEW FILE: ccosh.c --- /* ccosh.c Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> /* ccosh (x + I * y) = cosh (x) * cos (y) + I * (sinh (x) * sin (y)) */ double complex ccosh (double complex Z) { double complex Res; __real__ Res = cosh (__real__ Z) * cos (__imag__ Z); __imag__ Res = sinh (__real__ Z) * sin (__imag__ Z); return Res; } --- NEW FILE: casinh.c --- /* casinh.c Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> /* casinh (z) = -I casin (I * z) */ double complex casinh (double complex Z) { double complex Tmp; double complex Res; __real__ Tmp = - __imag__ Z; __imag__ Tmp = __real__ Z; Tmp = casin (Tmp); __real__ Res = __imag__ Tmp; __imag__ Res = - __real__ Tmp; return Res; } --- NEW FILE: csqrt.c --- /* csqrt.c Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> double complex csqrt (double complex Z) { double complex Res; double t; double x = __real__ Z; double y = __imag__ Z; if (y == 0.0) { if (x < 0.0) { __real__ Res = 0.0; __imag__ Res = sqrt (-x); } else { __real__ Res = sqrt (x); __imag__ Res = 0.0; } } else if (x == 0.0) { t = sqrt(0.5 * fabs (y)); __real__ Res = y > 0 ? t : -t; __imag__ Res = t; } else { t = sqrt (2.0 * (_hypot (x, y) + fabs (x))); if ( x > 0.0) { __real__ Res = 0.5 * t; __imag__ Res = y / t; } else { __real__ Res = fabs ( y / t); __imag__ Res = (y < 0.0 ? -0.5 : 0.5) * t; } } return Res; } --- NEW FILE: cacosh.c --- /* cacosh.c Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> #if 0 /* cacosh (z) = I * cacos (z) */ double complex cacosh (double complex Z) { double complex Tmp; double complex Res; Tmp = cacos (Z); __real__ Res = -__imag__ Tmp; __imag__ Res = __real__ Tmp; return Res; } #else /* cacosh (z) = I * cacos (z) = I * (pi/2 - casin (z)) */ double complex cacosh (double complex Z) { double complex Tmp; double complex Res; Tmp = casin (Z); __real__ Res = __imag__ Tmp; __imag__ Res = M_PI_2 - __real__ Tmp; return Res; } #endif --- NEW FILE: ccos.c --- /* ccos.c Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> /* ccos (x + I * y) = cos (x) * cosh (y) + I * (sin (x) * sinh (y)) */ double complex ccos (double complex Z) { double complex Res; __real__ Res = cos (__real__ Z) * cosh ( __imag__ Z); __imag__ Res = -sin (__real__ Z) * sinh ( __imag__ Z); return Res; } --- NEW FILE: cproj.c --- /* cproj.c Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> /* Return the value of the projection onto the Riemann sphere.*/ double complex cproj (double complex Z) { complex double Res = Z; if (isinf (__real__ Z) || isinf (__imag__ Z)) { __real__ Res = HUGE_VAL; __imag__ Res = copysign (0.0, __imag__ Z); } return Res; } --- NEW FILE: csin.c --- /* csin.c */ /* Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> /* csin (x + I * y) = sin (x) * cosh (y) + I * (cos (x) * sinh (y)) */ double complex csin (double complex Z) { double complex Res; __real__ Res = sin (__real__ Z) * cosh ( __imag__ Z); __imag__ Res = cos (__real__ Z) * sinh ( __imag__ Z); return Res; } --- NEW FILE: cexp.c --- /* cexp.c Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> /* cexp (x + I * y) = exp (x) * cos (y) + I * exp (x) * sin (y) */ double complex cexp (double complex Z) { double complex Res; long double rho = exp (__real__ Z); __real__ Res = rho * cos(__imag__ Z); __imag__ Res = rho * sin(__imag__ Z); return Res; } --- NEW FILE: clog.c --- /* clog.c Contributed by Danny Smith 2003-10-20 */ /* clog (x + I * y) = log (hypot (x, y)) + I * atan2 (y, x) */ #include <math.h> #include <complex.h> double complex clog (double complex Z) { double complex Res; __real__ Res = log (_hypot (__real__ Z, __imag__ Z)); __imag__ Res = carg (Z); return Res; } --- NEW FILE: cabs.c --- #include <math.h> #include <complex.h> double cabs (double complex Z) { return _hypot ( __real__ Z, __imag__ Z); } --- NEW FILE: cimag.c --- #include <complex.h> double __attribute__ ((const)) cimag (double complex _Z) { return __imag__ _Z; } --- NEW FILE: cpow.c --- /* cpow.c */ /* Contributed by Danny Smith 2003-10-20 */ /* cpow(X, Y) = cexp(X * clog(Y)) */ #include <math.h> #include <complex.h> /* Use dll version of pow */ extern double (*_imp__pow) (double, double); #define pow (*_imp__pow) double complex cpow (double complex X, double complex Y) { double complex Res; double i; double r = hypot (__real__ X, __imag__ X); if (r == 0.0) { __real__ Res = __imag__ Res = 0.0; } else { double rho; double theta; i = carg (X); theta = i * __real__ Y; if (__imag__ Y == 0.0) /* This gives slightly more accurate results in these cases. */ rho = pow (r, __real__ Y); else { r = log (r); /* rearrangement of cexp(X * clog(Y)) */ theta += r * __imag__ Y; rho = exp (r * __real__ Y - i * __imag__ Y); } __real__ Res = rho * cos (theta); __imag__ Res = rho * sin (theta); } return Res; } --- NEW FILE: creal.c --- #include <complex.h> double __attribute__ ((const)) creal (double complex _Z) { return __real__ _Z; } --- NEW FILE: ctanh.c --- /* ctanh.c */ /* Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> #include <errno.h> /* ctanh (x + I * y) = (sinh (2 * x) + sin (2 * y) * I ) / (cosh (2 * x) + cos (2 * y)) . */ double complex ctanh (double complex Z) { double complex Res; double two_R = 2.0 * __real__ Z; double two_I = 2.0 * __imag__ Z; double denom = cosh (two_R) + cos (two_I); if (denom == 0.0) { errno = ERANGE; __real__ Res = HUGE_VAL; __imag__ Res = HUGE_VAL; } else if ( isinf (denom)) { errno = ERANGE; __real__ Res = two_R > 0 ? 1.0 : -1.0; __imag__ Res = 0.0; } else { __real__ Res = sinh (two_R) / denom; __imag__ Res = sin (two_I) / denom; } return Res; } --- NEW FILE: ctan.c --- /* ctan.c */ /* Contributed by Danny Smith 2003-10-20 */ #include <math.h> #include <complex.h> #include <errno.h> /* ctan (x + I * y) = (sin (2 * x) + I * sinh(2 * y)) / (cos (2 * x) + cosh (2 * y)) */ double complex ctan (double complex Z) { double complex Res; double two_I = 2.0 * __imag__ Z; double two_R = 2.0 * __real__ Z; double denom = cos (two_R) + cosh (two_I); if (denom == 0.0) { errno = ERANGE; __real__ Res = HUGE_VAL; __imag__ Res = HUGE_VAL; } else if (isinf (denom)) { errno = ERANGE; __real__ Res = 0.0; __imag__ Res = two_I > 0 ? 1.0 : -1.0; } else { __real__ Res = sin (two_R) / denom; __imag__ Res = sinh (two_I) / denom; } return Res; } --- NEW FILE: catan.c --- /* catan.c */ /* Contributed by Danny Smith 2003-10-17 FIXME: This needs some serious numerical analysis. */ #include <math.h> #include <complex.h> #include <errno.h> /* catan (z) = -I/2 * clog ((I + z) / (I - z)) */ double complex catan (double complex Z) { double complex Res; double complex Tmp; double x = __real__ Z; double y = __imag__ Z; if ( x == 0.0 && (1.0 - fabs (y)) == 0.0) { errno = ERANGE; __real__ Res = HUGE_VAL; __imag__ Res = HUGE_VAL; } else if (isinf (_hypot (x, y))) { __real__ Res = (x > 0 ? M_PI_2 : -M_PI_2); __imag__ Res = 0.0; } else { __real__ Tmp = - x; __imag__ Tmp = 1.0 - y; __real__ Res = x; __imag__ Res = y + 1.0; Tmp = clog (Res/Tmp); __real__ Res = - 0.5 * __imag__ Tmp; __imag__ Res = 0.5 * __real__ Tmp; } return Res; } |
From: Earnie B. <ea...@us...> - 2004-04-19 17:22:51
|
Update of /cvsroot/mingw/runtime/mingwex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27954/mingwex Modified Files: Makefile.in getopt.c strtold.c Log Message: Merging changes from winsup Index: Makefile.in =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/Makefile.in,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Makefile.in 6 May 2003 13:29:09 -0000 1.7 --- Makefile.in 19 Apr 2004 17:22:41 -0000 1.8 *************** *** 66,69 **** --- 66,74 ---- vfscanf.c vfwscanf.c vscanf.c vsscanf.c vswscanf.c vwscanf.c + COMPLEX_DISTFILES = \ + cabs.c cacos.c cacosh.c casin.c casinh.c catan.c catanh.c \ + ccos.c ccosh.c cexp.c cimag.c clog.c cpow.c cproj.c creal.c \ + csin.c csinh.c csqrt.c ctan.c ctanh.c + CC = @CC@ # FIXME: Which is it, CC or CC_FOR_TARGET? *************** *** 144,151 **** REPLACE_OBJS = \ mingw-fseek.o LIB_OBJS = $(Q8_OBJS) $(STDLIB_OBJS) $(STDLIB_STUB_OBJS) \ $(STDIO_OBJS) $(MATH_OBJS) $(FENV_OBJS) \ ! $(POSIX_OBJS) $(REPLACE_OBJS) LIBS = $(LIBMINGWEX_A) --- 149,160 ---- REPLACE_OBJS = \ mingw-fseek.o + COMPLEX_OBJS = \ + cabs.o cacos.o cacosh.o casin.o casinh.o catan.o catanh.o \ + ccos.o ccosh.o cexp.o cimag.o clog.o cpow.o cproj.o creal.o \ + csin.o csinh.o csqrt.o ctan.o ctanh.o LIB_OBJS = $(Q8_OBJS) $(STDLIB_OBJS) $(STDLIB_STUB_OBJS) \ $(STDIO_OBJS) $(MATH_OBJS) $(FENV_OBJS) \ ! $(POSIX_OBJS) $(REPLACE_OBJS) $(COMPLEX_OBJS) LIBS = $(LIBMINGWEX_A) *************** *** 217,218 **** --- 226,233 ---- cp -p $(srcdir)/stdio/$$i $(distdir)/mingwex/stdio/$$i ; \ done + mkdir $(distdir)/mingwex/complex + chmod 755 $(distdir)/mingwex/complex + @for i in $(COMPLEX_DISTFILES); do\ + cp -p $(srcdir)/complex/$$i $(distdir)/mingwex/complex/$$i ; \ + done + Index: getopt.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/getopt.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** getopt.c 11 Mar 2003 15:37:03 -0000 1.1 --- getopt.c 19 Apr 2004 17:22:41 -0000 1.2 *************** *** 74,78 **** || (IGNORE_FIRST && options[1] != ':'))) ! #define IS_POSIXLY_CORRECT (getenv("POSIXLY_INCORRECT_GETOPT") == NULL) #define PERMUTE (!IS_POSIXLY_CORRECT && !IGNORE_FIRST) --- 74,82 ---- || (IGNORE_FIRST && options[1] != ':'))) ! /* This differs from the cygwin implementation, which effectively defaults to ! PC, but is consistent with the NetBSD implementation and doc's. */ ! #ifndef IS_POSIXLY_CORRECT ! #define IS_POSIXLY_CORRECT (getenv("POSIXLY_CORRECT") != NULL) ! #endif #define PERMUTE (!IS_POSIXLY_CORRECT && !IGNORE_FIRST) Index: strtold.c =================================================================== RCS file: /cvsroot/mingw/runtime/mingwex/strtold.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** strtold.c 20 Dec 2002 13:35:27 -0000 1.1 --- strtold.c 19 Apr 2004 17:22:41 -0000 1.2 *************** *** 21,31 **** * removing global variables and splitting out strtold * from _IO_ldtoa and _IO_ldtostr. ! * * Danny Smith <dan...@us...> */ - #include "math/cephes_emath.h" - #if NE == 10 --- 21,32 ---- * removing global variables and splitting out strtold * from _IO_ldtoa and _IO_ldtostr. ! * ! * 4 Feb 04 Reorganize __asctoe64 to fix setting error codes, ! * and handling special chars. ! * * Danny Smith <dan...@us...> */ #include "math/cephes_emath.h" #if NE == 10 *************** *** 90,102 **** { unsigned short yy[NI], xt[NI], tt[NI]; ! int esign, decflg, sgnflg, nexp, exp, prec, lost; ! int k, trail, c; long lexp; ! unsigned short nsign; const unsigned short *p; char *sp, *lstr; char *s; ! char dec_sym = *(localeconv ()->decimal_point); int lenldstr = 0; --- 91,107 ---- { unsigned short yy[NI], xt[NI], tt[NI]; ! int esign, decflg, nexp, exp, lost; ! int k, c; ! int valid_lead_string = 0; ! int have_non_zero_mant = 0; ! int prec = 0; ! /* int trail = 0; */ long lexp; ! unsigned short nsign = 0; const unsigned short *p; char *sp, *lstr; char *s; ! const char dec_sym = *(localeconv ()->decimal_point); int lenldstr = 0; *************** *** 120,140 **** s = lstr; lost = 0; - nsign = 0; decflg = 0; - sgnflg = 0; nexp = 0; exp = 0; - prec = 0; __ecleaz( yy ); ! trail = 0; nxtcom: k = *s - '0'; if( (k >= 0) && (k <= 9) ) { ! /* Ignore leading zeros */ ! if( (prec == 0) && (decflg == 0) && (k == 0) ) ! goto donchr; /* Identify and strip trailing zeros after the decimal point. */ if( (trail == 0) && (decflg != 0) ) --- 125,180 ---- s = lstr; + if (*s == '-') + { + nsign = 0xffff; + ++s; + } + else if (*s == '+') + { + ++s; + } + + if (_strnicmp("INF", s , 3) == 0) + { + valid_lead_string = 1; + s += 3; + if ( _strnicmp ("INITY", s, 5) == 0) + s += 5; + __ecleaz(yy); + yy[E] = 0x7fff; /* infinity */ + goto aexit; + } + else if(_strnicmp ("NAN", s, 3) == 0) + { + valid_lead_string = 1; + s += 3; + __enan_NI16( yy ); + goto aexit; + } + + /* FIXME: Handle case of strtold ("NAN(n_char_seq)",endptr) */ + + /* Now get some digits. */ lost = 0; decflg = 0; nexp = 0; exp = 0; __ecleaz( yy ); ! ! /* Ignore leading zeros */ ! while (*s == '0') ! { ! valid_lead_string = 1; ! s++; ! } nxtcom: + k = *s - '0'; if( (k >= 0) && (k <= 9) ) { ! #if 0 ! /* The use of a special char as a flag for trailing zeroes causes problems when input ! actually contains the char */ /* Identify and strip trailing zeros after the decimal point. */ if( (trail == 0) && (decflg != 0) ) *************** *** 145,153 **** --sp; while( *sp == '0' ) ! *sp-- = 'z'; ! trail = 1; ! if( *s == 'z' ) goto donchr; } /* If enough digits were given to more than fill up the yy register, * continuing until overflow into the high guard word yy[2] --- 185,197 ---- --sp; while( *sp == '0' ) ! { ! *sp-- = (char)-1; ! trail++; ! } ! if( *s == (char)-1 ) goto donchr; } + #endif + /* If enough digits were given to more than fill up the yy register, * continuing until overflow into the high guard word yy[2] *************** *** 176,183 **** nexp -= 1; } ! prec += 1; ! goto donchr; } ! if (*s == dec_sym) { if( decflg ) --- 220,228 ---- nexp -= 1; } ! have_non_zero_mant |= k; ! prec ++; ! /* goto donchr; */ } ! else if (*s == dec_sym) { if( decflg ) *************** *** 185,244 **** ++decflg; } ! else ! switch( *s ) ! { ! case 'z': ! break; ! case 'E': ! case 'e': ! goto expnt; ! case '-': ! nsign = 0xffff; ! if( sgnflg ) ! goto daldone; ! ++sgnflg; ! break; ! case '+': ! if( sgnflg ) ! goto daldone; ! ++sgnflg; ! break; ! case 'i': ! case 'I': ! { ! s++; ! if (*s != 'n' && *s != 'N') ! goto zero; ! s++; ! if (*s != 'f' && *s != 'F') ! goto zero; ! s++; ! if ((*s == 'i' || *s == 'I') && (s[1] == 'n' || s[1] == 'N') ! && (s[2] == 'i' || s[2] == 'I') ! && (s[3] == 't' || s[3] == 'T') ! && (s[4] == 'y' || s[4] == 'Y')) ! s += 5; ! goto infinite; ! } ! case 'n': ! case 'N': ! { ! s++; ! if (*s != 'a' && *s != 'A') ! goto zero; ! s++; ! if (*s != 'n' && *s != 'N') ! goto zero; ! s++; ! __enan_NI16( yy ); ! goto aexit; ! } ! default: ! goto daldone; ! } ! donchr: ++s; goto nxtcom; /* Exponent interpretation */ expnt: --- 230,254 ---- ++decflg; } ! else if ((*s == 'E') || (*s == 'e') ) ! { ! if (prec || valid_lead_string) ! goto expnt; ! else ! goto daldone; ! } ! ! #if 0 ! else if (*s == (char)-1) ! goto donchr; ! #endif ! ! else /* an invalid char */ ! goto daldone; ! ! /* donchr: */ ++s; goto nxtcom; + /* Exponent interpretation */ expnt: *************** *** 255,283 **** if( *s == '+' ) ++s; ! while( (*s >= '0') && (*s <= '9') && exp < 4978) ! { ! exp *= 10; ! exp += *s++ - '0'; ! } if( esign < 0 ) exp = -exp; ! if( exp > 4932 ) { - errno = ERANGE; - infinite: __ecleaz(yy); ! yy[E] = 0x7fff; /* infinity */ goto aexit; } ! if( exp < -4977 ) { - errno = ERANGE; - zero: __ecleaz(yy); goto aexit; ! } daldone: nexp = exp - nexp; /* Pad trailing zeros to minimize power of 10, per IEEE spec. */ while( (nexp > 0) && (yy[2] == 0) ) --- 265,301 ---- if( *s == '+' ) ++s; ! ! while( (*s >= '0') && (*s <= '9') ) ! { ! /* Stop modifying exp if we are going to overflow anyway, ! but keep parsing the string. */ ! if (exp < 4978) ! { ! exp *= 10; ! exp += *s - '0'; ! } ! s++; ! } ! if( esign < 0 ) exp = -exp; ! ! if (exp > 4977) /* maybe overflow */ { __ecleaz(yy); ! if (have_non_zero_mant) ! yy[E] = 0x7fff; goto aexit; } ! else if (exp < -4977) /* underflow */ { __ecleaz(yy); goto aexit; ! } daldone: + nexp = exp - nexp; + /* Pad trailing zeros to minimize power of 10, per IEEE spec. */ while( (nexp > 0) && (yy[2] == 0) ) *************** *** 364,369 **** yy[0] = nsign; __toe64( yy, y ); ! return (lenldstr + s - lstr); } --- 382,396 ---- yy[0] = nsign; + __toe64( yy, y ); ! ! /* Check for overflow, undeflow */ ! if (have_non_zero_mant && ! (*((long double*) y) == 0.0L || isinf (*((long double*) y)))) ! errno = ERANGE; ! ! if (prec || valid_lead_string) ! return (lenldstr + (s - lstr)); ! return 0; } *************** *** 381,384 **** --- 408,412 ---- if (se) *se = (char*)s + lenldstr; + return xx.ld; } |
From: Earnie B. <ea...@us...> - 2004-04-19 17:22:50
|
Update of /cvsroot/mingw/runtime In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27954 Modified Files: ChangeLog Makefile.in crt1.c moldname.def.in msvcrt.def.in Log Message: Merging changes from winsup Index: Makefile.in =================================================================== RCS file: /cvsroot/mingw/runtime/Makefile.in,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** Makefile.in 10 Oct 2003 15:02:03 -0000 1.25 --- Makefile.in 19 Apr 2004 17:22:40 -0000 1.26 *************** *** 19,23 **** PACKAGE = mingw-runtime ! VERSION = 3.2 CYGRELEASE = 1 --- 19,23 ---- PACKAGE = mingw-runtime ! VERSION = 3.3 CYGRELEASE = 1 *************** *** 247,251 **** : msvcrt.def.in $(CC) -DRUNTIME=$(basename $(notdir $@)) \ ! -D__FILENAME__=$@ \ -D__MSVCRT__ -C -E -P \ -xc-header $? > $@ --- 247,251 ---- : msvcrt.def.in $(CC) -DRUNTIME=$(basename $(notdir $@)) \ ! -D__$(basename $(notdir $@))__=1 \ -D__MSVCRT__ -C -E -P \ -xc-header $? > $@ Index: crt1.c =================================================================== RCS file: /cvsroot/mingw/runtime/crt1.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** crt1.c 6 Jan 2003 22:14:18 -0000 1.5 --- crt1.c 19 Apr 2004 17:22:40 -0000 1.6 *************** *** 69,73 **** --- 69,75 ---- #undef _fmode extern int _fmode; + #ifdef __MSVCRT__ extern int* __p__fmode(void); /* To access the dll _fmode */ + #endif /* *************** *** 107,111 **** --- 109,117 ---- /* Now sync the dll _fmode to the one for this .exe. */ + #ifdef __MSVCRT__ *__p__fmode() = _fmode; + #else + *_imp___fmode_dll = _fmode; + #endif } Index: moldname.def.in =================================================================== RCS file: /cvsroot/mingw/runtime/moldname.def.in,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** moldname.def.in 15 Sep 2003 14:18:35 -0000 1.5 --- moldname.def.in 19 Apr 2004 17:22:40 -0000 1.6 *************** *** 86,89 **** --- 86,90 ---- read rmdir + rmtmp searchenv seterrormode Index: msvcrt.def.in =================================================================== RCS file: /cvsroot/mingw/runtime/msvcrt.def.in,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** msvcrt.def.in 15 Sep 2003 14:18:35 -0000 1.2 --- msvcrt.def.in 19 Apr 2004 17:22:40 -0000 1.3 *************** *** 3,11 **** ; created from msvcrt.def.in ; ! ; Exports from msvcrt.dll. Msvcrt.dll appears to be distributed with ! ; Internet Explorer 4.0, and may be more common in the future, but ! ; right now it seems like a risky choice. There are differences, although ! ; they seem to be minor overall, between the exports from msvcrt and msvcrt20. ! ; However, for most purposes the two sets are interchangable. ; ; NOTE: All exports, except for what appeared to be C++ mangled names, --- 3,7 ---- ; created from msvcrt.def.in ; ! ; Exports from msvcrt.dll, msvcr70.dll and msvcr71.dll ; ; NOTE: All exports, except for what appeared to be C++ mangled names, *************** *** 15,18 **** --- 11,15 ---- ; Contributors: ; Created by Colin Peters <co...@bi...> + ; MSVCRT 6,10, 7.00, 7.10 additions by Danny Smith <dan...@us...> ; ; THIS SOFTWARE IS NOT COPYRIGHTED *************** *** 736,738 **** --- 733,824 ---- wprintf wscanf + ; msvcrt.dll(version 6.10) and later + __lc_collate_cp DATA + __p__mbcasemap + __unDNameEx + _chkesp + _ctime64 + _findfirst64 + _findnext64 + _fstat64 + _ftime64 + _futime64 + _gmtime64 + _localtime64 + _mbcasemap + _mktime64 + _osplatform DATA + _stat64 + _time64 + _utime64 + _wctime64 + _wfindfirst64 + _wfindnext64 + _wstat64 + _wutime64 + #if ( __msvcr70__ || __msvcr70d__ || __msvcr71__ || __msvcr71d__) + ; msvcr70.dll amd later + __buffer_overrun + __CxxDetectRethrow + __CxxExceptionFilter + __CxxQueryExceptionSize + __CxxRegisterExceptionObject + __CxxUnregisterExceptionObject + __DestructExceptionObject + __lc_clike + __security_error_handler + __set_buffer_overrun_handler + __uncaught_exception + __wcserror + _aligned_free + _aligned_malloc + _aligned_offset_malloc + _aligned_offset_realloc + _aligned_realloc + _cgetws + _cputws + _CRT_RTC_INIT + _cwprintf + _cwscanf + _getwch + _getwche + _putwch + _resetstkoflw + _scprintf + _scwprintf + _set_security_error_handler + _snscanf + _snwscanf + _strtoi64 + _strtoui64 + _ungetwch + _vscprintf + _vscwprintf + _wcserror + _wcstoi64 + _wcstoui64 + _wctype + _wtof + #endif /* 7.0 */ + #if (__msvcr71__ || __msvcr71d__) + ; msvcr71.dll + ___lc_codepage_func + ___lc_collate_cp_func + ___lc_handle_func + ___mb_cur_max_func + ___setlc_active_func + ___unguarded_readlc_active_add_func + __CppXcptFilter + __crtCompareStringW + __crtGetStringTypeW + __crtLCMapStringW + __CxxCallUnwindDtor + __CxxCallUnwindVecDtor + __iob_func + __pctype_func + __pwctype_func + _get_heap_handle + _set_purecall_handler + _set_SSE2_enable + #endif /* 7.1 */ Index: ChangeLog =================================================================== RCS file: /cvsroot/mingw/runtime/ChangeLog,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** ChangeLog 10 Oct 2003 15:11:04 -0000 1.57 --- ChangeLog 19 Apr 2004 17:22:40 -0000 1.58 *************** *** 1,2 **** --- 1,256 ---- + 2004-04-19 Earnie Boyd <ea...@us...> + + * include/_mingw.h: Revert to primary release 3 and increment minor + release to 3. + * Makefile.in (VERSION): Ditto. + + 2004-04-01 Danny Smith <dan...@us...> + + * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to + _fmode if not __MSVCRT__. + + 2004-03-30 Danny Smith <dan...@us...> + + * include/io.h: (_findfirst): Correct prototype. + + 2004-03-30 Hans Leidekker <ha...@it...> + + * include/io.h: (_findnext, _findclose): Correct prototype. + + 2004-03-28 Hans Leidekker <ha...@it...> + + * include/math.h (FP_*): Add defines. + + 2004-03-29 Danny Smith <dan...@us...> + + * mingwex/math/round.c: Rewrite. + * mingwex/math/roundf.c: Rewrite. + * mingwex/math/roundl.c: Rewrite. + + 2004-03-25 Danny Smith <dan...@us...> + + * 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-25 Danny Smith <dan...@us...> + + * include/stdio.h (_fsopen): Add prototype. + * include/tchar.h (_tfsopen): Add defines. + Thanks to "Gerik" <gerikr at users dot sourceforge dot net> + + 2004-03-19 Danny Smith <dan...@us...> + + * 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-13 Danny Smith <dan...@us...> + + * include/malloc.h: Remove __STRICT_ANSI__ guard. + + 2004-03-11 Brian Keener <bk...@th...> + + * include/process.h: Remove the #endif associated with removal of + __STRICT_ANSI__ guard from non-ANSI header. + + 2004-03-10 Danny Smith <dan...@us...> + + * 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-02-21 Danny Smith <dan...@us...> + + * include/_mingw.h (__UNUSED_PARAM): Define macro. + * include/wchar.h (fwide): Use it. + (mbsinit): Ditto. + + 2004-02-05 Danny Smith <dan...@us...> + + * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per + NetBSD getopt_long.c. + + 2004-02-05 Danny Smith <dan...@us...> + + * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error + codes and handling of special chars. + + 2004-02-02 Danny Smith <dan...@us...> + + * include/stdio.h (feof): Add inlined definition. + (ferror): Ditto. + + 2004-02-01 Danny Smith <dan...@us...> + + * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale") + directly, rather than via scabnl. + + 2004-02-01 Danny Smith <dan...@us...> + + * mingwex/math/powl.c (powl): Return infinity if + extended precision multiplication of x by log2(y) + overflows. + + 2004-01-31 Danny Smith <dan...@us...> + + * mingwex/math/cephes_emath.h (__enan_64): Fix thinko. + (__enan_NI16): Fix another one. + (__enan_NBITS): Tidy. + + 2004-01-16 Danny Smith <dan...@us...> + + * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit + types. (Thanks to John Maddock for report.) + + 2004-01-14 Greg Chicares <chi...@us...> + + * include/tchar.h (_puttchar): Define. + + 2003-12-13 Danny Smith <dan...@us...> + + * 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-11-27 Dimitry Sibiryakov <aa...@us...> + + * include/signal.h (SIG_SGE, SIG_ACK): Add defines. + + 2003-10-27 Danny Smith <dan...@us...> + + * include/math.h: Guard ISO C99 additions with __cplusplus + not __GLIBCPP__. + + 2003-10-21 Danny Smith <dan...@us...> + + * include/_mingw.h: Define __attribute__((x)) to nothing + if not __GNUC__. + + 2003-10-21 Danny Smith <dan...@us...> + + * 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 Danny Smith <dan...@us...> + + * include/math.h (cabs): Remove non-ISO prototype. + + 2003-10-21 Danny Smith <dan...@us...> + + * mingwex/math/cephes_mconf.h (NAN, NANF, NANL): + Use GCC __builtin's if available. + (INFINITY, INFINITYF, INFINITYL): Likewise. + + 2003-10-21 Danny Smith <dan...@us...> + + * mingwex/math/s_erf.c (erf): Set errno to ERANGE if + beyond approximation limit. + * mingwex/math/sf_erf.c (erff): Likewise. + + 2003-10-17 Danny Smith <dan...@us...> + + * include/stdio.h (getc): Cast result to unsigned char before + return. + (putc): Likewise + (getchar): Likewise. + (putchar): Likewise. + Thanks to M.Fujii <boo...@m4...> + + 2003-10-10 Earnie Boyd <ea...@us...> + + * include/_mingw.h: Increment version to 3.2. + * Makefile.in: Ditto. + 2003-10-10 Earnie Boyd <ea...@us...> |
From: Earnie B. <ea...@us...> - 2004-04-19 17:10:06
|
Update of /cvsroot/mingw/runtime/mingwex/complex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25303/complex Log Message: Directory /cvsroot/mingw/runtime/mingwex/complex added to the repository |
From: Earnie B. <ea...@us...> - 2004-04-12 18:05:29
|
Update of /cvsroot/mingw/msys/dvlpr In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11803 Modified Files: ChangeLog Log Message: * doc/msys/README.rtf: Modify throughout the restrictions for /bin and /usr/bin being reserved for msys-1.0.dll dependent binaries. Index: ChangeLog =================================================================== RCS file: /cvsroot/mingw/msys/dvlpr/ChangeLog,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** ChangeLog 30 Mar 2004 13:00:22 -0000 1.42 --- ChangeLog 12 Apr 2004 17:51:24 -0000 1.43 *************** *** 1,2 **** --- 1,7 ---- + 2004.04.12 Earnie Boyd <ea...@us...> + + * doc/msys/README.rtf: Modify throughout the restrictions for /bin and + /usr/bin being reserved for msys-1.0.dll dependent binaries. + 2004.03.30 Earnie Boyd <ea...@us...> |
From: Earnie B. <ea...@us...> - 2004-04-12 18:01:31
|
Update of /cvsroot/mingw/msys/dvlpr/doc/msys In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11170/doc/msys Modified Files: README.rtf Log Message: ChangeLog Index: README.rtf =================================================================== RCS file: /cvsroot/mingw/msys/dvlpr/doc/msys/README.rtf,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** README.rtf 3 Dec 2002 17:56:53 -0000 1.6 --- README.rtf 12 Apr 2004 17:47:36 -0000 1.7 *************** *** 1,96 **** ! {\rtf1\ansi\ansicpg1252\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\fmodern\fprq1 Courier New;}{\f3\froman Times New Roman;}{\f4\fmodern\fprq1 Lucida Console;}} ! {\colortbl\red0\green0\blue0;} ! \deflang1033\horzdoc{\*\fchars }{\*\lchars }\pard\tx2610\plain\f2\fs20\b\i File:\plain\f2\fs20\i \tab \plain\f2\fs20 README ! \par \plain\f2\fs20\b\i Copyright (C):\plain\f2\fs20 \tab 2001, 2002 Earnie Boyd <ea...@us...> ! \par \plain\f2\fs20\b\i Distribution:\plain\f2\fs20 \tab See MSYS_LICENSE ! \par \plain\f2\fs20\b\i MSYS Revision:\plain\f2\fs20 \tab @VERSION@ ! \par \plain\f2\fs20\b\i MSYS Revision date:\plain\f2\fs20\i \tab \plain\lang1024\f2\fs20 October 31, 2002\plain\f2\fs20 ! \par \pard\qc\tx2610\plain\f2\fs20\i ! \par \pard\plain\f2\fs20\b\i Preface:\plain\f2\fs20 ! \par Ok, you have installed msys and now you're reading this to understand how to get started. However, I must first explain some important facts about Msys. Msys file system bindings (mounts) are automatic and happens as described in table 1. These automatic file system bindings are not changable by the user. User defined file system bindings can be created by specifying them in the /etc/fstab directory as explained in table 2. ! \par ! \par \plain\f2\fs20\b\i TABLE 1 - Automatic file system maps:\plain\f2\fs20 ! \par \plain\f4\fs16 + ---------------------------------------------------------------------------- + ! \par | The automatic mounts are relative to where the msys-1.0.dll (DLL) is located | ! \par | such that the following is true: | ! \par | | ! \par | / - is the parent directory of the directory containing the DLL | ! \par | /bin - the direcotry containing the DLL | ! \par | /usr - the parent directory of the directory containing the DLL | ! \par | /usr/bin - the directory containing the DLL | ! \par | /tmp - the value of the TMP environment variable | ! \par | /c - C:\\ | ! \par | /d - D:\\ | ! \par | . . . | ! \par | /z - Z:\\ | ! \par | | ! \par + ---------------------------------------------------------------------------- + ! \par \plain\f2\fs20 ! \par \plain\f2\fs20\b\i TABLE 2 - /etc/fstab layout:\plain\f2\fs20 ! \par \plain\f4\fs16 + ---------------------------------------------------------------------------- + ! \par | The record format for the /etc/fstab is current a simple one. I need to | ! \par | work on the syntax parsing more so that things like embedded spaces work. | ! \par | If you wish to map a path with spaces you must use the DOS style name. | ! \par | | ! \par | The record format is as follows: | ! \par | d:/some/foo/path /bar | ! \par | | ! \par | As you can see this is simply the Win32 path mapped to a mount point. It is | ! \par | unix practice to have the /bar created as an empty directory before it can | ! \par | mount the mount point. Msys doesn't force this but it will be to advantage | ! \par | if you do. Some programs, e.g. find, and some operations, e.g. tab | ! \par | operate better if the physical directory is present for those mount points. | ! \par | | ! \par | If you create a /etc/fstab record that maps to an automatic mount point Msys | ! \par | will remove it when it adds the automatic point. This means that at some | ! \par | small moment in time your mount point actually exists. However it doesn't | ! \par | exist long enough to be of any use to you. | ! \par | | ! \par + ---------------------------------------------------------------------------- + ! \par \plain\f2\fs20 ! \par Msys will convert POSIX paths that are used as arguments to Win32 paths. This is done for any executable not in /bin and /usr/bin. If the executable is dependant on the msys-1.0.dll then it must be located in the /bin or /usr/bin directory. This means that you now have a POSIX environment that will automagically do the right thing w.r.t. changing the paths passed as arguments. Arguments beginning with a // are considered to be Win32 style switches and will be passed to the program with // converted to / to allow for the command.com/cmd.exe (Win32) style switch. An example of a Win32 style switch is `write //p /mydocs/msys-rocks.' In this example write (a.k.a. WordPad) exists in the c:\\winnt\\system32 path on my system. The //p becomes /p which tells write to print the document. And mydocs/msys-rocks converts to c:\\msys\\1.0\\mydocs\\msys-rocks so that write can find it. ! \par \plain\f2\fs20\b\i ! \par STARTING Msys: ! \par \plain\f2\fs20 Starting Msys should just be a matter of clicking on the MSYS icon on your desktop or Start menu. If you have the File Manager window open, you may now click on it and have it start also. Doing these presents you with a console window within which you may enter commands. ! \par ! \par \plain\f2\fs20\b\i Working with MinGW: ! \par \plain\f2\fs20 If you already have MinGW installed then simply bind the path to MinGW to the /mingw mount point in the /etc/fstab as described above. If you don't have MinGW installed already then simply unarchive the MinGW tar.gz file in the /mingw directory. \plain\f2\fs20\b\ul DO NOT\plain\f2\fs20 unarchive the MinGW tar.gz file in the / directory. ! \par \plain\f2\fs20\b\i ! \par Working with other products: ! \par \plain\f2\fs20 I find that the easiest thing for working with other products, such as Microsoft Office, is to create a script pointing to the executable. An example of a script for Microsoft Word on my system looks like the example in Table 3. I have this stored in my /usr/local/bin directory with a filename of word. Now all I need to do to edit a word document is `word /mydoc/proposal.doc' and voila up pops a Microsoft Word window with my document in it. ! \par ! \par \plain\f2\fs20\b\i Table 3 - Script to execute MS Word from the command line: ! \par \plain\f4\fs16 + ---------------------------------------------------------------------------- + ! \par + #!/bin/sh + ! \par + start '/c/Program\\ Files/Microsoft\\ Office/Office/WINWORD' $@ + ! \par + ---------------------------------------------------------------------------- + ! \par \plain\f2\fs20\b\i ! \par Other documentation:\plain\f2\fs20 ! \par Be sure to read the MSYS_ series. I have tried to document how I'm changing the cygwin code to allow us to use it with MSYS. These can be found in the /doc/msys directory, or you can find them in the /usr/doc/msys directory. ! \par ! \par \plain\f2\fs20\b\i Using binaries with different runtimes:\plain\f2\fs20 ! \par You can't use Cygwin binaries at all and if you try you'll most likely just cause the processes to "hang". You can use Win32 native binaries but you should put them into the /mingw/bin or your /usr/local/bin directory tree. If you wish to replace an MSYS binary with a native win32 version then delete or rename the /bin version. ! \par ! \par \plain\f2\fs20\b\i Effective use of the clipboard: ! \par \plain\f2\fs20 You may use the clipboard with MSYS. When using rxvt (the default installation) as the terminal, just selecting with data with click and drag of the mouse, copies the data to the clipboard. To paste the clipboard data in the rxvt terminal you can Shift and Left Click or press both mouse buttons if 3 button mouse emulation is on or press the mouse wheel. To copy the highlighted data to your favorite windows email client the you use the paste options for that program, typically Ctrl-V. You can also use interesting bash shell commands such as `cat /dev/clipboard > /tmp/foo' or `less -f /dev/clipboard'. Data entered into the clipboard by non-MSYS programs can also be used by MSYS programs and vice versa.\plain\f2\fs20\b\i ! \par ! \par Bug Reports:\plain\f2\fs20 ! \par Send your bug reports to Min...@li.... ! \par ! \par \plain\f2\fs20\b\i User Posts:\plain\f2\fs20 ! \par Min...@li... ! \par ! \par \plain\f2\fs20\b\i Disclaimer: ! \par \plain\f2\fs20 Products mentioned in this and other documents are solely owned by their trademark owners. We claim no rights to those trademarks and any mention of those products are for example only. Your uses of those products are your responsibility and no endorsement of any mentioned product is being given. ! \par ! \par \plain\f2\fs20\b\i Change History: ! \par \plain\f2\fs20 Version 1.0.3 added checks for paths following an `=' and `-X' where X ! \par is a program switch. ! \par ! \par Version 1.0.4 added symlink resolution, removed the dependancy that the pathmust begin with a / and removed bash.exe since sh.exe is bash.exe anyway. Also added diff, diff3 and head to the distribution. An MSYS icon exists in the rxvt binary. ! \par ! \par Version 1.0.5 is a bug fix release that filters out the conversion of quoted relative paths. So that -DSOME_CONSTANT=\\"1.0.5\\" can be properly input into gcc. Also fixed the problem with sh.exe reading /etc/profile with \\r\\n line endings. Added the binaries true.exe, false.exe, tail.exe and fold.exe. Updated the gmake binary to the Cygwin version including the --win32 switch. I am suggesting to use this version of make and have copied /bin/gmake.exe to /bin/make (yes without the .exe). If you wish to go back to the "native" version of make typing make.exe will get you there. ! \par ! \par Version 1.0.6 through current: See the appropriate MSYS-<version>-changes.rtf document. ! \par } |
From: Earnie B. <ea...@us...> - 2004-04-06 12:26:14
|
Update of /cvsroot/mingw/msys/rt/src/winsup/cygwin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv560 Modified Files: ChangeLog.MSYS fhandler.cc syscalls.cc winsup.h Log Message: * fhandler.cc (fhandler_base::lseek): Remove filtered out code. * syscalls.cc: Add TRACE_IN throughout. * winsup.h (TRACE_IN): Modify so that -DTRACING can be defined without -DDEBUGGING to limit the amount of data. NOTE: ../utils/strace.cc needs to be modified to recognize TRACE_IN as acceptable string for display. Index: winsup.h =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/winsup.h,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** winsup.h 30 Mar 2004 02:29:20 -0000 1.14 --- winsup.h 6 Apr 2004 12:13:25 -0000 1.15 *************** *** 31,35 **** #endif #if TRACING ! # define TRACE_IN debug_printf("TRACE_IN: %s, %d", __FILE__, __LINE__) #else # define TRACE_IN --- 31,36 ---- #endif #if TRACING ! //# define TRACE_IN debug_printf("TRACE_IN: %s, %d", __FILE__, __LINE__) ! # define TRACE_IN char TrcInBuf[256]; __small_sprintf(TrcInBuf, "TRACE_IN: %s, %d, %s", __FILE__, __LINE__, __PRETTY_FUNCTION__); OutputDebugString (TrcInBuf) #else # define TRACE_IN Index: syscalls.cc =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/syscalls.cc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** syscalls.cc 30 Mar 2004 02:29:20 -0000 1.9 --- syscalls.cc 6 Apr 2004 12:13:25 -0000 1.10 *************** *** 52,55 **** --- 52,56 ---- close_all_files (void) { + TRACE_IN; SetResourceLock (LOCK_FD_LIST, WRITE_LOCK | READ_LOCK, "close_all_files"); *************** *** 69,72 **** --- 70,74 ---- check_ttys_fds (void) { + TRACE_IN; int res = FALSE; SetResourceLock (LOCK_FD_LIST, WRITE_LOCK | READ_LOCK, "close_all_files"); *************** *** 85,88 **** --- 87,91 ---- _unlink (const char *ourname) { + TRACE_IN; int res = -1; sigframe thisframe (mainthread); *************** *** 221,224 **** --- 224,228 ---- remove (const char *ourname) { + TRACE_IN; path_conv win32_name (ourname, PC_SYM_NOFOLLOW | PC_FULL); *************** *** 240,243 **** --- 244,248 ---- _getpid () { + TRACE_IN; return myself->pid; } *************** *** 247,250 **** --- 252,256 ---- getppid () { + TRACE_IN; return myself->ppid; } *************** *** 254,257 **** --- 260,264 ---- setsid (void) { + TRACE_IN; if (myself->pgid != _getpid ()) { *************** *** 273,276 **** --- 280,284 ---- _read (int fd, void *ptr, size_t len) { + TRACE_IN; int res; fhandler_base *fh; *************** *** 1212,1215 **** --- 1220,1224 ---- access (const char *fn, int flags) { + TRACE_IN; sigframe thisframe (mainthread); // flags were incorrectly specified *************** *** 1283,1286 **** --- 1292,1296 ---- _rename (const char *oldpath, const char *newpath) { + TRACE_IN; sigframe thisframe (mainthread); int res = 0; *************** *** 1416,1419 **** --- 1426,1430 ---- system (const char *cmdstring) { + TRACE_IN; sigframe thisframe (mainthread); int res; *************** *** 1452,1455 **** --- 1463,1467 ---- setdtablesize (int size) { + TRACE_IN; if (size <= (int)cygheap->fdtab.size || cygheap->fdtab.extend (size - cygheap->fdtab.size)) return 0; *************** *** 1461,1464 **** --- 1473,1477 ---- getdtablesize () { + TRACE_IN; return cygheap->fdtab.size > OPEN_MAX ? cygheap->fdtab.size : OPEN_MAX; } *************** *** 1467,1470 **** --- 1480,1484 ---- getpagesize () { + TRACE_IN; if (!system_info.dwPageSize) GetSystemInfo (&system_info); *************** *** 1475,1478 **** --- 1489,1493 ---- check_posix_perm (const char *fname, int v) { + TRACE_IN; extern int allow_ntea, allow_ntsec, allow_smbntsec; *************** *** 1510,1513 **** --- 1525,1529 ---- fpathconf (int fd, int v) { + TRACE_IN; if (cygheap->fdtab.not_open (fd)) { *************** *** 1562,1565 **** --- 1578,1582 ---- pathconf (const char *file, int v) { + TRACE_IN; switch (v) { *************** *** 1605,1608 **** --- 1622,1626 ---- ttyname (int fd) { + TRACE_IN; if (cygheap->fdtab.not_open (fd) || !cygheap->fdtab[fd]->is_tty ()) { *************** *** 1615,1618 **** --- 1633,1637 ---- ctermid (char *str) { + TRACE_IN; static NO_COPY char buf[16]; if (str == NULL) *************** *** 1629,1632 **** --- 1648,1652 ---- _cygwin_istext_for_stdio (int fd) { + TRACE_IN; syscall_printf ("_cygwin_istext_for_stdio (%d)\n", fd); if (CYGWIN_VERSION_OLD_STDIO_CRLF_HANDLING) *************** *** 1669,1672 **** --- 1689,1693 ---- setmode_helper (FILE *f) { + TRACE_IN; if (fileno (f) != setmode_file) return 0; *************** *** 1684,1687 **** --- 1705,1709 ---- getmode (int fd) { + TRACE_IN; if (cygheap->fdtab.not_open (fd)) { *************** *** 1699,1702 **** --- 1721,1725 ---- setmode (int fd, int mode) { + TRACE_IN; if (cygheap->fdtab.not_open (fd)) { *************** *** 1755,1758 **** --- 1778,1782 ---- ftruncate (int fd, off_t length) { + TRACE_IN; sigframe thisframe (mainthread); int res = -1; *************** *** 1793,1796 **** --- 1817,1821 ---- truncate (const char *pathname, off_t length) { + TRACE_IN; sigframe thisframe (mainthread); int fd; *************** *** 1814,1817 **** --- 1839,1843 ---- get_osfhandle (int fd) { + TRACE_IN; long res = -1; *************** *** 1828,1831 **** --- 1854,1858 ---- statfs (const char *fname, struct statfs *sfs) { + TRACE_IN; sigframe thisframe (mainthread); if (!sfs) *************** *** 1869,1872 **** --- 1896,1900 ---- fstatfs (int fd, struct statfs *sfs) { + TRACE_IN; sigframe thisframe (mainthread); if (cygheap->fdtab.not_open (fd)) *************** *** 1883,1886 **** --- 1911,1915 ---- setpgid (pid_t pid, pid_t pgid) { + TRACE_IN; sigframe thisframe (mainthread); int res = -1; *************** *** 1925,1928 **** --- 1954,1958 ---- getpgid (pid_t pid) { + TRACE_IN; sigframe thisframe (mainthread); if (pid == 0) *************** *** 1941,1944 **** --- 1971,1975 ---- setpgrp (void) { + TRACE_IN; sigframe thisframe (mainthread); return setpgid (0, 0); *************** *** 1948,1951 **** --- 1979,1983 ---- getpgrp (void) { + TRACE_IN; sigframe thisframe (mainthread); return getpgid (0); *************** *** 1955,1958 **** --- 1987,1991 ---- ptsname (int fd) { + TRACE_IN; sigframe thisframe (mainthread); if (cygheap->fdtab.not_open (fd)) *************** *** 1968,1971 **** --- 2001,2005 ---- regfree () { + TRACE_IN; return 0; } *************** *** 1980,1983 **** --- 2014,2018 ---- mknod (const char *_path, mode_t mode, dev_t dev) { + TRACE_IN; set_errno (ENOSYS); return -1; *************** *** 1987,1990 **** --- 2022,2026 ---- mkfifo (const char *_path, mode_t mode) { + TRACE_IN; set_errno (ENOSYS); return -1; *************** *** 1995,1998 **** --- 2031,2035 ---- setgid (gid_t gid) { + TRACE_IN; int ret = setegid (gid); if (!ret) *************** *** 2005,2008 **** --- 2042,2046 ---- setuid (uid_t uid) { + TRACE_IN; int ret = seteuid (uid); if (!ret) *************** *** 2018,2021 **** --- 2056,2060 ---- seteuid (uid_t uid) { + TRACE_IN; sigframe thisframe (mainthread); if (iswinnt) *************** *** 2233,2236 **** --- 2272,2276 ---- setegid (gid_t gid) { + TRACE_IN; sigframe thisframe (mainthread); if (iswinnt) *************** *** 2279,2282 **** --- 2319,2323 ---- chroot (const char *newroot) { + TRACE_IN; sigframe thisframe (mainthread); int ret = -1; *************** *** 2309,2312 **** --- 2350,2354 ---- creat (const char *path, mode_t mode) { + TRACE_IN; sigframe thisframe (mainthread); return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); *************** *** 2316,2319 **** --- 2358,2362 ---- __assertfail () { + TRACE_IN; exit (99); } *************** *** 2322,2325 **** --- 2365,2369 ---- getw (FILE *fp) { + TRACE_IN; sigframe thisframe (mainthread); int w, ret; *************** *** 2331,2334 **** --- 2375,2379 ---- putw (int w, FILE *fp) { + TRACE_IN; sigframe thisframe (mainthread); int ret; *************** *** 2342,2345 **** --- 2387,2391 ---- wcscmp (const wchar_t *s1, const wchar_t *s2) { + TRACE_IN; while (*s1 && *s1 == *s2) { *************** *** 2354,2357 **** --- 2400,2404 ---- wcslen (const wchar_t *s1) { + TRACE_IN; int l = 0; while (s1[l]) *************** *** 2366,2369 **** --- 2413,2417 ---- wprintf (const char *fmt, ...) { + TRACE_IN; va_list ap; int ret; *************** *** 2378,2381 **** --- 2426,2430 ---- vhangup () { + TRACE_IN; set_errno (ENOSYS); return -1; *************** *** 2385,2388 **** --- 2434,2438 ---- memccpy (_PTR out, const _PTR in, int c, size_t len) { + TRACE_IN; const char *inc = (char *) in; char *outc = (char *) out; *************** *** 2402,2405 **** --- 2452,2456 ---- nice (int incr) { + TRACE_IN; sigframe thisframe (mainthread); DWORD priority[] = *************** *** 2450,2453 **** --- 2501,2505 ---- ffs (int i) { + TRACE_IN; static const unsigned char table[] = { *************** *** 2472,2475 **** --- 2524,2528 ---- login (struct utmp *ut) { + TRACE_IN; sigframe thisframe (mainthread); register int fd; *************** *** 2497,2500 **** --- 2550,2554 ---- logout (char *line) { + TRACE_IN; sigframe thisframe (mainthread); int res = 0; Index: ChangeLog.MSYS =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/ChangeLog.MSYS,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** ChangeLog.MSYS 30 Mar 2004 12:31:56 -0000 1.64 --- ChangeLog.MSYS 6 Apr 2004 12:13:25 -0000 1.65 *************** *** 1,2 **** --- 1,11 ---- + 2004-04-06 Earnie Boyd <ea...@us...> + + * fhandler.cc (fhandler_base::lseek): Remove filtered out code. + * syscalls.cc: Add TRACE_IN throughout. + * winsup.h (TRACE_IN): Modify so that -DTRACING can be defined without + -DDEBUGGING to limit the amount of data. + NOTE: ../utils/strace.cc needs to be modified to recognize TRACE_IN as + acceptable string for display. + 2004-03-30 Earnie Boyd <ea...@us...> Index: fhandler.cc =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/fhandler.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** fhandler.cc 30 Mar 2004 12:31:56 -0000 1.7 --- fhandler.cc 6 Apr 2004 12:13:25 -0000 1.8 *************** *** 728,788 **** debug_printf ("lseek (%s, %d, %d)", unix_path_name, offset, whence); - #if 0 /* lseek has no business messing about with text-mode stuff */ - - if (!get_r_binary ()) - { - int newplace; - - if (whence == 0) - { - newplace = offset; - } - else if (whence ==1) - { - newplace = rpos + offset; - } - else - { - /* Seek from the end of a file.. */ - if (rsize == -1) - { - /* Find the size of the file by reading till the end */ - - char b[CHUNK_SIZE]; - while (read (b, sizeof (b)) > 0) - ; - rsize = rpos; - } - newplace = rsize + offset; - } - - if (rpos > newplace) - { - SetFilePointer (handle, 0, 0, 0); - rpos = 0; - } - - /* You can never shrink something more than 50% by turning CRLF into LF, - so we binary chop looking for the right place */ - - while (rpos < newplace) - { - char b[CHUNK_SIZE]; - size_t span = (newplace - rpos) / 2; - if (span == 0) - span = 1; - if (span > sizeof (b)) - span = sizeof (b); - - debug_printf ("lseek (%s, %d, %d) span %d, rpos %d newplace %d", - name, offset, whence,span,rpos, newplace); - read (b, span); - } - - debug_printf ("Returning %d", newplace); - return newplace; - } - #endif /* end of deleted code dealing with text mode */ - DWORD win32_whence = whence == SEEK_SET ? FILE_BEGIN : (whence == SEEK_CUR ? FILE_CURRENT : FILE_END); --- 728,731 ---- |