[Zlib-devel] Explicit link to libc

William A. Rowe Jr. wrowe at rowe-clan.net
Sun Apr 4 17:35:24 EDT 2010


On 4/4/2010 4:30 PM, William A. Rowe Jr. wrote:
> On 4/4/2010 1:29 AM, John Bowler wrote:
>>
>> The runtime, the C support library, seems to use the approach of providing a second API.  'fseek' is 32 bit throughout, but _fseeki64 is the same with a 64 bit offset (likewise _ftelli64).  That makes sense to me because fseek/ftell are actually speced in ANSI-C to return 'int'.
> 
> Given that we are working in fd's and not HFILE's, this is the way to go.
> 
> The off64_t type on win32 is __int64, which makes the fseeki64 make a lot of sense.
> That family of functions existed at least since msvcrt.dll / studio 6 / msvc 12.

In answer to Mark, yes we are talking about _lseeki64(), _telli64() etc, as well.
That would be the straight line to the implementation.




More information about the Zlib-devel mailing list