Add errno=0 before call.