Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2016 10:40:06 +0200
From:      Erik Cederstrand <erik@cederstrand.dk>
To:        freebsd-emulation@freebsd.org
Subject:   ioctl
Message-ID:  <1B155F49-2C87-49A0-B08A-17849C86CC48@cederstrand.dk>

next in thread | raw e-mail | index | archive | help

--Apple-Mail=_649EBD2E-3720-40E4-9D13-95FE3347229D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi folks,

I managed to get a 64-bit Oracle instantclient running under 64-bit =
Linux so I can connect to an Oracle database using the Oracle client =
"sqlplus".

Now, whenever I run sqlplus, I get this message in /var/log/messages:

   kernel: linux: pid 92000 (sqlplus): ioctl fd=3D3, cmd=3D0x1268 =
('',104) is not implemented

0x1268 is BLKSSZGET according to linux_ioctl.h.

The message is harmless as sqlplus seems to be working correctly, but I =
would like to get rid of it and learn new things along the way.

I think the message comes from this code: =
https://github.com/freebsd/freebsd/blob/master/sys/compat/linux/linux_ioct=
l.c#L3606

Apparently, the Linux compat code does not implement the ioctl() system =
call at all. Is this a deliberate choice? I have no idea how this code =
works, or the security implications of changing it, but it seems like a =
minor change to forward linux_ioctl_args to FreeBSD ioctl()?

Erik


--Apple-Mail=_649EBD2E-3720-40E4-9D13-95FE3347229D
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJX2l5mAAoJEFWwJk18WUOGzcAQAI51AtYmIXnD8WDFJF2qXuxq
XdrhHrfvsoiR46TSNHHTfEq7ce1NXUjhY0H/KTz4m1B/aj8i1kboneN1/ptB4EzX
8fUJh+8VBp2W8Rn9FrAuHtalHNhLpxvmut6g+G7II8bIFyOW2T2j8rs8j/h7ACzU
DusZFCGRo5jhQPtG9Tgzlntl284bQq6Vt5xrMK40VA2bStgYtl31gOOR4gf+Eves
Dy7F4KnpQxOE3FnG3Ef7/EPQLh6hty/keIy5hsKDKyj+wx/M5QsDJZIGejp2/D72
AP4v4uGDE0AtgmNmbxtj0Vgs99rhFHGVT2yQJYTlstHhMfWAysmZKpjKS4PQ5B7+
j6xX06rUxT4o1f519aVCw6TQZkX3SR8vK7u2m546ZDVi8ixSM/23LOsNU95lQEKy
cxfHKT7dND+uTmqYGNpt7A1AAE3nhKxldknHReXFyW/K1idcuoFA+/OUaZ6BRkgw
fNqiolF8vX46ThPuEd5uXmwZOM1aeiFzYEvGo66gM/8HUk6w7AYsY++UThtvv02l
of+6aojCZLN5i5GA9IjndHhrT0YhL12koTuFMKQNihwue6c6edRtoZWd5Ryf+xT+
lnIBqZ9AF+sclWLg10mwl9/J77ZrokzMgsRZwEtjNwN0Yz/Amu73nb0TicNq582s
cwvSVE52pi9ciNRWXd14
=nZ/D
-----END PGP SIGNATURE-----

--Apple-Mail=_649EBD2E-3720-40E4-9D13-95FE3347229D--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1B155F49-2C87-49A0-B08A-17849C86CC48>