12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

In some installations, <strong>spec</strong> is installed as a set-user-id root process, to allow certaincalls that allow privileged access to hardware device registers. The first thing <strong>spec</strong>does on start up is to set the effective user and group ids to that of the real user, sothere is no danger of the user spawning subshells or creating files as root. The rooteffective id is only used for the duration of the calls that enable the privileged access.<strong>spec</strong> then performs other initialization tasks, including obtaining values for its internalvariables DISPLAY , GTERM , TERM , HOME and PAGER from variables of the samename in the process environment. It also obtains the value of the SHELL environmentvariable for use with the unix() function.<strong>spec</strong> then reads the hardware configuration from the appropriate config file from theauxiliary file directory. The path name of that file is SPECD/<strong>spec</strong>/config, whereSPECD is the auxiliary file directory, established when <strong>spec</strong> is installed (or by the invocation flag, or by the SPECD environment variable), and <strong>spec</strong> is the name bywhich <strong>spec</strong> is invoked.The first time a user starts <strong>spec</strong>, uptoseven macro files are automatically read. Thepath names of these files areSPECD/standard.macSPECD/geom.macSPECD/<strong>spec</strong>/geom.macSPECD/site_f.macSPECD/site.macSPECD/<strong>spec</strong>/conf.mac./<strong>spec</strong>.macwhere SPECD is the auxiliary file directory, asdescribed above, geom matches thefirst four letters of the name by which <strong>spec</strong> was invoked and <strong>spec</strong> is the completename by which <strong>spec</strong> was invoked. The files are only read if they exist. The filesSPECD/standard.mac, SPECD/geom.mac, SPECD/<strong>spec</strong>/geom.mac andSPECD/site_f.mac are only read if the user is starting <strong>spec</strong> for the first time or has¡invoked <strong>spec</strong> with the (fresh start) flag.Each time <strong>spec</strong> starts up, if a macro named begin_mac is defined, that macro will berun after reading any startup command files, but before input is read from the keyboard.After reading the start-up macro or command files and possibly running begin_mac ,<strong>spec</strong> prompts the user for commands.INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION REFERENCE MANUAL 53

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!