Lines Matching refs:logfp
80 FILE *logfp; member
93 FILE *logfp; member
119 if (self->logfp != NULL) { in logreader_close()
120 fclose(self->logfp); in logreader_close()
121 self->logfp = NULL; in logreader_close()
136 if (self->logfp == NULL) { in logreader_fileno()
141 return PyInt_FromLong(fileno(self->logfp)); in logreader_fileno()
287 if ((c = fgetc(self->logfp)) == EOF) in unpack_packed_int()
322 ch = fgetc(self->logfp); in unpack_string()
379 fclose(self->logfp); in eof_error()
380 self->logfp = NULL; in eof_error()
400 if (self->logfp == NULL) { in logreader_tp_iternext()
408 if ((c = fgetc(self->logfp)) == EOF) { in logreader_tp_iternext()
409 fclose(self->logfp); in logreader_tp_iternext()
410 self->logfp = NULL; in logreader_tp_iternext()
417 ungetc(c, self->logfp); /* type byte includes packed int */ in logreader_tp_iternext()
458 if ((c = fgetc(self->logfp)) == EOF) in logreader_tp_iternext()
466 if ((c = fgetc(self->logfp)) == EOF) in logreader_tp_iternext()
531 if (self->logfp != NULL) { in logreader_dealloc()
532 fclose(self->logfp); in logreader_dealloc()
533 self->logfp = NULL; in logreader_dealloc()
557 size_t written = fwrite(self->buffer, 1, self->index, self->logfp); in flush_data()
572 if (fflush(self->logfp)) { in flush_data()
1000 if (self->logfp == NULL) { in is_available()
1021 if (self->logfp == NULL) in profiler_addinfo()
1041 if (self->logfp != NULL) { in profiler_close()
1042 fclose(self->logfp); in profiler_close()
1043 self->logfp = NULL; in profiler_close()
1054 if (self->logfp == NULL) { in profiler_fileno()
1059 return PyInt_FromLong(fileno(self->logfp)); in profiler_fileno()
1167 if (self->logfp != NULL) in profiler_dealloc()
1168 fclose(self->logfp); in profiler_dealloc()
1195 PyObject *result = (self->logfp == NULL) ? Py_True : Py_False; in profiler_get_closed()
1299 PyObject *result = (self->logfp == NULL) ? Py_True : Py_False; in logreader_get_closed()
1361 self->logfp = fopen(filename, "rb"); in hotshot_logreader()
1362 if (self->logfp == NULL) { in hotshot_logreader()
1371 if ((c = fgetc(self->logfp)) == EOF) { in hotshot_logreader()
1376 ungetc(c, self->logfp); in hotshot_logreader()
1514 self->logfp = NULL; in hotshot_profiler()
1522 self->logfp = fopen(logfilename, "wb"); in hotshot_profiler()
1523 if (self->logfp == NULL) { in hotshot_profiler()