From owner-freebsd-emulation@FreeBSD.ORG Mon Nov 23 13:43:02 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE6611065670 for ; Mon, 23 Nov 2009 13:43:01 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 941BB8FC17 for ; Mon, 23 Nov 2009 13:43:01 +0000 (UTC) Received: from outgoing.leidinger.net (pD9E2C01E.dip.t-dialin.net [217.226.192.30]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 1B5EB84409A; Mon, 23 Nov 2009 14:42:56 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id BEE8612DE35; Mon, 23 Nov 2009 14:42:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1258983772; bh=+MBMq+PTDgy1EYXRR2l8HIajVrO4MEAioCv2NErFXwk=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=XJdsE8nohDk7HtdPnXMxzzhrXP1JJKvt5qybop0nFfWmCH5mtrPtvOybC4DMr0yX+ gwLKCUHclT83OSLLDbO4CkuWmoUBXXRV4AZhMAe7xbhwhUWAeV7oaq60A7vQt6KJJT AxiAOsNeTGiZi+nbbbc70oqPmPtYX1uBZNDHIcZYSgeUYLPKFZy5NWNZWg13UhIN2v qyQDHcdQT7Z7zkspq8gBv6ZnxZ+ptGzzhc+oyMpznqVl3HEBSUITHLIoSqAe9s4C2R 4KIIjjtIzAVm8IhXjXcG3nPRMJ3PHZNyibogDSbQnSI1bVmswAu60f7nrvjxLTuudq cybUagJfPnkkA== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id nANDgq0b010387; Mon, 23 Nov 2009 14:42:52 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Mon, 23 Nov 2009 14:42:51 +0100 Message-ID: <20091123144251.11055vw9sv236voc@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 23 Nov 2009 14:42:51 +0100 From: Alexander Leidinger To: "J.R. Oldroyd" References: <20091119153159.610debc2@shibato.opal.com> <20091120103535.815072bwgvis0io0@webmail.leidinger.net> <20091120103622.0db845c8@shibato.opal.com> In-Reply-To: <20091120103622.0db845c8@shibato.opal.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.5) / FreeBSD-8.0 X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 1B5EB84409A.0125E X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.363, required 6, autolearn=disabled, ALL_TRUSTED -1.44, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, TW_WC 0.08) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1259588576.65379@CkeVRMnUPmD3lOTKeN8J7w X-EBL-Spam-Status: No Cc: freebsd-emulation@freebsd.org Subject: Re: Emulation of Linux V4L ioctls X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Nov 2009 13:43:02 -0000 Quoting "J.R. Oldroyd" (from Fri, 20 Nov 2009 10:36:22 -0500): > On Fri, 20 Nov 2009 10:35:35 +0100, Alexander Leidinger > wrote: >> >> Some things I noticed and worry about: >> - videodev.h does not have a license, did you generate it >> yourself or did you take it from somewhere? >> - Does it needs to be named videodev.h, or can it also be >> linux_videodev.h? >> (if we may want to install this header at some point in time, >> it should have a name compatible with linux, else we should >> maybe add a linux_ prefix for consistence and for making it >> very obvious what we are talking about) >> - Why are you using __s32 and so on instead of the normal >> fixed size int types? We also have lint for "linux int" >> and so on in other files. > > This header is the same as the one used on Linux. In fact, I > took this file from our pwcbsd driver, but it can also be found > by googling for videodev.h which reveals it is > /usr/include/linux/videodev.h > on Linux 2.6 systems. > There is indeed no license in this file. And this fact makes it a little bit hard to import into FreeBSD, at least for a person like me with not so much knowledge about copyright/license stuff. Someone out there (@FreeBSD.org) who is willing to put some official weight into this issue? > The use of __s32 etc is because I used this file unchanged. > - On which architecture has this been tested? > - Will it run in linux32 emulation on amd64? > Yes. I did this work on an amd64, in fact. > - Are those structures known in userland (and as such need to > have a specific size)? If yes, do they have different sizes > in linux depending if the kernel is a 64bit kernel (amd64) > or 32bit kernel (x86)? > They are used in userland. Given the header's use of __s32 > etc, it looks to me like the structures have the same size > on both x86 and amd64. I've seen the use of non-fixed size variables (e.g. int). It would be better to verify that they are the same size. Can you please write a little program which includes the header and prints out the size of all structures. This way we can run it on amd64 and i386 and compare. Bye, Alexander. -- Those of you who think you know everything are very annoying to those of us who do. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137