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