fd and V3 streams (was Re: Things we need to decide)

Gabriel Dos Reis gdr@codesourcery.com
Sat Sep 29 16:37:00 GMT 2001


Phil Edwards <pedwards@disaster.jaj.com> writes:

| 3a)  Exposing the guts of an existing file stream / file buffer.  Offhand I
| can see a grid of two choices leading to four possibilities:
| 
| - How much guts to expose?  We speak to an underlying FILE* right now,
|   both for 3.0 and on the trunk; current normal operations never involve
|   a file descriptor directly.  Our choices are returning the FILE*, or
|   assume Unix semantics and call fileno() on the FILE*.

If you want to do this, please do return the file description, not a
FILE* -- libio maybe be back sooner than latter...

| - Which layer gets extended?  The filebuf, the fstream, or both?

I would say filebuf.

-- Gaby



More information about the Libstdc++ mailing list