9#define PROCESS_MAGIC_PROC MOS_FOURCC('P', 'R', 'O', 'C')
fd_t process_attach_ref_fd(process_t *process, io_t *file, fd_flags_t flags)
should_inline bool process_is_valid(const process_t *process)
pid_t process_wait_for_pid(pid_t pid, u32 *exit_code, u32 flags)
bool process_register_signal_handler(process_t *process, signal_t sig, const sigaction_t *sigaction)
void process_destroy(process_t *process)
long process_do_execveat(process_t *process, fd_t dirfd, const char *path, const char *const argv[], const char *const envp[], int flags)
void process_dump_mmaps(const process_t *process)
process_t * process_get(pid_t pid)
should_inline stdio_t current_stdio(void)
void process_exit(process_t *process, u8 exit_code, signal_t signal)
io_t * process_get_fd(process_t *process, fd_t fd)
process_t * process_allocate(process_t *parent, const char *name)
#define PROCESS_MAGIC_PROC
process_t * process_new(process_t *parent, const char *name, const stdio_t *ios)
process_t * process_do_fork(process_t *process)
bool process_detach_fd(process_t *process, fd_t fd)
A wrapper type for the standard I/O streams.