Re: If not readdir() then what?

From: Ulrich Drepper
Date: Tue Apr 10 2007 - 12:42:26 EST


On 4/10/07, H. Peter Anvin <hpa@xxxxxxxxx> wrote:
It rather makes any user space accesses irrelevant. The main question
seems to be if we can realistically increase the cookie size even to 64
bits.

On 32-bit platforms, *not* using _FILE_OFFSET_BITS=64 is already today
a stupid thing to do. There are several places where things simply
break in today's world.

Once you do use 53-bit offsets (and we always do this for 64-bit
platforms) telldir returns a 64-bit cookie. So, no problem. The one
big issue is that there are no error values for telldir. There was no
need so far. But a) we can change this or b) we can really go
stronger in the direction to deprecate 32-bit ops and force people to
update their code.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/