15c51f124SMoriah Waterland /* 25c51f124SMoriah Waterland * CDDL HEADER START 35c51f124SMoriah Waterland * 45c51f124SMoriah Waterland * The contents of this file are subject to the terms of the 55c51f124SMoriah Waterland * Common Development and Distribution License (the "License"). 65c51f124SMoriah Waterland * You may not use this file except in compliance with the License. 75c51f124SMoriah Waterland * 85c51f124SMoriah Waterland * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95c51f124SMoriah Waterland * or http://www.opensolaris.org/os/licensing. 105c51f124SMoriah Waterland * See the License for the specific language governing permissions 115c51f124SMoriah Waterland * and limitations under the License. 125c51f124SMoriah Waterland * 135c51f124SMoriah Waterland * When distributing Covered Code, include this CDDL HEADER in each 145c51f124SMoriah Waterland * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155c51f124SMoriah Waterland * If applicable, add the following below this CDDL HEADER, with the 165c51f124SMoriah Waterland * fields enclosed by brackets "[]" replaced with your own identifying 175c51f124SMoriah Waterland * information: Portions Copyright [yyyy] [name of copyright owner] 185c51f124SMoriah Waterland * 195c51f124SMoriah Waterland * CDDL HEADER END 205c51f124SMoriah Waterland */ 215c51f124SMoriah Waterland 225c51f124SMoriah Waterland /* 23*6e1ae2a3SGary Pennington * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 245c51f124SMoriah Waterland */ 255c51f124SMoriah Waterland 265c51f124SMoriah Waterland #ifndef _PKGCOND_H 275c51f124SMoriah Waterland #define _PKGCOND_H 285c51f124SMoriah Waterland 295c51f124SMoriah Waterland 305c51f124SMoriah Waterland #ifdef __cplusplus 315c51f124SMoriah Waterland extern "C" { 325c51f124SMoriah Waterland #endif 335c51f124SMoriah Waterland 345c51f124SMoriah Waterland /* 355c51f124SMoriah Waterland * global definitions 365c51f124SMoriah Waterland */ 375c51f124SMoriah Waterland 385c51f124SMoriah Waterland /* environment variable */ 395c51f124SMoriah Waterland #define ENV_VAR_DEBUG "PKGCOND_DEBUG" 405c51f124SMoriah Waterland #define ENV_VAR_PKGROOT "PKG_INSTALL_ROOT" 415c51f124SMoriah Waterland #define ENV_VAR_SET "SET_FROM_ENVIRONMENT" 425c51f124SMoriah Waterland #define ENV_VAR_VERBOSE "PKGCOND_VERBOSE" 435c51f124SMoriah Waterland #define ENV_VAR_PKGZONENAME "SUNW_PKG_INSTALL_ZONENAME" 445c51f124SMoriah Waterland #define ENV_VAR_INITIAL_INSTALL "PKG_INIT_INSTALL" 455c51f124SMoriah Waterland 465c51f124SMoriah Waterland /* return codes used with pkgcond itself */ 475c51f124SMoriah Waterland #define R_SUCCESS 0x0 /* condition match / success */ 485c51f124SMoriah Waterland #define R_FAILURE 0x1 /* condition no match / failure */ 495c51f124SMoriah Waterland #define R_USAGE 0x2 /* command usage issue */ 505c51f124SMoriah Waterland #define R_ERROR 0x3 /* could not determine condition / error */ 515c51f124SMoriah Waterland 525c51f124SMoriah Waterland /* main.c */ 535c51f124SMoriah Waterland int main(int argc, char **argv); 545c51f124SMoriah Waterland 555c51f124SMoriah Waterland #ifdef __cplusplus 565c51f124SMoriah Waterland } 575c51f124SMoriah Waterland #endif 585c51f124SMoriah Waterland 595c51f124SMoriah Waterland #endif /* _PKGCOND_H */ 60