Subject: Re: FIONWRITE proposal
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 10/20/2004 14:00:29
> 1) It hasn't mattered until this point in the discussion, but I
> actually use writev(2) for the write. Thus we would need a sendv(2)
> system call.

No - sendmsg() with the various flag and control fields set
appropriately amounts to sendv():

ssize_t sendv(int s, struct iovec *msg, int msglen, int flags)
{
 struct msghdr mh;

 mh.msg_name = 0;
 mh.msg_namelen = 0;
 mh.msg_iov = msg;
 mh.msg_iovlen = msglen;
 mh.msg_control = 0;
 mh.msg_controllen = 0;
 mh.msg_flags = 0;
 return(sendmsg(s,&mh,flags));
}

/~\ 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