From owner-freebsd-emulation@FreeBSD.ORG Tue Nov 24 08:12: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 DA086106566C for ; Tue, 24 Nov 2009 08:12:02 +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 809568FC0A for ; Tue, 24 Nov 2009 08:12:02 +0000 (UTC) Received: from outgoing.leidinger.net (pD9E2ED7D.dip.t-dialin.net [217.226.237.125]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id E51C1844C2D; Tue, 24 Nov 2009 09:11:55 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 842D8292CD9; Tue, 24 Nov 2009 09:11:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1259050312; bh=hllaSKiivUvESY8ZQer7wCNk9exM8aKytP9Lt8nm1Uk=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=muF66YHUjfHaiY5jlUr1roW+CbUmweQhwidEJ4j3ECGb5DN1o4UbmhW4GMZZLjSSf 4gE8CbKpn+8yXZyvkNd9einPSS6bkvqZB7LFLuxQ1hUcYa5eX8Wmf4CQ0yx7BkrtgI hRXl0TjWP/fJ8Z6BYaB0BAZevBvOQi2yJGPNBeTYDg6sf/FHdCllXEp4m8KFmCopal IoatXqRL1myZUk/LiW/C4IDEKJEsaiHl8SF8M9Dx+4SDJszcaq5tskZQbkQQmFSbsB H1SQtk1RS6bZPabHVIgy/PhHnLJ5yUBCP8oiqk3dQjeJ61a+dg5VuL9+B52RW5ahfB dbrUQLITMosDQ== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id nAO8Bp4U066179; Tue, 24 Nov 2009 09:11:51 +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; Tue, 24 Nov 2009 09:11:51 +0100 Message-ID: <20091124091151.12733pwkk9ha1yyo@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 24 Nov 2009 09:11: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> <20091123144251.11055vw9sv236voc@webmail.leidinger.net> <20091123125403.20e3a63e@shibato.opal.com> In-Reply-To: <20091123125403.20e3a63e@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: E51C1844C2D.47885 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.44, required 6, autolearn=disabled, ALL_TRUSTED -1.44, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1259655117.10626@hQFdAwxciDJ3wzQ1ixXnOw 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: Tue, 24 Nov 2009 08:12:03 -0000 Quoting "J.R. Oldroyd" (from Mon, 23 Nov 2009 12:54:03 -0500): > My test app is the net/skype port which installs: > /usr/local/share/skype/skype: ELF 32-bit LSB executable, Intel > 80386, version 1 (GNU/Linux), dynamically linked (uses shared libs), > for GNU/Linux 2.4.1, stripped > > I am running this on an amd64 with the code using the same > videodev.h. The video is working. Ergo, the structures appear > to be compatible. Your "appear" is the right word. Licensing issues aside (I try to get someone to have a look at it), I would import the code as is because of this and try to fix possible edge cases afterwards. The point is, we do not really know how much of the structure is used. It may be the case that the structure is partly compatible (and skype only uses this part), or compatible by accident (automatic padding by the compiler). With the right program (printing total size, ofsset of members, and size of memebers), you can detect both and take appropriate action. Bye, Alexander. -- nc(1) (or netcat) is useful not only for redirecting input/output to TCP or UDP connections, but also for proxying them with inetd(8). http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137