| PatchworkOS
    | 
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. | |
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. 
| 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().
| 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().