Home
last modified time | relevance | path

Searched refs:PyFileObject (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Objects/
Dfileobject.c79 return ((PyFileObject *)f)->f_fp; in PyFile_AsFile()
82 void PyFile_IncUseCount(PyFileObject *fobj) in PyFile_IncUseCount()
87 void PyFile_DecUseCount(PyFileObject *fobj) in PyFile_DecUseCount()
99 return ((PyFileObject *)f)->f_name; in PyFile_Name()
106 file_PyObject_Print(PyObject *op, PyFileObject *f, int flags) in file_PyObject_Print()
119 static PyFileObject*
120 dircheck(PyFileObject* f) in dircheck()
146 fill_file_fields(PyFileObject *f, FILE *fp, PyObject *name, char *mode, in fill_file_fields()
324 open_the_file(PyFileObject *f, char *name, char *mode) in open_the_file()
426 close_the_file(PyFileObject *f) in close_the_file()
[all …]
/external/python/cpython2/Doc/c-api/
Dfile.rst15 .. c:type:: PyFileObject
30 Return true if its argument is a :c:type:`PyFileObject` or a subtype of
31 :c:type:`PyFileObject`.
39 Return true if its argument is a :c:type:`PyFileObject`, but not a subtype of
40 :c:type:`PyFileObject`.
56 Create a new :c:type:`PyFileObject` from the already-open standard C file
71 .. c:function:: void PyFile_IncUseCount(PyFileObject \*p)
73 Increments the PyFileObject's internal use count to indicate
97 .. c:function:: void PyFile_DecUseCount(PyFileObject \*p)
99 Decrements the PyFileObject's internal unlocked_count member to
[all …]
/external/python/cpython2/Include/
Dfileobject.h33 } PyFileObject; typedef
47 PyAPI_FUNC(void) PyFile_IncUseCount(PyFileObject *);
48 PyAPI_FUNC(void) PyFile_DecUseCount(PyFileObject *);
/external/python/cpython2/Modules/
Dbz2module.c1094 PyFile_DecUseCount((PyFileObject *)self->file); in BZ2File_seek()
1110 PyFile_IncUseCount((PyFileObject *)self->file); in BZ2File_seek()
1212 PyFile_DecUseCount((PyFileObject *)self->file); in BZ2File_close()
1373 PyFile_DecUseCount((PyFileObject *)self->file); in BZ2File_clear()
1481 PyFile_IncUseCount((PyFileObject *)self->file); in BZ2File_init()
DcPickle.c434 PyFile_IncUseCount((PyFileObject *)self->file); in write_file()
438 PyFile_DecUseCount((PyFileObject *)self->file); in write_file()
551 PyFile_IncUseCount((PyFileObject *)self->file); in read_file()
555 PyFile_DecUseCount((PyFileObject *)self->file); in read_file()
Dposixmodule.c6968 ((PyFileObject *)f)->f_fp = fp; in posix_fdopen()
/external/python/cpython2/Doc/data/
Drefcounts.dat384 PyFile_AsFile:PyFileObject*:p:0:
407 PyFile_SetBufSize:PyFileObject*:p:0:
411 PyFile_SoftSpace:PyFileObject*:p:0:
416 PyFile_WriteObject:PyFileObject*:p:0:
421 PyFile_WriteString:PyFileObject*:p:0:
/external/python/cpython2/Parser/
Dtokenizer.c804 enc = ((PyFileObject *)sysstdin)->f_encoding; in tok_stdin_decode()