From owner-freebsd-sparc64@FreeBSD.ORG Fri Oct 8 13:05:32 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B40D16A4CE for ; Fri, 8 Oct 2004 13:05:32 +0000 (GMT) Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing.us4.outblaze.com [205.158.62.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39D3043D49 for ; Fri, 8 Oct 2004 13:05:32 +0000 (GMT) (envelope-from dhaigh@mail.com) Received: from wfilter.us4.outblaze.com (wfilter.us4.outblaze.com [205.158.62.180])7DCE818015A2 for ; Fri, 8 Oct 2004 13:05:25 +0000 (GMT) X-OB-Received: from unknown (205.158.62.178) by wfilter.us4.outblaze.com; 8 Oct 2004 13:05:21 -0000 Received: by ws1-14.us4.outblaze.com (Postfix, from userid 1001) id 4E449790052; Fri, 8 Oct 2004 13:05:21 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from [24.74.161.172] by ws1-14.us4.outblaze.com with http for dhaigh@mail.com; Fri, 08 Oct 2004 08:05:21 -0500 From: "Doug Haigh" To: freebsd-sparc64@freebsd.org Date: Fri, 08 Oct 2004 08:05:21 -0500 X-Originating-Ip: 24.74.161.172 X-Originating-Server: ws1-14.us4.outblaze.com Message-Id: <20041008130521.4E449790052@ws1-14.us4.outblaze.com> Subject: Re: ioctl switch statement weirdness X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2004 13:05:32 -0000 It appears my problem had nothing to do with the driver code. I have a IOCTL test program that was common for Linux, FreeBSd, and Solaris. All of the other OSes' ioctl command value is an int, but under FreeBSD it is a u_long. The value was being changed by the ioctl call instead of something in my driver. -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm