install.h revision 5c51f1241dbbdf2656d0e10011981411ed0c9673
/*
* 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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#ifndef __INSTALL_H
#define __INSTALL_H
#ifdef __cplusplus
extern "C" {
#endif
#include <limits.h>
#include <pkgstrct.h>
/* Settings for procedure scripts */
#define PROC_USER "root"
#define PROC_GRP "other"
#define PROC_STDIN "/dev/null"
#define PROC_XSTDIN "/dev/tty"
#define PROC_STDOUT "/dev/tty"
/* Settings for class action scripts */
#define CAS_USER "root"
#define CAS_GRP "other"
#define CAS_STDOUT "/dev/tty"
/* Settings for non-privileged scripts */
#define CHK_GRP "other"
#define CHK_STDOUT "/dev/tty"
/* Settings for admin "rscriptalt" option */
#define RSCRIPTALT rscriptalt
#define RSCRIPTALT_KEYWORD "rscriptalt"
#define RSCRIPTALT_ROOT "root"
#define RSCRIPTALT_NOACCESS "noaccess"
#define DATSTRM "datastream"
#define PKGINFO "pkginfo"
#define PKGMAP "pkgmap"
#define LIVE_CONT "__live_cont__"
#define RELOC "reloc"
#define ROOT "root"
/* This holds admin file data. */
struct admin {
char *mail;
char *instance;
char *partial;
char *runlevel;
char *idepend;
char *rdepend;
char *space;
char *setuid;
char *conflict;
char *action;
char *networktimeout;
char *networkretries;
char *authentication;
char *keystore;
char *proxy;
char *basedir;
char *rscriptalt;
};
/*
* This table details the status of all filesystems available to the target
* host.
*/
struct fstable {
char *name; /* name of filesystem, (mount point) */
int namlen; /* The length of the name (mountpoint) */
char *fstype; /* type of filesystem - nfs, lo, ... */
char *remote_name; /* client's mounted filesystem */
};
#define PARAMETRIC(x) (x[0] == '$')
#define RELATIVE(x) (x[0] != '/')
#define gettext(x) x
#endif /* defined(lint) && !defined(gettext) */
#ifdef __cplusplus
}
#endif
#endif /* __INSTALL_H */