minix/nbsd_include
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
..
arch Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
arpa [NBSD libc] Various fixes. 2011-04-06 15:59:10 +00:00
heimdal Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
minix increase system-wide filename limit to 255 2011-08-17 16:00:01 +00:00
net Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
netinet Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
netinet6 Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
protocols Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
rpc Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
rpcsvc Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ssp Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
sys Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
a.out.h [NBSD libc] Various fixes. 2011-04-06 15:59:10 +00:00
aio.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ar.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
assert.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
atomic.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
bitstring.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
bm.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
cdbr.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
cdbw.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
complex.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
cpio.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ctype.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
db.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
dirent.h increase system-wide filename limit to 255 2011-08-17 16:00:01 +00:00
disktab.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
dlfcn.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
err.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
errno.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
fenv.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
fmtmsg.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
fnmatch.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
fstab.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
fts.h This patch modifies the NetBSD basic includes to be Minix 2011-02-15 12:03:42 +00:00
ftw.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
getopt.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
glob.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
grp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
hesiod.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
iconv.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ieeefp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ifaddrs.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
inttypes.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
iso646.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
kvm.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
langinfo.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
libgen.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
limits.h Various fixes for NBSD include. 2011-03-04 23:15:48 +00:00
link.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
link_aout.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
link_elf.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
locale.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
login_cap.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
lwp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
Makefile Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
malloc.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
math.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
md2.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
memory.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
mntopts.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
monetary.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
mpool.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
mqueue.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ndbm.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
netconfig.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
netdb.h [NBSD libc] Various fixes. 2011-04-06 15:59:10 +00:00
netgroup.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
nl_types.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
nlist.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
nsswitch.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
paths.h This patch modifies the NetBSD basic includes to be Minix 2011-02-15 12:03:42 +00:00
pwd.h [NBSD libc] Various fixes. 2011-04-06 15:59:10 +00:00
randomid.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ranlib.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
re_comp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
regex.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
regexp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
res_update.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
resolv.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
rmt.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
sa.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
sched.h This patch modifies the NetBSD basic includes to be Minix 2011-02-15 12:03:42 +00:00
search.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
semaphore.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
setjmp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
sgtty.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
signal.h Clean up NetBSD includes Minix port. 2011-02-15 20:16:12 +00:00
stab.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
stdbool.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
stddef.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
stdio.h Fix off-by-one errors and increase PATH_MAX to 1024 2011-09-12 09:00:24 +00:00
stdlib.h Fix GCC image building 2011-07-09 15:04:42 +02:00
string.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
stringlist.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
strings.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
struct.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
sysexits.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
tar.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
tgmath.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
time.h Various fixes for NBSD include. 2011-03-04 23:15:48 +00:00
ttyent.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
tzfile.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ucontext.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ulimit.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
unistd.h Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
util.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
utime.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
utmp.h Various fixes for NBSD include. 2011-03-04 23:15:48 +00:00
utmpx.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
uuid.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
varargs.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
vis.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
wchar.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
wctype.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
wordexp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00