The calling application supplies the name of a file, fileName, and its location, hostName. The KcsSolarisProfile loadable module searches for the name supplied in fileName. It searches the following directories in the order listed:
The current directory
Directories listed by the KCMS_PROFILES
environment variable, which is a colon-separated
list of directories
/etc/openwin/devdata/profiles
/usr/openwin/etc/devdata/profiles
If hostName is non-NULL, the KcsSolarisProfile loadable module first checks if the name supplied is the name of the current machine. If it is not the the current machine's name, the KcsSolarisProfile loadable module opens a connection to the RPC daemon, kcms_server(1)() and tries to locate the profile on a remote machine. The RPC daemon searches only in the last two directories for the profile (#3 and #4), and only reads remote profiles.
The application does not need to supply the full name of the file; the KcsSolarisProfile loadable module automatically adds the following suffixes.
.mon |
Monitor |
.spc |
Color space |
.inp |
Input (scanner) |
.out |
Output (printer) |