Keil™, An ARM® Company

RealView Compiler User's Guide

SYS_RENAME (0x0F)

A.3.16. SYS_RENAME (0x0F)

Renames a specified file.

Entry

On entry, r1 contains a pointer to a four‑word data block:

word 1

A pointer to the name of the old file.

word 2

The length of the old filename.

word 3

A pointer to the new filename.

word 4

The length of the new filename.

Both strings are null‑terminated.

Return

On exit, r0 contains:

  • 0 if the rename is successful

  • a nonzero, host‑specific error code if the rename fails.

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