Code:
/* accessing the list of logical volumes is hairy under AmigaOS 1.x - it is "hidden" in the DosBase structure, and shared among all tasks. Effectively this means, we need to nest the retrieval of the assigns into Forbid()/Permit() calls to lock the assign list to prevent possible race conditions. Reminder: We need to do some BCPL->C conversion here BPTR are address pointers divided by 4, use BADDR to convert BSTR are BPTRs to 0-terminated ASCII char arrays with a prefix length byte For now, we will omit device typed entries, because writing/reading to them usually doesn't make too much sense. */
Vložit komentář: