vidya7732/AI_Doctor_LLM_GenModel
0
1/* File object interface (what's left of it -- see io.py) */2 3#ifndef Py_FILEOBJECT_H4#define Py_FILEOBJECT_H5#ifdef __cplusplus6extern "C" {7#endif8 9#define PY_STDIOTEXTMODE "b"10 11PyAPI_FUNC(PyObject *) PyFile_FromFd(int, const char *, const char *, int,12 const char *, const char *,13 const char *, int);14PyAPI_FUNC(PyObject *) PyFile_GetLine(PyObject *, int);15PyAPI_FUNC(int) PyFile_WriteObject(PyObject *, PyObject *, int);16PyAPI_FUNC(int) PyFile_WriteString(const char *, PyObject *);17PyAPI_FUNC(int) PyObject_AsFileDescriptor(PyObject *);18 19/* The default encoding used by the platform file system APIs20 If non-NULL, this is different than the default encoding for strings21*/22PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;23PyAPI_DATA(int) Py_HasFileSystemDefaultEncoding;24 25/* A routine to check if a file descriptor can be select()-ed. */26#ifdef _MSC_VER27 /* On Windows, any socket fd can be select()-ed, no matter how high */28 #define _PyIsSelectable_fd(FD) (1)29#else30 #define _PyIsSelectable_fd(FD) ((unsigned int)(FD) < (unsigned int)FD_SETSIZE)31#endif32 33#ifndef Py_LIMITED_API34# define Py_CPYTHON_FILEOBJECT_H35# include "cpython/fileobject.h"36# undef Py_CPYTHON_FILEOBJECT_H37#endif38 39#ifdef __cplusplus40}41#endif42#endif /* !Py_FILEOBJECT_H */43 