/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1998,2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef MALLOC_DEBUG
#include <stdlib.h>
#include <stdio.h>
#include <thread.h>
#include <synch.h>
#include <string.h>
#include <stdio.h>
#include <syslog.h>
#include <netdb.h>
#include <netdir.h>
/*
* To use debugging facility, compile with * -DMALLOC_DEBUG.
* You can do this by setting the environment variable
* MALLOC_DEBUG to "-DMALLOC_DEBUG"
*
* To make automountd dump trace records (i.e. make it call check_leaks),
* run:
* make malloc_dump
*/
struct alloc_list
{
void *addr;
int size;
int line;
};
int
{
/* allocate the list item */
return (-1);
}
/* add it to the head of the list */
else
return (0);
}
int
{
else
break;
}
alist_prev = alist;
}
return (-1);
}
return (0);
}
void *
{
void *addr;
return (NULL);
return (addr);
}
void *
{
void *ptr;
return (NULL);
return (ptr);
}
void
{
}
char *
{
void *addr;
return (NULL);
return ((char *)addr);
}
int
{
(void) sethostent(stay);
return (0);
}
int
{
int ret;
ret = endhostent();
if (ret != 0)
return (ret);
return (ret);
}
void *
{
void *nconf;
nconf = setnetconfig();
return (NULL);
return (nconf);
}
int
{
int res;
if (res != 0)
return (res);
return (0);
}
void *
{
void *npath;
npath = setnetpath();
return (NULL);
return (npath);
}
int
{
int res;
if (res != 0)
return (res);
return (0);
}
int
struct nd_hostserv *serv,
struct nd_addrlist **addrs,
const char *file,
int line)
{
int res;
if (res != 0)
return (res);
return (0);
}
void
{
}
struct hostent *
const char *name,
int af,
int flags,
int *error_num,
char *file,
int line)
{
return (NULL);
return (res);
}
void
{
}
struct netconfig *
{
return (NULL);
return (res);
}
void
{
}
void *
{
void *res;
return (NULL);
return (res);
}
void
{
}
extern void flush_caches();
void
{
}
void
{
filename);
return;
}
flush_caches();
}
}
#else
/*
* To prevent a compiler warning.
*/
static char filler;
#endif