Keil™, An ARM® Company

RealView Compiler User's Guide

SYS_CLOSE (0x02)

A.3.3. SYS_CLOSE (0x02)

Closes a file on the host system. The handle must reference a file that was opened with SYS_OPEN.

Entry

On entry, r1 contains a pointer to a one‑word argument block:

word 1

Contains a handle for an open file.

Return

On exit, r0 contains:

  • 0 if the call is successful

  • –1 if the call is not successful.

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0375A