Keil Logo

SYS_SEEK (0x0A)

11.21 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
a handle for a seekable file object
word 2
the absolute byte position to search to.

Return

On exit, R0 contains:
  • 0 if the request is successful
  • A negative value if the request is not successful. Use SYS_ERRNO to read the value of the host errno variable describing the error.

Note

The effect of seeking outside the current extent of the file object is undefined.
Non-ConfidentialPDF file icon PDF versionARM DUI0375H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.