lwres_config.docbook revision ec5347e2c775f027573ce5648b910361aa926c01
5cd4555ad444fd391002ae32450572054369fd42Rob Austein<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
5cd4555ad444fd391002ae32450572054369fd42Rob Austein "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein [<!ENTITY mdash "—">]>
5422929ca0d62760b204f18cf830069ae3f3fc77Automatic Updater - Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - Copyright (C) 2000, 2001 Internet Software Consortium.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater - Permission to use, copy, modify, and/or distribute this software for any
dd750c560ae48cf6caeb9a9fe81d33fc4746106dBrian Wellington - purpose with or without fee is hereby granted, provided that the above
dd750c560ae48cf6caeb9a9fe81d33fc4746106dBrian Wellington - copyright notice and this permission notice appear in all copies.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - PERFORMANCE OF THIS SOFTWARE.
5d924e398ed15c57c506315c7d11125dcc9cb098Jeremy Reed<!-- $Id: lwres_config.docbook,v 1.9 2007/06/18 23:47:51 tbox Exp $ -->
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <refentryinfo>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley </refentryinfo>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </copyright>
5422929ca0d62760b204f18cf830069ae3f3fc77Automatic Updater <holder>Internet Software Consortium.</holder>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </copyright>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refnamediv>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refpurpose>lightweight resolver configuration</refpurpose>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley </refnamediv>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <refsynopsisdiv>
0ffaee887ff5674b8c3bb0435ae838f641981706Mark Andrews <funcsynopsis>
0ffaee887ff5674b8c3bb0435ae838f641981706Mark Andrews<funcsynopsisinfo>#include <lwres/lwres.h></funcsynopsisinfo>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley<funcprototype>
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark Andrews <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley </funcprototype>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley<funcprototype>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley </funcprototype>
eeaa2277ead6df7253a8958ee2d786f73e05b8beTatuya JINMEI 神明達哉<funcprototype>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleylwres_result_t
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <paramdef>const char *<parameter>filename</parameter></paramdef>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley </funcprototype>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<funcprototype>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinlwres_result_t
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <paramdef>FILE *<parameter>fp</parameter></paramdef>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </funcprototype>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<funcprototype>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinlwres_conf_t *
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley <paramdef>lwres_context_t *<parameter>ctx</parameter></paramdef>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley </funcprototype>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley</funcsynopsis>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley </refsynopsisdiv>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein creates an empty
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein structure for lightweight resolver context
0ffaee887ff5674b8c3bb0435ae838f641981706Mark Andrews frees up all the internal memory used by
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein structure in resolver context
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein opens the file
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein and parses it to initialise the resolver context
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein structure for resolver context
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein if it successfully read and parsed
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein It returns <errorcode>LWRES_R_FAILURE</errorcode>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley could not be opened or contained incorrect
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein resolver statements.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein unless an error occurred when converting the network addresses to a
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein numeric host address string.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein If this happens, the function returns
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refentrytitle>stdio</refentrytitle><manvolnum>3</manvolnum>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </citerefentry>,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <citerefentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refentrytitle>resolver</refentrytitle><manvolnum>5</manvolnum>
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley </citerefentry>.
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark Andrews - Local variables:
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark Andrews - mode: sgml