xref: /illumos-gate/usr/src/head/valtools.h (revision 581cede61ac9c14d8d4ea452562a567189eead78)
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 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #ifndef	_VALTOOLS_H
27 #define	_VALTOOLS_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 struct _choice_ {
36 	char *token;
37 	char *text;
38 	struct _choice_ *next;
39 };
40 
41 struct _menu_ {
42 	char	*label;
43 	int	attr;
44 	short	longest;
45 	short	nchoices;
46 	struct _choice_
47 		*choice;
48 	char	**invis;
49 };
50 
51 typedef struct _menu_ CKMENU;
52 
53 #define	P_ABSOLUTE	0x0001
54 #define	P_RELATIVE	0x0002
55 #define	P_EXIST		0x0004
56 #define	P_NEXIST	0x0008
57 #define	P_REG		0x0010
58 #define	P_DIR		0x0020
59 #define	P_BLK		0x0040
60 #define	P_CHR		0x0080
61 #define	P_NONZERO	0x0100
62 #define	P_READ		0x0200
63 #define	P_WRITE		0x0400
64 #define	P_EXEC		0x0800
65 #define	P_CREAT		0x1000
66 
67 #define	CKUNNUM		0x01
68 #define	CKALPHA		0x02
69 #define	CKONEFLAG	0x04
70 
71 #ifdef	__cplusplus
72 }
73 #endif
74 
75 #endif	/* _VALTOOLS_H */
76