… | |
… | |
2 | Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc. |
2 | Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc. |
3 | |
3 | |
4 | NOTE: The canonical source of this file is maintained with the GNU C Library. |
4 | NOTE: The canonical source of this file is maintained with the GNU C Library. |
5 | Bugs can be reported to bug-glibc@prep.ai.mit.edu. |
5 | Bugs can be reported to bug-glibc@prep.ai.mit.edu. |
6 | |
6 | |
|
|
7 | This file is part of GVPE. |
|
|
8 | |
7 | This program is free software; you can redistribute it and/or modify it |
9 | GVPE is free software; you can redistribute it and/or modify it |
8 | under the terms of the GNU General Public License as published by the |
10 | under the terms of the GNU General Public License as published by the |
9 | Free Software Foundation; either version 2, or (at your option) any |
11 | Free Software Foundation; either version 2, or (at your option) any |
10 | later version. |
12 | later version. |
11 | |
13 | |
12 | This program is distributed in the hope that it will be useful, |
14 | This program is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | GNU General Public License for more details. |
17 | GNU General Public License for more details. |
16 | |
18 | |
17 | You should have received a copy of the GNU General Public License |
19 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software |
20 | along with gvpe; if not, write to the Free Software |
19 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | */ |
22 | */ |
21 | |
23 | |
22 | #ifndef _GETOPT_H |
24 | #ifndef _GETOPT_H |
23 | #define _GETOPT_H 1 |
25 | #define _GETOPT_H 1 |
… | |
… | |
103 | /* Many other libraries have conflicting prototypes for getopt, with |
105 | /* Many other libraries have conflicting prototypes for getopt, with |
104 | differences in the consts, in stdlib.h. To avoid compilation |
106 | differences in the consts, in stdlib.h. To avoid compilation |
105 | errors, only prototype getopt for the GNU C library. */ |
107 | errors, only prototype getopt for the GNU C library. */ |
106 | extern int getopt (int argc, char *const *argv, const char *shortopts); |
108 | extern int getopt (int argc, char *const *argv, const char *shortopts); |
107 | #else /* not __GNU_LIBRARY__ */ |
109 | #else /* not __GNU_LIBRARY__ */ |
108 | extern int getopt (); |
|
|
109 | #endif /* __GNU_LIBRARY__ */ |
110 | #endif /* __GNU_LIBRARY__ */ |
110 | extern int getopt_long (int argc, char *const *argv, const char *shortopts, |
111 | extern int getopt_long (int argc, char *const *argv, const char *shortopts, |
111 | const struct option *longopts, int *longind); |
112 | const struct option *longopts, int *longind); |
112 | extern int getopt_long_only (int argc, char *const *argv, |
113 | extern int getopt_long_only (int argc, char *const *argv, |
113 | const char *shortopts, |
114 | const char *shortopts, |
… | |
… | |
117 | extern int _getopt_internal (int argc, char *const *argv, |
118 | extern int _getopt_internal (int argc, char *const *argv, |
118 | const char *shortopts, |
119 | const char *shortopts, |
119 | const struct option *longopts, int *longind, |
120 | const struct option *longopts, int *longind, |
120 | int long_only); |
121 | int long_only); |
121 | #else /* not __STDC__ */ |
122 | #else /* not __STDC__ */ |
122 | extern int getopt (); |
|
|
123 | extern int getopt_long (); |
123 | extern int getopt_long (); |
124 | extern int getopt_long_only (); |
124 | extern int getopt_long_only (); |
125 | |
125 | |
126 | extern int _getopt_internal (); |
126 | extern int _getopt_internal (); |
127 | #endif /* __STDC__ */ |
127 | #endif /* __STDC__ */ |