from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209580

userrating:


May 25th. 2007:
Words

486

Views

258587

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

149876

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





ARES_SAVE_OPTIONS

Section: C Library Functions (3)
Updated: 5 March 2010
Index Return to Main Contents
 

NAME

ares_save_options - Save configuration values obtained from initialized ares_channel  

SYNOPSIS

#include <ares.h>

int ares_save_options(const ares_channel_t *channel,
                      struct ares_options *options, int *optmask)
 

DESCRIPTION

The ares_save_options(3) function saves the channel data identified by channel, into the options struct identified by options, and saves the mask of options which are set to the integer pointer (passed by reference) identified by optmask.

The resultant options and optmask are then able to be passed directly to ares_init_options. When the options are no longer needed, ares_destroy_options should be called to free any associated memory.  

RETURN VALUES

ares_save_options(3) can return any of the following values:
ARES_SUCCESS
The channel data was successfully stored
ARES_ENOMEM
The memory was exhausted
ARES_ENODATA
The channel data identified by channel were invalid.
 

NOTE

Since -ares 1.6.0 the ares_options struct has been "locked" meaning that it won't be extended to cover new functions. This function will remain functioning, but it can only return config data that can be represented in this config struct, which may no longer be the complete set of config options. ares_dup(3) will not have that restriction.

The ares_options struct can not handle potential IPv6 name servers the ares channel might be configured to use. The ares_save_options(3) function will only return IPv4 servers, if any. In order to retrieve all name servers an ares channel might be using, the ares_get_servers(3) function must be used instead.  

SEE ALSO

ares_destroy_options(3), ares_init_options(3), ares_get_servers(3), ares_dup(3)  

AVAILABILITY

ares_save_options(3) was added in -ares 1.4.0


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
NOTE
SEE ALSO
AVAILABILITY





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 19.9 ms