xref: /illumos-gate/usr/src/cmd/saf/misc.h (revision 7c478bd9)
1 /*
2  * CDDL HEADER START
3  *
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.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1999 by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
28 /*	  All Rights Reserved  	*/
29 
30 
31 #ident	"%Z%%M%	%I%	%E% SMI"       /* SVr4.0 1.4*/
32 
33 
34 /*
35  * current version of _sactab
36  */
37 
38 # define VERSION	1
39 
40 /*
41  * comment delimiter
42  */
43 
44 # define COMMENT	'#'
45 
46 /*
47  * field delimiter (one version for functions that take string args, and
48  * one for character args)
49  */
50 
51 # define DELIM	":"
52 # define DELIMC	':'
53 
54 /*
55  * key file names
56  */
57 
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 */
65 
66 /*
67  * version string stamp
68  */
69 
70 # define VSTR		"# VERSION="
71 
72 /*
73  * miscellaneous
74  */
75 
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 */
84