From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 25 14:26:31 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 66BC016A4CE for ; Wed, 25 Aug 2004 14:26:31 +0000 (GMT) Received: from n33.kp.t-systems-sfr.com (n33.kp.t-systems-sfr.com [129.247.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8602743D46 for ; Wed, 25 Aug 2004 14:26:30 +0000 (GMT) (envelope-from harti@freebsd.org) Received: from n81.sp.op.dlr.de (n81g.sp.op.dlr.de [129.247.163.1]) i7PEQS239874; Wed, 25 Aug 2004 16:26:29 +0200 Received: from zeus.nt.op.dlr.de (zeus.nt.op.dlr.de [129.247.173.3]) i7PEQSI104204; Wed, 25 Aug 2004 16:26:28 +0200 Received: from beagle.kn.op.dlr.de (opkndnwsbsd178 [129.247.173.178]) by zeus.nt.op.dlr.de (8.11.7+Sun/8.9.1) with ESMTP id i7PEQRe07933; Wed, 25 Aug 2004 16:26:27 +0200 (MET DST) Date: Wed, 25 Aug 2004 16:26:29 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt@beagle.kn.op.dlr.de To: gerarra@tin.it In-Reply-To: <411972290000B0FD@ims3a.cp.tin.it> Message-ID: <20040825162539.N553@beagle.kn.op.dlr.de> References: <411972290000B0FD@ims3a.cp.tin.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-hackers@freebsd.org Subject: RE: Problems with tiocget/seta X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Harti Brandt 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 14:26:31 -0000 On Wed, 25 Aug 2004 gerarra@tin.it wrote: > >> >> >> 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. > > have you get a look to freebsd ioctl request codes? they differ from Linux > and FreeBSD. > >> 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 :)... > > If you don't find a solution giving a look to tcsetattr(3) implementation > for FreeBSD could be a good idea. Especially cfmakeraw(). harti