/*
* Copyright (C) 2011 - 2015 Nominum, Inc.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose with or without fee is hereby granted,
* provided that the above copyright notice and this permission notice
* appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include "log.h"
#include "os.h"
#include "util.h"
void
{
int op;
if (sigemptyset(&sset) < 0 ||
}
void
{
}
{
int maxfd;
int n;
if (timeout < 0) {
} else {
}
if (n < 0) {
perf_log_fatal("select() failed");
return (ISC_R_CANCELED);
return (ISC_R_SUCCESS);
return (ISC_R_CANCELED);
} else {
return (ISC_R_TIMEDOUT);
}
}
{
unsigned int i;
int maxfd;
int n;
maxfd = 0;
for (i = 0; i < nfds; i++) {
}
if (timeout < 0) {
} else {
}
if (n < 0) {
perf_log_fatal("select() failed");
return (ISC_R_CANCELED);
} else if (n == 0) {
return (ISC_R_TIMEDOUT);
return (ISC_R_CANCELED);
} else {
return (ISC_R_SUCCESS);
}
}