29#ifndef _STDIO_FILEBUF_H
30#define _STDIO_FILEBUF_H 1
32#pragma GCC system_header
36namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
38_GLIBCXX_BEGIN_NAMESPACE_VERSION
49 template<
typename _CharT,
typename _Traits = std::
char_traits<_CharT> >
54 typedef _CharT char_type;
55 typedef _Traits traits_type;
56 typedef typename traits_type::int_type int_type;
57 typedef typename traits_type::pos_type pos_type;
58 typedef typename traits_type::off_type off_type;
59 typedef std::size_t size_t;
78 size_t __size =
static_cast<size_t>(_GLIBCXX_BUFSIZ));
91 size_t __size =
static_cast<size_t>(_GLIBCXX_BUFSIZ));
100#if __cplusplus >= 201103L
106 { std::basic_filebuf<_CharT, _Traits>::swap(__fb); }
118 fd() {
return this->_M_file.fd(); }
128 file() {
return this->_M_file.file(); }
131 template<
typename _CharT,
typename _Traits>
135 template<
typename _CharT,
typename _Traits>
139 this->_M_file.sys_open(__fd, __mode);
144 this->_M_allocate_internal_buffer();
146 this->_M_writing =
false;
151 template<
typename _CharT,
typename _Traits>
156 this->_M_file.sys_open(__f, __mode);
161 this->_M_allocate_internal_buffer();
163 this->_M_writing =
false;
168_GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.
GNU extensions for public use.
The actual work of input and output (for files).
ios_base::openmode _M_mode
Place to stash in || out || in | out settings for current filebuf.
bool is_open() const
Returns true if the external file is open.
basic_filebuf()
Does not open any files.
void _M_set_buffer(streamsize __off)
_Ios_Openmode openmode
This is a bitmask type.
Provides a layer of compatibility for C/POSIX.