/third_party/node/test/parallel/ |
D | test-fs-promises-file-handle-writeFile.js | 20 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 = await open(otherDest, 'w+'); [all …]
|
D | test-fs-promises-file-handle-readFile.js | 25 const fileHandle = await open(filePath, 'w+'); 32 const readFileData = await fileHandle.readFile(); 35 await fileHandle.close(); 49 const fileHandle = await open('/proc/sys/kernel/hostname', 'r'); 50 const hostname = await fileHandle.readFile(); 58 const fileHandle = await open(filePathForHandle, 'w+'); 63 await assert.rejects(readFile(fileHandle, common.mustNotMutateObjectDeep({ signal })), { 67 await fileHandle.close(); 74 const fileHandle = await open(filePathForHandle, 'w+'); 80 await assert.rejects(readFile(fileHandle, common.mustNotMutateObjectDeep({ signal })), { [all …]
|
D | test-fs-promises-file-handle-read.js | 16 async function read(fileHandle, buffer, offset, length, position, options) { argument 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 = await open(filePath, 'r'); [all …]
|
D | test-fs-promises-file-handle-write.js | 19 const fileHandle = await open(filePathForHandle, 'w+'); 22 await fileHandle.write(buffer, 0, buffer.length); 26 await fileHandle.close(); 31 const fileHandle = await open(filePathForHandle, 'w+'); 34 await fileHandle.write(buffer, 0, buffer.length); 38 await fileHandle.close(); 43 const fileHandle = await open(filePathForHandle, 'w+'); 46 await fileHandle.write(buffer, 0, buffer.length); 50 await fileHandle.close(); 55 const fileHandle = await open(filePathForHandle, 'w+'); [all …]
|
D | test-fs-promises-file-handle-append-file.js | 19 const fileHandle = await open(filePath, 'a'); 22 await fileHandle.appendFile(buffer); 26 await fileHandle.close(); 31 const fileHandle = await open(filePath, 'a'); 34 await fileHandle.appendFile(string); 39 await fileHandle.close();
|
D | test-fs-promises-file-handle-truncate.js | 14 const fileHandle = await open(filename, 'w+'); 17 await fileHandle.write(buffer, 0, buffer.length); 21 await fileHandle.truncate(5); 24 await fileHandle.close();
|
D | test-fs-promises-file-handle-stream.js | 21 const fileHandle = await open(filePathForHandle, 'w'); 24 const stream = fileHandle.createWriteStream(); 38 const fileHandle = await open(filePathForHandle); 40 await buffer(fileHandle.createReadStream()),
|
D | test-fs-promises-file-handle-stat.js | 17 const fileHandle = await open(filePath, 'w+'); 18 const stats = await fileHandle.stat(); 20 await fileHandle.close();
|
D | test-fs-promises-file-handle-chmod.js | 19 const fileHandle = await open(filePath, 'w+', 0o444); 38 await fileHandle.chmod(newPermissions); 42 await fileHandle.close();
|
D | test-http2-respond-file-filehandle.js | 19 fs.promises.open(fname, 'r').then(common.mustCall((fileHandle) => { 22 stream.respondWithFD(fileHandle, { 27 server.on('close', common.mustCall(() => fileHandle.close()));
|
/third_party/ltp/testcases/kernel/fs/scsi/ltpfs/ |
D | main.c | 334 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/ltp/testcases/kernel/syscalls/statfs/ |
D | statfs03.c | 62 int fileHandle = 0; variable 131 if ((fileHandle = creat(path, 0444)) == -1) in setup() 160 close(fileHandle); in cleanup()
|
/third_party/astc-encoder/Test/ |
D | astc_test_python.py | 47 with open("pylint.log", "w") as fileHandle: 48 fileHandle.write(pylintOut.getvalue())
|
D | astc_profile_valgrind.py | 84 with open(outfile, "w") as fileHandle: 90 fileHandle.write("%5.2f%% %s\n" % (function[2], function[0]))
|
/third_party/skia/src/ports/ |
D | SkOSFile_win.cpp | 133 HANDLE fileHandle = (HANDLE)_get_osfhandle(fileno); in sk_qread() local 150 if (ReadFile(fileHandle, buffer, static_cast<DWORD>(count), &bytesRead, &overlapped)) { in sk_qread()
|
/third_party/node/doc/changelogs/ |
D | CHANGELOG_V16.md | 2277 …t/8a90f55a05)] - **(SEMVER-MINOR)** **fs**: allow no-params fsPromises fileHandle read (Nitzan Uzi… 2337 …t/8a90f55a05)] - **(SEMVER-MINOR)** **fs**: allow no-params fsPromises fileHandle read (Nitzan Uzi…
|
D | CHANGELOG_V14.md | 281 …t/ef72490cde)] - **(SEMVER-MINOR)** **fs**: allow no-params fsPromises fileHandle read (Nitzan Uzi… 341 …t/ef72490cde)] - **(SEMVER-MINOR)** **fs**: allow no-params fsPromises fileHandle read (Nitzan Uzi…
|
D | CHANGELOG_V10.md | 4932 …dejs/node/commit/126b03e2f9)] - **test**: add tests for fs/promises.js fileHandle methods (willhay…
|
/third_party/node/doc/api/ |
D | fs.md | 500 `fileHandle.close()` method.
|