I$Close

From NitrOS-9
Jump to: navigation, search
Close Path Terminates an I/O path
OS9 I$Close 103F 8F

Entry Conditions

A path number

Error Output

CC carry set on error

B error code, if any

Additional Information

  • Close Path terminates the I/O path to the file or device specified by path number. Until you use another Open, Dup, or Create system call for that path, you can no longer perform I/O to the file or device.
  • If you close a path to a single-user device, the device becomes available to other requesting processes. NitrOS-9 deallocates internally managed buffers and descriptors.
  • The Exit system call automatically closes all open paths. Therefore, you might not need to use the Close Path system call to close some paths.
  • Do not close a standard I/O path unless you want to change the file or device to which it corresponds.
  • Close Path performs an implied I$Detach call. If it causes the device link count to become 0, the device termination routine is executed. See I$Detach for additional information.