Ruby: include/ruby/internal/intern/process.h Source File

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

process.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_PROCESS_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_PROCESS_H
23#include "ruby/internal/attr/noreturn.h"
24#include "ruby/internal/config.h" /* rb_pid_t is defined here. */
25#include "ruby/internal/dllexport.h"
26#include "ruby/internal/value.h"
27
28 RBIMPL_SYMBOL_EXPORT_BEGIN()
29
30/* process.c */
31void rb_last_status_set(int status, rb_pid_t pid);
32 VALUE rb_last_status_get(void);
33int rb_proc_exec(const char*);
34
35 RBIMPL_ATTR_NORETURN()
36 VALUE rb_f_exec(int, const VALUE*);
37rb_pid_t rb_waitpid(rb_pid_t pid, int *status, int flags);
38void rb_syswait(rb_pid_t pid);
39rb_pid_t rb_spawn(int, const VALUE*);
40rb_pid_t rb_spawn_err(int, const VALUE*, char*, size_t);
41 VALUE rb_proc_times(VALUE);
42 VALUE rb_detach_process(rb_pid_t pid);
43
44 RBIMPL_SYMBOL_EXPORT_END()
45
46#endif /* RBIMPL_INTERN_PROCESS_H */
dllexport.h
Tewaking visibility of C variables/functions.
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:86
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:77
config.h
Thin wrapper to ruby/config.h.
rb_last_status_get
VALUE rb_last_status_get(void)
Definition: process.c:596
rb_proc_exec
int rb_proc_exec(const char *)
Definition: process.c:1891
rb_waitpid
rb_pid_t rb_waitpid(rb_pid_t pid, int *status, int flags)
Definition: process.c:1443
rb_spawn_err
rb_pid_t rb_spawn_err(int, const VALUE *, char *, size_t)
Definition: process.c:4670
rb_syswait
void rb_syswait(rb_pid_t pid)
Definition: process.c:4539
rb_spawn
rb_pid_t rb_spawn(int, const VALUE *)
Definition: process.c:4676
rb_last_status_set
void rb_last_status_set(int status, rb_pid_t pid)
Definition: process.c:660
rb_f_exec
VALUE rb_f_exec(int, const VALUE *)
Definition: process.c:3109
rb_detach_process
VALUE rb_detach_process(rb_pid_t pid)
Definition: process.c:1646
noreturn.h
Defines RBIMPL_ATTR_NORETURN.
RBIMPL_ATTR_NORETURN
#define RBIMPL_ATTR_NORETURN()
Wraps (or simulates) [[noreturn]]
Definition: noreturn.h:38
rb_proc_times
#define rb_proc_times
Definition: process.c:7908
const
#define const
Definition: strftime.c:108
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38