Re: ioctl: No space left on device



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]