From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 25 03:55:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FE7B16A4CE for ; Wed, 25 Aug 2004 03:55:46 +0000 (GMT) Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing.us4.outblaze.com [205.158.62.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF9D943D6A for ; Wed, 25 Aug 2004 03:55:45 +0000 (GMT) (envelope-from mark.manning@fastermail.com) Received: from wfilter.us4.outblaze.com (wfilter.us4.outblaze.com [205.158.62.180])1BDCC18011FE for ; Wed, 25 Aug 2004 03:55:45 +0000 (GMT) X-OB-Received: from unknown (205.158.62.132) by wfilter.us4.outblaze.com; 25 Aug 2004 03:55:44 -0000 Received: by ws5-2.us4.outblaze.com (Postfix, from userid 1001) id E65FC4160A1; Wed, 25 Aug 2004 03:55:44 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from [216.110.82.59] by ws5-2.us4.outblaze.com with http for mark.manning@fastermail.com; Tue, 24 Aug 2004 22:55:44 -0500 From: "mark manning" To: hackers@freebsd.org Date: Tue, 24 Aug 2004 22:55:44 -0500 X-Originating-Ip: 216.110.82.59 X-Originating-Server: ws5-2.us4.outblaze.com Message-Id: <20040825035544.E65FC4160A1@ws5-2.us4.outblaze.com> X-Mailman-Approved-At: Wed, 25 Aug 2004 11:58:39 +0000 cc: samy@kerneled.org Subject: Problems with tiocget/seta X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 03:55:46 -0000 Some background... For the past three years I have been developing a Forth compiler for Linux. The kernel to my compiler is written in 100% pure assembler using NASM. The object code produced is almost identical to what the Forth compiler itself would produce were it were used to compile its own sources (some day). I accomplish this via liberal use of NASM macros. All I/O etc is accomplished using Linux syscalls, no external libraries are referenced. Linux is my BIOS :) The problem... I consider Isforth to be a worthy project, worthy enough to be ported to other processors and other operating systems. The PPC port is being done by a friend of mine and is almost complete. The FreeBSD port has been "nearly complete" for about EIGHT months. I am currenty at a complete loss as to how to fix the problem (even though i think i know what it is!) :/ One of the things that my compiler has to do is switch stdin out of canoniacal mode and switch off echo. In Linux the ioctl is working - in fbsd its not. Im almost posative that i am passing correct values to the syscall yet stdin is still buffered after the call and is still echoing. I would truely love to get this up and running in FBSD but am in dire need of help. Im told that if anyone can help me YOU guys can (blame samy for getting you into this :)... My Linux project page is at isforth.clss.net and I have posted the fbsd sources to... http://isforth.clss.net/isforth-1.15b-fbsd.tgz ...The relavant sources would be the syscalls.1 file and the bottom two or three functions in the io.1 file (if anyone asks why i used .1 its on my web page but these file extensions will disappear once im metacompiling :) These two files can be found in the src/kernel subdirectory (extracting the tgz creats a directory for all files as it should) Thanx in advance... Mark I Manning IV (aka I440r in #forth on irc.freenode.net) If you sit down at a poker game and don't see a sucker..... Get UP! You're the sucker! -- _______________________________________________ Get your free email from http://fastermail.com Powered by Outblaze