Removed reset errno macro after consideration that it is, in all likelyhood, a very bad idea.