From ba8f85b49c38af7bc2a9acdef5dcde2de008d25e Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 12 Jul 2008 05:00:28 +0000 Subject: Flatten bind9 vendor work area --- contrib/bind9/lib/bind/bsd/readv.c | 39 -------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 contrib/bind9/lib/bind/bsd/readv.c (limited to 'contrib/bind9/lib/bind/bsd/readv.c') diff --git a/contrib/bind9/lib/bind/bsd/readv.c b/contrib/bind9/lib/bind/bsd/readv.c deleted file mode 100644 index eb13bcc..0000000 --- a/contrib/bind9/lib/bind/bsd/readv.c +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef LINT -static const char rcsid[] = "$Id: readv.c,v 1.1.352.1 2005/04/27 05:00:43 sra Exp $"; -#endif - -#include "port_before.h" - -#include -#include -#include -#include - -#include "port_after.h" - -#ifndef NEED_READV -int __bindcompat_readv; -#else - -int -__readv(fd, vp, vpcount) - int fd; - const struct iovec *vp; - int vpcount; -{ - int count = 0; - - while (vpcount-- > 0) { - int bytes = read(fd, vp->iov_base, vp->iov_len); - - if (bytes < 0) - return (-1); - count += bytes; - if (bytes != vp->iov_len) - break; - vp++; - } - return (count); -} -#endif /* NEED_READV */ -/*! \file */ -- cgit v1.1