/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2014 Nexenta Systems, Inc. All rights reserved.
*/
#include <stdarg.h>
#include <stdio.h>
#include <addisc.h>
int debug;
void print_ds(ad_disc_ds_t *);
int
{
char *s;
int c;
switch (c) {
case '?':
return (1);
case 'd':
debug++;
break;
}
}
ad_ctx = ad_disc_init();
if (domainname)
(void) printf("getdc failed\n");
return (1);
}
(void) printf("Found a DC:\n");
(void) printf("Forest: %s\n", s);
free(s);
(void) printf("Site: %s\n", s);
free(s);
(void) printf("Found a GC:\n");
}
return (0);
}
void
{
const char *p;
if (p == NULL)
p = "?";
}
if (p == NULL)
p = "?";
}
}
}
/* printflike */
void
{
}
/*
* This is a unit-test program. Always enable libumem debugging.
*/
const char *
_umem_debug_init(void)
{
return ("default,verbose"); /* $UMEM_DEBUG setting */
}
const char *
_umem_logging_init(void)
{
return ("fail,contents"); /* $UMEM_LOGGING setting */
}