conflog.c revision 40f53fa8d9c6a4fc38c0014495e7a42b08f52481
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 1999, 2000 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * copyright notice and this permission notice appear in all copies.
e6f82b9dbba43699d9f8231a566ec4830da2cee5Brian Wellington * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
0e11ca0f0bdeb8eface941671926a9f4d2fc2685Automatic Updater * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
b28c61df9a5f8a0698cd362f93ed45e76a3b63b6Andreas Gustafsson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
b28c61df9a5f8a0698cd362f93ed45e76a3b63b6Andreas Gustafsson * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
b28c61df9a5f8a0698cd362f93ed45e76a3b63b6Andreas Gustafsson * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
b28c61df9a5f8a0698cd362f93ed45e76a3b63b6Andreas Gustafsson * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
b28c61df9a5f8a0698cd362f93ed45e76a3b63b6Andreas Gustafsson * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
e6f82b9dbba43699d9f8231a566ec4830da2cee5Brian Wellington * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
a19f3422d355f690c69834e965bf2f2c5b7e95afBrian Wellington/* $Id: conflog.c,v 1.18 2000/08/01 01:23:22 tale Exp $ */
a19f3422d355f690c69834e965bf2f2c5b7e95afBrian Wellington#define UNLIM_VERSIONS (-1) /* XXX check this is right? */
a19f3422d355f690c69834e965bf2f2c5b7e95afBrian Wellington * Bit positions in the dns_c_logchan_t structure setflags field.
793814f80703afdd69b59ade91e63efa81ae4178Evan Huntprint_log_severity(FILE *fp, dns_c_logseverity_t severity);
793814f80703afdd69b59ade91e63efa81ae4178Evan Huntdns_c_logginglist_new(isc_mem_t *mem, dns_c_logginglist_t **list) {
a19f3422d355f690c69834e965bf2f2c5b7e95afBrian Wellingtondns_c_logginglist_delete(dns_c_logginglist_t **list) {
a19f3422d355f690c69834e965bf2f2c5b7e95afBrian Wellington res = dns_c_logchan_copy(mem, &tmplogchan, logchan);
return (res);
return (ISC_R_SUCCESS);
static isc_boolean_t
return ISC_FALSE;
return ISC_FALSE;
return ISC_TRUE;
if (deepcopy) {
return (res);
if (deepcopy) {
return (res);
if (deepcopy) {
return (res);
if (deepcopy) {
return (res);
const char *name)
return (res);
const char *name)
return (res);
const char *name,
return (ISC_R_NOTFOUND);
return (ISC_R_SUCCESS);
const char *name,
return (ISC_R_NOTFOUND);
return (ISC_R_SUCCESS);
return (ISC_R_NOTFOUND);
return (ISC_R_SUCCESS);
return (ISC_R_NOMEMORY);
return (ISC_R_NOMEMORY);
switch (ctype) {
case dns_c_logchan_file:
case dns_c_logchan_syslog:
case dns_c_logchan_null:
case dns_c_logchan_stderr:
return (ISC_R_SUCCESS);
case dns_c_logchan_file:
case dns_c_logchan_syslog:
case dns_c_logchan_null:
case dns_c_logchan_stderr:
return (ISC_R_SUCCESS);
return (res);
case dns_c_logchan_file:
case dns_c_logchan_syslog:
case dns_c_logchan_null:
case dns_c_logchan_stderr:
return (ISC_R_SUCCESS);
case dns_c_logchan_file:
case dns_c_logchan_syslog:
case dns_c_logchan_null:
case dns_c_logchan_stderr:
return (ISC_R_FAILURE);
return (ISC_R_NOMEMORY);
return (ISC_R_FAILURE);
return (ISC_R_FAILURE);
return (ISC_R_FAILURE);
facility);
return (ISC_R_FAILURE);
return (ISC_R_FAILURE);
return (ISC_R_SUCCESS);
return (res);
return (res);
return (res);
return (res);
return (res);
return (res);
return (res);
return (res);
return (res);
return (ISC_R_SUCCESS);
return (ISC_R_NOMEMORY);
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (res);
return (res);
return (ISC_R_SUCCESS);
newsize * sizeof (char *));
return (ISC_R_NOMEMORY);
for (i = 0 ; i < newsize ; i++) {
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
return (res);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);