[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mingw-cvs
Subject:    MinGW-cvs digest, Vol 1 #410 - 10 msgs
From:       mingw-cvs-request () lists ! sourceforge ! net
Date:       2004-07-13 11:13:03
Message-ID: E1BkLEY-0007Ui-43 () sc8-sf-list1 ! sourceforge ! net
[Download RAW message or body]

Send MinGW-cvs mailing list submissions to
	mingw-cvs@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/mingw-cvs
or, via email, send a message with subject or body 'help' to
	mingw-cvs-request@lists.sourceforge.net

You can reach the person managing the list at
	mingw-cvs-admin@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of MinGW-cvs digest..."


This list will notify you of updates to the code stored in CVS.  Typically only \
developers with access to update the CVS are interested in this list.  However, this \
list can be beneficial to see what is happening with your changes.  If you wish to \
unsubscribe please do so at https://lists.sourceforge.net/lists/listinfo/mingw-cvs.

Today's Topics:

   1. runtime ChangeLog,1.61,1.62 (Earnie Boyd)
   2. runtime/include/sys types.h,1.8,1.9 (Earnie Boyd)
   3. runtime/mingwex/math cephes_emath.h,1.3,1.4 (Earnie Boyd)
   4. runtime/include io.h,1.10,1.11 limits.h,1.3,1.4 math.h,1.18,1.19 \
stdio.h,1.17,1.18 time.h,1.9,1.10 unistd.h,1.4,1.5 (Earnie Boyd)  5. runtime/mingwex \
Makefile.in,1.9,1.10 mingw-fseek.c,1.2,1.3 (Earnie Boyd)  6. runtime/mingwex \
fopen64.c,NONE,1.1 fseeko64.c,NONE,1.1 ftello64.c,NONE,1.1 ftruncate.c,NONE,1.1 \
lseek64.c,NONE,1.1 (Earnie Boyd)  7. runtime/include _mingw.h,1.19,1.20 \
limits.h,1.4,1.5 (Earnie Boyd)  8. runtime ChangeLog,1.62,1.63 Makefile.in,1.29,1.30 \
(Earnie Boyd)  9. runtime ChangeLog,1.63,1.64 (Earnie Boyd)
  10. runtime/include limits.h,1.5,1.6 (Earnie Boyd)

--__--__--

Message: 1
From: Earnie Boyd <earnie@users.sourceforge.net>
To: mingw-cvs@lists.sourceforge.net
Date: Tue, 13 Jul 2004 10:57:40 +0000
Subject: [MinGW-cvs] runtime ChangeLog,1.61,1.62

Update of /cvsroot/mingw/runtime
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13590

Modified Files:
	ChangeLog 
Log Message:
Import winsup changes

Index: ChangeLog
===================================================================
RCS file: /cvsroot/mingw/runtime/ChangeLog,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -d -r1.61 -r1.62
*** ChangeLog	22 Apr 2004 16:36:51 -0000	1.61
--- ChangeLog	13 Jul 2004 10:57:38 -0000	1.62
***************
*** 1,2 ****
--- 1,50 ----
+ 2004-07-12  Danny Smith  <dannysmith@users.sourceforge.net>
+ 
+ 	* mingwex/math/cephes_emath.h (__etens): Remove declaration.
+ 
+ 2004-07-11  Danny Smith  <dannysmith@users.sourceforge.net>
+ 
+ 	* include/unistd.h (ftruncate): Add inline definition.
+ 	* mingwex/ftruncate.c: New file.
+ 	* mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
+ 
+ 2004-07-10  Danny Smith  <dannysmith@users.sourceforge.net>
+ 
+ 	* include/time.h: Do not include sys/types.h.
+ 
+ 2004-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
+ 
+ 	* mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
+ 	(MATH_OBJS): Remove pow,o.
+ 	* include/math.h (pow): Declare with _CRTIMP.
+ 	Add comment on how to avoid excess precision problems.
+ 
+ 2004-06-30  Danny Smith  <dannysmith@users.sourceforge.net>
+ 
+ 	* include/stdio.h (__mingw_fseeko64): Add prototype.
+ 	* mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
+ 	(__mingw_fwrite): Handle huge files.
+ 
+ 2004-06-30  Kees Zeelenberg  <kzlg@users.sourceforge.net>
+             Danny Smith  <dannysmith@users.sourceforge.net>
+ 
+ 	* include/stdio.h (fopen64): Add inline function.
+ 	(fseeko64): Add prototype.
+ 	(ftello64): Add inline function.
+ 	* include/io.h (lseek64): Add inline function.
+ 	* include/sys/types (off64_t): Add typedef.
+ 	(fpos64_t): Add typedef.
+         * mingwex/fopen64.c: New file.
+         * mingwex/fseeko64.c: New file.
+         * mingwex/ftello64.c: New file.
+         * mingwex/lseek64.c: New file.
+ 	* mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
+ 	fseeko.64.c, ftello64.c, lseek64.c. 
+ 	(STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
+ 
+ 2004-04-24  Luke Dunstan  <infidel@users.sourceforge.net>
+ 
+ 	* include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
+ 
  2004-04-22  Earnie Boyd  <earnie@users.sf.net>
  



--__--__--

Message: 2
From: Earnie Boyd <earnie@users.sourceforge.net>
To: mingw-cvs@lists.sourceforge.net
Date: Tue, 13 Jul 2004 10:57:41 +0000
Subject: [MinGW-cvs] runtime/include/sys types.h,1.8,1.9

Update of /cvsroot/mingw/runtime/include/sys
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13590/include/sys

Modified Files:
	types.h 
Log Message:
Import winsup changes

Index: types.h
===================================================================
RCS file: /cvsroot/mingw/runtime/include/sys/types.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** types.h	20 Apr 2004 23:26:32 -0000	1.8
--- types.h	13 Jul 2004 10:57:39 -0000	1.9
***************
*** 106,109 ****
--- 106,118 ----
  #endif /* Not _SSIZE_T_ */ 
  
+ #ifndef _FPOS64_T_
+ #define _FPOS64_T_
+ typedef long long fpos64_t;
+ #endif
+ 
+ #ifndef _OFF64_T_
+ #define _OFF64_T_
+ typedef long long off64_t;
+ #endif
  
  #endif	/* Not RC_INVOKED */



--__--__--

Message: 3
From: Earnie Boyd <earnie@users.sourceforge.net>
To: mingw-cvs@lists.sourceforge.net
Date: Tue, 13 Jul 2004 10:57:41 +0000
Subject: [MinGW-cvs] runtime/mingwex/math cephes_emath.h,1.3,1.4

Update of /cvsroot/mingw/runtime/mingwex/math
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13590/mingwex/math

Modified Files:
	cephes_emath.h 
Log Message:
Import winsup changes

Index: cephes_emath.h
===================================================================
RCS file: /cvsroot/mingw/runtime/mingwex/math/cephes_emath.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** cephes_emath.h	19 Apr 2004 17:22:42 -0000	1.3
--- cephes_emath.h	13 Jul 2004 10:57:39 -0000	1.4
***************
*** 301,306 ****
  #define MAXP 4096
  
- extern const unsigned short __etens[NTEN + 1][NE];
- 
  /*
  ; Clear out entire external format number.
--- 301,304 ----



--__--__--

Message: 4
From: Earnie Boyd <earnie@users.sourceforge.net>
To: mingw-cvs@lists.sourceforge.net
Date: Tue, 13 Jul 2004 10:57:41 +0000
Subject: [MinGW-cvs] runtime/include io.h,1.10,1.11 limits.h,1.3,1.4 math.h,1.18,1.19 \
stdio.h,1.17,1.18 time.h,1.9,1.10 unistd.h,1.4,1.5

Update of /cvsroot/mingw/runtime/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13590/include

Modified Files:
	io.h limits.h math.h stdio.h time.h unistd.h 
Log Message:
Import winsup changes

Index: time.h
===================================================================
RCS file: /cvsroot/mingw/runtime/include/time.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** time.h	20 Apr 2004 23:26:29 -0000	1.9
--- time.h	13 Jul 2004 10:57:38 -0000	1.10
***************
*** 23,31 ****
  
  /*
-  * Need a definition of time_t.
-  */
- #include <sys/types.h>
- 
- /*
   * Number of clock ticks per second. A clock tick is the unit by which
   * processor time is measured and is returned by 'clock'.
--- 23,26 ----
***************
*** 40,44 ****
   * A type for storing the current time and date. This is the number of
   * seconds since midnight Jan 1, 1970.
!  * NOTE: Normally this is defined by the above include of sys/types.h
   */
  #ifndef _TIME_T_DEFINED
--- 35,39 ----
   * A type for storing the current time and date. This is the number of
   * seconds since midnight Jan 1, 1970.
!  * NOTE: This is also defined in non-ISO sys/types.h.
   */
  #ifndef _TIME_T_DEFINED

Index: stdio.h
===================================================================
RCS file: /cvsroot/mingw/runtime/include/stdio.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** stdio.h	20 Apr 2004 23:26:28 -0000	1.17
--- stdio.h	13 Jul 2004 10:57:38 -0000	1.18
***************
*** 393,396 ****
--- 393,420 ----
  #endif
  
+ #if defined (__MSVCRT__) && !defined (__NO_MINGW_LFS)
+ #include <sys/types.h>
+ __CRT_INLINE FILE* __cdecl fopen64 (const char* filename, const char* mode)
+ {
+   return fopen (filename, mode); 
+ }
+ 
+ int __cdecl fseeko64 (FILE*, off64_t, int);
+ 
+ #ifdef __USE_MINGW_FSEEK
+ int __cdecl __mingw_fseeko64 (FILE *, off64_t, int);
+ #define fseeko64(fp, offset, whence)  __mingw_fseeko64(fp, offset, whence)
+ #endif
+ 
+ __CRT_INLINE off64_t __cdecl ftello64 (FILE * stream)
+ {
+   fpos_t pos;
+   if (fgetpos(stream, &pos))
+     return  -1LL;
+   else
+    return ((off64_t) pos);
+ }
+ #endif /* __NO_MINGW_LFS */
+ 
  #endif	/* Not __STRICT_ANSI__ */
  

Index: io.h
===================================================================
RCS file: /cvsroot/mingw/runtime/include/io.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** io.h	20 Apr 2004 23:26:26 -0000	1.10
--- io.h	13 Jul 2004 10:57:38 -0000	1.11
***************
*** 145,148 ****
--- 145,156 ----
  _CRTIMP intptr_t __cdecl _findnext64(intptr_t, struct __finddata64_t*); 
  #endif /* __MSVCRT_VERSION__ >= 0x0601 */
+ 
+ #ifndef __NO_MINGW_LFS
+ __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) 
+ {
+   return _lseeki64(fd, (__int64) offset, whence);
+ }
+ #endif
+ 
  #endif /* __MSVCRT__ */
  

Index: unistd.h
===================================================================
RCS file: /cvsroot/mingw/runtime/include/unistd.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** unistd.h	19 Apr 2004 17:22:41 -0000	1.4
--- unistd.h	13 Jul 2004 10:57:38 -0000	1.5
***************
*** 15,17 ****
--- 15,33 ----
  #undef __UNISTD_GETOPT__
  
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+ 
+ /* This is defined as a real library function to allow autoconf
+    to verify its existence. */
+ int ftruncate(int, off_t);
+ __CRT_INLINE int ftruncate(int __fd, off_t __length)
+ {
+   return _chsize (__fd, __length);
+ }
+ 
+ #ifdef __cplusplus
+ }
+ #endif
+ 
  #endif /* _UNISTD_H */

