octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57644] fseek fread fail for files >4GB 5.1.0


From: John Donoghue
Subject: [Octave-bug-tracker] [bug #57644] fseek fread fail for files >4GB 5.1.0 on Windows10 64-bit x64 proc
Date: Wed, 22 Jan 2020 16:37:34 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763

Follow-up Comment #19, bug #57644 (project octave):

This patch appears to work:


--- a/libgnu/lseek.c    2019-12-09 08:37:43.205846694 -0500
+++ a/libgnu/lseek.c    2020-01-22 13:42:47.180859301 -0500
@@ -63,7 +63,7 @@
       return -1;
     }
 #endif
-#if _GL_WINDOWS_64_BIT_OFF_T
+#if defined _GL_WINDOWS_64_BIT_OFF_T || defined __MINGW64__
   return _lseeki64 (fd, offset, whence);
 #else
   return lseek (fd, offset, whence);



I think the issue really is that gnulib detects that mingw64 natively supports
largefile support - which looks like it means it then doesn't set
_GL_WINDOWS_64_BIT_OFF_T anywhere.

the fseeko in gnulib is the same - using _GL_WINDOWS_64_BIT_OFF_T to determine
wther is should call skeeo. skeeko64 or _fseeki64



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57644>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]