xref: /titanic_52/usr/src/cmd/ast/libast/sparcv9/conftab.h (revision 906afcb89d0412cc073b95c2d701a804a8cdb62c)
1 #ifndef _CONFTAB_H
2 #define _CONFTAB_H
3 
4 #if !defined(SYS_NMLEN)
5 #define SYS_NMLEN	9
6 #endif
7 #include <sys/systeminfo.h>
8 
9 /* : : generated by conf from contrib/ast/src/lib/libast/comp/conf.tab : : */
10 
11 #if !defined(const) && !defined(__STDC__) && !defined(__cplusplus) && !defined(c_plusplus)
12 #define const
13 #endif
14 
15 #define conf		_ast_conf_data
16 #define conf_elements	_ast_conf_ndata
17 
18 #define prefix		_ast_conf_prefix
19 #define prefix_elements	_ast_conf_nprefix
20 
21 #define CONF_nop	0
22 #define	CONF_confstr	1
23 #define CONF_pathconf	2
24 #define CONF_sysconf	3
25 #define CONF_sysinfo	4
26 
27 #define CONF_C	0
28 #define CONF_POSIX	1
29 #define CONF_SVID	2
30 #define CONF_XOPEN	3
31 #define CONF_SUN	4
32 #define CONF_XBS5	5
33 #define CONF_SCO	6
34 #define CONF_AST	7
35 #define CONF_AES	8
36 #define CONF_XPG	9
37 #define CONF_GNU	10
38 #define CONF_TRUSTEDBSD	11
39 #define CONF_call	12
40 
41 #define _pth_getconf	"/usr/bin/getconf"
42 #define _pth_getconf_a	"-a"
43 
44 #define CONF_DEFER_CALL		0x0001
45 #define CONF_DEFER_MM		0x0002
46 #define CONF_FEATURE		0x0004
47 #define CONF_LIMIT		0x0008
48 #define CONF_LIMIT_DEF		0x0010
49 #define CONF_MINMAX		0x0020
50 #define CONF_MINMAX_DEF		0x0040
51 #define CONF_NOSECTION		0x0080
52 #define CONF_NOUNDERSCORE	0x0100
53 #define CONF_PREFIX_ONLY	0x0200
54 #define CONF_PREFIXED		0x0400
55 #define CONF_STANDARD		0x0800
56 #define CONF_STRING		0x1000
57 #define CONF_UNDERSCORE		0x2000
58 #define CONF_USER		0x4000
59 
60 struct Conf_s; typedef struct Conf_s Conf_t;
61 
62 typedef struct Value_s
63 {
64 	intmax_t	number;
65 	const char*	string;
66 } Value_t;
67 
68 struct Conf_s
69 {
70 	const char	name[32];
71 	Value_t		limit;
72 	Value_t		minmax;
73 	unsigned int	flags;
74 	short		standard;
75 	short		section;
76 	short		call;
77 	short		op;
78 };
79 
80 typedef struct Prefix_s
81 {
82 	const char	name[16];
83 	short		length;
84 	short		standard;
85 	short		call;
86 } Prefix_t;
87 
88 extern const Conf_t	conf[];
89 extern const int	conf_elements;
90 
91 extern const Prefix_t	prefix[];
92 extern const int	prefix_elements;
93 
94 #endif
95