From owner-freebsd-stable Thu May 16 1:24: 2 2002 Delivered-To: freebsd-stable@freebsd.org Received: from wit379119.student.utwente.nl (wit379119.student.utwente.nl [130.89.165.196]) by hub.freebsd.org (Postfix) with ESMTP id D741D37B407 for ; Thu, 16 May 2002 01:23:54 -0700 (PDT) Received: by wit379119.student.utwente.nl (Postfix, from userid 1000) id 930A4544E; Thu, 16 May 2002 10:23:53 +0200 (CEST) Date: Thu, 16 May 2002 10:23:53 +0200 From: Niek Bergboer To: freebsd-stable@freebsd.org Subject: Re: matlab6 & /dev/ptmx Message-ID: <20020516102353.A82348@wit379119.student.utwente.nl> Reply-To: niek@bergboer.net References: <20020514142128.O57972@wit379119.student.utwente.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.22.1i 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 On Tue, May 14, 2002 at 06:16:20PM +0200, Per Kristian Hove wrote: > You can LD_PRELOAD a library that replaces open() and catches > the open("/dev/ptmx") special case, then does a BSD opentty() > [...] > > 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/ This doesn't compile under BSD as /usr/include/asm/unistd.h doesn't exist. The fake_ptmx.c file seems to use an __NR_open variable that is defined in this asm/unistd.h file. Any workarounds, Per? Regards, Niek -- "Those who dream by day are cognizant of many things which escape those who dream only by night." Edgar Allan Poe PGP public key at http://www.bergboer.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message