074e084f68dd0b08686612bec695a0cfe249da6dml * Copyright (C) 2011 - 2015 Nominum, Inc.
074e084f68dd0b08686612bec695a0cfe249da6dml * Permission to use, copy, modify, and distribute this software and its
074e084f68dd0b08686612bec695a0cfe249da6dml * documentation for any purpose with or without fee is hereby granted,
074e084f68dd0b08686612bec695a0cfe249da6dml * provided that the above copyright notice and this permission notice
074e084f68dd0b08686612bec695a0cfe249da6dml * appear in all copies.
074e084f68dd0b08686612bec695a0cfe249da6dml * THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
074e084f68dd0b08686612bec695a0cfe249da6dml * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
074e084f68dd0b08686612bec695a0cfe249da6dml * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
074e084f68dd0b08686612bec695a0cfe249da6dml * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
074e084f68dd0b08686612bec695a0cfe249da6dml * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
074e084f68dd0b08686612bec695a0cfe249da6dml * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
074e084f68dd0b08686612bec695a0cfe249da6dml * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
if (timeout < 0) {
return (ISC_R_CANCELED);
return (ISC_R_SUCCESS);
return (ISC_R_CANCELED);
return (ISC_R_TIMEDOUT);
maxfd = 0;
for (i = 0; i < nfds; i++) {
if (timeout < 0) {
return (ISC_R_CANCELED);
return (ISC_R_TIMEDOUT);
return (ISC_R_CANCELED);
return (ISC_R_SUCCESS);