Date: Fri, 3 Jul 1998 11:41:02 -0500 (CDT) From: Joel Ray Holveck <joelh@gnu.org> To: freebsd-questions@FreeBSD.ORG Subject: Dynamic scatter / gather operations Message-ID: <199807031641.LAA10987@detlev.UUCP>
next in thread | raw e-mail | index | archive | help
Is it possible / portable / sane for a readv to affect its own iov? That is, something like the following: struct iovec iov[2]; char string[MAXLEN]; iov[0].iov_len = sizeof(iov[1].iov_len); iov[0].iov_base = &(iov[1].iov_len); iov[1].iov_base = string; readv(fd, iov, 2); Happy hacking, joelh -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807031641.LAA10987>