public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Changing RedBoot's sys_read() function
@ 2005-07-22 17:08 Moseley, Drew
  2005-07-22 19:31 ` Mark Salter
  0 siblings, 1 reply; 2+ messages in thread
From: Moseley, Drew @ 2005-07-22 17:08 UTC (permalink / raw)
  To: ecos-discuss

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?
 
thanks,

Drew

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Changing RedBoot's sys_read() function
  2005-07-22 17:08 [ECOS] Changing RedBoot's sys_read() function Moseley, Drew
@ 2005-07-22 19:31 ` Mark Salter
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Salter @ 2005-07-22 19:31 UTC (permalink / raw)
  To: Moseley, Drew; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-22 19:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-22 17:08 [ECOS] Changing RedBoot's sys_read() function Moseley, Drew
2005-07-22 19:31 ` Mark Salter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).