h6. [[OS SWI Calls]] h6(. » [[OS_FSControl]] h6((. » OS_FSControl 11 h2. OS_ FSControl 11 h5. (SWI &29) |_<^{width:4em}. Entry | | |<^. R0 |<^. 11 (&0B) | |<^. R1 |<^. Pointer to (wildcarded) filename | |_<^{width:4em}. Exit | | |<^. R0 |<^. Preserved | |<^. R1 |<^. Updated to point beyond filing system specifier | |/2<^. R2|<^. If -1 then no filing system specifier present (call has no effect) | |<^. If >= 0 then [[Filing System Numbers|filing system number]] to restore| |<^. R3|<^. Pointer to special field, 0 if not present | h4. Use The purpose of this call is set the temporary filing system from the prefix string in R1. h4. Notes 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]]. h4. Examples |_<^{width:8em}. R1 Pointer to|_<^. Registers out| |/3<^. blah.blah vlsgf|<^. R1 = R1 in| |<^. R2 = -1| |<^. R3 = 0| |/3<^. <FS>:blah|<^. R1 past ':'| |<^. R2 = <number of [[Filing System Numbers|filing system]]| |<^. R3 = 0| |/3<^. <FS>#fred:blah|<^. R1 past ':'| |<^. R2 = <number of [[Filing System Numbers|filing system]]| |<^. R3 past '#'| |/3<^. <path>:blah|<^. R1 = R1 in| |<^. R2 = -1| |<^. R3 = 0| |/3<^. <path>#fred:blah|<^. R1 = R1 in| |<^. R2 = -1| |<^. R3 past '#'| |/3<^. #fred:blah|<^. R1 = R1 in| |<^. R2 = -1| |<^. R3 past '#'| h4. See also * [[Filing System Numbers]] * [[OS_CLI]] * [[OS_FSControl]] * [[OS_FSControl 19]]