Index: fusl/include/getopt.h |
diff --git a/fusl/include/getopt.h b/fusl/include/getopt.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c1d0df928f749ac0f3094b80f2422abce23b2dfa |
--- /dev/null |
+++ b/fusl/include/getopt.h |
@@ -0,0 +1,31 @@ |
+#ifndef _GETOPT_H |
+#define _GETOPT_H |
+ |
+#ifdef __cplusplus |
+extern "C" { |
+#endif |
+ |
+int getopt(int, char * const [], const char *); |
+extern char *optarg; |
+extern int optind, opterr, optopt, optreset; |
+ |
+struct option |
+{ |
+ const char *name; |
+ int has_arg; |
+ int *flag; |
+ int val; |
+}; |
+ |
+int getopt_long(int, char *const *, const char *, const struct option *, int *); |
+int getopt_long_only(int, char *const *, const char *, const struct option *, int *); |
+ |
+#define no_argument 0 |
+#define required_argument 1 |
+#define optional_argument 2 |
+ |
+#ifdef __cplusplus |
+} |
+#endif |
+ |
+#endif |