qdosmsq:traps:trap_2:close

IO_CLOSE/IO_CLOS

This trap call closes the file who's ID is passed in A0.L.

<A NAME="Trap2_02"> <table>

Call ParametersReturn Parameters
D0.B$02D0.LError code.
A0.LChannel id to close.A0.LCorrupted.
ERR_NOChannel not open.
  • All registers not shown above are not used on entry and are preserved on exit.
  • Usually, the ERR_NO return in D0 is ignored and no action is taken.

There is an example here showing how to open and close a file.

  • qdosmsq/traps/trap_2/close.txt
  • Last modified: 2008/06/25 13:02
  • by norman