mirror of https://github.com/getdnsapi/getdns.git
man page changes and additions (getting closer to complete)
This commit is contained in:
parent
2630e21ac9
commit
0f2ed2c35f
File diff suppressed because it is too large
Load Diff
|
@ -1,13 +1,11 @@
|
|||
#! /bin/sh
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.68 for getdns 0.1.0.
|
||||
# Generated by GNU Autoconf 2.69 for getdns 0.1.0.
|
||||
#
|
||||
# Report bugs to <stub-resolver@verisignlabs.com>.
|
||||
#
|
||||
#
|
||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
||||
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
|
||||
# Foundation, Inc.
|
||||
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
||||
#
|
||||
#
|
||||
# This configure script is free software; the Free Software Foundation
|
||||
|
@ -136,6 +134,31 @@ export LANGUAGE
|
|||
# CDPATH.
|
||||
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
||||
|
||||
# Use a proper internal environment variable to ensure we don't fall
|
||||
# into an infinite loop, continuously re-executing ourselves.
|
||||
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
||||
_as_can_reexec=no; export _as_can_reexec;
|
||||
# We cannot yet assume a decent shell, so we have to provide a
|
||||
# neutralization value for shells without unset; and this also
|
||||
# works around shells that cannot unset nonexistent variables.
|
||||
# Preserve -v and -x to the replacement shell.
|
||||
BASH_ENV=/dev/null
|
||||
ENV=/dev/null
|
||||
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
||||
case $- in # ((((
|
||||
*v*x* | *x*v* ) as_opts=-vx ;;
|
||||
*v* ) as_opts=-v ;;
|
||||
*x* ) as_opts=-x ;;
|
||||
* ) as_opts= ;;
|
||||
esac
|
||||
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
||||
# Admittedly, this is quite paranoid, since all the known shells bail
|
||||
# out after a failed `exec'.
|
||||
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
||||
as_fn_exit 255
|
||||
fi
|
||||
# We don't want this to propagate to other subprocesses.
|
||||
{ _as_can_reexec=; unset _as_can_reexec;}
|
||||
if test "x$CONFIG_SHELL" = x; then
|
||||
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
||||
emulate sh
|
||||
|
@ -169,7 +192,8 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
|||
else
|
||||
exitcode=1; echo positional parameters were not saved.
|
||||
fi
|
||||
test x\$exitcode = x0 || exit 1"
|
||||
test x\$exitcode = x0 || exit 1
|
||||
test -x / || exit 1"
|
||||
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
||||
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
||||
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
||||
|
@ -222,21 +246,25 @@ IFS=$as_save_IFS
|
|||
|
||||
|
||||
if test "x$CONFIG_SHELL" != x; then :
|
||||
# We cannot yet assume a decent shell, so we have to provide a
|
||||
# neutralization value for shells without unset; and this also
|
||||
# works around shells that cannot unset nonexistent variables.
|
||||
# Preserve -v and -x to the replacement shell.
|
||||
BASH_ENV=/dev/null
|
||||
ENV=/dev/null
|
||||
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
||||
export CONFIG_SHELL
|
||||
case $- in # ((((
|
||||
*v*x* | *x*v* ) as_opts=-vx ;;
|
||||
*v* ) as_opts=-v ;;
|
||||
*x* ) as_opts=-x ;;
|
||||
* ) as_opts= ;;
|
||||
esac
|
||||
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
|
||||
export CONFIG_SHELL
|
||||
# We cannot yet assume a decent shell, so we have to provide a
|
||||
# neutralization value for shells without unset; and this also
|
||||
# works around shells that cannot unset nonexistent variables.
|
||||
# Preserve -v and -x to the replacement shell.
|
||||
BASH_ENV=/dev/null
|
||||
ENV=/dev/null
|
||||
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
||||
case $- in # ((((
|
||||
*v*x* | *x*v* ) as_opts=-vx ;;
|
||||
*v* ) as_opts=-v ;;
|
||||
*x* ) as_opts=-x ;;
|
||||
* ) as_opts= ;;
|
||||
esac
|
||||
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
||||
# Admittedly, this is quite paranoid, since all the known shells bail
|
||||
# out after a failed `exec'.
|
||||
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
||||
exit 255
|
||||
fi
|
||||
|
||||
if test x$as_have_required = xno; then :
|
||||
|
@ -339,6 +367,14 @@ $as_echo X"$as_dir" |
|
|||
|
||||
|
||||
} # as_fn_mkdir_p
|
||||
|
||||
# as_fn_executable_p FILE
|
||||
# -----------------------
|
||||
# Test if FILE is an executable regular file.
|
||||
as_fn_executable_p ()
|
||||
{
|
||||
test -f "$1" && test -x "$1"
|
||||
} # as_fn_executable_p
|
||||
# as_fn_append VAR VALUE
|
||||
# ----------------------
|
||||
# Append the text in VALUE to the end of the definition contained in VAR. Take
|
||||
|
@ -460,6 +496,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|||
chmod +x "$as_me.lineno" ||
|
||||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
||||
|
||||
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
||||
# already done that, so ensure we don't try to do so again and fall
|
||||
# in an infinite loop. This has already happened in practice.
|
||||
_as_can_reexec=no; export _as_can_reexec
|
||||
# Don't try to exec as it changes $[0], causing all sort of problems
|
||||
# (the dirname of $[0] is not the place where we might find the
|
||||
# original and so on. Autoconf is especially sensitive to this).
|
||||
|
@ -494,16 +534,16 @@ if (echo >conf$$.file) 2>/dev/null; then
|
|||
# ... but there are two gotchas:
|
||||
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
||||
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
||||
# In both cases, we have to default to `cp -p'.
|
||||
# In both cases, we have to default to `cp -pR'.
|
||||
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
||||
as_ln_s='cp -p'
|
||||
as_ln_s='cp -pR'
|
||||
elif ln conf$$.file conf$$ 2>/dev/null; then
|
||||
as_ln_s=ln
|
||||
else
|
||||
as_ln_s='cp -p'
|
||||
as_ln_s='cp -pR'
|
||||
fi
|
||||
else
|
||||
as_ln_s='cp -p'
|
||||
as_ln_s='cp -pR'
|
||||
fi
|
||||
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
||||
rmdir conf$$.dir 2>/dev/null
|
||||
|
@ -515,28 +555,8 @@ else
|
|||
as_mkdir_p=false
|
||||
fi
|
||||
|
||||
if test -x / >/dev/null 2>&1; then
|
||||
as_test_x='test -x'
|
||||
else
|
||||
if ls -dL / >/dev/null 2>&1; then
|
||||
as_ls_L_option=L
|
||||
else
|
||||
as_ls_L_option=
|
||||
fi
|
||||
as_test_x='
|
||||
eval sh -c '\''
|
||||
if test -d "$1"; then
|
||||
test -d "$1/.";
|
||||
else
|
||||
case $1 in #(
|
||||
-*)set "./$1";;
|
||||
esac;
|
||||
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
||||
???[sx]*):;;*)false;;esac;fi
|
||||
'\'' sh
|
||||
'
|
||||
fi
|
||||
as_executable_p=$as_test_x
|
||||
as_test_x='test -x'
|
||||
as_executable_p=as_fn_executable_p
|
||||
|
||||
# Sed expression to map a string onto a valid CPP name.
|
||||
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
||||
|
@ -1183,8 +1203,6 @@ target=$target_alias
|
|||
if test "x$host_alias" != x; then
|
||||
if test "x$build_alias" = x; then
|
||||
cross_compiling=maybe
|
||||
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
|
||||
If a cross compiler is detected then cross compile mode will be used" >&2
|
||||
elif test "x$build_alias" != "x$host_alias"; then
|
||||
cross_compiling=yes
|
||||
fi
|
||||
|
@ -1443,9 +1461,9 @@ test -n "$ac_init_help" && exit $ac_status
|
|||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
getdns configure 0.1.0
|
||||
generated by GNU Autoconf 2.68
|
||||
generated by GNU Autoconf 2.69
|
||||
|
||||
Copyright (C) 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||
This configure script is free software; the Free Software Foundation
|
||||
gives unlimited permission to copy, distribute and modify it.
|
||||
_ACEOF
|
||||
|
@ -1558,7 +1576,7 @@ $as_echo "$ac_try_echo"; } >&5
|
|||
test ! -s conftest.err
|
||||
} && test -s conftest$ac_exeext && {
|
||||
test "$cross_compiling" = yes ||
|
||||
$as_test_x conftest$ac_exeext
|
||||
test -x conftest$ac_exeext
|
||||
}; then :
|
||||
ac_retval=0
|
||||
else
|
||||
|
@ -1795,7 +1813,8 @@ int
|
|||
main ()
|
||||
{
|
||||
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
|
||||
test_array [0] = 0
|
||||
test_array [0] = 0;
|
||||
return test_array [0];
|
||||
|
||||
;
|
||||
return 0;
|
||||
|
@ -1828,7 +1847,7 @@ This file contains any messages produced by compilers while
|
|||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by getdns $as_me 0.1.0, which was
|
||||
generated by GNU Autoconf 2.68. Invocation command line was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
$ $0 $@
|
||||
|
||||
|
@ -2202,7 +2221,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -2242,7 +2261,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_CC="gcc"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -2295,7 +2314,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -2336,7 +2355,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
||||
ac_prog_rejected=yes
|
||||
continue
|
||||
|
@ -2394,7 +2413,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -2438,7 +2457,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_CC="$ac_prog"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -2884,8 +2903,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|||
/* end confdefs.h. */
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
struct stat;
|
||||
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
||||
struct buf { int x; };
|
||||
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
||||
|
@ -3339,7 +3357,7 @@ do
|
|||
for ac_prog in sed gsed; do
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
||||
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
|
||||
as_fn_executable_p "$ac_path_SED" || continue
|
||||
# Check for GNU ac_path_SED and select it if it is found.
|
||||
# Check for GNU $ac_path_SED
|
||||
case `"$ac_path_SED" --version 2>&1` in
|
||||
|
@ -3415,7 +3433,7 @@ do
|
|||
for ac_prog in grep ggrep; do
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
||||
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
||||
as_fn_executable_p "$ac_path_GREP" || continue
|
||||
# Check for GNU ac_path_GREP and select it if it is found.
|
||||
# Check for GNU $ac_path_GREP
|
||||
case `"$ac_path_GREP" --version 2>&1` in
|
||||
|
@ -3481,7 +3499,7 @@ do
|
|||
for ac_prog in egrep; do
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
||||
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
||||
as_fn_executable_p "$ac_path_EGREP" || continue
|
||||
# Check for GNU ac_path_EGREP and select it if it is found.
|
||||
# Check for GNU $ac_path_EGREP
|
||||
case `"$ac_path_EGREP" --version 2>&1` in
|
||||
|
@ -3548,7 +3566,7 @@ do
|
|||
for ac_prog in fgrep; do
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
||||
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
|
||||
as_fn_executable_p "$ac_path_FGREP" || continue
|
||||
# Check for GNU ac_path_FGREP and select it if it is found.
|
||||
# Check for GNU $ac_path_FGREP
|
||||
case `"$ac_path_FGREP" --version 2>&1` in
|
||||
|
@ -3804,7 +3822,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -3848,7 +3866,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -4272,7 +4290,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -4312,7 +4330,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -4484,7 +4502,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|||
lt_cv_deplibs_check_method=pass_all
|
||||
;;
|
||||
|
||||
netbsd* | netbsdelf*-gnu)
|
||||
netbsd*)
|
||||
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
||||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
||||
else
|
||||
|
@ -4618,7 +4636,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -4658,7 +4676,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -4762,7 +4780,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -4806,7 +4824,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_AR="$ac_prog"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -4931,7 +4949,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -4971,7 +4989,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_STRIP="strip"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -5030,7 +5048,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -5070,7 +5088,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_RANLIB="ranlib"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -5174,7 +5192,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_AWK="$ac_prog"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -5761,7 +5779,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -5801,7 +5819,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -5881,7 +5899,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -5921,7 +5939,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -5973,7 +5991,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -6013,7 +6031,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -6065,7 +6083,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -6105,7 +6123,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_LIPO="lipo"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -6157,7 +6175,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -6197,7 +6215,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_OTOOL="otool"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -6249,7 +6267,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -6289,7 +6307,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_ac_ct_OTOOL64="otool64"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -7096,6 +7114,10 @@ _lt_linker_boilerplate=`cat conftest.err`
|
|||
$RM -r conftest*
|
||||
|
||||
|
||||
## CAVEAT EMPTOR:
|
||||
## There is no encapsulation within the following macros, do not change
|
||||
## the running order or otherwise move them around unless you know exactly
|
||||
## what you are doing...
|
||||
if test -n "$compiler"; then
|
||||
|
||||
lt_prog_compiler_no_builtin_flag=
|
||||
|
@ -7786,9 +7808,6 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
|
|||
openbsd*)
|
||||
with_gnu_ld=no
|
||||
;;
|
||||
linux* | k*bsd*-gnu | gnu*)
|
||||
link_all_deplibs=no
|
||||
;;
|
||||
esac
|
||||
|
||||
ld_shlibs=yes
|
||||
|
@ -8010,7 +8029,7 @@ _LT_EOF
|
|||
fi
|
||||
;;
|
||||
|
||||
netbsd* | netbsdelf*-gnu)
|
||||
netbsd*)
|
||||
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
||||
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
||||
wlarc=
|
||||
|
@ -8187,7 +8206,6 @@ _LT_EOF
|
|||
if test "$aix_use_runtimelinking" = yes; then
|
||||
shared_flag="$shared_flag "'${wl}-G'
|
||||
fi
|
||||
link_all_deplibs=no
|
||||
else
|
||||
# not using gcc
|
||||
if test "$host_cpu" = ia64; then
|
||||
|
@ -8641,7 +8659,7 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|||
link_all_deplibs=yes
|
||||
;;
|
||||
|
||||
netbsd* | netbsdelf*-gnu)
|
||||
netbsd*)
|
||||
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
||||
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
||||
else
|
||||
|
@ -9654,10 +9672,14 @@ fi
|
|||
# before this can be enabled.
|
||||
hardcode_into_libs=yes
|
||||
|
||||
# Add ABI-specific directories to the system library path.
|
||||
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
|
||||
|
||||
# Append ld.so.conf contents to the search path
|
||||
if test -f /etc/ld.so.conf; then
|
||||
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
||||
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
||||
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
||||
|
||||
fi
|
||||
|
||||
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
||||
|
@ -9669,18 +9691,6 @@ fi
|
|||
dynamic_linker='GNU/Linux ld.so'
|
||||
;;
|
||||
|
||||
netbsdelf*-gnu)
|
||||
version_type=linux
|
||||
need_lib_prefix=no
|
||||
need_version=no
|
||||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
||||
soname_spec='${libname}${release}${shared_ext}$major'
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
||||
shlibpath_overrides_runpath=no
|
||||
hardcode_into_libs=yes
|
||||
dynamic_linker='NetBSD ld.elf_so'
|
||||
;;
|
||||
|
||||
netbsd*)
|
||||
version_type=sunos
|
||||
need_lib_prefix=no
|
||||
|
@ -10688,7 +10698,7 @@ case $as_dir/ in #((
|
|||
# by default.
|
||||
for ac_prog in ginstall scoinst install; do
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
||||
if test $ac_prog = install &&
|
||||
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
||||
# AIX install. It has an incompatible calling convention.
|
||||
|
@ -11033,7 +11043,7 @@ do
|
|||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_prog_DOXYGEN="$ac_prog"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
|
@ -11812,16 +11822,16 @@ if (echo >conf$$.file) 2>/dev/null; then
|
|||
# ... but there are two gotchas:
|
||||
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
||||
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
||||
# In both cases, we have to default to `cp -p'.
|
||||
# In both cases, we have to default to `cp -pR'.
|
||||
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
||||
as_ln_s='cp -p'
|
||||
as_ln_s='cp -pR'
|
||||
elif ln conf$$.file conf$$ 2>/dev/null; then
|
||||
as_ln_s=ln
|
||||
else
|
||||
as_ln_s='cp -p'
|
||||
as_ln_s='cp -pR'
|
||||
fi
|
||||
else
|
||||
as_ln_s='cp -p'
|
||||
as_ln_s='cp -pR'
|
||||
fi
|
||||
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
||||
rmdir conf$$.dir 2>/dev/null
|
||||
|
@ -11881,28 +11891,16 @@ else
|
|||
as_mkdir_p=false
|
||||
fi
|
||||
|
||||
if test -x / >/dev/null 2>&1; then
|
||||
as_test_x='test -x'
|
||||
else
|
||||
if ls -dL / >/dev/null 2>&1; then
|
||||
as_ls_L_option=L
|
||||
else
|
||||
as_ls_L_option=
|
||||
fi
|
||||
as_test_x='
|
||||
eval sh -c '\''
|
||||
if test -d "$1"; then
|
||||
test -d "$1/.";
|
||||
else
|
||||
case $1 in #(
|
||||
-*)set "./$1";;
|
||||
esac;
|
||||
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
||||
???[sx]*):;;*)false;;esac;fi
|
||||
'\'' sh
|
||||
'
|
||||
fi
|
||||
as_executable_p=$as_test_x
|
||||
|
||||
# as_fn_executable_p FILE
|
||||
# -----------------------
|
||||
# Test if FILE is an executable regular file.
|
||||
as_fn_executable_p ()
|
||||
{
|
||||
test -f "$1" && test -x "$1"
|
||||
} # as_fn_executable_p
|
||||
as_test_x='test -x'
|
||||
as_executable_p=as_fn_executable_p
|
||||
|
||||
# Sed expression to map a string onto a valid CPP name.
|
||||
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
||||
|
@ -11924,7 +11922,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|||
# values after options handling.
|
||||
ac_log="
|
||||
This file was extended by getdns $as_me 0.1.0, which was
|
||||
generated by GNU Autoconf 2.68. Invocation command line was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
CONFIG_HEADERS = $CONFIG_HEADERS
|
||||
|
@ -11990,10 +11988,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
||||
ac_cs_version="\\
|
||||
getdns config.status 0.1.0
|
||||
configured by $0, generated by GNU Autoconf 2.68,
|
||||
configured by $0, generated by GNU Autoconf 2.69,
|
||||
with options \\"\$ac_cs_config\\"
|
||||
|
||||
Copyright (C) 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||
This config.status script is free software; the Free Software Foundation
|
||||
gives unlimited permission to copy, distribute and modify it."
|
||||
|
||||
|
@ -12083,7 +12081,7 @@ fi
|
|||
_ACEOF
|
||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||
if \$ac_cs_recheck; then
|
||||
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
||||
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
||||
shift
|
||||
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
||||
CONFIG_SHELL='$SHELL'
|
||||
|
|
|
@ -21,7 +21,7 @@ VPATH = @srcdir@
|
|||
EDITS=-e 's/@''version@/$(version)/g'
|
||||
|
||||
DOCDIRS = html latex man
|
||||
MANPAGES3 = libgetdns.3 getdns_address.3 getdns_context.3 getdns_context_set.3 getdns_dict.3 getdns_general.3 getdns_hostname.3 getdns_service.3
|
||||
MANPAGES3 = libgetdns.3 getdns_address.3 getdns_cancel_callback.3 getdns_context.3 getdns_context_create.3 getdns_context_set.3 getdns_dict.3 getdns_dict_get.3 getdns_dict_set.3 getdns_free_sync_request_memory.3 getdns_general.3 getdns_hostname.3 getdns_list.3 getdns_list_get.3 getdns_list_set.3 getdns_service.3
|
||||
|
||||
default: all
|
||||
|
||||
|
@ -34,15 +34,18 @@ doc: $(MANPAGES3)
|
|||
.3.in.3:
|
||||
sed $(EDITS) -e "s/@date@/`date +'%B %Y'`/g" $< > $@
|
||||
|
||||
# we assume that we want a separate file for each "name" specified for each man page
|
||||
# and consider these "alternate names" simple copies of the main man page
|
||||
install: $(MANPAGES3)
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(mandir)
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man3
|
||||
for x in $(MANPAGES3); do echo $(INSTALL) -m 644 $$x $(DESTDIR)$(mandir)/man3; $(INSTALL) -m 644 $$x $(DESTDIR)$(mandir)/man3; done
|
||||
for x in $(MANPAGES3); do echo $(INSTALL) -m 644 $$x $(DESTDIR)$(mandir)/man3; $(INSTALL) -m 644 $$x $(DESTDIR)$(mandir)/man3; for altpg in $$(./manpgaltnames $$x); do cp $$x $$altpg; echo $(INSTALL) -m 644 $$altpg $(DESTDIR)$(mandir)/man3; $(INSTALL) -m 644 $$altpg $(DESTDIR)$(mandir)/man3; done; done
|
||||
|
||||
uninstall:
|
||||
for x in $(MANPAGES3); do echo rm -f $(DESTDIR)$(mandir)/man3/$$x; rm -f $(DESTDIR)$(mandir)/man3/$$x; done
|
||||
for x in $(MANPAGES3); do echo rm -f $(DESTDIR)$(mandir)/man3/$$x; rm -f $(DESTDIR)$(mandir)/man3/$$x; for altpg in $$(./manpgaltnames $$x); do echo rm -f $(DESTDIR)$(mandir)/man3/$$altpg; rm -f $(DESTDIR)$(mandir)/man3/$$altpg; done; done
|
||||
|
||||
clean:
|
||||
for x in $(MANPAGES3); do rm -f $$(./manpgaltnames $$x); done
|
||||
rm -rf $(DOCDIRS) $(MANPAGES3)
|
||||
|
||||
distclean : clean
|
||||
|
|
|
@ -0,0 +1,95 @@
|
|||
.\" The "BSD-New" License
|
||||
.\"
|
||||
.\" Copyright (c) 2013, NLNet Labs, Versign, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions are met:
|
||||
.\" * Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" * Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" * Neither the name of the <organization> nor the
|
||||
.\" names of its contributors may be used to endorse or promote products
|
||||
.\" derived from this software without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
.\" DISCLAIMED. IN NO EVENT SHALL Verisign, Inc. BE LIABLE FOR ANY
|
||||
.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
|
||||
.TH getdns_cancel_callback 3 "@date@" "getdns @version@" getdns
|
||||
.SH NAME
|
||||
.B getdns_cancel_callback
|
||||
|
||||
.SH LIBRARY
|
||||
DNS Resolver library (libgetdns, -lgetdns)
|
||||
|
||||
.SH SYNOPSIS
|
||||
#include <getdns.h>
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_cancel_callback
|
||||
(getdns_context_t context,
|
||||
.RS 3
|
||||
.br
|
||||
getdns_transaction_t *transaction_id)
|
||||
.RE
|
||||
|
||||
.SH DESCRIPTION
|
||||
|
||||
.LP
|
||||
To cancel an outstanding callback, use getdns_cancel_callback. This causes the
|
||||
API to call the callback with a callback_type of GETDNS_CALLBACK_CANCEL if the
|
||||
callback for this transaction_id has not already been called. The callback code
|
||||
for cancellation should clean up any memory related to the identified call,
|
||||
such as to deallocate the memory for the userarg. getdns_cancel_callback() may
|
||||
return immediately, even before the callback finishes its work and returns.
|
||||
|
||||
.HP 3
|
||||
.I context
|
||||
.RP
|
||||
see getdns_context (3)
|
||||
|
||||
.HP 3
|
||||
.I transaction_id
|
||||
.RP
|
||||
populated by the API and used to identify the callback (for example to getdns_cancel_callback), can be NULL, set to 0 if the function fails
|
||||
|
||||
.HP
|
||||
.SH "RETURN VALUES"
|
||||
|
||||
Upon successful completion the functions return
|
||||
.B GETDNS_RETURN_GOOD
|
||||
, otherwise the following error values are returned:
|
||||
|
||||
.LP
|
||||
.B GETDNS_RETURN_UNKNOWN_TRANSACTION
|
||||
when calling getdns_cancel_callback() with a transaction_id of a callback that has already been called or an unknown transaction_id
|
||||
|
||||
.SH EXAMPLES
|
||||
|
||||
TBD
|
||||
|
||||
.SH FILES
|
||||
.br
|
||||
/etc/hosts
|
||||
.br
|
||||
/etc/resolv.conf
|
||||
|
||||
.SH SEE ALSO
|
||||
.BR libgetdns (3),
|
||||
.BR getdns_context (3),
|
||||
.BR getdns_general (3),
|
||||
.BR getdns_hostname (3),
|
||||
.BR getdns_service (3),
|
||||
|
|
@ -88,6 +88,45 @@ void
|
|||
|
||||
.SH DESCRIPTION
|
||||
|
||||
.LP
|
||||
Calls to getdns functions require a DNS context, which is a group of API
|
||||
settings that affect how DNS calls are made. For most applications, a default
|
||||
context is sufficient.
|
||||
|
||||
.LP
|
||||
To create a new DNS context, use the function:
|
||||
.RS 3
|
||||
.br
|
||||
getdns_return_t
|
||||
.B getdns_context_create
|
||||
(getdns_context_t *context, bool set_from_os)
|
||||
.RE
|
||||
|
||||
.LP
|
||||
The call to getdns_context_create immediately returns a context that can be
|
||||
used with other API calls; that context contains the API's default values. Most
|
||||
applications will want set_from_os set to true.
|
||||
|
||||
.LP
|
||||
To clean up the context, including cleaning up all outstanding transactions
|
||||
that were called using this context, use the function:
|
||||
.RS 3
|
||||
.br
|
||||
void
|
||||
.B getdns_context_destroy
|
||||
(getdns_context_t context)
|
||||
.RE
|
||||
|
||||
.LP
|
||||
When getdns_context_destroy() returns, the application knows that all
|
||||
outstanding transactions associated with this context will have been called;
|
||||
callbacks that had not been called before getdns_context_destroy() was called
|
||||
will be called with a callback_type of GETDNS_CALLBACK_CANCEL.
|
||||
getdns_context_destroy() returns after all of the needed cleanup is done and
|
||||
callbacks are made.
|
||||
|
||||
.SH DESCRIPTION (LONG)
|
||||
|
||||
.LP
|
||||
Many calls in the DNS API require a DNS context. A DNS context contains the information that the API needs in order to process DNS calls, such as the locations of upstream DNS servers, DNSSEC trust anchors, and so on. The internal structure of the DNS context is opaque, and might be different on each OS. When a context is passed to any function, it must be an allocated context; the context must not be NULL.
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
getdns_context.3.in
|
|
@ -29,11 +29,8 @@
|
|||
.TH getdns_dict 3 "@date@" "getdns @version@" getdns
|
||||
.SH NAME
|
||||
.B getdns_dict,
|
||||
.B getdns_dict_get_names,
|
||||
.B getdns_dict_get_data_type,
|
||||
.B getdns_dict_get_dict,
|
||||
.B getdns_dict_get_list,
|
||||
.B getdns_dict_get_int
|
||||
.B getdns_dict_create,
|
||||
.B getdns_dict_destroy
|
||||
|
||||
.SH LIBRARY
|
||||
DNS Resolver library (libgetdns, -lgetdns)
|
||||
|
@ -41,37 +38,15 @@ DNS Resolver library (libgetdns, -lgetdns)
|
|||
.SH SYNOPSIS
|
||||
#include <getdns.h>
|
||||
|
||||
getdns_return_t
|
||||
struct getdns_dict *
|
||||
.br
|
||||
.B getdns_dict_get_bindata
|
||||
(struct getdns_dict *this_dict, struct getdns_bindata **answer)
|
||||
getdns_return_t
|
||||
.B getdns_dict_create
|
||||
()
|
||||
|
||||
getdns_return_t
|
||||
void
|
||||
.br
|
||||
.B getdns_dict_get_data_type
|
||||
(struct getdns_dict *this_dict, char *name, getdns_data_type *answer)
|
||||
getdns_return_t
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_dict_get_dict
|
||||
(struct getdns_dict *this_dict, char *name, struct getdns_dict **answer)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_dict_get_int
|
||||
(struct getdns_dict *this_dict, uint32_t *answer)
|
||||
getdns_return_t
|
||||
|
||||
.br
|
||||
.B getdns_dict_get_list
|
||||
(struct getdns_dict *this_dict, struct getdns_list **answer)
|
||||
getdns_return_t
|
||||
|
||||
.br
|
||||
.B getdns_dict_get_names
|
||||
(struct getdns_dict *this_dict, struct getdns_list **answer)
|
||||
.B getdns_dict_destroy
|
||||
(struct getdns_dict *this_dict)
|
||||
|
||||
.SH DESCRIPTION
|
||||
|
||||
|
@ -89,21 +64,19 @@ uint32_t
|
|||
.RE
|
||||
|
||||
.LP
|
||||
.I this_dict
|
||||
the dictionary from which to retrieve the list of names
|
||||
The destroy function performs a "deep" destroy, freeing storage for all of the members
|
||||
of the dictionary before destroying the dictionary. There are a number of helper
|
||||
functions that provide access to the dictionary object, see their respective man pages.
|
||||
|
||||
.LP
|
||||
.I this_dict
|
||||
the dictionary to destroy
|
||||
.LP
|
||||
.I answer
|
||||
the list of all names in the dictionary, note that the caller must free storage allocated to the list via a call to
|
||||
.B getdns_list_destroy(3)
|
||||
|
||||
.SH "RETURN VALUES"
|
||||
|
||||
Upon successful completion the functions return
|
||||
.B GETDNS_RETURN_GOOD
|
||||
, otherwise the following error values are returned:
|
||||
.LP
|
||||
.B GETDNS_RETURN_GENERIC_ERROR
|
||||
if this_dict is not a valid dictionary
|
||||
Upon successful completion the getdns_dict_create function returns a valid (empty)
|
||||
dictionary structure that should be freed via a call to getdns_dict_destroy.
|
||||
|
||||
.SH EXAMPLES
|
||||
|
||||
|
@ -111,13 +84,7 @@ TBD
|
|||
|
||||
.SH SEE ALSO
|
||||
.BR libgetdns (3),
|
||||
.BR getdns_address (3),
|
||||
.BR getdns_address_sync (3),
|
||||
.BR getdns_general (3),
|
||||
.BR getdns_general_sync (3),
|
||||
.BR getdns_hostname (3),
|
||||
.BR getdns_hostname_sync (3),
|
||||
.BR getdns_list (3),
|
||||
.BR getdns_service (3),
|
||||
.BR getdns_service_sync (3).
|
||||
.BR getdns_dict_get (3),
|
||||
.BR getdns_dict_set (3),
|
||||
.BR getdns_list (3).
|
||||
|
||||
|
|
|
@ -0,0 +1,129 @@
|
|||
.\" The "BSD-New" License
|
||||
.\"
|
||||
.\" Copyright (c) 2013, Versign, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions are met:
|
||||
.\" * Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" * Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" * Neither the name of the <organization> nor the
|
||||
.\" names of its contributors may be used to endorse or promote products
|
||||
.\" derived from this software without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
.\" DISCLAIMED. IN NO EVENT SHALL Verisign, Inc. BE LIABLE FOR ANY
|
||||
.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
|
||||
.TH getdns_dict_get 3 "@date@" "getdns @version@" getdns
|
||||
.SH NAME
|
||||
.B getdns_dict_get,
|
||||
.B getdns_dict_get_bindata,
|
||||
.B getdns_dict_get_data_type,
|
||||
.B getdns_dict_get_dict,
|
||||
.B getdns_dict_get_int,
|
||||
.B getdns_dict_get_list,
|
||||
.B getdns_dict_get_names
|
||||
|
||||
.SH LIBRARY
|
||||
DNS Resolver library (libgetdns, -lgetdns)
|
||||
|
||||
.SH SYNOPSIS
|
||||
#include <getdns.h>
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_dict_get_bindata
|
||||
(struct getdns_dict *this_dict, char *name, struct getdns_bindata **answer)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_dict_get_data_type
|
||||
(struct getdns_dict *this_dict, char *name, getdns_data_type *answer)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_dict_get_dict
|
||||
(struct getdns_dict *this_dict, char *name, struct getdns_dict **answer)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_dict_get_int
|
||||
(struct getdns_dict *this_dict, char *name, uint32_t *answer)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_dict_get_list
|
||||
(struct getdns_dict *this_dict, char *name, struct getdns_list **answer)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_dict_get_names
|
||||
(struct getdns_dict *this_dict, struct getdns_list **answer)
|
||||
|
||||
.SH DESCRIPTION
|
||||
|
||||
.LP
|
||||
The getdns_dict type is used to manage name/value pairs in which the names are strings and the data types of the values are heterogenous and include
|
||||
.RS 3
|
||||
.br
|
||||
struct getdns_bindata
|
||||
.br
|
||||
struct getdns_dict
|
||||
.br
|
||||
struct getdns_list
|
||||
.br
|
||||
uint32_t
|
||||
.RE
|
||||
|
||||
.LP
|
||||
.I this_dict
|
||||
the dictionary from which to retrieve the list of names
|
||||
.LP
|
||||
.I name
|
||||
the name whose associated value is to be returned in answer
|
||||
.LP
|
||||
.I answer
|
||||
the list of all names in the dictionary, note that the caller must free storage allocated to the list via a call to
|
||||
.B getdns_list_destroy(3)
|
||||
|
||||
.SH "RETURN VALUES"
|
||||
|
||||
Upon successful completion the functions return
|
||||
.B GETDNS_RETURN_GOOD
|
||||
, otherwise the following error values are returned:
|
||||
.LP
|
||||
.B GETDNS_RETURN_GENERIC_ERROR
|
||||
if this_dict is not a valid dictionary
|
||||
.LP
|
||||
.B GETDNS_RETURN_NO_SUCH_DICT_NAME
|
||||
if the name argument doesn't exist in the dictionary
|
||||
.LP
|
||||
.B GETDNS_RETURN_WRONG_TYPE_REQUESTED
|
||||
if the requested data type doesn't match the contents of the indexed argument or name
|
||||
|
||||
.SH EXAMPLES
|
||||
|
||||
TBD
|
||||
|
||||
.SH SEE ALSO
|
||||
.BR libgetdns (3),
|
||||
.BR getdns_address (3),
|
||||
.BR getdns_dict (3),
|
||||
.BR getdns_dict_set (3),
|
||||
.BR getdns_general (3),
|
||||
.BR getdns_hostname (3),
|
||||
.BR getdns_list (3),
|
||||
.BR getdns_service (3),
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
.\" The "BSD-New" License
|
||||
.\"
|
||||
.\" Copyright (c) 2013, Versign, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions are met:
|
||||
.\" * Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" * Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" * Neither the name of the <organization> nor the
|
||||
.\" names of its contributors may be used to endorse or promote products
|
||||
.\" derived from this software without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
.\" DISCLAIMED. IN NO EVENT SHALL Verisign, Inc. BE LIABLE FOR ANY
|
||||
.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
|
||||
.TH getdns_dict_set 3 "@date@" "getdns @version@" getdns
|
||||
.SH NAME
|
||||
.B getdns_dict_set,
|
||||
.B getdns_dict_set_bindata,
|
||||
.B getdns_dict_set_dict,
|
||||
.B getdns_dict_set_int,
|
||||
.B getdns_dict_set_list,
|
||||
|
||||
.SH LIBRARY
|
||||
DNS Resolver library (libgetdns, -lgetdns)
|
||||
|
||||
.SH SYNOPSIS
|
||||
#include <getdns.h>
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_dict_set_bindata
|
||||
(struct getdns_dict *this_dict, char *name, struct getdns_bindata *child_bindata)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_dict_set_dict
|
||||
(struct getdns_dict *this_dict, char *name, struct getdns_dict *child_dict)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_dict_set_int
|
||||
(struct getdns_dict *this_dict, char *name, uint32_t child_uint32_t)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_dict_set_list
|
||||
(struct getdns_dict *this_dict, char *name, struct getdns_list *child_list)
|
||||
|
||||
.SH DESCRIPTION
|
||||
|
||||
.LP
|
||||
The getdns_dict type is used to manage name/value pairs in which the names are strings and the data types of the values are heterogenous and include
|
||||
.RS 3
|
||||
.br
|
||||
struct getdns_bindata
|
||||
.br
|
||||
struct getdns_dict
|
||||
.br
|
||||
struct getdns_list
|
||||
.br
|
||||
uint32_t
|
||||
.RE
|
||||
|
||||
.LP
|
||||
.I this_dict
|
||||
the dictionary in which to add/update the name/value pair
|
||||
.LP
|
||||
.I name
|
||||
the name whose associated value is to be set. If the name exists in the dictionary
|
||||
the value associated with that name is replaced, if the name does not exist in the
|
||||
dictionary a new item is added to the dictionary.
|
||||
.LP
|
||||
.I child_bindata
|
||||
.I child_dict
|
||||
.I child_list
|
||||
.I child_uint32
|
||||
value to assign the name
|
||||
|
||||
.SH "RETURN VALUES"
|
||||
|
||||
Upon successful completion the functions return
|
||||
.B GETDNS_RETURN_GOOD
|
||||
, otherwise the following error values are returned:
|
||||
.LP
|
||||
.B GETDNS_RETURN_GENERIC_ERROR
|
||||
if this_dict is not a valid dictionary
|
||||
|
||||
.SH EXAMPLES
|
||||
|
||||
TBD
|
||||
|
||||
.SH SEE ALSO
|
||||
.BR libgetdns (3),
|
||||
.BR getdns_address (3),
|
||||
.BR getdns_dict (3),
|
||||
.BR getdns_dict_get (3),
|
||||
.BR getdns_general (3),
|
||||
.BR getdns_hostname (3),
|
||||
.BR getdns_service (3)
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
.\" The "BSD-New" License
|
||||
.\"
|
||||
.\" Copyright (c) 2013, NLNet Labs, Versign, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions are met:
|
||||
.\" * Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" * Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" * Neither the name of the <organization> nor the
|
||||
.\" names of its contributors may be used to endorse or promote products
|
||||
.\" derived from this software without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
.\" DISCLAIMED. IN NO EVENT SHALL Verisign, Inc. BE LIABLE FOR ANY
|
||||
.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
|
||||
.TH getdns_free_sync_request_memory 3 "@date@" "getdns @version@" getdns
|
||||
.SH NAME
|
||||
.B getdns_free_sync_request_memory
|
||||
|
||||
.SH LIBRARY
|
||||
DNS Resolver library (libgetdns, -lgetdns)
|
||||
|
||||
.SH SYNOPSIS
|
||||
#include <getdns.h>
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_free_sync_request_memory
|
||||
(struct getdns_dict *response)
|
||||
|
||||
.SH DESCRIPTION
|
||||
|
||||
.LP
|
||||
This function is used to free memory allocated within one of the synchronous functions.
|
||||
|
||||
.HP 3
|
||||
.I response
|
||||
.RP
|
||||
A previously allocated response object.
|
||||
|
||||
.HP
|
||||
.SH "RETURN VALUES"
|
||||
|
||||
Upon successful completion the function returns
|
||||
.B GETDNS_RETURN_GOOD
|
||||
|
||||
.SH EXAMPLES
|
||||
|
||||
TBD
|
||||
|
||||
.SH FILES
|
||||
.br
|
||||
/etc/hosts
|
||||
.br
|
||||
/etc/resolv.conf
|
||||
|
||||
.SH SEE ALSO
|
||||
.BR libgetdns (3),
|
||||
.BR getdns_address_sync (3),
|
||||
.BR getdns_general_sync (3),
|
||||
.BR getdns_hostname_sync (3),
|
||||
.BR getdns_service_sync (3)
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
.\" The "BSD-New" License
|
||||
.\"
|
||||
.\" Copyright (c) 2013, Versign, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions are met:
|
||||
.\" * Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" * Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" * Neither the name of the <organization> nor the
|
||||
.\" names of its contributors may be used to endorse or promote products
|
||||
.\" derived from this software without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
.\" DISCLAIMED. IN NO EVENT SHALL Verisign, Inc. BE LIABLE FOR ANY
|
||||
.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
|
||||
.TH getdns_list 3 "@date@" "getdns @version@" getdns
|
||||
.SH NAME
|
||||
.B getdns_list,
|
||||
.B getdns_list_create,
|
||||
.B getdns_list_destroy
|
||||
|
||||
.SH LIBRARY
|
||||
DNS Resolver library (libgetdns, -lgetdns)
|
||||
|
||||
.SH SYNOPSIS
|
||||
#include <getdns.h>
|
||||
|
||||
struct getdns_list *
|
||||
.br
|
||||
.B getdns_list_create
|
||||
()
|
||||
|
||||
void
|
||||
.br
|
||||
.B getdns_list_destroy
|
||||
(struct getdns_list *this_dict)
|
||||
|
||||
.SH DESCRIPTION
|
||||
|
||||
.LP
|
||||
The getdns_list type is used to manage heterogenous indexed lists name/value pairs in which the data types of the values include
|
||||
.RS 3
|
||||
.br
|
||||
struct getdns_bindata
|
||||
.br
|
||||
struct getdns_dict
|
||||
.br
|
||||
struct getdns_list
|
||||
.br
|
||||
uint32_t
|
||||
.RE
|
||||
|
||||
.LP
|
||||
The destroy function performs a "deep" destroy, freeing storage for all of the members
|
||||
of the list before destroying the list. There are a number of helper
|
||||
functions that provide access to the list object, see their respective man pages.
|
||||
|
||||
.LP
|
||||
.I this_list
|
||||
the list to destroy
|
||||
.LP
|
||||
|
||||
.SH "RETURN VALUES"
|
||||
|
||||
Upon successful completion the getdns_list_create function returns a valid (empty)
|
||||
list structure that should be freed via a call to getdns_list_destroy.
|
||||
|
||||
.SH EXAMPLES
|
||||
|
||||
TBD
|
||||
|
||||
.SH SEE ALSO
|
||||
.BR libgetdns (3),
|
||||
.BR getdns_dict (3),
|
||||
.BR getdns_list_get (3),
|
||||
.BR getdns_list_set (3)
|
||||
|
|
@ -0,0 +1,128 @@
|
|||
.\" The "BSD-New" License
|
||||
.\"
|
||||
.\" Copyright (c) 2013, Versign, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions are met:
|
||||
.\" * Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" * Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" * Neither the name of the <organization> nor the
|
||||
.\" names of its contributors may be used to endorse or promote products
|
||||
.\" derived from this software without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
.\" DISCLAIMED. IN NO EVENT SHALL Verisign, Inc. BE LIABLE FOR ANY
|
||||
.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
|
||||
.TH getdns_list 3 "@date@" "getdns @version@" getdns
|
||||
.SH NAME
|
||||
.B getdns_list,
|
||||
.B getdns_list_get_bindata,
|
||||
.B getdns_list_get_data_type,
|
||||
.B getdns_list_get_dict,
|
||||
.B getdns_list_get_length,
|
||||
.B getdns_list_get_list,
|
||||
.B getdns_list_get_int
|
||||
|
||||
.SH LIBRARY
|
||||
DNS Resolver library (libgetdns, -lgetdns)
|
||||
|
||||
.SH SYNOPSIS
|
||||
#include <getdns.h>
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_list_get_bindata
|
||||
(struct getdns_list *this_list, size_t index, struct getdns_bindata **answer)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_list_get_data_type
|
||||
(struct getdns_list *this_list, size_t index, getdns_data_type *answer)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_list_get_dict
|
||||
(struct getdns_list *this_list, size_t index, struct getdns_dict **answer)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_list_get_length
|
||||
(struct getdns_list *this_list, size_t *answer)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_list_get_list
|
||||
(struct getdns_list *this_list, size_t index, struct getdns_list **answer)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_list_get_int
|
||||
(struct getdns_list *this_list, size_t index, uint32_t *answer)
|
||||
|
||||
.SH DESCRIPTION
|
||||
|
||||
.LP
|
||||
The getdns_list type is used to manage heterogenous lists in which the objects are each one of the data types:
|
||||
.RS 3
|
||||
.br
|
||||
struct getdns_bindata
|
||||
.br
|
||||
struct getdns_dict
|
||||
.br
|
||||
struct getdns_list
|
||||
.br
|
||||
uint32_t
|
||||
.RE
|
||||
|
||||
.LP
|
||||
.I this_list
|
||||
the list from which to retrieve the object
|
||||
.LP
|
||||
.I index
|
||||
the numeric index (0 based) of the item in the list you would like copied to answer
|
||||
.LP
|
||||
.I answer
|
||||
a copy of the object in the list is placed in answer, the caller is responsible
|
||||
for freeing the storage associated with that object by calling the appropriate
|
||||
destroy function.
|
||||
|
||||
.SH "RETURN VALUES"
|
||||
|
||||
Upon successful completion the functions return
|
||||
.B GETDNS_RETURN_GOOD
|
||||
, otherwise the following error values are returned:
|
||||
.LP
|
||||
.B GETDNS_RETURN_GENERIC_ERROR
|
||||
if this_list is not a valid list
|
||||
.LP
|
||||
.B GETDNS_RETURN_NO_SUCH_LIST_ITEM
|
||||
if index is out of range
|
||||
.LP
|
||||
.B GETDNS_RETURN_WRONG_TYPE_REQUESTED
|
||||
if the requested data type doesn't match the contents of the indexed argument
|
||||
|
||||
.SH EXAMPLES
|
||||
|
||||
TBD
|
||||
|
||||
.SH SEE ALSO
|
||||
.BR libgetdns (3),
|
||||
.BR getdns_address (3),
|
||||
.BR getdns_dict (3),
|
||||
.BR getdns_general (3),
|
||||
.BR getdns_hostname (3),
|
||||
.BR getdns_service (3),
|
||||
|
|
@ -0,0 +1,117 @@
|
|||
.\" The "BSD-New" License
|
||||
.\"
|
||||
.\" Copyright (c) 2013, Versign, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions are met:
|
||||
.\" * Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" * Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" * Neither the name of the <organization> nor the
|
||||
.\" names of its contributors may be used to endorse or promote products
|
||||
.\" derived from this software without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
.\" DISCLAIMED. IN NO EVENT SHALL Verisign, Inc. BE LIABLE FOR ANY
|
||||
.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
|
||||
.TH getdns_list_set 3 "@date@" "getdns @version@" getdns
|
||||
.SH NAME
|
||||
.B getdns_list_set,
|
||||
.B getdns_list_set_bindata,
|
||||
.B getdns_list_set_dict,
|
||||
.B getdns_list_set_int,
|
||||
.B getdns_list_set_list,
|
||||
|
||||
.SH LIBRARY
|
||||
DNS Resolver library (libgetdns, -lgetdns)
|
||||
|
||||
.SH SYNOPSIS
|
||||
#include <getdns.h>
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_list_set_bindata
|
||||
(struct getdns_list *this_list, char *name, struct getdns_bindata *child_bindata)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_list_set_dict
|
||||
(struct getdns_list *this_list, char *name, struct getdns_dict *child_dict)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_list_set_int
|
||||
(struct getdns_list *this_list, char *name, uint32_t child_uint32_t)
|
||||
|
||||
getdns_return_t
|
||||
.br
|
||||
.B getdns_list_set_list
|
||||
(struct getdns_list *this_list, char *name, struct getdns_list *child_list)
|
||||
|
||||
.SH DESCRIPTION
|
||||
|
||||
.LP
|
||||
The getdns_list type is used to manage a heterogenous indexed list of values that include:
|
||||
.RS 3
|
||||
.br
|
||||
struct getdns_bindata
|
||||
.br
|
||||
struct getdns_dict
|
||||
.br
|
||||
struct getdns_list
|
||||
.br
|
||||
uint32_t
|
||||
.RE
|
||||
|
||||
.LP
|
||||
.I this_list
|
||||
the list in which to add/update the indexed item
|
||||
.LP
|
||||
.I index
|
||||
the index whose associated value is to be set. If the index exists in the list
|
||||
the value associated with that index is replaced, if the index does not exist in the
|
||||
list a new item is added to the list at the specified index.
|
||||
.LP
|
||||
.I child_bindata
|
||||
.I child_dict
|
||||
.I child_list
|
||||
.I child_uint32
|
||||
value to assign the indexed element
|
||||
|
||||
.SH "RETURN VALUES"
|
||||
|
||||
Upon successful completion the functions return
|
||||
.B GETDNS_RETURN_GOOD
|
||||
, otherwise the following error values are returned:
|
||||
.LP
|
||||
.B GETDNS_RETURN_NO_SUCH_LIST_ITEM
|
||||
if the index is out of range
|
||||
.LP
|
||||
.B GETDNS_RETURN_GENERIC_ERROR
|
||||
if this_list is not a valid list
|
||||
|
||||
.SH EXAMPLES
|
||||
|
||||
TBD
|
||||
|
||||
.SH SEE ALSO
|
||||
.BR libgetdns (3),
|
||||
.BR getdns_address (3),
|
||||
.BR getdns_list (3),
|
||||
.BR getdns_list_get (3),
|
||||
.BR getdns_general (3),
|
||||
.BR getdns_hostname (3),
|
||||
.BR getdns_service (3),
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
.TH libgetdns 3 "@date@" "getdns @version@" getdns
|
||||
.SH NAME
|
||||
libgetdns
|
||||
.Sh LIBRARY
|
||||
.SH LIBRARY
|
||||
DNS Resolver library (libgetdns, -lgetdns)
|
||||
|
||||
.SH SYNOPSIS
|
||||
|
@ -56,6 +56,52 @@ Functions are thread safe.
|
|||
.LP
|
||||
A context structure maintains DNS query and response data and is used to maintain state during calls to the public entry points.
|
||||
|
||||
.LP
|
||||
The project page for this implementation is at
|
||||
.IP
|
||||
http://www.getdnsapi.net
|
||||
|
||||
.LP
|
||||
The specification is maintained at
|
||||
.IP
|
||||
http://www.vpnc.org/getdns-api
|
||||
|
||||
.LP
|
||||
The git repository for this implementation is at
|
||||
.IP
|
||||
http://github.com/getdnsapi/getdns
|
||||
|
||||
.SH DATA STRUCTURES
|
||||
|
||||
.LP
|
||||
The API uses a few data structures to pass data into and return data from the public
|
||||
entry points.
|
||||
|
||||
.IP list
|
||||
an ordered list, the members of the list can be any of the four data types.
|
||||
.IP dict
|
||||
a name-value pair. The name is a string literal, and the value can be any of the four data types. The order of the name-value pairs in a dict is not important.
|
||||
.IP int
|
||||
an integer compatible with uint32_t.
|
||||
.IP bindata
|
||||
a struct used to hold binary data defined as { size_t size; uint8_t *binary_stuff; }.
|
||||
|
||||
.SH ASYNCHRONOUS USE
|
||||
|
||||
.SH SYNCHRONOUS USE
|
||||
|
||||
.LP
|
||||
There are four synchronous functions parallel to the four getdns async
|
||||
functions, except that there is no callback parameter. When an application
|
||||
calls one of these synchronous functions, the API gathers all the required
|
||||
information and then returns the result. The value returned is exactly the same
|
||||
as the response returned in the callback if you had used the async version of
|
||||
the function.
|
||||
|
||||
.LP
|
||||
When you are done with the data in the response, call getdns_free_sync_request_memory so
|
||||
that the API can free the memory from its internal pool.
|
||||
|
||||
.SH EXTENSIONS
|
||||
|
||||
Applications may populate an extension dictionary when making a call to the public entry points. To use an extension add it to the extension dictionary prior to making the call to the public entry point and set the value depending on the behavior you expect. These extensions include:
|
||||
|
@ -143,7 +189,7 @@ Set to GETDNS_EXTENSION_TRUE to add the name
|
|||
.LP
|
||||
This implementation of the getdns API is licensed under the BSD license.
|
||||
|
||||
.SH Response Data from Queries
|
||||
.SH RESPONSE DATA
|
||||
|
||||
.LP
|
||||
The callback function contains a pointer to a response object. A response
|
||||
|
@ -224,7 +270,7 @@ it is currently either "IPv4" or "IPv6") and address_data (whose value is a
|
|||
bindata). Note that the dnssec_return_only_secure extension affects what will
|
||||
appear in the srv_addresses list.
|
||||
|
||||
.SH Structure of DNS replies_tree
|
||||
.SH STRUCTURE OF DNS REPLIES_TREE
|
||||
|
||||
.LP
|
||||
The names in each entry in the the replies_tree list for DNS responses include
|
||||
|
@ -268,6 +314,96 @@ It is expected that later extensions to the API will give some DNS types
|
|||
different names. It is also possible that later extensions will change the
|
||||
names for some of the DNS types listed above.
|
||||
|
||||
.SH CALLBACK FUNCTIONS
|
||||
|
||||
.LP
|
||||
A call to the async getdns functions typically returns before any network or
|
||||
file I/O occurs. After the API marshalls all the needed information, it calls
|
||||
the callback function that was passed by the application. The callback function
|
||||
might be called at any time, even before the calling function has returned. The
|
||||
API guarantees that the callback will be called exactly once unless the calling
|
||||
function returned an error, in which case the callback function is never
|
||||
called.
|
||||
|
||||
The getdns calling function calls the callback with the parameters defined as
|
||||
follows:
|
||||
|
||||
.br
|
||||
typedef void (*getdns_callback_t)(
|
||||
.RS 3
|
||||
getdns_context_t context,
|
||||
.br
|
||||
uint16_t callback_type,
|
||||
.br
|
||||
struct getdns_dict *response,
|
||||
.br
|
||||
void *userarg,
|
||||
.br
|
||||
getdns_transaction_t transaction_id)
|
||||
.RE
|
||||
|
||||
.HP 3
|
||||
.I context
|
||||
.RP
|
||||
see getdns_context (3)
|
||||
|
||||
.HP 3
|
||||
.I callback_type
|
||||
.RP
|
||||
Supplies the reason for the callback.
|
||||
.RS 3
|
||||
.LP
|
||||
.B GETDNS_CALLBACK_COMPLETE
|
||||
The response has the requested data in it
|
||||
.LP
|
||||
.B GETDNS_CALLBACK_CANCEL
|
||||
The calling program cancelled the callback; response is NULL
|
||||
.LP
|
||||
.B GETDNS_CALLBACK_TIMEOUT
|
||||
The requested action timed out; response is NULL
|
||||
.LP
|
||||
.B GETDNS_CALLBACK_ERROR
|
||||
The requested action had an error; response is NULL
|
||||
.RE
|
||||
|
||||
.HP 3
|
||||
.I response
|
||||
.RP
|
||||
A response object with the response data. This is described below. The response object is part of the API's memory space, and will be freed by the API with the callback returns.
|
||||
|
||||
.HP 3
|
||||
.I userarg
|
||||
.RP
|
||||
Identical to the userarg passed to the calling function.
|
||||
|
||||
.HP 3
|
||||
.I transaction_id
|
||||
.RP
|
||||
The transaction identified assigned by the calling function, used to associate a DNS response to a specific DNS request.
|
||||
|
||||
.LP
|
||||
To cancel an outstanding callback, use the following function.
|
||||
|
||||
.RS 3
|
||||
.br
|
||||
getdns_return_t
|
||||
.br
|
||||
.B
|
||||
getdns_cancel_callback
|
||||
(getdns_context_t context, getdns_transaction_t transaction_id)
|
||||
.RE
|
||||
|
||||
.LP
|
||||
This causes the API to call the callback with a callback_type of
|
||||
GETDNS_CALLBACK_CANCEL if the callback for this transaction_id has not already
|
||||
been called. The callback code for cancellation should clean up any memory
|
||||
related to the identified call, such as to deallocate the memory for the
|
||||
userarg. getdns_cancel_callback() may return immediately, even before the
|
||||
callback finishes its work and returns. Calling getdns_cancel_callback() with a
|
||||
transaction_id of a callback that has already been called or an unknown
|
||||
transaction_id returns GETDNS_RETURN_UNKNOWN_TRANSACTION; otherwise,
|
||||
getdns_cancel_callback() returns GETDNS_RETURN_GOOD.
|
||||
|
||||
.SH FILES
|
||||
.br /etc/hosts
|
||||
.br /etc/resolv.conf
|
||||
|
@ -280,16 +416,13 @@ TBD
|
|||
|
||||
.SH "SEE ALSO"
|
||||
.BR getdns_address (3),
|
||||
.BR getdns_address_sync (3),
|
||||
.BR getdns_bindata (3),
|
||||
.BR getdns_context (3),
|
||||
.BR getdns_dict (3),
|
||||
.BR getdns_general (3),
|
||||
.BR getdns_general_sync (3),
|
||||
.BR getdns_hostname (3),
|
||||
.BR getdns_hostname_sync (3),
|
||||
.BR getdns_list (3),
|
||||
.BR getdns_service (3),
|
||||
.BR getdns_service_sync (3).
|
||||
.BR getdns_service (3)
|
||||
|
||||
.SH REPORTING PROBLEMS
|
||||
Bug reports should be sent to the getdns-bugs@getdns.net
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
# generate list of alternate names for the specified man page
|
||||
# used to generate alternative man pages
|
||||
main=${1%.[0-9]}
|
||||
sect=${1#*.}
|
||||
sed -n '/.SH NAME/,/.SH LIBRARY/p' $1 |grep "^.B " | sed 's/.B //g' | sed 's/ *$//g' | sed 's/,//g' | grep -v "^$main\$" | sed "s/\$/.$sect/"
|
Loading…
Reference in New Issue