From owner-freebsd-emulation@freebsd.org Thu Sep 15 11:38:10 2016 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61BFCBD924C for ; Thu, 15 Sep 2016 11:38:10 +0000 (UTC) (envelope-from erik+lists@cederstrand.dk) Received: from mailrelay8.public.one.com (mailrelay8.public.one.com [91.198.169.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AD858356 for ; Thu, 15 Sep 2016 11:38:09 +0000 (UTC) (envelope-from erik+lists@cederstrand.dk) X-HalOne-Cookie: 265de3e60c1d0587aa4594a83cc89eb420393025 X-HalOne-ID: de526819-7b38-11e6-846b-b82a72cffc46 Received: from [10.0.1.3] (unknown [217.157.7.215]) by smtpfilter4.public.one.com (Halon Mail Gateway) with ESMTPSA for ; Thu, 15 Sep 2016 11:38:05 +0000 (UTC) From: Erik Cederstrand Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: ioctl Message-Id: <57CB0DA6-8579-413D-BE80-73377B6BE12A@cederstrand.dk> Date: Thu, 15 Sep 2016 13:38:05 +0200 To: freebsd-emulation@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 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: Thu, 15 Sep 2016 11:38:10 -0000 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