That is about the 'Large-File-Summit' thing.
The file must be opened with O_LARGEFILE, if the desired pread
offset isn't presentable in kernel off_t type variable. (32-bit
signed integer at i386, 64-bit signed integer at Alpha..).
(Maximum begin offset is INT_MAX-1 anyway, as the last readable
character is at INT_MAX -- without O_LARGEFILE flag, that is.)
> But, yes, what I said originally about pread() not setting errno=EOVERFLOW
> when it should, remains correct.
Quite so.
> Regards,
> ------
> Tigran A. Aivazian | http://www.sco.com
> Santa Cruz Operation Ltd | http://www.aivazian.demon.co.uk
/Matti Aarnio <matti.aarnio@sonera.fi>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/