Re: 64bit lseek (Was: Re: >31 bit filesystems)

Stephen C. Tweedie (sct@dcs.ed.ac.uk)
Tue, 20 Aug 1996 10:49:23 +0100


Hi,

On Sun, 18 Aug 96 12:21 EDT, ssd@nevets.oau.org (Steven S. Dick) said:

> Just to note....

> Solaris 2 implmements llseek() which takes a long long.
> However (as noted in the sun man page), llseek() currently only works for
> addresses >32b on devices. In fact, it doesn't even work on buffered disk
> devices. It has to be a raw disk device.

> I suppose eventually this restriction will go away.

> I assume linux 64 bit file support will use llseek too?

No. It will have the compile-time option of either a 64-bit clean
lseek() with a large off_t type, or the normal situation of a 32-bit
lseek augmented by a 64-bit lseek64(). However, linux _already_ has
llseek() (supported, just as for Solaris, for device files only), so
we'll probably keep that around for compatibility's sake.

Cheers,
Stephen.

--
Stephen Tweedie <sct@dcs.ed.ac.uk>
Department of Computer Science, Edinburgh University, Scotland.