PatchworkOS
Loading...
Searching...
No Matches
spawn_fd_t Struct Reference

Stucture used to duplicate fds in spawn(). More...

#include <proc.h>

Data Fields

fd_t child
 The destination file descriptor in the child.
 
fd_t parent
 The source file descriptor in the parent.
 

Detailed Description

Stucture used to duplicate fds in spawn().

The spawn_fd_t structure is used to inform the kernel of which file descriptors to duplicate when spawning a new process, for more information check the spawn() function. The special value SPAWN_FD_END is used to terminate arrays of spawn_fd_t structures.

Definition at line 54 of file proc.h.

Field Documentation

◆ child

fd_t spawn_fd_t::child

The destination file descriptor in the child.

Definition at line 56 of file proc.h.

Referenced by pipeline_execute_cmd(), system(), and terminal_procedure().

◆ parent

fd_t spawn_fd_t::parent

The source file descriptor in the parent.

Definition at line 57 of file proc.h.

Referenced by spawn_program().


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