Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/python2....
File: fileobject.h
[0] Fix | Delete
/* File object interface */
[1] Fix | Delete
[2] Fix | Delete
#ifndef Py_FILEOBJECT_H
[3] Fix | Delete
#define Py_FILEOBJECT_H
[4] Fix | Delete
#ifdef __cplusplus
[5] Fix | Delete
extern "C" {
[6] Fix | Delete
#endif
[7] Fix | Delete
[8] Fix | Delete
typedef struct {
[9] Fix | Delete
PyObject_HEAD
[10] Fix | Delete
FILE *f_fp;
[11] Fix | Delete
PyObject *f_name;
[12] Fix | Delete
PyObject *f_mode;
[13] Fix | Delete
int (*f_close)(FILE *);
[14] Fix | Delete
int f_softspace; /* Flag used by 'print' command */
[15] Fix | Delete
int f_binary; /* Flag which indicates whether the file is
[16] Fix | Delete
open in binary (1) or text (0) mode */
[17] Fix | Delete
char* f_buf; /* Allocated readahead buffer */
[18] Fix | Delete
char* f_bufend; /* Points after last occupied position */
[19] Fix | Delete
char* f_bufptr; /* Current buffer position */
[20] Fix | Delete
char *f_setbuf; /* Buffer for setbuf(3) and setvbuf(3) */
[21] Fix | Delete
int f_univ_newline; /* Handle any newline convention */
[22] Fix | Delete
int f_newlinetypes; /* Types of newlines seen */
[23] Fix | Delete
int f_skipnextlf; /* Skip next \n */
[24] Fix | Delete
PyObject *f_encoding;
[25] Fix | Delete
PyObject *f_errors;
[26] Fix | Delete
PyObject *weakreflist; /* List of weak references */
[27] Fix | Delete
int unlocked_count; /* Num. currently running sections of code
[28] Fix | Delete
using f_fp with the GIL released. */
[29] Fix | Delete
int readable;
[30] Fix | Delete
int writable;
[31] Fix | Delete
} PyFileObject;
[32] Fix | Delete
[33] Fix | Delete
PyAPI_DATA(PyTypeObject) PyFile_Type;
[34] Fix | Delete
[35] Fix | Delete
#define PyFile_Check(op) PyObject_TypeCheck(op, &PyFile_Type)
[36] Fix | Delete
#define PyFile_CheckExact(op) (Py_TYPE(op) == &PyFile_Type)
[37] Fix | Delete
[38] Fix | Delete
PyAPI_FUNC(PyObject *) PyFile_FromString(char *, char *);
[39] Fix | Delete
PyAPI_FUNC(void) PyFile_SetBufSize(PyObject *, int);
[40] Fix | Delete
PyAPI_FUNC(int) PyFile_SetEncoding(PyObject *, const char *);
[41] Fix | Delete
PyAPI_FUNC(int) PyFile_SetEncodingAndErrors(PyObject *, const char *, char *errors);
[42] Fix | Delete
PyAPI_FUNC(PyObject *) PyFile_FromFile(FILE *, char *, char *,
[43] Fix | Delete
int (*)(FILE *));
[44] Fix | Delete
PyAPI_FUNC(FILE *) PyFile_AsFile(PyObject *);
[45] Fix | Delete
PyAPI_FUNC(void) PyFile_IncUseCount(PyFileObject *);
[46] Fix | Delete
PyAPI_FUNC(void) PyFile_DecUseCount(PyFileObject *);
[47] Fix | Delete
PyAPI_FUNC(PyObject *) PyFile_Name(PyObject *);
[48] Fix | Delete
PyAPI_FUNC(PyObject *) PyFile_GetLine(PyObject *, int);
[49] Fix | Delete
PyAPI_FUNC(int) PyFile_WriteObject(PyObject *, PyObject *, int);
[50] Fix | Delete
PyAPI_FUNC(int) PyFile_SoftSpace(PyObject *, int);
[51] Fix | Delete
PyAPI_FUNC(int) PyFile_WriteString(const char *, PyObject *);
[52] Fix | Delete
PyAPI_FUNC(int) PyObject_AsFileDescriptor(PyObject *);
[53] Fix | Delete
[54] Fix | Delete
/* The default encoding used by the platform file system APIs
[55] Fix | Delete
If non-NULL, this is different than the default encoding for strings
[56] Fix | Delete
*/
[57] Fix | Delete
PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
[58] Fix | Delete
[59] Fix | Delete
/* Routines to replace fread() and fgets() which accept any of \r, \n
[60] Fix | Delete
or \r\n as line terminators.
[61] Fix | Delete
*/
[62] Fix | Delete
#define PY_STDIOTEXTMODE "b"
[63] Fix | Delete
char *Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *);
[64] Fix | Delete
size_t Py_UniversalNewlineFread(char *, size_t, FILE *, PyObject *);
[65] Fix | Delete
[66] Fix | Delete
/* A routine to do sanity checking on the file mode string. returns
[67] Fix | Delete
non-zero on if an exception occurred
[68] Fix | Delete
*/
[69] Fix | Delete
int _PyFile_SanitizeMode(char *mode);
[70] Fix | Delete
[71] Fix | Delete
#if defined _MSC_VER && _MSC_VER >= 1400
[72] Fix | Delete
/* A routine to check if a file descriptor is valid on Windows. Returns 0
[73] Fix | Delete
* and sets errno to EBADF if it isn't. This is to avoid Assertions
[74] Fix | Delete
* from various functions in the Windows CRT beginning with
[75] Fix | Delete
* Visual Studio 2005
[76] Fix | Delete
*/
[77] Fix | Delete
int _PyVerify_fd(int fd);
[78] Fix | Delete
#elif defined _MSC_VER && _MSC_VER >= 1200
[79] Fix | Delete
/* fdopen doesn't set errno EBADF and crashes for large fd on debug build */
[80] Fix | Delete
#define _PyVerify_fd(fd) (_get_osfhandle(fd) >= 0)
[81] Fix | Delete
#else
[82] Fix | Delete
#define _PyVerify_fd(A) (1) /* dummy */
[83] Fix | Delete
#endif
[84] Fix | Delete
[85] Fix | Delete
/* A routine to check if a file descriptor can be select()-ed. */
[86] Fix | Delete
#ifdef HAVE_SELECT
[87] Fix | Delete
#define _PyIsSelectable_fd(FD) (((FD) >= 0) && ((FD) < FD_SETSIZE))
[88] Fix | Delete
#else
[89] Fix | Delete
#define _PyIsSelectable_fd(FD) (1)
[90] Fix | Delete
#endif /* HAVE_SELECT */
[91] Fix | Delete
[92] Fix | Delete
#ifdef __cplusplus
[93] Fix | Delete
}
[94] Fix | Delete
#endif
[95] Fix | Delete
#endif /* !Py_FILEOBJECT_H */
[96] Fix | Delete
[97] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function