Contains information about the execution environment of a new virtual machine.
#include <nks/vm.h> typedef struct { int esFlags; int esArgc; void **esArgv; void **esEnv; NXStreamSpec_t esStdin; NXStreamSpec_t esStdout; NXStreamSpec_t esStderr; } NXExecEnvSpec_t;
Reserved. Set to 0.
Specifies the standard argument count in esArgv.
Specifies the command line arguments to spawn the VM. The last argument esArgv [esArgc] must be NULL, to indicate the end of the array.
Specifies an array of string pointers, formatted in the same way as argv, containing the starting environment of the spawned VM. The last string must be NULL, to indicate the end of the array.
Specifies an NXStreamSpec_t structure that contains a directory handle for standard input.
Specifies an NXStreamSpec_t structure that contains a directory handle for standard output.
Specifies an NXStreamSpec_t structure that contains a directory handle for standard error reporting.
Arguments, the environment, and wiring standard consoles can be specified through NXExecEnvSpec_t.
The format of esArgv and esEnv are as usual, an array of string pointers.