Home
last modified time | relevance | path

Searched refs:wfile (Results 1 – 25 of 56) sorted by relevance

123

/external/ltp/testcases/kernel/fs/doio/
Dwrite_log.c114 int wlog_open(struct wlog_file *wfile, int trunc, int mode) in wlog_open() argument
128 wfile->w_afd = open(wfile->w_file, oflags, mode); in wlog_open()
131 if (wfile->w_afd == -1) { in wlog_open()
134 wfile->w_file, oflags, mode, strerror(errno)); in wlog_open()
143 if ((wfile->w_rfd = open(wfile->w_file, oflags)) == -1) { in wlog_open()
146 wfile->w_file, oflags, strerror(errno)); in wlog_open()
147 close(wfile->w_afd); in wlog_open()
148 wfile->w_afd = -1; in wlog_open()
160 int wlog_close(struct wlog_file *wfile) in wlog_close() argument
162 close(wfile->w_afd); in wlog_close()
[all …]
/external/ltp/testcases/kernel/fs/doio/include/
Dwrite_log.h153 extern int wlog_open(struct wlog_file *wfile, int trunc, int mode);
154 extern int wlog_close(struct wlog_file *wfile);
155 extern int wlog_record_write(struct wlog_file *wfile,
157 extern int wlog_scan_backward(struct wlog_file *wfile, int nrecs,
/external/deqp/framework/delibs/debase/
DdeDefs.c101 wchar_t wfile[128]; in deAssertFail() local
112 num = deMin32((int)strlen(file), DE_LENGTH_OF_ARRAY(wfile)-1); in deAssertFail()
114 wfile[i] = file[i]; in deAssertFail()
115 wfile[i] = 0; in deAssertFail()
118 _wassert(wreason, wfile, line); in deAssertFail()
/external/autotest/client/cros/
Dhttpd.py89 self.wfile.write(('Hello from Autotest!\nClient: %s\n' %
91 self.wfile.write(('Request for path: %s\n' % self.path).encode('utf-8'))
92 self.wfile.write(b'Got form data:\n')
101 self.wfile.write(('\tUploaded %s (%d bytes)<br>' %
107 self.wfile.write(('\t%s=%s<br>' % (field, form[field].value)).encode('utf-8'))
265 self.wfile = socket._fileobject(self.request, 'wb', self.wbufsize)
/external/python/cpython3/Lib/
Dsocketserver.py772 self.wfile = _SocketWriter(self.connection)
774 self.wfile = self.connection.makefile('wb', self.wbufsize)
777 if not self.wfile.closed:
779 self.wfile.flush()
784 self.wfile.close()
814 self.wfile = BytesIO()
817 self.socket.sendto(self.wfile.getvalue(), self.client_address)
/external/python/cpython2/Lib/
DSocketServer.py703 self.wfile = self.connection.makefile('wb', self.wbufsize)
706 if not self.wfile.closed:
708 self.wfile.flush()
713 self.wfile.close()
728 self.wfile = StringIO()
731 self.socket.sendto(self.wfile.getvalue(), self.client_address)
DBaseHTTPServer.py329 self.wfile.flush() #actually send the response if not already done.
384 self.wfile.write(content)
403 self.wfile.write("%s %d %s\r\n" %
412 self.wfile.write("%s: %s\r\n" % (keyword, value))
423 self.wfile.write("\r\n")
DCGIHTTPServer.py228 self.wfile.flush() # Always flush before forking
247 os.dup2(self.wfile.fileno(), 1)
286 self.wfile.write(stdout)
/external/python/oauth2client/oauth2client/
Dtools.py131 self.wfile.write(
133 self.wfile.write(
135 self.wfile.write(b"</body></html>")
/external/tensorflow/tensorflow/core/platform/cloud/
Dgcs_file_system_test.cc988 std::unique_ptr<WritableFile> wfile; in TEST() local
990 fs.NewWritableFile("gs://bucket/path/writeable", nullptr, &wfile)); in TEST()
991 TF_EXPECT_OK(wfile->Append("content1,")); in TEST()
993 TF_EXPECT_OK(wfile->Tell(&pos)); in TEST()
995 TF_EXPECT_OK(wfile->Append("content2")); in TEST()
996 TF_EXPECT_OK(wfile->Flush()); in TEST()
1002 TF_EXPECT_OK(wfile->Flush()); in TEST()
1003 TF_EXPECT_OK(wfile->Sync()); in TEST()
1004 TF_EXPECT_OK(wfile->Close()); in TEST()
1155 std::unique_ptr<WritableFile> wfile; in TEST() local
[all …]
/external/grpc-grpc/test/core/http/
Dtest_server.py41 self.wfile.write('<html><head><title>Hello world!</title></head>')
42 self.wfile.write('<body><p>This is a test</p></body></html>')
/external/python/cpython3/Lib/test/
Dtest_socketserver.py111 self.wfile.write(line)
386 self.server.wfile = self.wfile
387 self.server.wfile_fileno = self.wfile.fileno()
397 self.assertIsInstance(server.wfile, io.BufferedIOBase)
407 self.server.sent1 = self.wfile.write(b'write data\n')
411 self.server.sent2 = self.wfile.write(big_chunk)
Dtest_urllib2_localnet.py154 request_handler.wfile.write(b"Proxy Authentication Required.")
232 self.wfile.write(b"No Auth header received")
237 self.wfile.write(b"It works")
272 self.wfile.write(bytes("You've reached %s!<BR>" % self.path,
274 self.wfile.write(b"Our apologies, but our server is down due to "
409 done = self.wfile.write(body)
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/python_utils/
Dport_server.py160 self.wfile.write(str(p).encode('ascii'))
180 self.wfile.write(str(_MY_VERSION).encode('ascii'))
195 self.wfile.write(out.encode('ascii'))
/external/grpc-grpc/tools/run_tests/python_utils/
Dport_server.py158 self.wfile.write('%d' % p)
178 self.wfile.write(_MY_VERSION)
195 self.wfile.write(out)
/external/autotest/client/site_tests/login_ChromeProfileSanitary/
Dlogin_ChromeProfileSanitary.py27 handler.wfile.write('Got form data:\n')
28 handler.wfile.write('%s:\n' % url_args)
/external/linux-kselftest/tools/testing/selftests/cpufreq/
Dcpufreq.sh87 local wfile=$(ls -l $1/$file | awk '$1 ~ /^.*w.*/ { print $NF; }')
89 if [ ! -z $wfile ]; then
/external/python/cpython2/Lib/test/
Dtest_imaplib.py64 self.wfile.write(message)
161 self.wfile.write('* OK')
172 self.wfile.write('* OK ' + imaplib._MAXLINE*'x' + '\r\n')
Dtest_urllib2_localnet.py113 self.wfile.write("No Auth Header Received")
116 self.wfile.write("It works!")
195 request_handler.wfile.write("Proxy Authentication Required.")
270 self.wfile.write("You've reached %s!<BR>" % self.path)
271 self.wfile.write("Our apologies, but our server is down due to "
406 self.wfile.write(body)
/external/python/cpython3/Lib/http/
Dserver.py416 self.wfile.flush() #actually send the response if not already done.
482 self.wfile.write(body)
533 self.wfile.write(b"".join(self._headers_buffer))
660 self.copyfile(f, self.wfile)
1153 self.wfile.flush() # Always flush before forking
1173 os.dup2(self.wfile.fileno(), 1)
1211 self.wfile.write(stdout)
/external/llvm-project/llvm/tools/sancov/
Dcoverage-report-server.py151 self.wfile.write(response.encode('UTF-8', 'replace'))
177 self.wfile.write(response.encode('UTF-8', 'replace'))
/external/autotest/client/cros/cellular/
Dtest_endpoint.py38 self.wfile.write('0' * int(parsed_query[self.SIZE_PARAM][0]))
Dforward_8960_screen101 self.wfile.write(PAGE % {'ssh_tunnel_port': ssh_tunnel_port,
/external/crosvm/fuse/src/
Dworker.rs154 let mut wfile = dev_fuse.try_clone().map_err(Error::EndpointSetup)?; in start_message_loop() localVariable
157 let dev_fuse_writer = DevFuseWriter::new(&mut wfile, &mut write_buf); in start_message_loop()
/external/python/cpython3/Lib/xmlrpc/
Dserver.py546 self.wfile.write(response)
572 self.wfile.write(response)
926 self.wfile.write(response)

123