xref: /titanic_51/usr/src/lib/libast/amd64/include/ast/getopt.h (revision c10c16dec587a0662068f6e2991c29ed3a9db943)
1 
2 /* : : generated by proto : : */
3 /***********************************************************************
4 *                                                                      *
5 *               This software is part of the ast package               *
6 *          Copyright (c) 1985-2010 AT&T Intellectual Property          *
7 *                      and is licensed under the                       *
8 *                  Common Public License, Version 1.0                  *
9 *                    by AT&T Intellectual Property                     *
10 *                                                                      *
11 *                A copy of the License is available at                 *
12 *            http://www.opensource.org/licenses/cpl1.0.txt             *
13 *         (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9)         *
14 *                                                                      *
15 *              Information and Software Systems Research               *
16 *                            AT&T Research                             *
17 *                           Florham Park NJ                            *
18 *                                                                      *
19 *                 Glenn Fowler <gsf@research.att.com>                  *
20 *                  David Korn <dgk@research.att.com>                   *
21 *                   Phong Vo <kpv@research.att.com>                    *
22 *                                                                      *
23 ***********************************************************************/
24 
25 /*
26  * gnu getopt interface
27  */
28 
29 #ifndef _GETOPT_H
30 #if !defined(__PROTO__)
31 #include <prototyped.h>
32 #endif
33 #if !defined(__LINKAGE__)
34 #define __LINKAGE__		/* 2004-08-11 transition */
35 #endif
36 
37 #ifdef	_AST_STD_I
38 #define _GETOPT_H		-1
39 #else
40 #define _GETOPT_H		1
41 
42 #include <ast_getopt.h>
43 
44 #define no_argument		0
45 #define required_argument	1
46 #define optional_argument	2
47 
48 struct option
49 {
50 	const char*	name;
51 	int		has_arg;
52 	int*		flag;
53 	int		val;
54 };
55 
56 extern __MANGLE__ int	getopt_long __PROTO__((int, char* const*, const char*, const struct option*, int*));
57 extern __MANGLE__ int	getopt_long_only __PROTO__((int, char* const*, const char*, const struct option*, int*));
58 
59 #endif
60 #endif
61