PATCH preadv/pwritev

joerg at joerg at
Fri Apr 28 00:11:38 PDT 2006

On Wed, Apr 26, 2006 at 09:52:38AM -0700, Matthew Dillon wrote:
>     In particular, as we shift to 64 bit integers, we really want to use
>     signed 64 bit integers rather than unsigned 64 bit integers.  Negative
>     numbers are used for all sorts of special cases.

In that case define a global upper limit for valid offsets and use
number above that for the special cases. Just the number of checks for
negative offsets and overlarge offsets would be simplified. Beside, if
you insist on keeping it signed, make it ssize_t.


More information about the Kernel mailing list