[PATCH openEuler-22.09 v2 236/391] libbpf: Restore errno return for functions that were already returning it