Contents of /tags/mkinitrd-6_3_3/klibc/usr/include/getopt.h
Parent Directory | Revision Log
Revision 1182 -
(show annotations)
(download)
Wed Dec 15 21:43:57 2010 UTC (13 years, 9 months ago) by niro
File MIME type: text/plain
File size: 336 byte(s)
Wed Dec 15 21:43:57 2010 UTC (13 years, 9 months ago) by niro
File MIME type: text/plain
File size: 336 byte(s)
tagged 'mkinitrd-6_3_3'
1 | #ifndef _GETOPT_H |
2 | #define _GETOPT_H |
3 | |
4 | #include <klibc/extern.h> |
5 | |
6 | struct option { |
7 | const char *name; |
8 | int has_arg; |
9 | int *flag; |
10 | int val; |
11 | }; |
12 | |
13 | enum { |
14 | no_argument = 0, |
15 | required_argument = 1, |
16 | optional_argument = 2, |
17 | }; |
18 | |
19 | __extern int getopt_long(int, char *const *, const char *, |
20 | const struct option *, int *); |
21 | |
22 | #endif /* _GETOPT_H */ |