Home
last modified time | relevance | path

Searched refs:fileHandle (Results 1 - 6 of 6) sorted by relevance

/third_party/node/test/parallel/
H A Dtest-fs-promises-file-handle-writeFile.js20 const fileHandle = await open(filePathForHandle, 'w+');
24 await fileHandle.writeFile(buffer);
28 await fileHandle.close();
35 const fileHandle = await open(filePathForHandle, 'w+');
41 await assert.rejects(writeFile(fileHandle, buffer, { signal }), {
45 await fileHandle.close();
86 const fileHandle = await open(dest, 'w+');
88 await fileHandle.writeFile(stream);
93 await fileHandle.close();
101 const fileHandle
[all...]
H A Dtest-fs-promises-file-handle-read.js16 async function read(fileHandle, buffer, offset, length, position, options) {
18 fileHandle.read({ buffer, offset, length, position }) :
19 fileHandle.read(buffer, offset, length, position);
27 const fileHandle = await open(filePath, 'w+');
33 fileHandle.on('close', common.mustCall());
35 await read(fileHandle, Buffer.alloc(11), 0, 11, 0, options);
39 await fileHandle.close();
56 const fileHandle = await open(filePath, 'r');
59 await read(fileHandle, Buffer.alloc(1), 0, 1, pos, options);
66 const fileHandle
[all...]
/third_party/ltp/testcases/kernel/fs/scsi/ltpfs/
H A Dmain.c334 int fileHandle; in create_file() local
337 if ((fileHandle = creat(filename, S_IRWXU)) < 0) { in create_file()
348 if (write(fileHandle, wbuf, randomsize) < 0) { in create_file()
352 close(fileHandle); in create_file()
359 close(fileHandle); in create_file()
538 int fileHandle, fileHandle2; in open_read_close() local
542 if ((fileHandle = open(fname, O_RDONLY | O_SYNC | O_ASYNC)) < 0) { in open_read_close()
556 while ((c = read(fileHandle, buffer, BUFFSIZE)) > 0) { in open_read_close()
562 close(fileHandle); in open_read_close()
571 close(fileHandle); in open_read_close()
[all...]
/third_party/astc-encoder/Test/
H A Dastc_profile_valgrind.py83 with open(outfile, "w") as fileHandle:
92 fileHandle.write("%5.2f%% %s\n" % (function[2], function[0]))
94 fileHandle.write("======\n")
95 fileHandle.write(f"{totals:5.2f}%\n")
H A Dastc_test_python.py47 with open("pylint.log", "w") as fileHandle:
48 fileHandle.write(pylintOut.getvalue())
/third_party/skia/src/ports/
H A DSkOSFile_win.cpp133 HANDLE fileHandle = (HANDLE)_get_osfhandle(fileno); in sk_qread() local
150 if (ReadFile(fileHandle, buffer, static_cast<DWORD>(count), &bytesRead, &overlapped)) { in sk_qread()

Completed in 3 milliseconds