cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Seek function

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 7 Jan 2008 13:00:33 +0100 (CET)

On Mon, 7 Jan 2008, Georg Lippitsch wrote:

>> This patch doesn't apply against current CVS, can you please make it do so?

> OK, I wrote it using 7.17.1, but will try to rewrite using lates CVS.

Thanks. If using CVS isn't an option for you, just get a recent daily
snapshot!

> I think one advantage of this function is that it has the same signature as
> fseek. Users can easily write a wrapper around it or even point to it
> directly (at least on some systems), as curl already does with read/write
> functions. This was also the reason for using SEEK_SET directly instead of
> defining CURL_SEEK_SET. Personally I don't care whether there is a an
> 'origin' argument, but beeing consistent with fseek is IMO not a bad idea.

Yeah, let's keep it this way. With it being lseek-alike we should probably use
SEEK_SET also, so that most implementations can just pass the arguments as-is
to lseek().

--
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-01-07