… | |
… | |
103 | /* Many other libraries have conflicting prototypes for getopt, with |
103 | /* Many other libraries have conflicting prototypes for getopt, with |
104 | differences in the consts, in stdlib.h. To avoid compilation |
104 | differences in the consts, in stdlib.h. To avoid compilation |
105 | errors, only prototype getopt for the GNU C library. */ |
105 | errors, only prototype getopt for the GNU C library. */ |
106 | extern int getopt (int argc, char *const *argv, const char *shortopts); |
106 | extern int getopt (int argc, char *const *argv, const char *shortopts); |
107 | #else /* not __GNU_LIBRARY__ */ |
107 | #else /* not __GNU_LIBRARY__ */ |
108 | extern int getopt (); |
|
|
109 | #endif /* __GNU_LIBRARY__ */ |
108 | #endif /* __GNU_LIBRARY__ */ |
110 | extern int getopt_long (int argc, char *const *argv, const char *shortopts, |
109 | extern int getopt_long (int argc, char *const *argv, const char *shortopts, |
111 | const struct option *longopts, int *longind); |
110 | const struct option *longopts, int *longind); |
112 | extern int getopt_long_only (int argc, char *const *argv, |
111 | extern int getopt_long_only (int argc, char *const *argv, |
113 | const char *shortopts, |
112 | const char *shortopts, |
… | |
… | |
117 | extern int _getopt_internal (int argc, char *const *argv, |
116 | extern int _getopt_internal (int argc, char *const *argv, |
118 | const char *shortopts, |
117 | const char *shortopts, |
119 | const struct option *longopts, int *longind, |
118 | const struct option *longopts, int *longind, |
120 | int long_only); |
119 | int long_only); |
121 | #else /* not __STDC__ */ |
120 | #else /* not __STDC__ */ |
122 | extern int getopt (); |
|
|
123 | extern int getopt_long (); |
121 | extern int getopt_long (); |
124 | extern int getopt_long_only (); |
122 | extern int getopt_long_only (); |
125 | |
123 | |
126 | extern int _getopt_internal (); |
124 | extern int _getopt_internal (); |
127 | #endif /* __STDC__ */ |
125 | #endif /* __STDC__ */ |