Index: limits.h
===================================================================
RCS file: /cvsroot/mingw/runtime/include/limits.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** limits.h	29 Nov 2001 04:26:33 -0000	1.3
--- limits.h	13 Jul 2004 10:57:38 -0000	1.4
***************
*** 110,113 ****
--- 110,118 ----
  #define ULLONG_MAX ULONG_LONG_MAX
  
+ /* MSVC compatibility */
+ #define _I64_MIN LONG_LONG_MIN
+ #define _I64_MAX LONG_LONG_MAX
+ #define _UI64_MAX ULONG_LONG_MAX
+ 
  #endif /* Not Strict ANSI and GNU C compiler */
  

Index: math.h
===================================================================
RCS file: /cvsroot/mingw/runtime/include/math.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** math.h	20 Apr 2004 23:26:26 -0000	1.18
--- math.h	13 Jul 2004 10:57:38 -0000	1.19
***************
*** 130,134 ****
  };
  
- 
  _CRTIMP double __cdecl sin (double);
  _CRTIMP double __cdecl cos (double);
--- 130,133 ----
***************
*** 144,151 ****
  _CRTIMP double __cdecl log (double);
  _CRTIMP double __cdecl log10 (double);
! #ifdef __NO_ISOCEXT
! _CRTIMP
! #endif
! 	double __cdecl pow (double, double);
  _CRTIMP double __cdecl sqrt (double);
  _CRTIMP double __cdecl ceil (double);
