Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2002 22:09:36 +0000
From:      Chrisy Luke <chrisy@flix.net>
To:        David Nicholas Kayal <davek@saturn5.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Show me the light
Message-ID:  <20021027220936.GA41450@flix.net>
In-Reply-To: <Pine.BSF.4.44.0210271319360.709-100000@blackbox.yayproductions.com>
References:  <Pine.BSF.4.44.0210271319360.709-100000@blackbox.yayproductions.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
-- 
== chrisy@flix.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021027220936.GA41450>