Merge commit '00f1a4f432b3d8aad1aa270e91c44c57f03ef407'
[unleashed.git] / usr / src / cmd / saf / misc.h
blobdef59738f047e732000a2574dc21df22e52f86fc
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
23 * Copyright (c) 1999 by Sun Microsystems, Inc.
24 * All rights reserved.
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
31 #ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.4*/
35 * current version of _sactab
38 # define VERSION 1
41 * comment delimiter
44 # define COMMENT '#'
47 * field delimiter (one version for functions that take string args, and
48 * one for character args)
51 # define DELIM ":"
52 # define DELIMC ':'
55 * key file names
58 # define HOME "/etc/saf" /* SAC home dir */
59 # define ALTHOME "/var/saf" /* alternate directory for misc. files */
60 # define SACTAB "/etc/saf/_sactab" /* SAC admin file */
61 # define LOGFILE "/var/saf/_log" /* SAC log file */
62 # define DBGFILE "/var/saf/debug" /* SAC debug file */
63 # define SYSCONFIG "/etc/saf/_sysconfig" /* sys config file */
64 # define CMDPIPE "/etc/saf/_cmdpipe" /* SAC command pipe */
67 * version string stamp
70 # define VSTR "# VERSION="
73 * miscellaneous
76 # define PMTYPESIZE 14 /* maximum length for a port monitor type */
77 # define SVCTAGSIZE 14 /* maximum length for a service tag */
78 # define SLOP 20 /* enough extra bytes to hold status info */
79 # define TRUE 1 /* definition of true */
80 # define FALSE 0 /* definition of false */
81 # define SSTATE 255 /* special state to indicate no sac */
82 # define SIZE 512 /* scratch buffer size */
83 # define BADFARGSIZE 256 /* hold bad args (to -f) buffer size */