NXExecEnvSpec_t

Contains information about the execution environment of a new virtual machine.

Service:NKS Virtual Machine

Structure

  #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;
  

Fields

esFlags

Reserved. Set to 0.

esArgc

Specifies the standard argument count in esArgv.

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.

esEnv

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.

esStdin

Specifies an NXStreamSpec_t structure that contains a directory handle for standard input.

esStdout

Specifies an NXStreamSpec_t structure that contains a directory handle for standard output.

esStderr

Specifies an NXStreamSpec_t structure that contains a directory handle for standard error reporting.

Remarks

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.