AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R0 =     11 (Set temporary filing system)
     R1 =     pointer to wildcarded filename

<=     R0 preserved
     R1 =     updated to point beyond filing system specifier
     R2 =     -1     no filing system specifier present (call has no effect)
           >= 0     filing system to restore
     R3 =     pointer to special field, 0 if not present

This SWI sets the temporary filing system from the prefix string in R1. It is used by OS_CLI to set the temporary filing system for the command's duration. After the command the current filing system is restored with OS_FSControl 19

For example:

R1 in points to               Registers out

blah.blah vlsgf     R1 = R1 in
                    R2 = -1
                    R3 = 0
<FS>:blah     R1 past ':'
                    R2 = number of <FS>
                    R3 = 0
<FS>#fred:blah     R1 past ':'
                    R2 = number of <FS>
                    R3 past '#'
<path>:blah          R1 = R1 in
                    R2 = -1
                    R3 = 0
<path>#fred:blah     R1 = R1 in
                    R2 = -1
                    R3 past '#'
#fred:blah          R1 = R1 in
                    R2 = -1
                    R3 past '#'

[sh-index] Back to list of manuals