The patch for PR libstdc++/14097.

Loren James Rittle rittle@latour.rsch.comm.mot.com
Wed Feb 11 20:33:00 GMT 2004


Richard,

Your line of argument [removed here] and patch below seems reasonable
to me.  Is there anyone associated with the change in concrete
stdio*filebuf<> implementation(s) that disapproves strongly?

> Then, for reasons of symmetry, we should expose the FILE* when we wrap the
> other layer.  Like this: [...]

>> The fact that we expose any of this concrete
>> detail as an extension boggles the mind...

> For the record, I have to disagree.  And it seems I am not alone.  Quoting
> from <http://gcc.gnu.org/ml/libstdc++/2001-09/msg00057.html>: "On UNIX-like
> systems, there should be a way to get a file descriptor from an stream,
> in the cases where there really is an underlying descriptor."

Yet note that Zack and Mark make the exact same point as I about GNU
compiler extensions... ;-) Users complain when we change the concrete
implementation and that it breaks their usage of undocumented APIs
(granted your request is not very outrageous so please understand the
general point here).

Loren



More information about the Libstdc++ mailing list