#include "exports.h"
#include "pycore_moduleobject.h"
#include "pycore_typeobject.h"
#include "structmember.h"
extern PyType_Spec bufferediobase_spec;
extern PyType_Spec bufferedrandom_spec;
extern PyType_Spec bufferedreader_spec;
extern PyType_Spec bufferedrwpair_spec;
extern PyType_Spec bufferedwriter_spec;
extern PyType_Spec bytesio_spec;
extern PyType_Spec bytesiobuf_spec;
extern PyType_Spec fileio_spec;
extern PyType_Spec iobase_spec;
extern PyType_Spec nldecoder_spec;
extern PyType_Spec rawiobase_spec;
extern PyType_Spec stringio_spec;
extern PyType_Spec textiobase_spec;
extern PyType_Spec textiowrapper_spec;
#ifdef HAVE_WINDOWS_CONSOLE_IO
extern PyType_Spec winconsoleio_spec;
#endif
_PyIO_State;
extern PyObject* _PyIOBase_check_readable(_PyIO_State *state,
PyObject *self, PyObject *args);
extern PyObject* _PyIOBase_check_writable(_PyIO_State *state,
PyObject *self, PyObject *args);
extern PyObject* _PyIOBase_check_seekable(_PyIO_State *state,
PyObject *self, PyObject *args);
extern PyObject* _PyIOBase_check_closed(PyObject *self, PyObject *args);
extern int _PyIOBase_finalize(PyObject *self);
extern int _PyFileIO_closed(PyObject *self);
extern PyObject *_PyIncrementalNewlineDecoder_decode(
PyObject *self, PyObject *input, int final);
extern Py_ssize_t _PyIO_find_line_ending(
int translated, int universal, PyObject *readnl,
int kind, const char *start, const char *end, Py_ssize_t *consumed);
extern int _PyIO_trap_eintr(void);
#define DEFAULT_BUFFER_SIZE …
#ifdef MS_WINDOWS
typedef long long Py_off_t;
#define PyLong_AsOff_t …
#define PyLong_FromOff_t …
#define PY_OFF_T_MAX …
#define PY_OFF_T_MIN …
#define PY_OFF_T_COMPAT …
#define PY_PRIdOFF …
#else
Py_off_t;
#if (SIZEOF_OFF_T == SIZEOF_SIZE_T)
#define PyLong_AsOff_t …
#define PyLong_FromOff_t …
#define PY_OFF_T_MAX …
#define PY_OFF_T_MIN …
#define PY_OFF_T_COMPAT …
#define PY_PRIdOFF …
#elif (SIZEOF_OFF_T == SIZEOF_LONG_LONG)
#define PyLong_AsOff_t …
#define PyLong_FromOff_t …
#define PY_OFF_T_MAX …
#define PY_OFF_T_MIN …
#define PY_OFF_T_COMPAT …
#define PY_PRIdOFF …
#elif (SIZEOF_OFF_T == SIZEOF_LONG)
#define PyLong_AsOff_t …
#define PyLong_FromOff_t …
#define PY_OFF_T_MAX …
#define PY_OFF_T_MIN …
#define PY_OFF_T_COMPAT …
#define PY_PRIdOFF …
#else
# error off_t does not match either size_t, long, or long long!
#endif
#endif
extern Py_off_t PyNumber_AsOff_t(PyObject *item, PyObject *err);
extern PyModuleDef _PyIO_Module;
struct _io_state { … };
static inline _PyIO_State *
get_io_state(PyObject *module)
{ … }
static inline _PyIO_State *
get_io_state_by_cls(PyTypeObject *cls)
{ … }
static inline _PyIO_State *
find_io_state_by_def(PyTypeObject *type)
{ … }
extern PyObject *_PyIOBase_cannot_pickle(PyObject *self, PyObject *args);
#ifdef HAVE_WINDOWS_CONSOLE_IO
extern char _PyIO_get_console_type(PyObject *);
#endif