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

Function closeSync

lib/internal/vfs/setup.js:353–357  ·  view source on GitHub ↗
(fd)

Source from the content-addressed store, hash-verified

351
352 openSync: (path, flags, mode) => vfsOp(path, (vfs, n) => vfs.openSync(n, flags, mode)),
353 closeSync(fd) {
354 const vfd = getVirtualFd(fd);
355 if (vfd) { vfd.entry.closeSync(); closeVirtualFd(fd); return true; }
356 return undefined;
357 },
358 readSync(fd, buffer, offset, length, position) {
359 const vfd = getVirtualFd(fd);
360 if (vfd) return vfd.entry.readSync(buffer, offset, length, position);

Callers 1

Calls 3

getVirtualFdFunction · 0.85
closeVirtualFdFunction · 0.85
closeSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…