--- 143,147 ----
  _CRTIMP double __cdecl log (double);
  _CRTIMP double __cdecl log10 (double);
! _CRTIMP	double __cdecl pow (double, double);
  _CRTIMP double __cdecl sqrt (double);
  _CRTIMP double __cdecl ceil (double);
***************
*** 157,160 ****
--- 153,194 ----
  _CRTIMP double __cdecl fmod (double, double);
  
+ /* Excess precision when using a 64-bit mantissa for FPU math ops can
+    cause unexpected results with some of the MSVCRT math functions.  For
+    example, unless the function return value is stored (truncating to
+    53-bit mantissa), calls to pow with both x and y as integral values
+    sometimes produce a non-integral result.
+    One workaround is to reset the FPU env to 53-bit mantissa
+    by a call to fesetenv (FE_PC53_ENV).  Amother is to force storage
+    of the return value of individual math functions using wrappers.
+    NB, using these wrappers will disable builtin math functions and
+    hence disable the folding of function results at compile time when
+    arguments are constant.  */
+ 
+ #if 0
+ #define __DEFINE_FLOAT_STORE_MATHFN_D1(fn1)	\
+ static __inline__ double			\
+ __float_store_ ## fn1 (double x)		\
+ {						\
+    __volatile__ double res = (fn1) (x);		\
+   return res;					\
+ }
+ 
+ #define __DEFINE_FLOAT_STORE_MATHFN_D2(fn2)	\
+ static __inline__ double			\
+ __float_store_ ## fn2 (double x, double y)	\
+ {						\
+   __volatile__ double res = (fn2) (x, y);	\
+   return res;					\
+ }
+ #endif
+ 
+ /* For example, here is how to force the result of the pow function
+    to be stored:   */
+ #if 0
+ #undef pow
+ /* Define the ___float_store_pow function and use it instead of pow().  */
+ __DEFINE_FLOAT_STORE_MATHFN_D2 (pow)
+ #define pow __float_store_pow
+ #endif
  
  #ifndef __STRICT_ANSI__



