Accept file descriptor 0 as log fd

Log would not get written and the file descriptor would not be
closed if open() returned fd 0.

Signed-off-by: Juha Kallioinen <juha.kallioinen@jollamobile.com>
Add support for x86_64 target.

The patch has been submited upstream as well, so hopefully it won't be
needed anymore upon the new version release.

Original patch by: Oleg Girko <ol+mer@infoserver.ru>

Signed-off-by: Juha Kallioinen <juha.kallioinen@jollamobile.com>
Add patch to not assume that readlink is located int /bin

On modern systems readlink can be in /usr/bin, so it's better to rely
on $PATH to find it.

The patch has been submited upstream as well, so hopefully it won't be
needed anymore upon the new version release.

Original patch by: Oleg Girko <ol+mer@infoserver.ru>

Signed-off-by: Juha Kallioinen <juha.kallioinen@jollamobile.com>
Add patch to fix error message for unsupported target

This error message now instructs to edit the correct file
to add support for new target.

The patch has been submited upstream as well, so hopefully it won't be
needed anymore upon the new version release.

Original patch by: Oleg Girko <ol+mer@infoserver.ru>

Signed-off-by: Juha Kallioinen <juha.kallioinen@jollamobile.com>
Accelerate compression utils

Add /usr/bin/cpio, xz, zip to accelerated programs

Signed-off-by: Juha Kallioinen <juha.kallioinen@jollamobile.com>
Add postprocessing for name parameter of opendir() and __opendir2()

This postprocessing is needed to add mapping between directory name
and directory descriptor to fdpathdb. This is necessary in common
scenario when directory is listed with readdir(), and files inside it
are being open with openat().

The patch has been submited upstream as well, so hopefully it won't be
needed anymore upon the new version release.

Original patch by: Oleg Girko <ol+mer@infoserver.ru>

Signed-off-by: Juha Kallioinen <juha.kallioinen@jollamobile.com>