8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / lib / libast / i386 / include / ast / getopt.h
blobc0679a7e5318e0dab872f7d2f02fc2f9a5e3460d
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 ***********************************************************************/
26 * gnu getopt interface
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
37 #ifdef _AST_STD_I
38 #define _GETOPT_H -1
39 #else
40 #define _GETOPT_H 1
42 #include <ast_getopt.h>
44 #define no_argument 0
45 #define required_argument 1
46 #define optional_argument 2
48 struct option
50 const char* name;
51 int has_arg;
52 int* flag;
53 int val;
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*));
59 #endif
60 #endif