Re: ioctl: No space left on device
- From: Daniel Drake <dsd gentoo org>
- To: Robert Love <rml novell com>
- Cc: dashboard-hackers gnome org
- Subject: Re: ioctl: No space left on device
- Date: Wed, 22 Jun 2005 23:52:54 +0100
Robert Love wrote:
> Nice!
>
> I'd put the perror() first. I think it reads better in the EFAULT case
> but, more importantly, you could be reading errno from fprintf() if you
> call it after.
Hmm, I went for the way I did because perror seems to modify it!
(it reads 28 == ENOSPC before perror, and 29 after...?!?).
Anyway, your point is valid, so I guess we'll just take a copy of errno before
messing around with error messages.
Thanks,
Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]