treewide: implement errno's

Signed-off-by: Levente Kurusa <levex@linux.com>