Re: [Mingw-users] MINGW I/O support for file sizes > 2GB (LFS support)
- Date: Thu, 15 May 2008 12:48:27 +0300
- From: "Tor Lillqvist" <tml@xxxxxx>
- Subject: Re: [Mingw-users] MINGW I/O support for file sizes > 2GB (LFS support)
> 1. Do fread and fwrite support reading or writing past the 2 GB limit,
To the best of my knowledge, yes. At least read() and write() do,
those I have personally used to read and write to files larger than 2
GB.
> or reading and writing data arrays > 2 GB in size.
Nope. This shouldn't be any serious concern, considering that in most
cases it is not possible to even have over 2 GB of data in a 32-bit
Windows process...
> How do you read or write past the 2 GB limit? Is it sufficient to lseeki64 to the right spot and then use
> fread or fwrite
That should be enough, yes.
> 2. Why are there underscore _ characters often in the names of
> functions, are the underscores handled in some special way?
It's just a policy that the C library people at Microsoft have/had,
that functions in the C library that are not in the C standard should
be prefixed with an underscore. (But for the most common ones like
open() they then provide "aliases" without the underscore in the
oldnames library.) (And mingw does the same.)
--tml
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users