David Nicholas Kayal wrote (on Oct 27):
> int main()
> {
>   int fd;
>   while(1)
>     {
>       ioctl(fd, PPISDATA, 255);
>     }
> }

Doesn't "fd" normally need to have a value, such as that of a valid
descriptor before you ioctl() it?  Like:

        fd = open("/dev/ppi0", O_RDWR);

Chris.
-- 
== [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to