Re: redirecting stderr to memory

1997-12-18 Thread Herbert Xu
Enrique Zanardi wrote: Memory penalty. As busybox and dinstall are linked together in this implementation, forking implies doubling the already big memory requirements. Perhaps we should implement a libbusybox.so ... No it does not, thanks to Linux shared memeory. -- Debian GNU/Linux 1.3

Re: redirecting stderr to memory

1997-12-16 Thread Karl M. Hegbloom
Enrique == Enrique Zanardi [EMAIL PROTECTED] writes: Enrique Any ideas? `publib' has some editor buffer stuff in it... could you use that somehow? -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .

Re: redirecting stderr to memory

1997-12-16 Thread Nicolás Lichtmaier
(I need that to display messages directed to stderr from busybox when linked to a Slang program, as in: Uh? Why don't you just do... int p[2]; pipe(p); if(!fork()) { dup2(p[1],2); exec... } /* now you can read the output from the p[0] file descriptor... */ -- TO UNSUBSCRIBE

Re: redirecting stderr to memory

1997-12-16 Thread Enrique Zanardi
On Mon, 15 Dec 1997, Nicolás Lichtmaier wrote: (I need that to display messages directed to stderr from busybox when linked to a Slang program, as in: Uh? Why don't you just do... int p[2]; pipe(p); if(!fork()) { dup2(p[1],2); exec... } /* now you can read the output

Re: redirecting stderr to memory

1997-12-16 Thread bruce
From: Enrique Zanardi [EMAIL PROTECTED] Memory penalty. As busybox and dinstall are linked together in this implementation, forking implies doubling the already big memory requirements. No, sorry, that's not right. Busybox is actually much more efficient than you think. The text of the

Re: redirecting stderr to memory

1997-12-16 Thread Kai Henningsen
[EMAIL PROTECTED] (Enrique Zanardi) wrote on 16.12.97 in [EMAIL PROTECTED]: On Mon, 15 Dec 1997, Nicolás Lichtmaier wrote: Uh? Why don't you just do... int p[2]; pipe(p); if(!fork()) { dup2(p[1],2); exec... } /* now you can read the output from the p[0] file

redirecting stderr to memory

1997-12-15 Thread Enrique Zanardi
Hello! Is there an easy way to redirect stderr to memory? I was thinking about something like: FILE *stream,*tmpstream; char *streambuf; size_t streamsize; stream=open_memstream(streambuf,streamsize); tmpstream=stderr; stderr=stream; but it doesn't work, because stderr is not a