pthread_yield: mark as extern

Apparently, pthread_yield declaration is not in the standard headers, so it
ends up not being exported as a C symbol. Manually do it.

Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
modules: add libyaml module

Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
cloud-init: depend on libyaml

Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
httpserver: add missing libyaml.so when cloud-init module is not included

httpserver's DSO is linked against libyaml but does not include it in
its manifest. Fix by depending on libyaml module.

Makes the following dmesg line go away:

  could not load libyaml-cpp.so.0.5

Currently it doesn't cause any run-time problems because the
functionality which uses libyaml is run only when httpserver is
configured via cloud-init, in which case libyaml is already included.

Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Jolokia - change 'p' parameter to non-required in swagger definition

Makes "/jolokia" (without args) function identically to vanilla
Jolokia (-> version)

Signed-off-by: Calle Wilund <calle@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Revert "Revert "epoll: fix up lock ordering issues""

This reverts commit 408a982f3f2fbd4a3aaddafb60233909eb6b7b83.
misc-fclose.cc
vfs: Fix race in fdrop

There is a race window between f_count reaches 0 and we set f_count to
INT_MIN. This race would result in multiple call to fp->close() and
rcu_dispose(fp) if we call them in fdrop().

To fix, we set f_count to INT_MIN using CAS, this way, we make sure
fp->close() and rcu_dispose(fp) won't be called twice.

Fixes #293.

Signed-off-by: Asias He <asias@cloudius-systems.com>
n = INT_MIN / 2