MCPcopy Index your code
hub / github.com/nodejs/node / closeSync

Function closeSync

lib/fs.js:636–643  ·  view source on GitHub ↗

* Synchronously closes the file descriptor. * @param {number} fd * @returns {void}

(fd)

Source from the content-addressed store, hash-verified

634 * @returns {void}
635 */
636function closeSync(fd) {
637 const h = vfsState.handlers;
638 if (h !== null) {
639 const result = h.closeSync(fd);
640 if (result !== undefined) return;
641 }
642 binding.close(fd);
643}
644
645/**
646 * Asynchronously opens a file.

Callers 2

benchFromSyncWritevFunction · 0.50
mainFunction · 0.50

Calls 2

closeMethod · 0.65
closeSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…