fbarray: fix errno values returned from functions