DragonFly BSD
DragonFly kernel List (threaded) for 2006-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: PATCH preadv/pwritev


From: joerg@xxxxxxxxxxxxxxxxx
Date: Fri, 28 Apr 2006 09:00:07 +0200
Mail-followup-to: kernel@crater.dragonflybsd.org

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.

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]