Reads the path for a soft filesystem link
Source position: amigados.pas line 2272
function ReadLink( |
Port: PMsgPort; |
Lock: LongInt; |
const Path: PChar; |
Buffer: PChar; |
Size: LongWord |
):LongBool; |
Port |
|
MsgPort of the filesystem |
Lock |
|
Lock this path is relative to on the filesystem |
Buffer |
|
Pointer to buffer for new path from handler. |
Size |
|
Size of buffer. |
ReadLink() takes a lock/name pair (usually from a failed attempt to use them to access an object with packets), and asks the filesystem to find the softlink and fill buffer with the modified path string. You then start the resolution process again by calling GetDeviceProc() with the new string from ReadLink().
Soft-links are resolved at access time by a combination of the filesystem (by returning ERROR_IS_SOFT_LINK to dos), and by Dos (using ReadLink() to resolve any links that are hit).
|
Creates a filesystem link |
|
|
Open a file for input or output |
|
|
Lock a directory or file |
|
|
Finds a handler to send a message to |