This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Getting file descriptors from ifstream
Theodore Papadopoulo wrote:
>It does not help you getting the file descriptor from a stream openened
>in a standard way.
>
Oh, yes, of course ;) Certainly that extension class doesn't look inside
an existing standard class! I thought it was clear, sorry about the
misunderstanding.
> Richard B. Kreckel posted a solution (partly based on
>sdtio_filebuf) to the problem massimiliano asked in this mail-list some
>time ago. It is quite ugly but without support from the library, I'm not
>sure something better can be found. His solution can be found at:
>
>http://www.ginac.de/~kreckel/fileno/
>
>Maybe it would make sense to integrate this into the ext namespace ???
>
>
I don't know, really... Your usage of words like "ugly" is not very
exciting ;) At minimum, however, Massimiliano can put to good use your
reference, thanks! A patch to the docs would be also immediately
accepted, of course.
Paolo.