Re: comedi_perror()

On Sat, Feb 15, 2003 at 03:12:02PM -0600, Frank Mori Hess wrote:
> It seems to me comedi_perror() usually doesn't work.  For example, if you try 
> to run the outp demo on a subdevice that doesn't support output, the 
> comedi_perror() call will report success instead of the EINVAL message.  From 
> briefly looking at the error code, it seems like libc_error() (or some 
> function that sets __comedi_errno according to the value of errno) needs to 
> be called after every ioctl that returns an error.  So, we I guess we would 
> want to start using a wrapper function named something like comedi_ioctl() 
> that does this?

Something like the existing comedi_ioctl() wrapper function? :)
Feel free to fix it.  Right now, it #defined to be ioctl().



dave...

Received on 2003-02-16Z03:15:04