Re: ioctl: No space left on device



On Wed, 2005-06-22 at 22:49 +0100, Daniel Drake wrote:

> Pick a better one from `man errno` ? :)
> 
> Actually, something like the attached might be useful.

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.

	Robert Love





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]