From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28919 invoked by alias); 22 Jul 2005 19:31:41 -0000 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 Received: (qmail 28832 invoked by uid 22791); 22 Jul 2005 19:31:37 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 22 Jul 2005 19:31:37 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j6MJVaWI020301 for ; Fri, 22 Jul 2005 15:31:36 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j6MJVaV25854; Fri, 22 Jul 2005 15:31:36 -0400 Received: from 172.16.50.6 (vpn50-6.rdu.redhat.com [172.16.50.6]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id j6MJVWd4015856; Fri, 22 Jul 2005 15:31:35 -0400 From: Mark Salter To: "Moseley, Drew" Cc: ecos-discuss@sources.redhat.com In-Reply-To: References: Content-Type: text/plain Date: Fri, 22 Jul 2005 19:31:00 -0000 Message-Id: <1122060691.8734.13.camel@gienah.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] Changing RedBoot's sys_read() function X-SW-Source: 2005-07/txt/msg00246.txt.bz2 On Fri, 2005-07-22 at 10:08 -0700, Moseley, Drew wrote: > I am considering making some changes to the sys_read() function in > packages/redboot/current/src/syscall.c to better handle console I/O. > (ie local echo, backspace handling, etc.) > > Is this function only called for console I/O? If not is there some way > to > determine if the fd being read is the console? sys_read() assumes that it only gets called to read stdin in which case fd is 0. As long as sys_open() always returns an error, that's a good assumption. --Mark -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss