Remove dependency for {unistd,stdlib}.h in vcore.h (XCC)
authorKevin Klues <klueska@cs.berkeley.edu>
Thu, 1 Oct 2015 02:24:22 +0000 (19:24 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 1 Oct 2015 14:20:55 +0000 (10:20 -0400)
commit18c385606d18ae32f164f09106112e8a901aae63
tree3b61a541d62703b2f843df48ed1fe6515d796d88
parent66d5f6db500054b7679ecc9891e860ae30e46dd5
Remove dependency for {unistd,stdlib}.h in vcore.h (XCC)

We only had this dependency to include the prototype for _exit() so we
could override our exit() call with it.  We still need to do this
override, but there is no need to pollute the namespace of everything
that #includes vcore.h with all of the stuff from unistd.h and stdlib.h.
Just extern in the _exit() and exit() prototypes.

Removing this dependency meant that some of our .c files needed to
explicitly #include these files.  They are patched up accordingly.

Requires a rebuild of the cross compiler (XCC)
tests/mcp_halt.c
tests/mhello.c
tests/signal_futex.c
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/eventfd.c
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/tls.c
user/benchutil/pvcalarm.c
user/iplib/epoll.c
user/parlib/include/vcore.h
user/parlib/ucq.c