From owner-freebsd-hackers Sun Oct 27 14: 9:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A390B37B401 for ; Sun, 27 Oct 2002 14:09:49 -0800 (PST) Received: from vorbis.noc.easynet.net (vorbis.noc.easynet.net [195.40.1.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B94C43E6E for ; Sun, 27 Oct 2002 14:09:49 -0800 (PST) (envelope-from chrisy@vorbis.noc.easynet.net) Received: from chrisy by vorbis.noc.easynet.net with local (Exim 3.36 #1) id 185vbE-000EDO-00; Sun, 27 Oct 2002 22:09:36 +0000 Date: Sun, 27 Oct 2002 22:09:36 +0000 From: Chrisy Luke To: David Nicholas Kayal Cc: freebsd-hackers@freebsd.org Subject: Re: Show me the light Message-ID: <20021027220936.GA41450@flix.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: The Flirble Internet Exchange X-URL: http://www.flix.net/ X-FTP: ftp://ftp.flirble.org/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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