/*
* 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 */
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <pkgstrct.h>
#include <locale.h>
#include <libintl.h>
/*
* consolidation pkg command library includes
*/
#include <pkglib.h>
/*
* local pkg command library includes
*/
#include "install.h"
#include "libinst.h"
#include "libadm.h"
#include "messages.h"
extern int warnflag;
/*
* forward declarations
*/
int
{
int errflg;
/*
* invoke the correct finalck based on whether warnings or errors
* should be generated
*/
if (a_warning) {
} else {
}
/* exit debug output */
/* return results of the finalck_xxx call */
return (errflg);
}
/*
* this finalck generates errors on failure
*/
static int
{
int errflg = 0;
/* entry debug info */
/* on attribute or content change, verify attributes */
int n;
/* verify change, or fix if possible */
if (n != 0) {
logerr(getErrbufAddr());
errflg++;
warnflag++;
if (n == VE_EXIST)
return (1); /* no need to check contents */
}
}
/* on content change of "f/e/v" type, verify contents */
int n;
/* verify change was executed properly */
if (contchg < 0) {
}
if (n != 0) {
logerr(getErrbufAddr());
errflg++;
warnflag++;
}
}
return (errflg);
}
/*
* this finalck generates warnings on failure
*/
static int
{
int errflg = 0;
/* entry debug info */
/* on attribute or content change, verify attributes */
int n;
/* verify change, or fix if possible */
if (n != 0) {
logerr(getErrbufAddr());
errflg++;
if (n == VE_EXIST) {
return (1); /* no need to check contents */
}
}
}
/* on content change of "f/e/v" type, verify contents */
int n;
/* verify change was executed properly */
if (contchg < 0) {
}
if (n != 0) {
logerr(getErrbufAddr());
}
errflg++;
}
return (errflg);
}