err.c revision 315e695527b211489a44386ec695c6ccd3af4e6e
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
*/
/*
*/
#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include "thr_uberdata.h"
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <dlfcn.h>
#include "stdiom.h"
const char *__progname; /* GNU/Linux/BSD compatibility */
const char *
getprogname(void)
{
return (__progname);
}
void
setprogname(const char *argv0)
{
const char *progname;
else
progname++;
}
/* called only from libc_init() */
void
init_progname(void)
{
const char *argv0;
argv0 = "UNKNOWN";
}
/*
* warncore() is the workhorse of these functions. Everything else has
* a warncore() component in it.
*/
static rmutex_t *
{
if (__progname != NULL)
}
return (lk);
}
/* Finish a warning with a newline and a flush of stderr. */
static void
{
}
void
{
}
void
{
}
void
{
}
}
void
{
}
/* PRINTFLIKE1 */
void
{
}
void
{
}
void
{
}
/* PRINTFLIKE1 */
void
{
}
/* PRINTFLIKE2 */
void
{
}
void
{
}
void
{
}
void
{
}
/* PRINTFLIKE2 */
void
{
}
void
{
}
void
{
}
void
{
}