| 1 |
IMPLEMENTATION MODULE IOChanUtils ; |
| 2 |
|
| 3 |
IMPORT IOChan, SFIO, RTio ; |
| 4 |
|
| 5 |
|
| 6 |
(* |
| 7 |
GetFileName - returns the filename as a new string associated |
| 8 |
with chanid c. This string should be killed by |
| 9 |
the caller. |
| 10 |
*) |
| 11 |
|
| 12 |
PROCEDURE GetFileName (c: IOChan.ChanId) : String ; |
| 13 |
BEGIN |
| 14 |
RETURN SFIO.GetFileName (GetFile (c)) |
| 15 |
END GetFileName ; |
| 16 |
|
| 17 |
|
| 18 |
(* |
| 19 |
GetFile - returns the FIO.File associated with ChanId c. |
| 20 |
*) |
| 21 |
|
| 22 |
PROCEDURE GetFile (c: IOChan.ChanId) : File ; |
| 23 |
BEGIN |
| 24 |
RETURN RTio.GetFile (c) |
| 25 |
END GetFile ; |
| 26 |
|
| 27 |
|
| 28 |
END IOChanUtils. |