Reads the path for a soft filesystem link
Source position: amigados.pas line 1696
function ReadLink( |
port: pMsgPort; |
lock: LongInt; |
const path: pCHAR; |
buffer: pCHAR; |
size: LongWord |
):LongBool; |
port: pMsgPort; |
lock: LongInt; |
const path: string; |
buffer: pCHAR; |
size: LongWord |
):Boolean; |
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. |
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 |