19781SMoriah.Waterland@Sun.COM /* 29781SMoriah.Waterland@Sun.COM * CDDL HEADER START 39781SMoriah.Waterland@Sun.COM * 49781SMoriah.Waterland@Sun.COM * The contents of this file are subject to the terms of the 59781SMoriah.Waterland@Sun.COM * Common Development and Distribution License (the "License"). 69781SMoriah.Waterland@Sun.COM * You may not use this file except in compliance with the License. 79781SMoriah.Waterland@Sun.COM * 89781SMoriah.Waterland@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 99781SMoriah.Waterland@Sun.COM * or http://www.opensolaris.org/os/licensing. 109781SMoriah.Waterland@Sun.COM * See the License for the specific language governing permissions 119781SMoriah.Waterland@Sun.COM * and limitations under the License. 129781SMoriah.Waterland@Sun.COM * 139781SMoriah.Waterland@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 149781SMoriah.Waterland@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 159781SMoriah.Waterland@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 169781SMoriah.Waterland@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 179781SMoriah.Waterland@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 189781SMoriah.Waterland@Sun.COM * 199781SMoriah.Waterland@Sun.COM * CDDL HEADER END 209781SMoriah.Waterland@Sun.COM */ 219781SMoriah.Waterland@Sun.COM 229781SMoriah.Waterland@Sun.COM /* 23*12734Sgary.pennington@oracle.com * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 249781SMoriah.Waterland@Sun.COM */ 259781SMoriah.Waterland@Sun.COM 269781SMoriah.Waterland@Sun.COM #ifndef _PKGCOND_H 279781SMoriah.Waterland@Sun.COM #define _PKGCOND_H 289781SMoriah.Waterland@Sun.COM 299781SMoriah.Waterland@Sun.COM 309781SMoriah.Waterland@Sun.COM #ifdef __cplusplus 319781SMoriah.Waterland@Sun.COM extern "C" { 329781SMoriah.Waterland@Sun.COM #endif 339781SMoriah.Waterland@Sun.COM 349781SMoriah.Waterland@Sun.COM /* 359781SMoriah.Waterland@Sun.COM * global definitions 369781SMoriah.Waterland@Sun.COM */ 379781SMoriah.Waterland@Sun.COM 389781SMoriah.Waterland@Sun.COM /* environment variable */ 399781SMoriah.Waterland@Sun.COM #define ENV_VAR_DEBUG "PKGCOND_DEBUG" 409781SMoriah.Waterland@Sun.COM #define ENV_VAR_PKGROOT "PKG_INSTALL_ROOT" 419781SMoriah.Waterland@Sun.COM #define ENV_VAR_PATCHROOT "ROOTDIR" 429781SMoriah.Waterland@Sun.COM #define ENV_VAR_SET "SET_FROM_ENVIRONMENT" 439781SMoriah.Waterland@Sun.COM #define ENV_VAR_VERBOSE "PKGCOND_VERBOSE" 449781SMoriah.Waterland@Sun.COM #define ENV_VAR_PKGZONENAME "SUNW_PKG_INSTALL_ZONENAME" 459781SMoriah.Waterland@Sun.COM #define ENV_VAR_INITIAL_INSTALL "PKG_INIT_INSTALL" 469781SMoriah.Waterland@Sun.COM #define ENV_VAR_PATCH_CLIENTVER "PATCH_CLIENT_VERSION" 479781SMoriah.Waterland@Sun.COM 489781SMoriah.Waterland@Sun.COM /* return codes used with pkgcond itself */ 499781SMoriah.Waterland@Sun.COM #define R_SUCCESS 0x0 /* condition match / success */ 509781SMoriah.Waterland@Sun.COM #define R_FAILURE 0x1 /* condition no match / failure */ 519781SMoriah.Waterland@Sun.COM #define R_USAGE 0x2 /* command usage issue */ 529781SMoriah.Waterland@Sun.COM #define R_ERROR 0x3 /* could not determine condition / error */ 539781SMoriah.Waterland@Sun.COM 549781SMoriah.Waterland@Sun.COM /* main.c */ 559781SMoriah.Waterland@Sun.COM int main(int argc, char **argv); 569781SMoriah.Waterland@Sun.COM 579781SMoriah.Waterland@Sun.COM #ifdef __cplusplus 589781SMoriah.Waterland@Sun.COM } 599781SMoriah.Waterland@Sun.COM #endif 609781SMoriah.Waterland@Sun.COM 619781SMoriah.Waterland@Sun.COM #endif /* _PKGCOND_H */ 62