From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 2 21:14:35 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 B153D1065678 for ; Tue, 2 Dec 2008 21:14:35 +0000 (UTC) (envelope-from noresult@xs4all.nl) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.freebsd.org (Postfix) with ESMTP id 360058FC19 for ; Tue, 2 Dec 2008 21:14:34 +0000 (UTC) (envelope-from noresult@xs4all.nl) Received: from [192.168.10.200] (noresult.xs4all.nl [82.95.100.74]) (authenticated bits=0) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id mB2KuaXn025090 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 2 Dec 2008 21:56:37 +0100 (CET) (envelope-from noresult@xs4all.nl) Message-Id: <54A75E03-AE64-4DD9-8D15-7A7499E73D43@xs4all.nl> From: Arjan van der Velde To: freebsd-hackers@freebsd.org Mime-Version: 1.0 (Apple Message framework v929.2) Date: Tue, 2 Dec 2008 21:56:28 +0100 X-Mailer: Apple Mail (2.929.2) X-Virus-Scanned: by XS4ALL Virus Scanner X-Mailman-Approved-At: Tue, 02 Dec 2008 21:22:33 +0000 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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:14:35 -0000 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. Thanks, Regards, Arjan