1*5c51f124SMoriah Waterland /* 2*5c51f124SMoriah Waterland * CDDL HEADER START 3*5c51f124SMoriah Waterland * 4*5c51f124SMoriah Waterland * The contents of this file are subject to the terms of the 5*5c51f124SMoriah Waterland * Common Development and Distribution License (the "License"). 6*5c51f124SMoriah Waterland * You may not use this file except in compliance with the License. 7*5c51f124SMoriah Waterland * 8*5c51f124SMoriah Waterland * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*5c51f124SMoriah Waterland * or http://www.opensolaris.org/os/licensing. 10*5c51f124SMoriah Waterland * See the License for the specific language governing permissions 11*5c51f124SMoriah Waterland * and limitations under the License. 12*5c51f124SMoriah Waterland * 13*5c51f124SMoriah Waterland * When distributing Covered Code, include this CDDL HEADER in each 14*5c51f124SMoriah Waterland * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*5c51f124SMoriah Waterland * If applicable, add the following below this CDDL HEADER, with the 16*5c51f124SMoriah Waterland * fields enclosed by brackets "[]" replaced with your own identifying 17*5c51f124SMoriah Waterland * information: Portions Copyright [yyyy] [name of copyright owner] 18*5c51f124SMoriah Waterland * 19*5c51f124SMoriah Waterland * CDDL HEADER END 20*5c51f124SMoriah Waterland */ 21*5c51f124SMoriah Waterland 22*5c51f124SMoriah Waterland /* 23*5c51f124SMoriah Waterland * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*5c51f124SMoriah Waterland * Use is subject to license terms. 25*5c51f124SMoriah Waterland */ 26*5c51f124SMoriah Waterland 27*5c51f124SMoriah Waterland #ifndef _PKGCOND_H 28*5c51f124SMoriah Waterland #define _PKGCOND_H 29*5c51f124SMoriah Waterland 30*5c51f124SMoriah Waterland 31*5c51f124SMoriah Waterland #ifdef __cplusplus 32*5c51f124SMoriah Waterland extern "C" { 33*5c51f124SMoriah Waterland #endif 34*5c51f124SMoriah Waterland 35*5c51f124SMoriah Waterland /* 36*5c51f124SMoriah Waterland * global definitions 37*5c51f124SMoriah Waterland */ 38*5c51f124SMoriah Waterland 39*5c51f124SMoriah Waterland /* environment variable */ 40*5c51f124SMoriah Waterland #define ENV_VAR_DEBUG "PKGCOND_DEBUG" 41*5c51f124SMoriah Waterland #define ENV_VAR_PKGROOT "PKG_INSTALL_ROOT" 42*5c51f124SMoriah Waterland #define ENV_VAR_PATCHROOT "ROOTDIR" 43*5c51f124SMoriah Waterland #define ENV_VAR_SET "SET_FROM_ENVIRONMENT" 44*5c51f124SMoriah Waterland #define ENV_VAR_VERBOSE "PKGCOND_VERBOSE" 45*5c51f124SMoriah Waterland #define ENV_VAR_PKGZONENAME "SUNW_PKG_INSTALL_ZONENAME" 46*5c51f124SMoriah Waterland #define ENV_VAR_INITIAL_INSTALL "PKG_INIT_INSTALL" 47*5c51f124SMoriah Waterland #define ENV_VAR_PATCH_CLIENTVER "PATCH_CLIENT_VERSION" 48*5c51f124SMoriah Waterland 49*5c51f124SMoriah Waterland /* file system types */ 50*5c51f124SMoriah Waterland #define FSTYPE_INHERITED "inherited" 51*5c51f124SMoriah Waterland 52*5c51f124SMoriah Waterland /* return codes used with pkgcond itself */ 53*5c51f124SMoriah Waterland #define R_SUCCESS 0x0 /* condition match / success */ 54*5c51f124SMoriah Waterland #define R_FAILURE 0x1 /* condition no match / failure */ 55*5c51f124SMoriah Waterland #define R_USAGE 0x2 /* command usage issue */ 56*5c51f124SMoriah Waterland #define R_ERROR 0x3 /* could not determine condition / error */ 57*5c51f124SMoriah Waterland 58*5c51f124SMoriah Waterland /* main.c */ 59*5c51f124SMoriah Waterland int main(int argc, char **argv); 60*5c51f124SMoriah Waterland 61*5c51f124SMoriah Waterland #ifdef __cplusplus 62*5c51f124SMoriah Waterland } 63*5c51f124SMoriah Waterland #endif 64*5c51f124SMoriah Waterland 65*5c51f124SMoriah Waterland #endif /* _PKGCOND_H */ 66