--__--__--

Message: 5
From: Earnie Boyd <earnie@users.sourceforge.net>
To: mingw-cvs@lists.sourceforge.net
Date: Tue, 13 Jul 2004 10:57:41 +0000
Subject: [MinGW-cvs] runtime/mingwex Makefile.in,1.9,1.10 mingw-fseek.c,1.2,1.3

Update of /cvsroot/mingw/runtime/mingwex
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13590/mingwex

Modified Files:
	Makefile.in mingw-fseek.c 
Log Message:
Import winsup changes

Index: Makefile.in
===================================================================
RCS file: /cvsroot/mingw/runtime/mingwex/Makefile.in,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Makefile.in	20 Apr 2004 23:26:32 -0000	1.9
--- Makefile.in	13 Jul 2004 10:57:39 -0000	1.10
***************
*** 30,35 ****
  	fegetexceptflag.c fegetround.c feholdexcept.c feraiseexcept.c \
  	fesetenv.c fesetexceptflag.c fesetround.c fetestexcept.c \
! 	feupdateenv.c fwide.c  getopt.c imaxabs.c imaxdiv.c ldtoa.c \
! 	lltoa.c lltow.c mbsinit.c mingw-fseek.c sitest.c strtof.c \
  	strtoimax.c strtold.c strtoumax.c testwmem.c ulltoa.c ulltow.c \
  	wcstof.c wcstoimax.c wcstold.c wcstoumax.c wdirent.c wmemchr.c \
