make errno work both ways