Paul Kelly wrote:
+#ifdef HAVE_LARGEFILES
+ filesize = ftello(in_fp);
+#else
filesize = ftell(in_fp);
+#endif
Can we add library functions, G_fseek() and G_ftell(), which use an
off_t. The functions would use fseeko/ftello if available, fseek/ftell
otherwise, but
On Tue, Oct 7, 2008 at 11:53 AM, Paul Kelly
[EMAIL PROTECTED] wrote:
Are there any really huge files anybody can test it with?
For easily create a huge DEM file, do this:
SRTM V4 CGIAR Europe:
snip fetch_europe.sh -
#!/bin/sh
# fetch Europe block
#
On Mon, 6 Oct 2008, Hamish wrote:
Paul Kelly wrote:
I looked in r.in.xyz which only uses fseek() and
ISTR discussion about it handling huge files recently,
although perhaps that involved reading from stdin.
fwiw the fseek() there is just to grab the filesize so G_percent() can
know where
On Tue, 7 Oct 2008, Markus Neteler wrote:
On Tue, Oct 7, 2008 at 11:53 AM, Paul Kelly
[EMAIL PROTECTED] wrote:
Are there any really huge files anybody can test it with?
For easily create a huge DEM file, do this:
Actually, thinking clearly, it's a huge input text points file it needs.
So
Paul Kelly wrote:
+#ifdef HAVE_LARGEFILES
+ filesize = ftello(in_fp);
+#else
filesize = ftell(in_fp);
+#endif
Can we add library functions, G_fseek() and G_ftell(), which use an
off_t. The functions would use fseeko/ftello if available, fseek/ftell
otherwise, but would
In some recent enhancements to the iostream library,
include/iostream/ami_stream.h had a call to fseek() changed to fseeko().
This now doesn't compile on Windows; a sample error is:
sh-2.04$ make
make OBJ.i686-pc-mingw32
make[1]: Entering directory `/c/grass/grass7/lib/iostream'
make[1]:
Paul Kelly wrote:
In some recent enhancements to the iostream library,
include/iostream/ami_stream.h had a call to fseek() changed to fseeko().
This now doesn't compile on Windows; a sample error is:
sh-2.04$ make
make OBJ.i686-pc-mingw32
make[1]: Entering directory
On Mon, 6 Oct 2008, Andrew Danner wrote:
fseek is not the same as fseeko.
int fseek(FILE *stream, long offset, int whence);
int fseeko(FILE *stream, off_t offset, int whence);
If large file support is enabled, fseeko will convert off_t to a 64 bit type
even on a 32-bit OS. I'm not sure if
Paul Kelly wrote:
I looked in r.in.xyz which only uses fseek() and
ISTR discussion about it handling huge files recently,
although perhaps that involved reading from stdin.
fwiw the fseek() there is just to grab the filesize so G_percent() can
know where 100% is. If the fseek() returns