Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 2009 12:54:03 -0500
From:      "J.R. Oldroyd" <fbsd@opal.com>
To:        Alexander Leidinger <Alexander@leidinger.net>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: Emulation of Linux V4L ioctls
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <Alexander@leidinge=
r.net> wrote:
>
> Quoting "J.R. Oldroyd" <fbsd@opal.com> (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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091123125403.20e3a63e>