From owner-freebsd-emulation@FreeBSD.ORG Mon Nov 23 17:54:09 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 6CC56106566B for ; Mon, 23 Nov 2009 17:54:09 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from smtp.vzavenue.net (smtp.vzavenue.net [66.171.59.140]) by mx1.freebsd.org (Postfix) with ESMTP id 23DC18FC0A for ; Mon, 23 Nov 2009 17:54:09 +0000 (UTC) Received: from 153.78.171.66.subscriber.vzavenue.net (HELO homobox.opal.com) ([66.171.78.153]) by smtp.vzavenue.net with ESMTP; 23 Nov 2009 12:54:07 -0500 X-REPUTATION: None X-REMOTE-IP: 66.171.78.153 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsEACpPCktCq06Z/2dsb2JhbACBTdVkgkWBdwQ X-IronPort-AV: i="4.47,273,1257138000"; d="asc'?scan'208"; a="211635334:sNHT23147766" Received: from opal.com (localhost [IPv6:::1]) (authenticated bits=0) by homobox.opal.com (8.14.3/8.14.3) with ESMTP id nANHs7Mm035802 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Nov 2009 12:54:07 -0500 (EST) (envelope-from fbsd@opal.com) Received: from shibato.opal.com ([2001:5c0:1100:f103:221:63ff:fe5a:c9a7] helo=shibato.opal.com) with IPv6:587 by opal.com; 23 Nov 2009 12:54:07 -0500 Date: Mon, 23 Nov 2009 12:54:03 -0500 From: "J.R. Oldroyd" To: Alexander Leidinger Message-ID: <20091123125403.20e3a63e@shibato.opal.com> In-Reply-To: <20091123144251.11055vw9sv236voc@webmail.leidinger.net> References: <20091119153159.610debc2@shibato.opal.com> <20091120103535.815072bwgvis0io0@webmail.leidinger.net> <20091120103622.0db845c8@shibato.opal.com> <20091123144251.11055vw9sv236voc@webmail.leidinger.net> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; amd64-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/SB80BDRxSeUVz6gZtTJcd.K"; protocol="application/pgp-signature" 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 17:54:09 -0000 --Sig_/SB80BDRxSeUVz6gZtTJcd.K Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 23 Nov 2009 14:42:51 +0100, Alexander Leidinger wrote: > > Quoting "J.R. Oldroyd" (from Fri, 20 Nov 2009 10:36:22 -0= 500): >=20 > [videodev.h] >=20 > > There is indeed no license in this file. >=20 > And this fact makes it a little bit hard to import into FreeBSD, at =20 > least for a person like me with not so much knowledge about =20 > copyright/license stuff. Someone out there (@FreeBSD.org) who is =20 > willing to put some official weight into this issue? >=20 I would also like to hear from someone more into license issues about this. It would be best to keep the identical file, if possible, to avoid possible divergence problems. However, if needed, I could generate a new file, e.g., linux_videodev_compat.h, that contains just the required #defines but using structure templates that are size compatible. I could determine the sizes using a program such as you describe below. But first... any license folk care to comment on this? > [structure compatibility between i386 and amd64] >=20 > I've seen the use of non-fixed size variables (e.g. int). It would be =20 > better to verify that they are the same size. Can you please write a =20 > little program which includes the header and prints out the size of =20 > all structures. This way we can run it on amd64 and i386 and compare. >=20 Such a program may be useful for the above reason, but I believe it is already established that the structures are compatible between the two platforms. My test app is the net/skype port which installs: /usr/local/share/skype/skype: ELF 32-bit LSB executable, Intel 80386, versi= on 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. -jr --Sig_/SB80BDRxSeUVz6gZtTJcd.K Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAksKzDsACgkQls33urr0k4luKwCfePoJbZE9q9ypYZahqfwpipWi ocIAn3K9CGGXNAzjpKiv/wAruHCCCSRY =QG1U -----END PGP SIGNATURE----- --Sig_/SB80BDRxSeUVz6gZtTJcd.K--