Make binding helper macros available to out of tree components

Signed-off-by: Simon Busch <morphis@gravedo.de>
Switch to CLOCK_MONOTONIC_RAW instead of CLOCK_REALTIME

Using CLOCK_REALTIME can cause problems as it's time value is influenced by different
sources where CLOCK_MONOTONIC_RAW is not. CLOCK_MONOTONIC isn't safe to use as on
linux systems it can be influenced by NTP as well.

Signed-off-by: Simon Busch <morphis@gravedo.de>
properties: when property service is not available list properties from cache

Signed-off-by: Simon Busch <morphis@gravedo.de>
Redirect access to /dev/log/* to /dev/log_*

Android has a different log management approach and defines different log buffers (system,
main, events, radio) which are normally in Android available at /dev/log/{system,main,events,
radio}. In libhybris environments /dev/log is already occupied by the system logging
daemon (syslogd, journald, ...) so mapping isn't possible. To avoid patching the android
parts to use /dev/log_* directly instead of /dev/log/* we're installing a hook for the
open system call which checks for possible redirects. The implementend mechanism is
extensible so other redirects can be added easily.

Signed-off-by: Simon Busch <morphis@gravedo.de>
Merge pull request #231 from webOS-ports/for-upstream

For upstream