networkservice
Public Attributes | List of all members
utils::command::IExecutor::ProgramParams Struct Reference

A data structure containing all input parameters expected by execProgram() method. More...

#include <IExecutor.h>

Public Attributes

const char *const pathname
 
char *const *const argv
 
char *const *const envp
 

Detailed Description

A data structure containing all input parameters expected by execProgram() method.

One reason that explains why a structure is preferred over a long list of input parameters (>=4) is that this way it is easier to add new parameters without impacting the readability.

Member Data Documentation

◆ argv

char* const* const utils::command::IExecutor::ProgramParams::argv

An array of argument strings passed to the new program. By convention, the first of these strings should contain the filename associated with the file being executed

◆ envp

char* const* const utils::command::IExecutor::ProgramParams::envp

An array of strings of the form key=value, which are passed as environment to the new program

◆ pathname

const char* const utils::command::IExecutor::ProgramParams::pathname

Either a binary executable, or a script starting with a line of the form: "#! interpreter [optional-arg]"


The documentation for this struct was generated from the following file: