/*
* 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 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/sysmacros.h>
#include <ctf_impl.h>
int ctf_leave_compressed = 0;
&mod_miscops, "Compact C Type Format routines"
};
};
int
_init(void)
{
return (mod_install(&modlinkage));
}
int
{
}
int
_fini(void)
{
return (mod_remove(&modlinkage));
}
/*ARGSUSED*/
void *
{
return ((void *)1); /* zmod is always loaded because we depend on it */
}
/*ARGSUSED*/
const void *
{
return (MAP_FAILED); /* we don't support this in the kernel */
}
/*ARGSUSED*/
void
{
/* we don't support this in the kernel */
}
/*ARGSUSED*/
{
}
/*ARGSUSED*/
{
}
/*ARGSUSED*/
int
{
}
int
{
if (version > 0)
return (_libctf_version);
}
/*ARGSUSED*/
{
int err;
ctfsect.cts_offset = 0;
#ifdef _LP64
#else
#endif
symsect.cts_offset = 0;
strsect.cts_offset = 0;
return (NULL);
/*
* We must have just uncompressed the CTF data. To avoid
* others having to pay the (substantial) cost of decompressing
* the data, we're going to substitute the uncompressed version
* for the compressed version. Note that this implies that the
* first CTF consumer will induce memory impact on the system
* (but in the name of performance of future CTF consumers).
*/
}
return (fp);
}