public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] question about "sys_write() " call.
@ 2001-07-23 20:39 Tony Ko
  2001-07-23 20:51 ` [ECOS] question about thread return Yong
  2001-07-24  7:33 ` [ECOS] question about "sys_write() " call Jonathan Larmour
  0 siblings, 2 replies; 6+ messages in thread
From: Tony Ko @ 2001-07-23 20:39 UTC (permalink / raw)
  To: ecos-discuss

hi.
what's for "sys_write" call ( on sys_generic.c ).
does it have something with system call?
then when is this called?

thanks in advance.

Tony.


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

* [ECOS] question about thread return
  2001-07-23 20:39 [ECOS] question about "sys_write() " call Tony Ko
@ 2001-07-23 20:51 ` Yong
  2001-07-24  7:34   ` Jonathan Larmour
  2001-07-24  7:33 ` [ECOS] question about "sys_write() " call Jonathan Larmour
  1 sibling, 1 reply; 6+ messages in thread
From: Yong @ 2001-07-23 20:51 UTC (permalink / raw)
  To: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 649 bytes --]

when thread function normally returns ,
do I need to do any cleanup work for it ?
like calling cyg_thread_delete() .

thanks a lot .
  
______________________________________________________
»¶Ó­Ê¹ÓÃFM365ÖÐÎĵç×ÓÓʼþ http://mail.fm365.com
»¶Ó­¶©ÔÄFM365Ãâ·Ñµç×ÓÔÓÖ¾ http://maillist.fm365.com
FM365ÁÄÌìÊÒȫиİæ http://chat.fm365.com
ÁªÏë·þÎñÌáÐÑÄúÔ¤·ÀCIH²¡¶¾£¡ http://www.legend.com/service/huodong/CIH/cih426.html

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

* Re: [ECOS] question about "sys_write() " call.
  2001-07-23 20:39 [ECOS] question about "sys_write() " call Tony Ko
  2001-07-23 20:51 ` [ECOS] question about thread return Yong
@ 2001-07-24  7:33 ` Jonathan Larmour
  2001-07-24  7:59   ` Mark Salter
  1 sibling, 1 reply; 6+ messages in thread
From: Jonathan Larmour @ 2001-07-24  7:33 UTC (permalink / raw)
  To: Tony Ko; +Cc: ecos-discuss

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.

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/

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

* Re: [ECOS] question about thread return
  2001-07-23 20:51 ` [ECOS] question about thread return Yong
@ 2001-07-24  7:34   ` Jonathan Larmour
  0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Larmour @ 2001-07-24  7:34 UTC (permalink / raw)
  To: Yong; +Cc: ecos-discuss

Yong wrote:
> 
> when thread function normally returns ,
> do I need to do any cleanup work for it ?
> like calling cyg_thread_delete() .

You don't need to in the sense that the thread will be suspended. But if
you want to reclaim the memory, you should call cyg_thread_delete().

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/

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

* Re: [ECOS] question about "sys_write() " call.
  2001-07-24  7:33 ` [ECOS] question about "sys_write() " call Jonathan Larmour
@ 2001-07-24  7:59   ` Mark Salter
  2001-07-24  8:05     ` Jonathan Larmour
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Salter @ 2001-07-24  7:59 UTC (permalink / raw)
  To: jlarmour; +Cc: nhko, ecos-discuss

>>>>> 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.

--Mark

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

* Re: [ECOS] question about "sys_write() " call.
  2001-07-24  7:59   ` Mark Salter
@ 2001-07-24  8:05     ` Jonathan Larmour
  0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Larmour @ 2001-07-24  8:05 UTC (permalink / raw)
  To: Mark Salter; +Cc: nhko, ecos-discuss

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/

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

end of thread, other threads:[~2001-07-24  8:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-23 20:39 [ECOS] question about "sys_write() " call Tony Ko
2001-07-23 20:51 ` [ECOS] question about thread return Yong
2001-07-24  7:34   ` Jonathan Larmour
2001-07-24  7:33 ` [ECOS] question about "sys_write() " call Jonathan Larmour
2001-07-24  7:59   ` Mark Salter
2001-07-24  8:05     ` Jonathan Larmour

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).