summaryrefslogtreecommitdiff
path: root/getopt_long.h
diff options
context:
space:
mode:
authorJeongho Hwang <jbera.hwang@samsung.com>2012-09-19 13:15:55 +0900
committerJeongho Hwang <jbera.hwang@samsung.com>2012-09-19 13:15:55 +0900
commitc8b261d409e1cfebcc26539c58530479c531732f (patch)
treebd3365fbecb87b018ceca8bc8ef24b5db63e2ae6 /getopt_long.h
parent3c73bcec3308588a22bf7596adaa990942215db4 (diff)
downloadccache-c8b261d409e1cfebcc26539c58530479c531732f.tar.gz
ccache-c8b261d409e1cfebcc26539c58530479c531732f.tar.bz2
ccache-c8b261d409e1cfebcc26539c58530479c531732f.zip
Signed-off-by: Jeongho Hwang <jbera.hwang@samsung.com>
Diffstat (limited to 'getopt_long.h')
-rw-r--r--getopt_long.h30
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 */