From owner-freebsd-emulation Mon Nov 12 9:39: 7 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id BD5DE37B405 for ; Mon, 12 Nov 2001 09:39:01 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 3977814C2E; Mon, 12 Nov 2001 18:39:00 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Takanori Saneto Cc: emulation@FreeBSD.ORG Subject: Re: Linuxulator MFC and VMware References: <20011107234409.XACFC0A8274C.C78F0C8A@mail.biglobe.ne.jp> <200111110554.fAB5slK11221@muse.sanewo.dyn.to> <200111120122.fAC1MCe07028@muse.sanewo.dyn.to> From: Dag-Erling Smorgrav Date: 12 Nov 2001 18:38:59 +0100 In-Reply-To: <200111120122.fAC1MCe07028@muse.sanewo.dyn.to> Message-ID: Lines: 19 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Takanori Saneto writes: > Hmm, maybe I'm missing something, but when linux application does an > ioctl(SIOCGIFFLAGS) over non-socket fd, linux_ioctl_socket is invoked > directly from linux_ioctl(), isn't it? Yes. > Should linux_ioctl_socket() return ENOIOCTL for non-socket fd and the > range of ioctls for linux_ioctl_private() be expanded to cover > SIOCGIFFLAGS, maybe? No, linux_ioctl_socket() should return ENOTTY if the fd is not a socket, unless the requested command is SIOCGIFFLAGS or SIOCSIFFLAGS, in which case it should pass on the request to ioctl(), the way linux_ioctl_private() does. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message