summaryrefslogtreecommitdiff
path: root/ares_init.3
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-26 18:00:14 +0000
committerYang Tse <yangsita@gmail.com>2009-05-26 18:00:14 +0000
commitcf3301f024dea088612d72a0946273adf4aae902 (patch)
treed6436e96d02e6d3377d516c898e24b8e9fee1d11 /ares_init.3
parent84aa2f8a5dee92d546165b197928b3c124d082c5 (diff)
downloadc-ares-cf3301f024dea088612d72a0946273adf4aae902.tar.gz
c-ares-cf3301f024dea088612d72a0946273adf4aae902.tar.bz2
c-ares-cf3301f024dea088612d72a0946273adf4aae902.zip
Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED
if library initialization has not been performed calling ares_library_init().
Diffstat (limited to 'ares_init.3')
-rw-r--r--ares_init.312
1 files changed, 9 insertions, 3 deletions
diff --git a/ares_init.3 b/ares_init.3
index f7a7b4a..360d639 100644
--- a/ares_init.3
+++ b/ares_init.3
@@ -1,7 +1,7 @@
.\" $Id$
.\"
.\" Copyright 1998 by the Massachusetts Institute of Technology.
-.\" Copyright (C) 2007-2008 by Daniel Stenberg
+.\" Copyright (C) 2004-2009 by Daniel Stenberg
.\"
.\" Permission to use, copy, modify, and distribute this
.\" software and its documentation for any purpose and without
@@ -15,7 +15,7 @@
.\" this software for any purpose. It is provided "as is"
.\" without express or implied warranty.
.\"
-.TH ARES_INIT 3 "13 May 2008"
+.TH ARES_INIT 3 "26 May 2009"
.SH NAME
ares_init, ares_init_options \- Initialize a resolver channel
.SH SYNOPSIS
@@ -184,10 +184,16 @@ A configuration file could not be read.
.TP 14
.B ARES_ENOMEM
The process's available memory was exhausted.
+.TP 14
+.B ARES_ENOTINITIALIZED
+c-ares library initialization not yet performed.
.SH SEE ALSO
.BR ares_destroy(3),
-.BR ares_dup(3)
+.BR ares_dup(3),
+.BR ares_library_init(3)
.SH AUTHOR
Greg Hudson, MIT Information Systems
.br
Copyright 1998 by the Massachusetts Institute of Technology.
+.br
+Copyright (C) 2004-2009 by Daniel Stenberg.