h6. [[OS SWI Calls]] h6(. » [[OS_GBPB]] h6((. » OS_GBPB 6 h2. OS_ GBPB 6 h5. (SWI &0C) |_<^{width:4em}. Entry | | |<^. R0 |<^. 6 | |<^. R2 |<^. Buffer | |_<^{width:4em}. Exit | | |<^. R0 |<^. Preserved | |<^. R2 |<^. Preserved | |\2<^. C flag corrupted| h4. Use The purpose of this call is to read the Currently Selected Directory (CSD), and privilege status in relation to that directory. h4. Notes The data returned in the buffer is in the following format. <code><0><name length byte><current directory name><privileged byte></code> of the currently selected directory. The privileged byte is either: * &00 indicates 'owner' status, and allows to create or delete objects in the directory * &FF indicates 'public' status, and prohibits the creating or deleting of objects ADFS and other FileCore based systems, the privileged status value returned is always &00 i.e owner status. The names are stored without termination byte. [[OS_GBPB 5]] reads the name of the disc which contains the current directory, and its boot option. [[OS_GBPB 7]] reads the name of the library directory, and privilege status in relation to that directory. h4. See also * [[OS_GBPB]] * [[OS_GBPB 5]] * [[OS_GBPB 7]] h5. Other languages documentation [[OS_GBPB 6 (français)|Français]]