loader: rename zfsloader to loader
[unleashed.git] / include / valtools.h
blob41e40478e54f866ded564ae52467b868d4a3c0b3
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
22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 /* All Rights Reserved */
26 #ifndef _VALTOOLS_H
27 #define _VALTOOLS_H
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
33 struct _choice_ {
34 char *token;
35 char *text;
36 struct _choice_ *next;
39 struct _menu_ {
40 char *label;
41 int attr;
42 short longest;
43 short nchoices;
44 struct _choice_
45 *choice;
46 char **invis;
49 typedef struct _menu_ CKMENU;
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
65 #define CKUNNUM 0x01
66 #define CKALPHA 0x02
67 #define CKONEFLAG 0x04
69 #ifdef __cplusplus
71 #endif
73 #endif /* _VALTOOLS_H */