Re: extended streams

2010-04-26 Thread Eric Blake
On 04/24/2010 05:00 AM, Bruno Haible wrote: > These include AIX, HP-UX, IRIX, OSF/1, Solaris, mingw! > >> the simplest thing we could think >> of is to create a temporary file under the hood, then provide gnulib >> overrides of fflush and fclose (the only two points at which POSIX >> requires th

Re: extended streams

2010-04-26 Thread Paolo Bonzini
I would suggest to define an abstraction of "input stream" or "output stream" or "stream", depending on the needs of libvirt, and use that. I agree. And maybe make it sure that it can be implemented on top of hookable stdio streams on glibc. There used to be GNU snprintfv too. The stream

Re: extended streams

2010-04-24 Thread Bruno Haible
Hi Eric, > For platforms without stdio hooking These include AIX, HP-UX, IRIX, OSF/1, Solaris, mingw! > the simplest thing we could think > of is to create a temporary file under the hood, then provide gnulib > overrides of fflush and fclose (the only two points at which POSIX > requires that