Ruby: rb_execarg Struct Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Data Fields
rb_execarg Struct Reference

`#include <process.h>`

## Data Fields
union {
struct {
VALUE shell_script
} sh
struct {
VALUE command_name
VALUE command_abspath
VALUE argv_str
VALUE argv_buf
} cmd
} | invoke
VALUE | redirect_fds
VALUE | envp_str
VALUE | envp_buf
VALUE | dup2_tmpbuf
unsigned | use_shell: 1
unsigned | pgroup_given: 1
unsigned | umask_given: 1
unsigned | unsetenv_others_given: 1
unsigned | unsetenv_others_do: 1
unsigned | close_others_given: 1
unsigned | close_others_do: 1
unsigned | chdir_given: 1
unsigned | new_pgroup_given: 1
unsigned | new_pgroup_flag: 1
unsigned | uid_given: 1
unsigned | gid_given: 1
unsigned | exception_given: 1
struct waitpid_state * | waitpid_state
rb_pid_t | pgroup_pgid
VALUE | rlimit_limits
mode_t | umask_mask
rb_uid_t | uid
rb_gid_t | gid
int | close_others_maxhint
VALUE | fd_dup2
VALUE | fd_close
VALUE | fd_open
VALUE | fd_dup2_child
VALUE | env_modification
VALUE | path_env
VALUE | chdir_dir

## Detailed Description

Definition at line 30 of file process.h.

## Field Documentation

## ◆ argv_buf

VALUE rb_execarg::argv_buf

Definition at line 39 of file process.h.

Referenced by rb_execarg_commandline().

## ◆ argv_str

VALUE rb_execarg::argv_str

Definition at line 38 of file process.h.

Referenced by rb_execarg_commandline().

## ◆ chdir_dir

VALUE rb_execarg::chdir_dir

Definition at line 73 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_run_options().

## ◆ chdir_given

unsigned rb_execarg::chdir_given

Definition at line 53 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_run_options().

## ◆ close_others_do

unsigned rb_execarg::close_others_do

Definition at line 52 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_run_options().

## ◆ close_others_given

unsigned rb_execarg::close_others_given

Definition at line 51 of file process.h.

Referenced by rb_execarg_addopt().

## ◆ close_others_maxhint

int rb_execarg::close_others_maxhint

Definition at line 66 of file process.h.

Referenced by rb_execarg_run_options().

## ◆

struct { ... } rb_execarg::cmd

Referenced by rb_execarg_commandline(), and rb_f_exec().

## ◆ command_abspath

VALUE rb_execarg::command_abspath

Definition at line 37 of file process.h.

## ◆ command_name

VALUE rb_execarg::command_name

Definition at line 36 of file process.h.

Referenced by rb_f_exec().

## ◆ dup2_tmpbuf

VALUE rb_execarg::dup2_tmpbuf

Definition at line 45 of file process.h.

Referenced by rb_execarg_run_options().

## ◆ env_modification

VALUE rb_execarg::env_modification

Definition at line 71 of file process.h.

Referenced by rb_execarg_run_options(), and rb_execarg_setenv().

## ◆ envp_buf

VALUE rb_execarg::envp_buf

Definition at line 44 of file process.h.

## ◆ envp_str

VALUE rb_execarg::envp_str

Definition at line 43 of file process.h.

## ◆ exception_given

unsigned rb_execarg::exception_given

Definition at line 59 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_new().

## ◆ fd_close

VALUE rb_execarg::fd_close

Definition at line 68 of file process.h.

Referenced by rb_execarg_run_options().

## ◆ fd_dup2

VALUE rb_execarg::fd_dup2

Definition at line 67 of file process.h.

Referenced by rb_execarg_run_options().

## ◆ fd_dup2_child

VALUE rb_execarg::fd_dup2_child

Definition at line 70 of file process.h.

Referenced by rb_execarg_run_options().

## ◆ fd_open

VALUE rb_execarg::fd_open

Definition at line 69 of file process.h.

## ◆ gid

rb_gid_t rb_execarg::gid

Definition at line 65 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_run_options().

## ◆ gid_given

unsigned rb_execarg::gid_given

Definition at line 57 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_run_options().

## ◆

union { ... } rb_execarg::invoke

Referenced by rb_execarg_commandline(), and rb_f_exec().

## ◆ new_pgroup_flag

unsigned rb_execarg::new_pgroup_flag

Definition at line 55 of file process.h.

Referenced by rb_execarg_addopt().

## ◆ new_pgroup_given

unsigned rb_execarg::new_pgroup_given

Definition at line 54 of file process.h.

Referenced by rb_execarg_addopt().

## ◆ path_env

VALUE rb_execarg::path_env

Definition at line 72 of file process.h.

Referenced by rb_execarg_setenv().

## ◆ pgroup_given

unsigned rb_execarg::pgroup_given

Definition at line 47 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_run_options().

## ◆ pgroup_pgid

rb_pid_t rb_execarg::pgroup_pgid

Definition at line 61 of file process.h.

Referenced by rb_execarg_addopt().

## ◆ redirect_fds

VALUE rb_execarg::redirect_fds

Definition at line 42 of file process.h.

Referenced by rb_execarg_run_options().

## ◆ rlimit_limits

VALUE rb_execarg::rlimit_limits

Definition at line 62 of file process.h.

Referenced by rb_execarg_run_options().

## ◆

struct { ... } rb_execarg::sh

Referenced by rb_f_exec().

## ◆ shell_script

VALUE rb_execarg::shell_script

Definition at line 33 of file process.h.

Referenced by rb_f_exec().

## ◆ uid

rb_uid_t rb_execarg::uid

Definition at line 64 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_run_options().

## ◆ uid_given

unsigned rb_execarg::uid_given

Definition at line 56 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_run_options().

## ◆ umask_given

unsigned rb_execarg::umask_given

Definition at line 48 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_run_options().

## ◆ umask_mask

mode_t rb_execarg::umask_mask

Definition at line 63 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_run_options().

## ◆ unsetenv_others_do

unsigned rb_execarg::unsetenv_others_do

Definition at line 50 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_run_options().

## ◆ unsetenv_others_given

unsigned rb_execarg::unsetenv_others_given

Definition at line 49 of file process.h.

Referenced by rb_execarg_addopt(), and rb_execarg_run_options().

## ◆ use_shell

unsigned rb_execarg::use_shell

Definition at line 46 of file process.h.

Referenced by rb_execarg_commandline(), and rb_f_exec().

## ◆ waitpid_state

struct waitpid_state* rb_execarg::waitpid_state

Definition at line 60 of file process.h.

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

- internal/process.h