xref: /titanic_51/usr/src/lib/libast/i386/include/ast/getopt.h (revision c93c462eec9d46f84d567abf52eb29a27c2e134b)
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 #ifdef	_AST_STD_I
11 #define _GETOPT_H		-1
12 #endif
13 
14 #ifndef _GETOPT_H
15 #define _GETOPT_H		1
16 
17 #include <ast_getopt.h>
18 
19 #define no_argument		0
20 #define required_argument	1
21 #define optional_argument	2
22 
23 struct option
24 {
25 	const char*	name;
26 	int		has_arg;
27 	int*		flag;
28 	int		val;
29 };
30 
31 extern __MANGLE__ int	getopt_long __PROTO__((int, char* const*, const char*, const struct option*, int*));
32 extern __MANGLE__ int	getopt_long_only __PROTO__((int, char* const*, const char*, const struct option*, int*));
33 
34 #endif
35