enforcing errno checking.