minix/lib/nbsd_libc/stdlib
Thomas Veerman a209c3ae12 Fix a ton of compiler warnings
This patch fixes most of current reasons to generate compiler warnings.
The changes consist of:
 - adding missing casts
 - hiding or unhiding function declarations
 - including headers where missing
 - add __UNCONST when assigning a const char * to a char *
 - adding missing return statements
 - changing some types from unsigned to signed, as the code seems to want
   signed ints
 - converting old-style function definitions to current style (i.e.,
   void func(param1, param2) short param1, param2; {...} to
   void func (short param1, short param2) {...})
 - making the compiler silent about signed vs unsigned comparisons. We
   have too many of those in the new libc to fix.

A number of bugs in the test set were fixed. These bugs were never
triggered with our old libc. Consequently, these tests are now forced to
link with the new libc or they will generate errors (in particular tests 43
and 55).

Most changes in NetBSD libc are limited to moving aroudn "#ifndef __minix"
or stuff related to Minix-specific things (code in sys-minix or gen/minix).
2011-11-14 10:07:49 +00:00
..
_env.c nbsd libc: global constructors run sanity check 2011-07-08 16:34:40 +02:00
_rand48.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
a64l.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
a64l.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
abort.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
abort.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
abs.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
abs.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
alloca.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
atexit.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
atexit.c Port NetBSD libc functions to Minix. 2011-02-15 12:19:40 +00:00
atexit.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
atof.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
atof.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
atoi.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
atoi.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
atol.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
atol.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
atoll.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
atoll.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
bsearch.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
bsearch.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
div.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
div.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
drand48.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
erand48.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
erand48_ieee754.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
exit.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
exit.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
getenv.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
getenv.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
getopt.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
getopt.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
getopt_long.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
getopt_long.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
getsubopt.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
getsubopt.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
grantpt.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
hcreate.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
hcreate.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
imaxabs.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
imaxabs.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
imaxdiv.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
imaxdiv.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
insque.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
insque.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
jemalloc.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
jemalloc.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
jrand48.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
l64a.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
labs.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
labs.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
lcong48.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ldiv.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ldiv.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
Lint_abs.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
Lint_div.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
Lint_imaxabs.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
Lint_labs.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
Lint_ldiv.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
Lint_llabs.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
llabs.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
llabs.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
lldiv.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
lldiv.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
local.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
lrand48.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
lsearch.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
lsearch.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
Makefile.inc malloc build fixes 2011-08-18 22:30:51 +00:00
malloc.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
malloc.c rename mmap() and munmap() 2011-07-16 13:01:19 +02:00
memory.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
merge.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
mi_vector_hash.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
mi_vector_hash.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
mrand48.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
nrand48.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
posix_memalign.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
posix_openpt.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
posix_openpt.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ptsname.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
pty.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
putenv.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
qabs.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
qabs.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
qdiv.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
qdiv.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
qsort.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
qsort.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
radixsort.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
radixsort.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
rand.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
rand.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
rand48.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
rand48.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
rand_r.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
random.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
remque.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
seed48.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
setenv.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
srand48.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
strfmon.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
strfmon.c Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
strsuftoll.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
strsuftoll.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
strtod.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
strtoimax.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
strtol.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
strtol.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
strtoq.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
strtoul.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
strtouq.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
system.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
system.c Add vfork() system call 2011-07-22 10:55:30 +02:00
tdelete.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
tfind.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
tsearch.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
tsearch.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
twalk.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
unlockpt.3 Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
unsetenv.c Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00