libc error (comedilib-0.7.20)

Hi,

I'm receiving the error message "libc error: Invalid argument" when
using the function comedi_open with comedilib-0.7.20 (0.7.19 works
fine). I've tried both comedi-0.7.66 and comedi-cvs.

The function itself doesn't fail, and everything works. It seems that
the new function _comedi_ioctl with the error message is causing this.

Since the call to comedi_ioctl can fail inside do_test_for_insnlist
(when opening the device), but that's ok, this message is printed, when
actually no "error" really occurred.

If this is right, and ioctls failing are fine in other parts of the
code, maybe _comedi_ioctl should not check the return value, but just
pass it to the routine that will know what it means. Just a suggestion.
I don't know if this is the best way to fix this.

I'm using the driver ni_pcimio (board pci-6033e).

Regards,

Vitor.

Received on 2003-07-30Z14:52:07