RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

OS_Find

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_Find

OS_Find

(SWI &0D)
Entry
R0 Reason code, and path bits if reason <> 0
R1 Filename for opening files, handle otherwise
R2 Pathname, if ‘path used’ is 1 or 2
Exit
File handle, if opening

Use

The purpose of this call is to either open or close files.

Reason Codes

R0 Action
&00 Closes file R1, or all files if R1 = 0
&40 Open existing file with read-only access
&80 Create empty file with read/write access
&C0 Open existing file with read/write access

See also

  • OS_Find Path Bits
Revised on November 26, 2010 12:43:46 by Trevor Johnson (329)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: FileSwitch SWI Calls, OS SWI Calls, OS_Find Path Bits, Software Vector Numbers, OS_UpCall 3

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys