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