diff options
author | Jeongho Hwang <jbera.hwang@samsung.com> | 2012-09-19 13:15:55 +0900 |
---|---|---|
committer | Jeongho Hwang <jbera.hwang@samsung.com> | 2012-09-19 13:15:55 +0900 |
commit | c8b261d409e1cfebcc26539c58530479c531732f (patch) | |
tree | bd3365fbecb87b018ceca8bc8ef24b5db63e2ae6 /getopt_long.h | |
parent | 3c73bcec3308588a22bf7596adaa990942215db4 (diff) | |
download | ccache-c8b261d409e1cfebcc26539c58530479c531732f.tar.gz ccache-c8b261d409e1cfebcc26539c58530479c531732f.tar.bz2 ccache-c8b261d409e1cfebcc26539c58530479c531732f.zip |
Tizen 2.0 AlphaHEADtizen_2.3.1_releasesubmit/tizen_2.3.1/20150915.0950272.0_alphatizen_2.3.1master2.0alpha
Signed-off-by: Jeongho Hwang <jbera.hwang@samsung.com>
Diffstat (limited to 'getopt_long.h')
-rw-r--r-- | getopt_long.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/getopt_long.h b/getopt_long.h new file mode 100644 index 0000000..c14b4be --- /dev/null +++ b/getopt_long.h @@ -0,0 +1,30 @@ +/* + * Portions Copyright (c) 1987, 1993, 1994 + * The Regents of the University of California. All rights reserved. + * + * Portions Copyright (c) 2003-2010, PostgreSQL Global Development Group + */ +#ifndef GETOPT_LONG_H +#define GETOPT_LONG_H + +extern int opterr; +extern int optind; +extern int optopt; +extern char *optarg; + +struct option +{ + const char *name; + int has_arg; + int *flag; + int val; +}; + +#define no_argument 0 +#define required_argument 1 + +extern int getopt_long(int argc, char *const argv[], + const char *optstring, + const struct option * longopts, int *longindex); + +#endif /* GETOPT_LONG_H */ |