This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]