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]

Re: question about "sys_write() " call.


Mark Salter wrote:
> 
> >>>>> Jonathan Larmour writes:
> 
> > Tony Ko wrote:
> >>
> >> hi.
> >> what's for "sys_write" call ( on sys_generic.c ).
> >> does it have something with system call?
> >> then when is this called?
> 
> > It's called by GNU applications linked with newlib, not eCos.
> 
> That would be the sys_write in redboot. The sys_write in
> sys_generic.c is something else.

Ah, oops, yes. There are two sys_writes around. The other one is in the BS
net stack and is only used when not using the fileio package. In that case
it is the underlying implementation of write(). It's only called
"sys_write" because it came from the BSD kernel.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions    http://www.redhat-techworld.com/


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