xref: /titanic_41/usr/src/lib/libast/amd64/include/ast/getopt.h (revision 9ec394dbf343c1f23c6e13c39df427f238e5a369)
1 
2 /* : : generated by proto : : */
3 
4 #if !defined(__PROTO__)
5 #include <prototyped.h>
6 #endif
7 #if !defined(__LINKAGE__)
8 #define __LINKAGE__		/* 2004-08-11 transition */
9 #endif
10 #include <ast_getopt.h>
11 
12 #if !defined(_GETOPT_H) && !defined(_AST_STD_I)
13 
14 #define _GETOPT_H		1
15 
16 #define no_argument		0
17 #define required_argument	1
18 #define optional_argument	2
19 
20 struct option
21 {
22 	const char*	name;
23 	int		has_arg;
24 	int*		flag;
25 	int		val;
26 };
27 
28 extern __MANGLE__ int	getopt_long __PROTO__((int, char* const*, const char*, const struct option*, int*));
29 extern __MANGLE__ int	getopt_long_only __PROTO__((int, char* const*, const char*, const struct option*, int*));
30 
31 #endif
32