Format: RESIDENT [(resident name)] [(filename)] [REMOVE] [ADD] [REPLACE] [PURE] [PURE] [SYSTEM} Template: NAME,FILE,REMOVE/S,ADD/S,REPLACES/S,PURE=FORCE/S,SYSTEM/S Location: Internal
RESIDENT loads a command into memory and adds it to the resident list mainained by the shell. This allows the command to be executed with out reloading it from each disk each time. If RESIDENT is invoked with out no options, it lists the programs on the resident list.
To be made resident, a command should be pure, meaning that it is both re-entrant and re-executable.
the following commands cannot be made resident: BINDDRIVERS, CONCLIP, IPREFS, LOADRESOURCE, LOADWB, and SETPATCH.
LIST the C: directory to check for the presence of the p protection bit to determine which commands are pure.
The REPLACE option option is the default opttion and does not need to be explicitly stated. If no (resident name) is specified, RESIDENT uses the file name portion as the name on the resident list.
To overide REPLACEment and make several cersions of a command resident simultaneously, use the ADD option, giving a difrent (resident name) for each verison loaded.
If the system option is specified, the command is added to the system portion of the resident list and becomes available as a system component. Any command added to the resident list with the SYSTEM optin cannot be removed.
The PURE option forces RESIDENT to load commands that are not marked as pure and use them to test the pureness of other commands.
Example:
See also:
PROTECT, LIST