summaryrefslogtreecommitdiff
path: root/libstdc++-v3/config/io
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/config/io
parente73c80ae862805f76cb4c45de0b1109f5d3e14d5 (diff)
downloadgcc-803cb0b5c9ff81ba0b4ec018fff529a9b7cf43f2.tar.gz
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/config/io')
-rw-r--r--libstdc++-v3/config/io/basic_file_stdio.cc6
-rw-r--r--libstdc++-v3/config/io/basic_file_stdio.h3
2 files changed, 8 insertions, 1 deletions
diff --git a/libstdc++-v3/config/io/basic_file_stdio.cc b/libstdc++-v3/config/io/basic_file_stdio.cc
index 224a2f6bd6a..a3ed8391bff 100644
--- a/libstdc++-v3/config/io/basic_file_stdio.cc
+++ b/libstdc++-v3/config/io/basic_file_stdio.cc
@@ -240,7 +240,11 @@ namespace std
int
__basic_file<char>::fd()
- { return fileno(_M_cfile) ; }
+ { return fileno(_M_cfile); }
+
+ __c_file*
+ __basic_file<char>::file()
+ { return _M_cfile; }
__basic_file<char>*
__basic_file<char>::close()
diff --git a/libstdc++-v3/config/io/basic_file_stdio.h b/libstdc++-v3/config/io/basic_file_stdio.h
index 57ff4326e6b..6aa031b507d 100644
--- a/libstdc++-v3/config/io/basic_file_stdio.h
+++ b/libstdc++-v3/config/io/basic_file_stdio.h
@@ -81,6 +81,9 @@ namespace std
int
fd();
+ __c_file*
+ file();
+
~__basic_file();
streamsize