summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux/latest/com32/include/getopt.h
diff options
context:
space:
mode:
authorJonathan Bauer2011-04-15 19:27:42 +0200
committerJonathan Bauer2011-04-15 19:27:42 +0200
commit1d7eb8c79b17fc9b2f9e93c215d574c8a6563441 (patch)
tree6bf557bcfef5371cfacbd88c54f4f15a90ac1ffc /contrib/syslinux/latest/com32/include/getopt.h
parentfix? (diff)
downloadusb-boot-stick-1d7eb8c79b17fc9b2f9e93c215d574c8a6563441.tar.gz
usb-boot-stick-1d7eb8c79b17fc9b2f9e93c215d574c8a6563441.tar.xz
usb-boot-stick-1d7eb8c79b17fc9b2f9e93c215d574c8a6563441.zip
fix :)
Diffstat (limited to 'contrib/syslinux/latest/com32/include/getopt.h')
-rw-r--r--contrib/syslinux/latest/com32/include/getopt.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/syslinux/latest/com32/include/getopt.h b/contrib/syslinux/latest/com32/include/getopt.h
new file mode 100644
index 0000000..71c41cd
--- /dev/null
+++ b/contrib/syslinux/latest/com32/include/getopt.h
@@ -0,0 +1,22 @@
+#ifndef _GETOPT_H
+#define _GETOPT_H
+
+#include <klibc/extern.h>
+
+struct option {
+ const char *name;
+ int has_arg;
+ int *flag;
+ int val;
+};
+
+enum {
+ no_argument = 0,
+ required_argument = 1,
+ optional_argument = 2,
+};
+
+__extern int getopt_long(int, char *const *, const char *,
+ const struct option *, int *);
+
+#endif /* _GETOPT_H */