Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
Public APIs related to rb_mProcess. More...
#include "ruby/internal/attr/noreturn.h"
#include "ruby/internal/config.h"
#include "ruby/internal/dllexport.h"
#include "ruby/internal/value.h"
Go to the source code of this file.
Functions | |
void | rb_last_status_set (int status, rb_pid_t pid) |
VALUE | rb_last_status_get (void) |
int | rb_proc_exec (const char *) |
VALUE | rb_f_exec (int, const VALUE *) |
rb_pid_t | rb_waitpid (rb_pid_t pid, int *status, int flags) |
void | rb_syswait (rb_pid_t pid) |
rb_pid_t | rb_spawn (int, const VALUE *) |
rb_pid_t | rb_spawn_err (int, const VALUE *, char *, size_t) |
VALUE | rb_proc_times (VALUE) |
VALUE | rb_detach_process (rb_pid_t pid) |
Public APIs related to rb_mProcess.
RBIMPL
or rbimpl
are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will. __VA_ARGS__
is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98. Definition in file process.h.
VALUE rb_detach_process | ( | rb_pid_t | pid | ) |
Definition at line 1646 of file process.c.
References rb_process_status::pid, PIDT2NUM, ruby::backward::cxxanyargs::rb_thread_create(), and rb_thread_local_aset().
Definition at line 3109 of file process.c.
References argc, argv, CHILD_ERRMSG_BUFLEN, rb_execarg::cmd, rb_execarg::command_name, err, FALSE, rb_execarg::invoke, mjit_enabled, Qnil, rb_execarg_get(), rb_execarg_new(), RB_GC_GUARD, rb_jump_tag(), rb_protect(), rb_syserr_fail_str(), rb_execarg::sh, rb_execarg::shell_script, TRUE, UNREACHABLE_RETURN, and rb_execarg::use_shell.
void rb_last_status_set | ( | int | status, |
rb_pid_t | pid | ||
) |
Definition at line 660 of file process.c.
References rb_process_status::pid, rb_process_status_new(), and rb_process_status::status.
void rb_syswait | ( | rb_pid_t | pid | ) |
Definition at line 4539 of file process.c.
References rb_waitpid().
Definition at line 1443 of file process.c.
References rb_process_status::error, NIL_P, rb_process_status::pid, waitpid_state::pid, rb_process_status_wait(), RTYPEDDATA_DATA, rb_process_status::status, and waitpid_state::status.
Referenced by rb_syswait().