minix/lib/libc/ansi
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
..
abort.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
abs.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
assert.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
atexit.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
atof.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
atoi.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
atol.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
bsearch.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
calloc.c Let memory allocation be aligned on 8-byte boundaries. 2010-05-04 21:02:44 +00:00
chartab.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
clock.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
difftime.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
div.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
errlist.c add EHOSTDOWN errno. 2010-09-14 11:51:41 +00:00
exit.c Fix warnings due to missing __dead attribute on exit 2010-10-05 07:25:47 +00:00
ext_comp.c fix many clang warnings in lib/ 2011-06-23 19:25:36 +02:00
ext_fmt.h Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
getenv.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
isalnum.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
isalpha.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
isascii.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
isblank.c isblank() implementation. 2010-04-08 15:00:25 +00:00
iscntrl.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
isdigit.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
isgraph.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
islower.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
isprint.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
ispunct.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
isspace.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
isupper.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
isxdigit.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
labs.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
ldiv.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
loc_time.h Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
localeconv.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
Makefile.inc Add MALLOC_DEBUG env var to debug applications using malloc 2010-08-20 19:16:31 +00:00
malloc-debug.c Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
malloc-debug.h Add MALLOC_DEBUG env var to debug applications using malloc 2010-08-20 19:16:31 +00:00
malloc.c Add MALLOC_DEBUG env var to debug applications using malloc 2010-08-20 19:16:31 +00:00
mblen.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
mbstowcs.c lib: bugfix for mbstowcs, debugged by Gautam Tirumala. 2010-07-18 20:57:55 +00:00
mbtowc.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
memchr.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
memcmp.c Remove those annoying $Id and $Revision tags 2010-05-31 20:00:08 +00:00
memcpy.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
memmove.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
memset.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
misc.c fix many clang warnings in lib/ 2011-06-23 19:25:36 +02:00
qsort.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
raise.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
rand.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
setlocale.c add LC_MESSAGES 2010-06-22 09:31:16 +00:00
sigmisc.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
signal.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
strcat.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strchr.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strcmp.c Remove those annoying $Id and $Revision tags 2010-05-31 20:00:08 +00:00
strcoll.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strcpy.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strcspn.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strerror.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strlen.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strncat.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strncmp.c Remove those annoying $Id and $Revision tags 2010-05-31 20:00:08 +00:00
strncpy.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strpbrk.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strrchr.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strspn.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strstr.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strtok.c Use endpoint_t for the destination of mini_send and _syscall, and the 2010-06-02 21:51:32 +00:00
strtol.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
strxfrm.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
system.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
tolower.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
toupper.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
wcstombs.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
wctomb.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00