clear errno before syscall