From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 2 21:35:07 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BA3B106564A for ; Tue, 2 Dec 2008 21:35:07 +0000 (UTC) (envelope-from rdivacky@lev.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id 4D6358FC19 for ; Tue, 2 Dec 2008 21:35:06 +0000 (UTC) (envelope-from rdivacky@lev.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id EE9419CB27A; Tue, 2 Dec 2008 22:30:33 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JPh6SfVoqzLj; Tue, 2 Dec 2008 22:30:21 +0100 (CET) Received: from lev.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id C4A5A9CB525; Tue, 2 Dec 2008 22:30:21 +0100 (CET) Received: (from rdivacky@localhost) by lev.vlakno.cz (8.14.2/8.14.2/Submit) id mB2LULoU015134; Tue, 2 Dec 2008 22:30:21 +0100 (CET) (envelope-from rdivacky) Date: Tue, 2 Dec 2008 22:30:21 +0100 From: Roman Divacky To: Arjan van der Velde Message-ID: <20081202213021.GA14877@freebsd.org> References: <54A75E03-AE64-4DD9-8D15-7A7499E73D43@xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54A75E03-AE64-4DD9-8D15-7A7499E73D43@xs4all.nl> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org, ed@freebsd.org Subject: Re: TCSBRK not implemented in linux compat X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2008 21:35:07 -0000 On Tue, Dec 02, 2008 at 09:56:28PM +0100, Arjan van der Velde wrote: > Hi, > > While trying to get a linux binary running on FreeBSD I encountered > the following problem during serial port I/O. > > Dec 1 22:22:34 soekris kernel: linux: pid 7239 (linuxbinary): ioctl > fd=0, cmd=0x5409 ('T',9) is not implemented > > 0x5409 turns out to be TCSBRK, which is not implemented (yet?). Can > anyone give me some clues where / how to start implementing this? It > seems like the linux way of handling it is to call tcdrain(), but I'm > not sure as to how this translates to the FreeBSD compat layer. I believe you want to talk to Ed Schouten as this is a TTY thing.. I CCed him