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