NetBSD/lib/libc/stdlib
thorpej a3fe3d3cf9 Some (popular) programs expect to be able to re-initialize `optind'
to 0 and have getopt(3)/getopt_long(3) continue to function properly.
This happens to work with GNU getopt_long(3), so mimmick the behavior.

Fixes pkg/10980 (Manuel Bouyer): rsyncd was relying on this behavior.
2000-08-25 17:05:49 +00:00
..
Lint_abs.c fix up NetBSD RCS Ids to match the standard, and the leading comment as 2000-06-14 06:48:47 +00:00
Lint_div.c fix up NetBSD RCS Ids to match the standard, and the leading comment as 2000-06-14 06:48:47 +00:00
Lint_labs.c fix up NetBSD RCS Ids to match the standard, and the leading comment as 2000-06-14 06:48:47 +00:00
Lint_ldiv.c fix up NetBSD RCS Ids to match the standard, and the leading comment as 2000-06-14 06:48:47 +00:00
Lint_llabs.c Make lint happy about long long integers. (C99 mode for lint, anyone?) 2000-03-07 20:02:00 +00:00
Makefile.inc New getopt_long from Thomas Klausner and Dieter Baron 2000-04-02 20:27:58 +00:00
_rand48.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
_strtoll.c Make lint happy about long long integers. (C99 mode for lint, anyone?) 2000-03-07 20:02:00 +00:00
_strtoull.c Make lint happy about long long integers. (C99 mode for lint, anyone?) 2000-03-07 20:02:00 +00:00
a64l.3 Don't pass so many args to .Nd macro. It just overflows. 1999-11-19 01:12:39 +00:00
a64l.c Delint. 2000-01-22 22:19:07 +00:00
abort.3
abort.c
abs.3 Add ISO C99 long long integer general utility interfaces; partially addresses 2000-03-06 18:32:22 +00:00
abs.c
alloca.3 Last of the .Os cleanups. .Os is defined in the tmac.doc-common file, 1999-03-22 19:44:33 +00:00
atexit.3
atexit.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
atexit.h Add 3 additional slots to the statically allocated exit handler array to 1999-03-22 19:09:10 +00:00
atof.3
atof.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
atoi.3
atoi.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
atol.3
atol.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
atoll.3 Add ISO C99 long long integer general utility interfaces; partially addresses 2000-03-06 18:32:22 +00:00
atoll.c Make lint happy about long long integers. (C99 mode for lint, anyone?) 2000-03-07 20:02:00 +00:00
bsearch.3
bsearch.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
calloc.c
div.3 Add ISO C99 long long integer general utility interfaces; partially addresses 2000-03-06 18:32:22 +00:00
div.c
drand48.c Delint. 2000-01-22 22:19:07 +00:00
erand48.c Delint. 2000-01-22 22:19:07 +00:00
exit.3
exit.c
getenv.3
getenv.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
getopt.3 Added a tab before a '}' to put the brace in the right place. 2000-01-25 23:22:49 +00:00
getopt.c Delint. 2000-01-22 22:19:07 +00:00
getopt_long.3 small fixes; not yet complete 2000-04-07 00:02:32 +00:00
getopt_long.c Some (popular) programs expect to be able to re-initialize `optind' 2000-08-25 17:05:49 +00:00
getsubopt.3
getsubopt.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
heapsort.c Delint. 2000-01-22 22:19:07 +00:00
jrand48.c Delint. 2000-01-22 22:19:07 +00:00
l64a.c Delint. 2000-01-22 22:19:07 +00:00
labs.3 Add ISO C99 long long integer general utility interfaces; partially addresses 2000-03-06 18:32:22 +00:00
labs.c
lcong48.c Delint. 2000-01-22 22:19:07 +00:00
ldiv.3 Add ISO C99 long long integer general utility interfaces; partially addresses 2000-03-06 18:32:22 +00:00
ldiv.c
llabs.3 Add ISO C99 long long integer general utility interfaces; partially addresses 2000-03-06 18:32:22 +00:00
llabs.c Make lint happy about long long integers. (C99 mode for lint, anyone?) 2000-03-07 20:02:00 +00:00
lldiv.3 Add ISO C99 long long integer general utility interfaces; partially addresses 2000-03-06 18:32:22 +00:00
lldiv.c Make lint happy about long long integers. (C99 mode for lint, anyone?) 2000-03-07 20:02:00 +00:00
local.h
lrand48.c Delint. 2000-01-22 22:19:07 +00:00
malloc.3 Document that errno is set to ENOMEM if no memory can be allocated. 2000-01-09 16:14:04 +00:00
malloc.c avoid losing precision warnings 2000-07-06 03:13:22 +00:00
memory.3 Last of the .Os cleanups. .Os is defined in the tmac.doc-common file, 1999-03-22 19:44:33 +00:00
merge.c Delint. 2000-01-22 22:19:07 +00:00
mrand48.c Delint. 2000-01-22 22:19:07 +00:00
multibyte.c Make mbstowcs and wcstombs work correctly when handed NULL pointers. 2000-04-01 19:42:57 +00:00
nrand48.c Delint. 2000-01-22 22:19:07 +00:00
putenv.c Delint. 2000-01-22 22:19:07 +00:00
qabs.3 Add ISO C99 long long integer general utility interfaces; partially addresses 2000-03-06 18:32:22 +00:00
qabs.c Delint. 2000-01-22 22:19:07 +00:00
qdiv.3 Add ISO C99 long long integer general utility interfaces; partially addresses 2000-03-06 18:32:22 +00:00
qdiv.c Delint. 2000-01-22 22:19:07 +00:00
qsort.3
qsort.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
radixsort.3
radixsort.c Delint. 2000-01-22 22:19:07 +00:00
rand.3
rand.c whitespace knf 1999-09-16 09:43:42 +00:00
rand48.3 remove extra period in SEE ALL section 2000-07-05 15:45:28 +00:00
rand48.h
rand_r.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
random.3 Last of the .Os cleanups. .Os is defined in the tmac.doc-common file, 1999-03-22 19:44:33 +00:00
random.c Delint. 2000-01-22 22:19:07 +00:00
seed48.c Delint. 2000-01-22 22:19:07 +00:00
setenv.c Delint. 2000-01-22 22:19:07 +00:00
srand48.c Delint. 2000-01-22 22:19:07 +00:00
strtod.3 Add missing .El lines. 1999-03-09 19:45:09 +00:00
strtod.c Initial commit of arm26 port 2000-05-09 21:55:44 +00:00
strtol.3 Add missing comma. 2000-03-16 04:57:11 +00:00
strtol.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
strtoll.c Make lint happy about long long integers. (C99 mode for lint, anyone?) 2000-03-07 20:02:00 +00:00
strtoq.c No longer need internal names for strtoq() and strtouq(). 2000-03-08 20:17:19 +00:00
strtoul.3 Add ISO C99 long long integer general utility interfaces; partially addresses 2000-03-06 18:32:22 +00:00
strtoul.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
strtoull.c Workaround no longer needed, now that the compiler is fixed. 2000-05-16 22:07:30 +00:00
strtouq.c Workaround no longer needed, now that the compiler is fixed. 2000-05-16 22:07:30 +00:00
system.3 Fix typo noted by NAKAJIMA Yoshihiro in PR lib/7328. 1999-04-06 19:44:42 +00:00
system.c
tdelete.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
tfind.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
tsearch.3 t{search,find,walk,delete} from OpenBSD via Neil A. Carson 1999-02-22 10:33:15 +00:00
tsearch.c back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. 1999-09-20 04:38:56 +00:00
twalk.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00