Safe and reset errno so that errno isn't set to ENOSYS in the first