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_FSControl

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

OS_FSControl

(SWI &29)
Entry
R0 Reason code
Other registers dependent on reason code
Exit
R0 Preserved
Other registers dependent on reason code

Use

The purpose of this call is control the filing system manager and the filing system themselves.

Notes

The action performed depends on the reason code value in R0.

Reason Codes

# Hex # Action
0 &00 Set current dir
1 &01 Set library dir
2 &02 Inform of start of new app
3 &03 Run Type (Internal use only)
4 &04 Run a file
5 &05 Catalogue a dir
6 &06 Examine current dir
7 &07 Catalogue library
8 &08 Examine library
9 &09 Examine objects
10 &0A Set FS options
11 &0B Set temporary FS
12 &0C Add a FS
13 &0D Check for FS
14 &0E Select FS
15 &0F Boot from FS
16 &10 Remove FS
17 &11 Add secondary module
18 &12 Convert filetype number to name
19 &13 Restore current FS
20 &14 Read location of temp FS
21 &15 Return a file handle
22 &16 Close all open files
23 &17 Shutdown FS
24 &18 Set attributes of objects
25 &19 Rename object
26 &1A Copy objects
27 &1B Wipe objects
28 &1C Count objects
29 &1D Create Handle (Internal use only)
30 &1E Read location of temporary FS secondary module
31 &1F Convert filetype name to number
32 &20 Output list of object names & info
33 &21 Convert a filing system number to a name
34 &22 Set Contexts (Reserved)
35 &23 Add an image FS
36 &24 Remove an image FS
37 &25 Canonicalise path
38 &26 Extract filetype from file information
39 &27 Set User Root Directory
40 &28 Swap current and previous directories
41 &29 Return defect list for an image file
42 &2A Map out defect from an image file
43 &2B Unset the Current Directory
44 &2C Unset the User Root Directory
45 &2D Unset the Library Directory
46 &2E Return used space map of image file
47 &2F Read boot option for disc or image file
48 &30 Write boot option for disc or image file
49 &31 Read free space for disc or image file
50 &32 Rename disc or image file
51 &33 Request update of image stamp
52 &34 Find object at offset within image file
53 &35 Set given directory to path unchecked
54 &36 Read path of given directory
55 &37 Read free space for a large disc or image file
56 &38 Read defect list for a large disc or image file
57 &39 Map out defect from large disc or image
58 &3A Enumerate file handles

See also

  • File Descriptor Blocks
  • Flags For File Operations
Revised on November 28, 2011 10:00:12 by Sprow (202)? (91.85.52.71)
Edit | Back in time (5 revisions) | See changes | History | Views: Print | Source | Linked from: FileSwitch SWI Calls, OS_FSControl 37, OS SWI Calls, OS_FSControl 0, Software Vector Numbers, OS_FSControl 10, OS_FSControl 10 Options, Filing System Option 1, Filing System Option 4, OS_FSControl 2, OS_FSControl 1, OS_FSControl 4, OS_FSControl 5, OS_FSControl 6, OS_FSControl 7, OS_FSControl 8, OS_FSControl 9, OS_FSControl 11, OS_FSControl 12, OS_FSControl 13, OS_FSControl 14, OS_FSControl 15, OS_FSControl 16, OS_FSControl 17, OS_FSControl 18, OS_FSControl 19, OS_FSControl 20, OS_FSControl 21, OS_FSControl 22, OS_FSControl 23, OS_FSControl 24, OS_FSControl 25, OS_FSControl 26, OS_FSControl 27, OS_FSControl 30, OS_FSControl 31, OS_FSControl 32, OS_FSControl 33, OS_FSControl 35, OS_FSControl 36, File Descriptor Blocks, OS_FSControl 28, Flags For File Operations, OS_FSControl 38, OS_FSControl 39, OS_FSControl 40, OS_FSControl 41, OS_FSControl 42, OS_FSControl 43, OS_FSControl 44, OS_FSControl 45, OS_FSControl 46, OS_FSControl 47, OS_FSControl 48, OS_FSControl 49, OS_FSControl 55, OS_FSControl 50, OS_FSControl 51, OS_FSControl 52, OS_FSControl 52 Object Types, OS_FSControl 53, OS_FSControl 54, OS_FSControl 56, OS_FSControl 57, OS_UpCall 3, OS_FSControl 58

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