GNUnet 0.26.2-32-gd298f7855
 
Loading...
Searching...
No Matches
GNUNET_Process Struct Reference
Collaboration diagram for GNUNET_Process:
[legend]

Data Fields

pid_t pid
 PID of the process.
 
struct GNUNET_DISK_FileHandlecontrol_pipe
 Pipe we use to signal the process.
 
enum GNUNET_OS_InheritStdioFlags std_inheritance
 What to do with stdin/stdout/stderr unless already specified in the file map.
 
unsigned int map_size
 Length of the map.
 
struct ProcessFileMapEntrymap
 Map of file descriptors to keep and dup2 for the new process.
 
unsigned int envs_size
 Length of the envs.
 
struct EnviEntryenvs
 Environment variables to set in the target process.
 
char * filename
 Name of the binary to execute.
 
char ** argv
 Command-line arguments to pass, NULL-terminated.
 
enum GNUNET_OS_ProcessStatusType exit_type
 Runtime status of the process.
 
unsigned long exit_code
 Exit status code of the process, interpretation depends on exit_type.
 

Detailed Description

Definition at line 84 of file os_process.c.

Field Documentation

◆ pid

◆ control_pipe

struct GNUNET_DISK_FileHandle* GNUNET_Process::control_pipe

Pipe we use to signal the process.

NULL if unused, or if process was deemed uncontrollable.

Definition at line 95 of file os_process.c.

Referenced by GNUNET_process_destroy(), GNUNET_process_kill(), and GNUNET_process_start().

◆ std_inheritance

enum GNUNET_OS_InheritStdioFlags GNUNET_Process::std_inheritance

What to do with stdin/stdout/stderr unless already specified in the file map.

Definition at line 101 of file os_process.c.

Referenced by GNUNET_process_create(), GNUNET_process_set_options_(), GNUNET_process_start(), and start_arm_service().

◆ map_size

unsigned int GNUNET_Process::map_size

Length of the map.

Definition at line 106 of file os_process.c.

Referenced by GNUNET_process_destroy(), GNUNET_process_set_options_(), GNUNET_process_start(), and map_std().

◆ map

struct ProcessFileMapEntry* GNUNET_Process::map

Map of file descriptors to keep and dup2 for the new process.

Definition at line 111 of file os_process.c.

Referenced by GNUNET_process_destroy(), GNUNET_process_set_options_(), GNUNET_process_start(), and map_std().

◆ envs_size

unsigned int GNUNET_Process::envs_size

Length of the envs.

Definition at line 116 of file os_process.c.

Referenced by GNUNET_process_destroy(), GNUNET_process_set_options_(), and GNUNET_process_start().

◆ envs

struct EnviEntry* GNUNET_Process::envs

Environment variables to set in the target process.

Definition at line 121 of file os_process.c.

Referenced by GNUNET_process_destroy(), GNUNET_process_set_options_(), and GNUNET_process_start().

◆ filename

◆ argv

char** GNUNET_Process::argv

Command-line arguments to pass, NULL-terminated.

Definition at line 131 of file os_process.c.

Referenced by GNUNET_process_destroy(), GNUNET_process_set_command(), GNUNET_process_set_command_ap(), GNUNET_process_set_command_argv(), and GNUNET_process_start().

◆ exit_type

enum GNUNET_OS_ProcessStatusType GNUNET_Process::exit_type

Runtime status of the process.

Definition at line 136 of file os_process.c.

Referenced by GNUNET_process_wait().

◆ exit_code

unsigned long GNUNET_Process::exit_code

Exit status code of the process, interpretation depends on exit_type.

Definition at line 141 of file os_process.c.

Referenced by GNUNET_process_wait().


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