--- 30,35 ----
  	fegetexceptflag.c fegetround.c feholdexcept.c feraiseexcept.c \
  	fesetenv.c fesetexceptflag.c fesetround.c fetestexcept.c \
! 	feupdateenv.c ftruncate.c fwide.c  getopt.c imaxabs.c imaxdiv.c \
! 	ldtoa.c lltoa.c lltow.c mbsinit.c mingw-fseek.c sitest.c strtof.c \
  	strtoimax.c strtold.c strtoumax.c testwmem.c ulltoa.c ulltow.c \
  	wcstof.c wcstoimax.c wcstold.c wcstoumax.c wdirent.c wmemchr.c \
***************
*** 54,58 ****
  	lrintl.c lround.c lroundf.c lroundl.c modff.c modfl.c \
  	nearbyint.S nearbyintf.S nearbyintl.S nextafterf.c \
! 	pow.c powf.c powi.c powif.c powil.c powl.c \
  	remainder.S remainderf.S remainderl.S remquo.S \
  	remquof.S remquol.S rint.c rintf.c rintl.c round.c roundf.c \
--- 54,58 ----
  	lrintl.c lround.c lroundf.c lroundl.c modff.c modfl.c \
  	nearbyint.S nearbyintf.S nearbyintl.S nextafterf.c \
! 	powf.c powi.c powif.c powil.c powl.c \
  	remainder.S remainderf.S remainderl.S remquo.S \
  	remquof.S remquol.S rint.c rintf.c rintl.c round.c roundf.c \
***************
*** 63,66 ****
--- 63,67 ----
  
  STDIO_DISTFILES = \
+ 	fopen64.c fseeko64.c ftello64.c lseek64.c \
  	snprintf.c snwprintf.c vsnprintf.c vsnwprintf.c \
  	vfscanf.c vfwscanf.c vscanf.c vsscanf.c vswscanf.c vwscanf.c
***************
*** 114,117 ****
--- 115,119 ----
  	_Exit.o
  STDIO_OBJS = \
+ 	fopen64.o fseeko64.o ftello64.o lseek64.o \
  	snprintf.o  vsnprintf.o snwprintf.o vsnwprintf.o \
  	vfscanf.o vfwscanf.o vscanf.o vsscanf.o vswscanf.o vwscanf.o
***************
*** 134,138 ****
  	lrintl.o lround.o lroundf.o lroundl.o modff.o modfl.o \
  	nearbyint.o nearbyintf.o nearbyintl.o nextafterf.o \
! 	pow.o powf.o powi.o powif.o powil.o powl.o \
  	remainder.o remainderf.o remainderl.o remquo.o \
  	remquof.o remquol.o rint.o rintf.o rintl.o round.o roundf.o \
--- 136,140 ----
  	lrintl.o lround.o lroundf.o lroundl.o modff.o modfl.o \
  	nearbyint.o nearbyintf.o nearbyintl.o nextafterf.o \
! 	powf.o powi.o powif.o powil.o powl.o \
  	remainder.o remainderf.o remainderl.o remquo.o \
  	remquof.o remquol.o rint.o rintf.o rintl.o round.o roundf.o \
