14600 – __gnu_cxx::stdio_sync_filebuf should expose internal FILE* (original) (raw)
Description Richard B. Kreckel 2004-03-16 09:45:12 UTC
Similar to the __gnu_cxx::stdio_filebuf<>::fd() member function, there should be a __gnu_cxx::stdio_sync_filebuf::c_file() member function which returns the underlying FILE*.
With the advent of __gnu_cxx::stdio_sync_filebuf<> that feature becomes needed for interfacing to good ol' Unix machinery. A patch was proposed on <http://gcc.gnu.org/ml/libstdc++/2004-02/msg00379.html>. It even appears that consensus had been reached: <http://gcc.gnu.org/ml/libstdc++/2004-02/msg00189.html>. Due to the trivial nature of the patch, it should also be considered a candidate for 3.4.x.