Home
last modified time | relevance | path

Searched refs:logfp (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Modules/
D_hotshot.c80 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()
[all …]
/external/python/cpython3/Lib/
Dcgi.py54 logfp = None # File object to log to, if not None variable
79 global log, logfile, logfp
80 if logfile and not logfp:
82 logfp = open(logfile, "a")
85 if not logfp:
93 logfp.write(fmt%args + "\n")
101 global log, logfile, logfp
103 if logfp:
104 logfp.close()
105 logfp = None
/external/curl/tests/server/
Dutil.c103 FILE *logfp; in logmsg() local
133 logfp = fopen(serverlogfile, "ab"); in logmsg()
134 if(logfp) { in logmsg()
135 fprintf(logfp, "%s %s\n", timebuf, buffer); in logmsg()
136 fclose(logfp); in logmsg()
/external/python/cpython2/Lib/
Dcgi.py69 logfp = None # File object to log to, if not None variable
94 global logfp, log
95 if logfile and not logfp:
97 logfp = open(logfile, "a")
100 if not logfp:
108 logfp.write(fmt%args + "\n")
/external/python/cpython2/Lib/test/
Dtest_cgi.py193 cgi.logfp = StringIO()
196 self.assertEqual(cgi.logfp.getvalue(), "Testing initlog 1\nTesting log 2\n")
198 cgi.logfp = None
/external/python/cpython3/Lib/test/
Dtest_cgi.py207 cgi.logfp = StringIO()
210 self.assertEqual(cgi.logfp.getvalue(), "Testing initlog 1\nTesting log 2\n")
212 cgi.logfp = None