13.7.11. SYS_SEEK (0x0a)

Seeks to a specified position in a file using an offset specified from the start of the file. The file is assumed to be a byte array and the offset is given in bytes.

Entry

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

word 1

is a handle for a seekable file object.

word 2

is the absolute byte position to be sought to.

Return

On exit, r0 contains:

  • 0 if the request is successful

  • A negative value if the request is not successful. SYS_ERRNO can be used to read the value of the host errno variable describing the error.

Note

The effect of seeking outside of the current extent of the file object is undefined.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0040D
Non-Confidential