From owner-freebsd-stable Tue May 14 23:22: 3 2002 Delivered-To: freebsd-stable@freebsd.org Received: from cse.cs.huji.ac.il (cse.cs.huji.ac.il [132.65.16.30]) by hub.freebsd.org (Postfix) with ESMTP id 5981837B401 for ; Tue, 14 May 2002 23:21:56 -0700 (PDT) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cse.cs.huji.ac.il with esmtp id 177sAc-0006c6-00 for freebsd-stable@freebsd.org; Wed, 15 May 2002 09:21:55 +0300 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: freebsd-stable@freebsd.org Subject: Re: matlab6 & /dev/ptmx In-reply-to: Your message of Tue, 14 May 2002 18:16:20 +0200 (MET DST) . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 15 May 2002 09:21:54 +0300 From: Danny Braniss Message-Id: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [...] > You can LD_PRELOAD a library that replaces open() and catches > the open("/dev/ptmx") special case, then does a BSD opentty() > and returns the file descriptor of the tty. (Of course you'll > have to compile this library on Linux for the LD_PRELOADing to > work, and modify the Matlab startup script to set LD_PRELOAD > right before it exec's the binary. That makes it a bit more of a > hassle). > > A colleague of mine has written a small library to do this. > For a short period of time, you can find it at this address: > > http://www.math.ntnu.no/~perhov/public/tmp/fake_ptmx/ > > Btw: Matlab 6.1 seems to work better than 6.0 in this respect, > as no LD_PRELOADing is necessary. thanks!, danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message