irs_data.c revision cb6207858a9fcc2feaee22e626912fba281ac969
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* 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 INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM 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.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#if !defined(LINT) && !defined(CODECENTER)
static const char rcsid[] = "$Id: irs_data.c,v 1.22 2003/06/20 07:09:33 marka Exp $";
#endif
#include "port_before.h"
#ifndef __BIND_NOSTATIC
#include <resolv.h>
#include <stdio.h>
#include <string.h>
#include <isc/memcluster.h>
#include <stdlib.h>
#ifdef DO_PTHREADS
#include <pthread.h>
#endif
#include <irs.h>
#include "port_after.h"
#include "irs_data.h"
extern struct __res_state _res;
extern int h_errno;
#ifdef DO_PTHREADS
#else
#endif
void
irs_destroy(void) {
#ifndef DO_PTHREADS
#endif
}
void
net_data_destroy(void *p) {
}
}
}
}
}
}
}
}
}
}
/* applications that need a specific config file other than
* _PATH_IRS_CONF should call net_data_init directly rather than letting
* the various wrapper functions make the first call. - brister
*/
struct net_data *
net_data_init(const char *conf_file) {
#ifdef DO_PTHREADS
return (NULL);
#endif
return (NULL);
#ifdef DO_PTHREADS
return (NULL);
}
#endif
}
return (net_data);
}
struct net_data *
net_data_create(const char *conf_file) {
return (NULL);
return (NULL);
}
#ifndef DO_PTHREADS
#endif
return (NULL);
}
return (NULL);
}
return (net_data);
}
void
}
#ifdef _REENTRANT
struct __res_state *
__res_state(void) {
/* NULL param here means use the default config file. */
return (&_res);
}
#endif
int *
__h_errno(void) {
/* NULL param here means use the default config file. */
return (&h_errno);
}
void
}
#endif /*__BIND_NOSTATIC*/