summaryrefslogtreecommitdiff
path: root/libstdc++-v3/config/io
diff options
context:
space:
mode:
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