h6. [[OS SWI Calls]] h6(. » [[OS_FSControl]] h6((. » OS_FSControl 54 h2. OS_ FSControl 54 h5. (SWI &29) |_<^{width:4em}. Entry | | |<^. R0 |<^. 54 (&36) | |<^. R1 |<^. Pointer to buffer to hold pathname | |<^. R2 |<^. "Directory to read":link3 (use number) | |<^. R3 |<^. Pointer to name of filing system | |<^. R5 |<^. Size of buffer (or 0 to read required size | |_<^{width:4em}. Exit | | |<^. R1|<^. Pointer to rest of path, or 0 if directory is not set | |<^. R5|<^. (buffer length) minus (length of string (with terminator))| |<^. R6|<^. Pointer to "special field":link4, terminated with null or "," (or 0 for none)| h4. Use The purpose of this call is to read the path of the specified directory. h4. Notes Like other [[OS_FSControl]] calls, use this call twice: after the first call (r5 = 0), and on exit r5 = -(bytes needed). The buffer is filled with pathname. h4. See also * "Current Selections":link3 * [[OS_FSControl]] * "Special Fields":link4 [link3]FileSwitch%20Accessing%20File%20Systems#current_selections [link4]FileSwitch%20Accessing%20File%20Systems#special_fields