* Closes a file descriptor synchronously. * @param {number} fd The file descriptor
(fd)
| 582 | * @param {number} fd The file descriptor |
| 583 | */ |
| 584 | closeSync(fd) { |
| 585 | const vfd = getVirtualFd(fd); |
| 586 | if (!vfd) { |
| 587 | throw createEBADF('close'); |
| 588 | } |
| 589 | vfd.entry.closeSync(); |
| 590 | closeVirtualFd(fd); |
| 591 | } |
| 592 | |
| 593 | /** |
| 594 | * Reads from a file descriptor synchronously. |
no test coverage detected