xref: /illumos-gate/usr/src/head/valtools.h (revision 78801af7286cd73dbc996d470f789e75993cf15d)
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 #ifdef	__cplusplus
30 extern "C" {
31 #endif
32 
33 struct _choice_ {
34 	char *token;
35 	char *text;
36 	struct _choice_ *next;
37 };
38 
39 struct _menu_ {
40 	char	*label;
41 	int	attr;
42 	short	longest;
43 	short	nchoices;
44 	struct _choice_
45 		*choice;
46 	char	**invis;
47 };
48 
49 typedef struct _menu_ CKMENU;
50 
51 #define	P_ABSOLUTE	0x0001
52 #define	P_RELATIVE	0x0002
53 #define	P_EXIST		0x0004
54 #define	P_NEXIST	0x0008
55 #define	P_REG		0x0010
56 #define	P_DIR		0x0020
57 #define	P_BLK		0x0040
58 #define	P_CHR		0x0080
59 #define	P_NONZERO	0x0100
60 #define	P_READ		0x0200
61 #define	P_WRITE		0x0400
62 #define	P_EXEC		0x0800
63 #define	P_CREAT		0x1000
64 
65 #define	CKUNNUM		0x01
66 #define	CKALPHA		0x02
67 #define	CKONEFLAG	0x04
68 
69 #ifdef	__cplusplus
70 }
71 #endif
72 
73 #endif	/* _VALTOOLS_H */
74