minix/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 rename nemserv 2010-07-29 08:39:49 +00:00
minix Increase gid_t and uid_t to 32 bits 2011-09-05 13:56:14 +00:00
net Increase gid_t and uid_t to 32 bits 2011-09-05 13:56:14 +00:00
netinet typo 2010-01-25 21:06:07 +00:00
sys Increase gid_t and uid_t to 32 bits 2011-09-05 13:56:14 +00:00
a.out.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
alloca.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
ar.h Import NetBSD's make 2010-02-04 16:52:54 +00:00
assert.h introduce option to time assert()s 2011-06-24 16:00:42 +02:00
complex.h added <complex.h> (needed for compiler-rt) 2011-01-26 14:35:34 +00:00
configfile.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
ctype.h Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
db.h includes: header files for netbsd db code. 2010-07-14 14:52:02 +00:00
dirent.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
err.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
errno.h SMP - can boot even if some cpus fail to boot 2010-09-15 14:11:21 +00:00
fcntl.h Remove the types Dev_t, _mnx_Gui, _mnx_Uid, and similar. 2010-04-13 10:58:41 +00:00
fenv.h Floating point support functions 2009-12-24 20:22:41 +00:00
float.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
fnmatch.h - new pread(), fnmatch() calls 2010-02-25 17:08:08 +00:00
fts.h Some misc portability-enhancing definitions. 2006-01-20 13:42:29 +00:00
getopt.h We have sys/cdefs.h now, so remove hacks. 2010-06-17 15:14:57 +00:00
glob.h A glob() implementation. 2008-04-08 13:14:33 +00:00
grp.h inlcude: new prototypes 2010-06-09 12:53:09 +00:00
ifaddrs.h . getifaddrs() and data 2006-04-03 15:06:31 +00:00
inttypes.h Additions to inttypes.h format strings 2010-01-25 18:16:25 +00:00
libgen.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
limits.h add -lminixfs with fs support routines 2011-09-08 16:52:13 +00:00
locale.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
Makefile import elf-only -lcurses 2011-07-25 11:08:17 +02:00
math.h only declare builtin prototypes in C mode 2011-02-28 11:01:31 +00:00
mathconst.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
memory.h Add include/memory.h 2010-10-04 13:37:46 +00:00
midiparser.h support for OSS. 2009-10-01 16:36:14 +00:00
mpool.h includes: header files for netbsd db code. 2010-07-14 14:52:02 +00:00
ndbm.h includes: header files for netbsd db code. 2010-07-14 14:52:02 +00:00
netdb.h Improved compatibility with other Unix systems. 2005-06-10 15:12:03 +00:00
paths.h Move minix/paths.h to paths.h 2010-11-06 20:40:15 +00:00
poll.h Add poll.h 2010-07-27 09:21:56 +00:00
pwd.h inlcude: new prototypes 2010-06-09 12:53:09 +00:00
regex.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
regexp.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
resolv.h extra includes to make porting cleaner 2010-07-28 16:32:45 +00:00
setjmp.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
sgtty.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
signal.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
stdarg.h cdecl calling convention requires to push arguments on the stack in a 2010-03-30 09:36:46 +00:00
stdbool.h new stdbool.h 2010-06-22 09:30:52 +00:00
stddef.h <stddef.h> - alternative definition of offsetof for gcc using builtin 2010-08-25 07:25:32 +00:00
stdint.h We have sys/cdefs.h now, so remove hacks. 2010-06-17 15:14:57 +00:00
stdio.h increase system-wide filename limit to 255 2011-08-17 16:00:01 +00:00
stdlib.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
string.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
strings.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
sysexits.h . getifaddrs() and data 2006-04-03 15:06:31 +00:00
syslog.h Remove those annoying $Id and $Revision tags 2010-05-31 20:00:08 +00:00
tar.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
termcap.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
time.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
tools.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
ttyent.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
tzfile.h lib: move tzfile.h from lib/libc/stdtime/ to include/ for general usage. 2010-06-08 19:11:42 +00:00
ucontext.h - Add support for the ucontext system calls (getcontext, setcontext, 2010-03-12 15:58:41 +00:00
unistd.h make getsysinfo() a system-land call 2010-09-14 21:50:05 +00:00
util.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
utime.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
utmp.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
wchar.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
wctype.h <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00