This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
fd and V3 streams (was Re: Things we need to decide)
- To: Phil Edwards <pedwards at disaster dot jaj dot com>
- Subject: fd and V3 streams (was Re: Things we need to decide)
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 30 Sep 2001 01:36:51 +0200
- Cc: libstdc++ at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <20010929180037.A14716@disaster.jaj.com>
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