This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Changing RedBoot's sys_read() function


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]