Re: Inappropriate ioctl for device

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: dieterbsd
Date: Friday, December 24, 2010 - 11:47 am

> and I'm calling it here:

You should only call perror if ioctl returned -1.
Try:

len = ioctl(cd, 0);
if (len == -1)
   {
      perror("ioctl");
   }


_______________________________________________
freebsd-drivers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-drivers
To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Inappropriate ioctl for device, dieterbsd, (Fri Dec 24, 11:47 am)