h2. Close an open a file |_<^{width:4em}. Entry | | |<^. R1 |<^. File handle used by your filing system/image filing system | |<^. R2 |<^. New load address to associate with file | |<^. R3 |<^. New execution address to associate with file| |_<^{width:4em}. Exit | | |<^. |<^. - | h4. Use This entry point is called by FileSwitch to request that your filing system close an open file, and optionally put a new date/time stamp on it. For ImageEntry_Close, you should then call [[OS_Args 255]] on the image after updating the structure for the closed file; this ensures that all data is flushed to the disc. If R2 and R3 are both zero your filing system should not try to restamp the file. This can occur because: * You returned from the [[FSEntry_Args]] 9 (or [[FSEntry_Args|ImageEntry_Args]] 9) call with these values indicating that your filing system doesn't support stamping open files * FileSwitch knows that the file has not been modified * FileSwitch does not want you to restamp the file h4. Notes The commands *Close and *Shut are performed by FileSwitch by passing the handles, one at a time, to the relevant filing system for closing, therefore R1 is always non-zero. h4. See also * [[FS Information Block]] * [[OS_FSControl]]