Process-level operations: command-line arguments, environment variables, platform info, and exit.
Returns the number of active CPUs.
Returns the list of command line argument strings the program was run with.
Returns the Io distribution name as a string.
Returns the C errno string.
Shutdown the IoState (io_free all objects) and return control to the calling program (if any).
Returns a string with the value of the environment variable whose name is specified by nameString.
This primitive is used to get command line options similar to Cs getopt(). It returns a map in containing the left side of the argument, with the value of the right side. (The key will not contain the beginning dashes (--).
Example:
options := System getOptions(args) options foreach(k, v, if(v type == List type, v foreach(i, j, writeln(\"Got unnamed argument with value: \" .. j)) continue ) writeln(\"Got option: \" .. k .. \" with value: \" .. v) )
Returns the root path where io was installed. The default is /usr/local.
Returns the path of io installation. The default is $INSTALL_PREFIX/lib/io.
The version of IoSpec our IoVM is compatible with
The name of our IoVM as used by IoSpec
Returns a pathComponent of the launch file.
Returns the path of the io file run on the command line. Returns nil if no file was run.
Returns the max number of recycled objects used.
Returns a string description of the platform.
Returns the version id of the OS.
Returns the current number of objects being held for recycling.
Calls system and redirects stdout/err to tmp files. Returns object with exitStatus, stdout and stderr slots.
Sets the environment variable keyString to the value valueString.
Sets the root object of the garbage collector.
Sets the max number of recycled objects used.
Performs a *blocking* sleep call for specified number of seconds.
Returns a List containing all Symbols currently in the system.
Makes a system call and returns a Number for the return value.
Return the process id (pid) for this Io process.
Called when control-c is hit. Override to add custom behavior. Returns self.
Returns a version number for Io.