next up previous contents
Next: 3.5 When to use Up: 3. Naming objects in Previous: 3.3 Anchor environments   Contents


3.4 Anchor configuration

Anchor configuration is concerned with the values that are stored in the root anchor environment. At startup time, the root environment is initialized by reading two configuration files: an installation-specific one and a user-specific one. After that, the contents of root locations can be maintained using CM's interface functions CM.Anchor.anchor and CM.Anchor.reset (see Section 4.1.4).

Although there is a hard-wired default for the installation-specific configuration file4, this default in rarely being used. Instead, in a typical installation of SML/NJ the default will be a file $r$ /lib/pathconfig where $r$ is the root directory into which SML/NJ had been installed. (The installation procedure establishes this new default by setting the environment variable CM_PATHCONFIG_DEFAULT at the time it produces the heap image for the interactive system.) The user can specify a new location at startup time using the environment variable CM_PATHCONFIG.

The default location of the user-specific configuration file is .smlnj-pathconfig in the user's home directory (which must be given by the HOME environment variable). At startup time, this default can be overridden by a fixed location which must be given as the value of the environment variable CM_LOCAL_PATHCONFIG.

The syntax of all configuration files is identical. Lines are processed from top to bottom. White space divides lines into tokens.


next up previous contents
Next: 3.5 When to use Up: 3. Naming objects in Previous: 3.3 Anchor environments   Contents
Matthias Blume
2001-07-19