------- Comment #14 from burnus at gcc dot gnu dot org  2009-12-01 16:21 -------
Some further notes based on the discussion with Kai:

ftruncate: Replace by a configure check for "ftruncate64" and a fallback using
first "SetFilePointer" and then "SetEndOfFile(_get_osfhandle(fd))". Note: The
function SetFilePointer has no more interpretations and checks before, so you
avoid failure-cases in C-runtime. (Thus one may need to handle errno/error
processing manually -> "ierrno()" intrinsic.) See MSDN, e.g. for SetEndOfFile:
  http://msdn.microsoft.com/en-us/library/aa365541%28VS.85%29.aspx

off_t: Replace by _off64_t

lseek: Replace by _lseeki64

(_telli64 also is supported, but I think we do not use it.)

io.h contains the _* functions prototypes and windows.h the Set* functions.

Checking for #ifdef __MINGW32__ should be enough for MinGW(.org|64).


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jb at gcc dot gnu dot org
   Last reconfirmed|2009-09-05 10:10:54         |2009-12-01 16:21:16
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40812

Reply via email to