getopt.c (n2n-3.0) | : | getopt.c (n2n-3.1.1) | ||
---|---|---|---|---|
/** | ||||
* (C) 2007-22 - ntop.org and contributors | ||||
* | ||||
* This program is free software; you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation; either version 3 of the License, or | ||||
* (at your option) any later version. | ||||
* | ||||
* This program is distributed in the hope that it will be useful, | ||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
* GNU General Public License for more details. | ||||
* | ||||
* You should have received a copy of the GNU General Public License | ||||
* along with this program; if not see see <http://www.gnu.org/licenses/> | ||||
* | ||||
*/ | ||||
/* Getopt for GNU. | /* Getopt for GNU. | |||
NOTE: getopt is now part of the C library, so if you don't know what | NOTE: getopt is now part of the C library, so if you don't know what | |||
"Keep this file name-space clean" means, talk to drepper@gnu.org | "Keep this file name-space clean" means, talk to drepper@gnu.org | |||
before changing it! | before changing it! | |||
Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 | Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 | |||
Free Software Foundation, Inc. | Free Software Foundation, Inc. | |||
The GNU C Library is free software; you can redistribute it and/or | The GNU C Library is free software; you can redistribute it and/or | |||
modify it under the terms of the GNU Library General Public License as | modify it under the terms of the GNU Library General Public License as | |||
skipping to change at line 23 | skipping to change at line 41 | |||
The GNU C Library is distributed in the hope that it will be useful, | The GNU C Library is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
Library General Public License for more details. | Library General Public License for more details. | |||
You should have received a copy of the GNU Library General Public | You should have received a copy of the GNU Library General Public | |||
License along with the GNU C Library; see the file COPYING.LIB. If not, | License along with the GNU C Library; see the file COPYING.LIB. If not, | |||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |||
Boston, MA 02111-1307, USA. */ | Boston, MA 02111-1307, USA. */ | |||
/* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. | /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. | |||
Ditto for AIX 3.2 and <stdlib.h>. */ | Ditto for AIX 3.2 and <stdlib.h>. */ | |||
#ifndef _NO_PROTO | #ifndef _NO_PROTO | |||
# define _NO_PROTO | # define _NO_PROTO | |||
#endif | #endif | |||
#ifdef HAVE_CONFIG_H | #ifdef HAVE_CONFIG_H | |||
# include <config.h> | # include <config.h> | |||
#endif | #endif | |||
skipping to change at line 254 | skipping to change at line 273 | |||
/* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. | /* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. | |||
That was relevant to code that was here before. */ | That was relevant to code that was here before. */ | |||
# if (!defined __STDC__ || !__STDC__) && !defined strlen | # if (!defined __STDC__ || !__STDC__) && !defined strlen | |||
/* gcc with -traditional declares the built-in strlen to return int, | /* gcc with -traditional declares the built-in strlen to return int, | |||
and has done so at least since version 2.4.5. -- rms. */ | and has done so at least since version 2.4.5. -- rms. */ | |||
extern int strlen (const char *); | extern int strlen (const char *); | |||
# endif /* not __STDC__ */ | # endif /* not __STDC__ */ | |||
#endif /* __GNUC__ */ | #endif /* __GNUC__ */ | |||
#endif /* not __GNU_LIBRARY__ */ | #endif /* not __GNU_LIBRARY__ */ | |||
/* Handle permutation of arguments. */ | /* Handle permutation of arguments. */ | |||
/* Describe the part of ARGV that contains non-options that have | /* Describe the part of ARGV that contains non-options that have | |||
been skipped. `first_nonopt' is the index in ARGV of the first of them; | been skipped. `first_nonopt' is the index in ARGV of the first of them; | |||
`last_nonopt' is the index after the last of them. */ | `last_nonopt' is the index after the last of them. */ | |||
static int first_nonopt; | static int first_nonopt; | |||
static int last_nonopt; | static int last_nonopt; | |||
#ifdef _LIBC | #ifdef _LIBC | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 20 lines changed or added |