From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 18 19:30:04 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9E86AA26 for ; Mon, 18 Feb 2013 19:30:04 +0000 (UTC) (envelope-from info@martinlaabs.de) Received: from relay03.alfahosting-server.de (relay03.alfahosting-server.de [109.237.142.239]) by mx1.freebsd.org (Postfix) with ESMTP id 5F6B414B for ; Mon, 18 Feb 2013 19:30:01 +0000 (UTC) Received: by relay03.alfahosting-server.de (Postfix, from userid 1001) id 7F99932E027E; Mon, 18 Feb 2013 20:30:00 +0100 (CET) X-Spam-DCC: : X-Spam-Level: X-Spam-Status: No, score=-0.2 required=7.0 tests=BAYES_40 autolearn=disabled version=3.2.5 Received: from alfa3018.alfahosting-server.de (alfa3018.alfahosting-server.de [109.237.140.30]) by relay03.alfahosting-server.de (Postfix) with ESMTP id A72B432E0255 for ; Mon, 18 Feb 2013 20:29:56 +0100 (CET) Received: from pc.martinlaabs.de (p54B34931.dip.t-dialin.net [84.179.73.49]) by alfa3018.alfahosting-server.de (Postfix) with ESMTPSA id 6EB97515D3E2 for ; Mon, 18 Feb 2013 20:29:56 +0100 (CET) Message-ID: <51228132.7090808@martinlaabs.de> Date: Mon, 18 Feb 2013 20:29:54 +0100 From: Martin Laabs User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: Re: Adding a linux ioctl translation References: <512225F7.8030904@martinlaabs.de> In-Reply-To: <512225F7.8030904@martinlaabs.de> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.4 with ClamAV 0.97.3/16694/Mon Feb 18 18:35:45 2013 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2013 19:30:04 -0000 Hi, I solved the problem. The handler did a switch(...) on the lower 16bit of the cmd but the cmd value was still the long one so adding a & 0xffff solved the problem. Thank you, Martin