Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 1997 17:56:12 +0930
From:      Mike Smith <mike@smith.net.au>
To:        Christoph Kukulies <kuku@gilberto.physik.RWTH-Aachen.DE>
Cc:        freebsd-emulation@FreeBSD.ORG
Subject:   Re: some observations with xmaple (Maple V4 R5, Linux version) 
Message-ID:  <199710150826.RAA02352@word.smith.net.au>
In-Reply-To: Your message of "Wed, 15 Oct 1997 09:19:37 %2B0200." <199710150719.JAA10735@gil.physik.rwth-aachen.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
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--





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