save/restore errno where applicable
1 file changed