xref: /illumos-gate/usr/src/cmd/ast/libast/i386/conftab.h (revision dd72704bd9e794056c558153663c739e2012d721)
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_SOL	12
40 #define CONF_call	13
41 
42 #define _pth_getconf	"/usr/bin/getconf"
43 #define _pth_getconf_a	"-a"
44 
45 #define CONF_DEFER_CALL		0x0001
46 #define CONF_DEFER_MM		0x0002
47 #define CONF_FEATURE		0x0004
48 #define CONF_LIMIT		0x0008
49 #define CONF_LIMIT_DEF		0x0010
50 #define CONF_MINMAX		0x0020
51 #define CONF_MINMAX_DEF		0x0040
52 #define CONF_NOSECTION		0x0080
53 #define CONF_NOUNDERSCORE	0x0100
54 #define CONF_PREFIX_ONLY	0x0200
55 #define CONF_PREFIXED		0x0400
56 #define CONF_STANDARD		0x0800
57 #define CONF_STRING		0x1000
58 #define CONF_UNDERSCORE		0x2000
59 #define CONF_USER		0x4000
60 
61 struct Conf_s; typedef struct Conf_s Conf_t;
62 
63 typedef struct Value_s
64 {
65 	intmax_t	number;
66 	const char*	string;
67 } Value_t;
68 
69 struct Conf_s
70 {
71 	const char	name[32];
72 	Value_t		limit;
73 	Value_t		minmax;
74 	unsigned int	flags;
75 	short		standard;
76 	short		section;
77 	short		call;
78 	short		op;
79 };
80 
81 typedef struct Prefix_s
82 {
83 	const char	name[16];
84 	short		length;
85 	short		standard;
86 	short		call;
87 } Prefix_t;
88 
89 extern const Conf_t	conf[];
90 extern const int	conf_elements;
91 
92 extern const Prefix_t	prefix[];
93 extern const int	prefix_elements;
94 
95 #endif
96