Separating __set_errno into a different library so we can hook it in hybris

__set_errno is one of the function calls that will end up using TLS, so we
need to isolate it in a separated library to be able to hook it in hybris.

Change-Id: Iee08c7de51eb67188156705d176c4d3abc7b923a
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
/dev/alog migration

Needed as /dev/log is reserved for Ubuntu.

Change-Id: I01cc15cd5fc44c66f962baa851c174947eaf8772
Signed-off-by: Jani Monoses <jani@ubuntu.com>
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
_system_properties.h: adding PROP_MSG_GETPROP and PROP_MSG_LISTPROP

Change-Id: I8d586ad20b4e23b5063a745960c7f5a0fdb31283
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
bionic_tls.h: shifting TLS slots to avoid conflicts with libc/hybris

Change-Id: Idf503fe8fa0a24edf4dbbabaa8d3a1c2d1f60295
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
system_properties.c: returning empty value in case it's called from Ubuntu

As it can't access the memory map, and /dev/__properties__ is not
available unless you're inside the Android container.

Change-Id: I1b9e161011d913cc10d6734c8ae7b9991d7fa4cb
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
netdb.h: also defining android_gethostbyaddrforiface_proxy

Fix:
bionic/libc/netbsd/net/getnameinfo.c:164:4: warning: implicit declaration
of function 'android_gethostbyaddrforiface_proxy' [-Wimplicit-function-declaration]

Change-Id: I0bdedd486698c9ad4edf62d204264c4d23281b18
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>