syscall: Drop #if 0'd sendfile code

Killing it simplifies the sblock/sbunlock code auditing.

Signed-off-by: Asias He <asias@cloudius-systems.com>
Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
net: Get rid of unnecessary recursive locking

We already get SOCK_LOCK(so) before we call sblock() everywhere. No need
to do recursive locking.

Similarly, we will call SOCK_UNLOCK(so) after we call sbunlock()
everywhere.

Signed-off-by: Asias He <asias@cloudius-systems.com>
Reviewed-by: Tomasz Grabiec <tgrabiec@gmail.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
Drivers get_name method should be const

There is no point in returning a const object as a name, it is useful to
make the method const.

This patch changes hw_driver from
virtual const std::string get_name() to virtual std::string get_name() const

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
libtools should be added to the image

libtools got its own module and was added as a dependency to the
httpserver model.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
Move the get interface logic outside of ifconfig into libtools.lib

Expose the logic of getting the interface outside of ifconfig
implementation and allows other module to use it.

The implementation hide the bsd related details from modules that uses
it.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
Http Server: Add an API to unset environment variable

This adds an API and a test to unset an environment variable.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
rcu hashtable: add documenation

Add doxygen style documentation.  In addition, add separate helpers
for owner_find() and reader_find() in the special case where the type
of the key is equal to the type of the data element.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>