From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27923 invoked by alias); 21 Apr 2006 20:21:50 -0000 Received: (qmail 27910 invoked by uid 22791); 21 Apr 2006 20:21:48 -0000 X-Spam-Check-By: sourceware.org Received: from otoro.itis.ethz.ch (HELO mail.itis.ethz.ch) (129.132.24.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 21 Apr 2006 20:20:44 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.itis.ethz.ch (Postfix) with ESMTP id 86C635B381 for ; Fri, 21 Apr 2006 22:20:39 +0200 (MEST) Received: from mail.itis.ethz.ch ([127.0.0.1]) by localhost (otoro [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00805-02 for ; Fri, 21 Apr 2006 22:20:38 +0200 (MEST) Received: from [127.0.0.1] (itis-speag-090-dhcp.itis.ethz.ch [129.132.24.90]) by mail.itis.ethz.ch (Postfix) with ESMTP id 6C6D85B380 for ; Fri, 21 Apr 2006 22:20:38 +0200 (MEST) Message-ID: <44493EBD.7050708@speag.ch> Date: Fri, 21 Apr 2006 20:21:00 -0000 From: "oliver munz @ s p e a g" Reply-To: munz@speag.ch User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: ecos-discuss@sourceware.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0616-4, 21.04.2006), Outbound message X-Antivirus-Status: Clean Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Is it possible to read and write from two different threads via the same fopen("/dev/ser0"...) handle ??? X-SW-Source: 2006-04/txt/msg00217.txt.bz2 I want to read and write the same serial port from a reading thread and from am other writeing thread. Should do this work? I can do this via the cyg_io_read(...) and cyg_io_write(...) functions, but the file-version dosn't worked... But may be i did it wrong... Oliver -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss