aboutsummaryrefslogtreecommitdiff
path: root/ares/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
commit1c93d9dcfe95f1bfd6df432f9d6b4b31ff1c06a1 (patch)
treed404d0cd0191ce060cd077430254461add3a6dec /ares/ares_init.3
parent675d6ec5e6d9dc51b0ff9ad28c0e901a7516e2ef (diff)
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/ares_init.3')
-rw-r--r--ares/ares_init.312
1 files changed, 9 insertions, 3 deletions
diff --git a/ares/ares_init.3 b/ares/ares_init.3
index f7a7b4a22..360d63914 100644
--- a/ares/ares_init.3
+++ b/ares/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.