Introduction
ShareFS provides a simple mechanism for accessing files on locally networked RISC OS systems. The system uses Freeway to distribute details of the shared discs. This allows any Freeway reachable system (usually those on the local network, but may include any NetI accessible networks), to access the shared files. Although the objects are known as 'shared discs' they may refer to parts of a filing system. Under Select 1, and later, the Filer menu offers the option to share sub-directories.
In the past the SWI calls for ShareFS have been undocumented. They are presented here to fill in this gap, but may be extended and modified without notice. The flags on the SWIs are inconsistent for legacy reasons.
From ShareFS 3.97 onward, the ShareFS Filer can be disabled by setting the ShareFS$Filer variable to 'no'. The filer can be re-enabled by setting it to any other value.
System variables
Service calls
R0 | = | pointer to zero-terminated filing system name ('ShareFS' in our case) |
R1 | = | &801C8 (reason code) |
R2 | = | Share state: 0 if object is unshared, 1 if object is shared |
R3 | = | pointer to zero-terminated directory name being shared |
R4 | = | pointer to zero-terminated name of the shared object |
R5 | = | private data (filesystem specific) |
R0 - R5 | preserved |
This service is issued when a path is shared or unshared by a filing system. It should not be claimed.