/*
* 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
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
#include "stdarg.h"
#include "lpsched.h"
#include <syslog.h>
/**
** open_logfile() - OPEN FILE FOR LOGGING MESSAGE
**/
static int
{
}
/**
** fail() - LOG MESSAGE AND EXIT (ABORT IF DEBUGGING)
**/
/*VARARGS1*/
void
{
#if defined(DEBUG)
abort ();
else
#endif
exit (1);
/*NOTREACHED*/
}
/**
** note() - LOG MESSAGE
**/
/*VARARGS1*/
void
{
}
/**
** mallocfail() - COMPLAIN ABOUT MEMORY ALLOCATION FAILURE
**/
void
mallocfail(void)
{
fail ("Memory allocation failed!\n");
/*NOTREACHED*/
}
/**
** log() - LOW LEVEL ROUTINE THAT LOGS MESSSAGES
**/
static void
{
int close_it;
int fd;
static int nodate = 0;
if (!am_in_background) {
fd = 1;
close_it = 0;
} else {
return;
close_it = 1;
}
if (am_in_background && !nodate) {
else
}
nodate = 0;
nodate = 1;
if (close_it)
}
/**
** execlog()
**/
/*VARARGS1*/
void
{
#if defined(DEBUG)
static int nodate = 0;
if (fd >= 0) {
if (!nodate) {
}
nodate = 0;
nodate = 1;
case EX_INTERF:
break;
case EX_SLOWF:
break;
case EX_ALERT:
break;
case EX_FAULT_MESSAGE:
break;
case EX_FORM_MESSAGE:
break;
case EX_FALERT:
break;
case EX_PALERT:
break;
case EX_NOTIFY:
break;
default:
break;
}
}
#endif
}