aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/ext/stdio_sync_filebuf.h
diff options
context:
space:
mode:
authorRichard B. Kreckel <richard.kreckel@framatome-anp.com>2004-05-29 14:40:59 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2004-05-29 14:40:59 +0000
commit803cb0b5c9ff81ba0b4ec018fff529a9b7cf43f2 (patch)
treeb396c782c93385052fe88b5f37ebe56e4b012f64 /libstdc++-v3/include/ext/stdio_sync_filebuf.h
parente73c80ae862805f76cb4c45de0b1109f5d3e14d5 (diff)
downloadgcc-803cb0b5c9ff81ba0b4ec018fff529a9b7cf43f2.zip
gcc-803cb0b5c9ff81ba0b4ec018fff529a9b7cf43f2.tar.gz
gcc-803cb0b5c9ff81ba0b4ec018fff529a9b7cf43f2.tar.bz2
re PR libstdc++/14600 (__gnu_cxx::stdio_sync_filebuf should expose internal FILE*)
2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com> Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/14600 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New. * include/ext/stdio_filebuf.h (stdio_filebuf::file): New. * config/io/basic_file_stdio.cc (__basic_file::file): New. * config/io/basic_file_stdio.h: Define. Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com> From-SVN: r82419
Diffstat (limited to 'libstdc++-v3/include/ext/stdio_sync_filebuf.h')
-rw-r--r--libstdc++-v3/include/ext/stdio_sync_filebuf.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libstdc++-v3/include/ext/stdio_sync_filebuf.h b/libstdc++-v3/include/ext/stdio_sync_filebuf.h
index cdf1e7c..367d310 100644
--- a/libstdc++-v3/include/ext/stdio_sync_filebuf.h
+++ b/libstdc++-v3/include/ext/stdio_sync_filebuf.h
@@ -71,6 +71,16 @@ namespace __gnu_cxx
: _M_file(__f), _M_unget_buf(traits_type::eof())
{ }
+ /**
+ * @return The underlying FILE*.
+ *
+ * This function can be used to access the underlying "C" file pointer.
+ * Note that there is no way for the library to track what you do
+ * with the file, so be careful.
+ */
+ std::__c_file* const
+ file() { return this->_M_file; }
+
protected:
int_type
syncgetc();