/*
* 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 2009 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 <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <unistd.h>
#include <pkgstrct.h>
#include <pkginfo.h>
#include <locale.h>
#include <libintl.h>
#include <pkglib.h>
#include <libadm.h>
#include <libinst.h>
extern char *pkgfile;
"\t%s [-v] [-d device] pkginst [param [param ...]]\n" \
"\t%s [-v] -f file [param [param ...]]\n"
static int errflg = 0;
static int vflag = 0;
static void print_entry(char *, char *);
static void
usage(void)
{
exit(1);
}
int
{
int c;
/* initialize locale mechanism */
#if !defined(TEXT_DOMAIN) /* Should be defined by cc -D */
#endif
(void) textdomain(TEXT_DOMAIN);
/* determine program name */
(void) set_prog_name(argv[0]);
/* establish installation root directory */
exit(1);
}
switch (c) {
case 'v':
vflag++;
break;
case 'f':
/* -f could specify filename to get parameters from */
break;
case 'd':
/* -d could specify stream or mountable device */
break;
case 'R':
if (!set_inst_root(optarg)) {
exit(1);
}
break;
default:
case '?':
usage();
}
}
if (pkgfile) {
if (device)
usage();
} else {
usage();
return (1); /* couldn't obtain info about device */
}
/* If a filename was specified or install db does not exist */
do {
if (!param) {
*param = '\0';
}
errflg++;
break;
/*
* some other error besides no value for this
* particular parameter
*/
errflg++;
break;
}
break;
continue;
}
return (errflg ? 1 : 0);
}
static void
{
if (vflag) {
while (*value) {
if (*value == '\'') {
(void) printf("'\"'\"'");
value++;
} else
}
(void) printf("'\n");
} else
}
void
{
}