/*
* 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 <errno.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <pkgdev.h>
#include <pkginfo.h>
#include <devmgmt.h>
#include "pkglib.h"
#include "pkglibmsgs.h"
#include "pkglocale.h"
/* libadm.a */
int
{
int n;
if (getuid()) {
return (99);
}
if (pkg) {
} else {
}
} else if (pkg)
else
n = 0;
for (;;) {
if (!getvolflg && n)
/*
* Return to caller if not prompting
* and error was encountered.
*/
return (-1);
if (n == 3)
return (3);
if (n == 2)
else
pkg_gt("unable to obtain package volume"));
return (99);
}
rpterr();
n = -1;
continue;
}
cmd[0] = '\0';
n = -1;
continue;
}
rpterr();
n = -1;
continue;
}
*pt = '\0';
if (cmd[0] == '\0') {
n = -1;
continue;
}
}
} else {
}
if (n) {
continue;
}
break;
}
return (0);
}
int
{
int n = 1;
return (0);
while (n != 0 && retry-- > 0) {
NULL);
if (n != 0) {
(void) sleep(5);
}
}
if (n == 0)
return (n);
}