


      LLLLooooaaaaddddCCCCoooommmmmmmmaaaannnndddd((((3333BBBB))))              ((((RRRRiiiiddddggggeeee))))              LLLLooooaaaaddddCCCCoooommmmmmmmaaaannnndddd((((3333BBBB))))



      NNNNAAAAMMMMEEEE
           LoadCommand - create a command process

      SSSSYYYYNNNNTTTTAAAAXXXX
           FUNCTION LoadCommand (name : String;
                             var pID : ProcessID) : Error;

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           _L_o_a_d_C_o_m_m_a_n_d creates a command process, using the file nnnnaaaammmmeeee
           as the executable code segment. The code file is found using
           the standard search order.  If the name starts with ////, then
           that exact pathname is used.  Otherwise, a pathname is
           constructed by appending nnnnaaaammmmeeee first to the current working
           directory, then the directory ////bbbbiiiinnnn, and finally the
           directory ////uuuussssrrrr////bbbbiiiinnnn.  The code file must have execute
           permission.

           If a code file is found, a data and a queue segment are
           allocated, and an inactive process is created. A process ID
           is returned in ppppIIIIDDDD, which is used for further management of
           the command process.

      SSSSEEEEEEEE AAAALLLLSSSSOOOO
           AbortCommand (3B), LoadCodeAndData (3B), StartCommand (3B)

      NNNNOOOOTTTTEEEESSSS
           ErBadFileName is returned if the name is too long, or
           contains invalid characters.

           ErFileNotFound is returned if the file can not be found,
           while ErBadFileType is returned if it is not a regular file.
























      Page 1                                                   (9010-E)



