From owner-freebsd-emulation Wed Oct 15 01:29:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA28920 for emulation-outgoing; Wed, 15 Oct 1997 01:29:28 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (vh1.gsoft.com.au [203.38.152.122]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA28915 for ; Wed, 15 Oct 1997 01:29:24 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost.gsoft.com.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id RAA02352; Wed, 15 Oct 1997 17:56:14 +0930 (CST) Message-Id: <199710150826.RAA02352@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Christoph Kukulies cc: freebsd-emulation@FreeBSD.ORG Subject: Re: some observations with xmaple (Maple V4 R5, Linux version) In-reply-to: Your message of "Wed, 15 Oct 1997 09:19:37 +0200." <199710150719.JAA10735@gil.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_-5162419000" Date: Wed, 15 Oct 1997 17:56:12 +0930 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk This is a multipart MIME message. --==_Exmh_-5162419000 Content-Type: text/plain; charset=us-ascii > > When running xmaple (Maple V4 R5, the Linux version - there ain't > a FreeBSD one), to things seem strange : > > When I set the DISPLAY variable to a remote host the program > just seg faults (segmentation violation) and dies. It shouldn't IMO. Obviously. What sort of remote display are you trying to use? > Running the non GUI version (maple) it comes up fine but (since I didn't > know how to quit) when I send it the Quit signal (^\) it comes with > > LINUX: 'ioctl' fd=0, typ=0x54(T), num=0x12 not implemented > > and finally core dumps and quits through the FreeBSD signal mechanism. That's TIOCSTI, "simulate terminal input" on standard in. It looks like a fairly disgusting hack to me (ie. simulate terminal input rather than communicate with the parser directly). Could you apply this to /sys/i386/linux/linux_ioctl.c and see if it appears to work? If so, I'll commit it. --==_Exmh_-5162419000 Content-Type: text/plain; name="linux_ioctl.c.diff"; charset=us-ascii Content-Description: linux_ioctl.c.diff Content-Disposition: attachment; filename="linux_ioctl.c.diff" Index: linux_ioctl.c =================================================================== RCS file: /local3/ncvs/src/sys/i386/linux/linux_ioctl.c,v retrieving revision 1.20 diff -u -r1.20 linux_ioctl.c --- linux_ioctl.c 1997/07/20 16:05:59 1.20 +++ linux_ioctl.c 1997/10/15 08:28:27 @@ -519,6 +519,10 @@ args->cmd = TIOCSPGRP; return ioctl(p, (struct ioctl_args *)args, retval); + case LINUX_TIOCSTI: + args->cmd = TIOCSTI; + return ioctl(p, (struct ioctl_args *)args, retval); + case LINUX_TIOCGWINSZ: args->cmd = TIOCGWINSZ; return ioctl(p, (struct ioctl_args *)args, retval); --==_Exmh_-5162419000--