hello helmut, yes, I have just understood this.

Sorry for the noise.

Actually I had to valide write to echo chars on the console.
It was not working, so I disabled the plugin as I did not understand all details...

For the \n, it is because, the "write no supported" as it was buffered was echoed far away from the original call, and it was rather complex to trace.

For the moment I have the same kind of problem with the close call...

/stephane

On Fri, Sep 17, 2010 at 4:57 PM, Christian Helmuth <christian.helmuth@...1...> wrote:
Hello Stephane,

On Fri, Sep 17, 2010 at 11:38:21AM +0200, stephane frenot wrote:
> Here is a patch that validates the write function.

Your patch simply deactivates our libc plugin mechanism for write(). I
admit, that we currently do not support writes to stdout and stderr
out of the box _and_ that the current error message is a bit
misleading. We _do_ support write() but not to the given fd. I will
fix this soon.

Please read more about the plugin concept here

 http://genode.org/documentation/release-notes/10.02#section-23

and in the sources of libc_lwip.

> I also put a "\n" in the DUMMY macro display.

Why do you need this additional linebreak? PERR() adds it in
base/include/base/printf.h:73 to the output.

Regards
--
Christian Helmuth
Genode Labs

http://www.genode-labs.com/ · http://genode.org/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Genode-main mailing list
Genode-main@...12...ceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main



--
http://perso.citi.insa-lyon.fr/sfrenot
work here : http://tinyurl.com/2ts4xf
sleep here : http://tinyurl.com/33p2gt
play here : http://tinyurl.com/3yarjz
---
Stephane Frenot
Université de Lyon, INRIA
INSA-Lyon, CITI, F-69621, France