User guide
44 CHAPTER 3. THE LIBRARY
mainco
busy CIN:n, POS:y, NAT:n
This is a variable used i n the implementation of gomultievent under Cintpos.
multi
count CIN:n, POS:y, NAT:n
This is a variable used i n the implementation of gomultievent under Cintpos.
pktlist CIN:n, POS:y, NAT:n
Under Cintpos when runni ng in multi-event mode, pktlist contains mapping from
packets to their corresponding corouti n es .
randseed CIN:n, POS:y, NAT:n
This is the seed used by the random number generator randno.
result2 CIN:y, POS:y, NAT:y
This global variable is used by some functions to return a second result.
returncode CIN:n, POS:y, NAT:n
This holds the return code of the command most recently executed by the command
language interpreter.
rootnode CIN:n, POS:y, NAT:n
This points to the rootnode.
start CIN:y, POS:y, NAT:y
This is global 1 and is, by convention, the main function of a program. It is the
first user function to be called when a program is run by the Command Language
Interpreter.
taskid CIN:n, POS:y, NAT:n
Under Cintpos this is the identifier of the currently executing task. It in not avail-
able under Cintsy s.
tcb CIN:n, POS:y, NAT:n
Under Cintpos this is a pointer to the currently executi ng task.
userenv CIN:y, POS:y, NAT:y
This variabl e is available to the user to hold information that is prese r ved from
one CLI command to the next. The standard command language interpr et e r resets all
global variable from ug to the end of the global vector between commands. userenv is
not in th i s region of the global vector and so is preserved. Normally userenv is either
zero or points to a user defined st ru ct ur e holding environmental data.
3.3 Global Functi on s
One of the main purposes of the global vector is hold entry points of functi ons defined
in one module and used in a different module. This section describes the function