***************
*** 146,150 ****
  	feraiseexcept.o fetestexcept.o fesetexceptflag.o
  POSIX_OBJS = \
! 	dirent.o wdirent.o getopt.o
  REPLACE_OBJS = \
  	mingw-fseek.o
--- 148,152 ----
  	feraiseexcept.o fetestexcept.o fesetexceptflag.o
  POSIX_OBJS = \
! 	dirent.o wdirent.o getopt.o ftruncate.o
  REPLACE_OBJS = \
  	mingw-fseek.o

Index: mingw-fseek.c
===================================================================
RCS file: /cvsroot/mingw/runtime/mingwex/mingw-fseek.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** mingw-fseek.c	5 Feb 2003 23:04:52 -0000	1.2
--- mingw-fseek.c	13 Jul 2004 10:57:39 -0000	1.3
***************
*** 31,34 ****
--- 31,42 ----
  
  int
+ __mingw_fseeko64 (FILE *fp, off64_t offset, int whence)
+ {
+ # undef fseeko64
+   __mingw_fseek_called = 1;
+   return fseeko64 (fp, offset, whence);
+ }
+ 
+ int
  __mingw_fwrite (const void *buffer, size_t size, size_t count, FILE *fp)
  {
***************
*** 36,63 ****
    if ((_osver & 0x8000) &&  __mingw_fseek_called)
      {
!       DWORD actual_length, current_position;
        __mingw_fseek_called = 0;
        fflush (fp);
!       actual_length = GetFileSize ((HANDLE) _get_osfhandle (fileno (fp)), 
!                                    NULL);
!       current_position = SetFilePointer ((HANDLE) _get_osfhandle (fileno (fp)),
!                                          0, 0, FILE_CURRENT);
  #ifdef DEBUG
!       printf ("__mingw_fwrite: current %ld, actual %ld\n", 
! 	      current_position, actual_length);
  #endif /* DEBUG */
!       if (current_position > actual_length)
  	{
  	  static char __mingw_zeros[ZEROBLOCKSIZE];
! 	  long numleft;
  
  	  SetFilePointer ((HANDLE) _get_osfhandle (fileno (fp)), 
  	                  0, 0, FILE_END);
! 	  numleft = current_position - actual_length;
  
  #ifdef DEBUG
! 	  printf ("__mingw_fwrite: Seeking %ld bytes past end\n", numleft);
  #endif /* DEBUG */
! 	  while (numleft > 0)
  	    {
  	      DWORD nzeros = (numleft > ZEROBLOCKSIZE)
--- 44,81 ----
    if ((_osver & 0x8000) &&  __mingw_fseek_called)
      {
!       ULARGE_INTEGER actual_length;
!       LARGE_INTEGER current_position = {{0LL}};
        __mingw_fseek_called = 0;
        fflush (fp);
!       actual_length.LowPart = GetFileSize ((HANDLE) _get_osfhandle (fileno (fp)), 
! 					   &actual_length.HighPart);
!       if (actual_length.LowPart == 0xFFFFFFFF 
!           && GetLastError() != NO_ERROR )
!         return -1;
!       current_position.LowPart = SetFilePointer ((HANDLE) _get_osfhandle (fileno \
                (fp)),
!                                          	 current_position.LowPart,
! 					 	 &current_position.HighPart,
! 						 FILE_CURRENT);
!       if (current_position.LowPart == 0xFFFFFFFF 
!           && GetLastError() != NO_ERROR )
!         return -1;
! 
  #ifdef DEBUG
!       printf ("__mingw_fwrite: current %I64u, actual %I64u\n", 
! 	      current_position.QuadPart, actual_length.QuadPart);
  #endif /* DEBUG */
!       if (current_position.QuadPart > actual_length.QuadPart)
  	{
  	  static char __mingw_zeros[ZEROBLOCKSIZE];
! 	  long long numleft;
  
  	  SetFilePointer ((HANDLE) _get_osfhandle (fileno (fp)), 
  	                  0, 0, FILE_END);
! 	  numleft = current_position.QuadPart - actual_length.QuadPart;
  
  #ifdef DEBUG
! 	  printf ("__mingw_fwrite: Seeking %I64d bytes past end\n", numleft);
  #endif /* DEBUG */
! 	  while (numleft > 0LL)
  	    {
  	      DWORD nzeros = (numleft > ZEROBLOCKSIZE)



--__--__--

Message: 6
From: Earnie Boyd <earnie@users.sourceforge.net>
To: mingw-cvs@lists.sourceforge.net
Date: Tue, 13 Jul 2004 10:59:15 +0000
Subject: [MinGW-cvs] runtime/mingwex fopen64.c,NONE,1.1 fseeko64.c,NONE,1.1 \
ftello64.c,NONE,1.1 ftruncate.c,NONE,1.1 lseek64.c,NONE,1.1

Update of /cvsroot/mingw/runtime/mingwex
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13809

Added Files:
	fopen64.c fseeko64.c ftello64.c ftruncate.c lseek64.c 
Log Message:
Import winsup changes

--- NEW FILE: fseeko64.c ---
#include <stdio.h>
#include <io.h>
#include <errno.h>

int __cdecl
fseeko64 (FILE* stream, off64_t offset, int whence)
{
  fpos_t pos;
  if (whence == SEEK_CUR)
    {
      /* If stream is invalid, fgetpos sets errno. */
      if (fgetpos (stream, &pos))
        return (-1);
      pos += (fpos_t) offset;
    }
  else if (whence == SEEK_END)
    pos = (fpos_t) (_filelengthi64 (_fileno (stream)) + offset);
  else if (whence == SEEK_SET)
    pos = (fpos_t) offset;
  else
    {
      errno = EINVAL;
      return (-1);
    }
  return fsetpos (stream, &pos);
}


--- NEW FILE: fopen64.c ---
#include <stdio.h>

FILE* __cdecl
fopen64 (const char* filename, const char* mode)
{
  return fopen (filename, mode);
}

--- NEW FILE: lseek64.c ---
#include <io.h>

off64_t lseek64
(int fd, off64_t offset, int whence) 
{
  return _lseeki64(fd, (__int64) offset, whence);
}


--- NEW FILE: ftruncate.c ---
#include <unistd.h>
int ftruncate(int __fd, off_t __length)
{
  return _chsize (__fd, __length);
}

--- NEW FILE: ftello64.c ---
#include <stdio.h>

off64_t __cdecl
ftello64 (FILE * stream)
{
  fpos_t pos;
  if (fgetpos(stream, &pos))
    return  -1LL;
  else
   return ((off64_t) pos);
}



--__--__--

Message: 7
From: Earnie Boyd <earnie@users.sourceforge.net>
To: mingw-cvs@lists.sourceforge.net
Date: Tue, 13 Jul 2004 11:05:17 +0000
Subject: [MinGW-cvs] runtime/include _mingw.h,1.19,1.20 limits.h,1.4,1.5

Update of /cvsroot/mingw/runtime/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14855/include

Modified Files:
	_mingw.h limits.h 
Log Message:
Import winsup changes

Index: _mingw.h
===================================================================
RCS file: /cvsroot/mingw/runtime/include/_mingw.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** _mingw.h	19 Apr 2004 17:22:40 -0000	1.19
--- _mingw.h	13 Jul 2004 11:05:15 -0000	1.20
***************
*** 123,129 ****
  #endif
  
! #define __MINGW32_VERSION 3.3
  #define __MINGW32_MAJOR_VERSION 3
! #define __MINGW32_MINOR_VERSION 3
  
  #endif /* __MINGW_H */
--- 123,129 ----
  #endif
  
! #define __MINGW32_VERSION 3.4
  #define __MINGW32_MAJOR_VERSION 3
! #define __MINGW32_MINOR_VERSION 4
  
  #endif /* __MINGW_H */




--__--__--

Message: 8
From: Earnie Boyd <earnie@users.sourceforge.net>
To: mingw-cvs@lists.sourceforge.net
Date: Tue, 13 Jul 2004 11:05:17 +0000
Subject: [MinGW-cvs] runtime ChangeLog,1.62,1.63 Makefile.in,1.29,1.30

Update of /cvsroot/mingw/runtime
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14855

Modified Files:
	ChangeLog Makefile.in 
Log Message:
Import winsup changes

Index: Makefile.in
===================================================================
RCS file: /cvsroot/mingw/runtime/Makefile.in,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** Makefile.in	22 Apr 2004 16:36:51 -0000	1.29
--- Makefile.in	13 Jul 2004 11:05:15 -0000	1.30
***************
*** 19,23 ****
  
  PACKAGE = mingw-runtime
! VERSION = 3.3
  CYGRELEASE = 1
  
--- 19,23 ----
  
  PACKAGE = mingw-runtime
! VERSION = 3.4
  CYGRELEASE = 1
  

Index: ChangeLog
===================================================================
RCS file: /cvsroot/mingw/runtime/ChangeLog,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -d -r1.62 -r1.63
*** ChangeLog	13 Jul 2004 10:57:38 -0000	1.62
--- ChangeLog	13 Jul 2004 11:05:15 -0000	1.63
***************
*** 1,2 ****
--- 1,7 ----
+ 2004-07-13  Earnie Boyd  <earnie@users.sourcefourge.net>
+ 
+ 	* include/_mingw.h: Increment minor version for 3.4 release.
+ 	* Makefile.in: Ditto.
+ 
  2004-07-12  Danny Smith  <dannysmith@users.sourceforge.net>
  



--__--__--

Message: 9
From: Earnie Boyd <earnie@users.sourceforge.net>
To: mingw-cvs@lists.sourceforge.net
Date: Tue, 13 Jul 2004 11:12:06 +0000
Subject: [MinGW-cvs] runtime ChangeLog,1.63,1.64

Update of /cvsroot/mingw/runtime
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15857

Modified Files:
	ChangeLog 
Log Message:
Import winsup changes

Index: ChangeLog
===================================================================
RCS file: /cvsroot/mingw/runtime/ChangeLog,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** ChangeLog	13 Jul 2004 11:05:15 -0000	1.63
--- ChangeLog	13 Jul 2004 11:12:04 -0000	1.64
***************
*** 1,4 ****
--- 1,5 ----
  2004-07-13  Earnie Boyd  <earnie@users.sourcefourge.net>
  
+ 	* include/limits.h: Change to new file header preamble.
  	* include/_mingw.h: Increment minor version for 3.4 release.
  	* Makefile.in: Ditto.



--__--__--

Message: 10
From: Earnie Boyd <earnie@users.sourceforge.net>
To: mingw-cvs@lists.sourceforge.net
Date: Tue, 13 Jul 2004 11:12:07 +0000
Subject: [MinGW-cvs] runtime/include limits.h,1.5,1.6

Update of /cvsroot/mingw/runtime/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15857/include

Modified Files:
	limits.h 
Log Message:
Import winsup changes

Index: limits.h
===================================================================
RCS file: /cvsroot/mingw/runtime/include/limits.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** limits.h	13 Jul 2004 11:05:15 -0000	1.5
--- limits.h	13 Jul 2004 11:12:04 -0000	1.6
***************
*** 1,4 ****
--- 1,10 ----
  /* 
   * limits.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.
   *
   * Defines constants for the sizes of integral types.
***************
*** 7,29 ****
   *       use that version instead of this one (maybe safer).
   *
-  * This file is part of the Mingw32 package.
-  *
-  * Contributors:
-  *  Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
-  *
-  *  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$
-  *
   */
  
--- 13,16 ----




--__--__--

_______________________________________________
MinGW-cvs mailing list
MinGW-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-cvs


End of MinGW-cvs Digest


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic