/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1996,1999 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software 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 ISC DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC 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.
*/
#endif
/* Imports */
#include "port_before.h"
#include <resolv.h>
#include <stdio.h>
#include <string.h>
#include <netdb.h>
#include <ctype.h>
#include <stdlib.h>
#include <errno.h>
#include <isc/memcluster.h>
#include <irs.h>
#include "port_after.h"
#include "irs_p.h"
#include "hesiod.h"
#include "dns_p.h"
/* Types. */
struct pvt {
char * prbuf;
};
/* Forward. */
static void pr_minimize(struct irs_pr *);
static void pr_res_set(struct irs_pr *,
struct __res_state *,
void (*)(void *));
/* Public. */
struct irs_pr *
return (NULL);
}
return (NULL);
}
return (NULL);
}
return (pr);
}
/* Methods. */
static void
}
static struct protoent *
char **hes_list;
return (NULL);
return (proto);
}
static struct protoent *
char **hes_list;
return (NULL);
return (proto);
}
static struct protoent *
return (NULL);
}
static void
/* NOOP */
}
static void
/* NOOP */
}
static struct __res_state *
}
static void
void (*free_res)(void *)) {
}
/* Private. */
static struct protoent *
int num = 0;
int max = 0;
/* Strip away comments, if any. */
*p = 0;
/* Skip blank lines. */
p = cp;
while (*p && !isspace((unsigned char)*p))
p++;
if (!*p)
continue;
/* OK, we've got a live one. Let's parse it for real. */
while (*p && !isspace((unsigned char)*p))
p++;
if (!*p)
continue;
*p++ = '\0';
while (*p && !isspace((unsigned char)*p))
p++;
if (*p)
*p++ = '\0';
while (*p) {
max += 10;
max * sizeof(char *));
if (!new) {
goto cleanup;
}
}
while (*p && !isspace((unsigned char)*p))
p++;
if (*p)
*p++ = '\0';
}
goto cleanup;
}
}
}
return (NULL);
}
/*! \file */