Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef _GLIBCXX_BASIC_FILE_STDIO_H
00036 #define _GLIBCXX_BASIC_FILE_STDIO_H 1
00037
00038 #pragma GCC system_header
00039
00040 #include <bits/c++config.h>
00041 #include <bits/c++io.h>
00042 #include <ios>
00043
00044 namespace std _GLIBCXX_VISIBILITY(default)
00045 {
00046 _GLIBCXX_BEGIN_NAMESPACE_VERSION
00047
00048
00049 template<typename _CharT>
00050 class __basic_file;
00051
00052
00053 template<>
00054 class __basic_file<char>
00055 {
00056
00057 __c_file* _M_cfile;
00058
00059
00060 bool _M_cfile_created;
00061
00062 public:
00063 __basic_file(__c_lock* __lock = 0) throw ();
00064
00065 __basic_file*
00066 open(const char* __name, ios_base::openmode __mode, int __prot = 0664);
00067
00068 __basic_file*
00069 sys_open(__c_file* __file, ios_base::openmode);
00070
00071 __basic_file*
00072 sys_open(int __fd, ios_base::openmode __mode) throw ();
00073
00074 __basic_file*
00075 close();
00076
00077 _GLIBCXX_PURE bool
00078 is_open() const throw ();
00079
00080 _GLIBCXX_PURE int
00081 fd() throw ();
00082
00083 _GLIBCXX_PURE __c_file*
00084 file() throw ();
00085
00086 ~__basic_file();
00087
00088 streamsize
00089 xsputn(const char* __s, streamsize __n);
00090
00091 streamsize
00092 xsputn_2(const char* __s1, streamsize __n1,
00093 const char* __s2, streamsize __n2);
00094
00095 streamsize
00096 xsgetn(char* __s, streamsize __n);
00097
00098 streamoff
00099 seekoff(streamoff __off, ios_base::seekdir __way) throw ();
00100
00101 int
00102 sync();
00103
00104 streamsize
00105 showmanyc();
00106 };
00107
00108 _GLIBCXX_END_NAMESPACE_VERSION
00109 }
00110
00111 #endif