Subject: re: kern/36556: sys/dev/biovar.h defines bv_size and bd_size as size_t which can be only 32 bits
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: matthew green <mrg@eterna.com.au>
List: netbsd-bugs
Date: 06/25/2007 19:30:02
The following reply was made to PR kern/36556; it has been noted by GNATS.
From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: re: kern/36556: sys/dev/biovar.h defines bv_size and bd_size as size_t which can be only 32 bits
Date: Tue, 26 Jun 2007 05:29:37 +1000
The bd_size and bv_size fields should be defined as ssize_t or off_t
(I'm not sure what the correct definition of ssize_t is, but off_t
is used for 64 bit offsets).
size_t is as wrong as ssize_t - they are the same size, just different
signedness. i would use some explicit 64 bit value instead of off_t.
.mrg.