This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Changing RedBoot's sys_read() function
- From: Mark Salter <msalter at redhat dot com>
- To: "Moseley, Drew" <drew dot moseley at intel dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 22 Jul 2005 15:31:31 -0400
- Subject: Re: [ECOS] Changing RedBoot's sys_read() function
- References: <C863B68032DED14E8EBA9F71EB8FE4C207F62C3E@azsmsx406>
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