h6. [[OS SWI Calls]] h6(. » [[OS_FSControl]] h6((. » OS_FSControl 37 h2. OS_ FSControl 37 h5. (SWI &29) |_<^{width:4em}. Entry | | |<^. R0 |<^. 37 (&25) | |<^. R1 |<^. Pointer to pathname to convert | |<^. R2 |<^. Pointer to buffer | |<^. R3 |<^. Pointer to name of path variable, or 0 for none | |<^. R4 |<^. Pointer to ctrl-terminated comma separated path string, or 0 for none | |<^. R5 |<^. Buffer size | |_<^{width:4em}. Exit | | |<^. R5|<^. Number of spare bytes in buffer (inc. term)| h4. Use The purpose of this call is to take a filename (which may contain wildcards) and convert it into a complete pathname, including disc and directory name when not provided. h4. Notes If you call once with R2 and R5 set to zero, R5 will minus the return the number of bytes needed. Now you can call again having allocated 1-R5 bytes from somewhere (not just -R5 as you need to allow space for the terminator). h4. Examples _fred_ may convert to <code>SCSI::Gamma.$.Utils.Fred</code> h4. See also * [[OS_FSControl]]