Subject: Re: const iov_base (was Re: letting userland issue FUA writes)
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 03/20/2006 13:58:32
>> 	struct iovec_f {
>> 	  union {
>> 	    void *iovu_base_r;
>> 	    const void *iovu_base_w;
>> 	  } iov_u;
>> #define iov_base_r iov_u.iovu_base_r
>> #define iov_base_w iov_u.iovu_base_w
> add:
> #define iov_base iov_u.iovu_base_r
> and you could make this change right now, without changing the api
> for existing programs.

Or the abi, assuming the union works "normally".

Duh.  I feel stupid for not noticing that myself.  Thank you.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B