2 |
Copyright (C) 1989-1994, 1996-1999, 2001 Free Software Foundation, Inc. |
Copyright (C) 1989-1994, 1996-1999, 2001 Free Software Foundation, Inc. |
3 |
This file is part of the GNU C Library. |
This file is part of the GNU C Library. |
4 |
|
|
5 |
The GNU C Library is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or modify |
6 |
modify it under the terms of the GNU Lesser General Public |
it under the terms of the GNU General Public License as published by |
7 |
License as published by the Free Software Foundation; either |
the Free Software Foundation; either version 2, or (at your option) |
8 |
version 2.1 of the License, or (at your option) any later version. |
any later version. |
9 |
|
|
10 |
The GNU C Library is distributed in the hope that it will be useful, |
This program is distributed in the hope that it will be useful, |
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
Lesser General Public License for more details. |
GNU General Public License for more details. |
14 |
|
|
15 |
You should have received a copy of the GNU Lesser General Public |
You should have received a copy of the GNU General Public License along |
16 |
License along with the GNU C Library; if not, write to the Free |
with this program; if not, write to the Free Software Foundation, |
17 |
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
|
02111-1307 USA. */ |
|
18 |
|
|
19 |
#ifndef _GETOPT_H |
#ifndef _GETOPT_H |
20 |
|
|
141 |
/* Many other libraries have conflicting prototypes for getopt, with |
/* Many other libraries have conflicting prototypes for getopt, with |
142 |
differences in the consts, in stdlib.h. To avoid compilation |
differences in the consts, in stdlib.h. To avoid compilation |
143 |
errors, only prototype getopt for the GNU C library. */ |
errors, only prototype getopt for the GNU C library. */ |
144 |
extern int getopt (int __argc, char *const *__argv, const char *__shortopts); |
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts); |
145 |
# else /* not __GNU_LIBRARY__ */ |
# else /* not __GNU_LIBRARY__ */ |
146 |
extern int getopt (); |
extern int getopt (); |
147 |
# endif /* __GNU_LIBRARY__ */ |
# endif /* __GNU_LIBRARY__ */ |
148 |
|
|
149 |
# ifndef __need_getopt |
# ifndef __need_getopt |
150 |
extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts, |
extern int getopt_long (int ___argc, char *const *___argv, |
151 |
|
const char *__shortopts, |
152 |
const struct option *__longopts, int *__longind); |
const struct option *__longopts, int *__longind); |
153 |
extern int getopt_long_only (int __argc, char *const *__argv, |
extern int getopt_long_only (int ___argc, char *const *___argv, |
154 |
const char *__shortopts, |
const char *__shortopts, |
155 |
const struct option *__longopts, int *__longind); |
const struct option *__longopts, int *__longind); |
156 |
|
|
157 |
/* Internal only. Users should not call this directly. */ |
/* Internal only. Users should not call this directly. */ |
158 |
extern int _getopt_internal (int __argc, char *const *__argv, |
extern int _getopt_internal (int ___argc, char *const *___argv, |
159 |
const char *__shortopts, |
const char *__shortopts, |
160 |
const struct option *__longopts, int *__longind, |
const struct option *__longopts, int *__longind, |
161 |
int __long_only); |
int __long_only); |